| 123 |
- /*! For license information please see 2.39341471.chunk.js.LICENSE.txt */
- (this.webpackJsonpportal=this.webpackJsonpportal||[]).push([[2],[function(t,e,n){"use strict";var i=n(2).isPlainObject;e.extend=function t(e){var n=1,o=!1;for("boolean"===typeof(e=e||{})&&(o=e,e=arguments[1]||{},n++);n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var a in r){var s=e[a],l=r[a],u=!1,c=void 0;"__proto__"!==a&&e!==l&&(o&&l&&(i(l)||(u=Array.isArray(l)))?(c=u?s&&Array.isArray(s)?s:[]:s&&i(s)?s:{},e[a]=t(o,c,l)):void 0!==l&&(e[a]=l))}}return e},e.extendFromObject=function(t,e,n){for(var i in t=t||{},e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=e[i];i in t&&!n||(t[i]=o)}return t}},function(t,e,n){"use strict";t.exports=n(590)},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o={"[object Array]":"array","[object Date]":"date","[object Object]":"object","[object String]":"string","[object Null]":"null"},r=function(t){var e=Object.prototype.toString.call(t);return"object"===i(t)?o[e]||"object":i(t)},a=function(t){return"function"===typeof t},s=function(t){return"number"===typeof t&&isFinite(t)||!isNaN(t-parseFloat(t))};e.isBoolean=function(t){return"boolean"===typeof t},e.isExponential=function(t){return s(t)&&-1!==t.toString().indexOf("e")},e.isDate=function(t){return"date"===r(t)},e.isDefined=function(t){return null!==t&&void 0!==t},e.isFunction=a,e.isString=function(t){return"string"===typeof t},e.isNumeric=s,e.isObject=function(t){return"object"===r(t)},e.isEmptyObject=function(t){var e;for(e in t)return!1;return!0},e.isPlainObject=function(t){if(!t||"[object Object]"!==Object.prototype.toString.call(t))return!1;var e=Object.getPrototypeOf(t),n=Object.hasOwnProperty.call(e,"constructor")&&e.constructor;return"function"===typeof n&&Object.toString.call(n)===Object.toString.call(Object)},e.isPrimitive=function(t){return-1===["object","array","function"].indexOf(r(t))},e.isWindow=function(t){return null!=t&&t===t.window},e.isRenderer=function(t){return!(!t.jquery&&!t.dxRenderer)},e.isPromise=function(t){return t&&a(t.then)},e.isDeferred=function(t){return t&&a(t.done)&&a(t.fail)},e.type=r},function(t,e,n){"use strict";var i=n(617);t.exports=i.get()},function(t,e,n){"use strict";var i=u(n(51)),o=u(n(45)),r=n(7),a=n(29),s=n(5),l=n(2);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var d,h=[],f=[],p=[],m=function(t,e,n){if(d&&d!==t)return h.push(e),f.push(t),n=n||new r.Deferred,p.push(n),n;var i=d,o=p.length;d=t;var a=e();return a||(p.length>o?a=r.when.apply(this,p.slice(o)):n&&n.resolve()),d=i,n&&a&&a.done&&a.done(n.resolve).fail(n.reject),!d&&h.length&&("render"===f.shift()?g:_)(h.shift(),p.shift()),a||(0,r.when)()},g=function(t,e){return m("render",t,e)},_=function(t,e){return m("update",t,e)},v=function(t,e){if(Array.isArray(t)&&Array.isArray(e)){var n=!1;return(0,s.each)(t,(function(t,i){if(i!==e[t])return n=!0,!1})),!n}return t===e},y=function(t){switch(c(t)){case"string":return t.split(/\s+/,2);case"object":return[t.x||t.h,t.y||t.v];case"number":return[t];default:return t}},b=function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!x(t[i],e[i],n+1))return!1;return!0},w=function(t,e,n,i){for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)&&!x(t[o],e[o],n+1,i))return!1;for(var r in e)if(!(r in t))return!1;return!0},x=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];t=(0,a.toComparable)(t,!0),e=(0,a.toComparable)(e,!0);var o=i?t===e:t==e;return!!(o||n>=3)||((0,l.isObject)(t)&&(0,l.isObject)(e)?w(t,e,n,i):!(!Array.isArray(t)||!Array.isArray(e))&&b(t,e,n))};e.ensureDefined=function(t,e){return(0,l.isDefined)(t)?t:e},e.executeAsync=function(t,e){var n=new r.Deferred,i=e||this,o={promise:n.promise(),abort:function(){clearTimeout(s),n.rejectWith(i)}},a=function(){var e=t.call(i);e&&e.done&&(0,l.isFunction)(e.done)?e.done((function(){n.resolveWith(i)})):n.resolveWith(i)},s=(arguments[2]||setTimeout)(a,"number"===typeof e?e:0);return o},e.deferRender=g,e.deferRenderer=function(t){return function(){var e=this;return m("render",(function(){return t.call(e)}))}},e.deferUpdate=_,e.deferUpdater=function(t){return function(){var e=this;return m("update",(function(){return t.call(e)}))}},e.pairToObject=function(t,e){var n=y(t),i=e?parseFloat(n&&n[0]):parseInt(n&&n[0],10),o=e?parseFloat(n&&n[1]):parseInt(n&&n[1],10);return isFinite(i)||(i=0),isFinite(o)||(o=i),{h:i,v:o}},e.splitPair=y,e.findBestMatches=function(t,e,n){var i=[],o=0;return(0,s.each)(e,(function(e,r){var a=0,l=n?n(r):r;(0,s.each)(t,(function(t,e){var n=l[t];if(void 0!==n){if(!v(n,e))return a=-1,!1;a++}})),a<o||(a>o&&(i.length=0,o=a),i.push(r))})),i},e.normalizeKey=function(t){var e=(0,l.isString)(t)?t:t.toString(),n=e.match(/[^a-zA-Z0-9_]/g);return n&&(0,s.each)(n,(function(t,n){e=e.replace(n,"__"+n.charCodeAt()+"__")})),e},e.denormalizeKey=function(t){var e=t.match(/__\d+__/g);return e&&e.forEach((function(e){var n=parseInt(e.replace("__",""));t=t.replace(e,String.fromCharCode(n))})),t},e.getKeyHash=function(t){if(t instanceof o.default)return t.toString();if((0,l.isObject)(t)||Array.isArray(t))try{var e=JSON.stringify(t);return"{}"===e?t:e}catch(n){return t}return t},e.escapeRegExp=function(t){return t.replace(/[[\]{}\-()*+?.\\^$|\s]/g,"\\$&")},e.applyServerDecimalSeparator=function(t){var e=(0,i.default)().serverDecimalSeparator;return(0,l.isDefined)(t)&&(t=t.toString().replace(".",e)),t},e.noop=function(){},e.asyncNoop=function(){return(new r.Deferred).resolve().promise()},e.grep=function(t,e,n){for(var i=[],o=!n,r=0;r<t.length;r++)!!e(t[r],r)===o&&i.push(t[r]);return i},e.equalByValue=x},function(t,e,n){"use strict";e.map=function(t,e){if(Array.isArray(t))return t.map(e);var n=[];for(var i in t)n.push(e(t[i],i));return n},e.each=function(t,e){if(t){if("length"in t)for(var n=0;n<t.length&&!1!==e.call(t[n],n,t[n]);n++);else for(var i in t)if(!1===e.call(t[i],i,t[i]))break;return t}},e.reverseEach=function(t,e){if(t&&"length"in t&&0!==t.length)for(var n=t.length-1;n>=0&&!1!==e.call(t[n],n,t[n]);n--);}},function(t,e,n){"use strict";var i=p(n(354)),o=n(0),r=p(n(15)),a=p(n(10)),s=p(n(89)),l=p(n(2)),u=p(n(39)),c=p(n(38)),d=p(n(253)),h=p(n(618)),f=p(n(113));function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g=a.default.getWindow(),_=l.default.isWindow,v=l.default.isFunction,y=l.default.isString,b={mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},w={focusin:"focus",focusout:"blur"},x=["blur","focus","load"],C=["touchmove","wheel","mousewheel","touchstart"];function S(t,e){return!_(t)&&"#document"!==t.nodeName&&r.default.elementMatches(t,e)}var k,I,T=new d.default,E=0,O=function(){var t={};return i.default.add((function(e,n){t[e]=n})),{getField:function(e,n){return t[e]&&t[e][n]},callMethod:function(e,n,i,o){return t[e]&&t[e][n]&&t[e][n].apply(i,o)}}}(),M=(0,s.default)({on:D(N(F((function(t,e,n,i,o){R(t,e).addHandler(o,n,i)})))),one:D(N((function(t,e,n,i,o){M.on(t,e,n,i,(function i(){M.off(t,e,n,i),o.apply(this,arguments)}))}))),off:D((I=F((function(t,e,n,i){R(t,e).removeHandler(i,n)})),function(t,e,n,i){"function"===typeof n&&(i=n,n=void 0),I(t,e,n,i)})),trigger:D(L((function(t,e,n){var i=e.type,r=R(t,e.type);if(O.callMethod(i,"trigger",t,[e,n]),r.callHandlers(e,n),!(O.getField(i,"noBubble")||e.isPropagationStopped()||-1!==x.indexOf(i))){var a=[];!function t(e){var n=e.parentNode;n&&(a.push(n),t(n))}(t),a.push(g);for(var s=0;a[s]&&!e.isPropagationStopped();){R(a[s],e.type).callHandlers((0,o.extend)(e,{currentTarget:a[s]}),n),s++}}(t.nodeType||_(t))&&(O.callMethod(i,"_default",t,[e,n]),function(t,e){var n=w[t]||t;if(function(t,e){return"click"===t&&"a"===e.localName}(t,e))return;v(e[n])&&(k=t,e[n](),k=void 0)}(i,t))}))),triggerHandler:D(L((function(t,e,n){R(t,e.type).callHandlers(e,n)})))});function P(t,e){var n=t[0];if(n)if(r.default.isNode(n)||_(n))e.apply(M,t);else{if(y(n)||!("length"in n))throw c.default.Error("E0025");var i=Array.prototype.slice.call(t,0);Array.prototype.forEach.call(n,(function(t){i[0]=t,P(i,e)}))}}function D(t){return function(){P(arguments,t)}}var A=(0,f.default)((function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){return t=!0,!0}});g.addEventListener("test",null,e)}catch(n){}return t}));function R(t,e){var n=T.get(t),i=(e=e||"").split("."),o=i.slice(1),a=!!i[0];e=i[0]||"dxEmptyEventType",n||(n={},T.set(t,n)),n[e]||(n[e]={handleObjects:[],nativeHandler:null});var s=n[e];return{addHandler:function(n,i,l){var u=function(i,o){var r,a,s=[i],u=i.currentTarget,c=i.relatedTarget;e in b&&(r=c&&u&&(c===u||function t(e,n){return _(e)?t(e.document,n):e.contains?e.contains(n):!!(n.compareDocumentPosition(e)&n.DOCUMENT_POSITION_CONTAINS)}(u,c))),void 0!==o&&s.push(o),O.callMethod(e,"handle",t,[i,l]),r||(a=n.apply(u,s)),!1===a&&(i.preventDefault(),i.stopPropagation())},c={handler:n,wrappedHandler:function(e,n){if(!k||e.type!==k)if(e.data=l,e.delegateTarget=t,i)for(var o=e.target;o&&o!==t;)S(o,i)&&(e.currentTarget=o,u(e,n)),o=o.parentNode;else e.currentTarget=e.delegateTarget||e.target,u(e,n)},selector:i,type:e,data:l,namespace:o.join("."),namespaces:o,guid:++E};s.handleObjects.push(c);var d,h,f=1===s.handleObjects.length&&a;f&&(f=!O.callMethod(e,"setup",t,[l,o,n])),f&&(s.nativeHandler=(h=e,function(t,e){var n=R(this,h);t=M.Event(t),n.callHandlers(t,e)}),A()&&C.indexOf(e)>-1&&(d={passive:!1}),s.removeListener=r.default.listen(t,b[e]||e,s.nativeHandler,d)),O.callMethod(e,"add",t,[c])},removeHandler:function(i,r){var s=function(e){var a,s=n[e];s.handleObjects.length?(s.handleObjects=s.handleObjects.filter((function(n){var s=o.length&&!B(n.namespaces,o)||i&&n.handler!==i||r&&n.selector!==r;return s||(a=n.handler,O.callMethod(e,"remove",t,[n])),s})),!s.handleObjects.length&&"dxEmptyEventType"!==e&&(O.callMethod(e,"teardown",t,[o,a]),s.nativeHandler&&s.removeListener(),delete n[e])):delete n[e]};if(a)s(e);else for(var l in n)s(l);0===Object.keys(n).length&&T.delete(t)},callHandlers:function(t,e){var i=!1,r=function(n){i||o.length&&!B(n.namespaces,o)||(n.wrappedHandler(t,e),i=t.isImmediatePropagationStopped())};s.handleObjects.forEach(r),o.length&&n.dxEmptyEventType&&n.dxEmptyEventType.handleObjects.forEach(r)}}}function B(t,e){for(var n=0;n<e.length;n++)if(t.indexOf(e[n])<0)return!1;return!0}function N(t){return function(e,n,i,o,r){r||(r=o,o=void 0),"string"!==typeof i&&(o=i,i=void 0),r||"string"!==typeof n||(r=o||i,i=void 0,o=void 0),t(e,n,i,o,r)}}function L(t){return function(e,n,i){"string"===typeof n&&(n={type:n}),n.target||(n.target=e),n.currentTarget=e,n.delegateTarget||(n.delegateTarget=e),!n.type&&n.originalEvent&&(n.type=n.originalEvent.type),t(e,n instanceof M.Event?n:M.Event(n),i)}}function F(t){var e=function(e,n){if(n&&n.indexOf(" ")>-1){var i=Array.prototype.slice.call(arguments,0);n.split(" ").forEach((function(e){i[1]=e,t.apply(this,i)}))}else t.apply(this,arguments)};return function(t,n){if("object"===m(n)){var i=Array.prototype.slice.call(arguments,0);for(var o in n)i[1]=o,i[i.length-1]=n[o],e.apply(this,i)}else e.apply(this,arguments)}}function V(t){if(function(t){return null==t.which&&0===t.type.indexOf("key")}(t))return null!=t.charCode?t.charCode:t.keyCode;if(function(t){return!t.which&&void 0!==t.button&&/^(?:mouse|pointer|contextmenu|drag|drop)|click/.test(t.type)}(t)){return{1:1,2:3,3:1,4:2}[t.button]}return t.which}function z(t){t&&(M.Event=t,M.Event.prototype=t.prototype)}function j(t,e,n){Object.defineProperty(n||M.Event.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.originalEvent&&e(this.originalEvent)},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})}z(function(t){return function(e,n){if(!(this instanceof M.Event))return new M.Event(e,n);e||(e={}),"string"===typeof e&&(e={type:e}),n||(n={}),t.call(this,e,n)}}((function(t,e){var n=this,i=!1,r=!1,s=!1;(0,o.extend)(n,t),(t instanceof M.Event||a.default.hasWindow()&&t instanceof g.Event)&&(n.originalEvent=t,n.currentTarget=void 0),t instanceof M.Event||(0,o.extend)(n,{isPropagationStopped:function(){return!!(i||n.originalEvent&&n.originalEvent.propagationStopped)},stopPropagation:function(){i=!0,n.originalEvent&&n.originalEvent.stopPropagation()},isImmediatePropagationStopped:function(){return r},stopImmediatePropagation:function(){this.stopPropagation(),r=!0,n.originalEvent&&n.originalEvent.stopImmediatePropagation()},isDefaultPrevented:function(){return!!(s||n.originalEvent&&n.originalEvent.defaultPrevented)},preventDefault:function(){s=!0,n.originalEvent&&n.originalEvent.preventDefault()}}),j("which",V,n),0===t.type.indexOf("touch")&&(delete e.pageX,delete e.pageY),(0,o.extend)(n,e),n.guid=++E}))),(0,h.default)(j);var H=(0,u.default)(),W=(0,u.default)();M.set=function(t){H.fire(),M.inject(t),z(t.Event),W.fire()},M.subscribeGlobal=function(){P(arguments,N((function(){var t=arguments;M.on.apply(this,t),H.add((function(){var e=Array.prototype.slice.call(t,0);e.splice(3,1),M.off.apply(this,e)})),W.add((function(){M.on.apply(this,t)}))})))},M.forcePassiveFalseEventNames=C,M.passiveEventHandlersSupported=A,t.exports=M},function(t,e,n){"use strict";var i=n(2),o=i.isPromise,r=i.isDeferred,a=n(0).extend,s=n(39),l=[{method:"resolve",handler:"done",state:"resolved"},{method:"reject",handler:"fail",state:"rejected"},{method:"notify",handler:"progress"}],u=function(){var t=this;this._state="pending",this._promise={},l.forEach(function(e){var n=e.method;this[n+"Callbacks"]=new s,this[n]=function(){return this[n+"With"](this._promise,arguments)}.bind(this),this._promise[e.handler]=function(e){if(!e)return this;var i=t[n+"Callbacks"];return i.fired()?e.apply(t[n+"Context"],t[n+"Args"]):i.add(function(t,n){e.apply(t,n)}.bind(this)),this}}.bind(this)),this._promise.always=function(t){return this.done(t).fail(t)},this._promise.catch=function(t){return this.then(null,t)},this._promise.then=function(t,e){var n=new u;return["done","fail"].forEach(function(a){var s="done"===a?t:e;this[a]((function(){if(s){var t=s&&s.apply(this,arguments);r(t)?t.done(n.resolve).fail(n.reject):o(t)?t.then(n.resolve,n.reject):n.resolve.apply(this,i.isDefined(t)?[t]:arguments)}else n["done"===a?"resolve":"reject"].apply(this,arguments)}))}.bind(this)),n.promise()},this._promise.state=function(){return t._state},this._promise.promise=function(e){return e?a(e,t._promise):t._promise},this._promise.promise(this)};l.forEach((function(t){var e=t.method,n=t.state;u.prototype[e+"With"]=function(t,i){var o=this[e+"Callbacks"];return"pending"===this.state()&&(this[e+"Args"]=i,this[e+"Context"]=t,n&&(this._state=n),o.fire(t,i)),this}})),e.fromPromise=function(t,e){if(r(t))return t;if(o(t)){var n=new u;return t.then((function(){n.resolveWith.apply(n,[e].concat([[].slice.call(arguments)]))}),(function(){n.rejectWith.apply(n,[e].concat([[].slice.call(arguments)]))})),n}return(new u).resolveWith(e,[t])};var c=function(){if(1===arguments.length)return e.fromPromise(arguments[0]);for(var t=[].slice.call(arguments),n=[],i=0,o=new u,a=function(e){return function(r){n[e]=this,t[e]=arguments.length>1?[].slice.call(arguments):r,++i===t.length&&o.resolveWith(n,t)}},s=0;s<t.length;s++)r(t[s])?t[s].promise().done(a(s)).fail(o.reject):i++;return i===t.length&&o.resolveWith(n,t),o.promise()};e.setStrategy=function(t){u=t.Deferred,c=t.when},e.Deferred=function(){return new u},e.when=function(){return c.apply(this,arguments)}},function(t,e,n){"use strict";var i=s(n(3)),o=s(n(623)),r=s(n(38)),a=s(n(188));function s(t){return t&&t.__esModule?t:{default:t}}o.default.add((function(t,e){i.default.fn[t]=function(n){var i,o="string"===typeof n;if(o){var a=n,s=[].slice.call(arguments).slice(1);this.each((function(){var n=e.getInstance(this);if(!n)throw r.default.Error("E0009",t);var o=n[a].apply(n,s);void 0===i&&(i=o)}))}else this.each((function(){var t=e.getInstance(this);t?t.option(n):new e(this,n)})),i=this;return i}})),t.exports=function(t,e,n){n?e[t]=n:n=e,a.default.name(n,t),o.default.fire(t,n)},t.exports.default=t.exports},function(t,e,n){t.exports=n(595)()},function(t,e,n){"use strict";var i=n(15),o=function(){return"undefined"!==typeof window},r=o()&&window;r||((r={}).window=r);var a=function(t){return t<768?"xs":t<992?"sm":t<1200?"md":"lg"};t.exports={hasWindow:o,getWindow:function(){return r},hasProperty:function(t){return o()&&t in r},defaultScreenFactorFunc:a,getCurrentScreenFactor:function(t){return(t||a)(i.getDocumentElement().clientWidth)},getNavigator:function(){return o()?r.navigator:{userAgent:""}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addNamespace=e.getChar=e.normalizeKeyName=e.fireEvent=e.createEvent=e.setEventFixMethod=e.needSkipEvent=e.stopEventsSkipping=e.forceSkipEvents=e.hasTouches=e.eventDelta=e.eventData=e.isFakeClickEvent=e.isKeyboardEvent=e.isTouchEvent=e.isDxMouseWheelEvent=e.isMouseEvent=e.isPointerEvent=e.eventSource=void 0;var i=c(n(3)),o=c(n(620)),r=n(6),a=c(r),s=n(5),l=n(0),u=n(91);function c(t){return t&&t.__esModule?t:{default:t}}var d={backspace:"backspace",tab:"tab",enter:"enter",escape:"escape",pageup:"pageUp",pagedown:"pageDown",end:"end",home:"home",arrowleft:"leftArrow",arrowup:"upArrow",arrowright:"rightArrow",arrowdown:"downArrow",delete:"del"," ":"space",f:"F",a:"A","*":"asterisk","-":"minus",alt:"alt",control:"control",shift:"shift",left:"leftArrow",up:"upArrow",right:"rightArrow",down:"downArrow",multiply:"asterisk",spacebar:"space",del:"del",subtract:"minus",esc:"escape"},h={8:"backspace",9:"tab",13:"enter",27:"escape",33:"pageUp",34:"pageDown",35:"end",36:"home",37:"leftArrow",38:"upArrow",39:"rightArrow",40:"downArrow",46:"del",32:"space",70:"F",65:"A",106:"asterisk",109:"minus",189:"minus",173:"minus",16:"shift",17:"control",18:"alt"},f={dx:/^dx/i,mouse:/(mouse|wheel)/i,touch:/^touch/i,keyboard:/^key/i,pointer:/^(ms)?pointer/i},p=function(t){return t},m=function(t){return"dx"===_(t)},g=function(t){return"touch"===_(t)},_=e.eventSource=function(t){var e=t.type,n="other";return(0,s.each)(f,(function(t){if(this.test(e))return n=t,!1})),n},v=e.isPointerEvent=function(t){return"pointer"===_(t)},y=e.isMouseEvent=function(t){return function(t){return"mouse"===_(t)}(t)||(v(t)||m(t))&&"mouse"===t.pointerType},b=e.isDxMouseWheelEvent=function(t){return t&&"dxmousewheel"===t.type},w=e.isTouchEvent=function(t){return g(t)||(v(t)||m(t))&&"touch"===t.pointerType},x=(e.isKeyboardEvent=function(t){return"keyboard"===_(t)},e.isFakeClickEvent=function(t){var e=t.screenX,n=t.offsetX,i=t.pageX;return 0===e&&!n&&0===i},e.eventData=function(t){return{x:t.pageX,y:t.pageY,time:t.timeStamp}},e.eventDelta=function(t,e){return{x:e.x-t.x,y:e.y-t.y,time:e.time-t.time||1}},e.hasTouches=function(t){var e=t.originalEvent,n=t.pointers;return g(t)?(e.touches||[]).length:m(t)?(n||[]).length:0},!1),C=(e.forceSkipEvents=function(){return x=!0},e.stopEventsSkipping=function(){return x=!1},e.needSkipEvent=function(t){if(x)return!0;var e=t.target,n=(0,i.default)(e),o=n.is("input, textarea, select");return!!n.is(".dx-skip-gesture-event *, .dx-skip-gesture-event")||(b(t)?(!n.is("textarea")||!n.hasClass("dx-texteditor-input"))&&(!e.isContentEditable&&!e.hasAttribute("contenteditable")&&(n.is("input[type='number'], textarea, select")&&n.is(":focus"))):y(t)?o||t.which>1:w(t)?o&&(0,u.focused)(n):void 0)},e.setEventFixMethod=function(t){return p=t},e.createEvent=function(t,e){var n=function(t){return p((0,r.Event)(t,t),t)}(t);return e&&(0,l.extend)(n,e),n});e.fireEvent=function(t){var e=t.originalEvent,n=t.delegateTarget,i=C(e,t);return a.default.trigger(n||i.target,i),i},e.normalizeKeyName=function(t){var e=t.key,n=t.which,i=!!e;if(e=i?e:n)return e=i?d[e.toLowerCase()]||e:h[e]||String.fromCharCode(e)},e.getChar=function(t){var e=t.key,n=t.which;return e||String.fromCharCode(n)},e.addNamespace=o.default},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(89)),r=n(0),a=n(5),s=n(55),l=n(46),u=d(n(193)),c=d(n(641));function d(t){return t&&t.__esModule?t:{default:t}}var h=(0,r.extend)(!0,{},c.default),f={},p=(0,o.default)({engine:function(){return"base"},_dictionary:h,load:function(t){(0,r.extend)(!0,this._dictionary,t)},_localizablePrefix:"@",setup:function(t){this._localizablePrefix=t},localizeString:function(t){var e=this,n=new RegExp("(^|[^a-zA-Z_0-9"+e._localizablePrefix+"-]+)("+e._localizablePrefix+"{1,2})([a-zA-Z_0-9-]+)","g"),i=e._localizablePrefix+e._localizablePrefix;return t.replace(n,(function(t,n,o,r){var a,s=e._localizablePrefix+r;return o!==i&&(a=e.format(r)),a||(f[r]=(0,l.humanize)(r)),n+(a||s)}))},localizeNode:function(t){var e=this;(0,i.default)(t).each((function(t,n){n.nodeType&&(3===n.nodeType?n.nodeValue=e.localizeString(n.nodeValue):(0,i.default)(n).is("iframe")||((0,a.each)(n.attributes||[],(function(t,n){if("string"===typeof n.value){var i=e.localizeString(n.value);n.value!==i&&(n.value=i)}})),(0,i.default)(n).contents().each((function(t,n){e.localizeNode(n)}))))}))},getMessagesByLocales:function(){return this._dictionary},getDictionary:function(t){return t?f:(0,r.extend)({},f,this.getMessagesByLocales()[u.default.locale()])},getFormatter:function(t){return this._getFormatterBase(t)||this._getFormatterBase(t,"en")},_getFormatterBase:function(t,e){var n=this,i=u.default.getValueByClosestLocale((function(e){return function(t,e){return t[e]||{}}(n._dictionary,e)[t]}));if(i)return function(){var t=1===arguments.length&&Array.isArray(arguments[0])?arguments[0].slice(0):Array.prototype.slice.call(arguments,0);return t.unshift(i),s.format.apply(this,t)}},format:function(t){var e=this.getFormatter(t),n=Array.prototype.slice.call(arguments,1);return e&&e.apply(this,n)||""}});t.exports=p},function(t,e,n){"use strict";var i=n(4),o=n(2),r=n(0),a=n(5),s=n(37),l=n(26),u=d(n(15)),c=d(n(117));function d(t){return t&&t.__esModule?t:{default:t}}var h=Math.PI,f=Math.LN10,p=Math.abs,m=Math.log,g=Math.floor,_=Math.ceil,v=Math.pow,y=Math.sqrt,b=Math.atan2,w=Math.min,x=Math.max,C=Math.cos,S=Math.sin,k=Math.round,I=h/180,T=isNaN,E=Number,O=function(t,e){return t?m(t)/m(e):NaN},M=function(t,e){return v(e,t)},P=function(t){return(t%360+360)%360},D=function(t){return h*t/180},A=function(t){var e=D(t);return{cos:C(e),sin:S(e)}},R=function(t,e,n,i){var o=n-t,r=i-e;return y(r*r+o*o)},B=function(t){var e,n=p(t);return T(n)?NaN:n>0?(n=m(n)/f,(e=_(n))-n<1e-14?e:g(n)):0};function N(t,e){for(var n,i=0,o=t.length,r=[];i<o;)null!==(n=e(t[i],i))&&r.push(n),i++;return r}function L(t,e){return N(e,(function(e){return t[e]?t[e]:null}))}function F(t,e,n,i){var o=i;return(0,a.each)(e,(function(e,i){t[i]&&(t[i]-=n,o-=n)})),o}function V(t){return String(t).toLowerCase()}function z(t){return t&&(t.originalTop=t.top,t.originalBottom=t.bottom,t.originalLeft=t.left,t.originalRight=t.right),t}function j(t){return-1e10<t&&t<1e10?t:0}function H(t){var e=j(g(t.x)),n=j(g(t.y)),i={x:e,y:n,width:j(_(t.width+t.x))-e,height:j(_(t.height+t.y))-n};return i.isEmpty=!i.x&&!i.y&&!i.width&&!i.height,i}function W(t,e){return"datetime"===t.dataType?function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return new Date(t.getTime()+n*e)}:"logarithmic"===t.axisType?function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=U(e,t.base)+i*n;return G(o,t.base)}:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=t+i*n;return e&&o*t<=0?0:o}}function U(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return O(t,e);if(0===t)return 0;var o=O(p(t),e)-(i-1);return o<0?0:(0,s.adjust)((0,s.sign)(t)*o,Number(v(e,i-1).toFixed(p(i))))}function G(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(!n)return M(t,e);if(0===t)return 0;var o=M(p(t)+(i-1),e);return o<0?0:(0,s.adjust)((0,s.sign)(t)*o,Number(v(e,i).toFixed(p(i))))}function K(t){return t&&t.valueOf()}(0,r.extend)(e,{decreaseGaps:function(t,e,n){var i;do{(i=L(t,e)).push(_(n/i.length)),n=F(t,e,w.apply(null,i),n)}while(n>0&&i.length>1);return n},normalizeEnum:V,parseScalar:function(t,e){return void 0!==t?t:e},enumParser:function(t){var e,n,i={};for(e=0,n=t.length;e<n;++e)i[V(t[e])]=1;return function(t,e){var n=V(t);return i[n]?n:e}},patchFontOptions:function(t){var e={};return(0,a.each)(t||{},(function(n,i){if(/^(cursor)$/i.test(n));else if("opacity"===n)i=null;else if("color"===n){if(n="fill","opacity"in t){var o=new c.default(i);i="rgba(".concat(o.r,",").concat(o.g,",").concat(o.b,",").concat(t.opacity,")")}}else n="font-"+n;e[n]=i})),e},checkElementHasPropertyFromStyleSheet:function(t,e){var n=Array.prototype.slice;return n.call(u.default.getDocument().styleSheets).reduce((function(t,e){return t.concat(n.call(e.cssRules||e.rules))}),[]).filter((function(e){try{return u.default.elementMatches(t,e.selectorText)}catch(n){return!1}})).some((function(t){return!!t.style[e]}))},convertPolarToXY:function(t,e,n,i){var r=i>0?i:0;n=(0,o.isDefined)(n)?n+e-90:0;var a=A(n);return{x:k(t.x+r*a.cos),y:k(t.y+r*a.sin)}},convertXYToPolar:function(t,e,n){var i=R(t.x,t.y,e,n),o=b(n-t.y,e-t.x);return{phi:k(P(180*o/h)),r:k(i)}},processSeriesTemplate:function(t,e){var n,a,s,l=(0,o.isFunction)(t.customizeSeries)?t.customizeSeries:i.noop,u=t.nameField,c={},d=[],h=0;for(a=(e=e||[]).length;h<a;h++)u in(s=e[h])&&((n=c[s[u]])||(n=c[s[u]]={name:s[u],nameFieldValue:s[u]},d.push(n.name)));return N(d,(function(t){var e=c[t];return(0,r.extend)(e,l.call(null,e.name))}))},getCategoriesInfo:function(t,e,n){if(0===t.length)return{categories:[]};e=(0,o.isDefined)(e)?e:t[0],n=(0,o.isDefined)(n)?n:t[t.length-1];var i,r=N(t,(function(t){return null===t||void 0===t?void 0:t.valueOf()})),a=r.indexOf(e.valueOf()),s=r.indexOf(n.valueOf()),l=!1;a<0&&(a=0),s<0&&(s=t.length-1),s<a&&(i=s,s=a,a=i,l=!0);var u=t.slice(a,s+1),c=u.length-1;return{categories:u,start:u[l?c:0],end:u[l?0:c],inverted:l}},setCanvasValues:z,normalizePanesHeight:function(t){t.forEach((function(t){var e=t.height,n=0,i=parseFloat(e)||void 0;((0,o.isString)(e)&&e.indexOf("px")>-1||(0,o.isNumeric)(e)&&e>1)&&(i=k(i),n=1),!n&&i&&((0,o.isString)(e)&&e.indexOf("%")>-1?i/=100:i<0&&(i=i<-1?1:p(i))),t.height=i,t.unit=n}));var e=t.filter((function(t){return!t.unit})).reduce((function(t,e){return t+(e.height||0)}),0),n=t.filter((function(t){return!t.unit})).length,i=t.filter((function(t){return!t.unit&&!t.height})).length;if(e<1&&i)t.filter((function(t){return!t.unit&&!t.height})).forEach((function(t){return t.height=(1-e)/i}));else if(e>1||e<1&&!i||1===e&&i){if(i){var r=e/n,a=i*r;t.filter((function(t){return!t.unit&&t.height})).forEach((function(t){return t.height*=(e-a)/e})),t.filter((function(t){return!t.unit&&!t.height})).forEach((function(t){return t.height=r}))}t.forEach((function(t){return!t.unit&&(t.height*=1/e)}))}},updatePanesCanvases:function(t,e,n){var i=0,o=n?e.width-e.left-e.right:e.height-e.top-e.bottom,a=o-10*(t.length-1),s=n?"left":"top",l=n?"right":"bottom",u=t.reduce((function(t,e){return t+(e.unit?e.height:0)}),0);a-=u,t.forEach((function(t){var n=t.unit?t.height:k(t.height*a);t.canvas=t.canvas||{},(0,r.extend)(t.canvas,e),t.canvas[s]=e[s]+i,t.canvas[l]=e[l]+(o-n-i),i=i+n+10,z(t.canvas)}))},unique:function(t){var e={};return N(t,(function(t){var n=e[t]?null:t;return e[t]=!0,n}))},map:N,getVerticallyShiftedAngularCoords:function(t,e,n){var i=t.x+t.width/2>=n.x,o=(i?t.x:t.x+t.width)-n.x,r=t.y-n.y,a=r+e,s=k(y(o*o+r*r-a*a)),l=(i?+s:-s)||o;return{x:n.x+(i?l:l-t.width),y:t.y+e}},mergeMarginOptions:function(t,e){return{checkInterval:t.checkInterval||e.checkInterval,size:x(t.size||0,e.size||0),percentStick:t.percentStick||e.percentStick,sizePointNormalState:x(t.sizePointNormalState||0,e.sizePointNormalState||0)}}}),e.getVizRangeObject=function(t){return Array.isArray(t)?{startValue:t[0],endValue:t[1]}:t||{}},e.convertVisualRangeObject=function(t,e){return e?t:[t.startValue,t.endValue]},e.adjustVisualRange=function(t,n,i,r){var a=(0,o.isDefined)(n.startValue),s=(0,o.isDefined)(n.endValue),u="discrete"!==t.axisType;r=r||i;var c=W(t,!1),d=a?n.startValue:r.min,h=s?n.endValue:r.max,f=n.length,p=r.categories;if(u&&!(0,o.isDefined)(d)&&!(0,o.isDefined)(h))return{startValue:d,endValue:h};if((0,o.isDefined)(f))if(u)"datetime"!==t.dataType||(0,o.isNumeric)(f)||(f=(0,l.dateToMilliseconds)(f)),s&&!a||!s&&!a?((0,o.isDefined)(i.max)&&(h=h>i.max?i.max:h),d=c(h,f,-1)):a&&!s&&((0,o.isDefined)(i.min)&&(d=d<i.min?i.min:d),h=c(d,f));else if(f=parseInt(f),!isNaN(f)&&isFinite(f))if(f--,s||a){if(a&&!s)h=e.getCategoriesInfo(p,d,void 0).categories[f];else if(!a&&s){var m=e.getCategoriesInfo(p,void 0,h);d=m.categories[m.categories.length-1-f]}}else h=p[p.length-1],d=p[p.length-1-f];return u&&((0,o.isDefined)(i.max)&&h>i.max&&(h=i.max),(0,o.isDefined)(i.min)&&d<i.min&&(d=i.min)),{startValue:d,endValue:h}},e.getAddFunction=W,e.getLog=O,e.getLogExt=U,e.getAdjustedLog10=function(t){return(0,s.adjust)(O(t,10))},e.raiseTo=M,e.raiseToExt=G,e.normalizeAngle=P,e.convertAngleToRendererSpace=function(t){return 90-t},e.degreesToRadians=D,e.getCosAndSin=A,e.getDecimalOrder=B,e.getAppropriateFormat=function(t,e,n){var i,o=x(B(t),B(e)),r=-B(p(e-t)/n);return T(o)||T(r)?null:(p(o)<=4?(i="fixedPoint",r<0&&(r=0),r>4&&(r=4)):(i="exponential",(r+=o-1)>3&&(r=3)),{type:i,precision:r})},e.getDistance=R,e.roundValue=function(t,e){if(e>20&&(e=20),(0,o.isNumeric)(t))return(0,o.isExponential)(t)?E(t.toExponential(e)):E(t.toFixed(e))},e.getPower=function(t){return t.toExponential().split("e")[1]},e.valueOf=K,e.rotateBBox=function(t,e,n){var i=E(C(n*I).toFixed(3)),o=E(S(n*I).toFixed(3)),r=t.width/2,a=t.height/2,s=t.x+r,l=t.y+a,u=p(r*i)+p(a*o),c=p(r*o)+p(a*i);return H({x:e[0]+(s-e[0])*i+(l-e[1])*o-u,y:e[1]-(s-e[0])*o+(l-e[1])*i-c,width:2*u,height:2*c})},e.normalizeBBox=H,e.PANE_PADDING=10,e.rangesAreEqual=function(t,e){return Array.isArray(e)?t.length===e.length&&t.every((function(t,n){return K(t)===K(e[n])})):K(t.startValue)===K(e.startValue)&&K(t.endValue)===K(e.endValue)},e.pointInCanvas=function(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(259),a=n(368),s=function(t){function e(e){var n=t.call(this,e)||this;return n._extensionCreators=[],n._registerExtension=n._registerExtension.bind(n),n}return i(e,t),e.prototype.componentDidMount=function(){t.prototype.componentDidMount.call(this),this._createWidget(),this._createExtensions()},e.prototype.renderChildren=function(){var t=this;return o.Children.map(this.props.children,(function(e){return e&&a.ExtensionComponent.isPrototypeOf(e.type)?o.cloneElement(e,{onMounted:t._registerExtension}):e}))},e.prototype._registerExtension=function(t){this._extensionCreators.push(t)},e.prototype._createExtensions=function(){var t=this;this._extensionCreators.forEach((function(e){return e(t._element)}))},e}(r.ComponentBase);e.Component=s},function(t,e,n){"use strict";var i,o=n(89),r=(i=o)&&i.__esModule?i:{default:i},a=n(4);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l={querySelectorAll:function(t,e){return t.querySelectorAll(e)},elementMatches:function(t,e){var n=this;return(t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector||function(e){var i=t.document||t.ownerDocument;if(!i)return!1;for(var o=n.querySelectorAll(i,e),r=0;r<o.length;r++)if(o[r]===t)return!0}).call(t,e)},createElement:function(t,e){return(e=e||this._document).createElement(t)},createElementNS:function(t,e,n){return(n=n||this._document).createElementNS(t,e)},createTextNode:function(t,e){return(e=e||this._document).createTextNode(t)},isNode:function(t){return"object"===s(t)&&"nodeType"in t},isElementNode:function(t){return t&&1===t.nodeType},isTextNode:function(t){return t&&3===t.nodeType},isDocument:function(t){return t&&9===t.nodeType},removeElement:function(t){var e=t&&t.parentNode;e&&e.removeChild(t)},insertElement:function(t,e,n){t&&e&&t!==e&&(n?t.insertBefore(e,n):t.appendChild(e))},getAttribute:function(t,e){return t.getAttribute(e)},setAttribute:function(t,e,n){t.setAttribute(e,n)},removeAttribute:function(t,e){t.removeAttribute(e)},setProperty:function(t,e,n){t[e]=n},setText:function(t,e){t&&(t.textContent=e)},setClass:function(t,e,n){if(1===t.nodeType&&e)if(t.classList)n?t.classList.add(e):t.classList.remove(e);else{var i,o="string"===typeof t.className,r=o?t.className:this.getAttribute(t,"class")||"",a=r.split(" "),s=a.indexOf(e);n&&s<0&&(i=r?r+" "+e:e),!n&&s>=0&&(a.splice(s,1),i=a.join(" ")),void 0!==i&&(o?t.className=i:this.setAttribute(t,"class",i))}},setStyle:function(t,e,n){t.style[e]=n||""},_document:"undefined"===typeof document?void 0:document,getDocument:function(){return this._document},getActiveElement:function(){return this._document.activeElement},getBody:function(){return this._document.body},createDocumentFragment:function(){return this._document.createDocumentFragment()},getDocumentElement:function(){return this._document.documentElement},getLocation:function(){return this._document.location},getSelection:function(){return this._document.selection},getReadyState:function(){return this._document.readyState},getHead:function(){return this._document.head},hasDocumentProperty:function(t){return t in this._document},listen:function(t,e,n,i){return t&&"addEventListener"in t?(t.addEventListener(e,n,i),function(){t.removeEventListener(e,n)}):a.noop}};t.exports=(0,r.default)(l)},function(t,e,n){"use strict";var i=n(2).isDefined,o=n(5).each,r=n(54),a=n(51),s=function(t,e){return e?(Array.isArray(e)?e:e.toArray()).indexOf(t):-1};e.isEmpty=function(t){return Array.isArray(t)&&!t.length},e.wrapToArray=function(t){return Array.isArray(t)?t:[t]},e.intersection=function(t,e){if(!Array.isArray(t)||0===t.length||!Array.isArray(e)||0===e.length)return[];var n=[];return o(t,(function(t,i){-1!==s(i,e)&&n.push(i)})),n},e.removeDuplicates=function(t,e){if(!Array.isArray(t)||0===t.length)return[];if(!Array.isArray(e)||0===e.length)return t.slice();var n=[];return o(t,(function(t,i){-1===s(i,e)&&n.push(i)})),n},e.normalizeIndexes=function(t,e,n,s){var l={},u=0,c=a().useLegacyVisibleIndex;return o(t,(function(t,i){(t=i[e])>=0?(l[t]=l[t]||[],i===n?l[t].unshift(i):l[t].push(i)):i[e]=void 0})),c||o(t,(function(){if(!i(this[e])&&(!s||s(this))){for(;l[u];)u++;l[u]=[this],u++}})),u=0,r.orderEach(l,(function(t,n){o(n,(function(){t>=0&&(this[e]=u++)}))})),c&&o(t,(function(){i(this[e])||s&&!s(this)||(this[e]=u++)})),u},e.inArray=s,e.merge=function(t,e){for(var n=0;n<e.length;n++)t[t.length]=e[n];return t},e.find=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return t[n]}},function(t,e,n){"use strict";var i,o=n(3),r=n(51),a=n(15),s=n(10).getWindow(),l=n(6),u=n(16).inArray,c=n(2),d=c.isDefined,h=c.isRenderer,f=c.isWindow,p=n(355),m=function(t){return function(e){for(var n=o(e||"body"),i=n.filter(".dx-visibility-change-handler").add(n.find(".dx-visibility-change-handler")),r=0;r<i.length;r++)l.triggerHandler(i[r],t)}},g=function(){var t=0;return function(e){return(e||"")+t++}}(),_=function(t){var e=o(t).attr("data-options")||"";return r().optionsParser(e)},v=function(t){i=t};v((function(t){return t&&t.get(0)}));e.setPublicElementWrapper=v,e.resetActiveElement=function(){var t=a.getActiveElement(),e=a.getBody();if(t&&t!==e&&t.blur)try{t.blur()}catch(n){e.blur()}},e.createMarkupFromString=function(t){if(!s.WinJS)return o(p.parseHTML(t));var e=o("<div>");return s.WinJS.Utilities.setInnerHTMLUnsafe(e.get(0),t),e.contents()},e.triggerShownEvent=m("dxshown"),e.triggerHidingEvent=m("dxhiding"),e.triggerResizeEvent=m("dxresize"),e.getElementOptions=_,e.createComponents=function(t,e){var n=[];return t.find("[data-options]").add(t.filter("[data-options]")).each((function(t,i){var r=o(i),a=_(i);for(var s in a)(!e||u(s,e)>-1)&&r[s]&&(r[s](a[s]),n.push(r[s]("instance")))})),n},e.extractTemplateMarkup=function(t){var e=(t=o(t)).length&&t.filter((function(){var t=o(this);return t.is("script[type]")&&t.attr("type").indexOf("script")<0}));return e.length?e.eq(0).html():(t=o("<div>").append(t)).html()},e.normalizeTemplateElement=function t(e){var n=d(e)&&(e.nodeType||h(e))?o(e):o("<div>").html(e).contents();return 1===n.length&&(n.is("script")?n=t(n.html().trim()):n.is("table")&&(n=n.children("tbody").contents())),n},e.clearSelection=function(){var t=s.getSelection();if(t&&"Caret"!==t.type)if(t.empty)t.empty();else if(t.removeAllRanges)try{t.removeAllRanges()}catch(e){}},e.uniqueId=g,e.closestCommonParent=function(t,e){var n=o(t),i=o(e);if(n[0]===i[0])return n[0];for(var r=n.parents(),a=i.parents(),s=-Math.min(r.length,a.length);s<0;s++)if(r.get(s)===a.get(s))return r.get(s)},e.clipboardText=function(t,e){var n=t.originalEvent&&t.originalEvent.clipboardData||s.clipboardData;if(1===arguments.length)return n&&n.getData("Text");n&&n.setData("Text",e)},e.contains=function t(e,n){return!!n&&(a.isTextNode(n)&&(n=n.parentNode),a.isDocument(e)?e.documentElement.contains(n):f(e)?t(e.document,n):e.contains?e.contains(n):!!(n.compareDocumentPosition(e)&n.DOCUMENT_POSITION_CONTAINS))},e.getPublicElement=function(t){return i(t)},e.createTextElementHiddenCopy=function(t,e,n){var i=s.getComputedStyle(o(t).get(0)),r=n&&n.includePaddings;return o("<div>").text(e).css({fontStyle:i.fontStyle,fontVariant:i.fontVariant,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFamily:i.fontFamily,letterSpacing:i.letterSpacing,border:i.border,paddingTop:r?i.paddingTop:"",paddingRight:r?i.paddingRight:"",paddingBottom:r?i.paddingBottom:"",paddingLeft:r?i.paddingLeft:"",visibility:"hidden",whiteSpace:"nowrap",position:"absolute",float:"left"})}},function(t,e,n){"use strict";var i=m(n(3)),o=m(n(10)),r=n(0),a=n(2),s=n(5),l=m(n(38)),u=m(n(39)),c=m(n(213)),d=n(153),h=n(356),f=m(n(106)),p=m(n(51));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var _=o.default.getNavigator(),v=o.default.getWindow(),y={iPhone:"iPhone",iPhone5:"iPhone",iPhone6:"iPhone",iPhone6plus:"iPhone",iPad:"iPad",iPadMini:"iPad Mini",androidPhone:"Android Mobile",androidTablet:"Android",msSurface:"Windows ARM Tablet PC",desktop:"desktop"},b={deviceType:"desktop",platform:"generic",version:[],phone:!1,tablet:!1,android:!1,ios:!1,generic:!0,grade:"A",mac:!1},w={generic:function(t){var e=/windows phone/i.test(t)||t.match(/WPDesktop/),n=!e&&/Windows(.*)arm(.*)Tablet PC/i.test(t),i=!e&&!n&&/msapphost/i.test(t),o=/((intel|ppc) mac os x)/.test(t.toLowerCase());if(e||n||i||o)return{deviceType:e?"phone":n?"tablet":"desktop",platform:"generic",version:[],grade:"A",mac:o}},ios:function(t){if(/ip(hone|od|ad)/i.test(t)){var e=/ip(hone|od)/i.test(t),n=t.match(/os (\d+)_(\d+)_?(\d+)?/i);return{deviceType:e?"phone":"tablet",platform:"ios",version:n?[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3]||0,10)]:[],grade:480===v.screen.height?"B":"A"}}},android:function(t){if(/android|htc_|silk/i.test(t)){var e=/mobile/i.test(t),n=t.match(/android (\d+)\.?(\d+)?\.?(\d+)?/i),i=n?[parseInt(n[1],10),parseInt(n[2]||0,10),parseInt(n[3]||0,10)]:[];return{deviceType:e?"phone":"tablet",platform:"android",version:i,grade:i.length>1&&(i[0]<4||4===i[0]&&i[1]<4)?"B":"A"}}}},x=new(function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._window=(null===e||void 0===e?void 0:e.window)||v,this._realDevice=this._getDevice(),this._currentDevice=void 0,this._currentOrientation=void 0,this._eventsStrategy=new d.EventsStrategy(this),this.changed=(0,u.default)(),o.default.hasWindow()&&(this._recalculateOrientation(),c.default.add(this._recalculateOrientation.bind(this)))}var e,n,f;return e=t,(n=[{key:"current",value:function(t){if(t)return this._currentDevice=this._getDevice(t),this._forced=!0,void this.changed.fire();if(!this._currentDevice){t=void 0;try{t=this._getDeviceOrNameFromWindowScope()}catch(e){t=this._getDeviceNameFromSessionStorage()}finally{t||(t=this._getDeviceNameFromSessionStorage()),t&&(this._forced=!0)}this._currentDevice=this._getDevice(t)}return this._currentDevice}},{key:"real",value:function(t){return(0,r.extend)({},this._realDevice)}},{key:"orientation",value:function(){return this._currentOrientation}},{key:"isForced",value:function(){return this._forced}},{key:"isRippleEmulator",value:function(){return!!this._window.tinyHippos}},{key:"_getCssClasses",value:function(t){var e=[],n=this._realDevice;return(t=t||this.current()).deviceType&&(e.push("dx-device-".concat(t.deviceType)),"desktop"!==t.deviceType&&e.push("dx-device-mobile")),e.push("dx-device-".concat(n.platform)),n.version&&n.version.length&&e.push("dx-device-".concat(n.platform,"-").concat(n.version[0])),this.isSimulator()&&e.push("dx-simulator"),(0,p.default)().rtlEnabled&&e.push("dx-rtl"),e}},{key:"attachCssClasses",value:function(t,e){this._deviceClasses=this._getCssClasses(e).join(" "),(0,i.default)(t).addClass(this._deviceClasses)}},{key:"detachCssClasses",value:function(t){(0,i.default)(t).removeClass(this._deviceClasses)}},{key:"isSimulator",value:function(){try{return this._isSimulator||o.default.hasWindow()&&this._window.top!==this._window.self&&this._window.top["dx-force-device"]||this.isRippleEmulator()}catch(t){return!1}}},{key:"forceSimulator",value:function(){this._isSimulator=!0}},{key:"_getDevice",value:function(t){if("genericPhone"===t&&(t={deviceType:"phone",platform:"generic",generic:!0}),(0,a.isPlainObject)(t))return this._fromConfig(t);var e;if(t){if(!(e=y[t]))throw l.default.Error("E0005")}else e=_.userAgent;return this._fromUA(e)}},{key:"_getDeviceOrNameFromWindowScope",value:function(){var t;return o.default.hasWindow()&&(this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"])&&(t=this._window.top["dx-force-device-object"]||this._window.top["dx-force-device"]),t}},{key:"_getDeviceNameFromSessionStorage",value:function(){var t=(0,h.sessionStorage)();if(t){var e=t.getItem("dx-force-device");try{return JSON.parse(e)}catch(n){return e}}}},{key:"_fromConfig",value:function(t){var e=(0,r.extend)({},b,this._currentDevice,t),n={phone:"phone"===e.deviceType,tablet:"tablet"===e.deviceType,android:"android"===e.platform,ios:"ios"===e.platform,generic:"generic"===e.platform};return(0,r.extend)(e,n)}},{key:"_fromUA",value:function(t){var e;return(0,s.each)(w,(function(n,i){return!(e=i(t))})),e?this._fromConfig(e):b}},{key:"_changeOrientation",value:function(){var t=(0,i.default)(this._window),e=t.height()>t.width()?"portrait":"landscape";this._currentOrientation!==e&&(this._currentOrientation=e,this._eventsStrategy.fireEvent("orientationChanged",[{orientation:e}]))}},{key:"_recalculateOrientation",value:function(){var t=(0,i.default)(this._window).width();this._currentWidth!==t&&(this._currentWidth=t,this._changeOrientation())}},{key:"on",value:function(t,e){return this._eventsStrategy.on(t,e),this}},{key:"off",value:function(t,e){return this._eventsStrategy.off(t,e),this}}])&&g(e.prototype,n),f&&g(e,f),t}());f.default.changeCallback.add((function(t,e){x.detachCssClasses(e),x.attachCssClasses(t)})),t.exports=x,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(367),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){var t=o.Children.map(this.props.children,(function(t){return r.getElementInfo(t).type===r.ElementType.Option?t:null}));return o.createElement(o.Fragment,{},t)},e}(o.PureComponent);e.default=a},function(t,e,n){"use strict";var i=p(n(3)),o=p(n(155)),r=p(n(97)),a=n(158),s=n(4),l=n(5),u=n(0),c=n(91),d=n(16),h=n(11),f=n(2);function p(t){return t&&t.__esModule?t:{default:t}}function m(t,e,n){t="role"===t||"id"===t?t:"aria-".concat(t),e=(0,f.isDefined)(e)?e.toString():null,n.attr(t,e)}n(25),n(159),n(216);var g=r.default.inherit({_feedbackHideTimeout:400,_feedbackShowTimeout:30,_supportedKeys:function(){return{}},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{hoveredElement:null,isActive:!1,disabled:!1,visible:!0,hint:void 0,activeStateEnabled:!1,onContentReady:null,hoverStateEnabled:!1,focusStateEnabled:!1,tabIndex:0,accessKey:null,onFocusIn:null,onFocusOut:null,onKeyboardHandled:null,ignoreParentReadOnly:!1})},_init:function(){this.callBase(),this._initContentReadyAction()},_innerWidgetOptionChanged:function(t,e){var n=g.getOptionsFromContainer(e);t&&t.option(n),this._options.cache(e.name,n)},_bindInnerWidgetOptions:function(t,e){var n=this,i=function(){return n._options.silent(e,(0,u.extend)({},t.option()))};i(),t.on("optionChanged",i)},_getAriaTarget:function(){return this._focusTarget()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){var t=this.option(),e=t.disabled,n=t.visible;this.$element().addClass("dx-widget"),this._toggleDisabledState(e),this._toggleVisibility(n),this._renderHint(),this._isFocusable()&&this._renderFocusTarget(),this.callBase()},_render:function(){this.callBase(),this._renderContent(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents(),this._toggleIndependentState()},_renderHint:function(){var t=this.option().hint;this.$element().attr("title",t||null)},_renderContent:function(){var t=this;(0,s.deferRender)((function(){return t._disposed?void 0:t._renderContentImpl()})).done((function(){return t._disposed?void 0:t._fireContentReadyAction()}))},_renderContentImpl:s.noop,_fireContentReadyAction:(0,s.deferRenderer)((function(){return this._contentReadyAction()})),_dispose:function(){this._contentReadyAction=null,this._detachKeyboardEvents(),this.callBase()},_resetActiveState:function(){this._toggleActiveState(this._eventBindingTarget(),!1)},_clean:function(){this._cleanFocusState(),this._resetActiveState(),this.callBase(),this.$element().empty()},_toggleVisibility:function(t){this.$element().toggleClass("dx-state-invisible",!t),this.setAria("hidden",!t||void 0)},_renderFocusState:function(){this._attachKeyboardEvents(),this._isFocusable()&&(this._renderFocusTarget(),this._attachFocusEvents(),this._renderAccessKey())},_renderAccessKey:function(){var t=this,e=this._focusTarget(),n=this.option().accessKey;e.attr("accesskey",n),a.dxClick.off(e,{namespace:"UIFeedback"}),n&&a.dxClick.on(e,(function(e){(0,h.isFakeClickEvent)(e)&&(e.stopImmediatePropagation(),t.focus())}),{namespace:"UIFeedback"})},_isFocusable:function(){var t=this.option(),e=t.focusStateEnabled,n=t.disabled;return e&&!n},_eventBindingTarget:function(){return this.$element()},_focusTarget:function(){return this._getActiveElement()},_getActiveElement:function(){var t=this._eventBindingTarget();return this._activeStateUnit?t.find(this._activeStateUnit).not(".dx-state-disabled"):t},_renderFocusTarget:function(){var t=this.option().tabIndex;this._focusTarget().attr("tabIndex",t)},_keyboardEventBindingTarget:function(){return this._eventBindingTarget()},_refreshFocusEvent:function(){this._detachFocusEvents(),this._attachFocusEvents()},_focusEventTarget:function(){return this._focusTarget()},_focusInHandler:function(t){var e=this;t.isDefaultPrevented()||this._createActionByOption("onFocusIn",{beforeExecute:function(){return e._updateFocusState(t,!0)},excludeValidators:["readOnly"]})({event:t})},_focusOutHandler:function(t){var e=this;t.isDefaultPrevented()||this._createActionByOption("onFocusOut",{beforeExecute:function(){return e._updateFocusState(t,!1)},excludeValidators:["readOnly","disabled"]})({event:t})},_updateFocusState:function(t,e){var n=t.target;-1!==(0,d.inArray)(n,this._focusTarget())&&this._toggleFocusClass(e,(0,i.default)(n))},_toggleFocusClass:function(t,e){(e&&e.length?e:this._focusTarget()).toggleClass("dx-state-focused",t)},_hasFocusClass:function(t){return(0,i.default)(t||this._focusTarget()).hasClass("dx-state-focused")},_isFocused:function(){return this._hasFocusClass()},_getKeyboardListeners:function(){return[]},_attachKeyboardEvents:function(){var t=this;this._detachKeyboardEvents();var e=this.option(),n=e.focusStateEnabled,i=e.onKeyboardHandled,o=this._getKeyboardListeners().length;(n||o||!!i)&&(this._keyboardListenerId=a.keyboard.on(this._keyboardEventBindingTarget(),this._focusTarget(),(function(e){return t._keyboardHandler(e)})))},_keyboardHandler:function(t,e){if(!e){var n=t.originalEvent,i=t.keyName,o=t.which,r=this._supportedKeys(n),a=r[i]||r[o];if(void 0!==a)if(!a.bind(this)(n,t))return!1}var s=this._getKeyboardListeners(),l=this.option().onKeyboardHandled;return s.forEach((function(e){return e&&e._keyboardHandler(t)})),l&&l(t),!0},_refreshFocusState:function(){this._cleanFocusState(),this._renderFocusState()},_cleanFocusState:function(){this._focusTarget().removeAttr("tabIndex"),this._toggleFocusClass(!1),this._detachFocusEvents(),this._detachKeyboardEvents()},_detachKeyboardEvents:function(){a.keyboard.off(this._keyboardListenerId),this._keyboardListenerId=null},_attachHoverEvents:function(){var t=this,e=this.option().hoverStateEnabled,n=this._activeStateUnit,r=this._eventBindingTarget();a.hover.off(r,{selector:n,namespace:"UIFeedback"}),e&&a.hover.on(r,new o.default((function(e){var n=e.event,o=e.element;t._hoverStartHandler(n),t.option("hoveredElement",(0,i.default)(o))}),{excludeValidators:["readOnly"]}),(function(e){t.option("hoveredElement",null),t._hoverEndHandler(e)}),{selector:n,namespace:"UIFeedback"})},_attachFeedbackEvents:function(){var t=this,e=this.option().activeStateEnabled,n=this._activeStateUnit,r=this._eventBindingTarget();a.active.off(r,{namespace:"UIFeedback",selector:n}),e&&a.active.on(r,new o.default((function(e){var n=e.event,o=e.element;return t._toggleActiveState((0,i.default)(o),!0,n)})),new o.default((function(e){var n=e.event,o=e.element;return t._toggleActiveState((0,i.default)(o),!1,n)}),{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:n,namespace:"UIFeedback"})},_detachFocusEvents:function(){var t=this._focusEventTarget();a.focus.off(t,{namespace:"".concat(this.NAME,"Focus")})},_attachFocusEvents:function(){var t=this,e=this._focusEventTarget();a.focus.on(e,(function(e){return t._focusInHandler(e)}),(function(e){return t._focusOutHandler(e)}),{namespace:"".concat(this.NAME,"Focus"),isFocusable:function(t){return(0,i.default)(t).is(c.focusable)}})},_hoverStartHandler:s.noop,_hoverEndHandler:s.noop,_toggleActiveState:function(t,e){this.option("isActive",e),t.toggleClass("dx-state-active",e)},_updatedHover:function(){var t=this._options.silent("hoveredElement");this._hover(t,t)},_findHoverTarget:function(t){return t&&t.closest(this._activeStateUnit||this._eventBindingTarget())},_hover:function(t,e){var n=this.option(),i=n.hoverStateEnabled,o=n.disabled,r=n.isActive;if((e=this._findHoverTarget(e))&&e.toggleClass("dx-state-hover",!1),t&&i&&!o&&!r){var a=this._findHoverTarget(t);a&&a.toggleClass("dx-state-hover",!0)}},_toggleDisabledState:function(t){this.$element().toggleClass("dx-state-disabled",Boolean(t)),this.setAria("disabled",t||void 0)},_toggleIndependentState:function(){this.$element().toggleClass("dx-state-independent",this.option("ignoreParentReadOnly"))},_setWidgetOption:function(t,e){var n=this;if(this[t])if((0,f.isPlainObject)(e[0]))(0,l.each)(e[0],(function(e,i){return n._setWidgetOption(t,[e,i])}));else{var i=e[0],o=e[1];1===e.length&&(o=this.option(i));var r=this["".concat(t,"OptionMap")];this[t].option(r?r(i):i,o)}},_optionChanged:function(t){var e=t.name,n=t.value,i=t.previousValue;switch(e){case"disabled":this._toggleDisabledState(n),this._updatedHover(),this._refreshFocusState();break;case"hint":this._renderHint();break;case"ignoreParentReadOnly":this._toggleIndependentState();break;case"activeStateEnabled":this._attachFeedbackEvents();break;case"hoverStateEnabled":this._attachHoverEvents(),this._updatedHover();break;case"tabIndex":case"focusStateEnabled":this._refreshFocusState();break;case"onFocusIn":case"onFocusOut":break;case"accessKey":this._renderAccessKey();break;case"hoveredElement":this._hover(n,i);break;case"isActive":this._updatedHover();break;case"visible":this._toggleVisibility(n),this._isVisibilityChangeSupported()&&this._checkVisibilityChanged(n?"shown":"hiding");break;case"onKeyboardHandled":this._attachKeyboardEvents();break;case"onContentReady":this._initContentReadyAction();break;default:this.callBase(t)}},_isVisible:function(){var t=this.option().visible;return this.callBase()&&t},beginUpdate:function(){this._ready(!1),this.callBase()},endUpdate:function(){this.callBase(),this._initialized&&this._ready(!0)},_ready:function(t){if(0===arguments.length)return this._isReady;this._isReady=t},setAria:function(){if((0,f.isPlainObject)(arguments.length<=0?void 0:arguments[0])){var t=(arguments.length<=1?void 0:arguments[1])||this._getAriaTarget();(0,l.each)(arguments.length<=0?void 0:arguments[0],(function(e,n){return m(e,n,t)}))}else m(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],(arguments.length<=2?void 0:arguments[2])||this._getAriaTarget())},isReady:function(){return this._ready()},repaint:function(){this._refresh()},focus:function(){a.focus.trigger(this._focusTarget())},registerKeyHandler:function(t,e){var n=this._supportedKeys();this._supportedKeys=function(){return(0,u.extend)(n,function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,e))}}});g.getOptionsFromContainer=function(t){var e=t.name,n=t.fullName,i=t.value,o={};e===n?o=i:o[n.split(".").pop()]=i;return o},t.exports=g},function(t,e,n){"use strict";var i=n(38),o=n(2),r=function(t,e,n){return function(){var i=this.callBase;this.callBase=t[e];try{return n.apply(this,arguments)}finally{this.callBase=i}}},a=function(t){var e,n,i;if(!t)return this;for(n in t)i=t[n],e="function"===typeof this.prototype[n]&&"function"===typeof i,this.prototype[n]=e?r(this.parent.prototype,n,i):i;return this},s=function(){var t,e,n,i=this,o=Object.prototype.hasOwnProperty.bind(i),r=!o("_includedCtors")&&!o("_includedPostCtors");for(r&&(i._includedCtors=i._includedCtors.slice(0),i._includedPostCtors=i._includedPostCtors.slice(0)),n=0;n<arguments.length;n++)for(e in(t=arguments[n]).ctor&&i._includedCtors.push(t.ctor),t.postCtor&&i._includedPostCtors.push(t.postCtor),t)"ctor"!==e&&"postCtor"!==e&&(i.prototype[e]=t[e]);return i},l=function(t){if(!Object.prototype.hasOwnProperty.bind(this)("parent")&&this.parent){var e=Object.getPrototypeOf(this);return e===t||e.subclassOf(t)}return this.parent===t||!(!this.parent||!this.parent.subclassOf)&&this.parent.subclassOf(t)},u=function(){throw i.Error("E0001")},c=function(){var t=Object.prototype.hasOwnProperty;return function(e,n){for(var i in e){if(!t.call(e,i))return;n[i]=e[i]}}}(),d=function(){};d.inherit=function(t){var e=function(){if(!this||o.isWindow(this)||"function"!==typeof this.constructor)throw i.Error("E0003");var t,e=this,n=e.ctor,r=e.constructor._includedCtors,a=e.constructor._includedPostCtors;for(t=0;t<r.length;t++)r[t].call(e);for(n&&n.apply(e,arguments),t=0;t<a.length;t++)a[t].call(e)};return e.prototype=function(t){var e=function(){};return e.prototype=t.prototype,new e}(this),c(this,e),e.inherit=this.inherit,e.abstract=u,e.redefine=a,e.include=s,e.subclassOf=l,e.parent=this,e._includedCtors=this._includedCtors?this._includedCtors.slice(0):[],e._includedPostCtors=this._includedPostCtors?this._includedPostCtors.slice(0):[],e.prototype.constructor=e,e.redefine(t),e},d.abstract=u,t.exports=d},function(t,e){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var i=n(211),o=n(38);t.exports=i(o.ERROR_MESSAGES,{E1001:"Module '{0}'. Controller '{1}' is already registered",E1002:"Module '{0}'. Controller '{1}' does not inherit from DevExpress.ui.dxDataGrid.Controller",E1003:"Module '{0}'. View '{1}' is already registered",E1004:"Module '{0}'. View '{1}' does not inherit from DevExpress.ui.dxDataGrid.View",E1005:"Public method '{0}' is already registered",E1006:"Public method '{0}.{1}' does not exist",E1007:"State storing cannot be provided due to the restrictions of the browser",E1010:"The template does not contain the TextBox widget",E1011:'Items cannot be deleted from the List. Implement the "remove" function in the data store',E1012:"Editing type '{0}' with the name '{1}' is unsupported",E1016:"Unexpected type of data source is provided for a lookup column",E1018:"The 'collapseAll' method cannot be called if you use a remote data source",E1019:"Search mode '{0}' is unavailable",E1020:"The type cannot be changed after initialization",E1021:"{0} '{1}' you are trying to remove does not exist",E1022:'The "markers" option is given an invalid value. Assign an array instead',E1023:'The "routes" option is given an invalid value. Assign an array instead',E1025:"This layout is too complex to render",E1026:'The "calculateCustomSummary" function is missing from a field whose "summaryType" option is set to "custom"',E1030:"Unknown ScrollView refresh strategy: '{0}'",E1031:"Unknown subscription in the Scheduler widget: '{0}'",E1032:"Unknown start date in an appointment: '{0}'",E1033:"Unknown step in the date navigator: '{0}'",E1034:"The browser does not implement an API for saving files",E1035:"The editor cannot be created because of an internal error: {0}",E1037:"Invalid structure of grouped data",E1038:"The browser does not support local storages for local web pages",E1039:"A cell's position cannot be calculated",E1040:"The '{0}' key value is not unique within the data array",E1041:"The '{0}' script is referenced after the DevExtreme scripts or not referenced at all",E1042:"{0} requires the key field to be specified",E1043:"Changes cannot be processed due to the incorrectly set key",E1044:"The key field specified by the keyExpr option does not match the key field specified in the data store",E1045:"Editing requires the key field to be specified in the data store",E1046:"The '{0}' key field is not found in data objects",E1047:'The "{0}" field is not found in the fields array',E1048:'The "{0}" operation is not found in the filterOperations array',E1049:"Column '{0}': filtering is allowed but the 'dataField' or 'name' option is not specified",E1050:"The validationRules option does not apply to third-party editors defined in the editCellTemplate",E1051:'HtmlEditor\'s valueType is "{0}", but the {0} converter was not imported.',E1052:'{0} should have the "dataSource" option specified',E1053:'The "buttons" option accepts an array that contains only objects or string values',E1054:"All text editor buttons must have names",E1055:'One or several text editor buttons have invalid or non-unique "name" values',E1056:'The {0} widget does not support buttons of the "{1}" type',E1058:'The "startDayHour" must be earlier than the "endDayHour"',W1001:'The "key" option cannot be modified after initialization',W1002:"An item with the key '{0}' does not exist",W1003:"A group with the key '{0}' in which you are trying to select items does not exist",W1004:"The item '{0}' you are trying to select in the group '{1}' does not exist",W1005:"Due to column data types being unspecified, data has been loaded twice in order to apply initial filter settings. To resolve this issue, specify data types for all grid columns.",W1006:"The map service returned the following error: '{0}'",W1007:"No item with key {0} was found in the data source, but this key was used as the parent key for item {1}",W1008:"Cannot scroll to the '{0}' date because it does not exist on the current view",W1009:"Searching works only if data is specified using the dataSource option",W1010:"The capability to select all items works with source data of plain structure only",W1011:'The "keyExpr" option is not applied when dataSource is not an array',W1012:"The '{0}' key field is not found in data objects",W1013:'The "message" field in the dialog component was renamed to "messageHtml". Change your code correspondingly. In addition, if you used HTML code in the message, make sure that it is secure',W1014:"The Floating Action Button exceeds the recommended speed dial action count. If you need to display more speed dial actions, increase the maxSpeedDialActionCount option value in the global config.",W1015:'The "cellDuration" should divide the range from the "startDayHour" to the "endDayHour" into even intervals'})},function(t,e,n){"use strict";var i=r(n(51)),o=r(n(2));function r(t){return t&&t.__esModule?t:{default:t}}e.getDefaultAlignment=function(t){return(null!==t&&void 0!==t?t:(0,i.default)().rtlEnabled)?"right":"left"},e.getBoundingRect=function(t){if(o.default.isWindow(t))return{width:t.outerWidth,height:t.outerHeight};var e;try{e=t.getBoundingClientRect()}catch(n){e={width:0,height:0,bottom:0,top:0,left:0,right:0}}return e}},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(18),a=n(15),s=n(17),l=n(184),u=n(11),c=n(28),d=n(186),h=n(131),f=n(187).compare,p=Math.abs,m=function(t){return i(t).is("input, textarea, select, button ,:focus, :focus *")},g={requestAnimationFrame:l.requestAnimationFrame,cancelAnimationFrame:l.cancelAnimationFrame},_=d.inherit({ctor:function(t){this.callBase(t),this._makeElementClickable(i(t))},_makeElementClickable:function(t){t.attr("onclick")||t.attr("onclick","void(0)")},start:function(t){this._blurPrevented=t.isDefaultPrevented(),this._startTarget=t.target,this._startEventData=u.eventData(t)},end:function(t){this._eventOutOfElement(t,this.getElement().get(0))||t.type===c.cancel?this._cancel(t):(m(t.target)||this._blurPrevented||s.resetActiveElement(),this._accept(t),this._clickAnimationFrame=g.requestAnimationFrame(function(){this._fireClickEvent(t)}.bind(this)))},_eventOutOfElement:function(t,e){var n=t.target,i=!s.contains(e,n)&&e!==n,o=u.eventDelta(u.eventData(t),this._startEventData),r=p(o.x)>10||p(o.y)>10;return i||r},_fireClickEvent:function(t){this._fireEvent("dxclick",t,{target:s.closestCommonParent(this._startTarget,t.target)})},dispose:function(){g.cancelAnimationFrame(this._clickAnimationFrame)}});!function(){var t=r.real(),e=t.generic||t.ios&&f(t.version,[9,3])>=0||t.android&&f(t.version,[5])>=0,n=function(t){return e||i(t).closest(".dx-native-click").length},a=null,s=null,l=function(t){var e=t.originalEvent,i=s===e||e&&e.DXCLICK_FIRED;(!t.which||1===t.which)&&!a&&n(t.target)&&!i&&(e&&(e.DXCLICK_FIRED=!0),s=e,u.fireEvent({type:"dxclick",originalEvent:t}))};_=_.inherit({_makeElementClickable:function(t){n(t)||this.callBase(t),o.on(t,"click",l)},configure:function(t){this.callBase(t),t.useNative&&this.getElement().addClass("dx-native-click")},start:function(t){a=null,n(t.target)||this.callBase(t)},end:function(t){n(t.target)||this.callBase(t)},cancel:function(){a=!0},dispose:function(){this.callBase(),o.off(this.getElement(),"click",l)}})}(),function(){if(!r.real().generic){var t=null,e=!1,n=a.getDocument();o.subscribeGlobal(n,u.addNamespace(c.down,"NATIVE_CLICK_FIXER"),(function(n){t=n.target,e=n.isDefaultPrevented()})),o.subscribeGlobal(n,u.addNamespace("click","NATIVE_CLICK_FIXER"),(function(n){var o=i(n.target);e||!t||o.is(t)||i(t).is("label")||!m(o)||s.resetActiveElement(),t=null,e=!1}))}}(),h({emitter:_,bubble:!0,events:["dxclick"]}),e.name="dxclick"},function(t,e,n){"use strict";var i=n(2),o=n(37).adjust,r=n(5).each,a=n(46).camelize,s=i.isObject,l=i.isString,u=i.isDate,c=i.isDefined,d=["millisecond","second","minute","hour","day","week","month","quarter","year"],h=function t(e){switch(e){case"millisecond":return 1;case"second":return 1e3*t("millisecond");case"minute":return 60*t("second");case"hour":return 60*t("minute");case"day":return 24*t("hour");case"week":return 7*t("day");case"month":return 30*t("day");case"quarter":return 3*t("month");case"year":return 365*t("day");default:return 0}},f=function(t){var e,n,i,o=["millisecond","second","minute","hour","day","month","year"],r={};for(e=o.length-1;e>=0;e--)i=o[e],(n=Math.floor(t/h(i)))>0&&(r[i+"s"]=n,t-=p(i,n));return r};function p(t,e){return h(t)*e}function m(t){var e,n=-1;return l(t)?t:s(t)?(r(t,(function(t,i){for(e=0;e<d.length;e++)i&&(t===d[e]+"s"||t===d[e])&&n<e&&(n=e)})),d[n]):""}var g={millisecond:"millisecond",second:"longtime",minute:"shorttime",hour:"shorttime",day:"day",week:"day",month:"month",quarter:"quarter",year:"year"};var _=function(t){return Math.floor(t/3)},v=function(t){return 3*_(t)};function y(t,e,n,i){t=new Date(t.getTime());var o,r,a=new Date(t.getTime()),s=m(e);switch(s){case"second":t=new Date(1e3*Math.floor(a.getTime()/1e3));break;case"minute":t=new Date(6e4*Math.floor(a.getTime()/6e4));break;case"hour":t=new Date(36e5*Math.floor(a.getTime()/36e5));break;case"year":t.setMonth(0);case"month":t.setDate(1);case"day":t.setHours(0,0,0,0);break;case"week":(t=O(t,i||0)).setHours(0,0,0,0);break;case"quarter":o=v(t.getMonth()),r=t.getMonth(),t.setDate(1),t.setHours(0,0,0,0),r!==o&&t.setMonth(o)}return n&&"hour"!==s&&"minute"!==s&&"second"!==s&&P(a,t),t}function b(t){return y(t,"day")}function w(t,e,n){var o=new Date(t.getTime()),r=l(e)?S(e.toLowerCase()):i.isNumeric(e)?f(e):e;return r.years&&o.setFullYear(o.getFullYear()+r.years*n),r.quarters&&o.setMonth(o.getMonth()+3*r.quarters*n),r.months&&o.setMonth(o.getMonth()+r.months*n),r.weeks&&o.setDate(o.getDate()+7*r.weeks*n),r.days&&o.setDate(o.getDate()+r.days*n),r.hours&&o.setTime(o.getTime()+36e5*r.hours*n),r.minutes&&o.setTime(o.getTime()+6e4*r.minutes*n),r.seconds&&o.setTime(o.getTime()+1e3*r.seconds*n),r.milliseconds&&o.setTime(o.getTime()+r.milliseconds*n),o}var x=function(t,e,n){var i=n?-1:1;return u(t)?w(t,e,i):o(t+e*i,e)};function C(t){return new Date(t.getFullYear(),t.getMonth()+1,0).getDate()}function S(t){var e={};switch(t){case"year":e.years=1;break;case"month":e.months=1;break;case"quarter":e.months=3;break;case"week":e.weeks=1;break;case"day":e.days=1;break;case"hour":e.hours=1;break;case"minute":e.minutes=1;break;case"second":e.seconds=1;break;case"millisecond":e.milliseconds=1}return e}function k(t,e){return I(t,e)&&t.getMonth()===e.getMonth()}function I(t,e){return t&&e&&t.getFullYear()===e.getFullYear()}function T(t){return t&&t.getFullYear()-t.getFullYear()%100}function E(t){return t&&t.getFullYear()-t.getFullYear()%10}function O(t,e){var n=(t.getDay()-e+7)%7,i=new Date(t);return i.setDate(t.getDate()-n),i}function M(t,e,n){var i=t;return c(t)?(c(e)&&t<e&&(i=e),c(n)&&t>n&&(i=n),i):t}function P(t,e){if(c(t)){var n=e.getHours()-t.getHours();if(0!==n){var i=1===n||-23===n?-1:1,o=new Date(e.getTime()+36e5*i);(i>0||o.getDate()===e.getDate())&&e.setTime(o.getTime())}}}function D(t,e){return 60*(e.getTimezoneOffset()-t.getTimezoneOffset())*1e3}var A={dateUnitIntervals:d,convertMillisecondsToDateUnits:f,dateToMilliseconds:function(t){var e=0;return s(t)&&r(t,(function(t,n){e+=p(t.substr(0,t.length-1),n)})),l(t)&&(e=p(t,1)),e},getNextDateUnit:function(t,e){switch(m(t)){case"millisecond":return"second";case"second":return"minute";case"minute":return"hour";case"hour":return"day";case"day":return e?"week":"month";case"week":return"month";case"month":return"quarter";case"quarter":case"year":return"year";default:return 0}},convertDateUnitToMilliseconds:p,getDateUnitInterval:m,getDateFormatByTickInterval:function(t){return g[m(t)]||""},getDatesDifferences:function(t,e){var n=0,i={year:t.getFullYear()!==e.getFullYear(),month:t.getMonth()!==e.getMonth(),day:t.getDate()!==e.getDate(),hour:t.getHours()!==e.getHours(),minute:t.getMinutes()!==e.getMinutes(),second:t.getSeconds()!==e.getSeconds(),millisecond:t.getMilliseconds()!==e.getMilliseconds()};return r(i,(function(t,e){e&&n++})),0===n&&0!==D(t,e)&&(i.hour=!0,n++),i.count=n,i},correctDateWithUnitBeginning:y,trimTime:b,setToDayEnd:function(t){var e=b(t);return e.setDate(e.getDate()+1),new Date(e.getTime()-1)},roundDateByStartDayHour:function(t,e){var n=this.dateTimeFromDecimal(e),i=new Date(t);return(t.getHours()===n.hours&&t.getMinutes()<n.minutes||t.getHours()<n.hours)&&i.setHours(n.hours,n.minutes,0,0),i},dateTimeFromDecimal:function(t){return{hours:Math.floor(t),minutes:t%1*60}},addDateInterval:w,addInterval:x,getSequenceByInterval:function(t,e,n){var i,o=[];for(o.push(u(t)?new Date(t.getTime()):t),i=t;i<e;)i=x(i,n),o.push(i);return o},getDateIntervalByString:S,sameDate:function(t,e){return k(t,e)&&t.getDate()===e.getDate()},sameMonthAndYear:k,sameMonth:k,sameYear:I,sameDecade:function(t,e){if(c(t)&&c(e)){var n=t.getFullYear()-t.getFullYear()%10,i=e.getFullYear()-e.getFullYear()%10;return t&&e&&n===i}},sameCentury:function(t,e){if(c(t)&&c(e)){var n=t.getFullYear()-t.getFullYear()%100,i=e.getFullYear()-e.getFullYear()%100;return t&&e&&n===i}},getDifferenceInMonth:function(t){var e=1;return"year"===t&&(e=12),"decade"===t&&(e=120),"century"===t&&(e=1200),e},getDifferenceInMonthForCells:function(t){var e=1;return"decade"===t&&(e=12),"century"===t&&(e=120),e},getFirstYearInDecade:E,getFirstDecadeInCentury:T,getShortDateFormat:function(){return"yyyy/MM/dd"},getViewFirstCellDate:function(t,e){return"month"===t?new Date(e.getFullYear(),e.getMonth(),1):"year"===t?new Date(e.getFullYear(),0,e.getDate()):"decade"===t?new Date(E(e),e.getMonth(),e.getDate()):"century"===t?new Date(T(e),e.getMonth(),e.getDate()):void 0},getViewLastCellDate:function(t,e){return"month"===t?new Date(e.getFullYear(),e.getMonth(),C(e)):"year"===t?new Date(e.getFullYear(),11,e.getDate()):"decade"===t?new Date(E(e)+9,e.getMonth(),e.getDate()):"century"===t?new Date(T(e)+90,e.getMonth(),e.getDate()):void 0},getViewDown:function(t){switch(t){case"century":return"decade";case"decade":return"year";case"year":return"month"}},getViewUp:function(t){switch(t){case"month":return"year";case"year":return"decade";case"decade":return"century"}},getLastMonthDay:C,getLastMonthDate:function(t){if(c(t))return new Date(t.getFullYear(),t.getMonth()+1,0)},getFirstMonthDate:function(t){if(c(t))return new Date(t.getFullYear(),t.getMonth(),1)},getFirstWeekDate:O,normalizeDateByWeek:function(t,e){var n=A.getDatesInterval(t,e,"day"),i=new Date(t);return n>=6&&(i=new Date(i.setDate(i.getDate()+7))),i},getQuarter:_,getFirstQuarterMonth:v,dateInRange:function(t,e,n,i){return"date"===i&&(e=e&&A.correctDateWithUnitBeginning(e,"day"),n=n&&A.correctDateWithUnitBeginning(n,"day"),t=t&&A.correctDateWithUnitBeginning(t,"day")),M(t,e,n)===t},roundToHour:function(t){return t.setHours(t.getHours()+1),t.setMinutes(0),t},normalizeDate:M,getViewMinBoundaryDate:function(t,e){var n=new Date(e.getFullYear(),e.getMonth(),1);return"month"===t?n:(n.setMonth(0),"year"===t||("decade"===t&&n.setFullYear(E(e)),"century"===t&&n.setFullYear(T(e))),n)},getViewMaxBoundaryDate:function(t,e){var n=new Date(e);return n.setDate(C(e)),"month"===t?n:(n.setMonth(11),n.setDate(C(n)),"year"===t||("decade"===t&&n.setFullYear(E(e)+9),"century"===t&&n.setFullYear(T(e)+99)),n)},fixTimezoneGap:P,getTimezonesDifference:D,makeDate:function(t){return new Date(t)},getDatesInterval:function(t,e,n){var i=e.getTime()-t.getTime(),o=h(n)||1;return Math.floor(i/o)},getDatesOfInterval:function(t,e,n){var i=[],o=new Date(t.getTime());for(t.getTime()===e.getTime()&&i.push(new Date(t.getTime()));o<e;)i.push(new Date(o.getTime())),o=this.addInterval(o,n);return i},sameView:function(t,e,n){return A[a("same "+t)](e,n)}};t.exports=A},function(t,e,n){"use strict";var i=n(0),o=a(n(40)),r=a(n(44));function a(t){return t&&t.__esModule?t:{default:t}}(0,i.extend)(e,r.default,o.default,{modules:[]})},function(t,e,n){"use strict";var i=h(n(58)),o=n(5),r=h(n(31)),a=h(n(18)),s=h(n(114)),l=h(n(357)),u=h(n(621)),c=h(n(359)),d=h(n(622));function h(t){return t&&t.__esModule?t:{default:t}}var f=function(t,e,n){if(t.pointerEvents&&n.msie)return u.default;var i=e.tablet,o=e.phone;return!t.touch||i||o?t.touch?l.default:c.default:d.default}(i.default,a.default.real(),r.default);(0,o.each)(f.map,(function(t,e){(0,s.default)(t,new f(t,e))}));t.exports={down:"dxpointerdown",up:"dxpointerup",move:"dxpointermove",cancel:"dxpointercancel",enter:"dxpointerenter",leave:"dxpointerleave",over:"dxpointerover",out:"dxpointerout"}},function(t,e,n){"use strict";var i=n(38),o=n(21),r=n(54),a=n(2),s=n(5).each,l=n(129),u=l.unwrap,c=l.isWrapped,d=l.assign,h=function(t){return t.replace(/\[/g,".").replace(/\]/g,"")},f=function(t,e,n,o){if("this"===e)throw new i.Error("E4016");var r=t[e];o.unwrapObservables&&c(r)?d(r,n):t[e]=n},p=function(t){return(t=t||{}).unwrapObservables=void 0===t.unwrapObservables||t.unwrapObservables,t};function m(t,e){return e.unwrapObservables?u(t):t}var g=function(t){if(arguments.length>1&&(t=[].slice.call(arguments)),!t||"this"===t)return function(t){return t};if("string"===typeof t){var e=(t=h(t)).split(".");return function(t,n){for(var i=(n=p(n)).functionsAsIs,o=("defaultValue"in n),r=m(t,n),s=0;s<e.length;s++){if(!r){if(null==r&&o)return n.defaultValue;break}var l=e[s];if(o&&a.isObject(r)&&!(l in r))return n.defaultValue;var u=m(r[l],n);!i&&a.isFunction(u)&&(u=u.call(r)),r=u}return r}}return Array.isArray(t)?_(t):a.isFunction(t)?t:void 0};function _(t){for(var e={},n=0,i=t.length;n<i;n++){var o=t[n];e[o]=g(o)}return function(t,n){var i;return s(e,(function(e){var o=this(t,n);if(void 0!==o){for(var r=i||(i={}),a=e.split("."),s=a.length-1,l=0;l<s;l++){var u=a[l];u in r||(r[u]={}),r=r[u]}r[a[s]]=o}})),i}}var v=function(t,e,n,i){if(a.isDefined(n))return n;var o={};return f(t,e,o,i),o};e.compileGetter=g,e.compileSetter=function(t){var e=(t=h(t||"this").split(".")).length-1;return function(n,i,o){var s=m(n,o=p(o));t.forEach((function(t,n){var l=function(t,e,n){return n=n||{},m("this"===e?t:t[e],n)}(s,t,o),u=!o.functionsAsIs&&a.isFunction(l)&&!c(l);n===e?o.merge&&a.isPlainObject(i)&&(!a.isDefined(l)||a.isPlainObject(l))?(l=v(s,t,l,o),r.deepExtendArraySafe(l,i,!1,!0)):u?s[t](i):f(s,t,i,o):(l=v(s,t,l,o),u&&(l=l.call(s)),s=l)}))}},e.toComparable=function(t,e){return t instanceof Date?t.getTime():t&&t instanceof o&&t.valueOf?t.valueOf():e||"string"!==typeof t?t:t.toLowerCase()}},function(t,e,n){var i=n(52),o=i.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=a),r(o,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var i=o(t);return void 0!==e?"string"===typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";var i=n(0).extend,o=n(10).getNavigator(),r=/(webkit)[ \/]([\w.]+)/,a=/(msie) (\d{1,2}\.\d)/,s=/(trident).*rv:(\d{1,2}\.\d)/,l=/(edge)\/((\d+)?[\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))/,c=function(t){t=t.toLowerCase();var e={},n=a.exec(t)||s.exec(t)||l.exec(t)||t.indexOf("compatible")<0&&u.exec(t)||r.exec(t)||[],i=n[1],o=n[2];return"webkit"===i&&(e.webkit=!0,t.indexOf("chrome")>=0||t.indexOf("crios")>=0?(i="chrome",o=(o=/(?:chrome|crios)\/(\d+\.\d+)/.exec(t))&&o[1]):t.indexOf("fxios")>=0?(i="mozilla",o=(o=/fxios\/(\d+\.\d+)/.exec(t))&&o[1]):t.indexOf("safari")>=0&&/version|phantomjs/.test(t)?(i="safari",o=(o=/(?:version|phantomjs)\/([0-9.]+)/.exec(t))&&o[1]):(i="unknown",o=(o=/applewebkit\/([0-9.]+)/.exec(t))&&o[1])),"trident"!==i&&"edge"!==i||(i="msie"),i&&(e[i]=!0,e.version=o),e};t.exports=i({_fromUA:c},c(o.userAgent))},function(t,e,n){t.exports=n(594)},function(t,e,n){"use strict";var i=n(57),o=n(2).type,r=/matrix(3d)?\((.+?)\)/,a=/translate(?:3d)?\((.+?)\)/;function s(t){return"string"===o(t)&&"%"===t[t.length-1]}function l(t,e){t.length&&i.data(t.get(0),"dxTranslator",e)}var u=function(t){t.length&&i.removeData(t.get(0),"dxTranslator")},c=function(t){return t.x=t.x||0,t.y=t.y||0,"translate("+(s(t.x)?t.x:t.x+"px")+", "+(s(t.y)?t.y:t.y+"px")+")"},d=function(t){var e=t.length?i.data(t.get(0),"dxTranslator"):null;if(!e){var n=(t.css("transform")||c({x:0,y:0})).match(r),o=n&&n[1];n?(n=n[2].split(","),"3d"===o?n=n.slice(12,15):(n.push(0),n=n.slice(4,7))):n=[0,0,0],l(t,e={x:parseFloat(n[0]),y:parseFloat(n[1]),z:parseFloat(n[2])})}return e};e.move=function(t,e){var n,i=e.left,o=e.top;void 0===i?(n=d(t)).y=o||0:void 0===o?(n=d(t)).x=i||0:l(t,n={x:i||0,y:o||0,z:0}),t.css({transform:c(n)}),(s(i)||s(o))&&u(t)},e.locate=function(t){var e=d(t);return{left:e.x,top:e.y}},e.clearCache=u,e.parseTranslate=function(t){var e=t.match(a);if(e&&e[1])return e=e[1].split(","),e={x:parseFloat(e[0]),y:parseFloat(e[1]),z:parseFloat(e[2])}},e.getTranslate=d,e.getTranslateCss=c,e.resetPosition=function(t,e){var n,i={left:0,top:0,transform:"none"};e&&(n=t.css("transition"),i.transition="none"),t.css(i),u(t),e&&(t.get(0).offsetHeight,t.css("transition",n))}},function(t,e,n){"use strict";var i,o=n(0),r=n(44),a=(i=r)&&i.__esModule?i:{default:i};(0,o.extend)(e,a.default,{modules:[],foreachNodes:function(t,e){for(var n=0;n<t.length;n++)!1!==e(t[n])&&t[n].hasChildren&&t[n].children.length&&this.foreachNodes(t[n].children,e)}})},function(t,e,n){(function(e){t.exports=function(){var t=t||function(t,i){var o;if("undefined"!==typeof window&&window.crypto&&(o=window.crypto),!o&&"undefined"!==typeof window&&window.msCrypto&&(o=window.msCrypto),!o&&"undefined"!==typeof e&&e.crypto&&(o=e.crypto),!o)try{o=n(1137)}catch(_){}var r=function(){if(o){if("function"===typeof o.getRandomValues)try{return o.getRandomValues(new Uint32Array(1))[0]}catch(_){}if("function"===typeof o.randomBytes)try{return o.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function t(){}return function(e){var n;return t.prototype=e,n=new t,t.prototype=null,n}}(),s={},l=s.lib={},u=l.Base={extend:function(t){var e=a(this);return t&&e.mixIn(t),e.hasOwnProperty("init")&&this.init!==e.init||(e.init=function(){e.$super.init.apply(this,arguments)}),e.init.prototype=e,e.$super=this,e},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},c=l.WordArray=u.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:4*t.length},toString:function(t){return(t||h).stringify(this)},concat:function(t){var e=this.words,n=t.words,i=this.sigBytes,o=t.sigBytes;if(this.clamp(),i%4)for(var r=0;r<o;r++){var a=n[r>>>2]>>>24-r%4*8&255;e[i+r>>>2]|=a<<24-(i+r)%4*8}else for(r=0;r<o;r+=4)e[i+r>>>2]=n[r>>>2];return this.sigBytes+=o,this},clamp:function(){var e=this.words,n=this.sigBytes;e[n>>>2]&=4294967295<<32-n%4*8,e.length=t.ceil(n/4)},clone:function(){var t=u.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var e=[],n=0;n<t;n+=4)e.push(r());return new c.init(e,t)}}),d=s.enc={},h=d.Hex={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o<n;o++){var r=e[o>>>2]>>>24-o%4*8&255;i.push((r>>>4).toString(16)),i.push((15&r).toString(16))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i+=2)n[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new c.init(n,e/2)}},f=d.Latin1={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o<n;o++){var r=e[o>>>2]>>>24-o%4*8&255;i.push(String.fromCharCode(r))}return i.join("")},parse:function(t){for(var e=t.length,n=[],i=0;i<e;i++)n[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new c.init(n,e)}},p=d.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},m=l.BufferedBlockAlgorithm=u.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=p.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(e){var n,i=this._data,o=i.words,r=i.sigBytes,a=this.blockSize,s=r/(4*a),l=(s=e?t.ceil(s):t.max((0|s)-this._minBufferSize,0))*a,u=t.min(4*l,r);if(l){for(var d=0;d<l;d+=a)this._doProcessBlock(o,d);n=o.splice(0,l),i.sigBytes-=u}return new c.init(n,u)},clone:function(){var t=u.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),g=(l.Hasher=m.extend({cfg:u.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){m.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(e,n){return new t.init(n).finalize(e)}},_createHmacHelper:function(t){return function(e,n){return new g.HMAC.init(t,n).finalize(e)}}}),s.algo={});return s}(Math);return t}()}).call(this,n(56))},function(t,e,n){"use strict";var i,o,r,a,s,l,u,c=n(3),d=n(15),h=n(10),f=h.getWindow(),p=n(7).Deferred,m=n(23),g=n(17),_=n(77).add,v=n(5).each,y=n(18),b=n(106),w=n(645),x=b.value,C=n(93),S=b.changeCallback;function k(){if(!h.hasWindow())return null;var t,e=c("<div>",i).addClass("dx-theme-marker").appendTo(i.documentElement);try{return(t=e.css("fontFamily"))?"dx."!==(t=t.replace(/["']/g,"")).substr(0,"dx.".length)?null:t.substr("dx.".length):null}finally{e.remove()}}function I(t){var e;function n(){s=null,w.fire(),w.empty()}s=t,T()?n():(e=Date.now(),l=setInterval((function(){var t=T(),i=!t&&Date.now()-e>15e3;i&&m.log("W0004",s),(t||i)&&(clearInterval(l),l=void 0,n())}),10))}function T(){return!s||k()===s}function E(t){var e=t?t.split("."):[],n=null;if(r){if(t in r)return t;v(r,(function(t,i){var o=t.split(".");if((!e[0]||o[0]===e[0])&&(!e[1]||e[1]===o[1])&&(!e[2]||e[2]===o[2]))return n&&!i.isActive||(n=t),!i.isActive&&void 0}))}return n}function O(t){(function(t){try{t!==i&&(r=null)}catch(e){r=null}i=t})((t=t||{}).context||d.getDocument()),i&&(!function(){var t=c("link[rel=dx-theme]",i);t.length&&(r={},o=c(g.createMarkupFromString("<link rel=stylesheet>"),i),t.each((function(){var t=c(this,i),e=t.attr("data-theme"),n=t.attr("href"),o="true"===t.attr("data-active");r[e]={url:n,isActive:o}})),t.last().after(o),t.remove())}(),a=void 0,M(t))}function M(t){if(!arguments.length)return a=a||k();D(x()),"string"===typeof(t=t||{})&&(t={theme:t});var e,n=t._autoInit,i=t.loadCallback;if((a=E(t.theme||a))&&(e=r[a]),i&&w.add(i),e)o.attr("href",r[a].url),!w.has()&&!t._forceTimeout||l?s&&(s=a):I(a);else{if(!n)throw m.Error("E0021",a);w.fire(),w.empty()}N(),P(b.originalViewPort(),a)}function P(t,e){u=function(t){var e=[],n=(t=t||M())&&t.split(".");return n&&(e.push("dx-theme-"+n[0],"dx-theme-"+n[0]+"-typography"),n.length>1&&e.push("dx-color-scheme-"+n[1]+(R(t)?"-"+n[2]:""))),e}(e).join(" "),c(t).addClass(u);!function(){var e=h.hasWindow()&&f.devicePixelRatio;if(e&&!(e<2)){var n=c("<div>");n.css("border",".5px solid transparent"),c("body").append(n),1===n.outerHeight()&&(c(t).addClass("dx-hairlines"),u+=" dx-hairlines"),n.remove()}}()}function D(t){c(t).removeClass(u)}function A(t,e){return e||(e=a||k()),new RegExp(t).test(e)}function R(t){return A("material",t)}function B(t){return A("ios7",t)}function N(){B()&&m.log("W0010","The 'ios7' theme","19.1","Use the 'generic' theme instead.")}function L(t,e){var n=d.getDocument(),i=n.createElement("span");i.style.position="absolute",i.style.top="-9999px",i.style.left="-9999px",i.style.visibility="hidden",i.style.fontFamily="Arial",i.style.fontSize="250px",i.style.fontWeight=e,i.innerHTML=t,n.body.appendChild(i);var o=i.offsetWidth;i.style.fontFamily="Roboto, RobotoFallback, Arial";var r=i.offsetWidth;return i.parentNode.removeChild(i),o!==r}var F=new p;function V(){if(O({_autoInit:!0,_forceTimeout:!0}),c("link[rel=dx-theme]",i).length)throw m.Error("E0022");F.resolve()}h.hasWindow()?V():_(V),S.add((function(t,e){F.done((function(){D(e),P(t)}))})),y.changed.add((function(){O({_autoInit:!0})})),e.current=M,e.ready=function(t){w.add(t)},e.init=O,e.attachCssClasses=P,e.detachCssClasses=D,e.waitForThemeLoad=I,e.isMaterial=R,e.isIos7=B,e.isGeneric=function(t){return A("generic",t)},e.isDark=function(t){return A("dark",t)},e.isWebFontLoaded=L,e.waitWebFont=function(t,e){return new C((function(n){var i=function(){clearInterval(o),clearTimeout(r),n()},o=setInterval((function(){L(t,e)&&i()}),15),r=setTimeout(i,2e3)}))},e.resetTheme=function(){o&&o.attr("href","about:blank"),a=null,s=null},t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(2).isExponential;function o(t){return Math.abs(parseInt(t.toExponential().split("e")[1]))}function r(t){var e=t.toString();if(e.indexOf(".")<0)return 0;var n=e.split("."),i=n[1].indexOf("e");return i>=0?i:n[1].length}function a(t,e){if(t<0&&e%2!==1)return NaN;var n=Math.pow(Math.abs(t),1/e);return e%2===1&&t<0?-n:n}e.sign=function(t){return 0===t?0:t/Math.abs(t)},e.fitIntoRange=function(t,e,n){var i=!e&&0!==e,o=!n&&0!==n;return i&&(e=o?t:Math.min(t,n)),o&&(n=i?t:Math.max(t,e)),Math.min(Math.max(t,e),n)},e.inRange=function(t,e,n){return t>=e&&t<=n},e.adjust=function(t,e){var n,a=r(e||0)+2,s=t.toString().split("."),l=t,u=Math.abs(t),c=i(t),d=u>1?10:0;return 1===s.length?t:(c||(i(e)&&(a=s[0].length+o(e)),t=(t=u)-Math.floor(t)+d),a="0.000300"!==3e-4.toPrecision(3)&&o(t)>6||a>7?15:7,c||(n=parseFloat(t.toPrecision(a)).toString().split("."))[0]!==d.toString()?parseFloat(l.toPrecision(a)):parseFloat(s[0]+"."+n[1]))},e.getPrecision=r,e.getExponent=o,e.getRoot=a,e.solveCubicEquation=function(t,e,n,i){if(Math.abs(t)<1e-8){if(t=e,e=n,n=i,Math.abs(t)<1e-8)return t=e,e=n,Math.abs(t)<1e-8?[]:[-e/t];var o=e*e-4*t*n;return Math.abs(o)<1e-8?[-e/(2*t)]:o>0?[(-e+Math.sqrt(o))/(2*t),(-e-Math.sqrt(o))/(2*t)]:[]}var r,s,l=(3*t*n-e*e)/(3*t*t),u=(2*e*e*e-9*t*e*n+27*t*t*i)/(27*t*t*t);if(Math.abs(l)<1e-8)r=[a(-u,3)];else if(Math.abs(u)<1e-8)r=[0].concat(l<0?[Math.sqrt(-l),-Math.sqrt(-l)]:[]);else{var c=u*u/4+l*l*l/27;if(Math.abs(c)<1e-8)r=[-1.5*u/l,3*u/l];else if(c>0)r=[(s=a(-u/2-Math.sqrt(c),3))-l/(3*s)];else{s=2*Math.sqrt(-l/3);var d=Math.acos(3*u/l/s)/3,h=2*Math.PI/3;r=[s*Math.cos(d),s*Math.cos(d-h),s*Math.cos(d-2*h)]}}for(var f=0;f<r.length;f++)r[f]-=e/(3*t);return r},e.trunc=function(t){return Math.trunc?Math.trunc(t):t>0?Math.floor(t):Math.ceil(t)}},function(t,e,n){"use strict";var i=n(211);t.exports=i({E0001:"Method is not implemented",E0002:"Member name collision: {0}",E0003:"A class must be instantiated using the 'new' keyword",E0004:"The NAME property of the component is not specified",E0005:"Unknown device",E0006:"Unknown endpoint key is requested",E0007:"'Invalidate' method is called outside the update transaction",E0008:"Type of the option name is not appropriate to create an action",E0009:"Component '{0}' has not been initialized for an element",E0010:"Animation configuration with the '{0}' type requires '{1}' configuration as {2}",E0011:"Unknown animation type '{0}'",E0012:"jQuery version is too old. Please upgrade jQuery to 1.10.0 or later",E0013:"KnockoutJS version is too old. Please upgrade KnockoutJS to 2.3.0 or later",E0014:"The 'release' method shouldn't be called for an unlocked Lock object",E0015:"Queued task returned an unexpected result",E0017:"Event namespace is not defined",E0018:"DevExpress.ui.DevExpressPopup widget is required",E0020:"Template engine '{0}' is not supported",E0021:"Unknown theme is set: {0}",E0022:"LINK[rel=DevExpress-theme] tags must go before DevExpress included scripts",E0023:"Template name is not specified",E0024:"DevExtreme bundle already included",E0025:"Unexpected argument type",E0100:"Unknown validation type is detected",E0101:"Misconfigured range validation rule is detected",E0102:"Misconfigured comparison validation rule is detected",E0103:"validationCallback of an asynchronous rule should return a jQuery or a native promise",E0110:"Unknown validation group is detected",E0120:"Adapter for a DevExpressValidator component cannot be configured",E0121:"The 'customItem' field of the 'onCustomItemCreating' function's parameter should contain a custom item or Promise that is resolved after the item is created.",W0000:"'{0}' is deprecated in {1}. {2}",W0001:"{0} - '{1}' option is deprecated in {2}. {3}",W0002:"{0} - '{1}' method is deprecated in {2}. {3}",W0003:"{0} - '{1}' property is deprecated in {2}. {3}",W0004:"Timeout for theme loading is over: {0}",W0005:"'{0}' event is deprecated in {1}. {2}",W0006:"Invalid recurrence rule: '{0}'",W0007:"'{0}' Globalize culture is not defined",W0008:"Invalid view name: '{0}'",W0009:"Invalid time zone name: '{0}'",W0010:"{0} is deprecated in {1}. {2}",W0011:"Number parsing is invoked while the parser is not defined",W0012:"Date parsing is invoked while the parser is not defined",W0013:"'{0}' file is deprecated in {1}. {2}",W0014:"{0} - '{1}' type is deprecated in {2}. {3}",W0015:"Instead of returning a value from the '{0}' function, write it into the '{1}' field of the function's parameter.",W0016:'The "{0}" option does not accept the "{1}" value since v.{2}. {3}.'})},function(t,e,n){"use strict";var i=function(t){this._options=t||{},this._list=[],this._queue=[],this._firing=!1,this._fired=!1,this._firingIndexes=[]};i.prototype._fireCore=function(t,e){var n=this._firingIndexes,i=this._list,o=this._options.stopOnFalse,r=n.length;for(n[r]=0;n[r]<i.length;n[r]++){if(!1===i[n[r]].apply(t,e)&&o)break}n.pop()},i.prototype.add=function(t){return"function"!==typeof t||this._options.unique&&this.has(t)||this._list.push(t),this},i.prototype.remove=function(t){var e=this._list,n=this._firingIndexes,i=e.indexOf(t);if(i>-1&&(e.splice(i,1),this._firing&&n.length))for(var o=0;o<n.length;o++)i<=n[o]&&n[o]--;return this},i.prototype.has=function(t){var e=this._list;return t?e.indexOf(t)>-1:!!e.length},i.prototype.empty=function(t){return this._list=[],this},i.prototype.fireWith=function(t,e){var n=this._queue;if(e=(e=e||[]).slice?e.slice():e,this._options.syncStrategy)this._firing=!0,this._fireCore(t,e);else{if(n.push([t,e]),this._firing)return;for(this._firing=!0;n.length;){var i=n.shift();this._fireCore(i[0],i[1])}}return this._firing=!1,this._fired=!0,this},i.prototype.fire=function(){this.fireWith(this,arguments)},i.prototype.fired=function(){return this._fired};t.exports=function(t){return new i(t)}},function(t,e,n){"use strict";var i=y(n(3)),o=n(2),r=n(7),a=n(197),s=n(55),l=n(5),u=n(0),c=n(24),d=n(29),h=n(4),f=y(n(195)),p=n(60),m=y(n(94)),g=n(54),_=n(10),v=y(n(6));function y(t){return t&&t.__esModule?t:{default:t}}var b={year:function(t){return t&&t.getFullYear()},month:function(t){return t&&t.getMonth()+1},day:function(t){return t&&t.getDate()},quarter:function(t){return t&&Math.floor(t.getMonth()/3)+1},hour:function(t){return t&&t.getHours()},minute:function(t){return t&&t.getMinutes()},second:function(t){return t&&t.getSeconds()}};t.exports=function(){var e=function(){var t=arguments[1],e=this.calculateCellValue(t);if(!(0,o.isDefined)(e))return null;if(n(this.dataType)){var i=arguments[0];return b[i](e)}if("number"===this.dataType){var r=arguments[0];return Math.floor(Number(e)/r)*r}};function n(t){return"date"===t||"datetime"===t}var y=function(t){t.get(0).textContent="\xa0"},w=function(t){var e=t.data&&t.data(),n=e&&e.dxComponents,i=n&&n[0];return i&&e[i]};return{renderNoDataText:function(t){if(t=t||this.element()){var e=this.addWidgetPrefix("nodata"),n=t.find("."+e).last(),o=this._dataController.isEmpty(),r=this._dataController.isLoading();n.length||(n=(0,i.default)("<span>").addClass(e).appendTo(t)),o&&!r?n.removeClass("dx-hidden").text(this._getNoDataText()):n.addClass("dx-hidden")}},renderLoadPanel:function(t,e,n){var o;this._loadPanel&&this._loadPanel.$element().remove(),(o=this.option("loadPanel"))&&("auto"===o.enabled?!n:o.enabled)?(o=(0,u.extend)({shading:!1,message:o.text,position:function(){var e=(0,i.default)((0,_.getWindow)());return t.height()>e.height()?{of:e,boundary:t,collision:"fit"}:{of:t}},container:e},o),this._loadPanel=this._createComponent((0,i.default)("<div>").appendTo(e),f.default,o)):this._loadPanel=null},getIndexByKey:function(t,e,n){var i=-1;if(void 0!==t&&Array.isArray(e)){n=arguments.length<=2?"key":n;for(var r=0;r<e.length;r++){var a=(0,o.isDefined)(n)?e[r][n]:e[r];if((0,h.equalByValue)(t,a)){i=r;break}}}return i},combineFilters:function(t,e){var n=[];e=e||"and";for(var i=0;i<t.length;i++)t[i]&&(n.length&&n.push(e),n.push(t[i]));if(1===n.length&&(n=n[0]),n.length)return n},checkChanges:function(t,e){for(var n=0,i=0;i<e.length;i++)t[e[i]]&&n++;return t.length&&t.length===n},equalFilterParameters:function(e,n){if(Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;for(var i=0;i<e.length;i++)if(!t.exports.equalFilterParameters(e[i],n[i]))return!1;return!0}return(0,o.isFunction)(e)&&e.columnIndex>=0&&(0,o.isFunction)(n)&&n.columnIndex>=0?e.columnIndex===n.columnIndex&&(0,d.toComparable)(e.filterValue)===(0,d.toComparable)(n.filterValue):(0,d.toComparable)(e)==(0,d.toComparable)(n)},proxyMethod:function(t,e,n){t[e]||(t[e]=function(){var t=this._dataSource;return t?t[e].apply(t,arguments):n})},formatValue:function(t,e){var n=m.default.format(t,e.format)||t&&t.toString()||"",i={value:t,valueText:e.getDisplayFormat?e.getDisplayFormat(n):n,target:e.target||"row",groupInterval:e.groupInterval};return e.customizeText?e.customizeText.call(e,i):i.valueText},getFormatOptionsByColumn:function(t,e){return{format:t.format,getDisplayFormat:t.getDisplayFormat,customizeText:t.customizeText,target:e,trueText:t.trueText,falseText:t.falseText}},getDisplayValue:function(t,e,n,i){return t.displayValueMap&&void 0!==t.displayValueMap[e]?t.displayValueMap[e]:t.calculateDisplayValue&&n&&"group"!==i?t.calculateDisplayValue(n):!t.lookup||"group"===i&&(t.calculateGroupValue||t.calculateDisplayValue)?e:t.lookup.calculateCellValue(e)},getGroupRowSummaryText:function(e,n){for(var i="(",o=0;o<e.length;o++){var r=e[o];i+=(o>0?", ":"")+t.exports.getSummaryText(r,n)}return i+")"},getSummaryText:function(t,e){var n=t.displayFormat||t.columnCaption&&e[t.summaryType+"OtherColumn"]||e[t.summaryType];return this.formatValue(t.value,{format:t.valueFormat,getDisplayFormat:function(e){return n?(0,s.format)(n,e,t.columnCaption):e},customizeText:t.customizeText})},normalizeSortingInfo:function(t){t=t||[];for(var e=(0,p.normalizeSortingInfo)(t),n=0;n<t.length;n++)t&&t[n]&&void 0!==t[n].isExpanded&&(e[n].isExpanded=t[n].isExpanded),t&&t[n]&&void 0!==t[n].groupInterval&&(e[n].groupInterval=t[n].groupInterval);return e},getFormatByDataType:function(t){switch(t){case"date":return"shortDate";case"datetime":return"shortDateShortTime"}},getHeaderFilterGroupParameters:function(t,n){var i=[],o=t.dataField||t.name,r=(0,a.getGroupInterval)(t);return r?((0,l.each)(r,(function(a,s){i.push(n?{selector:o,groupInterval:s,isExpanded:a<r.length-1}:e.bind(t,s))})),i):(n?i=[{selector:o,isExpanded:!1}]:(i=function(e){var n=t.calculateCellValue(e);return void 0!==n&&""!==n||(n=null),n},t.sortingMethod&&(i=[{selector:i,compare:t.sortingMethod.bind(t)}])),i)},equalSortParameters:function(e,n,i){if(e=t.exports.normalizeSortingInfo(e),n=t.exports.normalizeSortingInfo(n),Array.isArray(e)&&Array.isArray(n)){if(e.length!==n.length)return!1;for(var r=0;r<e.length;r++)if(a=e[r].selector,s=n[r].selector,!((0,o.isFunction)(a)&&(0,o.isFunction)(s)&&a.originalCallback&&s.originalCallback?a.originalCallback===s.originalCallback&&a.columnIndex===s.columnIndex:a===s)||e[r].desc!==n[r].desc||e[r].groupInterval!==n[r].groupInterval||!i&&Boolean(e[r].isExpanded)!==Boolean(n[r].isExpanded))return!1;return!0}return(!e||!e.length)===(!n||!n.length);var a,s},getPointsByColumns:function(t,e,n,i){for(var o,r,a,s=t.length,l=!1,u=i||0,d=[],h=0;h<=s;h++){h<s&&(r=(o=t.eq(h)).offset(),a="rtl"===o.css("direction"));var f={index:u,x:r?r.left+(!n&&a^h===s?(0,c.getBoundingRect)(o[0]).width:0):0,y:r?r.top+(n&&h===s?(0,c.getBoundingRect)(o[0]).height:0):0,columnIndex:u};if(!n&&h>0){var p=t.eq(h-1).offset();p.top<f.y&&(f.y=p.top)}e&&(l=e(f)),l||d.push(f),u++}return d},createObjectWithChanges:function(t,e){var n=t?Object.create(Object.getPrototypeOf(t)):{},i=(0,u.extendFromObject)({},t);return(0,g.deepExtendArraySafe)(n,i,!0,!0),(0,g.deepExtendArraySafe)(n,e,!0,!0)},getExpandCellTemplate:function(){return{allowRenderToDetachedContainer:!0,render:function(t,e){var n=(0,i.default)(t);if(!(0,o.isDefined)(e.value)||e.data&&e.data.isContinuation||e.row.isNewRow)y(n);else{var r=e.component.getView("rowsView");n.addClass("dx-datagrid-expand").addClass("dx-selection-disabled"),(0,i.default)("<div>").addClass(e.value?"dx-datagrid-group-opened":"dx-datagrid-group-closed").appendTo(n),r.setAria("label",e.value?r.localize("dxDataGrid-ariaCollapse"):r.localize("dxDataGrid-ariaExpand"),n)}}}},setEmptyText:y,isDateType:n,getSelectionRange:function(t){try{if(t)return{selectionStart:t.selectionStart,selectionEnd:t.selectionEnd}}catch(e){}return{}},setSelectionRange:function(t,e){try{t&&t.setSelectionRange&&t.setSelectionRange(e.selectionStart,e.selectionEnd)}catch(n){}},focusAndSelectElement:function(t,e){v.default.trigger(e,"focus");var n=t.option("editing.selectTextOnEditStart"),i=t.getController("keyboardNavigation"),o=i&&i._isFastEditingStarted(),a=e.get(0);if(n&&!o&&e.is(".dx-texteditor-input")&&!e.is("[readonly]")){var s=w(e.closest(".dx-texteditor"));(0,r.when)(s&&s._loadItemDeferred).done((function(){a.select()}))}},getWidgetInstance:w,getLastResizableColumnIndex:function(t,e){var n,i=t.some((function(t){return t&&!t.command&&!t.fixed&&!1!==t.allowResizing}));for(n=t.length-1;t[n];n--){var o=t[n],r=e&&e[n],a=!i||!1!==o.allowResizing;if(!o.command&&!o.fixed&&"adaptiveHidden"!==r&&a)break}return n},isElementInCurrentGrid:function(t,e){return!(!e||!e.length)&&e.closest("."+t.getWidgetContainerClass()).parent().is(t.component.$element())}}}()},function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(18)),r=g(n(79)),a=g(n(8)),s=g(n(36)),l=g(n(155)),u=g(n(136)),c=g(n(20)),d=n(158),h=n(0),f=n(132),p=n(70),m=n(17);function g(t){return t&&t.__esModule?t:{default:t}}function _(t){return(_="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e,n){return(b="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==_(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(g,t);var e,n,a,c=x(g);function g(){var t;v(this,g);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return(t=c.call.apply(c,[this].concat(n)))._feedbackHideTimeout=100,t}return e=g,(n=[{key:"_$content",value:function(){return this.$element().find(".dx-button-content")}},{key:"_$submitInput",value:function(){return this.$element().find(".dx-button-submit-input")}},{key:"_attachActiveEvents",value:function(t,e){var n=this._eventBindingTarget(),i=this._activeStateUnit;d.active.off(n,{namespace:"inkRipple",selector:i}),d.active.on(n,new l.default(t),new l.default(e,{excludeValidators:["disabled","readOnly"]}),{showTimeout:this._feedbackShowTimeout,hideTimeout:this._feedbackHideTimeout,selector:i,namespace:"inkRipple"})}},{key:"_defaultOptionsRules",value:function(){return b(S(g.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return"desktop"===o.default.real().deviceType&&!o.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return s.default.isMaterial(s.default.current())},options:{useInkRipple:!0}}])}},{key:"_executeClickAction",value:function(t){this._clickAction({validationGroup:this._validationGroupConfig,event:t})}},{key:"_findGroup",value:function(){var t=this.$element(),e=this._modelByElement(t);return this.option().validationGroup||u.default.findGroup(t,e)}},{key:"_getContentData",value:function(){var t=this.option(),e=t.icon,n=t.text,i=t.type,o=t._templateData;return(0,h.extend)({icon:"back"!==i||e?e:"back",text:n},o)}},{key:"_getDefaultOptions",value:function(){return(0,h.extend)(b(S(g.prototype),"_getDefaultOptions",this).call(this),{hoverStateEnabled:!0,onClick:null,type:"normal",text:"",icon:"",iconPosition:"left",validationGroup:void 0,activeStateEnabled:!0,template:"content",useSubmitBehavior:!1,useInkRipple:!1,_templateData:{},stylingMode:"contained"})}},{key:"_getSubmitAction",value:function(){var t=this,e=!0,n="valid";return this._createAction((function(i){var o=i.event;if(e){var r=t._validationGroupConfig;if(r){var a=r.validate(),s=a.status,l=a.complete;n=s,"pending"===s&&(e=!1,t.option("disabled",!0),l.then((function(i){var o=i.status;t.option("disabled",!1),"valid"===(n=o)&&t._submitInput().click(),e=!0})))}}"valid"!==n&&o.preventDefault(),o.stopPropagation()}))}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-button"),this._renderType(),this._renderStylingMode(),this._renderInkRipple(),this._renderClick(),this._updateAriaLabel(),b(S(g.prototype),"_initMarkup",this).call(this),this._updateContent(),this.setAria("role","button")}},{key:"_getAnonymousTemplateName",value:function(){return"content"}},{key:"_initTemplates",value:function(){var t=this;this._templateManager.addDefaultTemplates({content:new f.FunctionTemplate((function(e){var n=e.model,o=void 0===n?{}:n,r=e.container,a=o.text,s=o.icon,l=t.option().iconPosition,u=(0,p.getImageContainer)(s),c=a&&(0,i.default)("<span>").text(a).addClass("dx-button-text"),d=(0,i.default)(r);d.append(c),"left"===l?d.prepend(u):(u.addClass("dx-icon-right"),d.append(u))}))}),b(S(g.prototype),"_initTemplates",this).call(this)}},{key:"_optionChanged",value:function(t){var e=t.name,n=t.previousValue;switch(e){case"onClick":this._updateClick();break;case"icon":case"text":this._updateContent(),this._updateAriaLabel();break;case"type":this._updateType(n),this._updateContent();break;case"_templateData":break;case"template":case"iconPosition":this._updateContent();break;case"stylingMode":this._updateStylingMode();break;case"useSubmitBehavior":this._updateSubmitInput();break;case"useInkRipple":this._invalidate();break;default:b(S(g.prototype),"_optionChanged",this).call(this,t)}}},{key:"_renderClick",value:function(){var t=this,e=this.$element();d.dxClick.off(e,{namespace:this.NAME}),d.dxClick.on(e,(function(e){return t._executeClickAction(e)}),{namespace:this.NAME}),this._updateClick()}},{key:"_renderInkRipple",value:function(){var t=this,e=this.option(),n=e.text,i=e.icon,o=e.type;if(e.useInkRipple){var a=!n&&i||"back"===o,s=r.default.render(a?{waveSizeCoefficient:1,useHoldAnimation:!1,isCentered:!0}:{}),l=function(e,n){var i=t.option(),o=i.activeStateEnabled;if(i.useInkRipple&&o&&!t._disposed){var r={element:t._$content(),event:e};n?s.showWave(r):s.hideWave(r)}};this._attachActiveEvents((function(t){var e=t.event;return l(e,!0)}),(function(t){var e=t.event;return l(e)}))}}},{key:"_renderStylingMode",value:function(){var t=this.$element(),e=this.option().stylingMode;-1===["contained","text","outlined"].indexOf(e)&&(e=this._getDefaultOptions().stylingMode),t.addClass("dx-button-mode-".concat(e))}},{key:"_renderSubmitInput",value:function(){if(this.option().useSubmitBehavior){var t=this._getSubmitAction(),e=this._$content();(0,i.default)("<input>").attr("type","submit").attr("tabindex",-1).addClass("dx-button-submit-input").appendTo(e),d.click.on(this._$submitInput(),(function(e){return t({event:e})}))}}},{key:"_renderType",value:function(){var t=this.option().type,e=this.$element();t&&e.addClass("dx-button-".concat(t))}},{key:"_submitInput",value:function(){return this._$submitInput().get(0)}},{key:"_supportedKeys",value:function(){var t=this,e=function(e){e.preventDefault(),t._executeClickAction(e)};return(0,h.extend)(b(S(g.prototype),"_supportedKeys",this).call(this),{space:e,enter:e})}},{key:"_updateAriaLabel",value:function(){var t=this._getAriaTarget(),e=this.option(),n=e.icon,i=e.text;i||("image"===(0,p.getImageSourceType)(n)&&(n=-1===n.indexOf("base64")?n.replace(/.+\/([^.]+)\..+$/,"$1"):"Base64"),i=n||""),t.attr("aria-label",i||null)}},{key:"_updateClick",value:function(){var t=this;this._clickAction=this._createActionByOption("onClick",{excludeValidators:["readOnly"],afterExecute:function(){t.option().useSubmitBehavior&&setTimeout((function(){return t._submitInput().click()}))}})}},{key:"_updateContent",value:function(){var t=this.$element(),e=this._$content(),n=this._getContentData(),o=this.option(),r=o.template,a=o.iconPosition,s=n.icon,l=n.text;e.length?e.empty():e=(0,i.default)("<div>").addClass("dx-button-content").appendTo(t),t.toggleClass("dx-button-has-icon",!!s).toggleClass("dx-button-icon-right",!!s&&"left"!==a).toggleClass("dx-button-has-text",!!l);var u=(0,i.default)(this._getTemplateByOption("template").render({model:n,container:(0,m.getPublicElement)(e),transclude:this._templateManager.anonymousTemplateName===r}));u.hasClass("dx-template-wrapper")&&(u.addClass("dx-button-content"),e.replaceWith(u)),this._updateSubmitInput()}},{key:"_updateSubmitInput",value:function(){var t=this.option().useSubmitBehavior,e=this._$submitInput();!t&&e.length?e.remove():t&&!e.length&&this._renderSubmitInput()}},{key:"_updateStylingMode",value:function(){var t=this.$element();["contained","text","outlined"].map((function(t){return"dx-button-mode-".concat(t)})).forEach(t.removeClass.bind(t)),this._renderStylingMode()}},{key:"_updateType",value:function(t){var e=this.$element();[t,"back","danger","default","normal","success"].map((function(t){return"dx-button-".concat(t)})).forEach(e.removeClass.bind(e)),this._renderType()}},{key:"_validationGroupConfig",get:function(){return u.default.getGroupConfig(this._findGroup())}}])&&y(e.prototype,n),a&&y(e,a),g}(c.default);(0,a.default)("dxButton",k),t.exports=k,t.exports.default=t.exports},function(t,e,n){"use strict";var i=g(n(89)),o=n(2),r=g(n(5)),a=n(16),s=g(n(38)),l=n(385),u=n(276),c=n(277),d=g(n(386)),h=g(n(709)),f=n(193),p=g(n(74)),m=g(n(710));function g(t){return t&&t.__esModule?t:{default:t}}var _="undefined"!==typeof Intl,v={shortdate:"M/d/y",shorttime:"h:mm a",longdate:"EEEE, MMMM d, y",longtime:"h:mm:ss a",monthandday:"MMMM d",monthandyear:"MMMM y",quarterandyear:"QQQ y",day:"d",year:"y",shortdateshorttime:"M/d/y, h:mm a",longdatelongtime:"EEEE, MMMM d, y, h:mm:ss a",month:"LLLL",shortyear:"yy",dayofweek:"EEEE",quarter:"QQQ",hour:"HH",minute:"mm",second:"ss",millisecond:"SSS","datetime-local":"yyyy-MM-ddTHH':'mm':'ss"},y={year:["y","yy","yyyy"],day:["d","dd"],month:["M","MM","MMM","MMMM"],hours:["H","HH","h","hh","ah"],minutes:["m","mm"],seconds:["s","ss"],milliseconds:["S","SS","SSS"]},b=(0,i.default)({engine:function(){return"base"},_getPatternByFormat:function(t){return v[t.toLowerCase()]},_expandPattern:function(t){return this._getPatternByFormat(t)||t},formatUsesMonthName:function(t){return-1!==this._expandPattern(t).indexOf("MMMM")},formatUsesDayName:function(t){return-1!==this._expandPattern(t).indexOf("EEEE")},getFormatParts:function(t){var e=this._getPatternByFormat(t)||t,n=[];return r.default.each(e.split(/\W+/),(function(t,e){r.default.each(y,(function(t,i){(0,a.inArray)(e,i)>-1&&n.push(t)}))})),n},getMonthNames:function(t){return d.default.getMonthNames(t)},getDayNames:function(t){return d.default.getDayNames(t)},getQuarterNames:function(t){return d.default.getQuarterNames(t)},getPeriodNames:function(t){return d.default.getPeriodNames(t)},getTimeSeparator:function(){return":"},is24HourFormat:function(t){for(var e=new Date(2017,0,20,11,0,0,0),n=new Date(2017,0,20,23,0,0,0),i=this.format(e,t),o=this.format(n,t),r=0;r<i.length;r++)if(i[r]!==o[r])return!isNaN(parseInt(i[r]))},format:function(t,e){if(t){if(!e)return t;var n;if("function"===typeof e)n=e;else if(e.formatter)n=e.formatter;else if(e=e.type||e,(0,o.isString)(e))return e=v[e.toLowerCase()]||e,p.default.convertDigits((0,l.getFormatter)(e,this)(t));if(n)return n(t)}},parse:function(t,e){var n,i,o=this;if(t){if(!e)return this.parse(t,"shortdate");if(e.parser)return e.parser(t);if("string"!==typeof e||v[e.toLowerCase()]){i=function(t){var n=o.format(t,e);return p.default.convertDigits(n,!0)};try{n=(0,u.getFormat)(i)}catch(a){}}else n=e;if(n)return t=p.default.convertDigits(t,!0),(0,c.getParser)(n,this)(t);s.default.log("W0012");var r=new Date(t);if(r&&!isNaN(r.getTime()))return r}},firstDayOfWeekIndex:function(){var t=(0,f.getValueByClosestLocale)((function(t){return h.default[t]}));return void 0===t?0:t}});_&&b.inject(m.default),t.exports=b},function(t,e,n){"use strict";var i=p(n(3)),o=p(n(6)),r=p(n(21)),a=p(n(39)),s=n(4),l=n(2),u=n(16),c=n(5),d=p(n(23)),h=p(n(12)),f=n(10);function p(t){return t&&t.__esModule?t:{default:t}}var m=r.default.inherit({_endUpdateCore:function(){},ctor:function(t){var e=this;e._updateLockCount=0,e.component=t,e._actions={},e._actionConfigs={},(0,c.each)(this.callbackNames()||[],(function(t,n){var i=e.callbackFlags(n)||{};i.unique=!0,i.syncStrategy=!0,e[this]=(0,a.default)(i)}))},init:function(){},callbackNames:function(){},callbackFlags:function(){},publicMethods:function(){},beginUpdate:function(){this._updateLockCount++},endUpdate:function(){this._updateLockCount>0&&(this._updateLockCount--,this._updateLockCount||this._endUpdateCore())},option:function(t){var e=this.component,n=e._optionCache;return 1===arguments.length&&n?(t in n||(n[t]=e.option(t)),n[t]):e.option.apply(e,arguments)},localize:function(t){var e=this.component._optionCache;return e?(t in e||(e[t]=h.default.format(t)),e[t]):h.default.format(t)},on:function(){return this.component.on.apply(this.component,arguments)},off:function(){return this.component.off.apply(this.component,arguments)},optionChanged:function(t){t.name in this._actions&&(this.createAction(t.name,this._actionConfigs[t.name]),t.handled=!0)},getAction:function(t){return this._actions[t]},setAria:function(t,e,n){var i=n.get(0),o="role"!==t&&"id"!==t?"aria-":"";i.setAttribute?i.setAttribute(o+t,e):n.attr(o+t,e)},_createComponent:function(){return this.component._createComponent.apply(this.component,arguments)},getController:function(t){return this.component._controllers[t]},createAction:function(t,e){if((0,l.isFunction)(t)){var n=this.component._createAction(t.bind(this),e);return function(t){n({event:t})}}this._actions[t]=this.component._createActionByOption(t,e),this._actionConfigs[t]=e},executeAction:function(t,e){var n=this._actions[t];return n&&n(e)},dispose:function(){var t=this;(0,c.each)(t.callbackNames()||[],(function(){t[this].empty()}))},addWidgetPrefix:function(t){return"dx-"+this.component.NAME.slice(2).toLowerCase()+(t?"-"+t:"")},getWidgetContainerClass:function(){var t="dxDataGrid"===this.component.NAME?null:"container";return this.addWidgetPrefix(t)}}),g=m,_=g.inherit({getView:function(t){return this.component._views[t]},getViews:function(){return this.component._views}}),v=m.inherit({_isReady:function(){return this.component.isReady()},_endUpdateCore:function(){this.callBase(),!this._isReady()&&this._requireReady&&(this._requireRender=!1,this.component._requireResize=!1),this._requireRender&&(this._requireRender=!1,this.render(this._$parent))},_invalidate:function(t,e){this._requireRender=!0,this.component._requireResize=(0,f.hasWindow)()&&(this.component._requireResize||t),this._requireReady=this._requireReady||e},_renderCore:function(){},_resizeCore:function(){},_afterRender:function(){},_parentElement:function(){return this._$parent},ctor:function(t){this.callBase(t),this.renderCompleted=(0,a.default)(),this.resizeCompleted=(0,a.default)()},element:function(){return this._$element},getElementHeight:function(){var t=this.element();if(!t)return 0;var e=parseFloat(t.css("marginTop"))||0,n=parseFloat(t.css("marginBottom"))||0;return t.get(0).offsetHeight+e+n},isVisible:function(){return!0},getTemplate:function(t){return this.component._getTemplate(t)},render:function(t,e){var n=this._$element,o=this.isVisible();(n||t)&&(this._requireReady=!1,n||(n=this._$element=(0,i.default)("<div>").appendTo(t),this._$parent=t),n.toggleClass("dx-hidden",!o),o&&(this.component._optionCache={},this._renderCore(e),this.component._optionCache=void 0,this._afterRender(t),this.renderCompleted.fire(e)))},resize:function(){this.isResizing=!0,this._resizeCore(),this.resizeCompleted.fire(),this.isResizing=!1},focus:function(){o.default.trigger(this.element(),"focus")}});t.exports={modules:[],View:v,ViewController:_,Controller:g,registerModule:function(t,e){for(var n=this.modules,i=0;i<n.length;i++)if(n[i].name===t)return;e.name=t,n.push(e),delete this.controllerTypes,delete this.viewTypes},registerModulesOrder:function(t){this.modulesOrder=t},unregisterModule:function(t){this.modules=(0,s.grep)(this.modules,(function(e){return e.name!==t})),delete this.controllerTypes,delete this.viewTypes},processModules:function(t,e){var n=e.modules,i=e.modulesOrder,o=e.controllerTypes||{},r=e.viewTypes||{};e.controllerTypes||(i&&n.sort((function(t,e){var n=(0,u.inArray)(t.name,i),o=(0,u.inArray)(e.name,i);return n<0&&(n=1e6),o<0&&(o=1e6),n-o})),(0,c.each)(n,(function(){var t=this.controllers,e=this.name,n=this.views;t&&(0,c.each)(t,(function(t,n){if(o[t])throw d.default.Error("E1001",e,t);if(!(n&&n.subclassOf&&n.subclassOf(g)))throw n.subclassOf(g),d.default.Error("E1002",e,t);o[t]=n})),n&&(0,c.each)(n,(function(t,n){if(r[t])throw d.default.Error("E1003",e,t);if(!(n&&n.subclassOf&&n.subclassOf(v)))throw d.default.Error("E1004",e,t);r[t]=n}))})),(0,c.each)(n,(function(){var t=this.extenders;t&&(t.controllers&&(0,c.each)(t.controllers,(function(t,e){o[t]&&(o[t]=o[t].inherit(e))})),t.views&&(0,c.each)(t.views,(function(t,e){r[t]&&(r[t]=r[t].inherit(e))})))})),e.controllerTypes=o,e.viewTypes=r);var a=function(e){var n={};return(0,c.each)(e,(function(e,i){var o=new i(t);o.name=e,function(t,e,n){var i=n.publicMethods();i&&(0,c.each)(i,(function(i,o){if(!n[o])throw d.default.Error("E1006",e,o);if(t[o])throw d.default.Error("E1005",o);t[o]=function(){return n[o].apply(n,arguments)}}))}(t,e,o),n[e]=o})),n};t._controllers=a(o),t._views=a(r)},callModuleItemsMethod:function(t,e,n){n=n||[],t._controllers&&(0,c.each)(t._controllers,(function(){this[e]&&this[e].apply(this,n)})),t._views&&(0,c.each)(t._views,(function(){this[e]&&this[e].apply(this,n)}))}}},function(t,e,n){"use strict";var i=n(21).inherit({ctor:function(t){t&&(t=String(t)),this._value=this._normalize(t||this._generate())},_normalize:function(t){for(t=t.replace(/[^a-f0-9]/gi,"").toLowerCase();t.length<32;)t+="0";return[t.substr(0,8),t.substr(8,4),t.substr(12,4),t.substr(16,4),t.substr(20,12)].join("-")},_generate:function(){for(var t="",e=0;e<32;e++)t+=Math.round(15*Math.random()).toString(16);return t},toString:function(){return this._value},valueOf:function(){return this._value},toJSON:function(){return this._value}});t.exports=i,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(5).map,o=function(t){return void 0===t||null===t?"":String(t)},r=function(t){return o(t).charAt(0).toUpperCase()+t.substr(1)},a=function(t){return o(t).replace(/([a-z\d])([A-Z])/g,"$1 $2").split(/[\s_-]+/)},s=function(t){return i(a(t),(function(t){return t.toLowerCase()})).join("-")},l=["0","1","2","3","4","5","6","7","8","9"];e.dasherize=s,e.camelize=function(t,e){return i(a(t),(function(t,n){return t=t.toLowerCase(),(e||n>0)&&(t=r(t)),t})).join("")},e.humanize=function(t){return r(s(t).replace(/-/g," "))},e.titleize=function(t){return i(a(t),(function(t){return r(t.toLowerCase())})).join(" ")},e.underscore=function(t){return s(t).replace(/-/g,"_")},e.captionize=function(t){var e,n,i=[],o=!1,r=!1;for(e=0;e<t.length;e++)r=(n=t.charAt(e))===n.toUpperCase()&&"-"!==n&&")"!==n&&"/"!==n||n in l,"_"===n||"."===n?(n=" ",r=!0):0===e?(n=n.toUpperCase(),r=!0):!o&&r&&i.length>0&&i.push(" "),i.push(n),o=r;return i.join("")}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(3),r=n(10).getWindow(),a=n(6),s=n(38),l=n(17).getPublicElement,u=n(0).extend,c=n(2),d=n(5),h=n(33),f=n(619),p=n(184),m=n(58),g=n(90),_=n(185),v=n(11),y=n(7),b=y.when,w=y.Deferred,x=v.addNamespace(_,"dxFX"),C=c.isFunction,S=c.isPlainObject,k=n(4).noop,I=/^([+-])=(.*)/i,T={initAnimation:function(t,e){t.css({transitionProperty:"none"}),"string"===typeof e.from?t.addClass(e.from):$(t,e.from);var n=this,i=new w,o=e.cleanupWhen;e.transitionAnimation={deferred:i,finish:function(){n._finishTransition(t),o?b(i,o).always((function(){n._cleanup(t,e)})):n._cleanup(t,e),i.resolveWith(t,[e,t])}},this._completeAnimationCallback(t,e).done((function(){e.transitionAnimation.finish()})).fail((function(){i.rejectWith(t,[e,t])})),e.duration||e.transitionAnimation.finish(),t.css("transform")},animate:function(t,e){return this._startAnimation(t,e),e.transitionAnimation.deferred.promise()},_completeAnimationCallback:function(t,e){var n,i=this,o=Date.now()+e.delay,r=new w,s=new w,l=new w,u=m.transitionEndEventName()+".dxFX";e.transitionAnimation.cleanup=function(){clearTimeout(n),clearTimeout(c),a.off(t,u),a.off(t,x)},a.one(t,u,(function(){Date.now()-o>=e.duration&&s.reject()})),a.off(t,x),a.on(t,x,(function(){i.stop(t,e),r.reject()}));var c=setTimeout((function(){n=setTimeout((function(){l.reject()}),e.duration+e.delay+Y._simulatedTransitionEndDelay),b(s,l).fail(function(){r.resolve()}.bind(this))}));return r.promise()},_startAnimation:function(t,e){t.css({transitionProperty:"all",transitionDelay:e.delay+"ms",transitionDuration:e.duration+"ms",transitionTimingFunction:e.easing}),"string"===typeof e.to?t[0].className+=" "+e.to:e.to&&$(t,e.to)},_finishTransition:function(t){t.css("transition","none")},_cleanup:function(t,e){e.transitionAnimation.cleanup(),"string"===typeof e.from&&(t.removeClass(e.from),t.removeClass(e.to))},stop:function(t,e,n){e&&(n?e.transitionAnimation.finish():(S(e.to)&&d.each(e.to,(function(e){t.css(e,t.css(e))})),this._finishTransition(t),this._cleanup(t,e)))}},E={initAnimation:function(t,e){$(t,e.from)},animate:function(t,e){var n=new w,i=this;return e?(d.each(e.to,(function(n){void 0===e.from[n]&&(e.from[n]=i._normalizeValue(t.css(n)))})),e.to.transform&&(e.from.transform=i._parseTransform(e.from.transform),e.to.transform=i._parseTransform(e.to.transform)),e.frameAnimation={to:e.to,from:e.from,currentValue:e.from,easing:f.convertTransitionTimingFuncToEasing(e.easing),duration:e.duration,startTime:(new Date).valueOf(),finish:function(){this.currentValue=this.to,this.draw(),p.cancelAnimationFrame(e.frameAnimation.animationFrameId),n.resolve()},draw:function(){if(e.draw)e.draw(this.currentValue);else{var n=u({},this.currentValue);n.transform&&(n.transform=d.map(n.transform,(function(t,e){return"translate"===e?h.getTranslateCss(t):"scale"===e?"scale("+t+")":"rotate"===e.substr(0,e.length-1)?e+"("+t+"deg)":void 0})).join(" ")),t.css(n)}}},e.delay?(e.frameAnimation.startTime+=e.delay,e.frameAnimation.delayTimeout=setTimeout((function(){i._startAnimation(t,e)}),e.delay)):i._startAnimation(t,e),n.promise()):n.reject().promise()},_startAnimation:function(t,e){a.off(t,x),a.on(t,x,(function(){e.frameAnimation&&p.cancelAnimationFrame(e.frameAnimation.animationFrameId)})),this._animationStep(t,e)},_parseTransform:function(t){var e={};return d.each(t.match(/(\w|\d)+\([^)]*\)\s*/g),(function(t,n){var i=h.parseTranslate(n),o=n.match(/scale\((.+?)\)/),r=n.match(/(rotate.)\((.+)deg\)/);i&&(e.translate=i),o&&o[1]&&(e.scale=parseFloat(o[1])),r&&r[1]&&(e[r[1]]=parseFloat(r[2]))})),e},stop:function(t,e,n){var i=e&&e.frameAnimation;i&&(p.cancelAnimationFrame(i.animationFrameId),clearTimeout(i.delayTimeout),n&&i.finish(),delete e.frameAnimation)},_animationStep:function(t,e){var n=e&&e.frameAnimation;if(n){var i=(new Date).valueOf();if(i>=n.startTime+n.duration)n.finish();else{n.currentValue=this._calcStepValue(n,i-n.startTime),n.draw();var o=this;n.animationFrameId=p.requestAnimationFrame((function(){o._animationStep(t,e)}))}}},_calcStepValue:function(t,e){return function n(o,r){var a=Array.isArray(r)?[]:{};return d.each(r,(function(s,l){if("string"===typeof l&&!1===parseFloat(l,10))return!0;a[s]="object"===i(l)?n(o[s],l):function(n){var i=e/t.duration,a=e,s=1*o[n],l=r[n]-o[n],u=t.duration;return f.getEasing(t.easing)(i,a,s,l,u)}(s)})),a}(t.from,t.to)},_normalizeValue:function(t){var e=parseFloat(t,10);return!1===e?t:e}},O={initAnimation:function(){},animate:function(){return(new w).resolve().promise()},stop:k,isSynchronous:!0},M=function(t,e,n,i){d.each(["from","to"],(function(){if(!n(t[this]))throw s.Error("E0010",e,this,i)}))},P=function(t,e){return M(t,e,(function(t){return S(t)}),"a plain object")},D={top:{my:"bottom center",at:"top center"},bottom:{my:"top center",at:"bottom center"},right:{my:"left center",at:"right center"},left:{my:"right center",at:"left center"}},A={validateConfig:function(t){P(t,"slide")},setup:function(t,e){var n=h.locate(t);if("slide"!==e.type){var i="slideIn"===e.type?e.from:e.to;i.position=u({of:r},D[e.direction]),q(t,i)}this._setUpConfig(n,e.from),this._setUpConfig(n,e.to),h.clearCache(t)},_setUpConfig:function(t,e){e.left="left"in e?e.left:"+=0",e.top="top"in e?e.top:"+=0",this._initNewPosition(t,e)},_initNewPosition:function(t,e){var n={left:e.left,top:e.top};delete e.left,delete e.top;var i=this._getRelativeValue(n.left);void 0!==i?n.left=i+t.left:e.left=0,void 0!==(i=this._getRelativeValue(n.top))?n.top=i+t.top:e.top=0,e.transform=h.getTranslateCss({x:n.left,y:n.top})},_getRelativeValue:function(t){var e;if("string"===typeof t&&(e=I.exec(t)))return parseInt(e[1]+"1")*e[2]}},R={setup:function(t,e){var n,i=e.from,o=S(i)?e.skipElementInitialStyles?0:t.css("opacity"):String(i);switch(e.type){case"fadeIn":n=1;break;case"fadeOut":n=0;break;default:n=String(e.to)}e.from={visibility:"visible",opacity:o},e.to={opacity:n}}},B={custom:{setup:function(){}},slide:A,slideIn:A,slideOut:A,fade:R,fadeIn:R,fadeOut:R,pop:{validateConfig:function(t){P(t,"pop")},setup:function(t,e){var n=e.from,i=e.to,o="opacity"in n?n.opacity:t.css("opacity"),r="opacity"in i?i.opacity:1,a="scale"in n?n.scale:0,s="scale"in i?i.scale:1;e.from={opacity:o};var l=h.getTranslate(t);e.from.transform=this._getCssTransform(l,a),e.to={opacity:r},e.to.transform=this._getCssTransform(l,s)},_getCssTransform:function(t,e){return h.getTranslateCss(t)+"scale("+e+")"}},css:{validateConfig:function(t){!function(t,e){M(t,e,(function(t){return"string"===typeof t}),"a string")}(t,"css")},setup:function(){}}},N={type:"custom",from:{},to:{},duration:400,start:k,complete:k,easing:"ease",delay:0},L={duration:400,easing:"ease",delay:0};function F(){var t=this.element,e=this.config;if(q(t,e.from),q(t,e.to),this.configurator.setup(t,e),t.data("dxAnimData",this),Y.off&&(e.duration=0,e.delay=0),this.strategy.initAnimation(t,e),e.start){var n=l(t);e.start.apply(this,[n,e])}}var V=function(){var t=this,e=t.element,n=t.config;return t.isStarted=!0,t.strategy.animate(e,n).done((function(){!function(t){var e=t.element,n=t.config;if(e.removeData("dxAnimData"),n.complete){var i=l(e);n.complete.apply(this,[i,n])}t.deferred.resolveWith(this,[e,n])}(t)})).fail((function(){t.deferred.rejectWith(this,[e,n])}))},z=function(t){var e=this.element,n=this.config;clearTimeout(this.startTimeout),this.isStarted||this.start(),this.strategy.stop(e,n,t)},j=v.addNamespace(_,"dxFXStartAnimation"),H=function(t,e){var n="css"===e.type?L:N,i=u(!0,{},n,e),r=function(t){var e=B[t.type];if(!e)throw s.Error("E0011",t.type);return e}(i),l=function(t){t=t||{};var e={transition:m.transition()?T:E,frame:E,noAnimation:O},n=t.strategy||"transition";return"css"!==t.type||m.transition()||(n="noAnimation"),e[n]}(i),c={element:o(t),config:i,configurator:r,strategy:l,isSynchronous:l.isSynchronous,setup:F,start:V,stop:z,deferred:new w};return C(r.validateConfig)&&r.validateConfig(i),function(t){a.off(t.element,j),a.on(t.element,j,(function(){Y.stop(t.element)})),t.deferred.always((function(){a.off(t.element,j)}))}(c),c};function W(t){return t.data("dxAnimQueue")||[]}var U=function(t){t.removeData("dxAnimQueue")};function G(t){return!!t.data("dxAnimData")}function K(t,e){if((e=W(t)).length){var n=e.shift();0===e.length&&U(t),function(t){t.setup(),Y.off||t.isSynchronous?t.start():t.startTimeout=setTimeout((function(){t.start()}));return t.deferred.promise()}(n).done((function(){G(t)||K(t)}))}}function q(t,e){if(e&&e.position){var n=o(r),i=0,a=0,s=g.calculate(t,e.position),l=t.offset(),c=t.position();c.top>l.top&&(a=n.scrollTop()),c.left>l.left&&(i=n.scrollLeft()),u(e,{left:s.h.location-l.left+c.left-i,top:s.v.location-l.top+c.top-a}),delete e.position}}function $(t,e){d.each(e,(function(e,n){try{t.css(e,c.isFunction(n)?n():n)}catch(i){}}))}var Y={off:!1,animationTypes:B,animate:function(t,e){var n=o(t);if(!n.length)return(new w).resolve().promise();var i=H(n,e);return function(t,e){var n=W(t);(function(t,e){t.data("dxAnimQueue",e)})(t,n),n.push(e),G(t)||K(t,n)}(n,i),i.deferred.promise()},createAnimation:H,isAnimating:G,stop:function(t,e){var n=o(t),i=W(n);d.each(i,(function(t,e){e.config.delay=0,e.config.duration=0,e.isSynchronous=!0})),G(n)||K(n,i);var r=n.data("dxAnimData");r&&r.stop(e),n.removeData("dxAnimData"),U(n)},_simulatedTransitionEndDelay:100};t.exports=Y,t.exports.default=t.exports},function(t,e,n){"use strict";var i=k(n(33)),o=k(n(8)),r=k(n(18)),a=n(17),s=k(a),l=k(n(3)),u=n(98),c=n(16),d=k(n(31)),h=n(4),f=n(0),p=n(46),m=n(5),g=k(n(212)),_=n(24),v=n(2),y=n(187),b=k(n(10)),w=k(n(12)),x=k(n(42)),C=k(n(80)),S=k(n(36));function k(t){return t&&t.__esModule?t:{default:t}}var I=b.default.getWindow();n(374);var T=["cancel","clear","done"],E=d.default.msie&&11===parseInt(d.default.version),O=d.default.safari&&(0,y.compare)(d.default.version,[11])<0,M={static:"",inherit:"dx-popup-inherit-height",flex:"dx-popup-flex-height"},P=C.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{fullScreen:!1,title:"",showTitle:!0,titleTemplate:"title",onTitleRendered:null,dragEnabled:!1,toolbarItems:[],showCloseButton:!1,bottomTemplate:"bottom",useDefaultToolbarButtons:!1,useFlatToolbarButtons:!1,autoResizeEnabled:!0})},_defaultOptionsRules:function(){var t=S.default.current();return this.callBase().concat([{device:{platform:"ios"},options:{animation:this._iosAnimation}},{device:{platform:"android"},options:{animation:this._androidAnimation}},{device:{platform:"generic"},options:{showCloseButton:!0}},{device:function(t){return"desktop"===r.default.real().deviceType&&"generic"===t.platform},options:{dragEnabled:!0}},{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return S.default.isMaterial(t)},options:{useDefaultToolbarButtons:!0,useFlatToolbarButtons:!0}}])},_iosAnimation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom"}},to:{position:{my:"center",at:"center"}}},hide:{type:"slide",duration:400,from:{opacity:1,position:{my:"center",at:"center"}},to:{opacity:1,position:{my:"top",at:"bottom"}}}},_androidAnimation:function(){return this.option("fullScreen")?{show:{type:"slide",duration:300,from:{top:"30%",opacity:0},to:{top:0,opacity:1}},hide:{type:"slide",duration:300,from:{top:0,opacity:1},to:{top:"30%",opacity:0}}}:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}}},_init:function(){this.callBase(),this.$element().addClass("dx-popup"),this._wrapper().addClass("dx-popup-wrapper"),this._$popupContent=this._$content.wrapInner((0,l.default)("<div>").addClass("dx-popup-content")).children().eq(0)},_render:function(){var t=this.option("fullScreen");this._toggleFullScreenClass(t),this.callBase()},_toggleFullScreenClass:function(t){this._$content.toggleClass("dx-popup-fullscreen",t).toggleClass("dx-popup-normal",!t)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new u.EmptyTemplate,bottom:new u.EmptyTemplate})},_renderContentImpl:function(){this._renderTitle(),this.callBase(),this._renderBottom()},_renderTitle:function(){var t=this._getToolbarItems("top"),e=this.option("title"),n=this.option("showTitle");if(n&&e&&t.unshift({location:r.default.current().ios?"center":"before",text:e}),n||t.length>0){this._$title&&this._$title.remove();var i=(0,l.default)("<div>").addClass("dx-popup-title").insertBefore(this.$content());this._$title=this._renderTemplateByType("titleTemplate",t,i).addClass("dx-popup-title"),this._renderDrag(),this._executeTitleRenderAction(this._$title)}else this._$title&&this._$title.detach()},_renderTemplateByType:function(t,e,n,i){var o=this._getTemplateByOption(t);if(o instanceof u.EmptyTemplate){var r=(0,f.extend)({},this.option("integrationOptions"),{skipTemplates:["content","title"]}),s=(0,f.extend)(i,{items:e,rtlEnabled:this.option("rtlEnabled"),useDefaultButtons:this.option("useDefaultToolbarButtons"),useFlatButtons:this.option("useFlatToolbarButtons"),integrationOptions:r});this._getTemplate("dx-polymorph-widget").render({container:n,model:{widget:"dxToolbarBase",options:s}});var c=n.children("div");return n.replaceWith(c),c}var d=(0,l.default)(o.render({container:(0,a.getPublicElement)(n)}));return d.hasClass("dx-template-wrapper")&&(n.replaceWith(d),n=d),n},_executeTitleRenderAction:function(t){this._getTitleRenderAction()({titleElement:(0,a.getPublicElement)(t)})},_getTitleRenderAction:function(){return this._titleRenderAction||this._createTitleRenderAction()},_createTitleRenderAction:function(){return this._titleRenderAction=this._createActionByOption("onTitleRendered",{element:this.element(),excludeValidators:["disabled","readOnly"]})},_getCloseButton:function(){return{toolbar:"top",location:"after",template:this._getCloseButtonRenderer()}},_getCloseButtonRenderer:function(){return function(t,e,n){var i=(0,l.default)("<div>").addClass("dx-closebutton");this._createComponent(i,x.default,{icon:"close",onClick:this._createToolbarItemAction(void 0),integrationOptions:{}}),(0,l.default)(n).append(i)}.bind(this)},_getToolbarItems:function(t){var e=this.option("toolbarItems"),n=[];this._toolbarItemClasses=[];var i=r.default.current().platform,o=0;return(0,m.each)(e,function(e,a){var s=(0,v.isDefined)(a.shortcut),l=s?function(t){var e=r.default.current(),n=e.platform,i="bottom",o="before";if("ios"===n)switch(t){case"cancel":i="top";break;case"clear":i="top",o="after";break;case"done":o="after"}else if("android"===n&&e.version&&parseInt(e.version[0])>4)switch(t){case"cancel":o="after";break;case"done":o="after"}else"android"===n&&(o="center");return{toolbar:i,location:o}}(a.shortcut):a;if(s&&"ios"===i&&o<2&&(l.toolbar="top",o++),l.toolbar=a.toolbar||l.toolbar||"top",l&&l.toolbar===t){s&&(0,f.extend)(l,{location:a.location},this._getToolbarItemByAlias(a));var u="generic"===i;"done"===a.shortcut&&u||"cancel"===a.shortcut&&!u?n.unshift(l):n.push(l)}}.bind(this)),"top"===t&&this.option("showCloseButton")&&this.option("showTitle")&&n.push(this._getCloseButton()),n},_getLocalizationKey:function(t){return"done"===t.toLowerCase()?"OK":(0,p.camelize)(t,!0)},_getToolbarItemByAlias:function(t){var e=this,n=t.shortcut;if((0,c.inArray)(n,T)<0)return!1;var i=(0,f.extend)({text:w.default.format(this._getLocalizationKey(n)),onClick:this._createToolbarItemAction(t.onClick),integrationOptions:{},type:e.option("useDefaultToolbarButtons")?"default":"normal",stylingMode:e.option("useFlatToolbarButtons")?"text":"contained"},t.options||{}),o="dx-popup-"+n;return this._toolbarItemClasses.push(o),{template:function(t,n,r){var a=(0,l.default)("<div>").addClass(o).appendTo(r);e._createComponent(a,x.default,i)}}},_createToolbarItemAction:function(t){return this._createAction(t,{afterExecute:function(t){t.component.hide()}})},_renderBottom:function(){var t=this._getToolbarItems("bottom");if(t.length){this._$bottom&&this._$bottom.remove();var e=(0,l.default)("<div>").addClass("dx-popup-bottom").insertAfter(this.$content());this._$bottom=this._renderTemplateByType("bottomTemplate",t,e,{compactMode:!0}).addClass("dx-popup-bottom"),this._toggleClasses()}else this._$bottom&&this._$bottom.detach()},_toggleClasses:function(){var t=T;(0,m.each)(t,function(t,e){var n="dx-popup-"+e;(0,c.inArray)(n,this._toolbarItemClasses)>=0?(this._wrapper().addClass(n+"-visible"),this._$bottom.addClass(n)):(this._wrapper().removeClass(n+"-visible"),this._$bottom.removeClass(n))}.bind(this))},_getContainer:function(){return this.option("fullScreen")?(0,l.default)(I):this.callBase()},_getDragTarget:function(){return this.topToolbar()},_renderGeometryImpl:function(t){t||this._resetContentHeight(),this.callBase.apply(this,arguments),this._setContentHeight()},_resetContentHeight:function(){this._$popupContent.css({height:"auto",maxHeight:"none"})},_renderDrag:function(){this.callBase(),this._$content.toggleClass("dx-popup-draggable",this.option("dragEnabled"))},_renderResize:function(){this.callBase(),this._resizable.option("onResize",function(){this._setContentHeight(),this._actions.onResize(arguments)}.bind(this))},_setContentHeight:function(){(this.option("forceApplyBindings")||h.noop)();var t=this.overlayContent().get(0),e=this._chooseHeightStrategy(t);this.$content().css(this._getHeightCssStyles(e,t)),this._setHeightClasses(this.overlayContent(),e)},_heightStrategyChangeOffset:function(t,e){return t===M.flex?-e:0},_chooseHeightStrategy:function(t){var e="auto"===t.style.width||""===t.style.width,n=M.static;return this._isAutoHeight()&&this.option("autoResizeEnabled")&&(e||O?E||(n=M.inherit):n=M.flex),n},_getHeightCssStyles:function(t,e){var n={},i=this._getOptionValue("maxHeight",e),o=this._getOptionValue("minHeight",e),r=this._splitPopupHeight(),a=r.header+r.footer+r.contentVerticalOffsets+r.popupVerticalOffsets+this._heightStrategyChangeOffset(t,r.popupVerticalPaddings);if(t===M.static){if(!this._isAutoHeight()||i||o){var s=(this.option("fullScreen")?Math.min((0,_.getBoundingRect)(e).height,b.default.getWindow().innerHeight):(0,_.getBoundingRect)(e).height)-a;n={height:Math.max(0,s),minHeight:"auto",maxHeight:"auto"}}}else{var u=(0,l.default)(this._getContainer()).get(0),c=g.default.addOffsetToMaxHeight(i,-a,u);n={height:"auto",minHeight:g.default.addOffsetToMinHeight(o,-a,u),maxHeight:c}}return n},_setHeightClasses:function(t,e){var n="";for(var i in M)M[i]!==e&&(n+=" "+M[i]);t.removeClass(n).addClass(e)},_isAutoHeight:function(){return"auto"===this.overlayContent().get(0).style.height},_splitPopupHeight:function(){var t=this.topToolbar(),e=this.bottomToolbar();return{header:g.default.getVisibleHeight(t&&t.get(0)),footer:g.default.getVisibleHeight(e&&e.get(0)),contentVerticalOffsets:g.default.getVerticalOffsets(this.overlayContent().get(0),!0),popupVerticalOffsets:g.default.getVerticalOffsets(this.$content().get(0),!0),popupVerticalPaddings:g.default.getVerticalOffsets(this.$content().get(0),!1)}},_useFixedPosition:function(){return this.callBase()||this.option("fullScreen")},_toggleSafariFullScreen:function(t){this._useFixedPosition()&&t&&!this._isShown?this._bodyScrollTop=t?I.pageYOffset:void 0:this._toggleSafariScrolling(!t)},_renderDimensions:function(){this.option("fullScreen")?this._$content.css({width:"100%",height:"100%"}):this.callBase.apply(this,arguments),b.default.hasWindow()&&this._renderFullscreenWidthClass()},_renderFullscreenWidthClass:function(){this.overlayContent().toggleClass("dx-popup-fullscreen-width",this.overlayContent().outerWidth()===(0,l.default)(I).width())},refreshPosition:function(){this._renderPosition()},_renderPosition:function(){if(!this.option("fullScreen"))return(this.option("forceApplyBindings")||h.noop)(),this.callBase.apply(this,arguments);i.default.move(this._$content,{top:0,left:0})},_optionChanged:function(t){switch(t.name){case"showTitle":case"title":case"titleTemplate":this._renderTitle(),this._renderGeometry();break;case"bottomTemplate":this._renderBottom(),this._renderGeometry();break;case"onTitleRendered":this._createTitleRenderAction(t.value);break;case"toolbarItems":case"useDefaultToolbarButtons":case"useFlatToolbarButtons":var e=!t.fullName.match(/^toolbarItems((\[\d+\])(\.(options|visible).*)?)?$/);this._renderTitle(),this._renderBottom(),e&&this._renderGeometry();break;case"dragEnabled":this._renderDrag();break;case"autoResizeEnabled":this._renderGeometry(),s.default.triggerResizeEvent(this._$content);break;case"fullScreen":this._toggleFullScreenClass(t.value),this._toggleSafariFullScreen(t.value),this._renderGeometry(),s.default.triggerResizeEvent(this._$content);break;case"showCloseButton":this._renderTitle();break;default:this.callBase(t)}},bottomToolbar:function(){return this._$bottom},topToolbar:function(){return this._$title},$content:function(){return this._$popupContent},content:function(){return(0,a.getPublicElement)(this._$popupContent)},overlayContent:function(){return this._$content}});(0,o.default)("dxPopup",P),t.exports=P,t.exports.default=t.exports},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return S})),n.d(e,"c",(function(){return m})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return C}));var i=n(75),o=n(1),r=n.n(o),a=(n(9),n(88)),s=n(341),l=n(76),u=n(41),c=n(342),d=n.n(c),h=(n(248),n(71)),f=(n(210),function(t){var e=Object(s.a)();return e.displayName=t,e}("Router-History")),p=function(t){var e=Object(s.a)();return e.displayName=t,e}("Router"),m=function(t){function e(e){var n;return(n=t.call(this,e)||this).state={location:e.history.location},n._isMounted=!1,n._pendingLocation=null,e.staticContext||(n.unlisten=e.history.listen((function(t){n._isMounted?n.setState({location:t}):n._pendingLocation=t}))),n}Object(i.a)(e,t),e.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var n=e.prototype;return n.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},n.componentWillUnmount=function(){this.unlisten&&this.unlisten()},n.render=function(){return r.a.createElement(p.Provider,{value:{history:this.props.history,location:this.state.location,match:e.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},r.a.createElement(f.Provider,{children:this.props.children||null,value:this.props.history}))},e}(r.a.Component);r.a.Component;var g=function(t){function e(){return t.apply(this,arguments)||this}Object(i.a)(e,t);var n=e.prototype;return n.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},n.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},n.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},n.render=function(){return null},e}(r.a.Component);var _={},v=0;function y(t,e){return void 0===t&&(t="/"),void 0===e&&(e={}),"/"===t?t:function(t){if(_[t])return _[t];var e=d.a.compile(t);return v<1e4&&(_[t]=e,v++),e}(t)(e,{pretty:!0})}function b(t){var e=t.computedMatch,n=t.to,i=t.push,o=void 0!==i&&i;return r.a.createElement(p.Consumer,null,(function(t){t||Object(l.a)(!1);var i=t.history,s=t.staticContext,c=o?i.push:i.replace,d=Object(a.c)(e?"string"===typeof n?y(n,e.params):Object(u.a)({},n,{pathname:y(n.pathname,e.params)}):n);return s?(c(d),null):r.a.createElement(g,{onMount:function(){c(d)},onUpdate:function(t,e){var n=Object(a.c)(e.to);Object(a.f)(n,Object(u.a)({},d,{key:n.key}))||c(d)},to:n})}))}var w={},x=0;function C(t,e){void 0===e&&(e={}),("string"===typeof e||Array.isArray(e))&&(e={path:e});var n=e,i=n.path,o=n.exact,r=void 0!==o&&o,a=n.strict,s=void 0!==a&&a,l=n.sensitive,u=void 0!==l&&l;return[].concat(i).reduce((function(e,n){if(!n&&""!==n)return null;if(e)return e;var i=function(t,e){var n=""+e.end+e.strict+e.sensitive,i=w[n]||(w[n]={});if(i[t])return i[t];var o=[],r={regexp:d()(t,o,e),keys:o};return x<1e4&&(i[t]=r,x++),r}(n,{end:r,strict:s,sensitive:u}),o=i.regexp,a=i.keys,l=o.exec(t);if(!l)return null;var c=l[0],h=l.slice(1),f=t===c;return r&&!f?null:{path:n,url:"/"===n&&""===c?"/":c,isExact:f,params:a.reduce((function(t,e,n){return t[e.name]=h[n],t}),{})}}),null)}var S=function(t){function e(){return t.apply(this,arguments)||this}return Object(i.a)(e,t),e.prototype.render=function(){var t=this;return r.a.createElement(p.Consumer,null,(function(e){e||Object(l.a)(!1);var n=t.props.location||e.location,i=t.props.computedMatch?t.props.computedMatch:t.props.path?C(n.pathname,t.props):e.match,o=Object(u.a)({},e,{location:n,match:i}),a=t.props,s=a.children,c=a.component,d=a.render;return Array.isArray(s)&&0===s.length&&(s=null),r.a.createElement(p.Provider,{value:o},o.match?s?"function"===typeof s?s(o):s:c?r.a.createElement(c,o):d?d(o):null:"function"===typeof s?s(o):null)}))},e}(r.a.Component);function k(t){return"/"===t.charAt(0)?t:"/"+t}function I(t,e){if(!t)return e;var n=k(t);return 0!==e.pathname.indexOf(n)?e:Object(u.a)({},e,{pathname:e.pathname.substr(n.length)})}function T(t){return"string"===typeof t?t:Object(a.e)(t)}function E(t){return function(){Object(l.a)(!1)}}function O(){}r.a.Component;r.a.Component;r.a.useContext},function(t,e){var n,i,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"===typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"===typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var l,u=[],c=!1,d=-1;function h(){c&&l&&(c=!1,l.length?u=l.concat(u):d=-1,u.length&&f())}function f(){if(!c){var t=s(h);c=!0;for(var e=u.length;e;){for(l=u,u=[];++d<e;)l&&l[d].run();d=-1,e=u.length}l=null,c=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}o.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new p(t,e)),1!==u.length||c||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(t){return[]},o.binding=function(t){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(t,e,n){"use strict";var i=r(n(0)),o=r(n(38));function r(t){return t&&t.__esModule?t:{default:t}}var a={rtlEnabled:!1,defaultCurrency:"USD",oDataFilterToLower:!0,serverDecimalSeparator:".",decimalSeparator:".",thousandsSeparator:",",forceIsoDateParsing:!0,wrapActionsBeforeExecute:!0,useLegacyStoreResult:!1,useJQuery:void 0,editorStylingMode:void 0,useLegacyVisibleIndex:!1,floatingActionButtonConfig:{icon:"add",closeIcon:"close",label:"",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,shading:!1,direction:"auto"},optionsParser:function(t){"{"!==t.trim().charAt(0)&&(t="{"+t+"}");try{return new Function("return "+t)()}catch(e){throw o.default.Error("E3018",e,t)}}},s=["decimalSeparator","thousandsSeparator"],l=function(){if(!arguments.length)return a;var t=arguments.length<=0?void 0:arguments[0];s.forEach((function(e){if(t[e]){var n="Now, the ".concat(e," is selected based on the specified locale.");o.default.log("W0003","config",e,"19.2",n)}})),i.default.extend(a,t)};"undefined"!==typeof DevExpress&&DevExpress.config&&l(DevExpress.config),t.exports=l,t.exports.default=t.exports},function(t,e,n){"use strict";(function(t){var i=n(712),o=n(713),r=n(388);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=l.prototype:(null===t&&(t=new l(e)),t.length=e),t}function l(t,e,n){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(t,e,n);if("number"===typeof t){if("string"===typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return u(this,t,e,n)}function u(t,e,n,i){if("number"===typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,i){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,n):new Uint8Array(e,n,i);l.TYPED_ARRAY_SUPPORT?(t=e).__proto__=l.prototype:t=h(t,e);return t}(t,e,n,i):"string"===typeof e?function(t,e,n){"string"===typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(e,n),o=(t=s(t,i)).write(e,n);o!==i&&(t=t.slice(0,o));return t}(t,e,n):function(t,e){if(l.isBuffer(e)){var n=0|f(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!==typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!==typeof e.length||(i=e.length)!==i?s(t,0):h(t,e);if("Buffer"===e.type&&r(e.data))return h(t,e.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function c(t){if("number"!==typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(c(e),t=s(t,e<0?0:0|f(e)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function h(t,e){var n=e.length<0?0:0|f(e.length);t=s(t,n);for(var i=0;i<n;i+=1)t[i]=255&e[i];return t}function f(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(l.isBuffer(t))return t.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!==typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(i)return z(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return O(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return E(this,e,n);case"base64":return k(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function _(t,e,n,i,o){if(0===t.length)return-1;if("string"===typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof e&&(e=l.from(e,i)),l.isBuffer(e))return 0===e.length?-1:v(t,e,n,i,o);if("number"===typeof e)return e&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,i,o){var r,a=1,s=t.length,l=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(o){var c=-1;for(r=n;r<s;r++)if(u(t,r)===u(e,-1===c?0:r-c)){if(-1===c&&(c=r),r-c+1===l)return c*a}else-1!==c&&(r-=r-c),c=-1}else for(n+l>s&&(n=s-l),r=n;r>=0;r--){for(var d=!0,h=0;h<l;h++)if(u(t,r+h)!==u(e,h)){d=!1;break}if(d)return r}return-1}function y(t,e,n,i){n=Number(n)||0;var o=t.length-n;i?(i=Number(i))>o&&(i=o):i=o;var r=e.length;if(r%2!==0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var a=0;a<i;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function b(t,e,n,i){return H(z(e,t.length-n),t,n,i)}function w(t,e,n,i){return H(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,i)}function x(t,e,n,i){return w(t,e,n,i)}function C(t,e,n,i){return H(j(e),t,n,i)}function S(t,e,n,i){return H(function(t,e){for(var n,i,o,r=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),i=n>>8,o=n%256,r.push(o),r.push(i);return r}(e,t.length-n),t,n,i)}function k(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o<n;){var r,a,s,l,u=t[o],c=null,d=u>239?4:u>223?3:u>191?2:1;if(o+d<=n)switch(d){case 1:u<128&&(c=u);break;case 2:128===(192&(r=t[o+1]))&&(l=(31&u)<<6|63&r)>127&&(c=l);break;case 3:r=t[o+1],a=t[o+2],128===(192&r)&&128===(192&a)&&(l=(15&u)<<12|(63&r)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:r=t[o+1],a=t[o+2],s=t[o+3],128===(192&r)&&128===(192&a)&&128===(192&s)&&(l=(15&u)<<18|(63&r)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),o+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i<e;)n+=String.fromCharCode.apply(String,t.slice(i,i+=4096));return n}(i)}e.Buffer=l,e.SlowBuffer=function(t){+t!=t&&(t=0);return l.alloc(+t)},e.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"===typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(e){return!1}}(),e.kMaxLength=a(),l.poolSize=8192,l._augment=function(t){return t.__proto__=l.prototype,t},l.from=function(t,e,n){return u(null,t,e,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(t,e,n){return function(t,e,n,i){return c(e),e<=0?s(t,e):void 0!==n?"string"===typeof i?s(t,e).fill(n,i):s(t,e).fill(n):s(t,e)}(null,t,e,n)},l.allocUnsafe=function(t){return d(null,t)},l.allocUnsafeSlow=function(t){return d(null,t)},l.isBuffer=function(t){return!(null==t||!t._isBuffer)},l.compare=function(t,e){if(!l.isBuffer(t)||!l.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,i=e.length,o=0,r=Math.min(n,i);o<r;++o)if(t[o]!==e[o]){n=t[o],i=e[o];break}return n<i?-1:i<n?1:0},l.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(t,e){if(!r(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var i=l.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var a=t[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},l.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},l.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},l.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?I(this,0,t):m.apply(this,arguments)},l.prototype.equals=function(t){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},l.prototype.compare=function(t,e,n,i,o){if(!l.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var r=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(r,a),u=this.slice(i,o),c=t.slice(e,n),d=0;d<s;++d)if(u[d]!==c[d]){r=u[d],a=c[d];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},l.prototype.indexOf=function(t,e,n){return _(this,t,e,n,!0)},l.prototype.lastIndexOf=function(t,e,n){return _(this,t,e,n,!1)},l.prototype.write=function(t,e,n,i){if(void 0===e)i="utf8",n=this.length,e=0;else if(void 0===n&&"string"===typeof e)i=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return y(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(127&t[o]);return i}function E(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;o<n;++o)i+=String.fromCharCode(t[o]);return i}function O(t,e,n){var i=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>i)&&(n=i);for(var o="",r=e;r<n;++r)o+=V(t[r]);return o}function M(t,e,n){for(var i=t.slice(e,n),o="",r=0;r<i.length;r+=2)o+=String.fromCharCode(i[r]+256*i[r+1]);return o}function P(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,o,r){if(!l.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<r)throw new RangeError('"value" argument is out of bounds');if(n+i>t.length)throw new RangeError("Index out of range")}function A(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o<r;++o)t[n+o]=(e&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function R(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o<r;++o)t[n+o]=e>>>8*(i?o:3-o)&255}function B(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(t,e,n,i,r){return r||B(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function L(t,e,n,i,r){return r||B(t,0,n,8),o.write(t,e,n,i,52,8),n+8}l.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e<t&&(e=t),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=l.prototype;else{var o=e-t;n=new l(o,void 0);for(var r=0;r<o;++r)n[r]=this[r+t]}return n},l.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i},l.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t+--e],o=1;e>0&&(o*=256);)i+=this[t+--e]*o;return i},l.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},l.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},l.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],o=1,r=0;++r<e&&(o*=256);)i+=this[t+r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*e)),i},l.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},l.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},l.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),o.read(this,t,!0,23,4)},l.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),o.read(this,t,!1,23,4)},l.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),o.read(this,t,!0,52,8)},l.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),o.read(this,t,!1,52,8)},l.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[e]=255&t;++r<n&&(o*=256);)this[e+r]=t/o&255;return e+n},l.prototype.writeUIntBE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var o=n-1,r=1;for(this[e+o]=255&t;--o>=0&&(r*=256);)this[e+o]=t/r&255;return e+n},l.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},l.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},l.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},l.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},l.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},l.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);D(this,t,e,n,o-1,-o)}var r=0,a=1,s=0;for(this[e]=255&t;++r<n&&(a*=256);)t<0&&0===s&&0!==this[e+r-1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+n},l.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);D(this,t,e,n,o-1,-o)}var r=n-1,a=1,s=0;for(this[e+r]=255&t;--r>=0&&(a*=256);)t<0&&0===s&&0!==this[e+r+1]&&(s=1),this[e+r]=(t/a>>0)-s&255;return e+n},l.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),l.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):A(this,t,e,!0),e+2},l.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):A(this,t,e,!1),e+2},l.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},l.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),l.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},l.prototype.writeFloatLE=function(t,e,n){return N(this,t,e,!0,n)},l.prototype.writeFloatBE=function(t,e,n){return N(this,t,e,!1,n)},l.prototype.writeDoubleLE=function(t,e,n){return L(this,t,e,!0,n)},l.prototype.writeDoubleBE=function(t,e,n){return L(this,t,e,!1,n)},l.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e<i-n&&(i=t.length-e+n);var o,r=i-n;if(this===t&&n<e&&e<i)for(o=r-1;o>=0;--o)t[o+e]=this[o+n];else if(r<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<r;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+r),e);return r},l.prototype.fill=function(t,e,n,i){if("string"===typeof t){if("string"===typeof e?(i=e,e=0,n=this.length):"string"===typeof n&&(i=n,n=this.length),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(void 0!==i&&"string"!==typeof i)throw new TypeError("encoding must be a string");if("string"===typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"===typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var r;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(r=e;r<n;++r)this[r]=t;else{var a=l.isBuffer(t)?t:z(new l(t,i).toString()),s=a.length;for(r=0;r<n-e;++r)this[r+e]=a[r%s]}return this};var F=/[^+\/0-9A-Za-z-_]/g;function V(t){return t<16?"0"+t.toString(16):t.toString(16)}function z(t,e){var n;e=e||1/0;for(var i=t.length,o=null,r=[],a=0;a<i;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(a+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function j(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(F,"")).length<2)return"";for(;t.length%4!==0;)t+="=";return t}(t))}function H(t,e,n,i){for(var o=0;o<i&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(56))},function(t,e,n){"use strict";function i(t,e,n,i,o,r,a){try{var s=t[r](a),l=s.value}catch(u){return void n(u)}s.done?e(l):Promise.resolve(l).then(i,o)}function o(t){return function(){var e=this,n=arguments;return new Promise((function(o,r){var a=t.apply(e,n);function s(t){i(a,o,r,s,l,"next",t)}function l(t){i(a,o,r,s,l,"throw",t)}s(void 0)}))}}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var i=n(2),o=n(129),r=function(){function t(){}return function(e){return t.prototype=e,new t}}(),a=function(t,e,n,i){!i&&o.isWrapped(t[e])?o.assign(t[e],n):t[e]=n};e.clone=r,e.orderEach=function(t,e){var n,o,r=[];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&r.push(n);for(r.sort((function(t,e){var n=i.isNumeric(t),o=i.isNumeric(e);return n&&o?t-e:n&&!o?-1:!n&&o?1:t<e?-1:t>e?1:0})),o=0;o<r.length;o++)e(n=r[o],t[n])},e.deepExtendArraySafe=function t(e,n,o,r){var s,l;for(var u in n)if(s=e[u],l=n[u],"__proto__"!==u&&e!==l){if(i.isPlainObject(l))l=t((o?i.isObject(s):i.isPlainObject(s))?s:{},l,o,r);void 0!==l&&s!==l&&a(e,u,l,r)}return e}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(2),r=function(){var t=[new RegExp("&","g"),new RegExp('"',"g"),new RegExp("'","g"),new RegExp("<","g"),new RegExp(">","g")];return function(e){return String(e).replace(t[0],"&").replace(t[1],""").replace(t[2],"'").replace(t[3],"<").replace(t[4],">")}}(),a=function(t,e,n){return t.replace(new RegExp("("+(e+"").replace(/([+*?.[^\]$(){}><|=!:])/g,"\\$1")+")","gi"),n)},s=function(){var t=/\s/g;return function(e){return!e||!e.replace(t,"")}}();e.encodeHtml=r,e.quadToObject=function(t){var e=function(t){switch(i(t)){case"string":return t.split(/\s+/,4);case"object":return[t.x||t.h||t.left,t.y||t.v||t.top,t.x||t.h||t.right,t.y||t.v||t.bottom];case"number":return[t];default:return t}}(t),n=parseInt(e&&e[0],10),o=parseInt(e&&e[1],10),r=parseInt(e&&e[2],10),a=parseInt(e&&e[3],10);return isFinite(n)||(n=0),isFinite(o)||(o=n),isFinite(r)||(r=n),isFinite(a)||(a=o),{top:o,right:r,bottom:a,left:n}},e.format=function(){var t,e,n,i=arguments[0],r=[].slice.call(arguments).slice(1);if(o.isFunction(i))return i.apply(this,r);for(var a=0;a<r.length;a++)e=new RegExp("\\{"+a+"\\}","gm"),n=r[a],"string"===o.type(n)&&n.indexOf("$")>=0&&(t="$".replace("$","$$").length,n=n.replace("$",1===t?"$$$$":"$$")),i=i.replace(e,n);return i},e.replaceAll=a,e.isEmpty=s},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i=s(n(253)),o=s(n(15)),r=s(n(6)),a=s(n(255));function s(t){return t&&t.__esModule?t:{default:t}}var l,u=new i.default,c=new a.default,d=function(){},h=function(){},f=e.setDataStrategy=function(t){c.fire(t);var e=(l=t).cleanData;l.cleanData=function(t){d(t);var n=e.call(this,t);return h(t),n}};f({data:function(){var t=arguments[0],e=arguments[1],n=arguments[2];if(t){var i=u.get(t);return i||(i={},u.set(t,i)),void 0===e?i:2===arguments.length?i[e]:(i[e]=n,n)}},removeData:function(t,e){if(t)if(void 0===e)u.delete(t);else{var n=u.get(t);n&&delete n[e]}},cleanData:function(t){for(var e=0;e<t.length;e++)r.default.off(t[e]),u.delete(t[e])}}),e.setDataStrategy=f,e.getDataStrategy=function(){return l},e.data=function(){return l.data.apply(this,arguments)},e.strategyChanging=c,e.beforeCleanData=function(t){d=t},e.afterCleanData=function(t){h=t},e.cleanData=function(t){return l.cleanData.call(this,t)},e.removeData=function(t,e){return l.removeData.call(this,t,e)},e.cleanDataRecursive=function(t,e){if(o.default.isElementNode(t)){var n=t.getElementsByTagName("*");l.cleanData(n),e&&l.cleanData([t])}}},function(t,e,n){"use strict";var i=n(16),o=n(15),r=n(4),a=c(n(113)),s=c(n(10)),l=c(n(18)),u=c(n(130));function c(t){return t&&t.__esModule?t:{default:t}}var d=s.default.getNavigator(),h=d.maxTouchPoints,f=d.msMaxTouchPoints,p=d.pointerEnabled,m=s.default.hasProperty.bind(s.default),g={webkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MsTransitionEnd",transition:"transitionend"},_=function(t){return!!u.default.styleProp(t)},v=function(t,e){return(t("ontouchstart")||!!e)&&!t("callPhantom")}(m,h),y=function(t,e){var n=(0,r.ensureDefined)(e,!0),i=(0,r.ensureDefined)(e,!1);return t("PointerEvent")&&n||i}(m,p),b=!!h||!!f;e.touchEvents=v,e.pointerEvents=y,e.touch=v||y&&b,e.transition=(0,a.default)((function(){return _("transition")})),e.transitionEndEventName=(0,a.default)((function(){return g[u.default.styleProp("transition")]})),e.animation=(0,a.default)((function(){return _("animation")})),e.nativeScrolling=function(){var t=l.default.real(),e=t.platform,n=t.version,o=t.mac;return!(n&&n[0]<4&&"android"===e)&&(0,i.inArray)(e,["ios","android"])>-1||o}(),e.styleProp=u.default.styleProp,e.stylePropPrefix=u.default.stylePropPrefix,e.supportProp=_,e.inputType=function(t){if("text"===t)return!0;var e=(0,o.createElement)("input");try{return e.setAttribute("type",t),e.value="wrongValue",!e.value}catch(n){return!1}}},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(151),void(r.lib.Cipher||function(t){var e=r,n=e.lib,i=n.Base,o=n.WordArray,a=n.BufferedBlockAlgorithm,s=e.enc,l=(s.Utf8,s.Base64),u=e.algo.EvpKDF,c=n.Cipher=a.extend({cfg:i.extend(),createEncryptor:function(t,e){return this.create(this._ENC_XFORM_MODE,t,e)},createDecryptor:function(t,e){return this.create(this._DEC_XFORM_MODE,t,e)},init:function(t,e,n){this.cfg=this.cfg.extend(n),this._xformMode=t,this._key=e,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?y:_}return function(e){return{encrypt:function(n,i,o){return t(i).encrypt(e,n,i,o)},decrypt:function(n,i,o){return t(i).decrypt(e,n,i,o)}}}}()}),d=(n.StreamCipher=c.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),e.mode={}),h=n.BlockCipherMode=i.extend({createEncryptor:function(t,e){return this.Encryptor.create(t,e)},createDecryptor:function(t,e){return this.Decryptor.create(t,e)},init:function(t,e){this._cipher=t,this._iv=e}}),f=d.CBC=function(){var t=h.extend();function e(t,e,n){var i,o=this._iv;o?(i=o,this._iv=void 0):i=this._prevBlock;for(var r=0;r<n;r++)t[e+r]^=i[r]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,o=i.blockSize;e.call(this,t,n,o),i.encryptBlock(t,n),this._prevBlock=t.slice(n,n+o)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,o=i.blockSize,r=t.slice(n,n+o);i.decryptBlock(t,n),e.call(this,t,n,o),this._prevBlock=r}}),t}(),p=(e.pad={}).Pkcs7={pad:function(t,e){for(var n=4*e,i=n-t.sigBytes%n,r=i<<24|i<<16|i<<8|i,a=[],s=0;s<i;s+=4)a.push(r);var l=o.create(a,i);t.concat(l)},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},m=(n.BlockCipher=c.extend({cfg:c.cfg.extend({mode:f,padding:p}),reset:function(){var t;c.reset.call(this);var e=this.cfg,n=e.iv,i=e.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,n&&n.words):(this._mode=t.call(i,this,n&&n.words),this._mode.__creator=t)},_doProcessBlock:function(t,e){this._mode.processBlock(t,e)},_doFinalize:function(){var t,e=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(e.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),e.unpad(t)),t},blockSize:4}),n.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),g=(e.format={}).OpenSSL={stringify:function(t){var e=t.ciphertext,n=t.salt;return(n?o.create([1398893684,1701076831]).concat(n).concat(e):e).toString(l)},parse:function(t){var e,n=l.parse(t),i=n.words;return 1398893684==i[0]&&1701076831==i[1]&&(e=o.create(i.slice(2,4)),i.splice(0,4),n.sigBytes-=16),m.create({ciphertext:n,salt:e})}},_=n.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(t,e,n,i){i=this.cfg.extend(i);var o=t.createEncryptor(n,i),r=o.finalize(e),a=o.cfg;return m.create({ciphertext:r,key:n,iv:a.iv,algorithm:t,mode:a.mode,padding:a.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,e,n,i){return i=this.cfg.extend(i),e=this._parse(e,i.format),t.createDecryptor(n,i).finalize(e.ciphertext)},_parse:function(t,e){return"string"==typeof t?e.parse(t,this):t}}),v=(e.kdf={}).OpenSSL={execute:function(t,e,n,i){i||(i=o.random(8));var r=u.create({keySize:e+n}).compute(t,i),a=o.create(r.words.slice(e),4*n);return r.sigBytes=4*e,m.create({key:r,iv:a,salt:i})}},y=n.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:v}),encrypt:function(t,e,n,i){var o=(i=this.cfg.extend(i)).kdf.execute(n,t.keySize,t.ivSize);i.iv=o.iv;var r=_.encrypt.call(this,t,e,o.key,i);return r.mixIn(o),r},decrypt:function(t,e,n,i){i=this.cfg.extend(i),e=this._parse(e,i.format);var o=i.kdf.execute(n,t.keySize,t.ivSize,e.salt);return i.iv=o.iv,_.decrypt.call(this,t,e,o.key,i)}})}()))}()},function(t,e,n){"use strict";var i=n(2),o=d(i),r=d(n(15)),a=n(77),s=n(10),l=n(5),u=n(7),c=n(4);function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var p=function(){var t,e={timeout:"Network connection timeout",error:"Unspecified network error",parsererror:"Unexpected server response"};return(0,a.add)((function(){var e=(0,s.getWindow)();r.default.listen(e,"beforeunload",(function(){t=!0}))})),function(n,i){return t?"DEVEXTREME_XHR_ERROR_UNLOAD":n.status<400?function(t){var n=e[t];return n||t}(i):n.statusText}}(),m={count:{seed:0,step:function(t){return 1+t}},sum:{seed:0,step:function(t,e){return t+e}},min:{step:function(t,e){return e<t?e:t}},max:{step:function(t,e){return e>t?e:t}},avg:{seed:[0,0],step:function(t,e){return[t[0]+e,t[1]+1]},finalize:function(t){return t[1]?t[0]/t[1]:NaN}}},g=function(){var t,e=0;return{obtain:function(){0===e&&(t=new u.Deferred),e++},release:function(){--e<1&&t.resolve()},promise:function(){return(0===e?(new u.Deferred).resolve():t).promise()},reset:function(){e=0,t&&t.resolve()}}}();var _={XHR_ERROR_UNLOAD:"DEVEXTREME_XHR_ERROR_UNLOAD",normalizeBinaryCriterion:function(t){return[t[0],t.length<3?"=":String(t[1]).toLowerCase(),t.length<2||t[t.length-1]]},normalizeSortingInfo:function(t){return Array.isArray(t)||(t=[t]),(0,l.map)(t,(function(t){var e={selector:(0,i.isFunction)(t)||"string"===typeof t?t:t.getter||t.field||t.selector,desc:!(!t.desc&&"d"!==String(t.dir).charAt(0).toLowerCase())};return t.compare&&(e.compare=t.compare),e}))},errorMessageFromXhr:p,aggregators:m,keysEqual:function(t,e,n){if(Array.isArray(t)){for(var i,o=(0,l.map)(e,(function(t,e){return e})),r=0;r<o.length;r++)if(i=o[r],!(0,c.equalByValue)(e[i],n[i],0,!1))return!1;return!0}return(0,c.equalByValue)(e,n,0,!1)},throttleChanges:function(t,e){var n=[],o=function(t,e){var n,o;return function(){var r=this;return o=arguments,n||(n=setTimeout((function(){n=void 0,o&&t.call(r,o)}),(0,i.isFunction)(e)?e():e)),n}}((function(){t.call(this,n),n=[]}),e);return function(t){var e;Array.isArray(t)&&(e=n).push.apply(e,h(t));return o.call(this,n)}},trivialPromise:function(){var t=new u.Deferred;return t.resolve.apply(t,arguments).promise()},rejectedPromise:function(){var t=new u.Deferred;return t.reject.apply(t,arguments).promise()},isDisjunctiveOperator:function(t){return/^(or|\|\||\|)$/i.test(t)},isConjunctiveOperator:function(t){return/^(and|&&|&)$/i.test(t)},processRequestResultLock:g,isUnaryOperation:function(t){return"!"===t[0]&&Array.isArray(t[1])},isGroupCriterion:function(t){var e,n=t[0],i=t[1];return!!Array.isArray(n)||!(!o.default.isFunction(n)||!Array.isArray(i)&&!o.default.isFunction(i)&&"and"!==(e=i)&&"or"!==e)},base64_encode:function(t){Array.isArray(t)||(t=function(t){var e,n,i=[];for(n=0;n<t.length;n++)(e=t.charCodeAt(n))<128?i.push(e):e<2048?i.push(192+(e>>6),128+(63&e)):e<65536?i.push(224+(e>>12),128+(e>>6&63),128+(63&e)):e<2097152&&i.push(240+(e>>18),128+(e>>12&63),128+(e>>6&63),128+(63&e));return i}(String(t)));var e="";function n(t){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(t)}for(var i=0;i<t.length;i+=3){var o=t[i],r=t[i+1],a=t[i+2];e+=(0,l.map)([o>>2,(3&o)<<4|r>>4,isNaN(r)?64:(15&r)<<2|a>>6,isNaN(a)?64:63&a],n).join("")}return e}};t.exports=_},function(t,e,n){"use strict";var i={array:n(217),remote:n(637)};t.exports=function(){var t=Array.isArray(arguments[0])?"array":"remote";return i[t].apply(this,arguments)},t.exports.queryImpl=i,t.exports.default=t.exports},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(57)),r=g(n(39)),a=g(n(10)),s=n(11),l=n(24),u=n(0),c=g(n(45)),d=g(n(20)),h=g(n(80)),f=g(n(136)),p=g(n(6)),m=n(55);function g(t){return t&&t.__esModule?t:{default:t}}var _=d.default.inherit({ctor:function(){this.showValidationMessageTimeout=null,this.validationRequest=(0,r.default)(),this.callBase.apply(this,arguments)},_createElement:function(t){this.callBase(t);var e=this.$element();e&&o.default.data(e[0],"dx-validation-target",this)},_initOptions:function(t){this.callBase.apply(this,arguments),this.option(f.default.initValidationOptions(t))},_init:function(){this.callBase(),this._options.cache("validationTooltipOptions",this.option("validationTooltipOptions")),this.$element().addClass("dx-show-invalid-badge")},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{value:null,name:"",onValueChanged:null,readOnly:!1,isValid:!0,validationError:null,validationErrors:null,validationStatus:"valid",validationMessageMode:"auto",validationBoundary:void 0,validationMessageOffset:{h:0,v:0},validationTooltipOptions:{}})},_attachKeyboardEvents:function(){this.option("readOnly")||this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,u.extend)(this._optionsByReference,{validationError:!0})},_createValueChangeAction:function(){this._valueChangeAction=this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})},_suppressValueChangeAction:function(){this._valueChangeActionSuppressed=!0},_resumeValueChangeAction:function(){this._valueChangeActionSuppressed=!1},_initMarkup:function(){this._toggleReadOnlyState(),this._setSubmitElementName(this.option("name")),this.callBase(),this._renderValidationState()},_raiseValueChangeAction:function(t,e){this._valueChangeAction||this._createValueChangeAction(),this._valueChangeAction(this._valueChangeArgs(t,e))},_valueChangeArgs:function(t,e){return{value:t,previousValue:e,event:this._valueChangeEventInstance}},_saveValueChangeEvent:function(t){this._valueChangeEventInstance=t},_focusInHandler:function(t){var e=this,n="auto"===this.option("validationMessageMode");return this._canValueBeChangedByClick()&&n&&(this._$validationMessage&&this._$validationMessage.removeClass("dx-invalid-message-auto"),clearTimeout(this.showValidationMessageTimeout),this.showValidationMessageTimeout=setTimeout((function(){return e._$validationMessage&&e._$validationMessage.addClass("dx-invalid-message-auto")}),150)),this.callBase(t)},_canValueBeChangedByClick:function(){return!1},_renderValidationState:function(){var t=this.option("isValid")&&"invalid"!==this.option("validationStatus"),e=this.option("validationMessageMode"),n=this.$element(),o=this.option("validationErrors");if(!o&&this.option("validationError")&&(o=[this.option("validationError")]),n.toggleClass("dx-invalid",!t),this.setAria("invalid",!t||void 0),a.default.hasWindow()){this._$validationMessage&&(this._$validationMessage.remove(),this.setAria("describedby",null),this._$validationMessage=null);var r=function(t){var e="";return t&&t.forEach((function(t){t.message&&(e+=(e?"<br />":"")+(0,m.encodeHtml)(t.message))})),e}(o);if(!t&&r){this._$validationMessage=(0,i.default)("<div>").addClass("dx-invalid-message").html(r).appendTo(n);var s=this._getValidationMessageTarget();this._validationMessage=this._createComponent(this._$validationMessage,h.default,(0,u.extend)({integrationOptions:{},templatesRenderAsynchronously:!1,target:s,shading:!1,width:"auto",height:"auto",container:n,position:this._getValidationMessagePosition("below"),closeOnOutsideClick:!1,closeOnTargetScroll:!1,animation:null,visible:!0,propagateOutsideClick:!0,_checkParentVisibility:!1},this._options.cache("validationTooltipOptions"))),this._$validationMessage.toggleClass("dx-invalid-message-auto","auto"===e).toggleClass("dx-invalid-message-always","always"===e);var l="dx-"+new c.default;this._validationMessage.$content().addClass("dx-invalid-message-content").attr("id",l),this.setAria("describedby",l),this._setValidationMessageMaxWidth(),this._bindInnerWidgetOptions(this._validationMessage,"validationTooltipOptions")}}},_setValidationMessageMaxWidth:function(){if(this._validationMessage)if(0!==this._getValidationMessageTarget().outerWidth()){var t=Math.max(100,this._getValidationMessageTarget().outerWidth());this._validationMessage.option("maxWidth",t)}else this._validationMessage.option("maxWidth","100%")},_getValidationMessageTarget:function(){return this.$element()},_getValidationMessagePosition:function(t){var e=this.option("rtlEnabled"),n=(0,l.getDefaultAlignment)(e),i=this.option("validationMessageOffset"),o={h:i.h,v:i.v},r="below"===t?[" top"," bottom"]:[" bottom"," top"];return e&&(o.h=-o.h),"below"!==t&&(o.v=-o.v),{offset:o,boundary:this.option("validationBoundary"),my:n+r[0],at:n+r[1],collision:"none flip"}},_toggleReadOnlyState:function(){var t=this.option("readOnly");this._toggleBackspaceHandler(t),this.$element().toggleClass("dx-state-readonly",!!t),this.setAria("readonly",t||void 0)},_toggleBackspaceHandler:function(t){var e=this._keyboardEventBindingTarget(),n=(0,s.addNamespace)("keydown","editorReadOnly");p.default.off(e,n),t&&p.default.on(e,n,(function(t){"backspace"===(0,s.normalizeKeyName)(t)&&t.preventDefault()}))},_dispose:function(){var t=this.$element()[0];o.default.data(t,"dx-validation-target",null),clearTimeout(this.showValidationMessageTimeout),this.callBase()},_setSubmitElementName:function(t){var e=this._getSubmitElement();e&&(t.length>0?e.attr("name",t):e.removeAttr("name"))},_getSubmitElement:function(){return null},_optionChanged:function(t){switch(t.name){case"onValueChanged":this._createValueChangeAction();break;case"isValid":case"validationError":this.option(f.default.synchronizeValidationOptions(t,this.option()));break;case"validationErrors":case"validationStatus":this.option(f.default.synchronizeValidationOptions(t,this.option())),this._renderValidationState();break;case"validationBoundary":case"validationMessageMode":this._renderValidationState();break;case"validationTooltipOptions":this._innerWidgetOptionChanged(this._validationMessage,t);break;case"readOnly":this._toggleReadOnlyState(),this._refreshFocusState();break;case"value":t.value!=t.previousValue&&this.validationRequest.fire({value:t.value,editor:this}),this._valueChangeActionSuppressed||(this._raiseValueChangeAction(t.value,t.previousValue),this._saveValueChangeEvent(void 0));break;case"width":this.callBase(t),this._setValidationMessageMaxWidth();break;case"name":this._setSubmitElementName(t.value);break;default:this.callBase(t)}},reset:function(){var t=this._getDefaultOptions();this.option("value",t.value)}});t.exports=_},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}n.d(e,"a",(function(){return l}));var a=n(183);function s(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?Object(a.a)(t):e}function l(t){return function(){var e,n=i(t);if(o()){var r=i(this).constructor;e=Reflect.construct(n,arguments,r)}else e=n.apply(this,arguments);return s(this,e)}}},function(t,e,n){"use strict";function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var i=n(51),o=n(385).getFormatter,r=n(386),a=n(2),s=a.isString,l=a.isDate,u=a.isNumeric,c=/^(\d{4,})(-)?(\d{2})(-)?(\d{2})(?:T(\d{2})(:)?(\d{2})?(:)?(\d{2}(?:\.(\d{1,3})\d*)?)?)?(Z|([+-])(\d{2})(:)?(\d{2})?)?$/,d=/^(\d{2}):(\d{2})(:(\d{2}))?$/,h=["","yyyy","","MM","","dd","THH","","mm","","ss",".SSS"],f=function(t,e){var n,i;return s(t)&&!e&&(n=function(t){var e=t.match(c),n=function(t){return+t||0};if(!e)return(e=t.match(d))?new Date(0,0,0,n(e[1]),n(e[2]),n(e[4])):void 0;var i=e[1],o=--e[3],r=e[5],a=0,s=0;a=n(e[14]),s=n(e[16]),"-"===e[13]&&(a=-a,s=-s);var l=n(e[6])-a,u=n(e[8])-s,h=n(e[10]),f=(p=e[11],n(p=p||"")*Math.pow(10,3-p.length));var p;if(e[12])return new Date(Date.UTC(i,o,r,l,u,h,f));return new Date(i,o,r,l,u,h,f)}(t)),n||(i=!l(t)&&Date.parse(t),n=u(i)?new Date(i):t),n};t.exports={dateParser:f,deserializeDate:function(t){return"number"===typeof t?new Date(t):f(t,!i().forceIsoDateParsing)},serializeDate:function(t,e){return e?l(t)?"number"===e?t&&t.valueOf?t.valueOf():null:o(e,r)(t):null:t},getDateSerializationFormat:function(t){return"number"===typeof t?"number":s(t)?(i().forceIsoDateParsing&&(e=function(t,e){var n=t.match(c),i="";if(!n)return(n=t.match(d))?n[3]?"HH:mm:ss":"HH:mm":void 0;for(var o=1;o<h.length;o++)n[o]&&(i+=h[o]||n[o]);return"Z"===n[12]&&(i+="'Z'"),n[14]&&(n[15]?i+="xxx":n[16]?i+="xx":i+="x"),i}(t)),e||(t.indexOf(":")>=0?"yyyy/MM/dd HH:mm:ss":"yyyy/MM/dd")):t?null:void 0;var e}}},function(t,e,n){(function(e){var n;"undefined"!==typeof self&&self,n=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=109)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=n(18),r=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),d=n(12),h=n(32),f=n(33),p=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:i.default,Format:o.default,Leaf:r.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:d.default,Class:h.default,Style:f.default,Store:p.default}};e.default=g},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=this;return e="[Parchment] "+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var r,a={},s={},l={},u={};function c(t,e){var n;if(void 0===e&&(e=r.ANY),"string"===typeof t)n=u[t]||a[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=u.text;else if("number"===typeof t)t&r.LEVEL&r.BLOCK?n=u.block:t&r.LEVEL&r.INLINE&&(n=u.inline);else if(t instanceof HTMLElement){var i=(t.getAttribute("class")||"").split(/\s+/);for(var o in i)if(n=s[i[o]])break;n=n||l[t.tagName]}return null==n?null:e&r.LEVEL&n.scope&&e&r.TYPE&n.scope?n:null}e.DATA_KEY="__blot",function(t){t[t.TYPE=3]="TYPE",t[t.LEVEL=12]="LEVEL",t[t.ATTRIBUTE=13]="ATTRIBUTE",t[t.BLOT=14]="BLOT",t[t.INLINE=7]="INLINE",t[t.BLOCK=11]="BLOCK",t[t.BLOCK_BLOT=10]="BLOCK_BLOT",t[t.INLINE_BLOT=6]="INLINE_BLOT",t[t.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",t[t.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",t[t.ANY=15]="ANY"}(r=e.Scope||(e.Scope={})),e.create=function(t,e){var n=c(t);if(null==n)throw new o("Unable to create "+t+" blot");var i=n,r=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:i.create(e);return new i(r,e)},e.find=function t(n,i){return void 0===i&&(i=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:i?t(n.parentNode,i):null},e.query=c,e.register=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(e.length>1)return e.map((function(e){return t(e)}));var i=e[0];if("string"!==typeof i.blotName&&"string"!==typeof i.attrName)throw new o("Invalid definition");if("abstract"===i.blotName)throw new o("Cannot register abstract class");if(u[i.blotName||i.attrName]=i,"string"===typeof i.keyName)a[i.keyName]=i;else if(null!=i.className&&(s[i.className]=i),null!=i.tagName){Array.isArray(i.tagName)?i.tagName=i.tagName.map((function(t){return t.toUpperCase()})):i.tagName=i.tagName.toUpperCase();var r=Array.isArray(i.tagName)?i.tagName:[i.tagName];r.forEach((function(t){null!=l[t]&&null!=i.className||(l[t]=i)}))}return i}},function(t,e,n){var i=n(51),o=n(11),r=n(3),a=n(20),s=String.fromCharCode(0),l=function(t){Array.isArray(t)?this.ops=t:null!=t&&Array.isArray(t.ops)?this.ops=t.ops:this.ops=[]};l.prototype.insert=function(t,e){var n={};return 0===t.length?this:(n.insert=t,null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n))},l.prototype.delete=function(t){return t<=0?this:this.push({delete:t})},l.prototype.retain=function(t,e){if(t<=0)return this;var n={retain:t};return null!=e&&"object"===typeof e&&Object.keys(e).length>0&&(n.attributes=e),this.push(n)},l.prototype.push=function(t){var e=this.ops.length,n=this.ops[e-1];if(t=r(!0,{},t),"object"===typeof n){if("number"===typeof t.delete&&"number"===typeof n.delete)return this.ops[e-1]={delete:n.delete+t.delete},this;if("number"===typeof n.delete&&null!=t.insert&&(e-=1,"object"!==typeof(n=this.ops[e-1])))return this.ops.unshift(t),this;if(o(t.attributes,n.attributes)){if("string"===typeof t.insert&&"string"===typeof n.insert)return this.ops[e-1]={insert:n.insert+t.insert},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this;if("number"===typeof t.retain&&"number"===typeof n.retain)return this.ops[e-1]={retain:n.retain+t.retain},"object"===typeof t.attributes&&(this.ops[e-1].attributes=t.attributes),this}}return e===this.ops.length?this.ops.push(t):this.ops.splice(e,0,t),this},l.prototype.chop=function(){var t=this.ops[this.ops.length-1];return t&&t.retain&&!t.attributes&&this.ops.pop(),this},l.prototype.filter=function(t){return this.ops.filter(t)},l.prototype.forEach=function(t){this.ops.forEach(t)},l.prototype.map=function(t){return this.ops.map(t)},l.prototype.partition=function(t){var e=[],n=[];return this.forEach((function(i){(t(i)?e:n).push(i)})),[e,n]},l.prototype.reduce=function(t,e){return this.ops.reduce(t,e)},l.prototype.changeLength=function(){return this.reduce((function(t,e){return e.insert?t+a.length(e):e.delete?t-e.delete:t}),0)},l.prototype.length=function(){return this.reduce((function(t,e){return t+a.length(e)}),0)},l.prototype.slice=function(t,e){t=t||0,"number"!==typeof e&&(e=1/0);for(var n=[],i=a.iterator(this.ops),o=0;o<e&&i.hasNext();){var r;o<t?r=i.next(t-o):(r=i.next(e-o),n.push(r)),o+=a.length(r)}return new l(n)},l.prototype.compose=function(t){var e=a.iterator(this.ops),n=a.iterator(t.ops),i=[],r=n.peek();if(null!=r&&"number"===typeof r.retain&&null==r.attributes){for(var s=r.retain;"insert"===e.peekType()&&e.peekLength()<=s;)s-=e.peekLength(),i.push(e.next());r.retain-s>0&&n.next(r.retain-s)}for(var u=new l(i);e.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===e.peekType())u.push(e.next());else{var c=Math.min(e.peekLength(),n.peekLength()),d=e.next(c),h=n.next(c);if("number"===typeof h.retain){var f={};"number"===typeof d.retain?f.retain=c:f.insert=d.insert;var p=a.attributes.compose(d.attributes,h.attributes,"number"===typeof d.retain);if(p&&(f.attributes=p),u.push(f),!n.hasNext()&&o(u.ops[u.ops.length-1],f)){var m=new l(e.rest());return u.concat(m).chop()}}else"number"===typeof h.delete&&"number"===typeof d.retain&&u.push(h)}return u.chop()},l.prototype.concat=function(t){var e=new l(this.ops.slice());return t.ops.length>0&&(e.push(t.ops[0]),e.ops=e.ops.concat(t.ops.slice(1))),e},l.prototype.diff=function(t,e){if(this.ops===t.ops)return new l;var n=[this,t].map((function(e){return e.map((function(n){if(null!=n.insert)return"string"===typeof n.insert?n.insert:s;throw new Error("diff() called "+(e===t?"on":"with")+" non-document")})).join("")})),r=new l,u=i(n[0],n[1],e),c=a.iterator(this.ops),d=a.iterator(t.ops);return u.forEach((function(t){for(var e=t[1].length;e>0;){var n=0;switch(t[0]){case i.INSERT:n=Math.min(d.peekLength(),e),r.push(d.next(n));break;case i.DELETE:n=Math.min(e,c.peekLength()),c.next(n),r.delete(n);break;case i.EQUAL:n=Math.min(c.peekLength(),d.peekLength(),e);var s=c.next(n),l=d.next(n);o(s.insert,l.insert)?r.retain(n,a.attributes.diff(s.attributes,l.attributes)):r.push(l).delete(n)}e-=n}})),r.chop()},l.prototype.eachLine=function(t,e){e=e||"\n";for(var n=a.iterator(this.ops),i=new l,o=0;n.hasNext();){if("insert"!==n.peekType())return;var r=n.peek(),s=a.length(r)-n.peekLength(),u="string"===typeof r.insert?r.insert.indexOf(e,s)-s:-1;if(u<0)i.push(n.next());else if(u>0)i.push(n.next(u));else{if(!1===t(i,n.next(1).attributes||{},o))return;o+=1,i=new l}}i.length()>0&&t(i,{},o)},l.prototype.transform=function(t,e){if(e=!!e,"number"===typeof t)return this.transformPosition(t,e);for(var n=a.iterator(this.ops),i=a.iterator(t.ops),o=new l;n.hasNext()||i.hasNext();)if("insert"!==n.peekType()||!e&&"insert"===i.peekType())if("insert"===i.peekType())o.push(i.next());else{var r=Math.min(n.peekLength(),i.peekLength()),s=n.next(r),u=i.next(r);if(s.delete)continue;u.delete?o.push(u):o.retain(r,a.attributes.transform(s.attributes,u.attributes,e))}else o.retain(a.length(n.next()));return o.chop()},l.prototype.transformPosition=function(t,e){e=!!e;for(var n=a.iterator(this.ops),i=0;n.hasNext()&&i<=t;){var o=n.peekLength(),r=n.peekType();n.next(),"delete"!==r?("insert"===r&&(i<t||!e)&&(t+=o),i+=o):t-=Math.min(o,t-i)}return t},t.exports=l},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(t){return"function"===typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},s=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,o=n.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&n.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!o&&!r)return!1;for(e in t);return"undefined"===typeof e||n.call(t,e)},l=function(t,e){o&&"__proto__"===e.name?o(t,e.name,{enumerable:!0,configurable:!0,value:e.newValue,writable:!0}):t[e.name]=e.newValue},u=function(t,e){if("__proto__"===e){if(!n.call(t,e))return;if(r)return r(t,e).value}return t[e]};t.exports=function t(){var e,n,i,o,r,c,d=arguments[0],h=1,f=arguments.length,p=!1;for("boolean"===typeof d&&(p=d,d=arguments[1]||{},h=2),(null==d||"object"!==typeof d&&"function"!==typeof d)&&(d={});h<f;++h)if(null!=(e=arguments[h]))for(n in e)i=u(d,n),d!==(o=u(e,n))&&(p&&o&&(s(o)||(r=a(o)))?(r?(r=!1,c=i&&a(i)?i:[]):c=i&&s(i)?i:{},l(d,{name:n,newValue:t(p,c,o)})):"undefined"!==typeof o&&l(d,{name:n,newValue:o}));return d}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BlockEmbed=e.bubbleFormats=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=d(n(3)),a=d(n(2)),s=d(n(0)),l=d(n(16)),u=d(n(6)),c=d(n(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),i(e,[{key:"attach",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,r.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(t,e){var n=s.default.query(t,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,e)}},{key:"formatAt",value:function(t,e,n,i){this.format(n,i)}},{key:"insertAt",value:function(t,n,i){if("string"===typeof n&&n.endsWith("\n")){var r=s.default.create(g.blotName);this.parent.insertBefore(r,0===t?this:this.next),r.insertAt(0,n.slice(0,-1))}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i)}}]),e}(s.default.Embed);m.scope=s.default.Scope.BLOCK_BLOT;var g=function(t){function e(t){h(this,e);var n=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.cache={},n}return p(e,t),i(e,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(t,e){return 0===e.length()?t:t.insert(e.value(),_(e))}),new a.default).insert("\n",_(this))),this.cache.delta}},{key:"deleteAt",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),this.cache={}}},{key:"formatAt",value:function(t,n,i,r){n<=0||(s.default.query(i,s.default.Scope.BLOCK)?t+n===this.length()&&this.format(i,r):o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,Math.min(n,this.length()-t-1),i,r),this.cache={})}},{key:"insertAt",value:function(t,n,i){if(null!=i)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i);if(0!==n.length){var r=n.split("\n"),a=r.shift();a.length>0&&(t<this.length()-1||null==this.children.tail?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,Math.min(t,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;r.reduce((function(t,e){return(s=s.split(t,!0)).insertAt(0,e),e.length}),t+a.length)}}},{key:"insertBefore",value:function(t,n){var i=this.children.head;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n),i instanceof l.default&&i.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(t,n){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"moveChildren",this).call(this,t,n),this.cache={}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.cache={}}},{key:"path",value:function(t){return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t,!0)}},{key:"removeChild",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"removeChild",this).call(this,t),this.cache={}}},{key:"split",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===t||t>=this.length()-1)){var i=this.clone();return 0===t?(this.parent.insertBefore(i,this),this):(this.parent.insertBefore(i,this.next),i)}var r=o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"split",this).call(this,t,n);return this.cache={},r}}]),e}(s.default.Block);function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==t?e:("function"===typeof t.formats&&(e=(0,r.default)(e,t.formats())),null==t.parent||"scroll"==t.parent.blotName||t.parent.statics.scope!==t.statics.scope?e:_(t.parent,e))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[u.default,s.default.Embed,c.default],e.bubbleFormats=_,e.BlockEmbed=m,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.overload=e.expandConfig=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();n(50);var a=g(n(2)),s=g(n(14)),l=g(n(8)),u=g(n(9)),c=g(n(0)),d=n(15),h=g(d),f=g(n(3)),p=g(n(10)),m=g(n(34));function g(t){return t&&t.__esModule?t:{default:t}}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var y=(0,p.default)("quill"),b=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,t),this.options=w(e,i),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",e);this.options.debug&&t.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t){t===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(t,e){var i=n.selection.lastRange,o=i&&0===i.length?i.index:void 0;x.call(n,(function(){return n.editor.update(null,e,o)}),t)}));var r=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(r),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return r(t,null,[{key:"debug",value:function(t){!0===t&&(t="log"),p.default.level(t)}},{key:"find",value:function(t){return t.__quill||c.default.find(t)}},{key:"import",value:function(t){return null==this.imports[t]&&y.error("Cannot import "+t+". Are you sure it was registered?"),this.imports[t]}},{key:"register",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!==typeof t){var o=t.attrName||t.blotName;"string"===typeof o?this.register("formats/"+o,t,e):Object.keys(t).forEach((function(i){n.register(i,t[i],e)}))}else null==this.imports[t]||i||y.warn("Overwriting "+t+" with",e),this.imports[t]=e,(t.startsWith("blots/")||t.startsWith("formats/"))&&"abstract"!==e.blotName?c.default.register(e):t.startsWith("modules")&&"function"===typeof e.register&&e.register()}}]),r(t,[{key:"addContainer",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"===typeof t){var n=t;(t=document.createElement("div")).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(t,e,n){var i=this,r=C(t,e,n),a=o(r,4);return t=a[0],e=a[1],n=a[3],x.call(this,(function(){return i.editor.deleteText(t,e)}),n,t,-1*e)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:"format",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return x.call(this,(function(){var i=n.getSelection(!0),o=new a.default;if(null==i)return o;if(c.default.query(t,c.default.Scope.BLOCK))o=n.editor.formatLine(i.index,i.length,_({},t,e));else{if(0===i.length)return n.selection.format(t,e),o;o=n.editor.formatText(i.index,i.length,_({},t,e))}return n.setSelection(i,l.default.sources.SILENT),o}),i)}},{key:"formatLine",value:function(t,e,n,i,r){var a,s=this,l=C(t,e,n,i,r),u=o(l,4);return t=u[0],e=u[1],a=u[2],r=u[3],x.call(this,(function(){return s.editor.formatLine(t,e,a)}),r,t,0)}},{key:"formatText",value:function(t,e,n,i,r){var a,s=this,l=C(t,e,n,i,r),u=o(l,4);return t=u[0],e=u[1],a=u[2],r=u[3],x.call(this,(function(){return s.editor.formatText(t,e,a)}),r,t,0)}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"===typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var i=this.container.getBoundingClientRect();return{bottom:n.bottom-i.top,height:n.height,left:n.left-i.left,right:n.right-i.left,top:n.top-i.top,width:n.width}}},{key:"getContents",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=o(n,2);return t=i[0],e=i[1],this.editor.getContents(t,e)}},{key:"getFormat",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"===typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:"getIndex",value:function(t){return t.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(t){return this.scroll.leaf(t)}},{key:"getLine",value:function(t){return this.scroll.line(t)}},{key:"getLines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!==typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:"getModule",value:function(t){return this.theme.modules[t]}},{key:"getSelection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=C(t,e),i=o(n,2);return t=i[0],e=i[1],this.editor.getText(t,e)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,n,i){var o=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return x.call(this,(function(){return o.editor.insertEmbed(e,n,i)}),r,e)}},{key:"insertText",value:function(t,e,n,i,r){var a,s=this,l=C(t,0,n,i,r),u=o(l,4);return t=u[0],a=u[2],r=u[3],x.call(this,(function(){return s.editor.insertText(t,e,a)}),r,t,e.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:"removeFormat",value:function(t,e,n){var i=this,r=C(t,e,n),a=o(r,4);return t=a[0],e=a[1],n=a[3],x.call(this,(function(){return i.editor.removeFormat(t,e)}),n,t)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return x.call(this,(function(){t=new a.default(t);var n=e.getLength(),i=e.editor.deleteText(0,n),o=e.editor.applyDelta(t),r=o.ops[o.ops.length-1];return null!=r&&"string"===typeof r.insert&&"\n"===r.insert[r.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),o.delete(1)),i.compose(o)}),n)}},{key:"setSelection",value:function(e,n,i){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var r=C(e,n,i),a=o(r,4);e=a[0],n=a[1],i=a[3],this.selection.setRange(new d.Range(e,n),i),i!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:"updateContents",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return x.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function w(t,e){if((e=(0,f.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==b.DEFAULTS.theme){if(e.theme=b.import("themes/"+e.theme),null==e.theme)throw new Error("Invalid theme "+e.theme+". Did you register it?")}else e.theme=m.default;var n=(0,f.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var i=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=b.import("modules/"+e);return null==n?y.error("Cannot load "+e+" module. Are you sure you registered it?"):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,f.default)(!0,{},b.DEFAULTS,{modules:i},n,e),["bounds","container","scrollingContainer"].forEach((function(t){"string"===typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function x(t,e,n,i){if(this.options.strict&&!this.isEnabled()&&e===l.default.sources.USER)return new a.default;var o=null==n?null:this.getSelection(),r=this.editor.delta,s=t();if(null!=o&&(!0===n&&(n=o.index),null==i?o=S(o,s,e):0!==i&&(o=S(o,n,i,e)),this.setSelection(o,l.default.sources.SILENT)),s.length()>0){var u,c,d=[l.default.events.TEXT_CHANGE,s,r,e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return s}function C(t,e,n,o,r){var a={};return"number"===typeof t.index&&"number"===typeof t.length?"number"!==typeof e?(r=o,o=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):"number"!==typeof e&&(r=o,o=n,n=e,e=0),"object"===("undefined"===typeof n?"undefined":i(n))?(a=n,r=o):"string"===typeof n&&(null!=o?a[n]=o:r=n),[t,e,a,r=r||l.default.sources.API]}function S(t,e,n,i){if(null==t)return null;var r=void 0,s=void 0;if(e instanceof a.default){var u=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,i!==l.default.sources.USER)})),c=o(u,2);r=c[0],s=c[1]}else{var h=[t.index,t.index+t.length].map((function(t){return t<e||t===e&&i===l.default.sources.USER?t:n>=0?t+n:Math.max(e,t+n)})),f=o(h,2);r=f[0],s=f[1]}return new d.Range(r,s-r)}b.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},b.events=l.default.events,b.sources=l.default.sources,b.version="1.3.7",b.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":m.default},e.expandConfig=w,e.overload=C,e.default=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=s(n(7)),a=s(n(0));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var c=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"formatAt",value:function(t,n,i,r){if(e.compare(this.statics.blotName,i)<0&&a.default.query(i,a.default.Scope.BLOT)){var s=this.isolate(t,n);r&&s.wrap(i,r)}else o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,i,r)}},{key:"optimize",value:function(t){if(o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.parent instanceof e&&e.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(t,n){var i=e.order.indexOf(t),o=e.order.indexOf(n);return i>=0||o>=0?i-o:t===n?0:t<n?-1:1}}]),e}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,r.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((i=o)&&i.__esModule?i:{default:i}).default.Text);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=a(n(54));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(t){document.addEventListener(t,(function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(t){var n;t.__quill&&t.__quill.emitter&&(n=t.__quill.emitter).handleDOM.apply(n,e)}))}))}));var l=function(t){function e(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var t=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return t.listeners={},t.on("error",s.error),t}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"emit",value:function(){s.log.apply(s,arguments),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];(this.listeners[t.type]||[]).forEach((function(e){var i=e.node,o=e.handler;(t.target===i||i.contains(t.target))&&o.apply(void 0,[t].concat(n))}))}},{key:"listenDOM",value:function(t,e,n){this.listeners[t]||(this.listeners[t]=[]),this.listeners[t].push({node:e,handler:n})}}]),e}(r.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},e.default=l},function(t,e,n){"use strict";function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};i(this,t),this.quill=e,this.options=n};o.DEFAULTS={},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["error","warn","log","info"],o="warn";function r(t){if(i.indexOf(t)<=i.indexOf(o)){for(var e,n=arguments.length,r=Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];(e=console)[t].apply(e,r)}}function a(t){return i.reduce((function(e,n){return e[n]=r.bind(console,n,t),e}),{})}r.level=a.level=function(t){o=t},e.default=a},function(t,e,n){var i=Array.prototype.slice,o=n(52),r=n(53),a=t.exports=function(t,e,n){return n||(n={}),t===e||(t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!t||!e||"object"!=typeof t&&"object"!=typeof e?n.strict?t===e:t==e:function(t,e,n){var u,c;if(s(t)||s(e))return!1;if(t.prototype!==e.prototype)return!1;if(r(t))return!!r(e)&&(t=i.call(t),e=i.call(e),a(t,e,n));if(l(t)){if(!l(e))return!1;if(t.length!==e.length)return!1;for(u=0;u<t.length;u++)if(t[u]!==e[u])return!1;return!0}try{var d=o(t),h=o(e)}catch(f){return!1}if(d.length!=h.length)return!1;for(d.sort(),h.sort(),u=d.length-1;u>=0;u--)if(d[u]!=h[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(t[c],e[c],n))return!1;return typeof t===typeof e}(t,e,n))};function s(t){return null===t||void 0===t}function l(t){return!(!t||"object"!==typeof t||"number"!==typeof t.length)&&"function"===typeof t.copy&&"function"===typeof t.slice&&!(t.length>0&&"number"!==typeof t[0])}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=function(){function t(t,e,n){void 0===n&&(n={}),this.attrName=t,this.keyName=e;var o=i.Scope.TYPE&i.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&i.Scope.LEVEL|o:this.scope=i.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return t.keys=function(t){return[].map.call(t.attributes,(function(t){return t.name}))},t.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.setAttribute(this.keyName,e),!0)},t.prototype.canAdd=function(t,e){return null!=i.query(t,i.Scope.BLOT&(this.scope|i.Scope.TYPE))&&(null==this.whitelist||("string"===typeof e?this.whitelist.indexOf(e.replace(/["']/g,""))>-1:this.whitelist.indexOf(e)>-1))},t.prototype.remove=function(t){t.removeAttribute(this.keyName)},t.prototype.value=function(t){var e=t.getAttribute(this.keyName);return this.canAdd(t,e)&&e?e:""},t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Code=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=d(n(2)),s=d(n(0)),l=d(n(4)),u=d(n(6)),c=d(n(7));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),e}(u.default);m.blotName="code",m.tagName="CODE";var g=function(t){function e(){return h(this,e),f(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p(e,t),o(e,[{key:"delta",value:function(){var t=this,e=this.domNode.textContent;return e.endsWith("\n")&&(e=e.slice(0,-1)),e.split("\n").reduce((function(e,n){return e.insert(n).insert("\n",t.formats())}),new a.default)}},{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n){var o=this.descendant(c.default,this.length()-1),a=i(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}},{key:"formatAt",value:function(t,n,i,o){if(0!==n&&null!=s.default.query(i,s.default.Scope.BLOCK)&&(i!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var r=this.newlineIndex(t);if(!(r<0||r>=t+n)){var a=this.newlineIndex(t,!0)+1,l=r-a+1,u=this.isolate(a,l),c=u.next;u.format(i,o),c instanceof e&&c.formatAt(0,t-a+n-l,i,o)}}}},{key:"insertAt",value:function(t,e,n){if(null==n){var o=this.descendant(c.default,t),r=i(o,2),a=r[0],s=r[1];a.insertAt(s,e)}}},{key:"length",value:function(){var t=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?t:t+1}},{key:"newlineIndex",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e)return this.domNode.textContent.slice(0,t).lastIndexOf("\n");var n=this.domNode.textContent.slice(t).indexOf("\n");return n>-1?t+n:-1}},{key:"optimize",value:function(t){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(t),n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(t){var e=s.default.find(t);null==e?t.parentNode.removeChild(t):e instanceof s.default.Embed?e.remove():e.unwrap()}))}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),e}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",e.Code=m,e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=_(n(2)),s=_(n(20)),l=_(n(0)),u=_(n(13)),c=_(n(24)),d=n(4),h=_(d),f=_(n(16)),p=_(n(21)),m=_(n(11)),g=_(n(3));function _(t){return t&&t.__esModule?t:{default:t}}var v=/^[ -~]*$/,y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scroll=e,this.delta=this.getDelta()}return r(t,[{key:"applyDelta",value:function(t){var e=this,n=!1;this.scroll.update();var r=this.scroll.length();return this.scroll.batchStart(),(t=function(t){return t.reduce((function(t,e){if(1===e.insert){var n=(0,p.default)(e.attributes);return delete n.image,t.insert({image:e.attributes.image},n)}if(null==e.attributes||!0!==e.attributes.list&&!0!==e.attributes.bullet||((e=(0,p.default)(e)).attributes.list?e.attributes.list="ordered":(e.attributes.list="bullet",delete e.attributes.bullet)),"string"===typeof e.insert){var i=e.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return t.insert(i,e.attributes)}return t.push(e)}),new a.default)}(t)).reduce((function(t,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"===typeof a.insert){var f=a.insert;f.endsWith("\n")&&n&&(n=!1,f=f.slice(0,-1)),t>=r&&!f.endsWith("\n")&&(n=!0),e.scroll.insertAt(t,f);var p=e.scroll.line(t),m=o(p,2),_=m[0],v=m[1],y=(0,g.default)({},(0,d.bubbleFormats)(_));if(_ instanceof h.default){var b=_.descendant(l.default.Leaf,v),w=o(b,1)[0];y=(0,g.default)(y,(0,d.bubbleFormats)(w))}c=s.default.attributes.diff(y,c)||{}}else if("object"===i(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return t;e.scroll.insertAt(t,x,a.insert[x])}r+=u}return Object.keys(c).forEach((function(n){e.scroll.formatAt(t,u,n,c[n])})),t+u}),0),t.reduce((function(t,n){return"number"===typeof n.delete?(e.scroll.deleteAt(t,n.delete),t):t+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(t)}},{key:"deleteText",value:function(t,e){return this.scroll.deleteAt(t,e),this.update((new a.default).retain(t).delete(e))}},{key:"formatLine",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(i).forEach((function(o){if(null==n.scroll.whitelist||n.scroll.whitelist[o]){var r=n.scroll.lines(t,Math.max(e,1)),a=e;r.forEach((function(e){var r=e.length();if(e instanceof u.default){var s=t-e.offset(n.scroll),l=e.newlineIndex(s+a)-s+1;e.formatAt(s,l,o,i[o])}else e.format(o,i[o]);a-=r}))}})),this.scroll.optimize(),this.update((new a.default).retain(t).retain(e,(0,p.default)(i)))}},{key:"formatText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(i).forEach((function(o){n.scroll.formatAt(t,e,o,i[o])})),this.update((new a.default).retain(t).retain(e,(0,p.default)(i)))}},{key:"getContents",value:function(t,e){return this.delta.slice(t,t+e)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(t,e){return t.concat(e.delta())}),new a.default)}},{key:"getFormat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],i=[];0===e?this.scroll.path(t).forEach((function(t){var e=o(t,1)[0];e instanceof h.default?n.push(e):e instanceof l.default.Leaf&&i.push(e)})):(n=this.scroll.lines(t,e),i=this.scroll.descendants(l.default.Leaf,t,e));var r=[n,i].map((function(t){if(0===t.length)return{};for(var e=(0,d.bubbleFormats)(t.shift());Object.keys(e).length>0;){var n=t.shift();if(null==n)return e;e=b((0,d.bubbleFormats)(n),e)}return e}));return g.default.apply(g.default,r)}},{key:"getText",value:function(t,e){return this.getContents(t,e).filter((function(t){return"string"===typeof t.insert})).map((function(t){return t.insert})).join("")}},{key:"insertEmbed",value:function(t,e,n){return this.scroll.insertAt(t,e,n),this.update((new a.default).retain(t).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},e,n)))}},{key:"insertText",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e=e.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(t,e),Object.keys(i).forEach((function(o){n.scroll.formatAt(t,e.length,o,i[o])})),this.update((new a.default).retain(t).insert(e,(0,p.default)(i)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var t=this.scroll.children.head;return t.statics.blotName===h.default.blotName&&!(t.children.length>1)&&t.children.head instanceof f.default}},{key:"removeFormat",value:function(t,e){var n=this.getText(t,e),i=this.scroll.line(t+e),r=o(i,2),s=r[0],l=r[1],c=0,d=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(t,e+c).diff((new a.default).insert(n).concat(d)),f=(new a.default).retain(t).concat(h);return this.applyDelta(f)}},{key:"update",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,i=this.delta;if(1===e.length&&"characterData"===e[0].type&&e[0].target.data.match(v)&&l.default.find(e[0].target)){var o=l.default.find(e[0].target),r=(0,d.bubbleFormats)(o),s=o.offset(this.scroll),u=e[0].oldValue.replace(c.default.CONTENTS,""),h=(new a.default).insert(u),f=(new a.default).insert(o.value()),p=(new a.default).retain(s).concat(h.diff(f,n));t=p.reduce((function(t,e){return e.insert?t.insert(e.insert,r):t.push(e)}),new a.default),this.delta=i.compose(t)}else this.delta=this.getDelta(),t&&(0,m.default)(i.compose(t),this.delta)||(t=i.diff(this.delta,n));return t}}]),t}();function b(t,e){return Object.keys(e).reduce((function(n,i){return null==t[i]||(e[i]===t[i]?n[i]=e[i]:Array.isArray(e[i])?e[i].indexOf(t[i])<0&&(n[i]=e[i].concat([t[i]])):n[i]=[e[i],t[i]]),n}),{})}e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Range=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=u(n(0)),a=u(n(21)),s=u(n(11)),l=u(n(8));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var h=(0,u(n(10)).default)("quill:selection"),f=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,t),this.index=e,this.length=n},p=function(){function t(e,n){var i=this;d(this,t),this.emitter=n,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=r.default.create("cursor",this),this.lastRange=this.savedRange=new f(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){i.mouseDown||setTimeout(i.update.bind(i,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(t,e){t===l.default.events.TEXT_CHANGE&&e.length()>0&&i.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(i.hasFocus()){var t=i.getNativeRange();null!=t&&t.start.node!==i.cursor.textNode&&i.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{i.setNativeRange(t.start.node,t.start.offset,t.end.node,t.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(t,e){if(e.range){var n=e.range,o=n.startNode,r=n.startOffset,a=n.endNode,s=n.endOffset;i.setNativeRange(o,r,a,s)}})),this.update(l.default.sources.SILENT)}return o(t,[{key:"handleComposition",value:function(){var t=this;this.root.addEventListener("compositionstart",(function(){t.composing=!0})),this.root.addEventListener("compositionend",(function(){if(t.composing=!1,t.cursor.parent){var e=t.cursor.restore();if(!e)return;setTimeout((function(){t.setNativeRange(e.startNode,e.startOffset,e.endNode,e.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var t=this;this.emitter.listenDOM("mousedown",document.body,(function(){t.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){t.mouseDown=!1,t.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(t,e){if(null==this.scroll.whitelist||this.scroll.whitelist[t]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!r.default.query(t,r.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var i=r.default.find(n.start.node,!1);if(null==i)return;if(i instanceof r.default.Leaf){var o=i.split(n.start.offset);i.parent.insertBefore(this.cursor,o)}else i.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(t,e),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();t=Math.min(t,n-1),e=Math.min(t+e,n-1)-t;var o=void 0,r=this.scroll.leaf(t),a=i(r,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=i(u,2);o=c[0],l=c[1];var d=document.createRange();if(e>0){d.setStart(o,l);var h=this.scroll.leaf(t+e),f=i(h,2);if(s=f[0],l=f[1],null==s)return null;var p=s.position(l,!0),m=i(p,2);return o=m[0],l=m[1],d.setEnd(o,l),d.getBoundingClientRect()}var g="left",_=void 0;return o instanceof Text?(l<o.data.length?(d.setStart(o,l),d.setEnd(o,l+1)):(d.setStart(o,l-1),d.setEnd(o,l),g="right"),_=d.getBoundingClientRect()):(_=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:_.top+_.height,height:_.height,left:_[g],right:_[g],top:_.top,width:0}}},{key:"getNativeRange",value:function(){var t=document.getSelection();if(null==t||t.rangeCount<=0)return null;var e=t.getRangeAt(0);if(null==e)return null;var n=this.normalizeNative(e);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var t=this.getNativeRange();return null==t?[null,null]:[this.normalizedToRange(t),t]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(t){var e=this,n=[[t.start.node,t.start.offset]];t.native.collapsed||n.push([t.end.node,t.end.offset]);var o=n.map((function(t){var n=i(t,2),o=n[0],a=n[1],s=r.default.find(o,!0),l=s.offset(e.scroll);return 0===a?l:s instanceof r.default.Container?l+s.length():l+s.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(o)));return new f(s,a-s)}},{key:"normalizeNative",value:function(t){if(!m(this.root,t.startContainer)||!t.collapsed&&!m(this.root,t.endContainer))return null;var e={start:{node:t.startContainer,offset:t.startOffset},end:{node:t.endContainer,offset:t.endOffset},native:t};return[e.start,e.end].forEach((function(t){for(var e=t.node,n=t.offset;!(e instanceof Text)&&e.childNodes.length>0;)if(e.childNodes.length>n)e=e.childNodes[n],n=0;else{if(e.childNodes.length!==n)break;n=(e=e.lastChild)instanceof Text?e.data.length:e.childNodes.length+1}t.node=e,t.offset=n})),e}},{key:"rangeToNative",value:function(t){var e=this,n=t.collapsed?[t.index]:[t.index,t.index+t.length],o=[],r=this.scroll.length();return n.forEach((function(t,n){t=Math.min(r-1,t);var a,s=e.scroll.leaf(t),l=i(s,2),u=l[0],c=l[1],d=u.position(c,0!==n),h=i(d,2);a=h[0],c=h[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(t){var e=this.lastRange;if(null!=e){var n=this.getBounds(e.index,e.length);if(null!=n){var o=this.scroll.length()-1,r=this.scroll.line(Math.min(e.index,o)),a=i(r,1)[0],s=a;if(e.length>0){var l=this.scroll.line(Math.min(e.index+e.length,o));s=i(l,1)[0]}if(null!=a&&null!=s){var u=t.getBoundingClientRect();n.top<u.top?t.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(t.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",t,e,n,i),null==t||null!=this.root.parentNode&&null!=t.parentNode&&null!=n.parentNode){var r=document.getSelection();if(null!=r)if(null!=t){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||t!==a.startContainer||e!==a.startOffset||n!==a.endContainer||i!==a.endOffset){"BR"==t.tagName&&(e=[].indexOf.call(t.parentNode.childNodes,t),t=t.parentNode),"BR"==n.tagName&&(i=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(t,e),s.setEnd(n,i),r.removeAllRanges(),r.addRange(s)}}else r.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"===typeof e&&(n=e,e=!1),h.info("setRange",t),null!=t){var i=this.rangeToNative(t);this.setNativeRange.apply(this,c(i).concat([e]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,e=this.lastRange,n=this.getRange(),o=i(n,2),r=o[0],u=o[1];if(this.lastRange=r,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(e,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(e),t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(h)),t!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,h)}}}]),t}();function m(t,e){try{e.parentNode}catch(n){return!1}return e instanceof Text&&(e=e.parentNode),t.contains(e)}e.Range=f,e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(0);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"insertInto",value:function(t,n){0===t.children.length?function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertInto",this).call(this,t,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),e}(((i=r)&&i.__esModule?i:{default:i}).default.Embed);l.blotName="break",l.tagName="BR",e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(44),r=n(30),a=n(1),s=function(t){function e(e){var n=t.call(this,e)||this;return n.build(),n}return i(e,t),e.prototype.appendChild=function(t){this.insertBefore(t)},e.prototype.attach=function(){t.prototype.attach.call(this),this.children.forEach((function(t){t.attach()}))},e.prototype.build=function(){var t=this;this.children=new o.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(e){try{var n=l(e);t.insertBefore(n,t.children.head||void 0)}catch(i){if(i instanceof a.ParchmentError)return;throw i}}))},e.prototype.deleteAt=function(t,e){if(0===t&&e===this.length())return this.remove();this.children.forEachAt(t,e,(function(t,e,n){t.deleteAt(e,n)}))},e.prototype.descendant=function(t,n){var i=this.children.find(n),o=i[0],r=i[1];return null==t.blotName&&t(o)||null!=t.blotName&&o instanceof t?[o,r]:o instanceof e?o.descendant(t,r):[null,-1]},e.prototype.descendants=function(t,n,i){void 0===n&&(n=0),void 0===i&&(i=Number.MAX_VALUE);var o=[],r=i;return this.children.forEachAt(n,i,(function(n,i,a){(null==t.blotName&&t(n)||null!=t.blotName&&n instanceof t)&&o.push(n),n instanceof e&&(o=o.concat(n.descendants(t,i,r))),r-=a})),o},e.prototype.detach=function(){this.children.forEach((function(t){t.detach()})),t.prototype.detach.call(this)},e.prototype.formatAt=function(t,e,n,i){this.children.forEachAt(t,e,(function(t,e,o){t.formatAt(e,o,n,i)}))},e.prototype.insertAt=function(t,e,n){var i=this.children.find(t),o=i[0],r=i[1];if(o)o.insertAt(r,e,n);else{var s=null==n?a.create("text",e):a.create(e,n);this.appendChild(s)}},e.prototype.insertBefore=function(t,e){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(e){return t instanceof e})))throw new a.ParchmentError("Cannot insert "+t.statics.blotName+" into "+this.statics.blotName);t.insertInto(this,e)},e.prototype.length=function(){return this.children.reduce((function(t,e){return t+e.length()}),0)},e.prototype.moveChildren=function(t,e){this.children.forEach((function(n){t.insertBefore(n,e)}))},e.prototype.optimize=function(e){if(t.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var n=a.create(this.statics.defaultChild);this.appendChild(n),n.optimize(e)}else this.remove()},e.prototype.path=function(t,n){void 0===n&&(n=!1);var i=this.children.find(t,n),o=i[0],r=i[1],a=[[this,t]];return o instanceof e?a.concat(o.path(r,n)):(null!=o&&a.push([o,r]),a)},e.prototype.removeChild=function(t){this.children.remove(t)},e.prototype.replace=function(n){n instanceof e&&n.moveChildren(this),t.prototype.replace.call(this,n)},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(t,this.length(),(function(t,i,o){t=t.split(i,e),n.appendChild(t)})),n},e.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},e.prototype.update=function(t,e){var n=this,i=[],o=[];t.forEach((function(t){t.target===n.domNode&&"childList"===t.type&&(i.push.apply(i,t.addedNodes),o.push.apply(o,t.removedNodes))})),o.forEach((function(t){if(!(null!=t.parentNode&&"IFRAME"!==t.tagName&&document.body.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var e=a.find(t);null!=e&&(null!=e.domNode.parentNode&&e.domNode.parentNode!==n.domNode||e.detach())}})),i.filter((function(t){return t.parentNode==n.domNode})).sort((function(t,e){return t===e?0:t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(t){var e=null;null!=t.nextSibling&&(e=a.find(t.nextSibling));var i=l(t);i.next==e&&null!=i.next||(null!=i.parent&&i.parent.removeChild(n),n.insertBefore(i,e||void 0))}))},e}(r.default);function l(t){var e=a.find(t);if(null==e)try{e=a.create(t)}catch(n){e=a.create(a.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(t){e.domNode.appendChild(t)})),t.parentNode&&t.parentNode.replaceChild(e.domNode,t),e.attach()}return e}e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=n(31),a=n(17),s=n(1),l=function(t){function e(e){var n=t.call(this,e)||this;return n.attributes=new r.default(n.domNode),n}return i(e,t),e.formats=function(t){return"string"===typeof this.tagName||(Array.isArray(this.tagName)?t.tagName.toLowerCase():void 0)},e.prototype.format=function(t,e){var n=s.query(t);n instanceof o.default?this.attributes.attribute(n,e):e&&(null==n||t===this.statics.blotName&&this.formats()[t]===e||this.replaceWith(t,e))},e.prototype.formats=function(){var t=this.attributes.values(),e=this.statics.formats(this.domNode);return null!=e&&(t[this.statics.blotName]=e),t},e.prototype.replaceWith=function(e,n){var i=t.prototype.replaceWith.call(this,e,n);return this.attributes.copy(i),i},e.prototype.update=function(e,n){var i=this;t.prototype.update.call(this,e,n),e.some((function(t){return t.target===i.domNode&&"attributes"===t.type}))&&this.attributes.build()},e.prototype.wrap=function(n,i){var o=t.prototype.wrap.call(this,n,i);return o instanceof e&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},e}(a.default);e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(30),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.value=function(t){return!0},e.prototype.index=function(t,e){return this.domNode===t||this.domNode.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(e,1):-1},e.prototype.position=function(t,e){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return t>0&&(n+=1),[this.parent.domNode,n]},e.prototype.value=function(){var t;return(t={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,t},e.scope=r.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){var i=n(11),o=n(3),r={attributes:{compose:function(t,e,n){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var i=o(!0,{},e);for(var r in n||(i=Object.keys(i).reduce((function(t,e){return null!=i[e]&&(t[e]=i[e]),t}),{})),t)void 0!==t[r]&&void 0===e[r]&&(i[r]=t[r]);return Object.keys(i).length>0?i:void 0},diff:function(t,e){"object"!==typeof t&&(t={}),"object"!==typeof e&&(e={});var n=Object.keys(t).concat(Object.keys(e)).reduce((function(n,o){return i(t[o],e[o])||(n[o]=void 0===e[o]?null:e[o]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(t,e,n){if("object"!==typeof t)return e;if("object"===typeof e){if(!n)return e;var i=Object.keys(e).reduce((function(n,i){return void 0===t[i]&&(n[i]=e[i]),n}),{});return Object.keys(i).length>0?i:void 0}}},iterator:function(t){return new a(t)},length:function(t){return"number"===typeof t.delete?t.delete:"number"===typeof t.retain?t.retain:"string"===typeof t.insert?t.insert.length:1}};function a(t){this.ops=t,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(t){t||(t=1/0);var e=this.ops[this.index];if(e){var n=this.offset,i=r.length(e);if(t>=i-n?(t=i-n,this.index+=1,this.offset=0):this.offset+=t,"number"===typeof e.delete)return{delete:t};var o={};return e.attributes&&(o.attributes=e.attributes),"number"===typeof e.retain?o.retain=t:"string"===typeof e.insert?o.insert=e.insert.substr(n,t):o.insert=e.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?r.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"===typeof this.ops[this.index].delete?"delete":"number"===typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var t=this.offset,e=this.index,n=this.next(),i=this.ops.slice(this.index);return this.offset=t,this.index=e,[n].concat(i)}return[]},t.exports=r},function(t,n){var i=function(){"use strict";function t(t,e){return null!=e&&t instanceof e}var n,i,o;try{n=Map}catch(_){n=function(){}}try{i=Set}catch(_){i=function(){}}try{o=Promise}catch(_){o=function(){}}function r(a,l,u,c,d){"object"===typeof l&&(u=l.depth,c=l.prototype,d=l.includeNonEnumerable,l=l.circular);var h=[],f=[],p="undefined"!=typeof e;return"undefined"==typeof l&&(l=!0),"undefined"==typeof u&&(u=1/0),function a(u,m){if(null===u)return null;if(0===m)return u;var g,_;if("object"!=typeof u)return u;if(t(u,n))g=new n;else if(t(u,i))g=new i;else if(t(u,o))g=new o((function(t,e){u.then((function(e){t(a(e,m-1))}),(function(t){e(a(t,m-1))}))}));else if(r.__isArray(u))g=[];else if(r.__isRegExp(u))g=new RegExp(u.source,s(u)),u.lastIndex&&(g.lastIndex=u.lastIndex);else if(r.__isDate(u))g=new Date(u.getTime());else{if(p&&e.isBuffer(u))return g=e.allocUnsafe?e.allocUnsafe(u.length):new e(u.length),u.copy(g),g;t(u,Error)?g=Object.create(u):"undefined"==typeof c?(_=Object.getPrototypeOf(u),g=Object.create(_)):(g=Object.create(c),_=c)}if(l){var v=h.indexOf(u);if(-1!=v)return f[v];h.push(u),f.push(g)}for(var y in t(u,n)&&u.forEach((function(t,e){var n=a(e,m-1),i=a(t,m-1);g.set(n,i)})),t(u,i)&&u.forEach((function(t){var e=a(t,m-1);g.add(e)})),u){var b;_&&(b=Object.getOwnPropertyDescriptor(_,y)),b&&null==b.set||(g[y]=a(u[y],m-1))}if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(u);for(y=0;y<w.length;y++){var x=w[y];(!(S=Object.getOwnPropertyDescriptor(u,x))||S.enumerable||d)&&(g[x]=a(u[x],m-1),S.enumerable||Object.defineProperty(g,x,{enumerable:!1}))}}if(d){var C=Object.getOwnPropertyNames(u);for(y=0;y<C.length;y++){var S,k=C[y];(S=Object.getOwnPropertyDescriptor(u,k))&&S.enumerable||(g[k]=a(u[k],m-1),Object.defineProperty(g,k,{enumerable:!1}))}}return g}(a,u)}function a(t){return Object.prototype.toString.call(t)}function s(t){var e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),e}return r.clonePrototype=function(t){if(null===t)return null;var e=function(){};return e.prototype=t,new e},r.__objToStr=a,r.__isDate=function(t){return"object"===typeof t&&"[object Date]"===a(t)},r.__isArray=function(t){return"object"===typeof t&&"[object Array]"===a(t)},r.__isRegExp=function(t){return"object"===typeof t&&"[object RegExp]"===a(t)},r.__getRegExpFlags=s,r}();"object"===typeof t&&t.exports&&(t.exports=i)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=f(n(0)),s=f(n(8)),l=n(4),u=f(l),c=f(n(16)),d=f(n(13)),h=f(n(25));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return t instanceof u.default||t instanceof l.BlockEmbed}var m=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.emitter=n.emitter,Array.isArray(n.whitelist)&&(i.whitelist=n.whitelist.reduce((function(t,e){return t[e]=!0,t}),{})),i.domNode.addEventListener("DOMNodeInserted",(function(){})),i.optimize(),i.enable(),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(t,n){var o=this.line(t),a=i(o,2),s=a[0],u=a[1],h=this.line(t+n),f=i(h,1)[0];if(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"deleteAt",this).call(this,t,n),null!=f&&s!==f&&u>0){if(s instanceof l.BlockEmbed||f instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===f)return void this.optimize()}else if(f instanceof d.default){var m=f.newlineIndex(0);m>-1&&f.split(m+1)}var g=f.children.head instanceof c.default?null:f.children.head;s.moveChildren(f,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(t,n,i,o){(null==this.whitelist||this.whitelist[i])&&(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"formatAt",this).call(this,t,n,i,o),this.optimize())}},{key:"insertAt",value:function(t,n,i){if(null==i||null==this.whitelist||this.whitelist[n]){if(t>=this.length())if(null==i||null==a.default.query(n,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==i&&n.endsWith("\n")&&(n=n.slice(0,-1)),o.insertAt(0,n,i)}else{var s=a.default.create(n,i);this.appendChild(s)}else r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertAt",this).call(this,t,n,i);this.optimize()}}},{key:"insertBefore",value:function(t,n){if(t.statics.scope===a.default.Scope.INLINE_BLOT){var i=a.default.create(this.statics.defaultChild);i.appendChild(t),t=i}r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n)}},{key:"leaf",value:function(t){return this.path(t).pop()||[null,-1]}},{key:"line",value:function(t){return t===this.length()?this.line(t-1):this.descendant(p,t)}},{key:"lines",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function t(e,n,i){var o=[],r=i;return e.children.forEachAt(n,i,(function(e,n,i){p(e)?o.push(e):e instanceof a.default.Container&&(o=o.concat(t(e,n,r))),r-=i})),o};return n(this,t,e)}},{key:"optimize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t,n),t.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,t,n))}},{key:"path",value:function(t){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"path",this).call(this,t).slice(1)}},{key:"update",value:function(t){if(!0!==this.batch){var n=s.default.sources.USER;"string"===typeof t&&(n=t),Array.isArray(t)||(t=this.observer.takeRecords()),t.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,t),r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"update",this).call(this,t.concat([])),t.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,t)}}}]),e}(a.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,l.BlockEmbed,h.default],e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SHORTKEY=e.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=m(n(21)),s=m(n(11)),l=m(n(3)),u=m(n(2)),c=m(n(20)),d=m(n(0)),h=m(n(5)),f=m(n(10)),p=m(n(9));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _=(0,f.default)("quill:keyboard"),v=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",y=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.bindings={},Object.keys(i.options.bindings).forEach((function(e){("list autofill"!==e||null==t.scroll.whitelist||t.scroll.whitelist.list)&&i.options.bindings[e]&&i.addBinding(i.options.bindings[e])})),i.addBinding({key:e.keys.ENTER,shiftKey:null},S),i.addBinding({key:e.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(i.addBinding({key:e.keys.BACKSPACE},{collapsed:!0},w),i.addBinding({key:e.keys.DELETE},{collapsed:!0},x)):(i.addBinding({key:e.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),i.addBinding({key:e.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),i.addBinding({key:e.keys.BACKSPACE},{collapsed:!1},C),i.addBinding({key:e.keys.DELETE},{collapsed:!1},C),i.addBinding({key:e.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),i.listen(),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,null,[{key:"match",value:function(t,e){return e=T(e),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!e[n]!==t[n]&&null!==e[n]}))&&e.key===(t.which||t.keyCode)}}]),r(e,[{key:"addBinding",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=T(t);if(null==i||null==i.key)return _.warn("Attempted to add invalid keyboard binding",i);"function"===typeof e&&(e={handler:e}),"function"===typeof n&&(n={handler:n}),i=(0,l.default)(i,e,n),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var t=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var r=n.which||n.keyCode,a=(t.bindings[r]||[]).filter((function(t){return e.match(n,t)}));if(0!==a.length){var l=t.quill.getSelection();if(null!=l&&t.quill.hasFocus()){var u=t.quill.getLine(l.index),c=o(u,2),h=c[0],f=c[1],p=t.quill.getLeaf(l.index),m=o(p,2),g=m[0],_=m[1],v=0===l.length?[g,_]:t.quill.getLeaf(l.index+l.length),y=o(v,2),b=y[0],w=y[1],x=g instanceof d.default.Text?g.value().slice(0,_):"",C=b instanceof d.default.Text?b.value().slice(w):"",S={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:t.quill.getFormat(l),offset:f,prefix:x,suffix:C};a.some((function(e){if(null!=e.collapsed&&e.collapsed!==S.collapsed)return!1;if(null!=e.empty&&e.empty!==S.empty)return!1;if(null!=e.offset&&e.offset!==S.offset)return!1;if(Array.isArray(e.format)){if(e.format.every((function(t){return null==S.format[t]})))return!1}else if("object"===i(e.format)&&!Object.keys(e.format).every((function(t){return!0===e.format[t]?null!=S.format[t]:!1===e.format[t]?null==S.format[t]:(0,s.default)(e.format[t],S.format[t])})))return!1;return!(null!=e.prefix&&!e.prefix.test(S.prefix))&&!(null!=e.suffix&&!e.suffix.test(S.suffix))&&!0!==e.handler.call(t,l,S)}))&&n.preventDefault()}}}}))}}]),e}(p.default);function b(t,e){var n,i=t===y.keys.LEFT?"prefix":"suffix";return g(n={key:t,shiftKey:e,altKey:null},i,/^$/),g(n,"handler",(function(n){var i=n.index;t===y.keys.RIGHT&&(i+=n.length+1);var r=this.quill.getLeaf(i);return!(o(r,1)[0]instanceof d.default.Embed)||(t===y.keys.LEFT?e?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):e?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),!1)})),n}function w(t,e){if(!(0===t.index||this.quill.getLength()<=1)){var n=this.quill.getLine(t.index),i=o(n,1)[0],r={};if(0===e.offset){var a=this.quill.getLine(t.index-1),s=o(a,1)[0];if(null!=s&&s.length()>1){var l=i.formats(),u=this.quill.getFormat(t.index-1,1);r=c.default.attributes.diff(l,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(e.prefix)?2:1;this.quill.deleteText(t.index-d,d,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(t.index-d,d,r,h.default.sources.USER),this.quill.focus()}}function x(t,e){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(e.suffix)?2:1;if(!(t.index>=this.quill.getLength()-n)){var i={},r=0,a=this.quill.getLine(t.index),s=o(a,1)[0];if(e.offset>=s.length()-1){var l=this.quill.getLine(t.index+1),u=o(l,1)[0];if(u){var d=s.formats(),f=this.quill.getFormat(t.index,1);i=c.default.attributes.diff(d,f)||{},r=u.length()}}this.quill.deleteText(t.index,n,h.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(t.index+r-1,n,i,h.default.sources.USER)}}function C(t){var e=this.quill.getLines(t),n={};if(e.length>1){var i=e[0].formats(),o=e[e.length-1].formats();n=c.default.attributes.diff(o,i)||{}}this.quill.deleteText(t,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(t.index,1,n,h.default.sources.USER),this.quill.setSelection(t.index,h.default.sources.SILENT),this.quill.focus()}function S(t,e){var n=this;t.length>0&&this.quill.scroll.deleteAt(t.index,t.length);var i=Object.keys(e.format).reduce((function(t,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(e.format[n])&&(t[n]=e.format[n]),t}),{});this.quill.insertText(t.index,"\n",i,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(e.format).forEach((function(t){null==i[t]&&(Array.isArray(e.format[t])||"link"!==t&&n.quill.format(t,e.format[t],h.default.sources.USER))}))}function k(t){return{key:y.keys.TAB,shiftKey:!t,format:{"code-block":!0},handler:function(e){var n=d.default.query("code-block"),i=e.index,r=e.length,a=this.quill.scroll.descendant(n,i),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,p=l.newlineIndex(c+u+r),m=l.domNode.textContent.slice(f,p).split("\n");u=0,m.forEach((function(e,o){t?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?i+=n.TAB.length:r+=n.TAB.length):e.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?i-=n.TAB.length:r-=n.TAB.length),u+=e.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(i,r,h.default.sources.SILENT)}}}}function I(t){return{key:t[0].toUpperCase(),shortKey:!0,handler:function(e,n){this.quill.format(t,!n.format[t],h.default.sources.USER)}}}function T(t){if("string"===typeof t||"number"===typeof t)return T({key:t});if("object"===("undefined"===typeof t?"undefined":i(t))&&(t=(0,a.default)(t,!1)),"string"===typeof t.key)if(null!=y.keys[t.key.toUpperCase()])t.key=y.keys[t.key.toUpperCase()];else{if(1!==t.key.length)return null;t.key=t.key.toUpperCase().charCodeAt(0)}return t.shortKey&&(t[v]=t.shortKey,delete t.shortKey),t}y.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},y.DEFAULTS={bindings:{bold:I("bold"),italic:I("italic"),underline:I("underline"),indent:{key:y.keys.TAB,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:y.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(t,e){if(e.collapsed&&0!==e.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:y.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(t,e){null!=e.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=e.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":k(!0),"outdent code-block":k(!1),"remove tab":{key:y.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(t){this.quill.deleteText(t.index-1,1,h.default.sources.USER)}},tab:{key:y.keys.TAB,handler:function(t){this.quill.history.cutoff();var e=(new u.default).retain(t.index).delete(t.length).insert("\t");this.quill.updateContents(e,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index+1,h.default.sources.SILENT)}},"list empty enter":{key:y.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(t,e){this.quill.format("list",!1,h.default.sources.USER),e.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:y.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),i=n[0],r=n[1],a=(0,l.default)({},i.formats(),{list:"checked"}),s=(new u.default).retain(t.index).insert("\n",a).retain(i.length()-r-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:y.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(t,e){var n=this.quill.getLine(t.index),i=o(n,2),r=i[0],a=i[1],s=(new u.default).retain(t.index).insert("\n",e.format).retain(r.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(t.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(t,e){var n=e.prefix.length,i=this.quill.getLine(t.index),r=o(i,2),a=r[0],s=r[1];if(s>n)return!0;var l=void 0;switch(e.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(t.index," ",h.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(t.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(t.index-n,h.default.sources.SILENT)}},"code exit":{key:y.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(t){var e=this.quill.getLine(t.index),n=o(e,2),i=n[0],r=n[1],a=(new u.default).retain(t.index+i.length()-r-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,h.default.sources.USER)}},"embed left":b(y.keys.LEFT,!1),"embed left shift":b(y.keys.LEFT,!0),"embed right":b(y.keys.RIGHT,!1),"embed right shift":b(y.keys.RIGHT,!0)}},e.default=y,e.SHORTKEY=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=l(n(0)),s=l(n(7));function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.selection=n,i.textNode=document.createTextNode(e.CONTENTS),i.domNode.appendChild(i.textNode),i._length=0,i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,null,[{key:"value",value:function(){}}]),r(e,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(t,n){if(0!==this._length)return o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);for(var i=this,r=0;null!=i&&i.statics.scope!==a.default.Scope.BLOCK_BLOT;)r+=i.offset(i.parent),i=i.parent;null!=i&&(this._length=e.CONTENTS.length,i.optimize(),i.formatAt(r,e.CONTENTS.length,t,n),this._length=0)}},{key:"index",value:function(t,n){return t===this.textNode?0:o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var t=this.textNode,n=this.selection.getNativeRange(),o=void 0,r=void 0,l=void 0;if(null!=n&&n.start.node===t&&n.end.node===t){var u=[t,n.start.offset,n.end.offset];o=u[0],r=u[1],l=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==e.CONTENTS){var c=this.textNode.data.split(e.CONTENTS).join("");this.next instanceof s.default?(o=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=e.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(e.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var d=[r,l].map((function(t){return Math.max(0,Math.min(o.data.length,t-1))})),h=i(d,2);return r=h[0],l=h[1],{startNode:o,startOffset:r,endNode:o,endOffset:l}}}}},{key:"update",value:function(t,e){var n=this;if(t.some((function(t){return"characterData"===t.type&&t.target===n.textNode}))){var i=this.restore();i&&(e.range=i)}}},{key:"value",value:function(){return""}}]),e}(a.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n(0)),o=n(4),r=a(o);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(i.default.Container);u.allowedChildren=[r.default,o.BlockEmbed,u],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ColorStyle=e.ColorClass=e.ColorAttributor=void 0;var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(0),a=(i=r)&&i.__esModule?i:{default:i};function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){var n=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t);return n.startsWith("rgb(")?(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,""),"#"+n.split(",").map((function(t){return("00"+parseInt(t).toString(16)).slice(-2)})).join("")):n}}]),e}(a.default.Attributor.Style),c=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),d=new u("color","color",{scope:a.default.Scope.INLINE});e.ColorAttributor=u,e.ColorClass=c,e.ColorStyle=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sanitize=e.default=void 0;var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){if(t!==this.statics.blotName||!n)return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return t=this.sanitize(t),n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(t){return t.getAttribute("href")}},{key:"sanitize",value:function(t){return c(t,this.PROTOCOL_WHITELIST)?t:this.SANITIZED_URL}}]),e}(((i=a)&&i.__esModule?i:{default:i}).default);function c(t,e){var n=document.createElement("a");n.href=t;var i=n.href.slice(0,n.href.indexOf(":"));return e.indexOf(i)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],e.default=u,e.sanitize=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=s(n(23)),a=s(n(107));function s(t){return t&&t.__esModule?t:{default:t}}var l=0;function u(t,e){t.setAttribute(e,!("true"===t.getAttribute(e)))}var c=function(){function t(e){var n=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(t){switch(t.keyCode){case r.default.keys.ENTER:n.togglePicker();break;case r.default.keys.ESCAPE:n.escape(),t.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(t,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(t){var e=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),t.hasAttribute("value")&&n.setAttribute("data-value",t.getAttribute("value")),t.textContent&&n.setAttribute("data-label",t.textContent),n.addEventListener("click",(function(){e.selectItem(n,!0)})),n.addEventListener("keydown",(function(t){switch(t.keyCode){case r.default.keys.ENTER:e.selectItem(n,!0),t.preventDefault();break;case r.default.keys.ESCAPE:e.escape(),t.preventDefault()}})),n}},{key:"buildLabel",value:function(){var t=document.createElement("span");return t.classList.add("ql-picker-label"),t.innerHTML=a.default,t.tabIndex="0",t.setAttribute("role","button"),t.setAttribute("aria-expanded","false"),this.container.appendChild(t),t}},{key:"buildOptions",value:function(){var t=this,e=document.createElement("span");e.classList.add("ql-picker-options"),e.setAttribute("aria-hidden","true"),e.tabIndex="-1",e.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",e.id),this.options=e,[].slice.call(this.select.options).forEach((function(n){var i=t.buildItem(n);e.appendChild(i),!0===n.selected&&t.selectItem(i)})),this.container.appendChild(e)}},{key:"buildPicker",value:function(){var t=this;[].slice.call(this.select.attributes).forEach((function(e){t.container.setAttribute(e.name,e.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var t=this;this.close(),setTimeout((function(){return t.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(t!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=t&&(t.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(t.parentNode.children,t),t.hasAttribute("data-value")?this.label.setAttribute("data-value",t.getAttribute("data-value")):this.label.removeAttribute("data-value"),t.hasAttribute("data-label")?this.label.setAttribute("data-label",t.getAttribute("data-label")):this.label.removeAttribute("data-label"),e))){if("function"===typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"===typeof Event?"undefined":i(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var t=void 0;if(this.select.selectedIndex>-1){var e=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];t=this.select.options[this.select.selectedIndex],this.selectItem(e)}else this.selectItem(null);var n=null!=t&&t!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),t}();e.default=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=_(n(0)),o=_(n(5)),r=n(4),a=_(r),s=_(n(16)),l=_(n(25)),u=_(n(24)),c=_(n(35)),d=_(n(6)),h=_(n(22)),f=_(n(7)),p=_(n(55)),m=_(n(42)),g=_(n(23));function _(t){return t&&t.__esModule?t:{default:t}}o.default.register({"blots/block":a.default,"blots/block/embed":r.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":f.default,"modules/clipboard":p.default,"modules/history":m.default,"modules/keyboard":g.default}),i.default.register(a.default,s.default,u.default,d.default,h.default,f.default),e.default=o.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=function(){function t(t){this.domNode=t,this.domNode[i.DATA_KEY]={blot:this}}return Object.defineProperty(t.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),t.create=function(t){if(null==this.tagName)throw new i.ParchmentError("Blot definition missing tagName");var e;return Array.isArray(this.tagName)?("string"===typeof t&&(t=t.toUpperCase(),parseInt(t).toString()===t&&(t=parseInt(t))),e="number"===typeof t?document.createElement(this.tagName[t-1]):this.tagName.indexOf(t)>-1?document.createElement(t):document.createElement(this.tagName[0])):e=document.createElement(this.tagName),this.className&&e.classList.add(this.className),e},t.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},t.prototype.clone=function(){var t=this.domNode.cloneNode(!1);return i.create(t)},t.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[i.DATA_KEY]},t.prototype.deleteAt=function(t,e){this.isolate(t,e).remove()},t.prototype.formatAt=function(t,e,n,o){var r=this.isolate(t,e);if(null!=i.query(n,i.Scope.BLOT)&&o)r.wrap(n,o);else if(null!=i.query(n,i.Scope.ATTRIBUTE)){var a=i.create(this.statics.scope);r.wrap(a),a.format(n,o)}},t.prototype.insertAt=function(t,e,n){var o=null==n?i.create("text",e):i.create(e,n),r=this.split(t);this.parent.insertBefore(o,r)},t.prototype.insertInto=function(t,e){void 0===e&&(e=null),null!=this.parent&&this.parent.children.remove(this);var n=null;t.children.insertBefore(this,e),null!=e&&(n=e.domNode),this.domNode.parentNode==t.domNode&&this.domNode.nextSibling==n||t.domNode.insertBefore(this.domNode,n),this.parent=t,this.attach()},t.prototype.isolate=function(t,e){var n=this.split(t);return n.split(e),n},t.prototype.length=function(){return 1},t.prototype.offset=function(t){return void 0===t&&(t=this.parent),null==this.parent||this==t?0:this.parent.children.offset(this)+this.parent.offset(t)},t.prototype.optimize=function(t){null!=this.domNode[i.DATA_KEY]&&delete this.domNode[i.DATA_KEY].mutations},t.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},t.prototype.replace=function(t){null!=t.parent&&(t.parent.insertBefore(this,t.next),t.remove())},t.prototype.replaceWith=function(t,e){var n="string"===typeof t?i.create(t,e):t;return n.replace(this),n},t.prototype.split=function(t,e){return 0===t?this:this.next},t.prototype.update=function(t,e){},t.prototype.wrap=function(t,e){var n="string"===typeof t?i.create(t,e):t;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},t.blotName="abstract",t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(32),r=n(33),a=n(1),s=function(){function t(t){this.attributes={},this.domNode=t,this.build()}return t.prototype.attribute=function(t,e){e?t.add(this.domNode,e)&&(null!=t.value(this.domNode)?this.attributes[t.attrName]=t:delete this.attributes[t.attrName]):(t.remove(this.domNode),delete this.attributes[t.attrName])},t.prototype.build=function(){var t=this;this.attributes={};var e=i.default.keys(this.domNode),n=o.default.keys(this.domNode),s=r.default.keys(this.domNode);e.concat(n).concat(s).forEach((function(e){var n=a.query(e,a.Scope.ATTRIBUTE);n instanceof i.default&&(t.attributes[n.attrName]=n)}))},t.prototype.copy=function(t){var e=this;Object.keys(this.attributes).forEach((function(n){var i=e.attributes[n].value(e.domNode);t.format(n,i)}))},t.prototype.move=function(t){var e=this;this.copy(t),Object.keys(this.attributes).forEach((function(t){e.attributes[t].remove(e.domNode)})),this.attributes={}},t.prototype.values=function(){var t=this;return Object.keys(this.attributes).reduce((function(e,n){return e[n]=t.attributes[n].value(t.domNode),e}),{})},t}();e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function o(t,e){return(t.getAttribute("class")||"").split(/\s+/).filter((function(t){return 0===t.indexOf(e+"-")}))}Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("class")||"").split(/\s+/).map((function(t){return t.split("-").slice(0,-1).join("-")}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(this.remove(t),t.classList.add(this.keyName+"-"+e),!0)},e.prototype.remove=function(t){o(t,this.keyName).forEach((function(e){t.classList.remove(e)})),0===t.classList.length&&t.removeAttribute("class")},e.prototype.value=function(t){var e=(o(t,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();function o(t){var e=t.split("-"),n=e.slice(1).map((function(t){return t[0].toUpperCase()+t.slice(1)})).join("");return e[0]+n}Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.keys=function(t){return(t.getAttribute("style")||"").split(";").map((function(t){return t.split(":")[0].trim()}))},e.prototype.add=function(t,e){return!!this.canAdd(t,e)&&(t.style[o(this.keyName)]=e,!0)},e.prototype.remove=function(t){t.style[o(this.keyName)]="",t.getAttribute("style")||t.removeAttribute("style")},e.prototype.value=function(t){var e=t.style[o(this.keyName)];return this.canAdd(t,e)?e:""},e}(n(12).default);e.default=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.options=n,this.modules={}}return i(t,[{key:"init",value:function(){var t=this;Object.keys(this.options.modules).forEach((function(e){null==t.modules[e]&&t.addModule(e)}))}},{key:"addModule",value:function(t){var e=this.quill.constructor.import("modules/"+t);return this.modules[t]=new e(this.quill,this.options.modules[t]||{}),this.modules[t]}}]),t}();o.DEFAULTS={modules:{}},o.themes={default:o},e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=a(n(0)),r=a(n(7));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(t){n.contentNode.appendChild(t)})),n.leftGuard=document.createTextNode("\ufeff"),n.rightGuard=document.createTextNode("\ufeff"),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"index",value:function(t,n){return t===this.leftGuard?0:t===this.rightGuard?1:function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"index",this).call(this,t,n)}},{key:"restore",value:function(t){var e=void 0,n=void 0,i=t.data.split("\ufeff").join("");if(t===this.leftGuard)if(this.prev instanceof r.default){var a=this.prev.length();this.prev.insertAt(a,i),e={startNode:this.prev.domNode,startOffset:a+i.length}}else n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this),e={startNode:n,startOffset:i.length};else t===this.rightGuard&&(this.next instanceof r.default?(this.next.insertAt(0,i),e={startNode:this.next.domNode,startOffset:i.length}):(n=document.createTextNode(i),this.parent.insertBefore(o.default.create(n),this.next),e={startNode:n,startOffset:i.length}));return t.data="\ufeff",e}},{key:"update",value:function(t,e){var n=this;t.forEach((function(t){if("characterData"===t.type&&(t.target===n.leftGuard||t.target===n.rightGuard)){var i=n.restore(t.target);i&&(e.range=i)}}))}}]),e}(o.default.Embed);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AlignStyle=e.AlignClass=e.AlignAttribute=void 0;var i,o=n(0),r=(i=o)&&i.__esModule?i:{default:i},a={scope:r.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new r.default.Attributor.Attribute("align","align",a),l=new r.default.Attributor.Class("align","ql-align",a),u=new r.default.Attributor.Style("align","text-align",a);e.AlignAttribute=s,e.AlignClass=l,e.AlignStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BackgroundStyle=e.BackgroundClass=void 0;var i,o=n(0),r=(i=o)&&i.__esModule?i:{default:i},a=n(26),s=new r.default.Attributor.Class("background","ql-bg",{scope:r.default.Scope.INLINE}),l=new a.ColorAttributor("background","background-color",{scope:r.default.Scope.INLINE});e.BackgroundClass=s,e.BackgroundStyle=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DirectionStyle=e.DirectionClass=e.DirectionAttribute=void 0;var i,o=n(0),r=(i=o)&&i.__esModule?i:{default:i},a={scope:r.default.Scope.BLOCK,whitelist:["rtl"]},s=new r.default.Attributor.Attribute("direction","dir",a),l=new r.default.Attributor.Class("direction","ql-direction",a),u=new r.default.Attributor.Style("direction","direction",a);e.DirectionAttribute=s,e.DirectionClass=l,e.DirectionStyle=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FontClass=e.FontStyle=void 0;var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(0),a=(i=r)&&i.__esModule?i:{default:i};function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},c=new a.default.Attributor.Class("font","ql-font",u),d=new(function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"value",value:function(t){return function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t).replace(/["']/g,"")}}]),e}(a.default.Attributor.Style))("font","font-family",u);e.FontStyle=d,e.FontClass=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SizeStyle=e.SizeClass=void 0;var i,o=n(0),r=(i=o)&&i.__esModule?i:{default:i},a=new r.default.Attributor.Class("size","ql-size",{scope:r.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new r.default.Attributor.Style("size","font-size",{scope:r.default.Scope.INLINE,whitelist:["10px","18px","32px"]});e.SizeClass=a,e.SizeStyle=s},function(t,e,n){"use strict";t.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLastChangeIndex=e.default=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=a(n(0)),r=a(n(5));function a(t){return t&&t.__esModule?t:{default:t}}var s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.lastRecorded=0,i.ignoreChange=!1,i.clear(),i.quill.on(r.default.events.EDITOR_CHANGE,(function(t,e,n,o){t!==r.default.events.TEXT_CHANGE||i.ignoreChange||(i.options.userOnly&&o!==r.default.sources.USER?i.transform(e):i.record(e,n))})),i.quill.keyboard.addBinding({key:"Z",shortKey:!0},i.undo.bind(i)),i.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},i.redo.bind(i)),/Win/i.test(navigator.platform)&&i.quill.keyboard.addBinding({key:"Y",shortKey:!0},i.redo.bind(i)),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),i(e,[{key:"change",value:function(t,e){if(0!==this.stack[t].length){var n=this.stack[t].pop();this.stack[e].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[t],r.default.sources.USER),this.ignoreChange=!1;var i=l(n[t]);this.quill.setSelection(i)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(t,e){if(0!==t.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(e),i=Date.now();if(this.lastRecorded+this.options.delay>i&&this.stack.undo.length>0){var o=this.stack.undo.pop();n=n.compose(o.undo),t=o.redo.compose(t)}else this.lastRecorded=i;this.stack.undo.push({redo:t,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(t){this.stack.undo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)})),this.stack.redo.forEach((function(e){e.undo=t.transform(e.undo,!0),e.redo=t.transform(e.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),e}(a(n(9)).default);function l(t){var e=t.reduce((function(t,e){return t+=e.delete||0}),0),n=t.length()-e;return function(t){var e=t.ops[t.ops.length-1];return null!=e&&(null!=e.insert?"string"===typeof e.insert&&e.insert.endsWith("\n"):null!=e.attributes&&Object.keys(e.attributes).some((function(t){return null!=o.default.query(t,o.default.Scope.BLOCK)})))}(t)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},e.default=s,e.getLastChangeIndex=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BaseTooltip=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=f(n(3)),r=f(n(2)),a=f(n(8)),s=f(n(23)),l=f(n(34)),u=f(n(59)),c=f(n(60)),d=f(n(28)),h=f(n(61));function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[!1,"center","right","justify"],v=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],y=[!1,"serif","monospace"],b=["1","2","3",!1],w=["small",!1,"large","huge"],x=function(t){function e(t,n){p(this,e);var i=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return t.emitter.listenDOM("click",document.body,(function e(n){if(!document.body.contains(t.root))return document.body.removeEventListener("click",e);null==i.tooltip||i.tooltip.root.contains(n.target)||document.activeElement===i.tooltip.textbox||i.quill.hasFocus()||i.tooltip.hide(),null!=i.pickers&&i.pickers.forEach((function(t){t.container.contains(n.target)||t.close()}))})),i}return g(e,t),i(e,[{key:"addModule",value:function(t){var n=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"addModule",this).call(this,t);return"toolbar"===t&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(t,e){t.forEach((function(t){(t.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=e[n]))if("direction"===n)t.innerHTML=e[n][""]+e[n].rtl;else if("string"===typeof e[n])t.innerHTML=e[n];else{var i=t.value||"";null!=i&&e[n][i]&&(t.innerHTML=e[n][i])}}))}))}},{key:"buildPickers",value:function(t,e){var n=this;this.pickers=t.map((function(t){if(t.classList.contains("ql-align"))return null==t.querySelector("option")&&S(t,_),new c.default(t,e.align);if(t.classList.contains("ql-background")||t.classList.contains("ql-color")){var n=t.classList.contains("ql-background")?"background":"color";return null==t.querySelector("option")&&S(t,v,"background"===n?"#ffffff":"#000000"),new u.default(t,e[n])}return null==t.querySelector("option")&&(t.classList.contains("ql-font")?S(t,y):t.classList.contains("ql-header")?S(t,b):t.classList.contains("ql-size")&&S(t,w)),new d.default(t)})),this.quill.on(a.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(t){t.update()}))}))}}]),e}(l.default);x.DEFAULTS=(0,o.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var t=this,e=this.container.querySelector("input.ql-image[type=file]");null==e&&((e=document.createElement("input")).setAttribute("type","file"),e.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),e.classList.add("ql-image"),e.addEventListener("change",(function(){if(null!=e.files&&null!=e.files[0]){var n=new FileReader;n.onload=function(n){var i=t.quill.getSelection(!0);t.quill.updateContents((new r.default).retain(i.index).delete(i.length).insert({image:n.target.result}),a.default.sources.USER),t.quill.setSelection(i.index+1,a.default.sources.SILENT),e.value=""},n.readAsDataURL(e.files[0])}})),this.container.appendChild(e)),e.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var C=function(t){function e(t,n){p(this,e);var i=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.textbox=i.root.querySelector('input[type="text"]'),i.listen(),i}return g(e,t),i(e,[{key:"listen",value:function(){var t=this;this.textbox.addEventListener("keydown",(function(e){s.default.match(e,"enter")?(t.save(),e.preventDefault()):s.default.match(e,"escape")&&(t.cancel(),e.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=e?this.textbox.value=e:t!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+t)||""),this.root.setAttribute("data-mode",t)}},{key:"restoreFocus",value:function(){var t=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=t}},{key:"save",value:function(){var t=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var e=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",t,a.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",t,a.default.sources.USER)),this.quill.root.scrollTop=e;break;case"video":t=function(t){var e=t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||t.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return e?(e[1]||"https")+"://www.youtube.com/embed/"+e[2]+"?showinfo=0":(e=t.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(e[1]||"https")+"://player.vimeo.com/video/"+e[2]+"/":t}(t);case"formula":if(!t)break;var n=this.quill.getSelection(!0);if(null!=n){var i=n.index+n.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),t,a.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",a.default.sources.USER),this.quill.setSelection(i+2,a.default.sources.USER)}}this.textbox.value="",this.hide()}}]),e}(h.default);function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var i=document.createElement("option");e===n?i.setAttribute("selected","selected"):i.setAttribute("value",e),t.appendChild(i)}))}e.BaseTooltip=C,e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];this.insertBefore(t[0],null),t.length>1&&this.append.apply(this,t.slice(1))},t.prototype.contains=function(t){for(var e,n=this.iterator();e=n();)if(e===t)return!0;return!1},t.prototype.insertBefore=function(t,e){t&&(t.next=e,null!=e?(t.prev=e.prev,null!=e.prev&&(e.prev.next=t),e.prev=t,e===this.head&&(this.head=t)):null!=this.tail?(this.tail.next=t,t.prev=this.tail,this.tail=t):(t.prev=null,this.head=this.tail=t),this.length+=1)},t.prototype.offset=function(t){for(var e=0,n=this.head;null!=n;){if(n===t)return e;e+=n.length(),n=n.next}return-1},t.prototype.remove=function(t){this.contains(t)&&(null!=t.prev&&(t.prev.next=t.next),null!=t.next&&(t.next.prev=t.prev),t===this.head&&(this.head=t.next),t===this.tail&&(this.tail=t.prev),this.length-=1)},t.prototype.iterator=function(t){return void 0===t&&(t=this.head),function(){var e=t;return null!=t&&(t=t.next),e}},t.prototype.find=function(t,e){void 0===e&&(e=!1);for(var n,i=this.iterator();n=i();){var o=n.length();if(t<o||e&&t===o&&(null==n.next||0!==n.next.length()))return[n,t];t-=o}return[null,0]},t.prototype.forEach=function(t){for(var e,n=this.iterator();e=n();)t(e)},t.prototype.forEachAt=function(t,e,n){if(!(e<=0))for(var i,o=this.find(t),r=o[0],a=t-o[1],s=this.iterator(r);(i=s())&&a<t+e;){var l=i.length();t>a?n(i,t-a,Math.min(e,a+l-t)):n(i,0,Math.min(l,t+e-a)),a+=l}},t.prototype.map=function(t){return this.reduce((function(e,n){return e.push(t(n)),e}),[])},t.prototype.reduce=function(t,e){for(var n,i=this.iterator();n=i();)e=t(e,n);return e},t}();e.default=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=n(1),a={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},s=function(t){function e(e){var n=t.call(this,e)||this;return n.scroll=n,n.observer=new MutationObserver((function(t){n.update(t)})),n.observer.observe(n.domNode,a),n.attach(),n}return i(e,t),e.prototype.detach=function(){t.prototype.detach.call(this),this.observer.disconnect()},e.prototype.deleteAt=function(e,n){this.update(),0===e&&n===this.length()?this.children.forEach((function(t){t.remove()})):t.prototype.deleteAt.call(this,e,n)},e.prototype.formatAt=function(e,n,i,o){this.update(),t.prototype.formatAt.call(this,e,n,i,o)},e.prototype.insertAt=function(e,n,i){this.update(),t.prototype.insertAt.call(this,e,n,i)},e.prototype.optimize=function(e,n){var i=this;void 0===e&&(e=[]),void 0===n&&(n={}),t.prototype.optimize.call(this,n);for(var a=[].slice.call(this.observer.takeRecords());a.length>0;)e.push(a.pop());for(var s=function t(e,n){void 0===n&&(n=!0),null!=e&&e!==i&&null!=e.domNode.parentNode&&(null==e.domNode[r.DATA_KEY].mutations&&(e.domNode[r.DATA_KEY].mutations=[]),n&&t(e.parent))},l=function t(e){null!=e.domNode[r.DATA_KEY]&&null!=e.domNode[r.DATA_KEY].mutations&&(e instanceof o.default&&e.children.forEach(t),e.optimize(n))},u=e,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(t){var e=r.find(t.target,!0);null!=e&&(e.domNode===t.target&&("childList"===t.type?(s(r.find(t.previousSibling,!1)),[].forEach.call(t.addedNodes,(function(t){var e=r.find(t,!1);s(e,!1),e instanceof o.default&&e.children.forEach((function(t){s(t,!1)}))}))):"attributes"===t.type&&s(e.prev)),s(e))})),this.children.forEach(l),a=(u=[].slice.call(this.observer.takeRecords())).slice();a.length>0;)e.push(a.pop())}},e.prototype.update=function(e,n){var i=this;void 0===n&&(n={}),(e=e||this.observer.takeRecords()).map((function(t){var e=r.find(t.target,!0);return null==e?null:null==e.domNode[r.DATA_KEY].mutations?(e.domNode[r.DATA_KEY].mutations=[t],e):(e.domNode[r.DATA_KEY].mutations.push(t),null)})).forEach((function(t){null!=t&&t!==i&&null!=t.domNode[r.DATA_KEY]&&t.update(t.domNode[r.DATA_KEY].mutations||[],n)})),null!=this.domNode[r.DATA_KEY].mutations&&t.prototype.update.call(this,this.domNode[r.DATA_KEY].mutations,n),this.optimize(e,n)},e.blotName="scroll",e.defaultChild="block",e.scope=r.Scope.BLOCK_BLOT,e.tagName="DIV",e}(o.default);e.default=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){if(n.tagName!==e.tagName)return t.formats.call(this,n)},e.prototype.format=function(n,i){var r=this;n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):(this.children.forEach((function(t){t instanceof o.default||(t=t.wrap(e.blotName,!0)),r.attributes.copy(t)})),this.unwrap())},e.prototype.formatAt=function(e,n,i,o){null!=this.formats()[i]||r.query(i,r.Scope.ATTRIBUTE)?this.isolate(e,n).format(i,o):t.prototype.formatAt.call(this,e,n,i,o)},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n);var i=this.formats();if(0===Object.keys(i).length)return this.unwrap();var o=this.next;o instanceof e&&o.prev===this&&function(t,e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(var n in t)if(t[n]!==e[n])return!1;return!0}(i,o.formats())&&(o.moveChildren(this),o.remove())},e.blotName="inline",e.scope=r.Scope.INLINE_BLOT,e.tagName="SPAN",e}(o.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(18),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(n){var i=r.query(e.blotName).tagName;if(n.tagName!==i)return t.formats.call(this,n)},e.prototype.format=function(n,i){null!=r.query(n,r.Scope.BLOCK)&&(n!==this.statics.blotName||i?t.prototype.format.call(this,n,i):this.replaceWith(e.blotName))},e.prototype.formatAt=function(e,n,i,o){null!=r.query(i,r.Scope.BLOCK)?this.format(i,o):t.prototype.formatAt.call(this,e,n,i,o)},e.prototype.insertAt=function(e,n,i){if(null==i||null!=r.query(n,r.Scope.INLINE))t.prototype.insertAt.call(this,e,n,i);else{var o=this.split(e),a=r.create(n,i);o.parent.insertBefore(a,o)}},e.prototype.update=function(e,n){navigator.userAgent.match(/Trident/)?this.build():t.prototype.update.call(this,e,n)},e.blotName="block",e.scope=r.Scope.BLOCK_BLOT,e.tagName="P",e}(o.default);e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.formats=function(t){},e.prototype.format=function(e,n){t.prototype.formatAt.call(this,0,this.length(),e,n)},e.prototype.formatAt=function(e,n,i,o){0===e&&n===this.length()?this.format(i,o):t.prototype.formatAt.call(this,e,n,i,o)},e.prototype.formats=function(){return this.statics.formats(this.domNode)},e}(n(19).default);e.default=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),r=n(1),a=function(t){function e(e){var n=t.call(this,e)||this;return n.text=n.statics.value(n.domNode),n}return i(e,t),e.create=function(t){return document.createTextNode(t)},e.value=function(t){var e=t.data;return e.normalize&&(e=e.normalize()),e},e.prototype.deleteAt=function(t,e){this.domNode.data=this.text=this.text.slice(0,t)+this.text.slice(t+e)},e.prototype.index=function(t,e){return this.domNode===t?e:-1},e.prototype.insertAt=function(e,n,i){null==i?(this.text=this.text.slice(0,e)+n+this.text.slice(e),this.domNode.data=this.text):t.prototype.insertAt.call(this,e,n,i)},e.prototype.length=function(){return this.text.length},e.prototype.optimize=function(n){t.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof e&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},e.prototype.position=function(t,e){return void 0===e&&(e=!1),[this.domNode,t]},e.prototype.split=function(t,e){if(void 0===e&&(e=!1),!e){if(0===t)return this;if(t===this.length())return this.next}var n=r.create(this.domNode.splitText(t));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},e.prototype.update=function(t,e){var n=this;t.some((function(t){return"characterData"===t.type&&t.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},e.prototype.value=function(){return this.text},e.blotName="text",e.scope=r.Scope.INLINE_BLOT,e}(o.default);e.default=a},function(t,e,n){"use strict";var i=document.createElement("div");if(i.classList.toggle("test-class",!1),i.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return arguments.length>1&&!this.contains(t)===!e?e:o.call(this,t)}}String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return e=e||0,this.substr(e,t.length)===t}),String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var n=this.toString();("number"!==typeof e||!isFinite(e)||Math.floor(e)!==e||e>n.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(t){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!==typeof t)throw new TypeError("predicate must be a function");for(var e,n=Object(this),i=n.length>>>0,o=arguments[1],r=0;r<i;r++)if(e=n[r],t.call(o,e,r,n))return e}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(t,e){function n(t,e,a){if(t==e)return t?[[0,t]]:[];(a<0||t.length<a)&&(a=null);var l=o(t,e),u=t.substring(0,l);l=r(t=t.substring(l),e=e.substring(l));var c=t.substring(t.length-l),d=function(t,e){var a;if(!t)return[[1,e]];if(!e)return[[-1,t]];var s=t.length>e.length?t:e,l=t.length>e.length?e:t,u=s.indexOf(l);if(-1!=u)return a=[[1,s.substring(0,u)],[0,l],[1,s.substring(u+l.length)]],t.length>e.length&&(a[0][0]=a[2][0]=-1),a;if(1==l.length)return[[-1,t],[1,e]];var c=function(t,e){var n=t.length>e.length?t:e,i=t.length>e.length?e:t;if(n.length<4||2*i.length<n.length)return null;function a(t,e,n){for(var i,a,s,l,u=t.substring(n,n+Math.floor(t.length/4)),c=-1,d="";-1!=(c=e.indexOf(u,c+1));){var h=o(t.substring(n),e.substring(c)),f=r(t.substring(0,n),e.substring(0,c));d.length<f+h&&(d=e.substring(c-f,c)+e.substring(c,c+h),i=t.substring(0,n-f),a=t.substring(n+h),s=e.substring(0,c-f),l=e.substring(c+h))}return 2*d.length>=t.length?[i,a,s,l,d]:null}var s,l,u,c,d,h=a(n,i,Math.ceil(n.length/4)),f=a(n,i,Math.ceil(n.length/2));if(!h&&!f)return null;s=f?h&&h[4].length>f[4].length?h:f:h,t.length>e.length?(l=s[0],u=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],l=s[2],u=s[3]);var p=s[4];return[l,u,c,d,p]}(t,e);if(c){var d=c[0],h=c[1],f=c[2],p=c[3],m=c[4],g=n(d,f),_=n(h,p);return g.concat([[0,m]],_)}return function(t,e){for(var n=t.length,o=e.length,r=Math.ceil((n+o)/2),a=r,s=2*r,l=new Array(s),u=new Array(s),c=0;c<s;c++)l[c]=-1,u[c]=-1;l[a+1]=0,u[a+1]=0;for(var d=n-o,h=d%2!=0,f=0,p=0,m=0,g=0,_=0;_<r;_++){for(var v=-_+f;v<=_-p;v+=2){for(var y=a+v,b=(k=v==-_||v!=_&&l[y-1]<l[y+1]?l[y+1]:l[y-1]+1)-v;k<n&&b<o&&t.charAt(k)==e.charAt(b);)k++,b++;if(l[y]=k,k>n)p+=2;else if(b>o)f+=2;else if(h&&(C=a+d-v)>=0&&C<s&&-1!=u[C]){var w=n-u[C];if(k>=w)return i(t,e,k,b)}}for(var x=-_+m;x<=_-g;x+=2){for(var C=a+x,S=(w=x==-_||x!=_&&u[C-1]<u[C+1]?u[C+1]:u[C-1]+1)-x;w<n&&S<o&&t.charAt(n-w-1)==e.charAt(o-S-1);)w++,S++;if(u[C]=w,w>n)g+=2;else if(S>o)m+=2;else if(!h&&(y=a+d-x)>=0&&y<s&&-1!=l[y]){var k=l[y];if(b=a+k-y,k>=(w=n-w))return i(t,e,k,b)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-l),e=e.substring(0,e.length-l));return u&&d.unshift([0,u]),c&&d.push([0,c]),function t(e){e.push([0,""]);for(var n,i=0,a=0,s=0,l="",u="";i<e.length;)switch(e[i][0]){case 1:s++,u+=e[i][1],i++;break;case-1:a++,l+=e[i][1],i++;break;case 0:a+s>1?(0!==a&&0!==s&&(0!==(n=o(u,l))&&(i-a-s>0&&0==e[i-a-s-1][0]?e[i-a-s-1][1]+=u.substring(0,n):(e.splice(0,0,[0,u.substring(0,n)]),i++),u=u.substring(n),l=l.substring(n)),0!==(n=r(u,l))&&(e[i][1]=u.substring(u.length-n)+e[i][1],u=u.substring(0,u.length-n),l=l.substring(0,l.length-n))),0===a?e.splice(i-s,a+s,[1,u]):0===s?e.splice(i-a,a+s,[-1,l]):e.splice(i-a-s,a+s,[-1,l],[1,u]),i=i-a-s+(a?1:0)+(s?1:0)+1):0!==i&&0==e[i-1][0]?(e[i-1][1]+=e[i][1],e.splice(i,1)):i++,s=0,a=0,l="",u=""}""===e[e.length-1][1]&&e.pop();var c=!1;for(i=1;i<e.length-1;)0==e[i-1][0]&&0==e[i+1][0]&&(e[i][1].substring(e[i][1].length-e[i-1][1].length)==e[i-1][1]?(e[i][1]=e[i-1][1]+e[i][1].substring(0,e[i][1].length-e[i-1][1].length),e[i+1][1]=e[i-1][1]+e[i+1][1],e.splice(i-1,1),c=!0):e[i][1].substring(0,e[i+1][1].length)==e[i+1][1]&&(e[i-1][1]+=e[i+1][1],e[i][1]=e[i][1].substring(e[i+1][1].length)+e[i+1][1],e.splice(i+1,1),c=!0)),i++;c&&t(e)}(d),null!=a&&(d=function(t,e){var n=function(t,e){if(0===e)return[0,t];for(var n=0,i=0;i<t.length;i++){var o=t[i];if(-1===o[0]||0===o[0]){var r=n+o[1].length;if(e===r)return[i+1,t];if(e<r){t=t.slice();var a=e-n,s=[o[0],o[1].slice(0,a)],l=[o[0],o[1].slice(a)];return t.splice(i,1,s,l),[i+1,t]}n=r}}throw new Error("cursor_pos is out of bounds!")}(t,e),i=n[1],o=n[0],r=i[o],a=i[o+1];if(null==r)return t;if(0!==r[0])return t;if(null!=a&&r[1]+a[1]===a[1]+r[1])return i.splice(o,2,a,r),s(i,o,2);if(null!=a&&0===a[1].indexOf(r[1])){i.splice(o,2,[a[0],r[1]],[0,r[1]]);var l=a[1].slice(r[1].length);return l.length>0&&i.splice(o+2,0,[a[0],l]),s(i,o,3)}return t}(d,a)),d=function(t){for(var e=!1,n=function(t){return t.charCodeAt(0)>=56320&&t.charCodeAt(0)<=57343},i=2;i<t.length;i+=1)0===t[i-2][0]&&(o=t[i-2][1]).charCodeAt(o.length-1)>=55296&&o.charCodeAt(o.length-1)<=56319&&-1===t[i-1][0]&&n(t[i-1][1])&&1===t[i][0]&&n(t[i][1])&&(e=!0,t[i-1][1]=t[i-2][1].slice(-1)+t[i-1][1],t[i][1]=t[i-2][1].slice(-1)+t[i][1],t[i-2][1]=t[i-2][1].slice(0,-1));var o;if(!e)return t;var r=[];for(i=0;i<t.length;i+=1)t[i][1].length>0&&r.push(t[i]);return r}(d)}function i(t,e,i,o){var r=t.substring(0,i),a=e.substring(0,o),s=t.substring(i),l=e.substring(o),u=n(r,a),c=n(s,l);return u.concat(c)}function o(t,e){if(!t||!e||t.charAt(0)!=e.charAt(0))return 0;for(var n=0,i=Math.min(t.length,e.length),o=i,r=0;n<o;)t.substring(r,o)==e.substring(r,o)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}function r(t,e){if(!t||!e||t.charAt(t.length-1)!=e.charAt(e.length-1))return 0;for(var n=0,i=Math.min(t.length,e.length),o=i,r=0;n<o;)t.substring(t.length-o,t.length-r)==e.substring(e.length-o,e.length-r)?r=n=o:i=o,o=Math.floor((i-n)/2+n);return o}var a=n;function s(t,e,n){for(var i=e+n-1;i>=0&&i>=e-1;i--)if(i+1<t.length){var o=t[i],r=t[i+1];o[0]===r[1]&&t.splice(i,2,[o[0],o[1]+r[1]])}return t}a.INSERT=1,a.DELETE=-1,a.EQUAL=0,t.exports=a},function(t,e){function n(t){var e=[];for(var n in t)e.push(n);return e}(t.exports="function"===typeof Object.keys?Object.keys:n).shim=n},function(t,e){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function i(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function o(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Object.prototype.hasOwnProperty.call(t,"callee")&&!Object.prototype.propertyIsEnumerable.call(t,"callee")||!1}(e=t.exports=n?i:o).supported=i,e.unsupported=o},function(t,e){"use strict";var n=Object.prototype.hasOwnProperty,i="~";function o(){}function r(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),a.prototype.eventNames=function(){var t,e,o=[];if(0===this._eventsCount)return o;for(e in t=this._events)n.call(t,e)&&o.push(i?e.slice(1):e);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o},a.prototype.listeners=function(t,e){var n=i?i+t:t,o=this._events[n];if(e)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var r=0,a=o.length,s=new Array(a);r<a;r++)s[r]=o[r].fn;return s},a.prototype.emit=function(t,e,n,o,r,a){var s=i?i+t:t;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(t,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,e),!0;case 3:return c.fn.call(c.context,e,n),!0;case 4:return c.fn.call(c.context,e,n,o),!0;case 5:return c.fn.call(c.context,e,n,o,r),!0;case 6:return c.fn.call(c.context,e,n,o,r,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,f=c.length;for(u=0;u<f;u++)switch(c[u].once&&this.removeListener(t,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,e);break;case 3:c[u].fn.call(c[u].context,e,n);break;case 4:c[u].fn.call(c[u].context,e,n,o);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(t,e,n){var o=new r(e,n||this),a=i?i+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(t,e,n){var o=new r(e,n||this,!0),a=i?i+t:t;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(t,e,n,r){var a=i?i+t:t;if(!this._events[a])return this;if(!e)return 0===--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==e||r&&!s.once||n&&s.context!==n||(0===--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==e||r&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0===--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(t){var e;return t?(e=i?i+t:t,this._events[e]&&(0===--this._eventsCount?this._events=new o:delete this._events[e])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=i,a.EventEmitter=a,"undefined"!==typeof t&&(t.exports=a)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.matchText=e.matchSpacing=e.matchNewline=e.matchBlot=e.matchAttributor=e.default=void 0;var i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=y(n(3)),s=y(n(2)),l=y(n(0)),u=y(n(5)),c=y(n(10)),d=y(n(9)),h=n(36),f=n(37),p=y(n(13)),m=n(26),g=n(38),_=n(39),v=n(40);function y(t){return t&&t.__esModule?t:{default:t}}function b(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w=(0,c.default)("quill:clipboard"),x="__ql-matcher",C=[[Node.TEXT_NODE,N],[Node.TEXT_NODE,R],["br",function(t,e){return O(e,"\n")||e.insert("\n"),e}],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,A],[Node.ELEMENT_NODE,B],[Node.ELEMENT_NODE,D],[Node.ELEMENT_NODE,function(t,e){var n={},i=t.style||{};return i.fontStyle&&"italic"===E(t).fontStyle&&(n.italic=!0),i.fontWeight&&(E(t).fontWeight.startsWith("bold")||parseInt(E(t).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(e=T(e,n)),parseFloat(i.textIndent||0)>0&&(e=(new s.default).insert("\t").concat(e)),e}],["li",function(t,e){var n=l.default.query(t);if(null==n||"list-item"!==n.blotName||!O(e,"\n"))return e;for(var i=-1,o=t.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(i+=1),o=o.parentNode;return i<=0?e:e.compose((new s.default).retain(e.length()-1).retain(1,{indent:i}))}],["b",P.bind(P,"bold")],["i",P.bind(P,"italic")],["style",function(){return new s.default}]],S=[h.AlignAttribute,g.DirectionAttribute].reduce((function(t,e){return t[e.keyName]=e,t}),{}),k=[h.AlignStyle,f.BackgroundStyle,m.ColorStyle,g.DirectionStyle,_.FontStyle,v.SizeStyle].reduce((function(t,e){return t[e.keyName]=e,t}),{}),I=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.root.addEventListener("paste",i.onPaste.bind(i)),i.container=i.quill.addContainer("ql-clipboard"),i.container.setAttribute("contenteditable",!0),i.container.setAttribute("tabindex",-1),i.matchers=[],C.concat(i.options.matchers).forEach((function(t){var e=o(t,2),r=e[0],a=e[1];(n.matchVisual||a!==B)&&i.addMatcher(r,a)})),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"addMatcher",value:function(t,e){this.matchers.push([t,e])}},{key:"convert",value:function(t){if("string"===typeof t)return this.container.innerHTML=t.replace(/\>\r?\n +\</g,"><"),this.convert();var e=this.quill.getFormat(this.quill.selection.savedRange.index);if(e[p.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,b({},p.default.blotName,e[p.default.blotName]))}var i=this.prepareMatching(),r=o(i,2),a=r[0],l=r[1],u=function t(e,n,i){return e.nodeType===e.TEXT_NODE?i.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var a=t(r,n,i);return r.nodeType===e.ELEMENT_NODE&&(a=n.reduce((function(t,e){return e(r,t)}),a),a=(r[x]||[]).reduce((function(t,e){return e(r,t)}),a)),o.concat(a)}),new s.default):new s.default}(this.container,a,l);return O(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"===typeof t)this.quill.setContents(this.convert(t),e),this.quill.setSelection(0,u.default.sources.SILENT);else{var i=this.convert(e);this.quill.updateContents((new s.default).retain(t).concat(i),n),this.quill.setSelection(t+i.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(t){var e=this;if(!t.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),i=(new s.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){i=i.concat(e.convert()).delete(n.length),e.quill.updateContents(i,u.default.sources.USER),e.quill.setSelection(i.length()-n.length,u.default.sources.SILENT),e.quill.scrollingContainer.scrollTop=o,e.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var t=this,e=[],n=[];return this.matchers.forEach((function(i){var r=o(i,2),a=r[0],s=r[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:e.push(s);break;default:[].forEach.call(t.container.querySelectorAll(a),(function(t){t[x]=t[x]||[],t[x].push(s)}))}})),[e,n]}}]),e}(d.default);function T(t,e,n){return"object"===("undefined"===typeof e?"undefined":i(e))?Object.keys(e).reduce((function(t,n){return T(t,n,e[n])}),t):t.reduce((function(t,i){return i.attributes&&i.attributes[e]?t.push(i):t.insert(i.insert,(0,a.default)({},b({},e,n),i.attributes))}),new s.default)}function E(t){return t.nodeType!==Node.ELEMENT_NODE?{}:t["__ql-computed-style"]||(t["__ql-computed-style"]=window.getComputedStyle(t))}function O(t,e){for(var n="",i=t.ops.length-1;i>=0&&n.length<e.length;--i){var o=t.ops[i];if("string"!==typeof o.insert)break;n=o.insert+n}return n.slice(-1*e.length)===e}function M(t){if(0===t.childNodes.length)return!1;var e=E(t);return["block","list-item"].indexOf(e.display)>-1}function P(t,e,n){return T(n,t,!0)}function D(t,e){var n=l.default.Attributor.Attribute.keys(t),i=l.default.Attributor.Class.keys(t),o=l.default.Attributor.Style.keys(t),r={};return n.concat(i).concat(o).forEach((function(e){var n=l.default.query(e,l.default.Scope.ATTRIBUTE);null!=n&&(r[n.attrName]=n.value(t),r[n.attrName])||(null==(n=S[e])||n.attrName!==e&&n.keyName!==e||(r[n.attrName]=n.value(t)||void 0),null==(n=k[e])||n.attrName!==e&&n.keyName!==e||(n=k[e],r[n.attrName]=n.value(t)||void 0))})),Object.keys(r).length>0&&(e=T(e,r)),e}function A(t,e){var n=l.default.query(t);if(null==n)return e;if(n.prototype instanceof l.default.Embed){var i={},o=n.value(t);null!=o&&(i[n.blotName]=o,e=(new s.default).insert(i,n.formats(t)))}else"function"===typeof n.formats&&(e=T(e,n.blotName,n.formats(t)));return e}function R(t,e){return O(e,"\n")||(M(t)||e.length()>0&&t.nextSibling&&M(t.nextSibling))&&e.insert("\n"),e}function B(t,e){if(M(t)&&null!=t.nextElementSibling&&!O(e,"\n\n")){var n=t.offsetHeight+parseFloat(E(t).marginTop)+parseFloat(E(t).marginBottom);t.nextElementSibling.offsetTop>t.offsetTop+1.5*n&&e.insert("\n")}return e}function N(t,e){var n=t.data;if("O:P"===t.parentNode.tagName)return e.insert(n.trim());if(0===n.trim().length&&t.parentNode.classList.contains("ql-clipboard"))return e;if(!E(t.parentNode).whiteSpace.startsWith("pre")){var i=function(t,e){return(e=e.replace(/[^\u00a0]/g,"")).length<1&&t?" ":e};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,i.bind(i,!0)),(null==t.previousSibling&&M(t.parentNode)||null!=t.previousSibling&&M(t.previousSibling))&&(n=n.replace(/^\s+/,i.bind(i,!1))),(null==t.nextSibling&&M(t.parentNode)||null!=t.nextSibling&&M(t.nextSibling))&&(n=n.replace(/\s+$/,i.bind(i,!1)))}return e.insert(n)}I.DEFAULTS={matchers:[],matchVisual:!0},e.default=I,e.matchAttributor=D,e.matchBlot=A,e.matchNewline=R,e.matchSpacing=B,e.matchText=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(6);function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var u=function(t){function e(){return s(this,e),l(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"optimize",value:function(t){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),e}(((i=a)&&i.__esModule?i:{default:i}).default);u.blotName="bold",u.tagName=["STRONG","B"],e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.addControls=e.default=void 0;var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=c(n(2)),a=c(n(0)),s=c(n(5)),l=c(n(10)),u=c(n(9));function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var h=(0,l.default)("quill:toolbar"),f=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var o,r=d(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if(Array.isArray(r.options.container)){var a=document.createElement("div");m(a,r.options.container),t.container.parentNode.insertBefore(a,t.container),r.container=a}else"string"===typeof r.options.container?r.container=document.querySelector(r.options.container):r.container=r.options.container;return r.container instanceof HTMLElement?(r.container.classList.add("ql-toolbar"),r.controls=[],r.handlers={},Object.keys(r.options.handlers).forEach((function(t){r.addHandler(t,r.options.handlers[t])})),[].forEach.call(r.container.querySelectorAll("button, select"),(function(t){r.attach(t)})),r.quill.on(s.default.events.EDITOR_CHANGE,(function(t,e){t===s.default.events.SELECTION_CHANGE&&r.update(e)})),r.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var t=r.quill.selection.getRange(),e=i(t,1)[0];r.update(e)})),r):(o=h.error("Container required for toolbar",r.options),d(r,o))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"addHandler",value:function(t,e){this.handlers[t]=e}},{key:"attach",value:function(t){var e=this,n=[].find.call(t.classList,(function(t){return 0===t.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===t.tagName&&t.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,t);if(null==a.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,t)}var o="SELECT"===t.tagName?"change":"click";t.addEventListener(o,(function(o){var l=void 0;if("SELECT"===t.tagName){if(t.selectedIndex<0)return;var u=t.options[t.selectedIndex];l=!u.hasAttribute("selected")&&(u.value||!1)}else l=!t.classList.contains("ql-active")&&(t.value||!t.hasAttribute("value")),o.preventDefault();e.quill.focus();var c=e.quill.selection.getRange(),d=i(c,1)[0];if(null!=e.handlers[n])e.handlers[n].call(e,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;e.quill.updateContents((new r.default).retain(d.index).delete(d.length).insert(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,l)),s.default.sources.USER)}else e.quill.format(n,l,s.default.sources.USER);e.update(d)})),this.controls.push([n,t])}}},{key:"update",value:function(t){var e=null==t?{}:this.quill.getFormat(t);this.controls.forEach((function(n){var o=i(n,2),r=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==t)s=null;else if(null==e[r])s=a.querySelector("option[selected]");else if(!Array.isArray(e[r])){var l=e[r];"string"===typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=e[r]===a.getAttribute("value")||null!=e[r]&&e[r].toString()===a.getAttribute("value")||null==e[r]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=e[r])}))}}]),e}(u.default);function p(t,e,n){var i=document.createElement("button");i.setAttribute("type","button"),i.classList.add("ql-"+e),null!=n&&(i.value=n),t.appendChild(i)}function m(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement("span");n.classList.add("ql-formats"),e.forEach((function(t){if("string"===typeof t)p(n,t);else{var e=Object.keys(t)[0],i=t[e];Array.isArray(i)?function(t,e,n){var i=document.createElement("select");i.classList.add("ql-"+e),n.forEach((function(t){var e=document.createElement("option");!1!==t?e.setAttribute("value",t):e.setAttribute("selected","selected"),i.appendChild(e)})),t.appendChild(i)}(n,e,i):p(n,e,i)}})),t.appendChild(n)}))}f.DEFAULTS={},f.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;"rtl"===t&&null==e?this.quill.format("align","right",s.default.sources.USER):t||"right"!==e||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),i=parseInt(n.indent||0);if("+1"===t||"-1"===t){var o="+1"===t?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",i+o,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt("Enter link URL:")),this.quill.format("link",t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);"check"===t?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",t,s.default.sources.USER)}}},e.default=f,e.addControls=m},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(28),s=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.label.innerHTML=n,i.container.classList.add("ql-color-picker"),[].slice.call(i.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(t){t.classList.add("ql-primary")})),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"buildItem",value:function(t){var n=r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"buildItem",this).call(this,t);return n.style.backgroundColor=t.getAttribute("value")||"",n}},{key:"selectItem",value:function(t,n){r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n);var i=this.label.querySelector(".ql-color-label"),o=t&&t.getAttribute("data-value")||"";i&&("line"===i.tagName?i.style.stroke=o:i.style.fill=o)}}]),e}(((i=a)&&i.__esModule?i:{default:i}).default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(28),a=function(t){function e(t,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return i.container.classList.add("ql-icon-picker"),[].forEach.call(i.container.querySelectorAll(".ql-picker-item"),(function(t){t.innerHTML=n[t.getAttribute("data-value")||""]})),i.defaultItem=i.container.querySelector(".ql-selected"),i.selectItem(i.defaultItem),i}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"selectItem",value:function(t,n){(function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0})(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"selectItem",this).call(this,t,n),t=t||this.defaultItem,this.label.innerHTML=t.innerHTML}}]),e}(((i=r)&&i.__esModule?i:{default:i}).default);e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function(){function t(e,n){var i=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.boundsContainer=n||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){i.root.style.marginTop=-1*i.quill.root.scrollTop+"px"})),this.hide()}return i(t,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(t){var e=t.left+t.width/2-this.root.offsetWidth/2,n=t.bottom+this.quill.root.scrollTop;this.root.style.left=e+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var i=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),r=0;if(o.right>i.right&&(r=i.right-o.right,this.root.style.left=e+r+"px"),o.left<i.left&&(r=i.left-o.left,this.root.style.left=e+r+"px"),o.bottom>i.bottom){var a=o.bottom-o.top,s=t.bottom-t.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return r}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{!i&&s.return&&s.return()}finally{if(o)throw r}}return n}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),a=f(n(3)),s=f(n(8)),l=n(43),u=f(l),c=f(n(27)),d=n(15),h=f(n(41));function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],v=function(t){function e(t,n){p(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=_);var i=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-snow"),i}return g(e,t),r(e,[{key:"extendToolbar",value:function(t){t.container.classList.add("ql-snow"),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),h.default),this.tooltip=new y(this.quill,this.options.bounds),t.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(e,n){t.handlers.link.call(t,!n.format.link)}))}}]),e}(u.default);v.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){if(t){var e=this.quill.getSelection();if(null==e||0==e.length)return;var n=this.quill.getText(e);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var y=function(t){function e(t,n){p(this,e);var i=m(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.preview=i.root.querySelector("a.ql-preview"),i}return g(e,t),r(e,[{key:"listen",value:function(){var t=this;o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(e){t.root.classList.contains("ql-editing")?t.save():t.edit("link",t.preview.textContent),e.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(e){if(null!=t.linkRange){var n=t.linkRange;t.restoreFocus(),t.quill.formatText(n,"link",!1,s.default.sources.USER),delete t.linkRange}e.preventDefault(),t.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(e,n,o){if(null!=e){if(0===e.length&&o===s.default.sources.USER){var r=t.quill.scroll.descendant(c.default,e.index),a=i(r,2),l=a[0],u=a[1];if(null!=l){t.linkRange=new d.Range(e.index-u,l.length());var h=c.default.formats(l.domNode);return t.preview.textContent=h,t.preview.setAttribute("href",h),t.show(),void t.position(t.quill.getBounds(t.linkRange))}}else delete t.linkRange;t.hide()}}))}},{key:"show",value:function(){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),e}(l.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=B(n(29)),o=n(36),r=n(38),a=n(64),s=B(n(65)),l=B(n(66)),u=n(67),c=B(u),d=n(37),h=n(26),f=n(39),p=n(40),m=B(n(56)),g=B(n(68)),_=B(n(27)),v=B(n(69)),y=B(n(70)),b=B(n(71)),w=B(n(72)),x=B(n(73)),C=n(13),S=B(C),k=B(n(74)),I=B(n(75)),T=B(n(57)),E=B(n(41)),O=B(n(28)),M=B(n(59)),P=B(n(60)),D=B(n(61)),A=B(n(108)),R=B(n(62));function B(t){return t&&t.__esModule?t:{default:t}}i.default.register({"attributors/attribute/direction":r.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":r.DirectionClass,"attributors/class/font":f.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":r.DirectionStyle,"attributors/style/font":f.FontStyle,"attributors/style/size":p.SizeStyle},!0),i.default.register({"formats/align":o.AlignClass,"formats/direction":r.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":f.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":S.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":C.Code,"formats/italic":g.default,"formats/link":_.default,"formats/script":v.default,"formats/strike":y.default,"formats/underline":b.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":k.default,"modules/syntax":I.default,"modules/toolbar":T.default,"themes/bubble":A.default,"themes/snow":R.default,"ui/icons":E.default,"ui/picker":O.default,"ui/icon-picker":P.default,"ui/color-picker":M.default,"ui/tooltip":D.default},!0),e.default=i.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.IndentClass=void 0;var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(0),s=(i=a)&&i.__esModule?i:{default:i};function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var c=new(function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"add",value:function(t,n){if("+1"===n||"-1"===n){var i=this.value(t)||0;n="+1"===n?i+1:i-1}return 0===n?(this.remove(t),!0):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"add",this).call(this,t,n)}},{key:"canAdd",value:function(t,n){return r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,n)||r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"canAdd",this).call(this,t,parseInt(n))}},{key:"value",value:function(t){return parseInt(r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"value",this).call(this,t))||void 0}}]),e}(s.default.Attributor.Class))("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});e.IndentClass=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(4);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="blockquote",s.tagName="blockquote",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(4);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"formats",value:function(t){return this.tagName.indexOf(t.tagName)+1}}]),e}(((i=r)&&i.__esModule?i:{default:i}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ListItem=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},r=l(n(0)),a=l(n(4)),s=l(n(25));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function d(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return d(e,t),i(e,[{key:"format",value:function(t,n){t!==f.blotName||n?o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n):this.replaceWith(r.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(t,n){return this.parent.isolate(this.offset(this.parent),this.length()),t===this.parent.statics.blotName?(this.parent.replaceWith(t,n),this):(this.parent.unwrap(),o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t,n))}}],[{key:"formats",value:function(t){return t.tagName===this.tagName?void 0:o(e.__proto__||Object.getPrototypeOf(e),"formats",this).call(this,t)}}]),e}(a.default);h.blotName="list-item",h.tagName="LI";var f=function(t){function e(t){u(this,e);var n=c(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t)),i=function(e){if(e.target.parentNode===t){var i=n.statics.formats(t),o=r.default.find(e.target);"checked"===i?o.format("list","unchecked"):"unchecked"===i&&o.format("list","checked")}};return t.addEventListener("touchstart",i),t.addEventListener("mousedown",i),n}return d(e,t),i(e,null,[{key:"create",value:function(t){var n="ordered"===t?"OL":"UL",i=o(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,n);return"checked"!==t&&"unchecked"!==t||i.setAttribute("data-checked","checked"===t),i}},{key:"formats",value:function(t){return"OL"===t.tagName?"ordered":"UL"===t.tagName?t.hasAttribute("data-checked")?"true"===t.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),i(e,[{key:"format",value:function(t,e){this.children.length>0&&this.children.tail.format(t,e)}},{key:"formats",value:function(){return t={},e=this.statics.blotName,n=this.statics.formats(this.domNode),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"insertBefore",value:function(t,n){if(t instanceof h)o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"insertBefore",this).call(this,t,n);else{var i=null==n?this.length():n.offset(this),r=this.split(i);r.parent.insertBefore(t,r)}}},{key:"optimize",value:function(t){o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"optimize",this).call(this,t);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(t){if(t.statics.blotName!==this.statics.blotName){var n=r.default.create(this.statics.defaultChild);t.moveChildren(n),this.appendChild(n)}o(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replace",this).call(this,t)}}]),e}(s.default);f.blotName="list",f.scope=r.default.Scope.BLOCK_BLOT,f.tagName=["OL","UL"],f.defaultChild="list-item",f.allowedChildren=[h],e.ListItem=h,e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(56);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="italic",s.tagName=["EM","I"],e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=n(6);function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var l=function(t){function e(){return a(this,e),s(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,null,[{key:"create",value:function(t){return"super"===t?document.createElement("sup"):"sub"===t?document.createElement("sub"):function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t)}},{key:"formats",value:function(t){return"SUB"===t.tagName?"sub":"SUP"===t.tagName?"super":void 0}}]),e}(((i=r)&&i.__esModule?i:{default:i}).default);l.blotName="script",l.tagName=["SUB","SUP"],e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(6);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="strike",s.tagName="S",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(6);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var s=function(t){function e(){return r(this,e),a(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(((i=o)&&i.__esModule?i:{default:i}).default);s.blotName="underline",s.tagName="U",e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(0),s=(i=a)&&i.__esModule?i:{default:i},l=n(27);function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var d=["alt","height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"match",value:function(t){return/\.(jpe?g|gif|png)$/.test(t)||/^data:image\/.+;base64/.test(t)}},{key:"sanitize",value:function(t){return(0,l.sanitize)(t,["http","https","data"])?t:"//:0"}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(s.default.Embed);h.blotName="image",h.tagName="IMG",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},a=n(4),s=n(27),l=(i=s)&&i.__esModule?i:{default:i};function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var d=["height","width"],h=function(t){function e(){return u(this,e),c(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),o(e,[{key:"format",value:function(t,n){d.indexOf(t)>-1?n?this.domNode.setAttribute(t,n):this.domNode.removeAttribute(t):r(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"format",this).call(this,t,n)}}],[{key:"create",value:function(t){var n=r(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(t)),n}},{key:"formats",value:function(t){return d.reduce((function(e,n){return t.hasAttribute(n)&&(e[n]=t.getAttribute(n)),e}),{})}},{key:"sanitize",value:function(t){return l.default.sanitize(t)}},{key:"value",value:function(t){return t.getAttribute("src")}}]),e}(a.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.FormulaBlot=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=s(n(35)),r=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,null,[{key:"create",value:function(t){var n=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.__proto__||Object.getPrototypeOf(e),"create",this).call(this,t);return"string"===typeof t&&(window.katex.render(t,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",t)),n}},{key:"value",value:function(t){return t.getAttribute("data-value")}}]),e}(o.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var h=function(t){function e(){l(this,e);var t=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return t}return c(e,t),i(e,null,[{key:"register",value:function(){r.default.register(d,!0)}}]),e}(a.default);e.FormulaBlot=d,e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.CodeToken=e.CodeBlock=void 0;var i=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),o=s(n(0)),r=s(n(5)),a=s(n(9));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var d=function(t){function e(){return l(this,e),u(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return c(e,t),i(e,[{key:"replaceWith",value:function(t){this.domNode.textContent=this.domNode.textContent,this.attach(),function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0}(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"replaceWith",this).call(this,t)}},{key:"highlight",value:function(t){var e=this.domNode.textContent;this.cachedText!==e&&((e.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=t(e),this.domNode.normalize(),this.attach()),this.cachedText=e)}}]),e}(s(n(13)).default);d.className="ql-syntax";var h=new o.default.Attributor.Class("token","hljs",{scope:o.default.Scope.INLINE}),f=function(t){function e(t,n){l(this,e);var i=u(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));if("function"!==typeof i.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return i.quill.on(r.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){i.highlight(),o=null}),i.options.interval)})),i.highlight(),i}return c(e,t),i(e,null,[{key:"register",value:function(){r.default.register(h,!0),r.default.register(d,!0)}}]),i(e,[{key:"highlight",value:function(){var t=this;if(!this.quill.selection.composing){this.quill.update(r.default.sources.USER);var e=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(e){e.highlight(t.options.highlight)})),this.quill.update(r.default.sources.SILENT),null!=e&&this.quill.setSelection(e,r.default.sources.SILENT)}}}]),e}(a.default);f.DEFAULTS={highlight:null==window.hljs?null:function(t){return window.hljs.highlightAuto(t).value},interval:1e3},e.CodeBlock=d,e.CodeToken=h,e.default=f},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(t,e){t.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(t,e){t.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(t,e){t.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.BubbleTooltip=void 0;var i=function t(e,n,i){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,n);if(void 0===o){var r=Object.getPrototypeOf(e);return null===r?void 0:t(r,n,i)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(i):void 0},o=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),r=d(n(3)),a=d(n(8)),s=n(43),l=d(s),u=n(15),c=d(n(41));function d(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function p(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var m=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(t){function e(t,n){h(this,e),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=m);var i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.container.classList.add("ql-bubble"),i}return p(e,t),o(e,[{key:"extendToolbar",value:function(t){this.tooltip=new _(this.quill,this.options.bounds),this.tooltip.root.appendChild(t.container),this.buildButtons([].slice.call(t.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(t.container.querySelectorAll("select")),c.default)}}]),e}(l.default);g.DEFAULTS=(0,r.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(t){t?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var _=function(t){function e(t,n){h(this,e);var i=f(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,n));return i.quill.on(a.default.events.EDITOR_CHANGE,(function(t,e,n,o){if(t===a.default.events.SELECTION_CHANGE)if(null!=e&&e.length>0&&o===a.default.sources.USER){i.show(),i.root.style.left="0px",i.root.style.width="",i.root.style.width=i.root.offsetWidth+"px";var r=i.quill.getLines(e.index,e.length);if(1===r.length)i.position(i.quill.getBounds(e));else{var s=r[r.length-1],l=i.quill.getIndex(s),c=Math.min(s.length()-1,e.index+e.length-l),d=i.quill.getBounds(new u.Range(l,c));i.position(d)}}else document.activeElement!==i.textbox&&i.quill.hasFocus()&&i.hide()})),i}return p(e,t),o(e,[{key:"listen",value:function(){var t=this;i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){t.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!t.root.classList.contains("ql-hidden")){var e=t.quill.getSelection();null!=e&&t.position(t.quill.getBounds(e))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(t){var n=i(e.prototype.__proto__||Object.getPrototypeOf(e.prototype),"position",this).call(this,t),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===n)return n;o.style.marginLeft=-1*n-o.offsetWidth/2+"px"}}]),e}(s.BaseTooltip);_.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),e.BubbleTooltip=_,e.default=g},function(t,e,n){t.exports=n(63)}]).default},t.exports=n()}).call(this,n(52).Buffer)},function(t,e,n){"use strict";var i=_(n(3)),o=_(n(6)),r=_(n(624)),a=_(n(23)),s=n(0),l=n(5),u=n(4),c=n(2),d=_(n(218)),h=n(29),f=n(92),p=n(100),m=_(n(258)),g=n(7);function _(t){return t&&t.__esModule?t:{default:t}}function v(t){return function(t){if(Array.isArray(t))return y(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var b=function(t){return-1!==t},w=r.default.inherit({_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{selectedItem:!0})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{selectionMode:"none",selectionRequired:!1,selectionByClick:!0,selectedItems:[],selectedItemKeys:[],maxFilterLengthInRequest:1500,keyExpr:null,selectedIndex:-1,selectedItem:null,onSelectionChanged:null,onItemReordered:null,onItemDeleting:null,onItemDeleted:null})},ctor:function(t,e){this._userOptions=e||{},this.callBase(t,e)},_init:function(){this._initEditStrategy(),this.callBase(),this._initKeyGetter(),this._initSelectionModule(),"multi"===this.option("selectionMode")&&this._showDeprecatedSelectionMode()},_initKeyGetter:function(){this._keyGetter=(0,h.compileGetter)(this.option("keyExpr"))},_getKeysByItems:function(t){return this._editStrategy.getKeysByItems(t)},_getItemsByKeys:function(t,e){return this._editStrategy.getItemsByKeys(t,e)},_getKeyByIndex:function(t){return this._editStrategy.getKeyByIndex(t)},_getIndexByKey:function(t){return this._editStrategy.getIndexByKey(t)},_getIndexByItemData:function(t){return this._editStrategy.getIndexByItemData(t)},_isKeySpecified:function(){return!(!this._dataSource||!this._dataSource.key())},_getCombinedFilter:function(){return this._dataSource&&this._dataSource.filter()},key:function(){return this.option("keyExpr")?this.option("keyExpr"):this._dataSource&&this._dataSource.key()},keyOf:function(t){var e=t,n=this._dataSource&&this._dataSource.store();return this.option("keyExpr")?e=this._keyGetter(t):n&&(e=n.keyOf(t)),e},_nullValueSelectionSupported:function(){return!1},_initSelectionModule:function(){var t=this,e=t._editStrategy.itemsGetter;this._selection=new m.default({allowNullValue:this._nullValueSelectionSupported(),mode:this.option("selectionMode"),maxFilterLengthInRequest:this.option("maxFilterLengthInRequest"),equalByReference:!this._isKeySpecified(),onSelectionChanged:function(e){(e.addedItemKeys.length||e.removedItemKeys.length)&&(t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e))},filter:t._getCombinedFilter.bind(t),totalCount:function(){var e=t.option("items"),n=t._dataSource;return n&&n.totalCount()>=0?n.totalCount():e.length},key:t.key.bind(t),keyOf:t.keyOf.bind(t),load:function(e){if(t._dataSource){var n=t._dataSource.loadOptions();e.customQueryParams=n.customQueryParams,e.userData=t._dataSource._userData}var i=t._dataSource&&t._dataSource.store();return i?i.load(e).done((function(e){if(!t._disposed){var n=(0,p.normalizeLoadResult)(e).data;t._dataSource._applyMapFunction(n)}})):(new g.Deferred).resolve(this.plainItems())},dataFields:function(){return t._dataSource&&t._dataSource.select()},plainItems:e.bind(t._editStrategy)})},_initEditStrategy:function(){var t=d.default;this._editStrategy=new t(this)},_getSelectedItemIndices:function(t){var e=this,n=[];return t=t||this._selection.getSelectedItemKeys(),e._editStrategy.beginCache(),(0,l.each)(t,(function(t,i){var o=e._getIndexByKey(i);b(o)&&n.push(o)})),e._editStrategy.endCache(),n},_initMarkup:function(){var t=this;this._rendering=!0,this._dataSource&&this._dataSource.isLoading()||this._syncSelectionOptions().done((function(){return t._normalizeSelectedItems()})),this.callBase()},_render:function(){this.callBase(),this._rendering=!1},_fireContentReadyAction:function(){this._rendering=!1,this._rendered=!0,this.callBase.apply(this,arguments)},_syncSelectionOptions:function(t){var e,n,i,o;switch(t=t||this._chooseSelectOption()){case"selectedIndex":e=this._editStrategy.getItemDataByIndex(this.option("selectedIndex")),(0,c.isDefined)(e)?(this._setOptionWithoutOptionChange("selectedItems",[e]),this._setOptionWithoutOptionChange("selectedItem",e),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedItem",null));break;case"selectedItems":if(o=this.option("selectedItems")||[],n=this._editStrategy.getIndexByItemData(o[0]),this.option("selectionRequired")&&!b(n))return this._syncSelectionOptions("selectedIndex");this._setOptionWithoutOptionChange("selectedItem",o[0]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems(o));break;case"selectedItem":if(e=this.option("selectedItem"),n=this._editStrategy.getIndexByItemData(e),this.option("selectionRequired")&&!b(n))return this._syncSelectionOptions("selectedIndex");(0,c.isDefined)(e)?(this._setOptionWithoutOptionChange("selectedItems",[e]),this._setOptionWithoutOptionChange("selectedIndex",n),this._setOptionWithoutOptionChange("selectedItemKeys",this._editStrategy.getKeysByItems([e]))):(this._setOptionWithoutOptionChange("selectedItems",[]),this._setOptionWithoutOptionChange("selectedItemKeys",[]),this._setOptionWithoutOptionChange("selectedIndex",-1));break;case"selectedItemKeys":if(i=this.option("selectedItemKeys"),this.option("selectionRequired")){var r=this._getIndexByKey(i[0]);if(!b(r))return this._syncSelectionOptions("selectedIndex")}return this._selection.setSelection(i)}return(new g.Deferred).resolve().promise()},_chooseSelectOption:function(){var t="selectedIndex",e=function(t){var e=this.option(t);return(0,c.isDefined)(e)&&e.length||t in this._userOptions}.bind(this);return e("selectedItems")?t="selectedItems":e("selectedItem")?t="selectedItem":e("selectedItemKeys")&&(t="selectedItemKeys"),t},_compareKeys:function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<e.length;n++)if(t[n]!==e[n])return!1;return!0},_normalizeSelectedItems:function(){if("none"===this.option("selectionMode"))this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems");else if("single"===this.option("selectionMode")){var t=this.option("selectedItems");if(t.length>1||!t.length&&this.option("selectionRequired")&&this.option("items")&&this.option("items").length){var e=this._selection.getSelectedItems(),n=void 0===t[0]?e[0]:t[0];return void 0===n&&(n=this._editStrategy.itemsGetter()[0]),this.option("grouped")&&n&&n.items&&(n.items=[n.items[0]]),this._selection.setSelection(this._getKeysByItems([n])),this._setOptionWithoutOptionChange("selectedItems",[n]),this._syncSelectionOptions("selectedItems")}this._selection.setSelection(this._getKeysByItems(t))}else{var i=this._getKeysByItems(this.option("selectedItems")),o=this._selection.getSelectedItemKeys();this._compareKeys(o,i)||this._selection.setSelection(i)}return(new g.Deferred).resolve().promise()},_itemClickHandler:function(t){this._createAction(function(t){this._itemSelectHandler(t.event)}.bind(this),{validatingTargetName:"itemElement"})({itemElement:(0,i.default)(t.currentTarget),event:t}),this.callBase.apply(this,arguments)},_itemSelectHandler:function(t){if(this.option("selectionByClick")){var e=t.currentTarget;this.isItemSelected(e)?this.unselectItem(t.currentTarget):this.selectItem(t.currentTarget)}},_selectedItemElement:function(t){return this._itemElements().eq(t)},_postprocessRenderItem:function(t){if("none"!==this.option("selectionMode")){var e=(0,i.default)(t.itemElement),n=this._editStrategy.getNormalizedIndex(e),o=this._isItemSelected(n);this._processSelectableItem(e,o)}},_processSelectableItem:function(t,e){t.toggleClass(this._selectedItemClass(),e),this._setAriaSelected(t,String(e))},_updateSelectedItems:function(t){var e=this,n=t.addedItemKeys,i=t.removedItemKeys;if(e._rendered&&(n.length||i.length)){var o=e._selectionChangePromise;if(!e._rendering){var r,a=[],s=[];e._editStrategy.beginCache();for(var l=0;l<n.length;l++)r=e._getIndexByKey(n[l]),a.push(r),e._addSelection(r);for(var u=0;u<i.length;u++)r=e._getIndexByKey(i[u]),s.push(r),e._removeSelection(r);e._editStrategy.endCache(),e._updateSelection(a,s)}(0,g.when)(o).done((function(){e._fireSelectionChangeEvent(t.addedItems,t.removedItems)}))}},_fireSelectionChangeEvent:function(t,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:e})},_updateSelection:u.noop,_setAriaSelected:function(t,e){this.setAria("selected",e,t)},_removeSelection:function(t){var e=this._editStrategy.getItemElement(t);b(t)&&(this._processSelectableItem(e,!1),o.default.triggerHandler(e,"stateChanged",!1))},_showDeprecatedSelectionMode:function(){a.default.log("W0001",this.NAME,"selectionMode: 'multi'","16.1","Use selectionMode: 'multiple' instead"),this.option("selectionMode","multiple")},_addSelection:function(t){var e=this._editStrategy.getItemElement(t);b(t)&&(this._processSelectableItem(e,!0),o.default.triggerHandler(e,"stateChanged",!0))},_isItemSelected:function(t){var e=this._getKeyByIndex(t);return this._selection.isItemSelected(e)},_optionChanged:function(t){var e=this;switch(t.name){case"selectionMode":"multi"===t.value?this._showDeprecatedSelectionMode():this._invalidate();break;case"dataSource":(!t.value||Array.isArray(t.value)&&!t.value.length)&&this.option("selectedItemKeys",[]),this.callBase(t);break;case"selectedIndex":case"selectedItem":case"selectedItems":case"selectedItemKeys":this._syncSelectionOptions(t.name).done((function(){return e._normalizeSelectedItems()}));break;case"keyExpr":this._initKeyGetter();break;case"selectionRequired":this._normalizeSelectedItems();break;case"selectionByClick":case"onSelectionChanged":case"onItemDeleting":case"onItemDeleted":case"onItemReordered":case"maxFilterLengthInRequest":break;default:this.callBase(t)}},_clearSelectedItems:function(){this._setOptionWithoutOptionChange("selectedItems",[]),this._syncSelectionOptions("selectedItems")},_waitDeletingPrepare:function(t){if(t.data("dxItemDeleting"))return(new g.Deferred).resolve().promise();t.data("dxItemDeleting",!0);var e=new g.Deferred,n={cancel:!1},i=this._itemEventHandler(t,"onItemDeleting",n,{excludeValidators:["disabled","readOnly"]});return(0,g.when)(i).always(function(o){var r=!i,a=!r&&"resolved"===i.state(),s=!!arguments.length,l=r||a&&!s||a&&o;(0,g.when)((0,g.fromPromise)(n.cancel)).always((function(){t.data("dxItemDeleting",!1)})).done((function(t){l&&!t?e.resolve():e.reject()})).fail(e.reject)}.bind(this)),e.promise()},_deleteItemFromDS:function(t){if(!this._dataSource)return(new g.Deferred).resolve().promise();var e=new g.Deferred,n=this.option("disabled"),i=this._dataSource.store();if(this.option("disabled",!0),!i.remove)throw a.default.Error("E1011");return i.remove(i.keyOf(this._getItemData(t))).done((function(t){void 0!==t?e.resolve():e.reject()})).fail((function(){e.reject()})),e.always(function(){this.option("disabled",n)}.bind(this)),e},_tryRefreshLastPage:function(){var t=new g.Deferred;return this._isLastPage()||this.option("grouped")?t.resolve():this._refreshLastPage().done((function(){t.resolve()})),t.promise()},_refreshLastPage:function(){return this._expectLastItemLoading(),this._dataSource.load()},_updateSelectionAfterDelete:function(t){var e=this._getKeyByIndex(t);this._selection.deselect([e])},_updateIndicesAfterIndex:function(t){for(var e=this._itemElements(),n=t+1;n<e.length;n++)(0,i.default)(e[n]).data(this._itemIndexKey(),n-1)},_simulateOptionChange:function(t){var e=this.option(t);e instanceof f.DataSource||this._optionChangedAction({name:t,fullName:t,value:e})},isItemSelected:function(t){return this._isItemSelected(this._editStrategy.getNormalizedIndex(t))},selectItem:function(t){if("none"!==this.option("selectionMode")){var e=this._editStrategy.getNormalizedIndex(t);if(b(e)){var n=this._getKeyByIndex(e);if(!this._selection.isItemSelected(n))if("single"===this.option("selectionMode"))this._selection.setSelection([n]);else{var i=this.option("selectedItemKeys")||[];this._selection.setSelection([].concat(v(i),[n]))}}}},unselectItem:function(t){var e=this._editStrategy.getNormalizedIndex(t);if(b(e)){var n=this._selection.getSelectedItemKeys();if(!(this.option("selectionRequired")&&n.length<=1)){var i=this._getKeyByIndex(e);this._selection.isItemSelected(i)&&this._selection.deselect([i])}}},_deleteItemElementByIndex:function(t){this._updateSelectionAfterDelete(t),this._updateIndicesAfterIndex(t),this._editStrategy.deleteItemAtIndex(t)},_afterItemElementDeleted:function(t,e){var n=this._dataSource?"dataSource":"items";this._simulateOptionChange(n),this._itemEventHandler(t,"onItemDeleted",e,{beforeExecute:function(){t.remove()},excludeValidators:["disabled","readOnly"]}),this._renderEmptyMessage()},deleteItem:function(t){var e=this,n=new g.Deferred,i=this._editStrategy.getItemElement(t),o=this._editStrategy.getNormalizedIndex(t),r=this._itemResponseWaitClass();return b(o)?this._waitDeletingPrepare(i).done((function(){i.addClass(r);var t=e._extendActionArgs(i);e._deleteItemFromDS(i).done((function(){e._deleteItemElementByIndex(o),e._afterItemElementDeleted(i,t),e._tryRefreshLastPage().done((function(){n.resolveWith(e)}))})).fail((function(){i.removeClass(r),n.rejectWith(e)}))})).fail((function(){n.rejectWith(e)})):n.rejectWith(e),n.promise()},reorderItem:function(t,e){var n=new g.Deferred,i=this,o=this._editStrategy,r=o.getItemElement(t),a=o.getItemElement(e),s=o.getNormalizedIndex(t),l=o.getNormalizedIndex(e),u=this._dataSource?"dataSource":"items";return b(s)&&b(l)&&s!==l?n.resolveWith(this):n.rejectWith(this),n.promise().done((function(){a[o.itemPlacementFunc(s,l)](r),o.moveItemAtIndexToIndex(s,l),this._updateIndicesAfterIndex(s),i.option("selectedItems",i._getItemsByKeys(i._selection.getSelectedItemKeys(),i._selection.getSelectedItems())),"items"===u&&i._simulateOptionChange(u),i._itemEventHandler(r,"onItemReordered",{fromIndex:o.getIndex(s),toIndex:o.getIndex(l)},{excludeValidators:["disabled","readOnly"]})}))}});t.exports=w},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i};var a=function(t){return!(!t||"string"!==typeof t)&&(/^\s*<svg[^>]*>(.|\r\n|\r|\n)*?<\/svg>\s*$/i.test(t)?"svg":/data:.*base64|\.|[^<\s]\//.test(t)?"image":/^[\w-_]+$/.test(t)?"dxIcon":!!/^\s?([\w-_]\s?)+$/.test(t)&&"fontIcon")};e.getImageSourceType=a,e.getImageContainer=function(t){switch(a(t)){case"image":return(0,r.default)("<img>").attr("src",t).addClass("dx-icon");case"fontIcon":return(0,r.default)("<i>").addClass("".concat("dx-icon"," ").concat(t));case"dxIcon":return(0,r.default)("<i>").addClass("".concat("dx-icon"," ").concat("dx-icon","-").concat(t));case"svg":return(0,r.default)("<i>").addClass("".concat("dx-icon"," ").concat("dx-svg-icon")).append(t);default:return null}}},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(344),o=Object.prototype.toString;function r(t){return"[object Array]"===o.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&"object"===typeof t}function l(t){return"[object Function]"===o.call(t)}function u(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),r(t))for(var n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:r,isArrayBuffer:function(t){return"[object ArrayBuffer]"===o.call(t)},isBuffer:function(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!==typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"===typeof t},isNumber:function(t){return"number"===typeof t},isObject:s,isUndefined:a,isDate:function(t){return"[object Date]"===o.call(t)},isFile:function(t){return"[object File]"===o.call(t)},isBlob:function(t){return"[object Blob]"===o.call(t)},isFunction:l,isStream:function(t){return s(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)},forEach:u,merge:function t(){var e={};function n(n,i){"object"===typeof e[i]&&"object"===typeof n?e[i]=t(e[i],n):e[i]=n}for(var i=0,o=arguments.length;i<o;i++)u(arguments[i],n);return e},deepMerge:function t(){var e={};function n(n,i){"object"===typeof e[i]&&"object"===typeof n?e[i]=t(e[i],n):e[i]="object"===typeof n?t({},n):n}for(var i=0,o=arguments.length;i<o;i++)u(arguments[i],n);return e},extend:function(t,e,n){return u(e,(function(e,o){t[o]=n&&"function"===typeof e?i(e,n):e})),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BindableTemplate=void 0;var i=l(n(3)),o=n(156),r=n(6),a=l(n(185)),s=n(2);function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t,e,n,i,o){var r,a=function(t,e,n){return e((function(){return t}),n)}(t,e,(function(t){r&&r(),(0,s.isPrimitive)(t)?o(t):r=function(t,e,n,i,o){var r={},a=n.slice(),s=n.map((function(n){var s=i[n];return e(s?function(){return s(t)}:function(){return t[n]},(function(t){if(r[n]=t,a.length){var e=a.indexOf(n);e>=0&&a.splice(e,1)}a.length||o(r)}))}));return function(){s.forEach((function(t){return t()}))}}(t,e,n,i,o)}));return function(){r&&r(),a&&a()}};e.BindableTemplate=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(l,t);var e,n,o,s=h(l);function l(t,e,n,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(o=s.call(this))._render=t,o._fields=e,o._fieldsMap=i||{},o._watchMethod=n,o}return e=l,(n=[{key:"_renderCore",value:function(t){var e=this,n=(0,i.default)(t.container),o=m(t.model,this._watchMethod,this._fields,this._fieldsMap,(function(i){n.empty(),e._render(n,i,t.model)}));return(0,r.on)(n,a.default,o),n.contents()}}])&&c(e.prototype,n),o&&c(e,o),l}(o.TemplateBase)},function(t,e,n){"use strict";var i=p(n(89)),o=n(16),r=n(4),a=n(5),s=n(2),l=p(n(369)),u=p(n(51)),c=p(n(38)),d=n(370),h=p(n(261)),f=p(n(658));function p(t){return t&&t.__esModule?t:{default:t}}function m(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return g(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var _="undefined"!==typeof Intl,v=["currency","fixedpoint","exponential","percent","decimal"],y={largenumber:"auto",thousands:1,millions:2,billions:3,trillions:4},b=(0,i.default)({engine:function(){return"base"},numericFormats:v,defaultLargeNumberFormatPostfixes:{1:"K",2:"M",3:"B",4:"T"},_parseNumberFormatString:function(t){var e={};if(t&&"string"===typeof t){var n=t.toLowerCase().split(" ");return(0,a.each)(n,(function(t,n){(0,o.inArray)(n,v)>-1?e.formatType=n:n in y&&(e.power=y[n])})),e.power&&!e.formatType&&(e.formatType="fixedpoint"),e.formatType?e:void 0}},_calculateNumberPower:function(t,e,n,i){var o=Math.abs(t),r=0;if(o>1)for(;o&&o>=e&&(void 0===i||r<i);)r++,o/=e;else if(o>0&&o<1)for(;o<1&&(void 0===n||r>n);)r--,o*=e;return r},_getNumberByPower:function(t,e,n){for(var i=t;e>0;)i/=n,e--;for(;e<0;)i*=n,e++;return i},_formatNumber:function(t,e,n){"auto"===e.power&&(e.power=this._calculateNumberPower(t,1e3,0,4)),e.power&&(t=this._getNumberByPower(t,e.power,1e3));var i=this.defaultLargeNumberFormatPostfixes[e.power]||"",o=this._formatNumberCore(t,e.formatType,n);return o=o.replace(/(\d|.$)(\D*)$/,"$1"+i+"$2")},_formatNumberExponential:function(t,e){var n=this._calculateNumberPower(t,10),i=this._getNumberByPower(t,n,10);void 0===e.precision&&(e.precision=1),i.toFixed(e.precision||0)>=10&&(n++,i/=10);var o=(n>=0?"+":"")+n.toString();return this._formatNumberCore(i,"fixedpoint",e)+"E"+o},_addZeroes:function(t,e){for(var n=Math.pow(10,e),i=t<0?"-":"",o=(t=(Math.abs(t)*n>>>0)/n).toString();o.length<e;)o="0"+o;return i+o},_addGroupSeparators:function(t){var e=t.toString().split(".");return e[0].replace(/\B(?=(\d{3})+(?!\d))/g,(0,u.default)().thousandsSeparator)+(e[1]?(0,u.default)().decimalSeparator+e[1]:"")},_formatNumberCore:function(t,e,n){return"exponential"===e?this._formatNumberExponential(t,n):("decimal"!==e&&null!==n.precision&&(n.precision=n.precision||0),"percent"===e&&(t*=100),void 0!==n.precision&&(t="decimal"===e?this._addZeroes(t,n.precision):null===n.precision?t.toPrecision():(0,d.toFixed)(t,n.precision)),t="decimal"!==e?this._addGroupSeparators(t):t.toString().replace(".",(0,u.default)().decimalSeparator),"percent"===e&&(t+="%"),t)},_normalizeFormat:function(t){return t?("function"===typeof t||(0,s.isPlainObject)(t)||(t={type:t}),t):{}},_getSeparators:function(){return{decimalSeparator:this.getDecimalSeparator(),thousandsSeparator:this.getThousandsSeparator()}},getThousandsSeparator:function(){return this.format(1e4,"fixedPoint")[2]},getDecimalSeparator:function(){return this.format(1.2,{type:"fixedPoint",precision:1})[1]},convertDigits:function(t,e){var n=this.format(90,"decimal");if("string"!==typeof t||"0"===n[1])return t;var i=e?n[1]:"0",o=e?"0":n[1],r=e?n[0]:"9",a=new RegExp("["+i+"-"+r+"]","g");return t.replace(a,(function(t){return String.fromCharCode(t.charCodeAt(0)+(o.charCodeAt(0)-i.charCodeAt(0)))}))},getSign:function(t,e){if("-"===t.replace(/[^0-9-]/g,"").charAt(0))return-1;if(!e)return 1;var n=this._getSeparators(),i=new RegExp("[0-9"+(0,r.escapeRegExp)(n.decimalSeparator+n.thousandsSeparator)+"]+","g"),o=this.format(-1,e).replace(i,"1");return t.replace(i,"1")===o?-1:1},format:function(t,e){if("number"!==typeof t)return t;if("number"===typeof e)return t;if("function"===typeof(e=e&&e.formatter||e))return e(t);(e=this._normalizeFormat(e)).type||(e.type="decimal");var n=this._parseNumberFormatString(e.type);if(!n){var i=this._getSeparators();return i.unlimitedIntegerDigits=e.unlimitedIntegerDigits,this.convertDigits(l.default.getFormatter(e.type,i)(t))}return this._formatNumber(t,n,e)},parse:function(t,e){if(t){if(e&&e.parser)return e.parser(t);t=this.convertDigits(t,!0),e&&"string"!==typeof e&&c.default.log("W0011");var n=this.getDecimalSeparator(),i=new RegExp("[^0-9"+(0,r.escapeRegExp)(n)+"]","g"),o=t.replace(i,"").replace(n,".").replace(/\.$/g,"");return"."===o||""===o?null:this._calcSignificantDigits(o)>15?NaN:+o*this.getSign(t,e)}},_calcSignificantDigits:function(t){var e=m(t.split("."),2),n=e[0],i=e[1],o=function(t){for(var e=-1,n=0;n<t.length;n++)if("0"!==t[n]){e=n;break}return e>-1?t.length-e:0},r=0;return n&&(r+=o(n.split(""))),i&&(r+=o(i.split("").reverse())),r}});b.inject(h.default),_&&b.inject(f.default),t.exports=b},function(t,e,n){"use strict";function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";e.a=function(t,e){if(!t)throw new Error("Invariant failed")}},function(t,e,n){"use strict";var i=n(15),o=n(89),r=n(10),a=n(113),s=[],l=a((function(){var t=i.listen(i.getDocument(),"DOMContentLoaded",(function(){u.fire(),t()}))})),u={add:function(t){var e=r.hasWindow();e&&("complete"===i.getReadyState()||"loading"!==i.getReadyState()&&!i.getDocumentElement().doScroll)?t():(s.push(t),e&&l())},fire:function(){s.forEach((function(t){return t()})),s=[]}};t.exports=o(u)},function(t,e,n){"use strict";var i=n(211),o=n(38),r={},a=i(o.ERROR_MESSAGES,{E4000:"[DevExpress.data]: {0}",E4001:"Unknown aggregating function is detected: '{0}'",E4002:"Unsupported OData protocol version is used",E4003:"Unknown filter operation is used: {0}",E4004:"The thenby() method is called before the sortby() method",E4005:"Store requires a key expression for this operation",E4006:"ArrayStore 'data' option must be an array",E4007:"Compound keys cannot be auto-generated",E4008:"Attempt to insert an item with the a duplicated key",E4009:"Data item cannot be found",E4010:"CustomStore does not support creating queries",E4011:"Custom Store method is not implemented or is not a function: {0}",E4012:"Custom Store method returns an invalid value: {0}",E4013:"Local Store requires the 'name' configuration option is specified",E4014:"Unknown data type is specified for ODataStore: {0}",E4015:"Unknown entity name or alias is used: {0}",E4016:"The compileSetter(expr) method is called with 'self' passed as a parameter",E4017:"Keys cannot be modified",E4018:"The server has returned a non-numeric value in a response to an item count request",E4019:"Mixing of group operators inside a single group of filter expression is not allowed",E4020:"Unknown store type is detected: {0}",E4021:"The server response does not provide the totalCount value",E4022:"The server response does not provide the groupCount value",E4023:"Could not parse the following XML: {0}",E4024:"String function {0} cannot be used with the data field {1} of type {2}.",W4000:"Data returned from the server has an incorrect structure",W4001:'The {0} field is listed in both "keyType" and "fieldTypes". The value of "fieldTypes" is used.',W4002:"Data loading has failed for some cells due to the following error: {0}"});r={errors:a,errorHandler:null,_errorHandler:function(t){r.errorHandler&&r.errorHandler(t)}},t.exports=r},function(t,e,n){"use strict";var i=n(3),o=function(t,e){for(var n=function(t){var e=t.children(".dx-inkripple");return 0===e.length&&(e=i("<div>").addClass("dx-inkripple").appendTo(t)),e}(t),o=n.children(".dx-inkripple-wave").toArray(),r=o.length;r<e;r++){var a=i("<div>").appendTo(n).addClass("dx-inkripple-wave");o.push(a[0])}return i(o)};function r(t,e){var n=o(e.element,t.wavesNumber).eq(e.wave||0);t.hidingTimeout&&clearTimeout(t.hidingTimeout),s(n),n.css(function(t,e){var n,i,o=e.element,r=o.outerWidth(),a=o.outerHeight(),s=parseInt(Math.sqrt(r*r+a*a)),l=Math.min(4e3,parseInt(s*t.waveSizeCoefficient));if(t.isCentered)n=(r-l)/2,i=(a-l)/2;else{var u=e.event,c=e.element.offset();n=u.pageX-c.left-l/2,i=u.pageY-c.top-l/2}return{left:n,top:i,height:l,width:l}}(t,e)),t.showingTimeout=setTimeout(a.bind(this,t,n),0)}function a(t,e){var n=t.durations.showingScale+"ms";e.addClass("dx-inkripple-showing").css("transitionDuration",n)}function s(t){t.removeClass("dx-inkripple-hiding").css("transitionDuration","")}function l(t,e){t.showingTimeout&&clearTimeout(t.showingTimeout);var n=o(e.element,e.wavesNumber).eq(e.wave||0),i=t.durations,r=i.hidingScale+"ms, "+i.hidingOpacity+"ms";n.addClass("dx-inkripple-hiding").removeClass("dx-inkripple-showing").css("transitionDuration",r);var a=Math.max(i.hidingScale,i.hidingOpacity);t.hidingTimeout=setTimeout(s.bind(this,n),a)}t.exports={render:function(t){void 0===(t=t||{}).useHoldAnimation&&(t.useHoldAnimation=!0);var e,n={waveSizeCoefficient:t.waveSizeCoefficient||2,isCentered:t.isCentered||!1,wavesNumber:t.wavesNumber||1,durations:(e=t.useHoldAnimation,{showingScale:e?1e3:300,hidingScale:300,hidingOpacity:300})};return{showWave:r.bind(this,n),hideWave:l.bind(this,n)}}}},function(t,e,n){"use strict";t.exports=n(371),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(10).getNavigator(),r=n(58),a=n(36),s=n(0).extend,l=n(18),u=n(8),c=n(20),d=c.inherit({_getDefaultOptions:function(){return s(this.callBase(),{indicatorSrc:"",activeStateEnabled:!1,hoverStateEnabled:!1,_animatingSegmentCount:1,_animatingSegmentInner:!1})},_defaultOptionsRules:function(){var t=a.current();return this.callBase().concat([{device:function(){return"android"===l.real().platform&&!/chrome/i.test(o.userAgent)},options:{viaImage:!0}},{device:function(){return a.isIos7(t)},options:{_animatingSegmentCount:11}},{device:function(){return a.isMaterial(t)},options:{_animatingSegmentCount:2,_animatingSegmentInner:!0}},{device:function(){return a.isGeneric(t)},options:{_animatingSegmentCount:7}}])},_init:function(){this.callBase(),this.$element().addClass("dx-loadindicator")},_initMarkup:function(){this.callBase(),this._renderWrapper(),this._renderIndicatorContent(),this._renderMarkup()},_renderWrapper:function(){this._$wrapper=i("<div>").addClass("dx-loadindicator-wrapper"),this.$element().append(this._$wrapper)},_renderIndicatorContent:function(){this._$content=i("<div>").addClass("dx-loadindicator-content"),this._$wrapper.append(this._$content)},_renderMarkup:function(){!r.animation()||this.option("viaImage")||this.option("indicatorSrc")?this._renderMarkupForImage():this._renderMarkupForAnimation()},_renderMarkupForAnimation:function(){var t=this.option("_animatingSegmentInner");this._$indicator=i("<div>").addClass("dx-loadindicator-icon"),this._$content.append(this._$indicator);for(var e=this.option("_animatingSegmentCount");e>=0;--e){var n=i("<div>").addClass("dx-loadindicator-segment").addClass("dx-loadindicator-segment"+e);t&&n.append(i("<div>").addClass("dx-loadindicator-segment-inner")),this._$indicator.append(n)}},_renderMarkupForImage:function(){var t=this.option("indicatorSrc");this._$wrapper.addClass("dx-loadindicator-image"),t&&this._$wrapper.css("backgroundImage","url("+t+")")},_renderDimensions:function(){this.callBase(),this._updateContentSizeForAnimation()},_updateContentSizeForAnimation:function(){if(this._$indicator){var t=this.option("width"),e=this.option("height");if(t||e){t=this.$element().width(),e=this.$element().height();var n=Math.min(e,t);this._$wrapper.css({height:n,width:n,fontSize:n})}}},_clean:function(){this.callBase(),this._removeMarkupForAnimation(),this._removeMarkupForImage()},_removeMarkupForAnimation:function(){this._$indicator&&(this._$indicator.remove(),delete this._$indicator)},_removeMarkupForImage:function(){this._$wrapper.css("backgroundImage","none")},_optionChanged:function(t){switch(t.name){case"_animatingSegmentCount":case"_animatingSegmentInner":case"indicatorSrc":this._invalidate();break;default:this.callBase(t)}}});u("dxLoadIndicator",d),t.exports=d,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(0).extend,r=n(5).each,a=n(13),s=n(36),l={},u={},c={},d=o,h=r,f=a.normalizeEnum,p=null,m=0,g={};function _(t){var e=f(t);return l[e]||l[u[e]||b()]}function v(t,e){return u[t+"."+e]||c[t+"."+e]||u[t]}function y(t,e,n){return v(t+e,n)||v(t,n)}function b(t,e){if(!arguments.length)return p||v(s.current())||i;var n=f(e);return p=(t&&t.platform?y(f(t.platform),t.version,n):v(f(t),n))||p,this}function w(t,e){var n=function(t,e){var n=t.indexOf(e);return n>0?{name:t.substring(0,n),scheme:t.substring(n+1)}:null}(t,".")||{name:t},i=n.name,o=n.scheme;o?(u[i]=u[i]||e,u[i+"."+o]=e):u[i]=e}function x(t,e,n,i){var o=n?n[e]:i;void 0!==o&&void 0===t[e]&&(t[e]=o)}function C(t,e,n,i){var o=n?n[e]:i;void 0!==o&&(t[e]=d(!0,{},o,t[e]))}d(e,{currentTheme:b,registerTheme:function(t,e){var n=f(t&&t.name);n&&(t.isDefault&&(i=n),w(n,n),l[n]=d(!0,{},_(e),function(t){return x((t=d(!0,{loadingIndicator:{font:{}},export:{font:{}},legend:{font:{},border:{}},title:{font:{}},tooltip:{font:{}},"chart:common":{},"chart:common:axis":{grid:{},minorGrid:{},tick:{},minorTick:{},title:{font:{}},label:{font:{}}},"chart:common:annotation":{font:{},border:{}},chart:{commonSeriesSettings:{candlestick:{}}},pie:{},polar:{},gauge:{scale:{tick:{},minorTick:{},label:{font:{}}}},barGauge:{},funnel:{},sankey:{},map:{background:{}},treeMap:{tile:{selectionStyle:{border:{}}},group:{border:{},selectionStyle:{border:{}},label:{font:{}}}},rangeSelector:{scale:{tick:{},minorTick:{},label:{font:{}}},chart:{}},sparkline:{},bullet:{}},t)).loadingIndicator,"backgroundColor",t),x(t.chart.commonSeriesSettings.candlestick,"innerColor",null,t.backgroundColor),x(t.map.background,"color",null,t.backgroundColor),x(t.title.font,"color",null,t.primaryTitleColor),C(t.title,"subtitle",null,t.title),x(t.legend.font,"color",null,t.secondaryTitleColor),x(t.legend.border,"color",null,t.gridColor),function(t){var e=t["chart:common:axis"];h([e.grid,e.minorGrid],(function(e,n){x(n,"color",null,t.gridColor)})),h([e,e.tick,e.minorTick,e.label.font],(function(e,n){x(n,"color",null,t.axisColor)})),x(e.title.font,"color",null,t.secondaryTitleColor),x(t.gauge.scale.label.font,"color",null,t.axisColor),x(t.gauge.scale.tick,"color",null,t.backgroundColor),x(t.gauge.scale.minorTick,"color",null,t.backgroundColor),x(t.rangeSelector.scale.label.font,"color",null,t.axisColor)}(t),h(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sparkline","bullet","sankey"],(function(e,n){x(t[n],"redrawOnResize",t),x(t[n],"containerBackgroundColor",null,t.backgroundColor),C(t[n],"tooltip",t),C(t[n],"export",t)})),h(["chart","pie","polar","gauge","barGauge","map","treeMap","funnel","rangeSelector","sankey"],(function(e,n){C(t[n],"loadingIndicator",t),C(t[n],"legend",t),C(t[n],"title",t)})),h(["chart","pie","polar"],(function(e,n){C(t,n,null,t["chart:common"])})),h(["chart","polar"],(function(e,n){t[n]=t[n]||{},C(t[n],"commonAxisSettings",null,t["chart:common:axis"]),C(t[n],"commonAnnotationSettings",null,t["chart:common:annotation"])})),C(t.rangeSelector.chart,"commonSeriesSettings",t.chart),C(t.rangeSelector.chart,"dataPrepareSettings",t.chart),x(t.treeMap.group.border,"color",null,t.gridColor),x(t.treeMap.tile.selectionStyle.border,"color",null,t.primaryTitleColor),x(t.treeMap.group.selectionStyle.border,"color",null,t.primaryTitleColor),x(t.map.legend,"backgroundColor",t),function(t){var e=t.map;h(["area","line","marker"],(function(t,n){C(e,"layer:"+n,null,e.layer)})),h(["dot","bubble","pie","image"],(function(t,n){C(e,"layer:marker:"+n,null,e["layer:marker"])}))}(t),t}(t)))},getTheme:_,registerThemeAlias:function(t,e){w(f(t),f(e))},registerThemeSchemeAlias:function(t,e){c[t]=e},refreshTheme:function(){return h(g,(function(){this.refresh()})),this},addCacheItem:function(t){var e=++m;t._cache=e,g[e]=t},removeCacheItem:function(t){delete g[t._cache]}})},function(t,e,n){"use strict";var i,o=n(313),r=n(203),a=(i=r)&&i.__esModule?i:{default:i},s=n(146),l=n(147),u=n(13),c=n(4),d=n(2),h=n(0);var f=Math.max,p={lefttoprightbottom:[1,1],leftbottomrighttop:[1,-1],righttopleftbottom:[-1,1],rightbottomlefttop:[-1,-1]};function m(t){return t>0?Math.round(t):0}n(519),n(146).setDefaultAlgorithm("squarified"),n(521),n(147).setDefaultColorizer("discrete");var g=n(118).inherit({_handlers:{beginBuildNodes:c.noop,buildNode:c.noop,endBuildNodes:c.noop,setTrackerData:c.noop,calculateState:function(t){return(0,o.buildRectAppearance)(t)}},_rootClass:"dxtm-tree-map",_rootClassPrefix:"dxtm",_getDefaultSize:function(){return{width:400,height:400}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,h.extend)(this._deprecatedOptions,{resolveLabelOverflow:{since:"19.1",message:"Use the 'tile.label.overflow' and 'group.label.textOverflow' option instead"}})},_themeSection:"treeMap",_fontFields:["tile.label.font","group.label.font"],_init:function(){var t=this;t._rectOffsets={},t._handlers=Object.create(t._handlers),t._context={suspend:function(){t._applyingChanges||t._suspendChanges()},resume:function(){t._applyingChanges||t._resumeChanges()},change:function(e){t._change(e)},settings:[{},{}],calculateState:t._handlers.calculateState,calculateLabelState:o.buildTextAppearance},t._root=t._topNode={nodes:[]},t.callBase.apply(t,arguments)},_initialChanges:["DATA_SOURCE"],_initCore:function(){var t=this._renderer;this._createProxyType(),this._tilesGroup=t.g().linkOn(t.root,"tiles").linkAppend(),this._labelsGroup=t.g().linkOn(t.root,"labels").linkAppend()},_createProxyType:c.noop,_disposeCore:function(){this._filter&&this._filter.dispose(),this._labelsGroup.linkOff(),this._tilesGroup.linkOff()},_applySize:function(t){this._tilingRect=t.slice(),this._change(["TILING"])},_optionChangesMap:{dataSource:"DATA_SOURCE",valueField:"NODES_CREATE",childrenField:"NODES_CREATE",colorField:"TILES",colorizer:"TILES",labelField:"LABELS",tile:"TILE_SETTINGS",group:"GROUP_SETTINGS",maxDepth:"MAX_DEPTH",layoutAlgorithm:"TILING",layoutDirection:"TILING",resolveLabelOverflow:"LABEL_OVERFLOW"},_themeDependentChanges:["TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH"],_changeDataSource:function(){this._isDataExpected=this._isSyncData=!0,this._updateDataSource(),this._isSyncData=!1,this._isDataExpected&&this._suspendChanges()},_dataSourceChangedHandler:function(){this._isDataExpected?(this._isDataExpected=!1,this._change(["NODES_CREATE"]),this._isSyncData||this._resumeChanges()):this._requestChange(["NODES_CREATE"])},_optionChangesOrder:["DATA_SOURCE","TILE_SETTINGS","GROUP_SETTINGS","MAX_DEPTH","LABEL_OVERFLOW"],_change_DATA_SOURCE:function(){this._changeDataSource()},_change_TILE_SETTINGS:function(){this._changeTileSettings()},_change_GROUP_SETTINGS:function(){this._changeGroupSettings()},_change_LABEL_OVERFLOW:function(){this._changeTileSettings(),this._changeGroupSettings()},_change_MAX_DEPTH:function(){this._changeMaxDepth()},_customChangesOrder:["NODES_CREATE","NODES_RESET","TILES","LABELS","TILING","LABELS_LAYOUT"],_change_NODES_CREATE:function(){this._buildNodes()},_change_NODES_RESET:function(){this._resetNodes()},_change_TILES:function(){this._applyTilesAppearance()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_TILING:function(){this._performTiling()},_change_LABELS_LAYOUT:function(){this._performLabelsLayout()},_applyChanges:function(){var t=this;t.callBase.apply(t,arguments),t._isDataExpected||t._drawn(),t._context.forceReset=!1},_buildNodes:function(){var t=this._root=this._topNode=new a.default;t._id=0,t.parent={},t.data={},t.level=t.index=-1,t.ctx=this._context,t.label=null,this._nodes=[t],this._handlers.beginBuildNodes();var e=this._processDataSourceItems(this._dataSourceItems()||[]);!function t(e,n,i,o){var r,s,l,u,c=[],d=o.nodes,h=n.length,f=0;for(s=0;s<h;++s){var p;l=n[s],(r=new a.default)._id=d.length,r.ctx=o.ctx,r.parent=e,r.level=i,r.index=c.length,r.data=l,o.buildNode(r),d.push(r),c.push(r),u=l[o.itemsField],(null===(p=u)||void 0===p?void 0:p.length)&&t(r,u,i+1,o),l[o.valueField]>0&&(r.value=Number(l[o.valueField])),f+=r.value}e.nodes=c,e.value=f}(t,e.items,0,{itemsField:!e.isPlain&&this._getOption("childrenField",!0)||"items",valueField:this._getOption("valueField",!0)||"value",buildNode:this._handlers.buildNode,ctx:this._context,nodes:this._nodes}),this._onNodesCreated(),this._handlers.endBuildNodes(),this._change(["NODES_RESET"])},_onNodesCreated:c.noop,_processDataSourceItems:function(t){return{items:t,isPlain:!1}},_changeTileSettings:function(){var t=this._getOption("tile"),e=this._rectOffsets,n=m(t.border.width),i=n/2,o=1&n?.5:0,r=t.label,a=this._context.settings[0];this._change(["TILES","LABELS"]),a.state=this._handlers.calculateState(t),this._filter=this._filter||this._renderer.shadowFilter("-50%","-50%","200%","200%"),this._filter.attr(r.shadow),this._calculateLabelSettings(a,r,this._filter.id),e.tileEdge===i&&e.tileInner===o||(e.tileEdge=i,e.tileInner=o,this._change(["TILING"]))},_changeGroupSettings:function(){var t=this._getOption("group"),e=t.label,n=this._rectOffsets,i=m(t.border.width),o=i/2,r=1&i?.5:0,a=0,s=m(t.padding),l=this._context.settings[1];this._change(["TILES","LABELS"]),l.state=this._handlers.calculateState(t),this._calculateLabelSettings(l,e),a=t.headerHeight>=0?m(t.headerHeight):l.labelParams.height+2*m(e.paddingTopBottom),this._headerHeight!==a&&(this._headerHeight=a,this._change(["TILING"])),this._groupPadding!==s&&(this._groupPadding=s,this._change(["TILING"])),n.headerEdge===o&&n.headerInner===r||(n.headerEdge=o,n.headerInner=r,this._change(["TILING"]))},_calculateLabelSettings:function(t,e,n){var i=this._getTextBBox(e.font),r=m(e.paddingLeftRight),a=m(e.paddingTopBottom),s=this._getOption("tile.label"),l=this._getOption("group.label");t.labelState=(0,o.buildTextAppearance)(e,n),t.labelState.visible=!("visible"in e)||!!e.visible,t.labelParams={height:i.height,rtlEnabled:this._getOption("rtlEnabled",!0),paddingTopBottom:a,paddingLeftRight:r,resolveLabelOverflow:this._options.silent("resolveLabelOverflow"),tileLabelWordWrap:s.wordWrap,tileLabelOverflow:s.textOverflow,groupLabelOverflow:l.textOverflow}},_changeMaxDepth:function(){var t=this._getOption("maxDepth",!0);t=t>=1?Math.round(t):1/0,this._maxDepth!==t&&(this._maxDepth=t,this._change(["NODES_RESET"]))},_resetNodes:function(){this._tilesGroup.clear(),this._renderer.initHatching(),this._context.forceReset=!0,this._context.minLevel=this._topNode.level+1,this._context.maxLevel=this._context.minLevel+this._maxDepth-1,this._change(["TILES","LABELS","TILING"])},_processNodes:function(t,e){!function t(e,n,i){var o,r,a=n.nodes,s=a.length;for(r=0;r<s;++r)o=a[r],i(e,o),o.isNode()&&t(e,o,i)}(t,this._topNode,e)},_applyTilesAppearance:function(){var t=(0,l.getColorizer)(this._getOption("colorizer"),this._themeManager,this._topNode);this._processNodes({renderer:this._renderer,group:this._tilesGroup,setTrackerData:this._handlers.setTrackerData,colorField:this._getOption("colorField",!0)||"color",getColor:t},v)},_applyLabelsAppearance:function(){this._labelsGroup.clear(),this._processNodes({renderer:this._renderer,group:this._labelsGroup,setTrackerData:this._handlers.setTrackerData,labelField:this._getOption("labelField",!0)||"name"},y),this._change(["LABELS_LAYOUT"])},_performTiling:function(){var t={algorithm:(0,s.getAlgorithm)(this._getOption("layoutAlgorithm",!0)),directions:p[String(this._getOption("layoutDirection",!0)).toLowerCase()]||p.lefttoprightbottom,headerHeight:this._headerHeight,groupPadding:this._groupPadding,rectOffsets:this._rectOffsets};this._topNode.innerRect=this._tilingRect,w(t,this._topNode),this._processNodes(t,x),this._change(["LABELS_LAYOUT"]),this._onTilingPerformed()},_onTilingPerformed:c.noop,_performLabelsLayout:function(){this._processNodes(null,I)},_getTextBBox:function(t){var e=this._renderer,n=this._textForCalculations||e.text("0",0,0);this._textForCalculations=n,n.css((0,u.patchFontOptions)(t)).append(e.root);var i=n.getBBox();return n.remove(),i}});var _=[function(t,e){var n=t.renderer.simpleRect().append(t.group);return t.setTrackerData(e,n),n},function(t,e){var n=t.renderer.simpleRect().append(t.group),i=t.renderer.simpleRect().append(t.group);return t.setTrackerData(e,i),{outer:n,inner:i}}];function v(t,e){e.color=e.data[t.colorField]||t.getColor(e)||e.parent.color,e.updateStyles(),e.tile=!e.ctx.forceReset&&e.tile||_[Number(e.isNode())](t,e),e.applyState()}function y(t,e){e.updateLabelStyle(),e.labelState.visible&&function(t,e,n,i){var o=e.data[t.labelField];e.label=o?String(o):null,(o=e.customLabel||e.label)&&(e.text=t.renderer.text(o).attr(n.attr).css(n.css).append(t.group),t.setTrackerData(e,e.text))}(t,e,e.labelState,e.labelParams)}var b=[0,0,0,0];function w(t,e){var n,i=e.nodes,o=[],r=[],a=0,s=o.length=r.length=i.length;for(n=0;n<s;++n)a+=i[n].value,o[n]={value:i[n].value,i:n};for(a>0&&t.algorithm({items:o.slice(),sum:a,rect:e.innerRect.slice(),isRotated:1&i[0].level,directions:t.directions}),n=0;n<s;++n)r[n]=o[n].rect||b;e.rects=r}function x(t,e){var n,i=e.parent.rects[e.index],o=t.rectOffsets;e.isNode()?(k(e.tile.outer,S(i,e.parent.innerRect,o.headerEdge,o.headerInner)),i=C(i,t.groupPadding),n=Math.min(t.headerHeight,i[3]-i[1]),e.rect=[i[0],i[1],i[2],i[1]+n],k(e.tile.inner,C(e.rect,o.headerEdge)),i[1]+=n,e.innerRect=i,w(t,e)):(e.rect=i,k(e.tile,S(i,e.parent.innerRect,o.tileEdge,o.tileInner)))}function C(t,e){return[t[0]+e,t[1]+e,t[2]-e,t[3]-e]}function S(t,e,n,i){return[t[0]+(t[0]===e[0]?n:+i),t[1]+(t[1]===e[1]?n:+i),t[2]-(t[2]===e[2]?n:-i),t[3]-(t[3]===e[3]?n:-i)]}function k(t,e){t.attr({x:e[0],y:e[1],width:f(e[2]-e[0],0),height:f(e[3]-e[1],0)})}function I(t,e){e.text&&e.labelState.visible&&function(t,e){var n=t.rect,i=t.text,o=i.getBBox(),r=e.paddingLeftRight,a=e.paddingTopBottom,s=n[2]-n[0]-2*r,l=o.height+a<=n[3]-n[1],u=o.width<=s,c=e.resolveLabelOverflow,h=e.groupLabelOverflow,f=e.tileLabelOverflow,p=e.tileLabelWordWrap;(0,d.isDefined)(c)?"ellipsis"===c&&l&&(i.setMaxSize(s,void 0,{wordWrap:"none",textOverflow:"ellipsis"}),u||(o=i.getBBox(),u=o.width<=s)):(u=!0,l=!0,i.setMaxSize(s,n[3]-n[1]-a,t.isNode()?{textOverflow:h,wordWrap:"none"}:{textOverflow:f,wordWrap:p,hideOverflowEllipsis:!0}));i.attr({visibility:l&&u?"visible":"hidden"}),l&&u&&i.move(e.rtlEnabled?n[2]-r-o.x-o.width:n[0]+r-o.x,n[1]+a-o.y)}(e,e.labelParams)}n(8)("dxTreeMap",g),t.exports=g,g.addPlugin(n(166).plugin)},function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}t.exports=n,n.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)}},function(t,e,n){"use strict";var i=e,o=n(111),r=n(84),a=n(564);i.assert=r,i.toArray=a.toArray,i.zero2=a.zero2,i.toHex=a.toHex,i.encode=a.encode,i.getNAF=function(t,e,n){var i=new Array(Math.max(t.bitLength(),n)+1);i.fill(0);for(var o=1<<e+1,r=t.clone(),a=0;a<i.length;a++){var s,l=r.andln(o-1);r.isOdd()?(s=l>(o>>1)-1?(o>>1)-l:l,r.isubn(s)):s=0,i[a]=s,r.iushrn(1)}return i},i.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var r,a,s,l=t.andln(3)+i&3,u=e.andln(3)+o&3;if(3===l&&(l=-1),3===u&&(u=-1),0===(1&l))r=0;else r=3!==(s=t.andln(7)+i&7)&&5!==s||2!==u?l:-l;if(n[0].push(r),0===(1&u))a=0;else a=3!==(s=e.andln(7)+o&7)&&5!==s||2!==l?u:-u;n[1].push(a),2*i===r+1&&(i=1-i),2*o===a+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},i.cachedProperty=function(t,e,n){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(t){return"string"===typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new o(t,"hex","le")}},function(t,e,n){"use strict";!function t(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}}(),t.exports=n(591)},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return w})),n.d(e,"b",(function(){return I})),n.d(e,"d",(function(){return E})),n.d(e,"c",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"e",(function(){return p}));var i=n(41);function o(t){return"/"===t.charAt(0)}function r(t,e){for(var n=e,i=n+1,o=t.length;i<o;n+=1,i+=1)t[n]=t[i];t.pop()}var a=function(t,e){void 0===e&&(e="");var n,i=t&&t.split("/")||[],a=e&&e.split("/")||[],s=t&&o(t),l=e&&o(e),u=s||l;if(t&&o(t)?a=i:i.length&&(a.pop(),a=a.concat(i)),!a.length)return"/";if(a.length){var c=a[a.length-1];n="."===c||".."===c||""===c}else n=!1;for(var d=0,h=a.length;h>=0;h--){var f=a[h];"."===f?r(a,h):".."===f?(r(a,h),d++):d&&(r(a,h),d--)}if(!u)for(;d--;d)a.unshift("..");!u||""===a[0]||a[0]&&o(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var l=function t(e,n){if(e===n)return!0;if(null==e||null==n)return!1;if(Array.isArray(e))return Array.isArray(n)&&e.length===n.length&&e.every((function(e,i){return t(e,n[i])}));if("object"===typeof e||"object"===typeof n){var i=s(e),o=s(n);return i!==e||o!==n?t(i,o):Object.keys(Object.assign({},e,n)).every((function(i){return t(e[i],n[i])}))}return!1},u=n(76);function c(t){return"/"===t.charAt(0)?t:"/"+t}function d(t){return"/"===t.charAt(0)?t.substr(1):t}function h(t,e){return function(t,e){return 0===t.toLowerCase().indexOf(e.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(e.length))}(t,e)?t.substr(e.length):t}function f(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function p(t){var e=t.pathname,n=t.search,i=t.hash,o=e||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),i&&"#"!==i&&(o+="#"===i.charAt(0)?i:"#"+i),o}function m(t,e,n,o){var r;"string"===typeof t?(r=function(t){var e=t||"/",n="",i="",o=e.indexOf("#");-1!==o&&(i=e.substr(o),e=e.substr(0,o));var r=e.indexOf("?");return-1!==r&&(n=e.substr(r),e=e.substr(0,r)),{pathname:e,search:"?"===n?"":n,hash:"#"===i?"":i}}(t)).state=e:(void 0===(r=Object(i.a)({},t)).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!==e&&void 0===r.state&&(r.state=e));try{r.pathname=decodeURI(r.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+r.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(r.key=n),o?r.pathname?"/"!==r.pathname.charAt(0)&&(r.pathname=a(r.pathname,o.pathname)):r.pathname=o.pathname:r.pathname||(r.pathname="/"),r}function g(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash===e.hash&&t.key===e.key&&l(t.state,e.state)}function _(){var t=null;var e=[];return{setPrompt:function(e){return t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,i,o){if(null!=t){var r="function"===typeof t?t(e,n):t;"string"===typeof r?"function"===typeof i?i(r,o):o(!0):o(!1!==r)}else o(!0)},appendListener:function(t){var n=!0;function i(){n&&t.apply(void 0,arguments)}return e.push(i),function(){n=!1,e=e.filter((function(t){return t!==i}))}},notifyListeners:function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];e.forEach((function(t){return t.apply(void 0,n)}))}}}var v=!("undefined"===typeof window||!window.document||!window.document.createElement);function y(t,e){e(window.confirm(t))}function b(){try{return window.history.state||{}}catch(t){return{}}}function w(t){void 0===t&&(t={}),v||Object(u.a)(!1);var e=window.history,n=function(){var t=window.navigator.userAgent;return(-1===t.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)}(),o=!(-1===window.navigator.userAgent.indexOf("Trident")),r=t,a=r.forceRefresh,s=void 0!==a&&a,l=r.getUserConfirmation,d=void 0===l?y:l,g=r.keyLength,w=void 0===g?6:g,x=t.basename?f(c(t.basename)):"";function C(t){var e=t||{},n=e.key,i=e.state,o=window.location,r=o.pathname+o.search+o.hash;return x&&(r=h(r,x)),m(r,i,n)}function S(){return Math.random().toString(36).substr(2,w)}var k=_();function I(t){Object(i.a)(F,t),F.length=e.length,k.notifyListeners(F.location,F.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||M(C(t.state))}function E(){M(C(b()))}var O=!1;function M(t){if(O)O=!1,I();else{k.confirmTransitionTo(t,"POP",d,(function(e){e?I({action:"POP",location:t}):function(t){var e=F.location,n=D.indexOf(e.key);-1===n&&(n=0);var i=D.indexOf(t.key);-1===i&&(i=0);var o=n-i;o&&(O=!0,R(o))}(t)}))}}var P=C(b()),D=[P.key];function A(t){return x+p(t)}function R(t){e.go(t)}var B=0;function N(t){1===(B+=t)&&1===t?(window.addEventListener("popstate",T),o&&window.addEventListener("hashchange",E)):0===B&&(window.removeEventListener("popstate",T),o&&window.removeEventListener("hashchange",E))}var L=!1;var F={length:e.length,action:"POP",location:P,createHref:A,push:function(t,i){var o=m(t,i,S(),F.location);k.confirmTransitionTo(o,"PUSH",d,(function(t){if(t){var i=A(o),r=o.key,a=o.state;if(n)if(e.pushState({key:r,state:a},null,i),s)window.location.href=i;else{var l=D.indexOf(F.location.key),u=D.slice(0,l+1);u.push(o.key),D=u,I({action:"PUSH",location:o})}else window.location.href=i}}))},replace:function(t,i){var o=m(t,i,S(),F.location);k.confirmTransitionTo(o,"REPLACE",d,(function(t){if(t){var i=A(o),r=o.key,a=o.state;if(n)if(e.replaceState({key:r,state:a},null,i),s)window.location.replace(i);else{var l=D.indexOf(F.location.key);-1!==l&&(D[l]=o.key),I({action:"REPLACE",location:o})}else window.location.replace(i)}}))},go:R,goBack:function(){R(-1)},goForward:function(){R(1)},block:function(t){void 0===t&&(t=!1);var e=k.setPrompt(t);return L||(N(1),L=!0),function(){return L&&(L=!1,N(-1)),e()}},listen:function(t){var e=k.appendListener(t);return N(1),function(){N(-1),e()}}};return F}var x={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+d(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:d,decodePath:c},slash:{encodePath:c,decodePath:c}};function C(t){var e=t.indexOf("#");return-1===e?t:t.slice(0,e)}function S(){var t=window.location.href,e=t.indexOf("#");return-1===e?"":t.substring(e+1)}function k(t){window.location.replace(C(window.location.href)+"#"+t)}function I(t){void 0===t&&(t={}),v||Object(u.a)(!1);var e=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),t),o=n.getUserConfirmation,r=void 0===o?y:o,a=n.hashType,s=void 0===a?"slash":a,l=t.basename?f(c(t.basename)):"",d=x[s],g=d.encodePath,b=d.decodePath;function w(){var t=b(S());return l&&(t=h(t,l)),m(t)}var I=_();function T(t){Object(i.a)(V,t),V.length=e.length,I.notifyListeners(V.location,V.action)}var E=!1,O=null;function M(){var t,e,n=S(),i=g(n);if(n!==i)k(i);else{var o=w(),a=V.location;if(!E&&(e=o,(t=a).pathname===e.pathname&&t.search===e.search&&t.hash===e.hash))return;if(O===p(o))return;O=null,function(t){if(E)E=!1,T();else{I.confirmTransitionTo(t,"POP",r,(function(e){e?T({action:"POP",location:t}):function(t){var e=V.location,n=R.lastIndexOf(p(e));-1===n&&(n=0);var i=R.lastIndexOf(p(t));-1===i&&(i=0);var o=n-i;o&&(E=!0,B(o))}(t)}))}}(o)}}var P=S(),D=g(P);P!==D&&k(D);var A=w(),R=[p(A)];function B(t){e.go(t)}var N=0;function L(t){1===(N+=t)&&1===t?window.addEventListener("hashchange",M):0===N&&window.removeEventListener("hashchange",M)}var F=!1;var V={length:e.length,action:"POP",location:A,createHref:function(t){var e=document.querySelector("base"),n="";return e&&e.getAttribute("href")&&(n=C(window.location.href)),n+"#"+g(l+p(t))},push:function(t,e){var n=m(t,void 0,void 0,V.location);I.confirmTransitionTo(n,"PUSH",r,(function(t){if(t){var e=p(n),i=g(l+e);if(S()!==i){O=e,function(t){window.location.hash=t}(i);var o=R.lastIndexOf(p(V.location)),r=R.slice(0,o+1);r.push(e),R=r,T({action:"PUSH",location:n})}else T()}}))},replace:function(t,e){var n=m(t,void 0,void 0,V.location);I.confirmTransitionTo(n,"REPLACE",r,(function(t){if(t){var e=p(n),i=g(l+e);S()!==i&&(O=e,k(i));var o=R.indexOf(p(V.location));-1!==o&&(R[o]=e),T({action:"REPLACE",location:n})}}))},go:B,goBack:function(){B(-1)},goForward:function(){B(1)},block:function(t){void 0===t&&(t=!1);var e=I.setPrompt(t);return F||(L(1),F=!0),function(){return F&&(F=!1,L(-1)),e()}},listen:function(t){var e=I.appendListener(t);return L(1),function(){L(-1),e()}}};return V}function T(t,e,n){return Math.min(Math.max(t,e),n)}function E(t){void 0===t&&(t={});var e=t,n=e.getUserConfirmation,o=e.initialEntries,r=void 0===o?["/"]:o,a=e.initialIndex,s=void 0===a?0:a,l=e.keyLength,u=void 0===l?6:l,c=_();function d(t){Object(i.a)(b,t),b.length=b.entries.length,c.notifyListeners(b.location,b.action)}function h(){return Math.random().toString(36).substr(2,u)}var f=T(s,0,r.length-1),g=r.map((function(t){return m(t,void 0,"string"===typeof t?h():t.key||h())})),v=p;function y(t){var e=T(b.index+t,0,b.entries.length-1),i=b.entries[e];c.confirmTransitionTo(i,"POP",n,(function(t){t?d({action:"POP",location:i,index:e}):d()}))}var b={length:g.length,action:"POP",location:g[f],index:f,entries:g,createHref:v,push:function(t,e){var i=m(t,e,h(),b.location);c.confirmTransitionTo(i,"PUSH",n,(function(t){if(t){var e=b.index+1,n=b.entries.slice(0);n.length>e?n.splice(e,n.length-e,i):n.push(i),d({action:"PUSH",location:i,index:e,entries:n})}}))},replace:function(t,e){var i=m(t,e,h(),b.location);c.confirmTransitionTo(i,"REPLACE",n,(function(t){t&&(b.entries[b.index]=i,d({action:"REPLACE",location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var e=b.index+t;return e>=0&&e<b.entries.length},block:function(t){return void 0===t&&(t=!1),c.setPrompt(t)},listen:function(t){return c.appendListener(t)}};return b}},function(t,e,n){"use strict";t.exports=function(t){var e=n(0).extend,i=n(2).isFunction,o=n(5).each,r=n(21).inherit(t),a=r,s=new a(t),l={},u=function(e,n){o(e,(function(e){i(s[e])?!n&&t[e]||(t[e]=function(){return s[e].apply(t,arguments)}):(n&&(l[e]=t[e]),t[e]=s[e])}))};return u(t,!0),t.inject=function(t){a=a.inherit(t),s=new a,u(t)},t.resetInjection=function(){e(t,l),a=r,s=new r},t}},function(t,e,n){"use strict";var i,o=n(3),r=n(4),a=n(5).each,s=n(10).getWindow(),l=n(15),u=n(2).isWindow,c=n(0).extend,d=n(24).getBoundingRect,h=n(31),f=n(33),p=n(58),m=/left|right/,g=/top|bottom/,_=/fit|flip|none/,v=h.safari,y=function(t){var e={h:"center",v:"center"},n=r.splitPair(t);return n&&a(n,(function(){var t=String(this).toLowerCase();m.test(t)?e.h=t:g.test(t)&&(e.v=t)})),e},b=function(t){return r.pairToObject(t)},w=function(t){switch(t){case"center":return.5;case"right":case"bottom":return 1;default:return 0}},x=function(t){switch(t){case"left":return"right";case"right":return"left";case"top":return"bottom";case"bottom":return"top";default:return t}},C=function(t,e){var n=0;return t.myLocation<e.min&&(n+=e.min-t.myLocation),t.myLocation>e.max&&(n+=t.myLocation-e.max),n},S=function(t,e,n){return e.myLocation<n.min?"h"===t?"left":"top":e.myLocation>n.max?"h"===t?"right":"bottom":"none"},k=function(t){t.myLocation=t.atLocation+w(t.atAlign)*t.atSize-w(t.myAlign)*t.mySize+t.offset},I={fit:function(t,e){var n=!1;t.myLocation>e.max&&(t.myLocation=e.max,n=!0),t.myLocation<e.min&&(t.myLocation=e.min,n=!0),t.fit=n},flip:function(t,e){if(t.flip=!1,("center"!==t.myAlign||"center"!==t.atAlign)&&(t.myLocation<e.min||t.myLocation>e.max)){var n=c({},t,{myAlign:x(t.myAlign),atAlign:x(t.atAlign),offset:-t.offset});k(n),n.oversize=C(n,e),(n.myLocation>=e.min&&n.myLocation<=e.max||t.oversize>n.oversize)&&(t.myLocation=n.myLocation,t.oversize=n.oversize,t.flip=!0)}},flipfit:function(t,e){this.flip(t,e),this.fit(t,e)},none:function(t){t.oversize=0}},T=function(){var t=o("<div>").css({width:100,height:100,overflow:"scroll",position:"absolute",top:-9999}).appendTo(o("body")),e=t.get(0).offsetWidth-t.get(0).clientWidth;t.remove(),i=e},E={h:{location:0,flip:!1,fit:!1,oversize:0},v:{location:0,flip:!1,fit:!1,oversize:0}},O=function(t,e){var n=o(t),a=n.offset(),h=c(!0,{},E,{h:{location:a.left},v:{location:a.top}});if(!e)return h;var f=y(e.my),m=y(e.at),g=o(e.of).length&&e.of||s,w=b(e.offset),x=function(t){var e=r.splitPair(t),n=String(e&&e[0]).toLowerCase(),i=String(e&&e[1]).toLowerCase();return _.test(n)||(n="none"),_.test(i)||(i=n),{h:n,v:i}}(e.collision),O=e.boundary,M=b(e.boundaryOffset),P={mySize:n.outerWidth(),myAlign:f.h,atAlign:m.h,offset:w.h,collision:x.h,boundaryOffset:M.h},D={mySize:n.outerHeight(),myAlign:f.v,atAlign:m.v,offset:w.v,collision:x.v,boundaryOffset:M.v};if(g.preventDefault)P.atLocation=g.pageX,D.atLocation=g.pageY,P.atSize=0,D.atSize=0;else if(g=o(g),u(g[0]))P.atLocation=g.scrollLeft(),D.atLocation=g.scrollTop(),P.atSize=g[0].innerWidth>=g[0].outerWidth?g[0].innerWidth:g.width(),D.atSize=g[0].innerHeight>=g[0].outerHeight||v?g[0].innerHeight:g.height();else if(9===g[0].nodeType)P.atLocation=0,D.atLocation=0,P.atSize=g.width(),D.atSize=g.height();else{var A=d(g.get(0)),R=g.offset();P.atLocation=R.left,D.atLocation=R.top,P.atSize=A.width,D.atSize=A.height}k(P),k(D);var B=function(){var t=o(s),e=t.width(),n=t.height(),r=t.scrollLeft(),a=t.scrollTop(),u=l.getDocumentElement(),c=p.touch?u.clientWidth/e:1,d=p.touch?u.clientHeight/n:1;void 0===i&&T();var h=e,f=n;if(O){var m=o(O),g=m.offset();r=g.left,a=g.top,h=m.width(),f=m.height()}return{h:{min:r+P.boundaryOffset,max:r+h/c-P.mySize-P.boundaryOffset},v:{min:a+D.boundaryOffset,max:a+f/d-D.mySize-D.boundaryOffset}}}();P.oversize=C(P,B.h),D.oversize=C(D,B.v),P.collisionSide=S("h",P,B.h),D.collisionSide=S("v",D,B.v),I[P.collision]&&I[P.collision](P,B.h),I[D.collision]&&I[D.collision](D,B.v);var N=function(t){return e.precise?t:Math.round(t)};return c(!0,h,{h:{location:N(P.myLocation),oversize:N(P.oversize),fit:P.fit,flip:P.flip,collisionSide:P.collisionSide},v:{location:N(D.myLocation),oversize:N(D.oversize),fit:D.fit,flip:D.flip,collisionSide:D.collisionSide},precise:e.precise}),h},M=function(t,e){var n=o(t);if(!e)return n.offset();f.resetPosition(n,!0);var i=n.offset(),r=e.h&&e.v?e:O(n,e),a=function(t){return e.precise?t:Math.round(t)};return f.move(n,{left:r.h.location-a(i.left),top:r.v.location-a(i.top)}),r};M.inverseAlign||(M.inverseAlign=x),M.normalizeAlign||(M.normalizeAlign=y),t.exports={calculateScrollbarWidth:T,calculate:O,setup:M,offset:function(t){return t=o(t).get(0),u(t)?null:t&&"pageY"in t&&"pageX"in t?{top:t.pageY,left:t.pageX}:o(t).offset()}}},function(t,e,n){"use strict";var i=n(3),o=n(15),r=function(t,e){if(!function(t){var e=i(t);return e.is(":visible")&&"hidden"!==e.css("visibility")&&"hidden"!==e.parents().css("visibility")}(t))return!1;var n=t.nodeName.toLowerCase(),o=!isNaN(e),r=t.disabled,a=/^(input|select|textarea|button|object|iframe)$/.test(n),s="a"===n,l=t.isContentEditable;return a||l?!r:s&&t.href||o};t.exports={focusable:function(t,e){return r(e,i(e).attr("tabIndex"))},tabbable:function(t,e){var n=i(e).attr("tabIndex");return(isNaN(n)||n>=0)&&r(e,n)},focused:function(t){var e=i(t).get(0);return o.getActiveElement()===e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DataSource=void 0;var i=v(n(21)),o=n(0),r=v(n(4)),a=n(5),s=n(2),l=n(60),u=v(n(190)),c=v(n(191)),d=n(153),h=n(78),f=v(n(16)),p=v(n(634)),m=n(7),g=v(n(635)),_=n(100);function v(t){return t&&t.__esModule?t:{default:t}}e.DataSource=i.default.inherit({ctor:function(t){var e,n=this;t=(0,_.normalizeDataSourceOptions)(t),this._eventsStrategy=new d.EventsStrategy(this);var i=0!==t.pushAggregationTimeout?(0,l.throttleChanges)(this._onPush,(function(){return void 0===t.pushAggregationTimeout?5*n._changedTime:t.pushAggregationTimeout})):this._onPush;this._changedTime=0,this._onPushHandler=function(t){n._aggregationTimeoutId=i.call(n,t)},this._store=t.store,this._store.on("push",this._onPushHandler),this._storeLoadOptions=this._extractLoadOptions(t),this._mapFunc=t.map,this._postProcessFunc=t.postProcess,this._pageIndex=void 0!==t.pageIndex?t.pageIndex:0,this._pageSize=void 0!==t.pageSize?t.pageSize:20,this._loadingCount=0,this._loadQueue=this._createLoadQueue(),this._searchValue="searchValue"in t?t.searchValue:null,this._searchOperation=t.searchOperation||"contains",this._searchExpr=t.searchExpr,this._paginate=t.paginate,this._reshapeOnPush=null!==(e=t.reshapeOnPush)&&void 0!==e&&e,(0,a.each)(["onChanged","onLoadError","onLoadingChanged","onCustomizeLoadResult","onCustomizeStoreLoadOptions"],(function(e,i){i in t&&n.on(i.substr(2,1).toLowerCase()+i.substr(3),t[i])})),this._operationManager=new g.default,this._init()},_init:function(){this._items=[],this._userData={},this._totalCount=-1,this._isLoaded=!1,(0,s.isDefined)(this._paginate)||(this._paginate=!this.group()),this._isLastPage=!this._paginate},dispose:function(){var t;this._store.off("push",this._onPushHandler),this._eventsStrategy.dispose(),clearTimeout(this._aggregationTimeoutId),delete this._store,null===(t=this._delayedLoadTask)||void 0===t||t.abort(),this._operationManager.cancelAll(),this._disposed=!0},_extractLoadOptions:function(t){var e={},n=["sort","filter","select","group","requireTotalCount"],i=this._store._customLoadOptions();return i&&(n=n.concat(i)),(0,a.each)(n,(function(){e[this]=t[this]})),e},loadOptions:function(){return this._storeLoadOptions},items:function(){return this._items},pageIndex:function(t){if(!(0,s.isNumeric)(t))return this._pageIndex;this._pageIndex=t,this._isLastPage=!this._paginate},paginate:function(t){if(!(0,s.isBoolean)(t))return this._paginate;this._paginate!==t&&(this._paginate=t,this.pageIndex(0))},pageSize:function(t){if(!(0,s.isNumeric)(t))return this._pageSize;this._pageSize=t},isLastPage:function(){return this._isLastPage},generateStoreLoadOptionAccessor:function(t){var e=this;return function(n){var i=(0,_.normalizeStoreLoadOptionAccessorArguments)(n);if(void 0===i)return e._storeLoadOptions[t];e._storeLoadOptions[t]=i}},sort:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.generateStoreLoadOptionAccessor("sort")(e)},filter:function(){var t=(0,_.normalizeStoreLoadOptionAccessorArguments)(arguments);if(void 0===t)return this._storeLoadOptions.filter;this._storeLoadOptions.filter=t,this.pageIndex(0)},group:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.generateStoreLoadOptionAccessor("group")(e)},select:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.generateStoreLoadOptionAccessor("select")(e)},requireTotalCount:function(t){if(!(0,s.isBoolean)(t))return this._storeLoadOptions.requireTotalCount;this._storeLoadOptions.requireTotalCount=t},searchValue:function(t){if(arguments.length<1)return this._searchValue;this._searchValue=t,this.pageIndex(0)},searchOperation:function(t){if(!(0,s.isString)(t))return this._searchOperation;this._searchOperation=t,this.pageIndex(0)},searchExpr:function(t){var e=arguments.length;if(0===e)return this._searchExpr;e>1&&(t=[].slice.call(arguments)),this._searchExpr=t,this.pageIndex(0)},store:function(){return this._store},key:function(){var t;return null===(t=this._store)||void 0===t?void 0:t.key()},totalCount:function(){return this._totalCount},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._loadingCount>0},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_createLoadQueue:function(){return p.default.create()},_changeLoadingCount:function(t){var e=this.isLoading();this._loadingCount+=t;var n=this.isLoading();e^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_scheduleLoadCallbacks:function(t){var e=this;this.beginLoading(),t.always((function(){e.endLoading()}))},_scheduleFailCallbacks:function(t){var e=this;t.fail((function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];n[0]!==_.CANCELED_TOKEN&&e._eventsStrategy.fireEvent("loadError",n)}))},_fireChanged:function(t){var e=new Date;this._eventsStrategy.fireEvent("changed",t),this._changedTime=new Date-e},_scheduleChangedCallbacks:function(t){var e=this;t.done((function(){return e._fireChanged()}))},loadSingle:function(t,e){var n=this,i=new m.Deferred,o=this.key(),r=this._store,a=this._createStoreLoadOptions(),l=function(t){!(0,s.isDefined)(t)||f.default.isEmpty(t)?i.reject(new h.errors.Error("E4009")):(Array.isArray(t)||(t=[t]),i.resolve(n._applyMapFunction(t)[0]))};this._scheduleFailCallbacks(i),arguments.length<2&&(e=t,t=o),delete a.skip,delete a.group,delete a.refresh,delete a.pageIndex,delete a.searchString;var u=function(){return r instanceof c.default&&!r._byKeyViaLoad()};return(t===o||u()?r.byKey(e,a):(a.take=1,a.filter=a.filter?[a.filter,[t,e]]:[t,e],r.load(a))).fail(i.reject).done(l),i.promise()},load:function(){var t=this,e=new m.Deferred,n=function(){if(!t._disposed&&(0,_.isPending)(e))return t._loadFromStore(i,e)};this._scheduleLoadCallbacks(e),this._scheduleFailCallbacks(e),this._scheduleChangedCallbacks(e);var i=this._createLoadOperation(e);return this._eventsStrategy.fireEvent("customizeStoreLoadOptions",[i]),this._loadQueue.add((function(){return"number"===typeof i.delay?t._delayedLoadTask=r.default.executeAsync(n,i.delay):n(),e.promise()})),e.promise({operationId:i.operationId})},_onPush:function(t){var e=this;if(this._reshapeOnPush)this.load();else{this._eventsStrategy.fireEvent("changing",[{changes:t}]);var n=this.group(),i=this.items(),o=0,r=this.paginate()||n?t.filter((function(t){return"update"===t.type})):t;n&&(o=Array.isArray(n)?n.length:1),this._mapFunc&&r.forEach((function(t){"insert"===t.type&&(t.data=e._mapFunc(t.data))})),u.default.applyBatch(this.store(),i,r,o,!0),this._fireChanged([{changes:t}])}},_createLoadOperation:function(t){var e=this,n=this._operationManager.add(t),i=this._createStoreLoadOptions();return t.always((function(){return e._operationManager.remove(n)})),{operationId:n,storeLoadOptions:i}},reload:function(){var t=this.store();return t instanceof c.default&&t.clearRawDataCache(),this._init(),this.load()},cancel:function(t){return this._operationManager.cancel(t)},cancelAll:function(){return this._operationManager.cancelAll()},_addSearchOptions:function(t){this._disposed||(this.store()._useDefaultSearch?this._addSearchFilter(t):(t.searchOperation=this._searchOperation,t.searchValue=this._searchValue,t.searchExpr=this._searchExpr))},_createStoreLoadOptions:function(){var t=(0,o.extend)({},this._storeLoadOptions);return this._addSearchOptions(t),this._paginate&&this._pageSize&&(t.skip=this._pageIndex*this._pageSize,t.take=this._pageSize),t.userData=this._userData,t},_addSearchFilter:function(t){var e=this._searchValue,n=this._searchOperation,i=this._searchExpr,o=[];e&&(i||(i="this"),Array.isArray(i)||(i=[i]),(0,a.each)(i,(function(t,i){o.length&&o.push("or"),o.push([i,n,e])})),t.filter?t.filter=[o,t.filter]:t.filter=o)},_loadFromStore:function(t,e){var n=this,i=function(i,r){if(!n._disposed&&(0,_.isPending)(e)){var a=(0,o.extend)((0,_.normalizeLoadResult)(i,r),t);n._eventsStrategy.fireEvent("customizeLoadResult",[a]),(0,m.when)(a.data).done((function(t){a.data=t,n._processStoreLoadResult(a,e)})).fail(e.reject)}};return t.data?(new m.Deferred).resolve(t.data).done(i):this.store().load(t.storeLoadOptions).done(i).fail(e.reject)},_processStoreLoadResult:function(t,e){var n=this,i=t.data,o=t.extra,r=t.storeLoadOptions,a=function(){return n._isLoaded=!0,n._totalCount=isFinite(o.totalCount)?o.totalCount:-1,e.resolve(i,o)};this._disposed||(i=this._applyPostProcessFunction(this._applyMapFunction(i)),(0,s.isPlainObject)(o)||(o={}),this._items=i,(!i.length||!this._paginate||this._pageSize&&i.length<this._pageSize)&&(this._isLastPage=!0),r.requireTotalCount&&!isFinite(o.totalCount)?n.store().totalCount(r).done((function(t){o.totalCount=t,a()})).fail(e.reject):a())},_applyMapFunction:function(t){return this._mapFunc?(0,_.mapDataRespectingGrouping)(t,this._mapFunc,this.group()):t},_applyPostProcessFunction:function(t){return this._postProcessFunc?this._postProcessFunc(t):t},on:function(t,e){return this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this}})},function(t,e,n){"use strict";var i=n(7),o=n(10),r=i.Deferred,a=i.when,s=o.hasWindow()?o.getWindow().Promise:Promise;s||((s=function(t){var e=new r;return t(e.resolve.bind(this),e.reject.bind(this)),e.promise()}).resolve=function(t){return(new r).resolve(t).promise()},s.reject=function(t){return(new r).reject(t).promise()},s.all=function(t){return a.apply(this,t).then((function(){return[].slice.call(arguments)}))}),t.exports=s},function(t,e,n){"use strict";var i=n(2),o=n(26),r=n(74),a=n(43),s=n(89);n(261),t.exports=s({format:function(t,e){var n=i.isString(e)&&""!==e||i.isPlainObject(e)||i.isFunction(e),o=i.isNumeric(t)||i.isDate(t);return n&&o?i.isFunction(e)?e(t):(i.isString(e)&&(e={type:e}),i.isNumeric(t)?r.format(t,e):i.isDate(t)?a.format(t,e):void 0):i.isDefined(t)?t.toString():""},getTimeFormat:function(t){return t?"longtime":"shorttime"},_normalizeFormat:function(t){return Array.isArray(t)?1===t.length?t[0]:function(e){return t.map((function(t){return a.format(e,t)})).join(" ")}:t},getDateFormatByDifferences:function(t,e){var n=[],i=e&&t.millisecond&&!(t.year||t.month||t.day);if(i){n.push((function(t){return t.getSeconds()+t.getMilliseconds()/1e3+"s"}))}else t.millisecond&&n.push("millisecond");if((t.hour||t.minute||!i&&t.second)&&n.unshift(this.getTimeFormat(t.second)),t.year&&t.month&&t.day)return e&&"month"===e?"monthandyear":(n.unshift("shortdate"),this._normalizeFormat(n));if(t.year&&t.month)return"monthandyear";if(t.year&&t.quarter)return"quarterandyear";if(t.year)return"year";if(t.quarter)return"quarter";if(t.month&&t.day){if(e){n.unshift((function(t){return a.getMonthNames("abbreviated")[t.getMonth()]+" "+a.format(t,"day")}))}else n.unshift("monthandday");return this._normalizeFormat(n)}if(t.month)return"month";if(t.day){if(e)n.unshift("day");else{n.unshift((function(t){return a.format(t,"dayofweek")+", "+a.format(t,"day")}))}return this._normalizeFormat(n)}return this._normalizeFormat(n)},getDateFormatByTicks:function(t){var e,n,i;if(t.length>1)for(e=o.getDatesDifferences(t[0],t[1]),i=1;i<t.length-1;i++)n=o.getDatesDifferences(t[i],t[i+1]),e.count<n.count&&(e=n);else e={year:!0,month:!0,day:!0,hour:t[0].getHours()>0,minute:t[0].getMinutes()>0,second:t[0].getSeconds()>0,millisecond:t[0].getMilliseconds()>0};return this.getDateFormatByDifferences(e)},getDateFormatByTickInterval:function(t,e,n){var r,a=function(t,e,n){switch(e){case"year":case"quarter":t.month=n;case"month":t.day=n;case"week":case"day":t.hour=n;case"hour":t.minute=n;case"minute":t.second=n;case"second":t.millisecond=n}};n=i.isString(n)?n.toLowerCase():n;var s,l,u,c=o.getDatesDifferences(t,e);return t!==e&&(s=c,l=t>e?e:t,!(u=t>e?t:e).getMilliseconds()&&u.getSeconds()?u.getSeconds()-l.getSeconds()===1&&(s.millisecond=!0,s.second=!1):!u.getSeconds()&&u.getMinutes()?u.getMinutes()-l.getMinutes()===1&&(s.second=!0,s.minute=!1):!u.getMinutes()&&u.getHours()?u.getHours()-l.getHours()===1&&(s.minute=!0,s.hour=!1):!u.getHours()&&u.getDate()>1?u.getDate()-l.getDate()===1&&(s.hour=!0,s.day=!1):1===u.getDate()&&u.getMonth()?u.getMonth()-l.getMonth()===1&&(s.day=!0,s.month=!1):!u.getMonth()&&u.getFullYear()&&u.getFullYear()-l.getFullYear()===1&&(s.month=!0,s.year=!1)),a(c,r=o.getDateUnitInterval(c),!0),a(c,r=o.getDateUnitInterval(n||"second"),!1),c[{week:"day"}[r]||r]=!0,this.getDateFormatByDifferences(c)}})},function(t,e,n){"use strict";var i,o=n(2),r=n(134),a=n(29),s=n(5),l=n(0),u=n(43),c=n(94),d=n(92),h=n(107),f=(i=h)&&i.__esModule?i:{default:i},p=n(7);var m=e.setFieldProperty=function(t,e,n,i){var o=t._initProperties=t._initProperties||{},r=i?n:t[e];Object.prototype.hasOwnProperty.call(o,e)&&!i||(o[e]=r),t[e]=n};e.sendRequest=function(t){return(0,r.sendRequest)(t)};var g=new Date;function _(t){return function e(n,i,o,r,a,s){var l,u;function c(t,a,s){(0,p.when)(e(n,i,o,r,a,s)).done(t.resolve)}for(r=r||[],n=n||[],l=a=a||0;l<n.length;l++){if(t&&l>a&&l%1e4===0&&new Date-g>=300)return g=new Date,u=new p.Deferred,setTimeout(c(u,l,!1),0),u;var d=n[l];if(!s){if(r.unshift(d),o&&!1===i(r,l))return;if(d.children){var h=e(d.children,i,o,r);if(t&&h)return u=new p.Deferred,h.done(c(u,l,!0)),u}}if(s=!1,!o&&!1===i(r,l))return;r.shift(),n[l]!==d&&l--}}}function v(t,e,n,i){var r=[];return Object.keys(e||[]).forEach((function(u){if(!u||0!==u.indexOf("__")){for(var c,d,h=1,f=n.length?n+"."+u:u,p=i[f],m=(0,a.compileGetter)(f),g=e[u];!(0,o.isDefined)(g)&&t[h];)g=m(t[h]),h++;!p&&(0,o.isDefined)(g)&&(p=(0,o.type)(g)),c=[{dataField:f,dataType:p,groupName:"date"===p?u:void 0,groupInterval:void 0,displayFolder:n}],"date"===p?c=c.concat((d=c[0],(0,s.map)(["year","quarter","month"],(function(t,e){return(0,l.extend)({},d,{groupInterval:t,groupIndex:e})})))):"object"===p&&(c=v(t,g,f,i)),r.push.apply(r,c)}})),r}e.foreachTree=_(!1),e.foreachTreeAsync=_(!0),e.findField=function(t,e){if(t&&(0,o.isDefined)(e))for(var n=0;n<t.length;n++){var i=t[n];if(i.name===e||i.caption===e||i.dataField===e||i.index===e)return n}return-1},e.formatValue=function(t,e){var n={value:t,valueText:t===t&&(0,c.format)(t,e.format)||""};return e.customizeText?e.customizeText.call(e,n):n.valueText},e.getCompareFunction=function(t){return function(e,n){var i=0,r=t(e),a=t(n),s=(0,o.isDefined)(r),l=(0,o.isDefined)(a);return s&&l&&(r>a?i=1:r<a&&(i=-1)),s&&!l&&(i=1),!s&&l&&(i=-1),i}},e.createPath=function(t){for(var e=[],n=t.length-1;n>=0;n--)e.push(t[n].key||t[n].value);return e},e.foreachDataLevel=function t(e,n,i,o){i=i||0,o=o||"children",e.length&&n(e,i);for(var r=0;r<e.length;r++){var a=e[r];a[o]&&a[o].length&&t(a[o],n,i+1,o)}},e.mergeArraysByMaxValue=function(t,e){for(var n=[],i=0;i<t.length;i++)n.push(Math.max(t[i]||0,e[i]||0));return n},e.getExpandedLevel=function(t,e){var n=t[e],i=0,o=("columns"===e?t.columnExpandedPaths:t.rowExpandedPaths)||[];for(t.headerName===e?i=t.path.length:t.headerName&&t.headerName!==e&&t.oppositePath?i=t.oppositePath.length:(0,s.each)(o,(function(t,e){i=Math.max(i,e.length)}));n[i+1]&&n[i].expanded;)i++;return i},e.discoverObjectFields=function(t,n){var i=e.getFieldsDataType(n);return v(t,t[0],"",i)},e.getFieldsDataType=function(t){var e={};return(0,s.each)(t,(function(t,n){e[n.dataField]=e[n.dataField]||n.dataType})),e};var y={month:function(t){return(0,u.getMonthNames)()[t-1]},quarter:function(t){return(0,u.format)(new Date(2e3,3*t-1),"quarter")},dayOfWeek:function(t){return(0,u.getDayNames)()[t]}};e.setDefaultFieldValueFormatting=function(t){if("date"===t.dataType)t.format||m(t,"format",y[t.groupInterval]);else if("number"===t.dataType){var e=(0,o.isNumeric)(t.groupInterval)&&t.groupInterval>0&&t.groupInterval;e&&!t.customizeText&&m(t,"customizeText",(function(n){var i=n.value+e,o=(0,c.format)(i,t.format);return n.valueText&&o?n.valueText+" - "+o:""}))}},e.getFiltersByPath=function(t,e){var n=[];e=e||[];for(var i=0;i<e.length;i++)n.push((0,l.extend)({},t[i],{groupIndex:null,groupName:null,filterType:"include",filterValues:[e[i]]}));return n},e.storeDrillDownMixin={createDrillDownDataSource:function(t,e){var n=this.getDrillDownItems(t,e);function i(t){return function(e){var i;return i=new p.Deferred,(0,p.when)(n).done((function(n){new f.default(n)[t](e).done(i.resolve).fail(i.reject)})).fail(i.reject),i}}return new d.DataSource({load:i("load"),totalCount:i("totalCount"),key:this.key()})}},e.capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(247),n(1236),n(1237),n(180),n(181),n(336),n(580),n(1238),n(581),n(1239),n(1240),n(1241),n(337),n(1242),n(151),n(59),n(1243),n(1244),n(1245),n(1246),n(1247),n(1248),n(1249),n(1250),n(1251),n(1252),n(1253),n(1254),n(1255),n(1256),n(1257),n(1258),r)}()},function(t,e,n){"use strict";var i=y(n(3)),o=y(n(51)),r=y(n(38)),a=y(n(213)),s=y(n(189)),l=y(n(629)),u=n(188),c=n(57),d=n(5),h=n(0),f=n(17),p=n(4),m=n(16),g=n(2),_=n(10),v=n(158);function y(t){return t&&t.__esModule?t:{default:t}}var b=s.default.abstract,w=s.default.inherit({_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{width:void 0,height:void 0,rtlEnabled:(0,o.default)().rtlEnabled,elementAttr:{},disabled:!1,integrationOptions:{}},this._useTemplates()?l.default.createDefaultOptions():{})},ctor:function(t,e){this._createElement(t),(0,u.attachInstanceToElement)(this._$element,this,this._dispose),this.callBase(e)},_createElement:function(t){this._$element=(0,i.default)(t)},_getSynchronizableOptionsForCreateComponent:function(){return["rtlEnabled","disabled","templatesRenderAsynchronously"]},_visibilityChanged:b,_dimensionChanged:b,_init:function(){this.callBase(),this._attachWindowResizeCallback(),this._initTemplateManager()},_setOptionsByDevice:function(t){this.callBase([].concat(this.constructor._classCustomRules||[],t||[]))},_isInitialOptionValue:function(t){return!(this.constructor._classCustomRules&&Object.prototype.hasOwnProperty.call(this._convertRulesToOptions(this.constructor._classCustomRules),t))&&this.callBase(t)},_attachWindowResizeCallback:function(){if(this._isDimensionChangeSupported()){var t=this._windowResizeCallBack=this._dimensionChanged.bind(this);a.default.add(t)}},_isDimensionChangeSupported:function(){return this._dimensionChanged!==b},_renderComponent:function(){this._initMarkup(),(0,_.hasWindow)()&&this._render()},_initMarkup:function(){var t=(this.option()||{}).rtlEnabled;this._renderElementAttributes(),this._toggleRTLDirection(t),this._renderVisibilityChange(),this._renderDimensions()},_render:function(){this._attachVisibilityChangeHandlers()},_renderElementAttributes:function(){var t=(this.option()||{}).elementAttr,e=(0,h.extend)({},t),n=e.class;delete e.class,this.$element().attr(e).addClass(n)},_renderVisibilityChange:function(){(this._isDimensionChangeSupported()&&this._attachDimensionChangeHandlers(),this._isVisibilityChangeSupported())&&this.$element().addClass("dx-visibility-change-handler")},_renderDimensions:function(){var t=this.$element(),e=t.get(0),n=this._getOptionValue("width",e),i=this._getOptionValue("height",e);this._isCssUpdateRequired(e,i,n)&&t.css({width:null===n?"":n,height:null===i?"":i})},_isCssUpdateRequired:function(t,e,n){return!!((0,g.isDefined)(n)||(0,g.isDefined)(e)||t.style.width||t.style.height)},_attachDimensionChangeHandlers:function(){var t=this,e=this.$element(),n="".concat(this.NAME,"VisibilityChange");v.resize.off(e,{namespace:n}),v.resize.on(e,(function(){return t._dimensionChanged()}),{namespace:n})},_attachVisibilityChangeHandlers:function(){var t=this;if(this._isVisibilityChangeSupported()){var e=this.$element(),n="".concat(this.NAME,"VisibilityChange");this._isHidden=!this._isVisible(),v.visibility.off(e,{namespace:n}),v.visibility.on(e,(function(){return t._checkVisibilityChanged("shown")}),(function(){return t._checkVisibilityChanged("hiding")}),{namespace:n})}},_isVisible:function(){return this.$element().is(":visible")},_checkVisibilityChanged:function(t){this._isVisible()&&("hiding"!==t||this._isHidden?"shown"===t&&this._isHidden&&(this._isHidden=!1,this._visibilityChanged(!0)):(this._visibilityChanged(!1),this._isHidden=!0))},_isVisibilityChangeSupported:function(){return this._visibilityChanged!==b&&(0,_.hasWindow)()},_clean:p.noop,_modelByElement:function(){var t=this.option().modelByElement,e=this.$element();return t?t(e):void 0},_invalidate:function(){if(this._isUpdateAllowed())throw r.default.Error("E0007");this._requireRefresh=!0},_refresh:function(){this._clean(),this._renderComponent()},_dispose:function(){this._templateManager&&this._templateManager.dispose(),this.callBase(),this._clean(),this._detachWindowResizeCallback()},_detachWindowResizeCallback:function(){this._isDimensionChangeSupported()&&a.default.remove(this._windowResizeCallBack)},_toggleRTLDirection:function(t){this.$element().toggleClass("dx-rtl",t)},_createComponent:function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,p.grep)(this._getSynchronizableOptionsForCreateComponent(),(function(t){return!(t in o)})),a=this.option(),s=a.integrationOptions,l=this.option(),u=l.nestedComponentOptions;u=u||p.noop;var c=(0,h.extend)({integrationOptions:s},u(this));r.forEach((function(t){return c[t]=n.option(t)})),this._extendConfig(o,c);var d=void 0;if((0,g.isString)(e)){var f=(0,i.default)(t)[e](o);d=f[e]("instance")}else t&&((d=e.getInstance(t))?d.option(o):d=new e(t,o));if(d){var _=function(t){var e=t.name,n=t.value;(0,m.inArray)(e,r)>=0&&d.option(e,n)};this.on("optionChanged",_),d.on("disposing",(function(){return n.off("optionChanged",_)}))}return d},_extendConfig:function(t,e){(0,d.each)(e,(function(e,n){!Object.prototype.hasOwnProperty.call(t,e)&&(t[e]=n)}))},_defaultActionConfig:function(){var t=this.$element(),e=this._modelByElement(t);return(0,h.extend)(this.callBase(),{context:e})},_defaultActionArgs:function(){var t=this.$element(),e=this._modelByElement(t),n=this.element();return(0,h.extend)(this.callBase(),{element:n,model:e})},_optionChanged:function(t){switch(t.name){case"width":case"height":this._renderDimensions();break;case"rtlEnabled":this._invalidate();break;case"elementAttr":this._renderElementAttributes();break;case"disabled":case"integrationOptions":break;default:this.callBase(t)}},_removeAttributes:function(t){for(var e=t.attributes,n=e.length-1;n>=0;n--){var i=e[n];if(i){var o=i.name;o.indexOf("aria-")&&-1===o.indexOf("dx-")&&"role"!==o&&"style"!==o&&"tabindex"!==o||t.removeAttribute(o)}}},_removeClasses:function(t){t.className=t.className.split(" ").filter((function(t){return 0!==t.lastIndexOf("dx-",0)})).join(" ")},_updateDOMComponent:function(t){t?this._renderComponent():this._requireRefresh&&(this._requireRefresh=!1,this._refresh())},endUpdate:function(){var t=this._isInitializingRequired();this.callBase(),this._isUpdateAllowed()&&this._updateDOMComponent(t)},$element:function(){return this._$element},element:function(){var t=this.$element();return(0,f.getPublicElement)(t)},dispose:function(){var t=this.$element().get(0);(0,c.cleanDataRecursive)(t,!0),t.textContent="",this._removeAttributes(t),this._removeClasses(t)},resetOption:function(t){if(this.callBase(t),"width"===t||"height"===t){var e=this.initialOption(t);!(0,g.isDefined)(e)&&this.$element().css(t,"")}},_getAnonymousTemplateName:function(){},_initTemplateManager:function(){if(!this._templateManager&&this._useTemplates()){var t=this.option().integrationOptions,e=(void 0===t?{}:t).createTemplate;this._templateManager=new l.default(e,this._getAnonymousTemplateName()),this._initTemplates()}},_initTemplates:function(){var t=this,e=this._templateManager.extractTemplates(this.$element()),n=e.templates,i=e.anonymousTemplateMeta,o=this.option("integrationOptions.templates.".concat(i.name));n.forEach((function(e){var n=e.name,i=e.template;t._options.silent("integrationOptions.templates.".concat(n),i)})),i.name&&!o&&this._options.silent("integrationOptions.templates.".concat(i.name),i.template)},_getTemplateByOption:function(t){return this._getTemplate(this.option(t))},_getTemplate:function(t){var e=this.option("integrationOptions.templates"),n=this.option("templatesRenderAsynchronously"),i=this.option("integrationOptions.skipTemplates");return this._templateManager.getTemplate(t,e,{isAsyncTemplate:n,skipTemplates:i},this)},_saveTemplate:function(t,e){this._setOptionWithoutOptionChange("integrationOptions.templates."+t,this._templateManager._createTemplate(e))},_useTemplates:function(){return!0}});w.getInstance=function(t){return(0,u.getInstanceByElement)((0,i.default)(t),this)},w.defaultOptions=function(t){this._classCustomRules=this._classCustomRules||[],this._classCustomRules.push(t)},t.exports=w,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EmptyTemplate=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(156);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.EmptyTemplate=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,i,o=d(a);function a(){return l(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"_renderCore",value:function(){return(0,r.default)()}}])&&u(e.prototype,n),i&&u(e,i),a}(a.TemplateBase)},function(t,e,n){"use strict";var i=n(92).DataSource,o=n(0).extend,r=n(100).normalizeDataSourceOptions,a={postCtor:function(){this.on("disposing",function(){this._disposeDataSource()}.bind(this))},_refreshDataSource:function(){this._initDataSource(),this._loadDataSource()},_initDataSource:function(){var t,e,n="_getSpecificDataSourceOption"in this?this._getSpecificDataSourceOption():this.option("dataSource");this._disposeDataSource(),n&&(n instanceof i?(this._isSharedDataSource=!0,this._dataSource=n):(t="_dataSourceOptions"in this?this._dataSourceOptions():{},e=this._dataSourceType?this._dataSourceType():i,n=r(n,{fromUrlLoadMode:"_dataSourceFromUrlLoadMode"in this&&this._dataSourceFromUrlLoadMode()}),this._dataSource=new e(o(!0,{},t,n))),"_normalizeDataSource"in this&&(this._dataSource=this._normalizeDataSource(this._dataSource)),this._addDataSourceHandlers())},_addDataSourceHandlers:function(){"_dataSourceChangedHandler"in this&&this._addDataSourceChangeHandler(),"_dataSourceLoadErrorHandler"in this&&this._addDataSourceLoadErrorHandler(),"_dataSourceLoadingChangedHandler"in this&&this._addDataSourceLoadingChangedHandler(),this._addReadyWatcher()},_addReadyWatcher:function(){this._dataSource.on("loadingChanged",function(t){this._ready&&this._ready(!t)}.bind(this))},_addDataSourceChangeHandler:function(){var t=this._dataSource;this._proxiedDataSourceChangedHandler=function(e){this._dataSourceChangedHandler(t.items(),e)}.bind(this),t.on("changed",this._proxiedDataSourceChangedHandler)},_addDataSourceLoadErrorHandler:function(){this._proxiedDataSourceLoadErrorHandler=this._dataSourceLoadErrorHandler.bind(this),this._dataSource.on("loadError",this._proxiedDataSourceLoadErrorHandler)},_addDataSourceLoadingChangedHandler:function(){this._proxiedDataSourceLoadingChangedHandler=this._dataSourceLoadingChangedHandler.bind(this),this._dataSource.on("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)},_loadDataSource:function(){if(this._dataSource){var t=this._dataSource;t.isLoaded()?this._proxiedDataSourceChangedHandler&&this._proxiedDataSourceChangedHandler():t.load()}},_loadSingle:function(t,e){return t="this"===t?this._dataSource.key()||"this":t,this._dataSource.loadSingle(t,e)},_isLastPage:function(){return!this._dataSource||this._dataSource.isLastPage()||!this._dataSource._pageSize},_isDataSourceLoading:function(){return this._dataSource&&this._dataSource.isLoading()},_disposeDataSource:function(){this._dataSource&&(this._isSharedDataSource?(delete this._isSharedDataSource,this._proxiedDataSourceChangedHandler&&this._dataSource.off("changed",this._proxiedDataSourceChangedHandler),this._proxiedDataSourceLoadErrorHandler&&this._dataSource.off("loadError",this._proxiedDataSourceLoadErrorHandler),this._proxiedDataSourceLoadingChangedHandler&&this._dataSource.off("loadingChanged",this._proxiedDataSourceLoadingChangedHandler)):this._dataSource.dispose(),delete this._dataSource,delete this._proxiedDataSourceChangedHandler,delete this._proxiedDataSourceLoadErrorHandler,delete this._proxiedDataSourceLoadingChangedHandler)},getDataSource:function(){return this._dataSource||null}};t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.normalizeDataSourceOptions=e.normalizeLoadResult=e.mapDataRespectingGrouping=e.normalizeStoreLoadOptionAccessorArguments=e.isPending=e.CANCELED_TOKEN=void 0;var i=n(134),o=d(n(192)),r=d(n(107)),a=n(5),s=d(n(191)),l=n(0),u=n(2),c=n(60);function d(t){return t&&t.__esModule?t:{default:t}}e.CANCELED_TOKEN="canceled",e.isPending=function(t){return"pending"===t.state()},e.normalizeStoreLoadOptionAccessorArguments=function(t){switch(t.length){case 0:return;case 1:return t[0]}return[].slice.call(t)};var h=function(t,e,n){return(0,a.map)(t,(function(t){var i={key:t.key,items:f(t.items,e-1,n)};return"aggregates"in t&&(i.aggregates=t.aggregates),i}))},f=function(t,e,n){return Array.isArray(t)?e?h(t,e,n):(0,a.map)(t,n):t},p=(e.mapDataRespectingGrouping=function(t,e,n){var i=n?(0,c.normalizeSortingInfo)(n).length:0;return f(t,i,e)},e.normalizeLoadResult=function(t,e){var n;return(null===(n=t)||void 0===n?void 0:n.data)&&(e=t,t=t.data),Array.isArray(t)||(t=[t]),{data:t,extra:e}},function(t,e){return new s.default({load:function(){return(0,i.sendRequest)({url:t,dataType:"json"})},loadMode:null===e||void 0===e?void 0:e.fromUrlLoadMode})});e.normalizeDataSourceOptions=function(t,e){var n;return"string"===typeof t&&(t={paginate:!1,store:p(t,e)}),void 0===t&&(t=[]),void 0===(t=Array.isArray(t)||t instanceof o.default?{store:t}:(0,l.extend)({},t)).store&&(t.store=[]),n=t.store,"load"in t?n=function(t){var e={};return(0,a.each)(["useDefaultSearch","key","load","loadMode","cacheRawData","byKey","lookup","totalCount","insert","update","remove"],(function(){e[this]=t[this],delete t[this]})),new s.default(e)}(t):Array.isArray(n)?n=new r.default(n):(0,u.isPlainObject)(n)&&(n=function(t){var e=t.type;return delete t.type,o.default.create(e,t)}((0,l.extend)({},n))),t.store=n,t}},function(t,e,n){"use strict";var i=n(3),o=n(57),r=n(16).wrapToArray,a=n(16).inArray,s=n(5),l=n(17).contains,u=n(114),c=n(11),d=n(262),h=n(131),f="dxdragenter",p="dxdragleave",m="dxdrop",g=[],_=[],v=[],y={setup:function(t,e){-1!==a(t,g)||(g.push(t),_.push([]),v.push(e||{}))},add:function(t,e){var n=a(t,g);this.updateEventsCounter(t,e.type,1);var i=e.selector;-1===a(i,_[n])&&_[n].push(i)},updateEventsCounter:function(t,e,n){if([f,p,m].indexOf(e)>-1){var i=o.data(t,"dxDragEventsCount")||0;o.data(t,"dxDragEventsCount",Math.max(0,i+n))}},remove:function(t,e){this.updateEventsCounter(t,e.type,-1)},teardown:function(t){if(!o.data(t,"dxDragEventsCount")){var e=a(t,g);g.splice(e,1),_.splice(e,1),v.splice(e,1),o.removeData(t,"dxDragEventsCount")}}};u(f,y),u(p,y),u(m,y);h({emitter:d.inherit({ctor:function(t){this.callBase(t),this.direction="both"},_init:function(t){this._initEvent=t},_start:function(t){t=this._fireEvent("dxdragstart",this._initEvent),this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset;var e=r(t.targetElements||(null===t.targetElements?[]:g));this._dropTargets=s.map(e,(function(t){return i(t).get(0)}))},_move:function(t){var e=c.eventData(t),n=this._calculateOffset(e);t=this._fireEvent("dxdrag",t,{offset:n}),this._processDropTargets(t),t._cancelPreventDefault||t.preventDefault()},_calculateOffset:function(t){return{x:this._calculateXOffset(t),y:this._calculateYOffset(t)}},_calculateXOffset:function(t){if("vertical"!==this.direction){var e=t.x-this._startEventData.x;return this._fitOffset(e,this._maxLeftOffset,this._maxRightOffset)}return 0},_calculateYOffset:function(t){if("horizontal"!==this.direction){var e=t.y-this._startEventData.y;return this._fitOffset(e,this._maxTopOffset,this._maxBottomOffset)}return 0},_fitOffset:function(t,e,n){return null!=e&&(t=Math.max(t,-e)),null!=n&&(t=Math.min(t,n)),t},_processDropTargets:function(t){var e=this._findDropTarget(t);e===this._currentDropTarget||(this._fireDropTargetEvent(t,p),this._currentDropTarget=e,this._fireDropTargetEvent(t,f))},_fireDropTargetEvent:function(t,e){if(this._currentDropTarget){var n={type:e,originalEvent:t,draggingElement:this._$element.get(0),target:this._currentDropTarget};c.fireEvent(n)}},_findDropTarget:function(t){var e,n=this;return s.each(g,(function(o,r){if(n._checkDropTargetActive(r)){var l=i(r);s.each(function(t){var e=a(t.get(0),g),n=_[e].filter((function(t){return t})),i=t.find(n.join(", "));return-1!==a(void 0,_[e])&&(i=i.add(t)),i}(l),(function(o,r){var s=i(r);n._checkDropTarget(function(t){var e=a(t.get(0),g);return v[e]}(l),s,t)&&(e=r)}))}})),e},_checkDropTargetActive:function(t){var e=!1;return s.each(this._dropTargets,(function(n,i){return!(e=e||i===t||l(i,t))})),e},_checkDropTarget:function(t,e,n){if(e.get(0)===i(n.target).get(0))return!1;var o,r,a=(r=e,(o=t).itemPositionFunc?o.itemPositionFunc(r):r.offset());if(n.pageX<a.left)return!1;if(n.pageY<a.top)return!1;var s=function(t,e){return t.itemSizeFunc?t.itemSizeFunc(e):{width:e.get(0).getBoundingClientRect().width,height:e.get(0).getBoundingClientRect().height}}(t,e);return!(n.pageX>a.left+s.width)&&(!(n.pageY>a.top+s.height)&&(!(t.checkDropTarget&&!t.checkDropTarget(e,n))&&e))},_end:function(t){var e=c.eventData(t);this._fireEvent("dxdragend",t,{offset:this._calculateOffset(e)}),this._fireDropTargetEvent(t,m),delete this._currentDropTarget}}),events:["dxdragstart","dxdrag","dxdragend"]}),e.move="dxdrag",e.start="dxdragstart",e.end="dxdragend",e.enter=f,e.leave=p,e.drop=m},function(t,e,n){"use strict";t.exports=n(665),t.exports.default=t.exports},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=S(n(3)),r=S(n(6)),a=S(n(58)),s=S(n(31)),l=S(n(4)),u=S(n(2)),c=n(0),d=n(17),h=S(n(10)),f=S(n(15)),p=S(n(18)),m=S(n(8)),g=S(n(97)),_=S(n(91)),v=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=C();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),y=S(n(268)),b=S(n(382)),w=S(n(267)),x=n(7);function C(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return C=function(){return t},t}function S(t){return t&&t.__esModule?t:{default:t}}var k="dxScrollable",I="vertical",T=function(){return[{device:function(){return!a.default.nativeScrolling},options:{useNative:!1}},{device:function(t){return!p.default.isSimulator()&&"desktop"===p.default.real().deviceType&&"generic"===t.platform},options:{bounceEnabled:!1,scrollByThumb:!0,scrollByContent:a.default.touch,showScrollbar:"onHover"}}]},E=g.default.inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{disabled:!1,onScroll:null,direction:I,showScrollbar:"onScroll",useNative:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,onUpdated:null,onStart:null,onEnd:null,onBounce:null,onStop:null,useSimulatedScrollbar:!1,useKeyboard:!0,inertiaEnabled:!0,pushBackValue:0,updateManually:!1})},_defaultOptionsRules:function(){return this.callBase().concat(T(),[{device:function(){return a.default.nativeScrolling&&"android"===p.default.real().platform&&!s.default.mozilla},options:{useSimulatedScrollbar:!0}},{device:function(){return"ios"===p.default.real().platform},options:{pushBackValue:1}}])},_initOptions:function(t){this.callBase(t),"useSimulatedScrollbar"in t||this._setUseSimulatedScrollbar()},_setUseSimulatedScrollbar:function(){this.initialOption("useSimulatedScrollbar")||this.option("useSimulatedScrollbar",!this.option("useNative"))},_init:function(){this.callBase(),this._initScrollableMarkup(),this._locked=!1},_visibilityChanged:function(t){t?(this.update(),this._updateRtlPosition(),this._savedScrollOffset&&this.scrollTo(this._savedScrollOffset),delete this._savedScrollOffset):this._savedScrollOffset=this.scrollOffset()},_initScrollableMarkup:function(){var t=this.$element().addClass("dx-scrollable"),e=this._$container=(0,o.default)("<div>").addClass("dx-scrollable-container"),n=this._$wrapper=(0,o.default)("<div>").addClass("dx-scrollable-wrapper"),i=this._$content=(0,o.default)("<div>").addClass("dx-scrollable-content");f.default.hasDocumentProperty("onbeforeactivate")&&s.default.msie&&s.default.version<12&&r.default.on(t,v.addNamespace("beforeactivate",k),(function(t){(0,o.default)(t.target).is(_.default.focusable)||t.preventDefault()})),i.append(t.contents()).appendTo(e),e.appendTo(n),n.appendTo(t)},_dimensionChanged:function(){this.update()},_initMarkup:function(){this.callBase(),this._renderDirection()},_render:function(){this._renderStrategy(),this._attachEventHandlers(),this._renderDisabledState(),this._createActions(),this.update(),this.callBase(),this._updateRtlPosition()},_updateRtlPosition:function(){var t=this;this._updateBounds(),this.option("rtlEnabled")&&this.option("direction")!==I&&l.default.deferUpdate((function(){var e=t._container().get(0),n=e.scrollWidth-e.clientWidth;l.default.deferRender((function(){t.scrollTo({left:n})}))}))},_updateBounds:function(){this._strategy.updateBounds()},_attachEventHandlers:function(){var t=this._strategy,e={getDirection:t.getDirection.bind(t),validate:this._validate.bind(this),isNative:this.option("useNative"),scrollTarget:this._$container};r.default.off(this._$wrapper,"."+k),r.default.on(this._$wrapper,v.addNamespace(y.default.init,k),e,this._initHandler.bind(this)),r.default.on(this._$wrapper,v.addNamespace(y.default.start,k),t.handleStart.bind(t)),r.default.on(this._$wrapper,v.addNamespace(y.default.move,k),t.handleMove.bind(t)),r.default.on(this._$wrapper,v.addNamespace(y.default.end,k),t.handleEnd.bind(t)),r.default.on(this._$wrapper,v.addNamespace(y.default.cancel,k),t.handleCancel.bind(t)),r.default.on(this._$wrapper,v.addNamespace(y.default.stop,k),t.handleStop.bind(t)),r.default.off(this._$container,"."+k),r.default.on(this._$container,v.addNamespace("scroll",k),t.handleScroll.bind(t))},_validate:function(t){return!this._isLocked()&&(this._updateIfNeed(),this._strategy.validate(t))},_initHandler:function(){var t=this._strategy;t.handleInit.apply(t,arguments)},_renderDisabledState:function(){this.$element().toggleClass("dx-scrollable-disabled",this.option("disabled")),this.option("disabled")?this._lock():this._unlock()},_renderDirection:function(){this.$element().removeClass("dx-scrollable-horizontal").removeClass("dx-scrollable-"+I).removeClass("dx-scrollable-both").addClass("dx-scrollable-"+this.option("direction"))},_renderStrategy:function(){this._createStrategy(),this._strategy.render(),this.$element().data("dxScrollableStrategy",this._strategy)},_createStrategy:function(){this._strategy=this.option("useNative")?new w.default(this):new b.default.SimulatedStrategy(this)},_createActions:function(){this._strategy&&this._strategy.createActions()},_clean:function(){this._strategy&&this._strategy.dispose()},_optionChanged:function(t){switch(t.name){case"onStart":case"onEnd":case"onStop":case"onUpdated":case"onScroll":case"onBounce":this._createActions();break;case"direction":this._resetInactiveDirection(),this._invalidate();break;case"useNative":this._setUseSimulatedScrollbar(),this._invalidate();break;case"inertiaEnabled":case"scrollByContent":case"scrollByThumb":case"bounceEnabled":case"useKeyboard":case"showScrollbar":case"useSimulatedScrollbar":case"pushBackValue":this._invalidate();break;case"disabled":this._renderDisabledState(),this._strategy&&this._strategy.disabledChanged();break;case"updateManually":break;case"width":this.callBase(t),this._updateRtlPosition();break;default:this.callBase(t)}},_resetInactiveDirection:function(){var t=this._getInactiveProp();if(t&&h.default.hasWindow()){var e=this.scrollOffset();e[t]=0,this.scrollTo(e)}},_getInactiveProp:function(){var t=this.option("direction");return t===I?"left":"horizontal"===t?"top":void 0},_location:function(){return this._strategy.location()},_normalizeLocation:function(t){if(u.default.isPlainObject(t)){var e=l.default.ensureDefined(t.left,t.x),n=l.default.ensureDefined(t.top,t.y);return{left:u.default.isDefined(e)?-e:void 0,top:u.default.isDefined(n)?-n:void 0}}var i=this.option("direction");return{left:i!==I?-t:void 0,top:"horizontal"!==i?-t:void 0}},_isLocked:function(){return this._locked},_lock:function(){this._locked=!0},_unlock:function(){this.option("disabled")||(this._locked=!1)},_isDirection:function(t){var e=this.option("direction");return t===I?"horizontal"!==e:"horizontal"===t?e!==I:e===t},_updateAllowedDirection:function(){var t=this._strategy._allowedDirections();this._isDirection("both")&&t.vertical&&t.horizontal?this._allowedDirectionValue="both":this._isDirection("horizontal")&&t.horizontal?this._allowedDirectionValue="horizontal":this._isDirection(I)&&t.vertical?this._allowedDirectionValue=I:this._allowedDirectionValue=null},_allowedDirection:function(){return this._allowedDirectionValue},_container:function(){return this._$container},$content:function(){return this._$content},content:function(){return(0,d.getPublicElement)(this._$content)},scrollOffset:function(){var t=this._location();return{top:-t.top,left:-t.left}},scrollTop:function(){return this.scrollOffset().top},scrollLeft:function(){return this.scrollOffset().left},clientHeight:function(){return this._$container.height()},scrollHeight:function(){return this.$content().outerHeight()-2*this._strategy.verticalOffset()},clientWidth:function(){return this._$container.width()},scrollWidth:function(){return this.$content().outerWidth()},update:function(){if(this._strategy)return(0,x.when)(this._strategy.update()).done(function(){this._updateAllowedDirection()}.bind(this))},scrollBy:function(t){((t=this._normalizeLocation(t)).top||t.left)&&(this._updateIfNeed(),this._strategy.scrollBy(t))},scrollTo:function(t){t=this._normalizeLocation(t),this._updateIfNeed();var e=this._location();this.option("useNative")||(t=this._strategy._applyScaleRatio(t),e=this._strategy._applyScaleRatio(e));var n=this._normalizeLocation({left:e.left-l.default.ensureDefined(t.left,e.left),top:e.top-l.default.ensureDefined(t.top,e.top)});(n.top||n.left)&&this._strategy.scrollBy(n)},scrollToElement:function(t,e){var n=(0,o.default)(t),i=this.$content().find(t).length,r=n.parents(".dx-scrollable").length-n.parents(".dx-scrollable-content").length===0;if(i&&r){var a={top:0,left:0},s=this.option("direction");s!==I&&(a.left=this.getScrollElementPosition(n,"horizontal",e)),"horizontal"!==s&&(a.top=this.getScrollElementPosition(n,I,e)),this.scrollTo(a)}},scrollToElementTopLeft:function(t){var e=(0,o.default)(t),n=this.$content().find(t).length,i=e.parents(".dx-scrollable").length-e.parents(".dx-scrollable-content").length===0;if(n&&i){var r={top:0,left:0},a=this.option("direction");if(a!==I){var s=this._elementPositionRelativeToContent(e,"left");r.left=!0===this.option("rtlEnabled")?s+e.width()-this.clientWidth():s}"horizontal"!==a&&(r.top=this._elementPositionRelativeToContent(e,"top")),this.scrollTo(r)}},getScrollElementPosition:function(t,e,n){n=n||{};var i=e===I,o=(i?n.top:n.left)||0,r=(i?n.bottom:n.right)||0,a=i?this._strategy.verticalOffset():0,s=this._elementPositionRelativeToContent(t,i?"top":"left")-a,l=t[i?"outerHeight":"outerWidth"](),u=i?this.scrollTop():this.scrollLeft(),c=u-s+o,d=u-s-l+(i?this.clientHeight():this.clientWidth())-r;return c<=0&&d>=0?u:u-(Math.abs(c)>Math.abs(d)?d:c)},_elementPositionRelativeToContent:function(t,e){for(var n=0;this._hasScrollContent(t);)n+=t.position()[e],t=t.offsetParent();return n},_hasScrollContent:function(t){var e=this.$content();return t.closest(e).length&&!t.is(e)},_updateIfNeed:function(){this.option("updateManually")||this.update()},_useTemplates:function(){return!1}});(0,m.default)(k,E),t.exports=E,t.exports.deviceDependentOptions=T},function(t,e,n){"use strict";var i=n(23),o=n(850);t.exports.getDiagram=function(){if(!o)throw i.Error("E1041","devexpress-diagram");return o}},function(t,e,n){"use strict";var i=n(84),o=n(22);function r(t,e){return 55296===(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320===(64512&t.charCodeAt(e+1)))}function a(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function s(t){return 1===t.length?"0"+t:t}function l(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"===typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t),o=0;o<t.length;o+=2)n.push(parseInt(t[o]+t[o+1],16))}else for(var i=0,o=0;o<t.length;o++){var a=t.charCodeAt(o);a<128?n[i++]=a:a<2048?(n[i++]=a>>6|192,n[i++]=63&a|128):r(t,o)?(a=65536+((1023&a)<<10)+(1023&t.charCodeAt(++o)),n[i++]=a>>18|240,n[i++]=a>>12&63|128,n[i++]=a>>6&63|128,n[i++]=63&a|128):(n[i++]=a>>12|224,n[i++]=a>>6&63|128,n[i++]=63&a|128)}else for(o=0;o<t.length;o++)n[o]=0|t[o];return n},e.toHex=function(t){for(var e="",n=0;n<t.length;n++)e+=s(t[n].toString(16));return e},e.htonl=a,e.toHex32=function(t,e){for(var n="",i=0;i<t.length;i++){var o=t[i];"little"===e&&(o=a(o)),n+=l(o.toString(16))}return n},e.zero2=s,e.zero8=l,e.join32=function(t,e,n,o){var r=n-e;i(r%4===0);for(var a=new Array(r/4),s=0,l=e;s<a.length;s++,l+=4){var u;u="big"===o?t[l]<<24|t[l+1]<<16|t[l+2]<<8|t[l+3]:t[l+3]<<24|t[l+2]<<16|t[l+1]<<8|t[l],a[s]=u>>>0}return a},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,o=0;i<t.length;i++,o+=4){var r=t[i];"big"===e?(n[o]=r>>>24,n[o+1]=r>>>16&255,n[o+2]=r>>>8&255,n[o+3]=255&r):(n[o+3]=r>>>24,n[o+2]=r>>>16&255,n[o+1]=r>>>8&255,n[o]=255&r)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<<e|t>>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,o){return t+e+n+i+o>>>0},e.sum64=function(t,e,n,i){var o=t[e],r=i+t[e+1]>>>0,a=(r<i?1:0)+n+o;t[e]=a>>>0,t[e+1]=r},e.sum64_hi=function(t,e,n,i){return(e+i>>>0<e?1:0)+t+n>>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,o,r,a,s){var l=0,u=e;return l+=(u=u+i>>>0)<e?1:0,l+=(u=u+r>>>0)<r?1:0,t+n+o+a+(l+=(u=u+s>>>0)<s?1:0)>>>0},e.sum64_4_lo=function(t,e,n,i,o,r,a,s){return e+i+r+s>>>0},e.sum64_5_hi=function(t,e,n,i,o,r,a,s,l,u){var c=0,d=e;return c+=(d=d+i>>>0)<e?1:0,c+=(d=d+r>>>0)<r?1:0,c+=(d=d+s>>>0)<s?1:0,t+n+o+a+l+(c+=(d=d+u>>>0)<u?1:0)>>>0},e.sum64_5_lo=function(t,e,n,i,o,r,a,s,l,u){return e+i+r+s+u>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},function(t,e,n){"use strict";var i=n(3),o=n(77).add,r=n(39)(),a=i(),s=function(){var t;return function(e){if(!arguments.length)return t;var n=i(e);a=n;var o=!!n.length,l=s();t=o?n:i("body"),r.fire(o?s():i(),l)}}();o((function(){s(".dx-viewport")})),e.value=s,e.changeCallback=r,e.originalViewPort=function(){return a}},function(t,e,n){"use strict";var i=n(60),o=l(n(61)),r=n(78),a=l(n(192)),s=l(n(190));function l(t){return t&&t.__esModule?t:{default:t}}var u=a.default.inherit({ctor:function(t){t=Array.isArray(t)?{data:t}:t||{},this.callBase(t);var e=t.data;if(e&&!Array.isArray(e))throw r.errors.Error("E4006");this._array=e||[]},createQuery:function(){return(0,o.default)(this._array,{errorHandler:this._errorHandler})},_byKeyImpl:function(t){var e=s.default.indexByKey(this,this._array,t);return-1===e?(0,i.rejectedPromise)(r.errors.Error("E4009")):(0,i.trivialPromise)(this._array[e])},_insertImpl:function(t){return s.default.insert(this,this._array,t)},_pushImpl:function(t){s.default.applyBatch(this,this._array,t)},_updateImpl:function(t,e){return s.default.update(this,this._array,t,e)},_removeImpl:function(t){return s.default.remove(this,this._array,t)},clear:function(){this._eventsStrategy.fireEvent("modifying"),this._array=[],this._eventsStrategy.fireEvent("modified")}},"array");t.exports=u,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(675);n(8)("dxList",i),t.exports=i,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(414),r=(i=o)&&i.__esModule?i:{default:i};t.exports=r.default,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(4),r=n(2),a=r.isDefined,s=r.isPromise,l=n(0).extend,u=n(16).inArray,c=n(5).each,d=n(7),h=n(17).getPublicElement,f=d.Deferred,p=n(38),m=n(15),g=n(79),_=n(12),v=n(8),y=n(263),b=y.inherit({_supportedKeys:function(){var t=this,e=this.callBase(),n=function(t){this._isEditable()?this._valueSubstituted()&&(this._preventFiltering=!0):this.option("showClearButton")&&(t.preventDefault(),this.reset()),this._preventSubstitution=!0},i=function(){t.option("searchEnabled")&&t._valueSubstituted()&&t._searchHandler()};return l({},e,{tab:function(){this.option("opened")&&"instantly"===this.option("applyValueMode")&&this._cleanInputSelection(),this._wasSearch()&&this._clearFilter(),e.tab&&e.tab.apply(this,arguments)},upArrow:function(t){if(e.upArrow&&e.upArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(t),!0},downArrow:function(t){if(e.downArrow&&e.downArrow.apply(this,arguments))return this.option("opened")||this._setNextValue(t),!0},leftArrow:function(){i(),e.leftArrow&&e.leftArrow.apply(this,arguments)},rightArrow:function(){i(),e.rightArrow&&e.rightArrow.apply(this,arguments)},home:function(){i(),e.home&&e.home.apply(this,arguments)},end:function(){i(),e.end&&e.end.apply(this,arguments)},escape:function(){var t=e.escape&&e.escape.apply(this,arguments);return this._cancelEditing(),!a(t)||t},enter:function(t){var n=this.option("opened"),i=this._input().val().trim(),o=i&&this._list&&!this._list.option("focusedElement");if(!i&&this.option("value")&&this.option("allowClearing"))this.option({selectedItem:null,value:null}),this.close();else{if(this.option("acceptCustomValue"))return t.preventDefault(),o&&(this._valueChangeEventHandler(t),n&&this._toggleOpenState()),n;if(e.enter&&e.enter.apply(this,arguments))return n}},space:function(t){var e=this.option("opened"),n=this.option("searchEnabled"),i=this.option("acceptCustomValue");if(e&&!n&&!i)return t.preventDefault(),this._valueChangeEventHandler(t),!0},backspace:n,del:n})},_getDefaultOptions:function(){return l(this.callBase(),{placeholder:_.format("Select"),fieldTemplate:null,valueChangeEvent:"change",acceptCustomValue:!1,onCustomItemCreating:function(t){a(t.customItem)||(t.customItem=t.text)},showSelectionControls:!1,autocompletionEnabled:!0,allowClearing:!0,tooltipEnabled:!1,openOnFieldClick:!0,showDropDownButton:!0,displayCustomValue:!1,_isAdaptablePopupPosition:!1,useInkRipple:!1,useHiddenSubmitElement:!0})},_init:function(){this.callBase(),this._initCustomItemCreatingAction()},_initMarkup:function(){this.$element().addClass("dx-selectbox"),this._renderTooltip(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._$container.addClass("dx-selectbox-container")},_renderInkRipple:function(){this._inkRipple=g.render()},_toggleActiveState:function(t,e,n){if(this.callBase.apply(this,arguments),this._inkRipple&&!this._isEditable()){var i={element:this._inputWrapper(),event:n};e?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_createPopup:function(){this.callBase(),this._popup.$element().addClass("dx-selectbox-popup"),this._popup.overlayContent().attr("tabindex",-1)},_popupWrapperClass:function(){return this.callBase()+" dx-selectbox-popup-wrapper"},_cancelEditing:function(){!this.option("searchEnabled")&&this._list&&(this._focusListElement(null),this._updateField(this.option("selectedItem")))},_renderOpenedState:function(){this.callBase(),this.option("opened")&&(this._scrollToSelectedItem(),this._focusSelectedElement())},_focusSelectedElement:function(){if(this._searchValue()){var t=this._list._itemElements(),e=u(this.option("selectedItem"),this.option("items")),n=e>=0&&!this._isCustomItemSelected()?t.eq(e):null;this._focusListElement(n)}else this._focusListElement(null)},_renderFocusedElement:function(){if(this._list)if(this._searchValue()&&!this.option("acceptCustomValue")){var t=this._list._itemElements().not(".dx-state-disabled").eq(0);this._focusListElement(t)}else this._focusListElement(null)},_focusListElement:function(t){this._preventInputValueRender=!0,this._list.option("focusedElement",h(t)),delete this._preventInputValueRender},_scrollToSelectedItem:function(){this._list&&this._list.scrollToItem(this._list.option("selectedItem"))},_listContentReadyHandler:function(){this.callBase(),this._dataSource&&this._dataSource.paginate()&&this._needPopupRepaint()||this._scrollToSelectedItem()},_renderValue:function(){return this._renderInputValue(),this._setSubmitValue(),(new f).resolve()},_renderInputValue:function(){return this.callBase().always(function(){this._renderInputValueAsync()}.bind(this))},_renderInputValueAsync:function(){this._renderTooltip(),this._renderInputValueImpl().always(function(){this._refreshSelected()}.bind(this))},_renderInputValueImpl:function(){return this._renderField(),(new f).resolve()},_setNextItem:function(t){var e=this._calcNextItem(t),n=this._valueGetter(e);this._setValue(n)},_setNextValue:function(t){(this._dataSource.isLoaded()?(new f).resolve():this._dataSource.load()).done(function(){var e=this._getSelectedIndex(),n=this._dataSource.pageSize(),i=this._dataSource.isLastPage(),o=e===this._items().length-1;this._saveValueChangeEvent(t);var r="ArrowDown"===t.key?1:-1;n&&!i&&o&&r>0?(this._popup||this._createPopup(),this._dataSource.isLoading()||this._list._loadNextPage().done(this._setNextItem.bind(this,r))):this._setNextItem(r)}.bind(this))},_setSelectedItem:function(t){var e=!this._isCustomValueAllowed()&&void 0===t;this.callBase(e?null:t),e||this._isEditable()&&!this._isCustomItemSelected()||this._setListOption("selectedItem",this.option("selectedItem"))},_isCustomValueAllowed:function(){return this.option("acceptCustomValue")||this.callBase()},_displayValue:function(t){return t=!a(t)&&this._isCustomValueAllowed()?this.option("value"):t,this.callBase(t)},_listConfig:function(){var t=l(this.callBase(),{pageLoadMode:"scrollBottom",onSelectionChanged:this._getSelectionChangeHandler(),selectedItem:this.option("selectedItem"),onFocusedItemChanged:this._listFocusedItemChangeHandler.bind(this)});return this.option("showSelectionControls")&&l(t,{showSelectionControls:!0,selectionByClick:!0}),t},_listFocusedItemChangeHandler:function(t){if(!this._preventInputValueRender){var e=t.component,n=i(e.option("focusedElement")),o=e._getItemData(n);this._updateField(o)}},_updateField:function(t){if(!this._getTemplateByOption("fieldTemplate")||!this.option("fieldTemplate")){var e=this._displayGetter(t);return this.option("text",e),void this._renderDisplayText(e)}this._renderField()},_getSelectionChangeHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):o.noop},_selectionChangeHandler:function(t){c(t.addedItems||[],function(t,e){this._setValue(this._valueGetter(e))}.bind(this))},_getActualSearchValue:function(){return this._dataSource.searchValue()},_toggleOpenState:function(t){if(!this.option("disabled")){if((t=arguments.length?t:!this.option("opened"))||this._restoreInputText(!0),this._wasSearch()&&t){this._wasSearch(!1);var e=this.option("showDataBeforeSearch")||0===this.option("minSearchLength");if(e&&this._dataSource){if(this._searchTimer)return;var n=this._getActualSearchValue();n&&this._wasSearch(!0),this._filterDataSource(n||null)}else this._setListOption("items",[])}t&&this._scrollToSelectedItem(),this.callBase(t)}},_renderTooltip:function(){this.option("tooltipEnabled")&&this.$element().attr("title",this.option("displayValue"))},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_isValueEqualInputText:function(){var t=this.option("selectedItem"),e=this._displayGetter(t);return(e?String(e):"")===this._searchValue()},_popupHidingHandler:function(){this._isValueEqualInputText()&&this._cancelEditing(),this.callBase()},_restoreInputText:function(t){this.option("readOnly")||this._loadItemDeferred&&this._loadItemDeferred.always(function(){var e=this.option("selectedItem");this.option("acceptCustomValue")?t||(this._updateField(e),this._clearFilter()):this.option("searchEnabled")&&!this._searchValue()&&this.option("allowClearing")?this._clearTextValue():this._isValueEqualInputText()||this._renderInputValue().always(function(t){var n=o.ensureDefined(t,e);this._setSelectedItem(n),this._updateField(n),this._clearFilter()}.bind(this))}.bind(this))},_focusOutHandler:function(t){if(!this._preventNestedFocusEvent(t)){var e=this._isOverlayNestedTarget(t.relatedTarget);e||(this._restoreInputText(),this._clearSearchTimer()),this._wasSearch()&&!this.option("acceptCustomValue")&&this.option("searchEnabled")&&this.option("opened")&&!e&&this._searchCanceled()}this.callBase(t)},_isOverlayNestedTarget:function(t){return!!i(t).closest(".".concat("dx-selectbox-popup-wrapper")).length},_clearTextValue:function(){this.option("selectedItem")&&this.option("value",null)},_shouldOpenPopup:function(){return this._needPassDataSourceToList()},_isFocused:function(){var t=m.getActiveElement();return this.callBase()&&i(t).closest(this._input()).length>0},_renderValueChangeEvent:function(){this._isEditable()&&this.callBase()},_isEditable:function(){return this.option("acceptCustomValue")||this.option("searchEnabled")},_fieldRenderData:function(){var t=this._list&&this.option("opened")&&i(this._list.option("focusedElement"));return t&&t.length?this._list._getItemData(t):this.option("selectedItem")},_readOnlyPropValue:function(){return!this._isEditable()||this.option("readOnly")},_isSelectedValue:function(t){return this._isValueEquals(t,this.option("value"))},_shouldCloseOnItemClick:function(){return!(this.option("showSelectionControls")&&"single"!==this.option("selectionMode"))},_listItemClickHandler:function(t){var e=this._getCurrentValue();this._focusListElement(i(t.itemElement)),this._saveValueChangeEvent(t.event),this._shouldClearFilter()&&this._clearFilter(),this._completeSelection(this._valueGetter(t.itemData)),this._shouldCloseOnItemClick()&&this.option("opened",!1),this.option("searchEnabled")&&e===this._valueGetter(t.itemData)&&this._updateField(t.itemData)},_shouldClearFilter:function(){return this._wasSearch()},_completeSelection:function(t){this._setValue(t)},_loadItem:function(t,e){var n=this,i=new f;return this.callBase(t,e).done(function(t){i.resolve(t)}.bind(this)).fail(function(){var e=n.option("selectedItem");n.option("acceptCustomValue")&&t===n._valueGetter(e)?i.resolve(e):i.reject()}.bind(this)),i.promise()},_loadInputValue:function(t,e){return this._loadItemDeferred=this._loadItem(t).always(e),this._loadItemDeferred},_isCustomItemSelected:function(){var t=this.option("selectedItem"),e=this._searchValue(),n=this._displayGetter(t);return!n||e!==n.toString()},_valueChangeEventHandler:function(t){this.option("acceptCustomValue")&&this._isCustomItemSelected()&&!this._isValueChanging&&(this._isValueChanging=!0,this._customItemAddedHandler(t),this._isValueChanging=!1)},_initCustomItemCreatingAction:function(){this._customItemCreatingAction=this._createActionByOption("onCustomItemCreating")},_createCustomItem:function(t){var e={text:t},n=this._customItemCreatingAction(e),i=o.ensureDefined(n,e.customItem);return a(n)&&p.log("W0015","onCustomItemCreating","customItem"),i},_customItemAddedHandler:function(t){var e=this._searchValue(),n=this._createCustomItem(e);if(this._saveValueChangeEvent(t),void 0===n)throw this._renderValue(),p.Error("E0121");s(n)?d.fromPromise(n).done(this._setCustomItem.bind(this)).fail(this._setCustomItem.bind(this,null)):this._setCustomItem(n)},_setCustomItem:function(t){this._disposed||(t=t||null,this.option("selectedItem",t),this._shouldClearFilter()&&this._filterDataSource(null),this._setValue(this._valueGetter(t)),this._renderDisplayText(this._displayGetter(t)))},_clearValueHandler:function(t){return this.callBase(t),!1},_wasSearch:function(t){if(!arguments.length)return this._wasSearchValue;this._wasSearchValue=t},_searchHandler:function(t){this._preventFiltering?delete this._preventFiltering:(this._needPassDataSourceToList()&&this._wasSearch(!0),this.callBase(t))},_dataSourceFiltered:function(t){this.callBase(),null!==t&&(this._renderInputSubstitution(),this._renderFocusedElement())},_valueSubstituted:function(){var t=this._input().get(0),e=0===t.selectionStart&&t.selectionEnd===this._searchValue().length,n=t.selectionStart!==t.selectionEnd;return this._wasSearch()&&n&&!e},_shouldSubstitutionBeRendered:function(){return this.option("autocompletionEnabled")&&!this._preventSubstitution&&this.option("searchEnabled")&&!this.option("acceptCustomValue")&&"startswith"===this.option("searchMode")},_renderInputSubstitution:function(){if(this._shouldSubstitutionBeRendered()){var t=this._list&&this._getPlainItems(this._list.option("items"))[0];if(t){var e=this._input(),n=e.val().length;if(0!==n){var i=e.get(0),o=this._displayGetter(t).toString();i.value=o,this._caret({start:n,end:o.length})}}}else delete this._preventSubstitution},_cleanInputSelection:function(){var t=this._input().get(0),e=t.value.length;t.selectionStart=e,t.selectionEnd=e},_dispose:function(){this._renderInputValueAsync=o.noop,delete this._loadItemDeferred,this.callBase()},_optionChanged:function(t){switch(t.name){case"_isAdaptablePopupPosition":case"autocompletionEnabled":break;case"onCustomItemCreating":this._initCustomItemCreatingAction();break;case"tooltipEnabled":this._renderTooltip();break;case"displayCustomValue":case"acceptCustomValue":case"showSelectionControls":case"useInkRipple":this._invalidate();break;case"allowClearing":break;default:this.callBase(t)}},_clean:function(){delete this._inkRipple,this.callBase()}});v("dxSelectBox",b),t.exports=b,t.exports.default=t.exports},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1198).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(155)),r=u(n(106)),a=n(0),s=n(2),l=u(n(480));function u(t){return t&&t.__esModule?t:{default:t}}var c=null;t.exports=function(t,e,n){var u=(0,s.isPlainObject)(t)?t:{message:t},d=u.onHidden;(0,a.extend)(u,{type:e,displayTime:n,onHidden:function(t){(0,i.default)(t.element).remove(),new o.default(d,{context:t.model}).execute(arguments)}}),c=(0,i.default)("<div>").appendTo(r.default.value()),new l.default(c,u).show()},t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=function(t){var e,n=function(){return e=t.apply(this,arguments),n=function(){return e},e};return function(){return n.apply(this,arguments)}}},function(t,e,n){"use strict";var i,o=n(5),r=n(354),a=(i=r)&&i.__esModule?i:{default:i};var s=function(t,e){var n={};"noBubble"in e&&(n.noBubble=e.noBubble),"bindType"in e&&(n.bindType=e.bindType),"delegateType"in e&&(n.delegateType=e.delegateType),(0,o.each)(["setup","teardown","add","remove","trigger","handle","_default","dispose"],(function(t,i){e[i]&&(n[i]=function(){var t=[].slice.call(arguments);return t.unshift(this),e[i].apply(e,t)})})),a.default.fire(t,n)};s.callbacks=a.default,t.exports=s},function(t,e,n){"use strict";var i=n(0).extend;e.registry={},e.register=function(t,n,o){var r=e.registry,a={};a[t]=r[t]?r[t]:{},a[t][n]=o,r=i(r,a)}},function(t,e,n){"use strict";t.exports=n(266),t.exports.default=t.exports},function(t,e,n){"use strict";var i={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"},o=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10)]}},{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*(\d*\.*\d+)\)$/,process:function(t){return[parseInt(t[1],10),parseInt(t[2],10),parseInt(t[3],10),parseFloat(t[4])]}},{re:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})$/,process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^#([a-f0-9]{1})([a-f0-9]{1})([a-f0-9]{1})$/,process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/^hsv\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10),o=l(e,n,i);return[o[0],o[1],o[2],1,[e,n,i]]}},{re:/^hsl\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,process:function(t){var e=parseInt(t[1],10),n=parseInt(t[2],10),i=parseInt(t[3],10),o=d(e,n,i);return[o[0],o[1],o[2],1,null,[e,n,i]]}}],r=Math.round;function a(t){var e;this.baseColor=t,t&&(e=String(t).toLowerCase().replace(/ /g,""),e=function(t){if("transparent"===t)return[0,0,0,0];for(var e,n=0,i=o.length;n<i;++n)if(e=o[n].re.exec(t))return o[n].process(e);return null}(e=i[e]?"#"+i[e]:e)),e||(this.colorIsInvalid=!0),e=e||{},this.r=s(e[0]),this.g=s(e[1]),this.b=s(e[2]),this.a=s(e[3],1,1),e[4]?this.hsv={h:e[4][0],s:e[4][1],v:e[4][2]}:this.hsv=function(t,e,n){var i,o,r=Math.max(t,e,n),a=Math.min(t,e,n),s=r-a,l=r;if(o=0===r?0:1-a/r,r===a)i=0;else switch(r){case t:i=(e-n)/s*60,e<n&&(i+=360);break;case e:i=(n-t)/s*60+120;break;case n:i=(t-e)/s*60+240}return o*=100,l*=100/255,{h:Math.round(i),s:Math.round(o),v:Math.round(l)}}(this.r,this.g,this.b),e[5]?this.hsl={h:e[5][0],s:e[5][1],l:e[5][2]}:this.hsl=function(t,e,n){t=h(t,255),e=h(e,255),n=h(n,255);var i,o,a=Math.max(t,e,n),s=Math.min(t,e,n),l=a+s,u=l/2;if(a===s)i=o=0;else{var c=a-s;o=u>.5?c/(2-l):c/l,i=function(t,e,n,i){switch(Math.max(t,e,n)){case t:return(e-n)/i+(e<n?6:0);case e:return(n-t)/i+2;case n:return(t-e)/i+4}}(t,e,n,c),i/=6}return{h:r(360*i),s:r(100*o),l:r(100*u)}}(this.r,this.g,this.b)}function s(t,e,n){return e=e||0,n=n||255,t<0||isNaN(t)?e:t>n?n:t}function l(t,e,n){var i,o,r,a=(100-e)*n/100,s=t%60/60*(n-a),l=a+s,u=n-s;switch(Math.floor(t%360/60)){case 0:i=n,o=l,r=a;break;case 1:i=u,o=n,r=a;break;case 2:i=a,o=n,r=l;break;case 3:i=a,o=u,r=n;break;case 4:i=l,o=a,r=n;break;case 5:i=n,o=a,r=u}return[Math.round(2.55*i),Math.round(2.55*o),Math.round(2.55*r)]}function u(t,e){var n=e;return"r"===t&&(n=e+1/3),"b"===t&&(n=e-1/3),n}function c(t,e,n){return(n=function(t){return t<0&&(t+=1),t>1&&(t-=1),t}(n))<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function d(t,e,n){var i,o,a;if(t=h(t,360),e=h(e,100),n=h(n,100),0===e)i=o=a=n;else{var s=n<.5?n*(1+e):n+e-n*e,l=2*n-s;i=c(l,s,u("r",t)),o=c(l,s,u("g",t)),a=c(l,s,u("b",t))}return[r(255*i),r(255*o),r(255*a)]}function h(t,e){return t=Math.min(e,Math.max(0,parseFloat(t))),Math.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function f(t,e,n){return e=e||0,n=n||255,!(t%1!==0||t<e||t>n||"number"!==typeof t||isNaN(t))}a.prototype={constructor:a,highlight:function(t){return t=t||10,this.alter(t).toHex()},darken:function(t){return t=t||10,this.alter(-t).toHex()},alter:function(t){var e=new a;return e.r=s(this.r+t),e.g=s(this.g+t),e.b=s(this.b+t),e},blend:function(t,e){var n=t instanceof a?t:new a(t),i=new a;return i.r=s(r(this.r*(1-e)+n.r*e)),i.g=s(r(this.g*(1-e)+n.g*e)),i.b=s(r(this.b*(1-e)+n.b*e)),i},toHex:function(){return t=this.r,e=this.g,n=this.b,"#"+(16777216|t<<16|e<<8|n).toString(16).slice(1);var t,e,n},getPureColor:function(){return new a("rgb("+l(this.hsv.h,100,100).join(",")+")")},isValidHex:function(t){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t)},isValidRGB:function(t,e,n){return!!(f(t)&&f(e)&&f(n))},isValidAlpha:function(t){return!(isNaN(t)||t<0||t>1||"number"!==typeof t)},colorIsInvalid:!1,fromHSL:function(t){var e=new a,n=d(t.h,t.s,t.l);return e.r=n[0],e.g=n[1],e.b=n[2],e}},t.exports=a},function(t,e,n){"use strict";var i=x(n(3)),o=n(4),r=n(10),a=x(n(15)),s=n(2),l=n(5),u=x(n(254)),c=x(n(213)),d=n(55),h=n(0),f=x(n(273)),p=x(n(97)),m=x(n(163)),g=n(13),_=n(704),v=x(n(274)),y=x(n(706)),b=x(n(18)),w=x(n(6));function x(t){return t&&t.__esModule?t:{default:t}}var C=Math.floor,S=p.default.prototype.option;function k(){return!0}function I(){return!1}function T(t){t.component._eventsStrategy.hasEvent("incidentOccurred")||_.log.apply(null,[t.target.id].concat(t.target.args||[]))}var E=function(t,e){return function(n,i){e("incidentOccurred",{target:{id:n,type:"E"===n[0]?"error":"warning",args:i,text:d.format.apply(null,[_.ERROR_MESSAGES[n]].concat(i||[])),widget:t,version:u.default}})}};function O(t){return t.reduce((function(t,e){return e>0&&!t?e:t}),0)}var M=!(0,r.hasWindow)();t.exports=M?function(){var t={_initTemplates:function(){},ctor:function(t,e){this.callBase(t,e);var n=a.default.createElement("div"),i=e&&(0,s.isNumeric)(e.width)?e.width+"px":"100%",o=e&&(0,s.isNumeric)(e.height)?e.height+"px":this._getDefaultSize().height+"px";a.default.setStyle(n,"width",i),a.default.setStyle(n,"height",o),a.default.setClass(n,"dx-sized-element"),a.default.insertElement(t,n)}},e=p.default.inherit(t),n=e.inherit;return e.inherit=function(t){for(var e in t)((0,s.isFunction)(t[e])&&"_"!==e.substr(0,1)&&"option"!==e||"_dispose"===e||"_optionChanged"===e)&&(t[e]=o.noop);return n.call(this,t)},e}():p.default.inherit({_eventsMap:{onIncidentOccurred:{name:"incidentOccurred"},onDrawn:{name:"drawn"}},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{onIncidentOccurred:T})},_useLinks:!0,_init:function(){var t=this;t._$element.children(".dx-sized-element").remove(),t.callBase.apply(t,arguments),t._changesLocker=0,t._optionChangedLocker=0,t._changes=m.default.changes(),t._suspendChanges(),t._themeManager=t._createThemeManager(),t._themeManager.setCallback((function(){t._requestChange(t._themeDependentChanges)})),t._renderElementAttributes(),t._initRenderer();var e=t._useLinks&&t._renderer.root;e&&e.enableLinks().virtualLink("core").virtualLink("peripheral"),t._renderVisibilityChange(),t._attachVisibilityChangeHandlers(),t._toggleParentsScrollSubscription(this._isVisible()),t._initEventTrigger(),t._incidentOccurred=E(t.NAME,t._eventTrigger),t._layout=new y.default,e&&e.linkAfter("core"),t._initPlugins(),t._initCore(),e&&e.linkAfter(),t._change(t._initialChanges)},_createThemeManager:function(){return new f.default.BaseThemeManager(this._getThemeManagerOptions())},_getThemeManagerOptions:function(){return{themeSection:this._themeSection,fontFields:this._fontFields}},_initialChanges:["LAYOUT","RESIZE_HANDLER","THEME","DISABLED"],_initPlugins:function(){var t=this;(0,l.each)(t._plugins,(function(e,n){n.init.call(t)}))},_disposePlugins:function(){var t=this;(0,l.each)(t._plugins.slice().reverse(),(function(e,n){n.dispose.call(t)}))},_change:function(t){this._changes.add(t)},_suspendChanges:function(){++this._changesLocker},_resumeChanges:function(){0===--this._changesLocker&&this._changes.count()>0&&!this._applyingChanges&&(this._renderer.lock(),this._applyingChanges=!0,this._applyChanges(),this._changes.reset(),this._applyingChanges=!1,this._renderer.unlock(),this._optionsQueue&&this._applyQueuedOptions(),this._optionChangedLocker++,this._notify(),this._optionChangedLocker--)},_applyQueuedOptions:function(){var t=this._optionsQueue;this._optionsQueue=null,this.beginUpdate(),(0,l.each)(t,(function(t,e){e()})),this.endUpdate()},_requestChange:function(t){this._suspendChanges(),this._change(t),this._resumeChanges()},_applyChanges:function(){var t,e=this._changes,n=this._totalChangesOrder,i=n.length;for(t=0;t<i;++t)e.has(n[t])&&this["_change_"+n[t]]()},_optionChangesOrder:["EVENTS","THEME","RENDERER","RESIZE_HANDLER"],_layoutChangesOrder:["ELEMENT_ATTR","CONTAINER_SIZE","LAYOUT"],_customChangesOrder:["DISABLED"],_change_EVENTS:function(){this._eventTrigger.applyChanges()},_change_THEME:function(){this._setThemeAndRtl()},_change_RENDERER:function(){this._setRendererOptions()},_change_RESIZE_HANDLER:function(){this._setupResizeHandler()},_change_ELEMENT_ATTR:function(){this._renderElementAttributes(),this._change(["CONTAINER_SIZE"])},_change_CONTAINER_SIZE:function(){this._updateSize()},_change_LAYOUT:function(){this._setContentSize()},_change_DISABLED:function(){var t=this._renderer,e=t.root;this.option("disabled")?(this._initDisabledState=e.attr("pointer-events"),e.attr({"pointer-events":"none",filter:t.getGrayScaleFilter().id})):"none"===e.attr("pointer-events")&&e.attr({"pointer-events":(0,s.isDefined)(this._initDisabledState)?this._initDisabledState:null,filter:null})},_themeDependentChanges:["RENDERER"],_initRenderer:function(){this._canvas=this._calculateCanvas(),this._renderer=new v.default.Renderer({cssClass:this._rootClassPrefix+" "+this._rootClass,pathModified:this.option("pathModified"),container:this._$element[0]}),this._renderer.resize(this._canvas.width,this._canvas.height)},_disposeRenderer:function(){this._renderer.dispose()},_getAnimationOptions:o.noop,render:function(){this._requestChange(["CONTAINER_SIZE"]);var t=this._isVisible();this._toggleParentsScrollSubscription(t),!t&&this._stopCurrentHandling()},_toggleParentsScrollSubscription:function(t){var e=(0,i.default)(this._renderer.root.element).parents();"generic"===b.default.real().platform&&(e=e.add((0,r.getWindow)())),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(){this._stopCurrentHandling()}.bind(this),w.default.off((0,i.default)().add(this._$prevRootParents),"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),t&&(w.default.on(e,"scroll.viz_widgets",this._proxiedTargetParentsScrollHandler),this._$prevRootParents=e)},_stopCurrentHandling:o.noop,_dispose:function(){var t=this;t.callBase.apply(t,arguments),t._toggleParentsScrollSubscription(!1),t._removeResizeHandler(),t._layout.dispose(),t._eventTrigger.dispose(),t._disposeCore(),t._disposePlugins(),t._disposeRenderer(),t._themeManager.dispose(),t._themeManager=t._renderer=t._eventTrigger=null},_initEventTrigger:function(){var t=this;t._eventTrigger=function(t,e){var n,i={};return(0,l.each)(t,(function(t,e){e.name&&o(t)})),r.change=function(e){var i=t[e];return i&&((n=n||{})[e]=i),!!i},r.applyChanges=function(){n&&((0,l.each)(n,(function(t,e){o(e.newName||t)})),n=null)},r.dispose=function(){t=e=i=null},r;function o(n){var o=t[n];i[o.name]=e(n)}function r(t,e,n){i[t](e),n&&n()}}(t._eventsMap,(function(e){return t._createActionByOption(e)}))},_calculateCanvas:function(){var t=this,e=t.option("size")||{},n=t.option("margin")||{},i=t._getDefaultSize()||{},o=function(e,n){if(i=e[n],(0,s.isDefined)(i)&&i>0||!(0,r.hasWindow)())return 0;var i,o=t._$element[n]();return o<=1?0:o},a=o(e,"width"),l=o(e,"height"),u={width:e.width<=0?0:C(O([e.width,a,i.width])),height:e.height<=0?0:C(O([e.height,l,i.height])),left:O([n.left,i.left]),top:O([n.top,i.top]),right:O([n.right,i.right]),bottom:O([n.bottom,i.bottom])};return(u.width-u.left-u.right<=0||u.height-u.top-u.bottom<=0)&&(u={width:0,height:0}),u},_updateSize:function(){var t,e,n=this._calculateCanvas();this._renderer.fixPlacement(),t=this._canvas,e=n,(t.width!==e.width||t.height!==e.height||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.bottom||this.__forceRender)&&(this._canvas=n,this._recreateSizeDependentObjects(!0),this._renderer.resize(n.width,n.height),this._change(["LAYOUT"]))},_recreateSizeDependentObjects:o.noop,_getMinSize:function(){return[0,0]},_getAlignmentRect:o.noop,_setContentSize:function(){var t=this._canvas,e=this._layout,n=t.width>0&&t.height>0?[t.left,t.top,t.width-t.right,t.height-t.bottom]:[0,0,0,0];n=e.forward(n,this._getMinSize());var i=this._applySize(n)||n;e.backward(i,this._getAlignmentRect()||i)},_getOption:function(t,e){var n=this._themeManager.theme(t),i=this.option(t);return e?void 0!==i?i:n:(0,h.extend)(!0,{},n,i)},_setupResizeHandler:function(){var t=this,e=(0,g.parseScalar)(this._getOption("redrawOnResize",!0),!0);t._resizeHandler&&t._removeResizeHandler(),t._resizeHandler=function(t){var e,n=function(){clearTimeout(e),e=setTimeout(t,100)};return n.dispose=function(){return clearTimeout(e),this},n}((function(){e?t._requestChange(["CONTAINER_SIZE"]):t._renderer.fixPlacement()})),c.default.add(t._resizeHandler)},_removeResizeHandler:function(){this._resizeHandler&&(c.default.remove(this._resizeHandler),this._resizeHandler.dispose(),this._resizeHandler=null)},_onBeginUpdate:o.noop,beginUpdate:function(){var t=this;return t._initialized&&t._isUpdateAllowed()&&(t._onBeginUpdate(),t._suspendChanges()),t.callBase.apply(t,arguments),t},endUpdate:function(){return this.callBase(),this._isUpdateAllowed()&&this._resumeChanges(),this},option:function(t){var e=this;if(!(e._initialized&&e._applyingChanges&&(arguments.length>1||(0,s.isObject)(t))))return S.apply(e,arguments);e._optionsQueue=e._optionsQueue||[],e._optionsQueue.push(e._getActionForUpdating(arguments))},_getActionForUpdating:function(t){var e=this;return function(){S.apply(e,t)}},_clean:o.noop,_render:o.noop,_optionChanged:function(t){var e=this;if(!e._optionChangedLocker){var n=e.getPartialChangeOptionsName(t),i=[];n.length>0?n.forEach((function(t){return i.push(e._partialOptionChangesMap[t])})):i.push(e._optionChangesMap[t.name]),i=i.filter((function(t){return!!t})),e._eventTrigger.change(t.name)?e._change(["EVENTS"]):i.length>0?e._change(i):e.callBase.apply(e,arguments)}},_notify:o.noop,_optionChangesMap:{size:"CONTAINER_SIZE",margin:"CONTAINER_SIZE",redrawOnResize:"RESIZE_HANDLER",theme:"THEME",rtlEnabled:"THEME",encodeHtml:"THEME",elementAttr:"ELEMENT_ATTR",disabled:"DISABLED"},_partialOptionChangesMap:{},_partialOptionChangesPath:{},getPartialChangeOptionsName:function(t){var e=this,n=t.fullName,i=n.split(/[.]/),o=t.name,r=t.value,a=this._partialOptionChangesPath[o],l=[];return a&&(!0===a?l.push(o):(a.forEach((function(t){n.indexOf(t)>=0&&l.push(t)})),1===i.length&&("object"===(0,s.type)(r)?e._addOptionsNameForPartialUpdate(r,a,l):"array"===(0,s.type)(r)&&r.length>0&&r.every((function(t){return e._checkOptionsForPartialUpdate(t,a)}))&&r.forEach((function(t){return e._addOptionsNameForPartialUpdate(t,a,l)}))))),l.filter((function(t,e,n){return n.indexOf(t)===e}))},_checkOptionsForPartialUpdate:function(t,e){return!Object.keys(t).some((function(t){return-1===e.indexOf(t)}))},_addOptionsNameForPartialUpdate:function(t,e,n){var i=Object.keys(t);this._checkOptionsForPartialUpdate(t,e)&&i.forEach((function(t){return e.indexOf(t)>-1&&n.push(t)}))},_visibilityChanged:function(){this.render()},_setThemeAndRtl:function(){this._themeManager.setTheme(this.option("theme"),this.option("rtlEnabled"))},_getRendererOptions:function(){return{rtl:this.option("rtlEnabled"),encodeHtml:this.option("encodeHtml"),animation:this._getAnimationOptions()}},_setRendererOptions:function(){this._renderer.setOptions(this._getRendererOptions())},svg:function(){return this._renderer.svg()},getSize:function(){var t=this._canvas||{};return{width:t.width,height:t.height}},isReady:I,_dataIsReady:k,_resetIsReady:function(){this.isReady=I},_drawn:function(){var t=this;t.isReady=I,t._dataIsReady()&&t._renderer.onEndAnimation((function(){t.isReady=k})),t._eventTrigger("drawn",{})}}),m.default.replaceInherit(t.exports)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.plugin=e.ExportMenu=e.combineMarkups=e.exportWidgets=e.getMarkup=e.exportFromMarkup=void 0;var i=n(0),o=n(10),r=n(13),a=f(n(278)),s=f(n(12)),l=n(2),u=f(n(82)),c=f(n(216)),d=f(n(28)),h=n(152);function f(t){return t&&t.__esModule?t:{default:t}}var p=a.default.image,m=a.default.svg,g=a.default.pdf,_=[d.default.down,d.default.move].join(" "),v=[[9,12,26,12,26,14,9,14],[9,17,26,17,26,19,9,19],[9,22,26,22,26,24,9,24]],y=["PNG","JPEG","GIF"],b=["PDF","SVG"],w=/data-backgroundcolor="([^"]*)"/;function x(){var t=p.testFormats(y);return{unsupported:t.unsupported,supported:t.supported.concat(b)}}function C(t,e,n){if(n=n||x(),t=String(t).toUpperCase(),-1!==n.supported.indexOf(t))return t;-1!==n.unsupported.indexOf(t)&&e&&e("W2108",[t])}function S(t){return"SVG"===t?m.getData:"PDF"===t?g.getData:p.getData}function k(t,e,n){var i={},o=n.type,a=n.format,s=function(t,e,n){var i=-85,o=40+30*n,r={rect:{width:118,height:30,x:-84,y:o},text:{x:i+(t.rtl?105:15),y:o+30-8}};return"printing"===e&&(r.separator={stroke:t.button.default.borderColor,"stroke-width":1,cursor:"pointer",sharp:"v",d:"M -85 "+(o+30-1)+" L 35 "+(o+30-1)}),r}(e,o,n.itemIndex),l=(0,r.patchFontOptions)(e.font);l["pointer-events"]="none";var u=t.g().attr({class:"dx-export-menu-list-item"});i["export-element-type"]=o,a&&(i["export-element-format"]=a);var d=t.rect();d.attr(s.rect).css({cursor:"pointer","pointer-events":"all"}).data(i),d.on(c.default.start+".export",(function(){return d.attr({fill:e.button.hover.backgroundColor})})).on(c.default.end+".export",(function(){return d.attr({fill:null})})),d.append(u);var h=t.text(n.text).css(l).attr(s.text).append(u);return"printing"===o&&t.path(null,"line").attr(s.separator).append(u),{g:u,rect:d,resetState:function(){return d.attr({fill:null})},fixPosition:function(){var t=h.getBBox();h.move(s.text.x-t.x-(e.rtl?t.width:0))}}}var I=e.exportFromMarkup=function(t,e){e.format=C(e.format)||"PNG",e.fileName=e.fileName||"file",e.exportingAction=e.onExporting,e.exportedAction=e.onExported,e.fileSavingAction=e.onFileSaving,e.margin=(0,l.isDefined)(e.margin)?e.margin:10,e.backgroundColor=(0,l.isDefined)(e.backgroundColor)?e.backgroundColor:function(t){var e=w.exec(t);return null===e||void 0===e?void 0:e[1]}(t)||u.default.getTheme().backgroundColor,a.default.export(t,e,S(e.format))},T=(e.getMarkup=function(t){return T(t).markup},e.exportWidgets=function(t,n){n=n||{};var i=e.combineMarkups(t,{gridLayout:n.gridLayout,verticalAlignment:n.verticalAlignment,horizontalAlignment:n.horizontalAlignment});n.width=i.width,n.height=i.height,I(i.markup,n)},e.combineMarkups=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Array.isArray(t)?Array.isArray(t[0])||(t=t.map((function(t){return[t]}))):t=[[t]];var n=!e.gridLayout,i=t.reduce((function(t,e,i){var o=e.reduce((function(t,e,n){var o=e.getSize(),r=e.option("backgroundColor")||u.default.getTheme(e.option("theme")).backgroundColor;return r&&-1===t.backgroundColors.indexOf(r)&&t.backgroundColors.push(r),t.hOffset=t.width,t.width+=o.width,t.height=Math.max(t.height,o.height),t.itemWidth=Math.max(t.itemWidth,o.width),t.items.push({markup:e.svg(),width:o.width,height:o.height,c:n,r:i,hOffset:t.hOffset}),t}),{items:[],height:0,itemWidth:0,hOffset:0,width:0,backgroundColors:t.backgroundColors});return t.rowOffsets.push(t.totalHeight),t.rowHeights.push(o.height),t.totalHeight+=o.height,t.items=t.items.concat(o.items),t.itemWidth=Math.max(t.itemWidth,o.itemWidth),t.maxItemLen=Math.max(t.maxItemLen,o.items.length),t.totalWidth=n?Math.max(t.totalWidth,o.width):t.maxItemLen*t.itemWidth,t}),{items:[],rowOffsets:[],rowHeights:[],itemWidth:0,totalHeight:0,maxItemLen:0,totalWidth:0,backgroundColors:[]}),o='data-backgroundcolor="'.concat(1===i.backgroundColors.length?i.backgroundColors[0]:"",'" '),r=function(t){var n=e.verticalAlignment,o=i.rowHeights[t.r]-t.height;return i.rowOffsets[t.r]+("bottom"===n?o:"center"===n?o/2:0)},a=function(t){if(n)return t.hOffset;var o=e.horizontalAlignment,r=i.itemWidth,a=r-t.width;return t.c*r+("right"===o?a:"center"===o?a/2:0)},s=i.totalHeight,l=i.totalWidth;return{markup:"<svg "+o+'height="'+s+'" width="'+l+'" version="1.1" xmlns="http://www.w3.org/2000/svg">'+i.items.map((function(t){return'<g transform="translate('.concat(a(t),",").concat(r(t),')">').concat(t.markup,"</g>")})).join("")+"</svg>",width:l,height:s}}),E=e.ExportMenu=function(t){var e=this._renderer=t.renderer;this._incidentOccurred=t.incidentOccurred,this._exportTo=t.exportTo,this._print=t.print,this._shadow=e.shadowFilter("-50%","-50%","200%","200%",2,6,3),this._shadow.attr({opacity:.8}),this._group=e.g().attr({class:"dx-export-menu","hidden-for-export":!0}).linkOn(e.root,{name:"export-menu",after:"peripheral"}),this._buttonGroup=e.g().attr({class:"dx-export-menu-button"}).append(this._group),this._listGroup=e.g().attr({class:"dx-export-menu-list"}).append(this._group),this._overlay=e.rect(-85,39,120,0),this._overlay.attr({"stroke-width":1,cursor:"pointer",rx:4,ry:4,filter:this._shadow.id}),this._overlay.data({"export-element-type":"list"}),this.validFormats=x(),this._subscribeEvents()};function O(t,e,n,i){return(i||e.format)&&(i=C(i||e.format,t._incidentOccurred)),{format:i||"PNG",fileName:n||e.fileName||"file",proxyUrl:e.proxyUrl,backgroundColor:e.backgroundColor,width:t._canvas.width,height:t._canvas.height,margin:e.margin,svgToCanvas:e.svgToCanvas,forceProxy:e.forceProxy,exportingAction:t._createActionByOption("onExporting"),exportedAction:t._createActionByOption("onExported"),fileSavingAction:t._createActionByOption("onFileSaving")}}(0,i.extend)(E.prototype,{getLayoutOptions:function(){if(this._hiddenDueToLayout)return{width:0,height:0,cutSide:"vertical",cutLayoutSide:"top"};var t=this._buttonGroup.getBBox();return t.cutSide="vertical",t.cutLayoutSide="top",t.height+=10,t.position={vertical:"top",horizontal:"right"},t.verticalAlignment="top",t.horizontalAlignment="right",t},shift:function(t,e){this._group.attr({translateY:this._group.attr("translateY")+e})},draw:function(t,e,n){this._group.move(t-35-2-3+n.left,Math.floor(e/2-17.5));var i=this.getLayoutOptions();return(i.width>t||i.height>e)&&this.freeSpace(),this},show:function(){this._group.linkAppend()},hide:function(){this._group.linkRemove()},setOptions:function(t){var e=this;this._options=t,t.formats?t.formats=t.formats.reduce((function(t,n){return(n=C(n,e._incidentOccurred,e.validFormats))&&t.push(n),t}),[]):t.formats=this.validFormats.supported.slice(),t.printingEnabled=void 0===t.printingEnabled||t.printingEnabled,t.enabled&&(t.formats.length||t.printingEnabled)?(this.show(),this._updateButton(),this._updateList(),this._hideList()):this.hide()},dispose:function(){this._unsubscribeEvents(),this._group.linkRemove().linkOff(),this._group.dispose(),this._shadow.dispose()},layoutOptions:function(){return this._options.enabled&&{horizontalAlignment:"right",verticalAlignment:"top",weak:!0}},measure:function(){this._fillSpace();var t=this._options.button.margin;return[35+t.left+t.right,35+t.top+t.bottom]},move:function(t){var e=this._options.button.margin;this._group.attr({translateX:Math.round(t[0])+e.left,translateY:Math.round(t[1])+e.top})},_fillSpace:function(){this._hiddenDueToLayout=!1,this.show()},freeSpace:function(){this._incidentOccurred("W2107"),this._hiddenDueToLayout=!0,this.hide()},_hideList:function(){this._listGroup.remove(),this._listShown=!1,this._setButtonState("default"),this._menuItems.forEach((function(t){return t.resetState()}))},_showList:function(){this._listGroup.append(this._group),this._listShown=!0,this._menuItems.forEach((function(t){return t.fixPosition()}))},_setButtonState:function(t){var e=this._options.button[t];this._button.attr({stroke:e.borderColor,fill:e.backgroundColor}),this._icon.attr({fill:e.color})},_subscribeEvents:function(){var t=this;this._renderer.root.on(d.default.up+".export",(function(e){var n=e.target["export-element-type"];n?"button"===n?t._listShown?(t._setButtonState("default"),t._hideList()):(t._setButtonState("focus"),t._showList()):"printing"===n?(t._print(),t._hideList()):"exporting"===n&&(t._exportTo(e.target["export-element-format"]),t._hideList()):t._button&&t._hideList()})),this._listGroup.on(_,(function(t){return t.stopPropagation()})),this._buttonGroup.on(d.default.enter,(function(){return t._setButtonState("hover")})),this._buttonGroup.on(d.default.leave,(function(){return t._setButtonState(t._listShown?"focus":"default")})),this._buttonGroup.on(d.default.down+".export",(function(){return t._setButtonState("active")}))},_unsubscribeEvents:function(){this._renderer.root.off(".export"),this._listGroup.off(),this._buttonGroup.off()},_updateButton:function(){var t=this._renderer,e=this._options,n={"export-element-type":"button"};this._button||(this._button=t.rect(0,0,35,35).append(this._buttonGroup),this._button.attr({rx:4,ry:4,fill:e.button.default.backgroundColor,stroke:e.button.default.borderColor,"stroke-width":1,cursor:"pointer"}),this._button.data(n),this._icon=t.path(v).append(this._buttonGroup),this._icon.attr({fill:e.button.default.color,cursor:"pointer"}),this._icon.data(n),this._buttonGroup.setTitle(s.default.format("vizExport-titleMenuText")))},_updateList:function(){var t=this._options,e=t.button.default,n=this._listGroup,i=function(t,e){var n=[];return e.printingEnabled&&n.push(k(t,e,{type:"printing",text:s.default.format("vizExport-printingButtonText"),itemIndex:n.length})),n=e.formats.reduce((function(n,i){return n.push(k(t,e,{type:"exporting",text:s.default.getFormatter("vizExport-exportButtonText")(i),format:i,itemIndex:n.length})),n}),n)}(this._renderer,t);this._shadow.attr({color:t.shadowColor}),this._overlay.attr({height:30*i.length+2,fill:e.backgroundColor,stroke:e.borderColor}),n.clear(),this._overlay.append(n),i.forEach((function(t){return t.g.append(n)})),this._menuItems=i}});e.plugin={name:"export",init:function(){var t=this;this._exportMenu=new e.ExportMenu({renderer:this._renderer,incidentOccurred:this._incidentOccurred,print:function(){return t.print()},exportTo:function(e){return t.exportTo(void 0,e)}}),this._layout.add(this._exportMenu)},dispose:function(){this._exportMenu.dispose()},members:{_getExportMenuOptions:function(){return(0,i.extend)({},this._getOption("export"),{rtl:this._getOption("rtlEnabled",!0)})},_disablePointerEvents:function(){var t=this._renderer.root.attr("pointer-events");return this._renderer.root.attr({"pointer-events":"none"}),t},exportTo:function(t,e){var n=this,i=this._exportMenu,o=O(this,this._getOption("export")||{},t,e);i&&i.hide();var r=this._disablePointerEvents(),s=a.default.export(this._renderer.root.element,o,S(o.format)).fail(h.logger.error).always((function(){n._renderer.root.attr({"pointer-events":r})}));return i&&i.show(),s},print:function(){var t=this,e=this._exportMenu,n=O(this,this._getOption("export")||{});n.exportingAction=null,n.exportedAction=null,n.margin=0,n.format="PNG",n.forceProxy=!0,n.fileSavingAction=function(t){!function(t,e){var n=(0,o.getWindow)().document,i=n.createElement("iframe");i.onload=function(t,e){return function(){var e=this,n=this.contentWindow,i=n.document.createElement("img");n.document.body.appendChild(i);var o=function(){e.parentElement.removeChild(e)};i.addEventListener("load",(function(){n.focus(),n.print(),o()})),i.addEventListener("error",o),i.src=t}}(t),i.style.visibility="hidden",i.style.position="fixed",i.style.right="0",i.style.bottom="0",n.body.appendChild(i)}("data:image/png;base64,".concat(t.data),n.__test),t.cancel=!0};var i=this._disablePointerEvents();e&&e.hide();var r=a.default.export(this._renderer.root.element,n,S(n.format)).fail(h.logger.error).always((function(){t._renderer.root.attr({"pointer-events":i})}));return e&&e.show(),r}},customize:function(t){var e=t.prototype;t.addChange({code:"EXPORT",handler:function(){this._exportMenu.setOptions(this._getExportMenuOptions()),this._change(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:"export"}),e._optionChangesMap.onExporting="EXPORT",e._optionChangesMap.onExported="EXPORT",e._optionChangesMap.onFileSaving="EXPORT"},fontFields:["export.font"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o={toXml:function(t,e,n){var o=["<",t];for(var r in e){var a=e[r];(0,i.isDefined)(a)&&o.push(" ",r,'="',a,'"')}return(0,i.isDefined)(n)&&""!==n?o.push(">",n,"</",t,">"):o.push(" />"),o.join("")}};e.default=o},function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(13),a=Number,s=(0,r.enumParser)(["left","center","right"]),l=(0,r.enumParser)(["top","bottom"]);function u(t){return!!(t&&String(t).length>0)}function c(t,e,n,i,o){t.attr({text:e}).setMaxSize(n,o,i).textChanged&&t.setTitle(e)}function d(t){return t>=0?a(t):10}function h(t){this._params=t,this._group=t.renderer.g().attr({class:t.cssClass}).linkOn(t.root||t.renderer.root,"title"),this._hasText=!1}(0,o.extend)(h.prototype,n(279).LayoutElement.prototype,{dispose:function(){this._group.linkRemove(),this._group.linkOff(),this._titleElement&&(this._clipRect.dispose(),this._titleElement=this._subtitleElement=this._clipRect=null),this._params=this._group=this._options=null},_updateOptions:function(t){var e;this._options=t,this._options.horizontalAlignment=s(t.horizontalAlignment,"center"),this._options.verticalAlignment=l(t.verticalAlignment,"top"),this._options.margin=(e=t.margin)>=0?{left:a(e),top:a(e),right:a(e),bottom:a(e)}:{left:d((e=e||{}).left),top:d(e.top),right:d(e.right),bottom:d(e.bottom)}},_updateStructure:function(){var t=this._params.renderer,e=this._group,n=this._options,i=n.horizontalAlignment;this._titleElement||(this._titleElement=t.text().append(e),this._subtitleElement=t.text(),this._clipRect=t.clipRect(),e.attr({"clip-path":this._clipRect.id})),this._titleElement.attr({align:i,class:n.cssClass}),this._subtitleElement.attr({align:i,class:n.subtitle.cssClass}),e.linkAppend(),u(n.subtitle.text)?this._subtitleElement.append(e):this._subtitleElement.remove()},_updateTexts:function(){var t,e=this._options,n=e.subtitle,i=this._titleElement,o=this._subtitleElement;i.attr({text:"A",y:0}).css((0,r.patchFontOptions)(e.font)),t=i.getBBox(),this._baseLineCorrection=t.height+t.y,i.attr({text:e.text});var a=-(t=i.getBBox()).y;i.attr({y:a}),u(n.text)&&o.attr({text:n.text,y:0}).css((0,r.patchFontOptions)(n.font))},_shiftSubtitle:function(){var t=this._titleElement.getBBox(),e=this._subtitleElement,n=this._options.subtitle.offset;e.move(0,t.y+t.height-e.getBBox().y-n)},_updateBoundingRectAlignment:function(){var t=this._boundingRect,e=this._options;t.verticalAlignment=e.verticalAlignment,t.horizontalAlignment=e.horizontalAlignment,t.cutLayoutSide=e.verticalAlignment,t.cutSide="vertical",t.position={horizontal:e.horizontalAlignment,vertical:e.verticalAlignment}},hasText:function(){return this._hasText},update:function(t,e){var n=(0,o.extend)(!0,{},t,function(t){var e=(0,i.isString)(t)?{text:t}:t||{};return e.subtitle=(0,i.isString)(e.subtitle)?{text:e.subtitle}:e.subtitle||{},e}(e)),r=u(n.text),a=r||r!==this._hasText;return this._baseLineCorrection=0,this._updateOptions(n),this._boundingRect={},r?(this._updateStructure(),this._updateTexts()):this._group.linkRemove(),this._updateBoundingRect(),this._updateBoundingRectAlignment(),this._hasText=r,a},draw:function(t,e){return this._hasText&&(this._group.linkAppend(),this._correctTitleLength(t),this._group.getBBox().height>e&&this.freeSpace()),this},_correctTitleLength:function(t){var e=this._options,n=e.margin,i=t-n.left-n.right,o=e.placeholderSize;c(this._titleElement,e.text,i,e,o),this._subtitleElement&&(a(o)>0&&(o-=this._titleElement.getBBox().height),c(this._subtitleElement,e.subtitle.text,i,e.subtitle,o),this._shiftSubtitle()),this._updateBoundingRect();var r=this.getCorrectedLayoutOptions(),s=r.x,l=r.y,u=r.height;this._clipRect.attr({x:s,y:l,width:t,height:u})},getLayoutOptions:function(){return this._boundingRect||null},shift:function(t,e){var n=this.getLayoutOptions();return this._group.move(t-n.x,e-n.y),this},_updateBoundingRect:function(){var t=this._options,e=t.margin,n=this._boundingRect,i=this._hasText?this._group.getBBox():{width:0,height:0,x:0,y:0,isEmpty:!0};i.isEmpty||(i.height+=e.top+e.bottom-this._baseLineCorrection,i.width+=e.left+e.right,i.x-=e.left,i.y+=this._baseLineCorrection-e.top),t.placeholderSize>0&&(i.height=t.placeholderSize),n.height=i.height,n.width=i.width,n.x=i.x,n.y=i.y},getCorrectedLayoutOptions:function(){var t=this.getLayoutOptions(),e=this._baseLineCorrection;return(0,o.extend)({},t,{y:t.y-e,height:t.height+e})},layoutOptions:function(){return this._hasText?{horizontalAlignment:this._boundingRect.horizontalAlignment,verticalAlignment:this._boundingRect.verticalAlignment,priority:0}:null},measure:function(t){return this.draw(t[0],t[1]),[this._boundingRect.width,this._boundingRect.height]},move:function(t,e){!function(t,e){return t[2]-t[0]<e.width||t[3]-t[1]<e.height}(t,this._boundingRect)?this.shift(Math.round(t[0]),Math.round(t[1])):this.shift(e[0],e[1])},freeSpace:function(){this._params.incidentOccurred("W2103"),this._group.linkRemove(),this._boundingRect.width=this._boundingRect.height=0},getOptions:function(){return this._options},changeLink:function(t){this._group.linkRemove(),this._group.linkOn(t,"title")}}),e.Title=h,e.plugin={name:"title",init:function(){this._title=new e.Title({renderer:this._renderer,cssClass:this._rootClassPrefix+"-title",incidentOccurred:this._incidentOccurred}),this._layout.add(this._title)},dispose:function(){this._title.dispose(),this._title=null},customize:function(t){t.addChange({code:"TITLE",handler:function(){this._title.update(this._themeManager.theme("title"),this.option("title"))&&this._change(["LAYOUT"])},isThemeDependent:!0,option:"title",isOptionChange:!0})},fontFields:["title.font","title.subtitle.font"]}},function(t,e,n){"use strict";var i=f(n(15)),o=f(n(10)),r=f(n(46)),a=f(n(3)),s=f(n(274)),l=f(n(2)),u=n(0),c=f(n(13)),d=n(94),h=n(396);function f(t){return t&&t.__esModule?t:{default:t}}var p=Math.ceil,m=Math.max,g=Math.min,_=o.default.getWindow();function v(t){t.css({left:"-9999px"}).detach()}function y(t){var e;this._eventTrigger=t.eventTrigger,this._widgetRoot=t.widgetRoot,this._widget=t.widget,this._wrapper=(0,a.default)("<div>").css({position:"absolute",overflow:"hidden",pointerEvents:"none"}).addClass(t.cssClass),this._renderer=e=new s.default.Renderer({pathModified:t.pathModified,container:this._wrapper[0]}),e.root.attr({"pointer-events":"none"}),this._text=e.text(void 0,0,0),this._textGroupHtml=(0,a.default)("<div>").css({position:"absolute",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._wrapper),this._textHtml=(0,a.default)("<div>").css({position:"relative",display:"inline-block",padding:0,margin:0,border:"0px solid transparent"}).appendTo(this._textGroupHtml)}y.prototype={constructor:y,dispose:function(){this._wrapper.remove(),this._renderer.dispose(),this._options=this._widgetRoot=null},_getContainer:function(){var t=this._options,e=(0,a.default)(this._widgetRoot).closest(t.container);return 0===e.length&&(e=(0,a.default)(t.container)),(e.length?e:(0,a.default)("body")).get(0)},setTemplate:function(t){this._template=t?this._widget._getTemplate(t):null},setOptions:function(t){var e=this;t=t||{};var n=this;n._options=t,n._textFontStyles=c.default.patchFontOptions(t.font),n._textFontStyles.color=n._textFontStyles.fill,n._wrapper.css({zIndex:t.zIndex}),n._customizeTooltip=t.customizeTooltip;var i=n._textGroupHtml,o=n._textHtml;this.plaque&&this.plaque.clear(),this.setTemplate(t.contentTemplate);var r=t.interactive?"auto":"none";t.interactive&&this._renderer.root.css({"-ms-user-select":"auto","-moz-user-select":"auto","-webkit-user-select":"auto"});return this.plaque=new h.Plaque({opacity:n._options.opacity,color:n._options.color,border:n._options.border,paddingLeftRight:n._options.paddingLeftRight,paddingTopBottom:n._options.paddingTopBottom,arrowLength:n._options.arrowLength,arrowWidth:20,shadow:n._options.shadow,cornerRadius:n._options.cornerRadius},n,n._renderer.root,(function(a,s){var l=a._state,u=a._template,c=u&&!l.formatObject.skipTemplate;if(l.html||c){if(!l.isRendered){if(c){if(u.render({model:l.formatObject,container:o}),l.html=o.html(),!l.html)return void e.plaque.clear()}else n._text.attr({text:""}),o.html(l.html);i.css({color:l.textColor,width:3e3,pointerEvents:r}),l.isRendered=!0}}else n._text.css({fill:l.textColor}).attr({text:l.text,class:t.cssClass,"pointer-events":r}).append(s.attr({align:t.textAlignment}));a.plaque.customizeCloud({fill:l.color,stroke:l.borderColor,"pointer-events":r})}),!0,(function(t,e){if(t._state.html){var n,i=_.getComputedStyle;return i?(n=i(o.get(0)),n={x:0,y:0,width:p(parseFloat(n.width)),height:p(parseFloat(n.height))}):(n=o.get(0).getBoundingClientRect(),n={x:0,y:0,width:p(n.width?n.width:n.right-n.left),height:p(n.height?n.height:n.bottom-n.top)}),n}return e.getBBox()}),(function(t,e,i,o){t._state.html?n._textGroupHtml.css({left:i,top:o}):e.move(i,o)})),n},setRendererOptions:function(t){return this._renderer.setOptions(t),this._textGroupHtml.css({direction:t.rtl?"rtl":"ltr"}),this},render:function(){v(this._wrapper);var t={};for(var e in this._textFontStyles)t[r.default.camelize(e)]=this._textFontStyles[e];return this._textGroupHtml.css(t),this._text.css(this._textFontStyles),this._eventData=null,this},update:function(t){return this.setOptions(t).render()},_prepare:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._customizeTooltip,i=this._options,o={};return l.default.isFunction(n)&&(o=n.call(t,t),"text"in(o=l.default.isPlainObject(o)?o:{})&&(e.text=l.default.isDefined(o.text)?String(o.text):""),"html"in o&&(e.html=l.default.isDefined(o.html)?String(o.html):"")),"text"in e||"html"in e||(e.text=t.valueText||t.description||""),e.color=o.color||i.color,e.borderColor=o.borderColor||(i.border||{}).color,e.textColor=o.fontColor||(this._textFontStyles||{}).color,!!e.text||!!e.html||!!this._template},show:function(t,e,n,i){var o={formatObject:t};return!!this._prepare(t,o,i)&&(this._state=o,this._wrapper.appendTo(this._getContainer()),this._clear(),this.plaque.clear().draw((0,u.extend)({},this._options,{canvas:this._getCanvas()},o,{x:e.x,y:e.y,offset:e.offset})),this.moveWrapper(),this._eventData&&this._eventTrigger("tooltipHidden",this._eventData),this._eventData=n,this._eventTrigger("tooltipShown",this._eventData),!0)},hide:function(){v(this._wrapper),this._eventData&&(this._eventTrigger("tooltipHidden",this._eventData),this._clear(),this._eventData=null)},_clear:function(){this._textHtml.empty()},move:function(t,e,n){this.plaque.draw({x:t,y:e,offset:n,canvas:this._getCanvas()}),this.moveWrapper()},moveWrapper:function(){var t=this.plaque.getBBox();this._renderer.resize(t.width,t.height);var e=this._wrapper.css({left:0,top:0}).offset(),n=t.x,i=t.y;this._wrapper.css({left:n-e.left,top:i-e.top}),this.plaque.moveRoot(-n,-i),this._state.html&&(this._textHtml.css({left:-n,top:-i}),this._textGroupHtml.css({width:t.width}))},formatValue:function(t,e){var n=e?function(t,e){var n=t;switch(e){case"argument":n={format:t.argumentFormat};break;case"percent":n={format:{type:"percent",precision:t.format&&t.format.percentPrecision}}}return n}(this._options,e):this._options;return(0,d.format)(t,n.format)},getLocation:function(){return c.default.normalizeEnum(this._options.location)},isEnabled:function(){return!!this._options.enabled},isShared:function(){return!!this._options.shared},_getCanvas:function(){var t=this._getContainer(),e=t.getBoundingClientRect(),n=i.default.getDocumentElement(),o=i.default.getDocument(),r=_.pageXOffset||n.scrollLeft||0,a=_.pageYOffset||n.scrollTop||0,s={left:r,top:a,width:n.clientWidth+r||0,height:m(o.body.scrollHeight,n.scrollHeight,o.body.offsetHeight,n.offsetHeight,o.body.clientHeight,n.clientHeight)||0,right:0,bottom:0};return t!==i.default.getBody()&&(r=m(s.left,s.left+e.left),a=m(s.top,s.top+e.top),s.width=g(e.width,s.width)+r+s.left,s.height=g(e.height,s.height)+a+s.top,s.left=r,s.top=a),s}},e.Tooltip=y,e.plugin={name:"tooltip",init:function(){this._initTooltip()},dispose:function(){this._disposeTooltip()},members:{_initTooltip:function(){this._tooltip=new e.Tooltip({cssClass:this._rootClassPrefix+"-tooltip",eventTrigger:this._eventTrigger,pathModified:this.option("pathModified"),widgetRoot:this.element(),widget:this})},_disposeTooltip:function(){this._tooltip.dispose(),this._tooltip=null},_setTooltipRendererOptions:function(){this._tooltip.setRendererOptions(this._getRendererOptions())},_setTooltipOptions:function(){this._tooltip.update(this._getOption("tooltip"))}},extenders:{_stopCurrentHandling:function(){this._tooltip&&this._tooltip.hide()}},customize:function(t){var e=t.prototype;e._eventsMap.onTooltipShown={name:"tooltipShown"},e._eventsMap.onTooltipHidden={name:"tooltipHidden"},t.addChange({code:"TOOLTIP_RENDERER",handler:function(){this._setTooltipRendererOptions()},isThemeDependent:!0,isOptionChange:!0}),t.addChange({code:"TOOLTIP",handler:function(){this._setTooltipOptions()},isThemeDependent:!0,isOptionChange:!0,option:"tooltip"})},fontFields:["tooltip.font"]}},function(t,e,n){"use strict";var i=n(2),o=n(0).extend,r=i.isDefined,a=i.isDate,s=i.isFunction,l=n(13).unique;function u(t,e){return e<t}function c(t,e){return e>t}function d(t,e,n,i){var o=r(e);r(t)?o&&i(t,e)&&n(e):o&&n(e)}var h=e.Range=function(t){t&&o(this,t)};h.prototype={constructor:h,addRange:function(t){var e=this,n=e.categories,i=t.categories,o="discrete"===e.axisType,a=function(n,i){d(e[n],t[n],(function(t){e[n]=t}),i)},s=function(t,n,i){d(e[t],e[n],(function(n){r(e[t])&&(e[t]=n)}),i)},h=function(n){e[n]=e[n]||t[n]};return h("invert"),h("axisType"),h("dataType"),h("isSpacedMargin"),"logarithmic"===e.axisType?h("base"):e.base=void 0,a("min",u),a("max",c),o?(h("minVisible"),h("maxVisible")):(a("minVisible",u),a("maxVisible",c)),a("interval",u),o||(s("min","minVisible",u),s("min","maxVisible",u),s("max","maxVisible",c),s("max","minVisible",c)),e.categories=void 0===n?i:i?l(n.concat(i)):n,"logarithmic"===e.axisType&&(h("allowNegatives"),a("linearThreshold",u)),e},isEmpty:function(){return(!r(this.min)||!r(this.max))&&(!this.categories||0===this.categories.length)},correctValueZeroLevel:function(){var t=this;if("logarithmic"===t.axisType||a(t.max)||a(t.min))return t;function e(e,n){t[e]<0&&t[n]<0&&(t[n]=0),t[e]>0&&t[n]>0&&(t[e]=0)}return e("min","max"),e("minVisible","maxVisible"),t},sortCategories:function(t){if(!1!==t&&this.categories)if(Array.isArray(t)){var e=t.map((function(t){return t.valueOf()})),n=this.categories.filter((function(t){return-1===e.indexOf(t.valueOf())}));this.categories=t.concat(n)}else{var i=!s(t);i&&"string"!==this.dataType?t=function(t,e){return t.valueOf()-e.valueOf()}:i&&(t=!1),t&&this.categories.sort(t)}}}},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(0).extend,r=n(16).inArray,a=n(5).each,s=n(230),l=n(2),u=n(13),c=n(4).noop,d=l.isDefined,h=l.isString,f=u.map,p=u.normalizeEnum,m=Math,g=m.abs,_=m.sqrt,v=m.max;function y(t){var e=0;return a(t,(function(t,n){e+=n})),e}function b(t,e){return y(f(t,(function(t){return(t-e)*(t-e)})))/t.length}function w(t){return function(e,n){var r=e.intervalStart,a=e.data,s=n.getValueFields()[0],l=a[0];return l=a.reduce((function(e,n){var i=n[s];return null===e[s]&&(e=n),null!==i&&t(i,e[s])?n:e}),l),o({},l,i({},n.getArgumentField(),r))}}e.chart={},e.polar={};var x={_defaultDuration:400,_defaultTrackerWidth:12,_applyStyle:c,_updateOptions:c,_parseStyle:c,_prepareSegment:c,_drawSegment:c,_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup)},_createLegendState:function(t,e){return{fill:t.color||e,hatching:t.hatching?o({},t.hatching,{direction:"right"}):void 0}},_applyElementsClipRect:function(t){t["clip-path"]=this._paneClipRectID},_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:null},_createGroup:function(t,e,n,i){var o=e[t]=e[t]||this._renderer.g();n&&o.append(n),i&&o.attr(i)},_applyClearingSettings:function(t){t.opacity=null,t.scale=null,this._options.rotated?t.translateX=null:t.translateY=null},_createGroups:function(){this._createGroup("_markersGroup",this,this._group),this._createGroup("_labelsGroup",this)},_setMarkerGroupSettings:function(){var t=this._createPointStyles(this._getMarkerGroupOptions()).normal;t.class="dxc-markers",t.opacity=1,this._applyMarkerClipRect(t),this._markersGroup.attr(t)},getVisibleArea:function(){return this._visibleArea},areErrorBarsVisible:function(){var t,e=this._options.valueErrorBar;return e&&this._errorBarsEnabled()&&"none"!==e.displayMode&&(t=p(e.type),-1!==r(t,["fixed","percent","variance","stddeviation","stderror"])||d(e.lowValueField)||d(e.highValueField))},groupPointsByCoords:function(t){var e=[];return a(this.getVisiblePoints(),(function(n,i){var o=parseInt(t?i.vy:i.vx);e[o]?Array.isArray(e[o])?e[o].push(i):e[o]=[e[o],i]:e[o]=i})),e},_createErrorBarGroup:function(t){var e,n=this._options.valueErrorBar;this.areErrorBarsVisible()&&(e={class:"dxc-error-bars",stroke:n.color,"stroke-width":n.lineWidth,opacity:t?.001:n.opacity||1,"stroke-linecap":"square",sharp:!0,"clip-path":this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},this._createGroup("_errorBarGroup",this,this._group,e))},_setGroupsSettings:function(t){this._setMarkerGroupSettings(),this._setLabelGroupSettings(t),this._createErrorBarGroup(t)},_getCreatingPointOptions:function(){var t,e,n=this._predefinedPointOptions;return n||(t=this._getPointOptions(),this._predefinedPointOptions=n=o(!0,{styles:{}},t),e=t.styles&&t.styles.normal||{},n.styles=n.styles||{},n.styles.normal={"stroke-width":e["stroke-width"],r:e.r,opacity:e.opacity}),n},_getPointOptions:function(){return this._parsePointOptions(this._preparePointOptions(),this._options.label)},_getOptionsForPoint:function(){return this._options.point},_parsePointStyle:function(t,e,n,i){var o=t.border||{},r=void 0!==t.size?t.size:i;return{fill:t.color||e,stroke:o.color||n,"stroke-width":o.visible?o.width:0,r:r/2+(o.visible&&0!==r&&~~(o.width/2)||0)}},_createPointStyles:function(t){var e=t.color||this._options.mainSeriesColor,n=this._options.containerBackgroundColor,i=this._parsePointStyle(t,e,e);return i.visibility=t.visible?"visible":"hidden",{normal:i,hover:this._parsePointStyle(t.hoverStyle,n,e,t.size),selection:this._parsePointStyle(t.selectionStyle,n,e,t.size)}},_checkData:function(t,e,n){return(n=n||{value:this.getValueFields()[0]}).argument=this.getArgumentField(),function(t,e,n){var i=!0;for(var o in e){var r="argument"===o;if(r||"size"===o?!d(t[o]):void 0===t[o]){var a=e[o];r||(n[a]=(n[a]||0)+1),i=!1}}return i}(t,n,e||{})&&t.value===t.value},getValueRangeInitialValue:function(){},_getRangeData:function(){return s.getRangeData(this)},_getPointDataSelector:function(){var t,e,n=this,i=this.getValueFields()[0],o=this.getArgumentField(),r=this.getTagField(),a=this.areErrorBarsVisible();if(a){var s=this._options.valueErrorBar;t=s.lowValueField||"lowError",e=s.highValueField||"highError"}return function(s){var l={value:n._processEmptyValue(s[i]),argument:s[o],tag:s[r],data:s};return a&&(l.lowError=s[t],l.highError=s[e]),l}},_errorBarsEnabled:function(){return"discrete"!==this.valueAxisType&&"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType},_drawPoint:function(t){var e=t.point;e.isInVisibleArea()?(e.clearVisibility(),e.draw(this._renderer,t.groups,t.hasAnimation,t.firstDrawing),this._drawnPoints.push(e)):e.setInvisibility()},_animateComplete:function(){var t={duration:this._defaultDuration};this._labelsGroup&&this._labelsGroup.animate({opacity:1},t),this._errorBarGroup&&this._errorBarGroup.animate({opacity:this._options.valueErrorBar.opacity||1},t)},_animate:function(){var t=this,e=t._drawnPoints.length-1;a(t._drawnPoints||[],(function(n,i){i.animate(n===e?function(){t._animateComplete()}:void 0,{translateX:i.x,translateY:i.y})}))},_defaultAggregator:"avg",_aggregators:{avg:function(t,e){var n,o=t.data,r=t.intervalStart;if(o.length){var a=e.getValueFields()[0],s=o.reduce((function(t,e){var n=e[a];return d(n)?(t[0]+=n,t[1]++):null===n&&t[2]++,t}),[0,0,0]);return function(t,e,n){var i=n.getOptions().valueErrorBar,o=n.getValueFields()[0],r=i.lowValueField||"lowError",a=i.highValueField||"highError";if(n.areErrorBarsVisible()&&void 0===i.type){var s=e.reduce((function(t,e){return d(e[r])&&(t[0]+=e[o]-e[r],t[1]++),d(e[a])&&(t[2]+=e[a]-e[o],t[3]++),t}),[0,0,0,0]);s[1]&&(t[r]=t[o]-s[0]/s[1]),s[2]&&(t[a]=t[o]+s[2]/s[3])}return t}((i(n={},a,s[2]===o.length?null:s[0]/s[1]),i(n,e.getArgumentField(),r),n),o,e)}},sum:function(t,e){var n,o=t.intervalStart,r=t.data;if(r.length){var a=e.getValueFields()[0],s=r.reduce((function(t,e){var n=e[a];return void 0!==n&&(t[0]+=n),null===n?t[1]++:void 0===n&&t[2]++,t}),[0,0,0]),l=s[0];if(s[1]===r.length&&(l=null),s[2]!==r.length)return function(t,e,n){var i=n.getOptions().valueErrorBar,o=i.lowValueField||"lowError",r=i.highValueField||"highError";return n.areErrorBarsVisible()&&void 0===i.type&&(t[o]=0,t[r]=0,t=e.reduce((function(t,e){return t[o]+=e[o],t[r]+=e[r],t}),t)),t}((i(n={},a,l),i(n,e.getArgumentField(),o),n),r,e)}},count:function(t,e){var n,o=t.data,r=t.intervalStart,a=e.getValueFields()[0];return i(n={},e.getArgumentField(),r),i(n,a,o.filter((function(t){return void 0!==t[a]})).length),n},min:w((function(t,e){return t<e})),max:w((function(t,e){return t>e}))},_endUpdateData:function(){delete this._predefinedPointOptions},getArgumentField:function(){return this._options.argumentField||"arg"},getValueFields:function(){var t,e,n=this._options,i=n.valueErrorBar,o=[n.valueField||"val"];return i&&(t=i.lowValueField,e=i.highValueField,h(t)&&o.push(t),h(e)&&o.push(e)),o},_calculateErrorBars:function(t){if(this.areErrorBarsVisible()){var e,n,i,o,r,s=this._options.valueErrorBar,l=p(s.type),u=parseFloat(s.value),c=this.getValueFields()[0],h=s.lowValueField||"lowError",m=s.highValueField||"highError",g=function(t,n){e=n.value,n.lowError=e-u,n.highError=e+u};switch(l){case"fixed":r=g;break;case"percent":r=function(t,n){var i=(e=n.value)*u/100;n.lowError=e-i,n.highError=e+i};break;case"undefined":r=function(t,e){e.lowError=e.data[h],e.highError=e.data[m]};break;default:switch(i=(n=f(t,(function(t){return d(t.data[c])?t.data[c]:null}))).length,u=u||1,l){case"variance":u=b(n,y(n)/i)*u,r=g;break;case"stddeviation":o=y(n)/i,u=_(b(n,o))*u,r=function(t,e){e.lowError=o-u,e.highError=o+u};break;case"stderror":u=_(b(n,y(n)/i)/i)*u,r=g}}r&&a(t,r)}},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions(),n=e.styles,i=[n.normal,n.hover,n.selection].reduce((function(t,e){return v(t,2*e.r+e["stroke-width"])}),0);return t.size=e.visible?i:0,t.sizePointNormalState=e.visible?2*n.normal.r+n.normal["stroke-width"]:2,t},usePointsToDefineAutoHiding:function(){return!0}};e.chart=o({},x,{drawTrackers:function(){var t,e,n=this,i=n._segments||[],o=n._options.rotated;n.isVisible()&&(i.length&&(t=n._trackers=n._trackers||[],e=n._trackersGroup=(n._trackersGroup||n._renderer.g().attr({fill:"gray",opacity:.001,stroke:"gray",class:"dxc-trackers"})).attr({"clip-path":this._paneClipRectID||null}).append(n._group),a(i,(function(i,o){t[i]?n._updateTrackerElement(o,t[i]):t[i]=n._drawTrackerElement(o).data({"chart-data-series":n}).append(e)}))),n._trackersTranslator=n.groupPointsByCoords(o))},_checkAxisVisibleAreaCoord:function(t,e){var n=(t?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();return d(e)&&n[0]<=e&&n[1]>=e},checkSeriesViewportCoord:function(t,e){return!0},getSeriesPairCoord:function(t,e){for(var n=null,i=!e&&!this._options.rotated||e&&this._options.rotated,o=i?"vy":"vx",r=i?"vx":"vy",a=this.getVisiblePoints(),s=0;s<a.length;s++){var l=a[s],u=l[o]===t?l[r]:void 0;if(this._checkAxisVisibleAreaCoord(!e,u)){n=u;break}}return n},_getNearestPoints:function(t,e){return[t,e]},_getBezierPoints:function(){return[]},_getNearestPointsByCoord:function(t,e){var n=this,i=n.getOptions().rotated,o=!e&&!i||e&&i?"vy":"vx",r=n.getPoints(),a=n._getBezierPoints(),s=[];return r.length>1?r.forEach((function(e,i){var l=r[i+1];l&&(e[o]<=t&&l[o]>=t||e[o]>=t&&l[o]<=t)&&s.push(n._getNearestPoints(e,l,a))})):s.push([r[0],r[0]]),s},getNeighborPoint:function(t,e){var n,i=this._options.rotated?e:t,o=i,r=this._trackersTranslator,s=null,l=this._options.rotated?t:e,u=this._options.rotated?"vx":"vy";if(this.isVisible()&&r){s=r[i];do{s=r[o]||r[i],i--,o++}while((i>=0||o<r.length)&&!s);Array.isArray(s)&&(n=g(s[0][u]-l),a(s,(function(t,e){var i=g(e[u]-l);n>=i&&(n=i,s=e)})))}return s},_applyVisibleArea:function(){var t=this._options.rotated,e=(t?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),n=(t?this.getArgumentAxis():this.getValueAxis()).getVisibleArea();this._visibleArea={minX:e[0],maxX:e[1],minY:n[0],maxY:n[1]}},getPointCenterByArg:function(t){var e=this.getPointsByArg(t)[0];return e?e.getCenterCoord():void 0}}),e.polar=o({},x,{drawTrackers:function(){e.chart.drawTrackers.call(this);var t,n=this._trackersTranslator;this.isVisible()&&(a(n,(function(e,n){if(n)return t=e,!1})),n[t+360]=n[t])},getNeighborPoint:function(t,n){var i=u.convertXYToPolar(this.getValueAxis().getCenter(),t,n);return e.chart.getNeighborPoint.call(this,i.phi,i.r)},_applyVisibleArea:function(){var t=this.getValueAxis().getCanvas();this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},getSeriesPairCoord:function(t,e){for(var n=null,i=e?"argument":"radius",o=this.getVisiblePoints(),r=0;r<o.length;r++){var a=o[r],s=d(a[i])&&d(t[i])&&a[i].valueOf()===t[i].valueOf()?{x:a.x,y:a.y}:void 0;if(d(s)){n=s;break}}return n}})},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=c(n(3)),r=c(n(6)),a=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=u();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),s=n(0),l=c(n(15));function u(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return u=function(){return t},t}function c(t){return t&&t.__esModule?t:{default:t}}var d="".concat(".dx-datagrid-rowsview .dx-row"," > td"),h="".concat(".dx-treelist-rowsview .dx-row"," > td"),f={groupPanel:[".dx-datagrid-group-panel .dx-group-panel-item[tabindex]"],columnHeaders:[".dx-datagrid-headers .dx-header-row > td.dx-datagrid-action",".dx-treelist-headers .dx-header-row > td.dx-treelist-action"],filterRow:[".dx-datagrid-headers .dx-datagrid-filter-row .dx-editor-cell .dx-texteditor-input",".dx-treelist-headers .dx-treelist-filter-row .dx-editor-cell .dx-texteditor-input"],rowsView:["".concat(".dx-row-focused"),"".concat(".dx-datagrid-rowsview .dx-row","[tabindex]"),"".concat(d,"[tabindex]"),"".concat(d),"".concat(".dx-treelist-rowsview .dx-row","[tabindex]"),"".concat(h,"[tabindex]"),"".concat(h)],footer:[".dx-datagrid-total-footer .dx-datagrid-summary-item",".dx-treelist-total-footer .dx-treelist-summary-item"],filterPanel:[".dx-datagrid-filter-panel .dx-icon-filter",".dx-treelist-filter-panel .dx-icon-filter"],pager:[".dx-datagrid-pager [tabindex]",".dx-treelist-pager [tabindex]"]},p=!1,m=!1,g=null;function _(e,n,i,r,l,u){if(!function(t,e,n){var i={event:e,handled:!1};n?n(i):t._createActionByOption("onKeyDown")(i);return i.handled}(n,i.originalEvent,u)){var c=a.normalizeKeyName(i);"enter"===c||"space"===c?(!function(t,e){var n=(0,o.default)(t),i=n.attr("aria-label"),r=v(i,e.element()).index(n);g=(0,s.extend)({},{ariaLabel:i,index:r},{viewInstance:e})}(i.target,n),r&&r({event:i})):"tab"===c?l.addClass("dx-state-focused"):t.exports.selectView(e,n,i)}}function v(t,e){var n=(0,o.default)(e);return t?n.find('[aria-label="'.concat(t,'"][tabindex]')):n.find("[tabindex]")}function y(t){for(var e in t){var n=t[e],i=(0,o.default)(n).first();if(i.length)return i}}function b(){m="visible"===l.default.getDocument().visibilityState}t.exports={subscribeVisibilityChange:function(){r.default.on(l.default.getDocument(),"visibilitychange",b)},unsubscribeVisibilityChange:function(){r.default.off(l.default.getDocument(),"visibilitychange",b)},hiddenFocus:function(t){m=!0,t.focus(),m=!1},registerKeyboardAction:function(t,e,n,i,a,s){if(!e.option("useLegacyKeyboardNavigation")){var l=(0,o.default)(e.element());r.default.on(n,"keydown",i,(function(n){return _(t,e,n,a,l,s)})),r.default.on(n,"mousedown",i,(function(){p=!0,l.removeClass("dx-state-focused")})),r.default.on(n,"focusin",i,(function(){!p&&!m&&l.addClass("dx-state-focused"),p=!1}))}},restoreFocus:function(t){if(!t.option("useLegacyKeyboardNavigation")&&g){var e=g.viewInstance;if(e){var n=v(g.ariaLabel,e.element()).eq(g.index);g=null,r.default.trigger(n,"focus")}}},selectView:function(t,e,n){var i=a.normalizeKeyName(n);if(n.ctrlKey&&("upArrow"===i||"downArrow"===i))for(var o=Object.keys(f),s=o.indexOf(t);s>=0&&s<o.length;){var l=o[s="upArrow"===i?--s:++s],u=y(f[l]);if(u&&u.length){u.attr("tabindex",e.option("tabindex")||0),r.default.trigger(u,"focus"),u.removeClass("dx-cell-focus-disabled");break}}},setTabIndex:function(t,e){t.option("useLegacyKeyboardnavigation")||e.attr("tabindex",t.option("tabindex")||0)}}},function(t,e,n){var i=n(30).Buffer,o=n(1151).Transform,r=n(149).StringDecoder;function a(t){o.call(this),this.hashMode="string"===typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(22)(a,o),a.prototype.update=function(t,e,n){"string"===typeof t&&(t=i.from(t,e));var o=this._update(t);return this.hashMode?this:(n&&(o=this._toString(o,n)),o)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(o){i=o}finally{n(i)}},a.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(n){e=n}t(e)},a.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},a.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new r(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=a},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){t.exports=n(597)},function(t,e,n){"use strict";var i=n(152).logger,o=n(89);t.exports=o({isWrapped:function(){return!1},isWritableWrapped:function(){return!1},wrap:function(t){return t},unwrap:function(t){return t},assign:function(){i.error("Method 'assign' should not be used for not wrapped variables. Use 'isWrapped' method for ensuring.")}})},function(t,e,n){"use strict";var i=n(46).camelize,o=n(113),r=n(2),a=n(15),s=["","Webkit","Moz","O","Ms"],l={"":"",Webkit:"-webkit-",Moz:"-moz-",O:"-o-",ms:"-ms-"},u=o((function(){return a.createElement("dx").style})),c=["fillOpacity","columnCount","flexGrow","flexShrink","fontWeight","lineHeight","opacity","zIndex","zoom"],d=function(t,e,n){if(t){n=r.isNumeric(n)?n+="px":n;for(var i=0;i<t.length;++i)t[i].style[e]=n}};e.styleProp=function(t){if(t in u())return t;var e=t;t=t.charAt(0).toUpperCase()+t.substr(1);for(var n=1;n<s.length;n++){var i=s[n].toLowerCase()+t;if(i in u())return i}return e},e.stylePropPrefix=function(t){return function(t,e){var n;t=i(t,!0);for(var o=0,r=s.length;o<r;o++){var a=s[o],l=a+t;if(void 0===(n=e(i(l),a))&&(n=e(l,a)),void 0!==n)break}return n||""}(t,(function(t,e){if(t in u())return l[e]}))},e.normalizeStyleProp=function(t,e){return r.isNumeric(e)&&-1===c.indexOf(t)&&(e+="px"),e},e.setWidth=function(t,e){d(t,"width",e)},e.setHeight=function(t,e){d(t,"height",e)}},function(t,e,n){"use strict";var i=n(3),o=n(77),r=n(15),a=n(6),s=n(57),l=n(21),u=n(0).extend,c=n(16).inArray,d=n(5).each,h=n(114),f=n(11),p=n(28),m=n(154),g=new(l.inherit({ctor:function(){this._attachHandlers(),this.reset(),this._proxiedCancelHandler=this._cancelHandler.bind(this),this._proxiedAcceptHandler=this._acceptHandler.bind(this)},_attachHandlers:function(){o.add(function(){var t=r.getDocument();a.subscribeGlobal(t,f.addNamespace(p.down,"dxEventManager"),this._pointerDownHandler.bind(this)),a.subscribeGlobal(t,f.addNamespace(p.move,"dxEventManager"),this._pointerMoveHandler.bind(this)),a.subscribeGlobal(t,f.addNamespace([p.up,p.cancel].join(" "),"dxEventManager"),this._pointerUpHandler.bind(this)),a.subscribeGlobal(t,f.addNamespace(m.name,"dxEventManager"),this._mouseWheelHandler.bind(this))}.bind(this))},_eachEmitter:function(t){for(var e=this._activeEmitters||[],n=0;e.length>n;){var i=e[n];if(!1===t(i))break;e[n]===i&&n++}},_applyToEmitters:function(t,e){this._eachEmitter((function(n){n[t].call(n,e)}))},reset:function(){this._eachEmitter(this._proxiedCancelHandler),this._activeEmitters=[]},resetEmitter:function(t){this._proxiedCancelHandler(t)},_pointerDownHandler:function(t){f.isMouseEvent(t)&&t.which>1||this._updateEmitters(t)},_updateEmitters:function(t){this._isSetChanged(t)&&(this._cleanEmitters(t),this._fetchEmitters(t))},_isSetChanged:function(t){var e=this._closestEmitter(t),n=this._emittersSet||[],i=e.length!==n.length;return d(e,(function(t,e){return!(i=i||n[t]!==e)})),this._emittersSet=e,i},_closestEmitter:function(t){var e=this,n=[],o=i(t.target);function r(i,o){o&&o.validatePointers(t)&&o.validate(t)&&(o.addCancelCallback(e._proxiedCancelHandler),o.addAcceptCallback(e._proxiedAcceptHandler),n.push(o))}for(;o.length;){var a=s.data(o.get(0),"dxEmitter")||[];d(a,r),o=o.parent()}return n},_acceptHandler:function(t,e){var n=this;this._eachEmitter((function(i){i!==t&&n._cancelEmitter(i,e)}))},_cancelHandler:function(t,e){this._cancelEmitter(t,e)},_cancelEmitter:function(t,e){var n=this._activeEmitters;e?t.cancel(e):t.reset(),t.removeCancelCallback(),t.removeAcceptCallback();var i=c(t,n);i>-1&&n.splice(i,1)},_cleanEmitters:function(t){this._applyToEmitters("end",t),this.reset(t)},_fetchEmitters:function(t){this._activeEmitters=this._emittersSet.slice(),this._applyToEmitters("start",t)},_pointerMoveHandler:function(t){this._applyToEmitters("move",t)},_pointerUpHandler:function(t){this._updateEmitters(t)},_mouseWheelHandler:function(t){this._allowInterruptionByMouseWheel()&&(t.pointers=[null],this._pointerDownHandler(t),this._adjustWheelEvent(t),this._pointerMoveHandler(t),t.pointers=[],this._pointerUpHandler(t))},_allowInterruptionByMouseWheel:function(){var t=!0;return this._eachEmitter((function(e){return t=e.allowInterruptionByMouseWheel()&&t})),t},_adjustWheelEvent:function(t){var e=null;if(this._eachEmitter((function(n){if(n.gesture){var i=n.getDirection(t);return"horizontal"!==i&&!t.shiftKey||"vertical"!==i&&t.shiftKey?(e=n,!1):void 0}})),e){var n=e.getDirection(t),i="both"===n&&!t.shiftKey||"vertical"===n;t[i?"pageY":"pageX"]+=t.delta}},isActive:function(t){var e=!1;return this._eachEmitter((function(n){e=e||n.getElement().is(t)})),e}}));t.exports=function(t){var e=t.emitter,n=t.events[0],i=t.events;d(i,(function(o,r){h(r,{noBubble:!t.bubble,setup:function(t){var i=s.data(t,"dxEmitterSubscription")||{},o=s.data(t,"dxEmitter")||{},a=o[n]||new e(t);i[r]=!0,o[n]=a,s.data(t,"dxEmitter",o),s.data(t,"dxEmitterSubscription",i)},add:function(t,e){s.data(t,"dxEmitter")[n].configure(u({delegateSelector:e.selector},e.data),e.type)},teardown:function(t){var e=s.data(t,"dxEmitterSubscription"),o=s.data(t,"dxEmitter"),a=o[n];delete e[r];var l=!0;d(i,(function(t,n){return l=l&&!e[n]})),l&&(g.isActive(t)&&g.resetEmitter(a),a&&a.dispose(),delete o[n])}})}))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FunctionTemplate=void 0;var i=n(156),o=n(17);function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.FunctionTemplate=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,n,i,r=l(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=r.call(this))._render=t,e}return e=u,(n=[{key:"_renderCore",value:function(t){return(0,o.normalizeTemplateElement)(this._render(t))}}])&&a(e.prototype,n),i&&a(e,i),u}(i.TemplateBase)},function(t,e,n){"use strict";var i=n(4).grep,o=n(0).extend,r=n(5).each,a=n(217),s=n(60).normalizeSortingInfo;function l(t,e){return t=t.groupBy(e[0].selector),e.length>1&&(t=t.select((function(t){return o({},t,{items:l(a(t.items),e.slice(1)).toArray()})}))),t}function u(t,e){var n=[];return r(t,(function(t,o){i(e,(function(t){return o.selector===t.selector})).length<1&&n.push(o)})),n.concat(e)}t.exports={multiLevelGroup:l,arrangeSortingInfo:u,queryByOptions:function(t,e,n){var i=(e=e||{}).filter;if(i&&(t=t.filter(i)),n)return t;var o=e.sort,a=e.select,c=e.group,d=e.skip,h=e.take;return c&&((c=s(c)).keepInitialKeyOrder=!!e.group.keepInitialKeyOrder),(o||c)&&(o=s(o||[]),c&&!c.keepInitialKeyOrder&&(o=u(c,o)),r(o,(function(e){t=t[e?"thenBy":"sortBy"](this.selector,this.desc,this.compare)}))),a&&(t=t.select(a)),c&&(t=l(t,c)),(h||d)&&(t=t.slice(d||0,h)),t}}},function(t,e,n){"use strict";var i=n(7).Deferred,o=n(15),r=n(636),a=n(10),s=a.getWindow(),l=n(0).extendFromObject,u=n(2).isDefined,c=n(93),d=n(89),h=function(t){var e=o.createElement("script");for(var n in t)e[n]=t[n];return e},f=function(t){t.parentNode.removeChild(t)},p=function(t){return o.getHead().appendChild(t)},m=function(t){var e=h({text:t});p(e),f(e)},g=function(t,e){var n=t.data,i="string"===typeof n,o=t.url||s.location.href;return i||t.cache||((n=n||{})._=Date.now()),n&&!t.upload&&(i||(n=function(t){var e=[];for(var n in t){var i=t[n];void 0!==i&&(null===i&&(i=""),e.push(encodeURIComponent(n)+"="+encodeURIComponent(i)))}return e.join("&")}(n)),"GET"===_(t)?(""!==n&&(o+=(o.indexOf("?")>-1?"&":"?")+n),n=null):e["Content-Type"]&&e["Content-Type"].indexOf("application/x-www-form-urlencoded")>-1&&(n=n.replace(/%20/g,"+"))),{url:o,parameters:n}};function _(t){return(t.method||"GET").toUpperCase()}var v=function(t){var e=t.headers||{};return e["Content-Type"]=e["Content-Type"]||function(t){var e;return t.data&&!t.upload&&"GET"!==_(t)&&(e="application/x-www-form-urlencoded;charset=utf-8"),t.contentType||e}(t),e.Accept=e.Accept||function(t){var e=t.dataType||"*",n="text/javascript, application/javascript, application/ecmascript, application/x-ecmascript",i={"*":"*/*",text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript",jsonp:n,script:n};return l(i,t.accepts,!0),i[e]?i[e]+("*"!==e?", */*; q=0.01":""):i["*"]}(t),t.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e};t.exports=d({sendRequest:function(t){var e,n=r.getXhr(),l=new i,d=l.promise(),y=!u(t.async)||t.async,b=t.dataType,w=t.timeout||0;t.crossDomain=function(t){if(!a.hasWindow())return!0;var e=!1,n=o.createElement("a"),i=o.createElement("a");n.href=s.location.href;try{i.href=t,i.href=i.href,e=n.protocol+"//"+n.host!==i.protocol+"//"+i.host}catch(r){e=!0}return e}(t.url);var x="jsonp"===b||"script"===b;void 0===t.cache&&(t.cache=!x);var C=function(t){if("jsonp"===t.dataType){var e=Math.random().toString().replace(/\D/g,""),n=t.jsonpCallback||"dxCallback"+Date.now()+"_"+e,i=t.jsonp||"callback";return t.data=t.data||{},t.data[i]=n,n}}(t),S=v(t),k=g(t,S),I=k.url,T=k.parameters;if(C&&(s[C]=function(t){l.resolve(t,"success",n)}),t.crossDomain&&x){return function(t){var e=h({src:t});return new c((function(t,n){var i={load:t,error:n},r=function(t){i[t.type](),f(e)};for(var a in i)o.listen(e,a,r);p(e)}))}(I).then((function(){"jsonp"!==b&&l.resolve(null,"success",n)}),(function(){l.reject(n,"error")})),d}if(t.crossDomain&&!("withCredentials"in n))return l.reject(n,"error"),d;if(n.open(_(t),I,y,t.username,t.password),y&&(n.timeout=w,e=function(t,e){return t&&setTimeout((function(){e.customStatus="timeout",e.abort()}),t)}(w,n)),n.onreadystatechange=function(t){var i;4===n.readyState&&(clearTimeout(e),200<=(i=n.status)&&i<300?function(t){return 204!==t}(n.status)?function(e,n,i){var o=function(t){return t.responseType&&"text"!==t.responseType||"string"!==typeof t.responseText?t.response:t.responseText}(n);switch(i){case"jsonp":m(o);break;case"script":m(o),e.resolve(o,"success",n);break;case"json":try{e.resolve(JSON.parse(o),"success",n)}catch(t){e.reject(n,"parsererror",t)}break;default:e.resolve(o,"success",n)}}(l,n,b):l.resolve(null,"nocontent",n):l.reject(n,n.customStatus||"error"))},t.upload&&(n.upload.onprogress=t.upload.onprogress,n.upload.onloadstart=t.upload.onloadstart,n.upload.onabort=t.upload.onabort),t.xhrFields)for(var E in t.xhrFields)n[E]=t.xhrFields[E];for(var O in"arraybuffer"===t.responseType&&(n.responseType=t.responseType),S)Object.prototype.hasOwnProperty.call(S,O)&&u(S[O])&&n.setRequestHeader(O,S[O]);return t.beforeSend&&t.beforeSend(n),n.send(T),d.abort=function(){n.abort()},d}})},function(t,e,n){"use strict";var i=n(11),o=n(186),r=n(131),a=Math.abs;r({emitter:o.inherit({start:function(t){this._startEventData=i.eventData(t),this._startTimer(t)},_startTimer:function(t){var e="timeout"in this?this.timeout:750;this._holdTimer=setTimeout(function(){this._requestAccept(t),this._fireEvent("dxhold",t,{target:t.target}),this._forgetAccept()}.bind(this),e)},move:function(t){this._touchWasMoved(t)&&this._cancel(t)},_touchWasMoved:function(t){var e=i.eventDelta(this._startEventData,i.eventData(t));return a(e.x)>5||a(e.y)>5},end:function(){this._stopTimer()},_stopTimer:function(){clearTimeout(this._holdTimer)},cancel:function(){this._stopTimer()},dispose:function(){this._stopTimer()}}),bubble:!0,events:["dxhold"]}),t.exports={name:"dxhold"}},function(t,e,n){"use strict";var i=m(n(21)),o=n(0),r=n(16),a=n(5),s=n(153),l=m(n(38)),u=n(4),c=m(n(2)),d=m(n(74)),h=m(n(12)),f=m(n(93)),p=n(7);function m(t){return t&&t.__esModule?t:{default:t}}function g(t){return(g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function S(t,e,n){return e&&C(t.prototype,e),n&&C(t,n),t}var k="valid",I="invalid",T="pending",E=function(){function t(){x(this,t),this.NAME="base"}return S(t,[{key:"defaultMessage",value:function(t){return h.default.getFormatter("validation-".concat(this.NAME))(t)}},{key:"defaultFormattedMessage",value:function(t){return h.default.getFormatter("validation-".concat(this.NAME,"-formatted"))(t)}},{key:"_isValueEmpty",value:function(t){return!F.required.validate(t,{})}},{key:"validate",value:function(t,e){var n=this,i=Array.isArray(t)?t:[t],o=!0;return i.length?i.every((function(t){return o=n._validate(t,e)})):o=this._validate(null,e),o}}]),t}(),O=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="required",t}return S(n,[{key:"_validate",value:function(t,e){return!!c.default.isDefined(t)&&(!1!==t&&(t=String(t),!e.trim&&c.default.isDefined(e.trim)||(t=t.trim()),""!==t))}}]),n}(E),M=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="numeric",t}return S(n,[{key:"_validate",value:function(t,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(t))||(e.useCultureSettings&&c.default.isString(t)?!isNaN(d.default.parse(t)):c.default.isNumeric(t))}}]),n}(E),P=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="range",t}return S(n,[{key:"_validate",value:function(t,e){if(!1!==e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var n=F.numeric.validate(t,e),i=c.default.isDefined(t)&&""!==t,o=n?parseFloat(t):i&&t.valueOf(),r=e.min,a=e.max;if(!n&&!c.default.isDate(t)&&!i)return!1;if(c.default.isDefined(r))return c.default.isDefined(a)?o>=r&&o<=a:o>=r;if(c.default.isDefined(a))return o<=a;throw l.default.Error("E0101")}}]),n}(E),D=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="stringLength",t}return S(n,[{key:"_validate",value:function(t,e){return t=c.default.isDefined(t)?String(t):"",!e.trim&&c.default.isDefined(e.trim)||(t=t.trim()),!(!e.ignoreEmptyValue||!this._isValueEmpty(t))||F.range.validate(t.length,(0,o.extend)({},e))}}]),n}(E),A=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="custom",t}return S(n,[{key:"validate",value:function(t,e){if(e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var n=e.validator,i=n&&c.default.isFunction(n.option)&&n.option("dataGetter"),r=c.default.isFunction(i)&&i(),a={value:t,validator:n,rule:e};return r&&(0,o.extend)(a,r),e.validationCallback(a)}}]),n}(E),R=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="async",t}return S(n,[{key:"validate",value:function(t,e){if(c.default.isDefined(e.reevaluate)||(0,o.extend)(e,{reevaluate:!0}),e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var n=e.validator,i=n&&c.default.isFunction(n.option)&&n.option("dataGetter"),r=c.default.isFunction(i)&&i(),a={value:t,validator:n,rule:e};r&&(0,o.extend)(a,r);var s=e.validationCallback(a);if(!c.default.isPromise(s))throw l.default.Error("E0103");return this._getWrappedPromise((0,p.fromPromise)(s).promise())}},{key:"_getWrappedPromise",value:function(t){var e=new p.Deferred;return t.then((function(t){e.resolve(t)}),(function(t){var n={isValid:!1};c.default.isDefined(t)&&(c.default.isString(t)?n.message=t:c.default.isObject(t)&&c.default.isDefined(t.message)&&c.default.isString(t.message)&&(n.message=t.message)),e.resolve(n)})),e.promise()}}]),n}(A),B=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="compare",t}return S(n,[{key:"_validate",value:function(t,e){if(!e.comparisonTarget)throw l.default.Error("E0102");if(e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;(0,o.extend)(e,{reevaluate:!0});var n=e.comparisonTarget();switch(e.comparisonType||"=="){case"==":return t==n;case"!=":return t!=n;case"===":return t===n;case"!==":return t!==n;case">":return t>n;case">=":return t>=n;case"<":return t<n;case"<=":return t<=n}}}]),n}(E),N=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="pattern",t}return S(n,[{key:"_validate",value:function(t,e){if(!1!==e.ignoreEmptyValue&&this._isValueEmpty(t))return!0;var n=e.pattern;return c.default.isString(n)&&(n=new RegExp(n)),n.test(t)}}]),n}(E),L=function(t){_(n,t);var e=y(n);function n(){var t;return x(this,n),(t=e.call(this)).NAME="email",t}return S(n,[{key:"_validate",value:function(t,e){return!(!1===e.ignoreEmptyValue||!this._isValueEmpty(t))||F.pattern.validate(t,(0,o.extend)({},e,{pattern:/^[\d\w._-]+@([\d\w._-]+\.)+[\w]+$/i}))}}]),n}(E),F={required:new O,numeric:new M,range:new P,stringLength:new D,custom:new A,async:new R,compare:new B,pattern:new N,email:new L},V=i.default.inherit({ctor:function(t){this.group=t,this.validators=[],this._pendingValidators=[],this._onValidatorStatusChanged=this._onValidatorStatusChanged.bind(this),this._resetValidationInfo(),this._eventsStrategy=new s.EventsStrategy(this)},validate:function(){var t=this,e={isValid:!0,brokenRules:[],validators:[],status:k,complete:null};return this._unsubscribeFromAllChangeEvents(),this._pendingValidators=[],this._resetValidationInfo(),(0,a.each)(this.validators,(function(n,i){var o=i.validate();e.isValid=e.isValid&&o.isValid,o.brokenRules&&(e.brokenRules=e.brokenRules.concat(o.brokenRules)),e.validators.push(i),o.status===T&&t._addPendingValidator(i),t._subscribeToChangeEvents(i)})),this._pendingValidators.length?e.status=T:(e.status=e.isValid?k:I,this._unsubscribeFromAllChangeEvents(),this._raiseValidatedEvent(e)),this._updateValidationInfo(e),(0,o.extend)({},this._validationInfo.result)},_subscribeToChangeEvents:function(t){t.on("validating",this._onValidatorStatusChanged),t.on("validated",this._onValidatorStatusChanged)},_unsubscribeFromChangeEvents:function(t){t.off("validating",this._onValidatorStatusChanged),t.off("validated",this._onValidatorStatusChanged)},_unsubscribeFromAllChangeEvents:function(){var t=this;(0,a.each)(this.validators,(function(e,n){t._unsubscribeFromChangeEvents(n)}))},_updateValidationInfo:function(t){this._validationInfo.result=t,t.status===T&&(this._validationInfo.deferred||(this._validationInfo.deferred=new p.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()))},_addPendingValidator:function(t){(0,u.grep)(this._pendingValidators,(function(e){return e===t}))[0]||this._pendingValidators.push(t)},_removePendingValidator:function(t){var e=(0,r.inArray)(t,this._pendingValidators);e>=0&&this._pendingValidators.splice(e,1)},_orderBrokenRules:function(t){var e=[];return(0,a.each)(this.validators,(function(n,i){var o=(0,u.grep)(t,(function(t){return t.validator===i}));o.length&&(e=e.concat(o))})),e},_updateBrokenRules:function(t){if(this._validationInfo.result){var e=this._validationInfo.result.brokenRules,n=(0,u.grep)(e,(function(e){return e.validator!==t.validator}));t.brokenRules&&(e=n.concat(t.brokenRules)),this._validationInfo.result.brokenRules=this._orderBrokenRules(e)}},_onValidatorStatusChanged:function(t){t.status!==T?this._resolveIfComplete(t):this._addPendingValidator(t.validator)},_resolveIfComplete:function(t){if(this._removePendingValidator(t.validator),this._updateBrokenRules(t),!this._pendingValidators.length){if(this._unsubscribeFromAllChangeEvents(),!this._validationInfo.result)return;this._validationInfo.result.status=0===this._validationInfo.result.brokenRules.length?k:I,this._validationInfo.result.isValid=this._validationInfo.result.status===k;var e=(0,o.extend)({},this._validationInfo.result,{complete:null}),n=this._validationInfo.deferred;this._resetValidationInfo(),this._raiseValidatedEvent(e),n&&setTimeout((function(){n.resolve(e)}))}},_raiseValidatedEvent:function(t){this._eventsStrategy.fireEvent("validated",[t])},_resetValidationInfo:function(){this._validationInfo={result:null,deferred:null}},_synchronizeValidationInfo:function(){this._validationInfo.result&&(this._validationInfo.result.validators=this.validators)},removeRegisteredValidator:function(t){var e=(0,r.inArray)(t,this.validators);e>-1&&(this.validators.splice(e,1),this._synchronizeValidationInfo(),this._resolveIfComplete({validator:t}))},registerValidator:function(t){(0,r.inArray)(t,this.validators)<0&&(this.validators.push(t),this._synchronizeValidationInfo())},reset:function(){(0,a.each)(this.validators,(function(t,e){e.reset()})),this._pendingValidators=[],this._resetValidationInfo()},on:function(t,e){return this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this}}),z={groups:[],getGroupConfig:function(t){var e=(0,u.grep)(this.groups,(function(e){return e.group===t}));if(e.length)return e[0]},findGroup:function(t,e){var n=t.parents(".dx-validationgroup").first();return n.length?n.dxValidationGroup("instance"):e},initGroups:function(){this.groups=[],this.addGroup()},addGroup:function(t){var e=this.getGroupConfig(t);return e||(e=new V(t),this.groups.push(e)),e},removeGroup:function(t){var e=this.getGroupConfig(t),n=(0,r.inArray)(e,this.groups);return n>-1&&this.groups.splice(n,1),e},_setDefaultMessage:function(t){var e=t.rule,n=t.validator,i=t.name;c.default.isDefined(e.message)||(n.defaultFormattedMessage&&c.default.isDefined(i)?e.message=n.defaultFormattedMessage(i):e.message=n.defaultMessage())},_addBrokenRule:function(t){var e=t.result,n=t.rule;e.brokenRule||(e.brokenRule=n),e.brokenRules||(e.brokenRules=[]),e.brokenRules.push(n)},validate:function(t,e,n){var i=this,o={name:n,value:t,brokenRule:null,brokenRules:null,isValid:!0,validationRules:e,pendingRules:null,status:k,complete:null},r=[];return(0,a.each)(e||[],(function(e,a){var s,u=F[a.type];if(!u)throw l.default.Error("E0100");return c.default.isDefined(a.isValid)&&a.value===t&&!a.reevaluate?!!a.isValid||(o.isValid=!1,i._addBrokenRule({result:o,rule:a}),!1):(a.value=t,"async"===a.type?(r.push({rule:a,ruleValidator:u}),!0):(s=u.validate(t,a),a.isValid=s,s||(o.isValid=!1,i._setDefaultMessage({rule:a,validator:u,name:n}),i._addBrokenRule({result:o,rule:a})),!!a.isValid&&void 0))})),o.isValid&&!o.brokenRules&&r.length&&(o=this._validateAsyncRules({value:t,items:r,result:o,name:n})),o.status=o.pendingRules?T:o.isValid?k:I,o},_validateAsyncRules:function(t){var e=this,n=t.result,i=t.value,o=t.items,r=t.name,s=[];return(0,a.each)(o,(function(t,o){var a=o.ruleValidator.validate(i,o.rule);if(c.default.isPromise(a)){n.pendingRules||(n.pendingRules=[]),n.pendingRules.push(o.rule);var l=a.then((function(t){var n=e._getPatchedRuleResult(t);return e._updateRuleConfig({rule:o.rule,ruleResult:n,validator:o.ruleValidator,name:r}),n}));s.push(l)}else e._updateRuleConfig({rule:o.rule,ruleResult:e._getPatchedRuleResult(a),validator:o.ruleValidator,name:r})})),s.length&&(n.complete=f.default.all(s).then((function(t){return e._getAsyncRulesResult({result:n,values:t})}))),n},_updateRuleConfig:function(t){var e=t.rule,n=t.ruleResult,i=t.validator,o=t.name;e.isValid=n.isValid,n.isValid||(c.default.isDefined(n.message)&&c.default.isString(n.message)&&n.message.length?e.message=n.message:this._setDefaultMessage({rule:e,validator:i,name:o}))},_getPatchedRuleResult:function(t){var e;return c.default.isObject(t)?(e=(0,o.extend)({},t),c.default.isDefined(e.isValid)||(e.isValid=!0)):e={isValid:!c.default.isBoolean(t)||t},e},_getAsyncRulesResult:function(t){var e=this,n=t.values,i=t.result;return(0,a.each)(n,(function(t,n){if(!1===n.isValid){i.isValid=n.isValid;var o=i.pendingRules[t];e._addBrokenRule({result:i,rule:o})}})),i.pendingRules=null,i.complete=null,i.status=i.isValid?k:I,i},registerValidatorInGroup:function(t,e){var n=z.addGroup(t);n.registerValidator.call(n,e)},_shouldRemoveGroup:function(t,e){var n=void 0===t,i=t&&"dxValidationGroup"===t.NAME;return!n&&!i&&!e.length},removeRegisteredValidator:function(t,e){var n=z.getGroupConfig(t);if(n){n.removeRegisteredValidator.call(n,e);var i=n.validators;this._shouldRemoveGroup(t,i)&&this.removeGroup(t)}},initValidationOptions:function(t){var e=this,n={};if(t){["isValid","validationStatus","validationError","validationErrors"].forEach((function(i){i in t&&(0,o.extend)(n,e.synchronizeValidationOptions({name:i,value:t[i]},t))}))}return n},synchronizeValidationOptions:function(t,e){var n=t.name,i=t.value;switch(n){case"validationStatus":var o=i===k||i===T;return e.isValid!==o?{isValid:o}:{};case"isValid":var r=e.validationStatus,a=r;return i&&r===I?a=k:i||r===I||(a=I),a!==r?{validationStatus:a}:{};case"validationErrors":var s=i&&i.length?i[0]:null;return e.validationError!==s?{validationError:s}:{};case"validationError":var l=e.validationErrors;if(!i&&l)return{validationErrors:null};if(i&&!l)return{validationErrors:[i]};if(i&&l&&i!==l[0])return l[0]=i,{validationErrors:l.slice()}}return{}},validateGroup:function(t){var e=z.getGroupConfig(t);if(!e)throw l.default.Error("E0110");return e.validate()},resetGroup:function(t){var e=z.getGroupConfig(t);if(!e)throw l.default.Error("E0110");return e.reset()}};z.initGroups(),t.exports=z,t.exports.default=t.exports},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(3),r=n(10),a=r.getWindow(),s=n(17).getPublicElement,l=n(15),u=n(6),c=n(8),d=n(4),h=n(0).extend,f=n(33),p=n(90),m=n(2),g=n(37),_=n(11),v=n(48),y=n(24).getBoundingRect,b={left:"right",top:"bottom",right:"left",bottom:"top",center:"center"},w={left:-1,top:-1,center:0,right:1,bottom:1},x={top:{my:"bottom center",at:"top center",collision:"fit flip"},bottom:{my:"top center",at:"bottom center",collision:"fit flip"},right:{my:"left center",at:"right center",collision:"flip fit"},left:{my:"right center",at:"left center",collision:"flip fit"}},C={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},S=function(t){return m.isObject(t)?t.name:t},k=function(t,e){var n=t.option(e);return S(n)},I=function(t,e){var n=t.option("target"),i=m.isString(n),r=k(t,e+"Event");if(r&&!t.option("disabled")){var a=_.addNamespace(r,t.NAME),c=t._createAction(function(){var n=function(t,e){var n=t.option(e);return m.isObject(n)&&n.delay}(t,e+"Event");this._clearEventsTimeouts(),n?this._timeouts[e]=setTimeout((function(){t[e]()}),n):t[e]()}.bind(t),{validatingTargetName:"target"}),d=function(t){c({event:t,target:o(t.currentTarget)})},h="_"+e+"EventHandler";if(i)t[h]=d,u.on(l.getDocument(),a,n,d);else{var f=s(o(n));t[h]=void 0,u.on(f,a,d)}}},T=function(t,e,n,i){var r=i||k(t,n+"Event");if(r){r=_.addNamespace(r,t.NAME);var a="_"+n+"EventHandler";t[a]?u.off(l.getDocument(),r,e,t[a]):u.off(s(o(e)),r)}},E=v.inherit({_getDefaultOptions:function(){return h(this.callBase(),{target:a,shading:!1,position:"bottom",closeOnOutsideClick:!0,animation:{show:{type:"fade",from:0,to:1},hide:{type:"fade",to:0}},showTitle:!1,width:"auto",height:"auto",dragEnabled:!1,resizeEnabled:!1,fullScreen:!1,closeOnTargetScroll:!0,arrowPosition:"",arrowOffset:0,boundaryOffset:{h:10,v:10}})},_defaultOptionsRules:function(){return[{device:{platform:"ios"},options:{arrowPosition:{boundaryOffset:{h:20,v:-10},collision:"fit"}}},{device:function(){return!r.hasWindow()},options:{animation:null}}]},_init:function(){this.callBase(),this._renderArrow(),this._timeouts={},this.$element().addClass("dx-popover"),this._wrapper().addClass("dx-popover-wrapper")},_render:function(){this.callBase.apply(this,arguments),this._detachEvents(this.option("target")),this._attachEvents()},_detachEvents:function(t){T(this,t,"show"),T(this,t,"hide")},_attachEvents:function(){I(this,"show"),I(this,"hide")},_renderArrow:function(){this._$arrow=o("<div>").addClass("dx-popover-arrow").prependTo(this.overlayContent())},_documentDownHandler:function(t){return!this._isOutsideClick(t)||this.callBase(t)},_isOutsideClick:function(t){return!o(t.target).closest(this.option("target")).length},_animate:function(t){t&&t.to&&"object"===i(t.to)&&h(t.to,{position:this._getContainerPosition()}),this.callBase.apply(this,arguments)},_stopAnimation:function(){this.callBase.apply(this,arguments)},_renderTitle:function(){this._wrapper().toggleClass("dx-popover-without-title",!this.option("showTitle")),this.callBase()},_renderPosition:function(){this.callBase(),this._renderOverlayPosition()},_renderOverlayBoundaryOffset:d.noop,_renderOverlayPosition:function(){this._resetOverlayPosition(),this._updateContentSize();var t=this._getContainerPosition(),e=p.setup(this._$content,t),n=this._getSideByLocation(e);this._togglePositionClass("dx-position-"+n),this._toggleFlippedClass(e.h.flip,e.v.flip),(this._isHorizontalSide()||this._isVerticalSide())&&this._renderArrowPosition(n)},_resetOverlayPosition:function(){this._setContentHeight(!0),this._togglePositionClass("dx-position-"+this._positionSide),f.move(this._$content,{left:0,top:0}),this._$arrow.css({top:"auto",right:"auto",bottom:"auto",left:"auto"})},_updateContentSize:function(){if(this._$popupContent){var t=p.calculate(this._$content,this._getContainerPosition());if(t.h.oversize>0&&this._isHorizontalSide()&&!t.h.fit){var e=this._$content.width()-t.h.oversize;this._$content.width(e)}if(t.v.oversize>0&&this._isVerticalSide()&&!t.v.fit){var n=this._$content.height()-t.v.oversize,i=this._$popupContent.height()-t.v.oversize;this._$content.height(n),this._$popupContent.height(i)}}},_getContainerPosition:function(){var t=d.pairToObject(this._position.offset||""),e=t.h,n=t.v,i=this._isVerticalSide(),o=this._isHorizontalSide();if(i||o){var r=(this._isPopoverInside()?-1:1)*w[this._positionSide]*((i?this._$arrow.height():this._$arrow.width())-this._getContentBorderWidth(this._positionSide));i?n+=r:e+=r}return h({},this._position,{offset:e+" "+n})},_getContentBorderWidth:function(t){var e=this._$content.css(C[t]);return parseInt(e)||0},_getSideByLocation:function(t){var e=t.v.flip,n=t.h.flip;return this._isVerticalSide()&&e||this._isHorizontalSide()&&n||this._isPopoverInside()?b[this._positionSide]:this._positionSide},_togglePositionClass:function(t){this._$wrapper.removeClass("dx-position-left dx-position-right dx-position-top dx-position-bottom").addClass(t)},_toggleFlippedClass:function(t,e){this._$wrapper.toggleClass("dx-popover-flipped-horizontal",t).toggleClass("dx-popover-flipped-vertical",e)},_renderArrowPosition:function(t){var e=y(this._$arrow.get(0)),n=-(this._isVerticalSide(t)?e.height:e.width);this._$arrow.css(b[t],n);var i,r=this._isVerticalSide(t)?"left":"top",a=this._isVerticalSide(t)?"width":"height",s=o(this._position.of),l=p.offset(s)||{top:0,left:0},u=p.offset(this._$content),c=e[a],d=u[r],h=y(this._$content.get(0))[a],f=l[r],m=s.get(0).preventDefault?0:y(s.get(0))[a],_=Math.max(d,f),v=Math.min(d+h,f+m);i="start"===this.option("arrowPosition")?_-d:"end"===this.option("arrowPosition")?v-d-c:(_+v)/2-d-c/2;var w=this._getContentBorderWidth(t),x=g.fitIntoRange(i-w+this.option("arrowOffset"),w,h-c-2*w);this._$arrow.css(r,x)},_isPopoverInside:function(){var t=this._transformStringPosition(this.option("position"),x),e=p.setup.normalizeAlign(t.my),n=p.setup.normalizeAlign(t.at);return e.h===n.h&&e.v===n.v},_setContentHeight:function(t){t&&this.callBase()},_renderWrapperPosition:function(){this.option("shading")&&this._$wrapper.css({top:0,left:0})},_renderWrapperDimensions:function(){this.option("shading")&&this._$wrapper.css({width:"100%",height:"100%"})},_normalizePosition:function(){var t=h({},this._transformStringPosition(this.option("position"),x));t.of||(t.of=this.option("target")),t.collision||(t.collision="flip"),t.boundaryOffset||(t.boundaryOffset=this.option("boundaryOffset")),this._positionSide=this._getDisplaySide(t),this._position=t},_getDisplaySide:function(t){var e=p.setup.normalizeAlign(t.my),n=p.setup.normalizeAlign(t.at),i=w[e.h]===w[n.h]&&w[e.v]===w[n.v]?-1:1;return Math.abs(w[e.h]-i*w[n.h])>Math.abs(w[e.v]-i*w[n.v])?n.h:n.v},_isVerticalSide:function(t){return"top"===(t=t||this._positionSide)||"bottom"===t},_isHorizontalSide:function(t){return"left"===(t=t||this._positionSide)||"right"===t},_clearEventTimeout:function(t){clearTimeout(this._timeouts[t])},_clearEventsTimeouts:function(){this._clearEventTimeout("show"),this._clearEventTimeout("hide")},_clean:function(){this._detachEvents(this.option("target")),this.callBase.apply(this,arguments)},_optionChanged:function(t){switch(t.name){case"boundaryOffset":case"arrowPosition":case"arrowOffset":this._renderGeometry();break;case"fullScreen":t.value&&this.option("fullScreen",!1);break;case"target":t.previousValue&&this._detachEvents(t.previousValue),this.callBase(t);break;case"showEvent":case"hideEvent":var e=t.name.substring(0,4),n=S(t.previousValue);this.hide(),T(this,this.option("target"),e,n),I(this,e);break;case"visible":this._clearEventTimeout(t.value?"show":"hide"),this.callBase(t);break;default:this.callBase(t)}},show:function(t){return t&&this.option("target",t),this.callBase()}});c("dxPopover",E),t.exports=E,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(18),a=n(0).extend,s=n(79),l=n(62),u=n(8),c=n(11),d=n(25),h=l.inherit({_supportedKeys:function(){return a(this.callBase(),{space:function(t){t.preventDefault(),this._clickAction({event:t})}})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,text:"",useInkRipple:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}}])},_canValueBeChangedByClick:function(){return!0},_feedbackHideTimeout:100,_initMarkup:function(){this._renderSubmitElement(),this._$container=i("<div>").addClass("dx-checkbox-container"),this.setAria("role","checkbox"),this.$element().addClass("dx-checkbox"),this._renderValue(),this._renderIcon(),this._renderText(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().append(this._$container),this.callBase()},_render:function(){this._renderClick(),this.callBase()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:2.5,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(t,e,n,i){if(this._inkRipple){var o={element:t,event:e,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(t,e){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,t,e,0)},_toggleActiveState:function(t,e,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,e,1)},_renderIcon:function(){this._$icon=i("<span>").addClass("dx-checkbox-icon").prependTo(this._$container)},_renderText:function(){var t=this.option("text");t?(this._$text||(this._$text=i("<span>").addClass("dx-checkbox-text")),this._$text.text(t),this._$container.append(this._$text),this.$element().addClass("dx-checkbox-has-text")):this._$text&&(this._$text.remove(),this.$element().removeClass("dx-checkbox-has-text"))},_renderClick:function(){var t=this,e=c.addNamespace(d.name,t.NAME);t._clickAction=t._createAction(t._clickHandler),o.off(t.$element(),e),o.on(t.$element(),e,(function(e){t._clickAction({event:e})}))},_clickHandler:function(t){var e=t.component;e._saveValueChangeEvent(t.event),e.option("value",!e.option("value"))},_renderValue:function(){var t=this.$element(),e=this.option("value"),n=void 0===e;t.toggleClass("dx-checkbox-checked",Boolean(e)),t.toggleClass("dx-checkbox-indeterminate",n),this._getSubmitElement().val(e),this.setAria("checked",n?"mixed":e||"false")},_optionChanged:function(t){switch(t.name){case"useInkRipple":this._invalidate();break;case"value":this._renderValue(),this.callBase(t);break;case"text":this._renderText(),this._renderDimensions();break;default:this.callBase(t)}},_clean:function(){delete this._inkRipple,this.callBase()}});u("dxCheckBox",h),t.exports=h,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(13).patchFontOptions;function o(t){var e=t.renderer;this._group=e.g().attr({class:"dx-loading-indicator"}).linkOn(e.root,{name:"loading-indicator",after:"peripheral"}),this._rect=e.rect().attr({opacity:0}).append(this._group),this._text=e.text().attr({align:"center"}).append(this._group),this._createStates(t.eventTrigger,this._group,e.root,t.notify)}o.prototype={constructor:o,_createStates:function(t,e,n,i){this._states=[{opacity:0,start:function(){i(!1)},complete:function(){e.linkRemove(),n.css({"pointer-events":""}),t("loadingIndicatorReady")}},{opacity:.85,start:function(){e.linkAppend(),n.css({"pointer-events":"none"}),i(!0)},complete:function(){t("loadingIndicatorReady")}}],this._state=0},setSize:function(t){var e=t.width,n=t.height;this._rect.attr({width:e,height:n}),this._text.attr({x:e/2,y:n/2})},setOptions:function(t){this._rect.attr({fill:t.backgroundColor}),this._text.css(i(t.font)).attr({text:t.text,class:t.cssClass}),this[t.show?"show":"hide"]()},dispose:function(){this._group.linkRemove().linkOff(),this._group=this._rect=this._text=this._states=null},_transit:function(t){var e;this._state!==t&&(this._state=t,this._isHiding=!1,e=this._states[t],this._rect.stopAnimation().animate({opacity:e.opacity},{complete:e.complete,easing:"linear",duration:400,unstoppable:!0}),this._noHiding=!0,e.start(),this._noHiding=!1)},show:function(){this._transit(1)},hide:function(){this._transit(0)},scheduleHiding:function(){this._noHiding||(this._isHiding=!0)},fulfillHiding:function(){this._isHiding&&this.hide()}},e.LoadingIndicator=o,e.plugin={name:"loading_indicator",init:function(){var t=this;t._loadingIndicator=new e.LoadingIndicator({eventTrigger:t._eventTrigger,renderer:t._renderer,notify:function(e){t._skipLoadingIndicatorOptions=!0,t.option("loadingIndicator",{show:e}),t._skipLoadingIndicatorOptions=!1,e&&t._stopCurrentHandling()}}),t._scheduleLoadingIndicatorHiding()},dispose:function(){this._loadingIndicator.dispose(),this._loadingIndicator=null},members:{_scheduleLoadingIndicatorHiding:function(){this._loadingIndicator.scheduleHiding()},_fulfillLoadingIndicatorHiding:function(){this._loadingIndicator.fulfillHiding()},showLoadingIndicator:function(){this._loadingIndicator.show()},hideLoadingIndicator:function(){this._loadingIndicator.hide()},_onBeginUpdate:function(){this._optionChangedLocker||this._scheduleLoadingIndicatorHiding()}},extenders:{_dataSourceLoadingChangedHandler:function(t){t&&(this._options.silent("loadingIndicator")||{}).enabled&&this._loadingIndicator.show()},_setContentSize:function(){this._loadingIndicator.setSize(this._canvas)},endUpdate:function(){this._initialized&&this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},customize:function(t){var e=t.prototype;if(e._dataSourceChangedHandler){var n=e._dataSourceChangedHandler;e._dataSourceChangedHandler=function(){this._scheduleLoadingIndicatorHiding(),n.apply(this,arguments)}}t.addChange({code:"LOADING_INDICATOR",handler:function(){this._skipLoadingIndicatorOptions||this._loadingIndicator.setOptions(this._getOption("loadingIndicator")),this._scheduleLoadingIndicatorHiding()},isThemeDependent:!0,option:"loadingIndicator",isOptionChange:!0}),e._eventsMap.onLoadingIndicatorReady={name:"loadingIndicatorReady"};var i=e._drawn;e._drawn=function(){i.apply(this,arguments),this._dataIsReady()&&this._fulfillLoadingIndicatorHiding()}},fontFields:["loadingIndicator.font"]}},function(t,e,n){"use strict";t.exports={events:{mouseover:"mouseover",mouseout:"mouseout",mousemove:"mousemove",touchstart:"touchstart",touchmove:"touchmove",touchend:"touchend",mousedown:"mousedown",mouseup:"mouseup",click:"click",selectSeries:"selectseries",deselectSeries:"deselectseries",selectPoint:"selectpoint",deselectPoint:"deselectpoint",showPointTooltip:"showpointtooltip",hidePointTooltip:"hidepointtooltip"},states:{hover:"hover",normal:"normal",selection:"selection",normalMark:0,hoverMark:1,selectedMark:2,applyHover:"applyHover",applySelected:"applySelected",resetItem:"resetItem"},radialLabelIndent:30,pieLabelSpacing:10,pieSeriesSpacing:4}},function(t,e,n){"use strict";var i=n(0).extend,o=n(5).each,r=n(4).noop,a=n(10),s=a.getWindow(),l=n(289),u=i,c=n(2).isDefined,d=n(13).normalizeEnum,h=Math,f=h.round,p=h.floor,m=h.ceil;t.exports={deleteLabel:function(){this._label.dispose(),this._label=null},_hasGraphic:function(){return this.graphic},clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},isVisible:function(){return this.inVisibleArea&&this.series.isVisible()},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._errorBar&&this._errorBar.attr({visibility:"hidden"}),this._label.draw(!1)},clearMarker:function(){var t=this.graphic;t&&t.attr(this._emptySettings)},_createLabel:function(){this._label=new l.Label({renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this})},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_updateLabelOptions:function(){!this._label&&this._createLabel(),this._label.setOptions(this._options.label)},_checkImage:function(t){return c(t)&&("string"===typeof t||c(t.url))},_fillStyle:function(){this._styles=this._options.styles},_checkSymbol:function(t,e){var n=t.symbol,i=e.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,r=this._checkImage(t.image)!==this._checkImage(e.image);return!(!o&&!r)},_populatePointShape:function(t,e){switch(t){case"square":return function(t){return[-t,-t,t,-t,t,t,-t,t,-t,-t]}(e);case"polygon":return function(t){var e=m(t);return[-e,0,0,-e,e,0,0,e,-e,0]}(e);case"triangle":case"triangleDown":return function(t){return[-t,-t,t,-t,0,t,-t,-t]}(e);case"triangleUp":return function(t){return[-t,t,t,t,0,-t,-t,t]}(e);case"cross":return function(t){var e=m(t),n=p(e/2),i=m(e/2);return[-e,-n,-n,-e,0,-i,n,-e,e,-n,i,0,e,n,n,e,0,i,-n,e,-e,n,-i,0]}(e)}},hasCoords:function(){return null!==this.x&&null!==this.y},correctValue:function(t){var e=this.series.getValueAxis();this.hasValue()&&(this.value=this.properValue=e.validateUnit(this.initialValue.valueOf()+t.valueOf()),this.minValue=e.validateUnit(t))},resetCorrection:function(){this.value=this.properValue=this.initialValue,this.minValue="canvas_position_default"},resetValue:function(){this.hasValue()&&(this.value=this.properValue=this.initialValue=0,this.minValue=0,this._label.setDataField("value",this.value))},_getTranslates:function(t){var e=this.x,n=this.y;return t&&(this._options.rotated?e=this.defaultX:n=this.defaultY),{x:e,y:n}},_createImageMarker:function(t,e,n){var i=n.width||20,o=n.height||20;return t.image(-f(.5*i),-f(.5*o),i,o,n.url?n.url.toString():n.toString(),"center").attr({translateX:e.translateX,translateY:e.translateY,visibility:e.visibility})},_createSymbolMarker:function(t,e){var n,i=this._options.symbol;return"circle"===i?(delete e.points,n=t.circle().attr(e)):"square"!==i&&"polygon"!==i&&"triangle"!==i&&"triangleDown"!==i&&"triangleUp"!==i&&"cross"!==i||(n=t.path([],"area").attr(e).sharp()),n},_createMarker:function(t,e,n,i){var o=this._checkImage(n)?this._createImageMarker(t,i,n):this._createSymbolMarker(t,i);return o&&o.data({"chart-data-point":this}).append(e),o},_getSymbolBBox:function(t,e,n){return{x:t-n,y:e-n,width:2*n,height:2*n}},_getImageBBox:function(t,e){var n=this._options.image,i=n.width||20,o=n.height||20;return{x:t-f(i/2),y:e-f(o/2),width:i,height:o}},_getGraphicBBox:function(){var t=this._options,e=this.x,n=this.y;return t.visible?this._checkImage(t.image)?this._getImageBBox(e,n):this._getSymbolBBox(e,n,t.styles.normal.r):{x:e,y:n,width:0,height:0}},hideInsideLabel:r,_getShiftLabelCoords:function(t){var e=this._addLabelAlignmentAndOffset(t,this._getLabelCoords(t));return this._checkLabelPosition(t,e)},_drawLabel:function(){var t=this._getCustomLabelVisibility(),e=this._label,n=this._showForZeroValues()&&this.hasValue()&&!1!==t&&(this.series.getLabelVisibility()||t);e.draw(!!n)},correctLabelPosition:function(t){var e=this._getShiftLabelCoords(t);this.hideInsideLabel(t,e)||(t.setFigureToDrawConnector(this._getLabelConnector(t.pointPosition)),t.shift(f(e.x),f(e.y)))},_showForZeroValues:function(){return!0},_getLabelConnector:function(t){var e=this._getGraphicBBox(t),n=e.width/2,i=e.height/2;return{x:e.x+n,y:e.y+i,r:this._options.visible?Math.max(n,i):0}},_getPositionFromLocation:function(){return{x:this.x,y:this.y}},_isPointInVisibleArea:function(t,e){return t.minX<=e.x+e.width&&t.maxX>=e.x&&t.minY<=e.y+e.height&&t.maxY>=e.y},_checkLabelPosition:function(t,e){var n=this._getVisibleArea(),i=t.getBoundingRect(),o=this._getGraphicBBox(t.pointPosition),r=this._getGraphicBBox(),a="inside"===t.getLayoutOptions().position;return this._isPointInVisibleArea(n,r)&&(this._options.rotated?(n.minX>e.x&&(e.x=a?n.minX:o.x+o.width+10),n.maxX<e.x+i.width&&(e.x=a?n.maxX-i.width:o.x-10-i.width),n.minY>e.y&&(e.y=n.minY),n.maxY<e.y+i.height&&(e.y=n.maxY-i.height)):(n.minX>e.x&&(e.x=n.minX),n.maxX<e.x+i.width&&(e.x=n.maxX-i.width),n.minY>e.y&&(e.y=a?n.minY:o.y+o.height+10),n.maxY<e.y+i.height&&(e.y=a?n.maxY-i.height:o.y-i.height-10))),e},_addLabelAlignmentAndOffset:function(t,e){var n=t.getBoundingRect(),i=t.getLayoutOptions();return this._options.rotated||("left"===i.alignment?e.x+=n.width/2:"right"===i.alignment&&(e.x-=n.width/2)),e.x+=i.horizontalOffset,e.y+=i.verticalOffset,e},_getLabelCoords:function(t){return this._getLabelCoordOfPosition(t,this._getLabelPosition(t.pointPosition))},_getLabelCoordOfPosition:function(t,e){var n=t.getBoundingRect(),i=this._getGraphicBBox(t.pointPosition),o=i.height/2-n.height/2,r=i.width/2-n.width/2,a=i.x,s=i.y;switch(e){case"left":a-=n.width+10,s+=o;break;case"right":a+=i.width+10,s+=o;break;case"top":a+=r,s-=n.height+10;break;case"bottom":a+=r,s+=i.height+10;break;case"inside":a+=r,s+=o}return{x:a,y:s}},_drawMarker:function(t,e,n){var i=this._options,o=this._getTranslates(n),r=this._getStyle();this.graphic=this._createMarker(t,e,i.image,u({translateX:o.x,translateY:o.y,points:this._populatePointShape(i.symbol,r.r)},r))},_getErrorBarSettings:function(){return{visibility:"visible"}},_getErrorBarBaseEdgeLength:function(){return 2*this.getPointRadius()},_drawErrorBar:function(t,e){if(this._options.errorBars){var n,i=this._options,r=i.errorBars,a=[],s=this._errorBarPos,l=this._highErrorCoord,u=this._lowErrorCoord,h=d(r.displayMode),f="high"===h,m="low"===h,g=(f||!c(u))&&c(l)&&!m,_=(m||!c(l))&&c(u)&&!f,v=r.edgeLength;v<=1&&v>0&&(v=this._getErrorBarBaseEdgeLength()*r.edgeLength),v=p(parseInt(v)/2),g&&(u=this._baseErrorBarPos),_&&(l=this._baseErrorBarPos),"none"!==h&&c(l)&&c(u)&&c(s)?(!_&&a.push([s-v,l,s+v,l]),a.push([s,l,s,u]),!g&&a.push([s+v,u,s-v,u]),i.rotated&&o(a,(function(t,e){e.reverse()})),n=this._getErrorBarSettings(r),this._errorBar?(n.points=a,this._errorBar.attr(n)):this._errorBar=t.path(a,"line").attr(n).append(e)):this._errorBar&&this._errorBar.attr({visibility:"hidden"})}},getTooltipParams:function(){var t=this.graphic;return{x:this.x,y:this.y,offset:t?t.getBBox().height/2:0}},setPercentValue:function(t,e,n,i){var o=this.value/t||0,r=this.minValue/t||0,a=o-r;this._label.setDataField("percent",a),this._label.setDataField("total",e),this.series.isFullStackedSeries()&&this.hasValue()&&(this.leftHole&&(this.leftHole/=t-n,this.minLeftHole/=t-n),this.rightHole&&(this.rightHole/=t-i,this.minRightHole/=t-i),this.value=this.properValue=o,this.minValue=r||this.minValue)},_storeTrackerR:function(){var t=s.navigator,e=this._options.styles.normal.r,n=a.hasProperty("ontouchstart")||t.msPointerEnabled&&t.msMaxTouchPoints||t.pointerEnabled&&t.maxTouchPoints?20:6;return this._options.trackerR=e<n?n:e,this._options.trackerR},_translateErrorBars:function(){var t=this._options,e=t.rotated,n=t.errorBars,i=this._getValTranslator();n&&(c(this.lowError)&&(this._lowErrorCoord=i.translate(this.lowError)),c(this.highError)&&(this._highErrorCoord=i.translate(this.highError)),this._errorBarPos=p(e?this.vy:this.vx),this._baseErrorBarPos="stdDeviation"===n.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:e?this.vx:this.vy)},_translate:function(){var t=this._getValTranslator(),e=this._getArgTranslator();this._options.rotated?(this.vx=this.x=t.translate(this.value),this.vy=this.y=e.translate(this.argument),this.minX=t.translate(this.minValue),this.defaultX=t.translate("canvas_position_default")):(this.vy=this.y=t.translate(this.value),this.vx=this.x=e.translate(this.argument),this.minY=t.translate(this.minValue),this.defaultY=t.translate("canvas_position_default")),this._translateErrorBars(),this._calculateVisibility(this.x,this.y)},_updateData:function(t){this.value=this.properValue=this.initialValue=this.originalValue=t.value,this.minValue=this.initialMinValue=this.originalMinValue=c(t.minValue)?t.minValue:"canvas_position_default"},_getImageSettings:function(t){return{href:t.url||t.toString(),width:t.width||20,height:t.height||20}},getCrosshairData:function(){var t=this._options.rotated,e=this.properValue,n=this.argument;return{x:this.vx,y:this.vy,xValue:t?e:n,yValue:t?n:e,axis:this.series.axis}},getPointRadius:function(){var t=this._getStyle(),e=this._options,n=t.r,i=e.symbol,o="square"===i,r="triangle"===i||"triangleDown"===i||"triangleUp"===i;return e.visible&&!e.image&&n?(o||r?1.4*n:n)+t["stroke-width"]/2:0},_updateMarker:function(t,e){var n,i=this._options,o=i.image,r=this.isVisible()?{}:{visibility:"hidden"};n=this._checkImage(o)?u({},{visibility:e.visibility},r,this._getImageSettings(o)):u({},e,r,{points:this._populatePointShape(i.symbol,e.r)}),t||(n.translateX=this.x,n.translateY=this.y),this.graphic.attr(n).sharp()},_getLabelFormatObject:function(){return{argument:this.initialArgument,value:this.initialValue,originalArgument:this.originalArgument,originalValue:this.originalValue,seriesName:this.series.name,lowErrorValue:this.lowError,highErrorValue:this.highError,point:this}},_getLabelPosition:function(){var t=this._options.rotated;return this.initialValue>0?t?"right":"top":t?"left":"bottom"},_getFormatObject:function(t){var e=this._label.getData();return u({},e,{argumentText:t.formatValue(this.initialArgument,"argument"),valueText:t.formatValue(this.initialValue)},c(e.percent)?{percentText:t.formatValue(e.percent,"percent")}:{},c(e.total)?{totalText:t.formatValue(e.total)}:{})},getMarkerVisibility:function(){return this._options.visible},coordsIn:function(t,e){var n=this._storeTrackerR();return t>=this.x-n&&t<=this.x+n&&e>=this.y-n&&e<=this.y+n},getMinValue:function(t){var e=this._options.errorBars;if(e&&!t){var n=e.displayMode,i="high"!==n&&c(this.lowError)?this.lowError:this.value,o="low"!==n&&c(this.highError)?this.highError:this.value;return i<o?i:o}return this.value},getMaxValue:function(t){var e=this._options.errorBars;if(e&&!t){var n=e.displayMode,i="high"!==n&&c(this.lowError)?this.lowError:this.value,o="low"!==n&&c(this.highError)?this.highError:this.value;return i>o?i:o}return this.value}}},function(t,e,n){"use strict";t.exports=n(766),t.exports.default=t.exports},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(3),r=n(67),a=n(2).isDate,s=n(5).each,l=n(43),u={SUPPORTED_FORMATS:["date","time","datetime"],DATE_COMPONENT_TEXT_FORMATTER:function(t,e){var n=o("<div>").addClass("dx-dateview-formatter-container");return o("<span>").text(t).addClass("dx-dateview-value-formatter").appendTo(n),o("<span>").text(e).addClass("dx-dateview-name-formatter").appendTo(n),n},ONE_MINUTE:6e4,ONE_DAY:864e5,ONE_YEAR:31536e6,MIN_DATEVIEW_DEFAULT_DATE:new Date(1900,0,1),MAX_DATEVIEW_DEFAULT_DATE:function(){var t=new Date;return new Date(t.getFullYear()+50,t.getMonth(),t.getDate(),23,59,59)}(),FORMATS_INFO:{date:{getStandardPattern:function(){return"yyyy-MM-dd"},components:["year","day","month","day"]},time:{getStandardPattern:function(){return"HH:mm"},components:["hours","minutes","seconds","milliseconds"]},datetime:{getStandardPattern:function(){var t;return function(){var e=o("<input>").attr("type","datetime");e.val("2000-01-01T01:01Z"),e.val()&&(t="yyyy-MM-ddTHH:mmZ")}(),t||(t="yyyy-MM-ddTHH:mm:ssZ"),u.FORMATS_INFO.datetime.getStandardPattern=function(){return t},t},components:["year","day","month","day"].concat(["hours","minutes","seconds","milliseconds"])},"datetime-local":{getStandardPattern:function(){return"yyyy-MM-ddTHH:mm:ss"},components:["year","day","month","day"].concat(["hours","minutes","seconds"])}},FORMATS_MAP:{date:"shortdate",time:"shorttime",datetime:"shortdateshorttime"},SUBMIT_FORMATS_MAP:{date:"date",time:"time",datetime:"datetime-local"},toStandardDateFormat:function(t,e){var n=u.FORMATS_INFO[e].getStandardPattern();return r.serializeDate(t,n)},fromStandardDateFormat:function(t){var e=r.dateParser(t);return a(e)?e:void 0},getMaxMonthDay:function(t,e){return new Date(t,e+1,0).getDate()},mergeDates:function(t,e,n){if(!e)return e||null;if(!t||isNaN(t.getTime())){var i=new Date(null);t=new Date(i.getFullYear(),i.getMonth(),i.getDate())}var o=new Date(t.valueOf()),r=u.FORMATS_INFO[n];return s(r.components,(function(){var t=u.DATE_COMPONENTS_INFO[this];o[t.setter](e[t.getter]())})),o},getLongestCaptionIndex:function(t){var e,n=0,i=0;for(e=0;e<t.length;++e)t[e].length>i&&(n=e,i=t[e].length);return n},formatUsesMonthName:function(t){return l.formatUsesMonthName(t)},formatUsesDayName:function(t){return l.formatUsesDayName(t)},getLongestDate:function(t,e,n){var o=function(t){var e=i(t);return"string"===e?"format":"object"===e&&void 0!==t.type?t.type:null}(t),r=9;o&&!u.formatUsesMonthName(o)||(r=u.getLongestCaptionIndex(e));var a=new Date(1888,r,21,23,59,59,999);if(!o||u.formatUsesDayName(o)){var s=a.getDate()-a.getDay()+u.getLongestCaptionIndex(n);a.setDate(s)}return a},normalizeTime:function(t){t.setSeconds(0),t.setMilliseconds(0)}};u.DATE_COMPONENTS_INFO={year:{getter:"getFullYear",setter:"setFullYear",formatter:function(t,e){var n=new Date(e.getTime());return n.setFullYear(t),l.format(n,"yyyy")},startValue:void 0,endValue:void 0},day:{getter:"getDate",setter:"setDate",formatter:function(t,e){var n=new Date(e.getTime());return n.setDate(t),l.format(n,"d")},startValue:1,endValue:void 0},month:{getter:"getMonth",setter:"setMonth",formatter:function(t){return l.getMonthNames()[t]},startValue:0,endValue:11},hours:{getter:"getHours",setter:"setHours",formatter:function(t){return l.format(new Date(0,0,0,t),"hour")},startValue:0,endValue:23},minutes:{getter:"getMinutes",setter:"setMinutes",formatter:function(t){return l.format(new Date(0,0,0,0,t),"minute")},startValue:0,endValue:59},seconds:{getter:"getSeconds",setter:"setSeconds",formatter:function(t){return l.format(new Date(0,0,0,0,0,t),"second")},startValue:0,endValue:59},milliseconds:{getter:"getMilliseconds",setter:"setMilliseconds",formatter:function(t){return l.format(new Date(0,0,0,0,0,0,t),"millisecond")},startValue:0,endValue:999}},t.exports=u},function(t,e,n){"use strict";var i,o=n(104),r=n(224),a=n(2),s=n(10),l=n(0),u=n(12),c=(i=u)&&i.__esModule?i:{default:i};var d={widget:"separator"},h="dx-diagram-sm-edit-item",f="dx-diagram-md-edit-item",p="dx-diagram-lg-edit-item",m="dx-diagram-image-dropdown-item",g="dx-diagram-color-edit-item",_="dx-diagram-lg-icon-item",v={SHOW_TOOLBOX_COMMAND_NAME:"toolbox",SHOW_PROPERTIES_PANEL_COMMAND_NAME:"propertiesPanel",getAllCommands:function(){var t=this,e=(0,o.getDiagram)().DiagramCommand;return this._allCommands||(this._allCommands={separator:d,exportSvg:{command:e.ExportSvg,text:c.default.format("dxDiagram-commandExportToSvg"),getParameter:function(e){return function(n){return t._exportTo(e,n,"SVG","image/svg+xml")}}},exportPng:{command:e.ExportPng,text:c.default.format("dxDiagram-commandExportToPng"),getParameter:function(e){return function(n){return t._exportTo(e,n,"PNG","image/png")}}},exportJpg:{command:e.ExportJpg,text:c.default.format("dxDiagram-commandExportToJpg"),getParameter:function(e){return function(n){return t._exportTo(e,n,"JPEG","image/jpeg")}}},undo:{command:e.Undo,hint:c.default.format("dxDiagram-commandUndo"),text:c.default.format("dxDiagram-commandUndo"),icon:"undo",menuIcon:"undo"},redo:{command:e.Redo,hint:c.default.format("dxDiagram-commandRedo"),text:c.default.format("dxDiagram-commandRedo"),icon:"redo",menuIcon:"redo"},cut:{command:e.Cut,hint:c.default.format("dxDiagram-commandCut"),text:c.default.format("dxDiagram-commandCut"),icon:"cut",menuIcon:"cut"},copy:{command:e.Copy,hint:c.default.format("dxDiagram-commandCopy"),text:c.default.format("dxDiagram-commandCopy"),icon:"copy",menuIcon:"copy"},paste:{command:e.PasteInPosition,hint:c.default.format("dxDiagram-commandPaste"),text:c.default.format("dxDiagram-commandPaste"),icon:"paste",menuIcon:"paste"},selectAll:{command:e.SelectAll,hint:c.default.format("dxDiagram-commandSelectAll"),text:c.default.format("dxDiagram-commandSelectAll"),icon:"dx-diagram-i-button-select-all dx-diagram-i",menuIcon:"dx-diagram-i-menu-select-all dx-diagram-i"},delete:{command:e.Delete,hint:c.default.format("dxDiagram-commandDelete"),text:c.default.format("dxDiagram-commandDelete"),icon:"remove",menuIcon:"remove"},fontName:{command:e.FontName,hint:c.default.format("dxDiagram-commandFontName"),text:c.default.format("dxDiagram-commandFontName"),widget:"dxSelectBox",items:["Arial","Arial Black","Helvetica","Times New Roman","Courier New","Courier","Verdana","Georgia","Comic Sans MS","Trebuchet MS"].map((function(t){return{text:t,value:t}})),cssClass:f},fontSize:{command:e.FontSize,hint:c.default.format("dxDiagram-commandFontSize"),text:c.default.format("dxDiagram-commandFontSize"),widget:"dxSelectBox",items:[8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72].map((function(t){return{text:t+"pt",value:t+"pt"}})),cssClass:h},bold:{command:e.Bold,hint:c.default.format("dxDiagram-commandBold"),text:c.default.format("dxDiagram-commandBold"),icon:"bold",menuIcon:"bold"},italic:{command:e.Italic,hint:c.default.format("dxDiagram-commandItalic"),text:c.default.format("dxDiagram-commandItalic"),icon:"italic",menuIcon:"italic"},underline:{command:e.Underline,hint:c.default.format("dxDiagram-commandUnderline"),text:c.default.format("dxDiagram-commandUnderline"),icon:"underline",menuIcon:"underline"},fontColor:{command:e.FontColor,text:c.default.format("dxDiagram-commandTextColor"),hint:c.default.format("dxDiagram-commandTextColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-color",menuIcon:"dx-icon dx-icon-color",cssClass:g},lineColor:{command:e.StrokeColor,text:c.default.format("dxDiagram-commandLineColor"),hint:c.default.format("dxDiagram-commandLineColor"),widget:"dxColorBox",icon:"dx-icon dx-icon-background",menuIcon:"dx-icon dx-icon-background",cssClass:g},lineWidth:{command:e.StrokeWidth,text:c.default.format("dxDiagram-commandLineWidth"),hint:c.default.format("dxDiagram-commandLineWidth"),widget:"dxSelectBox",items:[1,2,3,4,5,6,7,8].map((function(t){return{text:t+"px",value:t.toString()}})),cssClass:h},lineStyle:{command:e.StrokeStyle,text:c.default.format("dxDiagram-commandLineStyle"),hint:c.default.format("dxDiagram-commandLineStyle"),widget:"dxSelectBox",items:[{value:"",menuIcon:"dx-diagram-i-line-solid dx-diagram-i",hint:c.default.format("dxDiagram-commandLineStyleSolid")},{value:"2,2",menuIcon:"dx-diagram-i-line-dotted dx-diagram-i",hint:c.default.format("dxDiagram-commandLineStyleDotted")},{value:"6,2",menuIcon:"dx-diagram-i-line-dashed dx-diagram-i",hint:c.default.format("dxDiagram-commandLineStyleDashed")}],cssClass:m},fillColor:{command:e.FillColor,text:c.default.format("dxDiagram-commandFillColor"),hint:c.default.format("dxDiagram-commandFillColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},textAlignLeft:{command:e.TextLeftAlign,hint:c.default.format("dxDiagram-commandAlignLeft"),text:c.default.format("dxDiagram-commandAlignLeft"),icon:"alignleft",menuIcon:"alignleft"},textAlignCenter:{command:e.TextCenterAlign,hint:c.default.format("dxDiagram-commandAlignCenter"),text:c.default.format("dxDiagram-commandAlignCenter"),icon:"aligncenter",menuIcon:"aligncenter"},textAlignRight:{command:e.TextRightAlign,hint:c.default.format("dxDiagram-commandAlignRight"),text:c.default.format("dxDiagram-commandAlignRight"),icon:"alignright",menu:"alignright"},lock:{command:e.Lock,hint:c.default.format("dxDiagram-commandLock"),text:c.default.format("dxDiagram-commandLock"),icon:"dx-diagram-i-button-lock dx-diagram-i",menuIcon:"dx-diagram-i-menu-lock dx-diagram-i"},unlock:{command:e.Unlock,hint:c.default.format("dxDiagram-commandUnlock"),text:c.default.format("dxDiagram-commandUnlock"),icon:"dx-diagram-i-button-unlock dx-diagram-i",menuIcon:"dx-diagram-i-menu-unlock dx-diagram-i"},bringToFront:{command:e.BringToFront,hint:c.default.format("dxDiagram-commandBringToFront"),text:c.default.format("dxDiagram-commandBringToFront"),icon:"dx-diagram-i-button-bring-to-front dx-diagram-i",menuIcon:"dx-diagram-i-menu-bring-to-front dx-diagram-i"},sendToBack:{command:e.SendToBack,hint:c.default.format("dxDiagram-commandSendToBack"),text:c.default.format("dxDiagram-commandSendToBack"),icon:"dx-diagram-i-button-send-to-back dx-diagram-i",menuIcon:"dx-diagram-i-menu-send-to-back dx-diagram-i"},insertShapeImage:{command:e.InsertShapeImage,text:c.default.format("dxDiagram-commandInsertShapeImage"),icon:"dx-diagram-i-button-image-insert dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-insert dx-diagram-i"},editShapeImage:{command:e.EditShapeImage,text:c.default.format("dxDiagram-commandEditShapeImage"),icon:"dx-diagram-i-button-image-edit dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-edit dx-diagram-i"},deleteShapeImage:{command:e.DeleteShapeImage,text:c.default.format("dxDiagram-commandDeleteShapeImage"),icon:"dx-diagram-i-button-image-delete dx-diagram-i",menuIcon:"dx-diagram-i-menu-image-delete dx-diagram-i"},connectorLineType:{command:e.ConnectorLineOption,widget:"dxSelectBox",hint:c.default.format("dxDiagram-commandConnectorLineType"),items:[{value:0,menuIcon:"dx-diagram-i-connector-straight dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineStraight")},{value:1,menuIcon:"dx-diagram-i-connector-orthogonal dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineOrthogonal")}],cssClass:m},connectorLineStart:{command:e.ConnectorStartLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-begin-none dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-begin-arrow dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-begin-outlined-triangle dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-begin-filled-triangle dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")}],hint:c.default.format("dxDiagram-commandConnectorLineStart"),cssClass:m},connectorLineEnd:{command:e.ConnectorEndLineEnding,widget:"dxSelectBox",items:[{value:0,menuIcon:"dx-diagram-i-connector-end-none dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineNone")},{value:1,menuIcon:"dx-diagram-i-connector-end-arrow dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")},{value:2,menuIcon:"dx-diagram-i-connector-end-outlined-triangle dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")},{value:3,menuIcon:"dx-diagram-i-connector-end-filled-triangle dx-diagram-i",hint:c.default.format("dxDiagram-commandConnectorLineArrow")}],hint:c.default.format("dxDiagram-commandConnectorLineEnd"),cssClass:m},layoutTreeTopToBottom:{command:e.AutoLayoutTreeVertical,text:c.default.format("dxDiagram-commandLayoutTopToBottom"),hint:c.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-tree-tb dx-diagram-i",cssClass:_},layoutTreeBottomToTop:{command:e.AutoLayoutTreeVerticalBottomToTop,text:c.default.format("dxDiagram-commandLayoutBottomToTop"),hint:c.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-tree-bt dx-diagram-i",cssClass:_},layoutTreeLeftToRight:{command:e.AutoLayoutTreeHorizontal,text:c.default.format("dxDiagram-commandLayoutLeftToRight"),hint:c.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-tree-lr dx-diagram-i",cssClass:_},layoutTreeRightToLeft:{command:e.AutoLayoutTreeHorizontalRightToLeft,text:c.default.format("dxDiagram-commandLayoutRightToLeft"),hint:c.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-tree-rl dx-diagram-i",cssClass:_},layoutLayeredTopToBottom:{command:e.AutoLayoutLayeredVertical,text:c.default.format("dxDiagram-commandLayoutTopToBottom"),hint:c.default.format("dxDiagram-commandLayoutTopToBottom"),icon:"dx-diagram-i-button-layout-layered-tb dx-diagram-i",cssClass:_},layoutLayeredBottomToTop:{command:e.AutoLayoutLayeredVerticalBottomToTop,text:c.default.format("dxDiagram-commandLayoutBottomToTop"),hint:c.default.format("dxDiagram-commandLayoutBottomToTop"),icon:"dx-diagram-i-button-layout-layered-bt dx-diagram-i",cssClass:_},layoutLayeredLeftToRight:{command:e.AutoLayoutLayeredHorizontal,text:c.default.format("dxDiagram-commandLayoutLeftToRight"),hint:c.default.format("dxDiagram-commandLayoutLeftToRight"),icon:"dx-diagram-i-button-layout-layered-lr dx-diagram-i",cssClass:_},layoutLayeredRightToLeft:{command:e.AutoLayoutLayeredHorizontalRightToLeft,text:c.default.format("dxDiagram-commandLayoutRightToLeft"),hint:c.default.format("dxDiagram-commandLayoutRightToLeft"),icon:"dx-diagram-i-button-layout-layered-rl dx-diagram-i",cssClass:_},fullScreen:{command:e.Fullscreen,hint:c.default.format("dxDiagram-commandFullscreen"),text:c.default.format("dxDiagram-commandFullscreen"),icon:"dx-diagram-i dx-diagram-i-button-fullscreen",menuIcon:"dx-diagram-i dx-diagram-i-menu-fullscreen",cssClass:g},units:{command:e.ViewUnits,hint:c.default.format("dxDiagram-commandUnits"),text:c.default.format("dxDiagram-commandUnits"),widget:"dxSelectBox"},simpleView:{command:e.ToggleSimpleView,hint:c.default.format("dxDiagram-commandSimpleView"),text:c.default.format("dxDiagram-commandSimpleView"),widget:"dxCheckBox"},showGrid:{command:e.ShowGrid,hint:c.default.format("dxDiagram-commandShowGrid"),text:c.default.format("dxDiagram-commandShowGrid"),widget:"dxCheckBox"},snapToGrid:{command:e.SnapToGrid,hint:c.default.format("dxDiagram-commandSnapToGrid"),text:c.default.format("dxDiagram-commandSnapToGrid"),widget:"dxCheckBox"},gridSize:{command:e.GridSize,hint:c.default.format("dxDiagram-commandGridSize"),text:c.default.format("dxDiagram-commandGridSize"),widget:"dxSelectBox"},pageSize:{command:e.PageSize,hint:c.default.format("dxDiagram-commandPageSize"),text:c.default.format("dxDiagram-commandPageSize"),widget:"dxSelectBox",cssClass:p,getCommandValue:function(t){return JSON.parse(t)},getEditorValue:function(t){return JSON.stringify(t)}},pageOrientation:{command:e.PageLandscape,hint:c.default.format("dxDiagram-commandPageOrientation"),text:c.default.format("dxDiagram-commandPageOrientation"),widget:"dxSelectBox",items:[{value:!0,text:c.default.format("dxDiagram-commandPageOrientationLandscape")},{value:!1,text:c.default.format("dxDiagram-commandPageOrientationPortrait")}],cssClass:f},pageColor:{command:e.PageColor,hint:c.default.format("dxDiagram-commandPageColor"),text:c.default.format("dxDiagram-commandPageColor"),widget:"dxColorBox",icon:"dx-diagram-i dx-diagram-i-button-fill",menuIcon:"dx-diagram-i dx-diagram-i-menu-fill",cssClass:g},zoomLevel:{command:e.ZoomLevel,hint:c.default.format("dxDiagram-commandZoomLevel"),text:c.default.format("dxDiagram-commandZoomLevel"),widget:"dxTextBox",items:[d,{command:e.FitToScreen,hint:c.default.format("dxDiagram-commandFitToContent"),text:c.default.format("dxDiagram-commandFitToContent")},{command:e.FitToWidth,hint:c.default.format("dxDiagram-commandFitToWidth"),text:c.default.format("dxDiagram-commandFitToWidth")},d,{command:e.AutoZoomToContent,hint:c.default.format("dxDiagram-commandAutoZoomByContent"),text:c.default.format("dxDiagram-commandAutoZoomByContent")},{command:e.AutoZoomToWidth,hint:c.default.format("dxDiagram-commandAutoZoomByWidth"),text:c.default.format("dxDiagram-commandAutoZoomByWidth")}],getEditorDisplayValue:function(t){return Math.round(100*t)+"%"},cssClass:h},toolbox:{command:this.SHOW_TOOLBOX_COMMAND_NAME,iconChecked:"dx-diagram-i dx-diagram-i-button-toolbox-close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-toolbox-open",hint:c.default.format("dxDiagram-uiShowToolbox"),text:c.default.format("dxDiagram-uiShowToolbox")},propertiesPanel:{command:this.SHOW_PROPERTIES_PANEL_COMMAND_NAME,iconChecked:"close",iconUnchecked:"dx-diagram-i dx-diagram-i-button-properties-panel-open",hint:c.default.format("dxDiagram-uiProperties"),text:c.default.format("dxDiagram-uiProperties")}})},getMainToolbarCommands:function(t,e){var n=this.getAllCommands(),i=t?this._getPreparedCommands(n,t):this._getDefaultMainToolbarCommands(n);return this._prepareToolbarCommands(i,e)},_getDefaultMainToolbarCommands:function(t){return this._defaultMainToolbarCommands||(this._defaultMainToolbarCommands=[t.undo,t.redo,t.separator,t.fontName,t.fontSize,t.bold,t.italic,t.underline,t.separator,t.lineWidth,t.lineStyle,t.separator,t.fontColor,t.lineColor,t.fillColor,t.separator,t.textAlignLeft,t.textAlignCenter,t.textAlignRight,t.separator,t.connectorLineType,t.connectorLineStart,t.connectorLineEnd,t.separator,{text:c.default.format("dxDiagram-uiLayout"),showText:"always",items:[{text:c.default.format("dxDiagram-uiLayoutTree"),items:[t.layoutTreeTopToBottom,t.layoutTreeBottomToTop,t.layoutTreeLeftToRight,t.layoutTreeRightToLeft]},{text:c.default.format("dxDiagram-uiLayoutLayered"),items:[t.layoutLayeredTopToBottom,t.layoutLayeredBottomToTop,t.layoutLayeredLeftToRight,t.layoutLayeredRightToLeft]}]}])},getHistoryToolbarCommands:function(t,e){var n=this.getAllCommands(),i=t?this._getPreparedCommands(n,t):this._getDefaultHistoryToolbarCommands(n);return this._prepareToolbarCommands(i,e)},_getDefaultHistoryToolbarCommands:function(t){return this._defaultHistoryToolbarCommands||(this._defaultHistoryToolbarCommands=[t.undo,t.redo,t.separator,t.toolbox])},getViewToolbarCommands:function(t,e){var n=this.getAllCommands(),i=t?this._getPreparedCommands(n,t):this._getDefaultViewToolbarCommands(n);return this._prepareToolbarCommands(i,e)},_getDefaultViewToolbarCommands:function(t){return this._defaultViewToolbarCommands||(this._defaultViewToolbarCommands=[t.zoomLevel,t.separator,t.fullScreen,t.separator,{widget:"dxButton",icon:"export",text:c.default.format("dxDiagram-uiExport"),hint:c.default.format("dxDiagram-uiExport"),items:[t.exportSvg,t.exportPng,t.exportJpg]},{icon:"preferences",hint:c.default.format("dxDiagram-uiSettings"),text:c.default.format("dxDiagram-uiSettings"),items:[t.units,t.separator,t.showGrid,t.snapToGrid,t.gridSize,t.separator,t.simpleView,t.toolbox]}])},getPropertiesToolbarCommands:function(t,e){var n=this.getAllCommands(),i=t?this._getPreparedCommands(n,t):this._getDefaultPropertiesToolbarCommands(n);return this._prepareToolbarCommands(i,e)},_getDefaultPropertiesToolbarCommands:function(t){return this._defaultPropertiesToolbarCommands||(this._defaultPropertiesToolbarCommands=[t.propertiesPanel])},_getDefaultPropertyPanelCommandGroups:function(){return this._defaultPropertyPanelCommandGroups||(this._defaultPropertyPanelCommandGroups=[{title:c.default.format("dxDiagram-uiStyle"),groups:[{title:c.default.format("dxDiagram-uiText"),commands:["fontName","fontSize","bold","italic","underline","textAlignLeft","textAlignCenter","textAlignRight","fontColor"]},{title:c.default.format("dxDiagram-uiObject"),commands:["lineStyle","lineWidth","lineColor","fillColor"]},{title:c.default.format("dxDiagram-uiConnector"),commands:["connectorLineType","connectorLineStart","connectorLineEnd"]}]},{title:c.default.format("dxDiagram-uiLayout"),groups:[{title:c.default.format("dxDiagram-uiLayoutLayered"),commands:["layoutLayeredTopToBottom","layoutLayeredBottomToTop","layoutLayeredLeftToRight","layoutLayeredRightToLeft"]},{title:c.default.format("dxDiagram-uiLayoutTree"),commands:["layoutTreeTopToBottom","layoutTreeBottomToTop","layoutTreeLeftToRight","layoutTreeRightToLeft"]}]},{title:c.default.format("dxDiagram-uiDiagram"),groups:[{title:c.default.format("dxDiagram-uiPage"),commands:["pageSize","pageOrientation","pageColor"]}]}])},_preparePropertyPanelGroups:function(t){var e=this,n=this.getAllCommands(),i=[];return t.forEach((function(t){var o,r=t.commands;r&&(r=e._getPreparedCommands(n,r),r=e._prepareToolbarCommands(r)),t.groups&&(o=[],t.groups.forEach((function(t){var i=t.commands;i&&(i=e._getPreparedCommands(n,i),i=e._prepareToolbarCommands(i)),o.push({title:t.title,commands:i})}))),i.push({title:t.title,commands:r,groups:o})})),i},getPropertyPanelCommandTabs:function(t){return t=t||this._getDefaultPropertyPanelCommandGroups(),this._preparePropertyPanelGroups(t)},getContextMenuCommands:function(t){var e=this.getAllCommands(),n=t?this._getPreparedCommands(e,t):this._getDefaultContextMenuCommands(e);return this._prepareContextMenuCommands(n)},_getDefaultContextMenuCommands:function(t){return this._defaultContextMenuCommands||(this._defaultContextMenuCommands=[t.cut,t.copy,t.paste,t.delete,t.separator,t.selectAll,t.separator,t.bringToFront,t.sendToBack,t.separator,t.lock,t.unlock,t.separator,t.insertShapeImage,t.editShapeImage,t.deleteShapeImage])},_getPreparedCommands:function(t,e){var n=this;return e.map((function(e){if(t[e])return t[e];if(e.text||e.icon||e.name){var i=e.name&&t[e.name],o={command:i&&i.command,name:e.name,text:e.text||i&&i.text,hint:e.text||i&&i.hint,icon:e.icon||i&&i.icon,menuIcon:e.icon||i&&i.menuIcon,widget:i&&i.widget,cssClass:i&&i.cssClass,getParameter:i&&i.getParameter};return Array.isArray(e.items)?o.items=n._getPreparedCommands(t,e.items):o.items=i&&i.items,o}})).filter((function(t){return t}))},_prepareContextMenuCommands:function(t,e,n){var i=this,o=!1;return t.map((function(t){if(i._isValidCommand(t,e)){if(t!==d){var r=i._cloneCommand(t,e);return r.icon=r.menuIcon,r.beginGroup=o,r.rootCommand=r.command?void 0:n&&n.command,o=!1,r}o=!0}})).filter((function(t){return t}))},_prepareToolbarCommands:function(t,e){var n=this;return t.map((function(t){if(n._isValidCommand(t,e))return n._cloneCommand(t,e)})).filter((function(t){return t})).filter((function(t,e,n){return("separator"!==t.widget||e!==n.length-1)&&t}))},_cloneCommand:function(t,e){var n=(0,l.extend)({},t);return Array.isArray(t.items)&&(n.items=this._prepareContextMenuCommands(t.items,e,n)),n},_isValidCommand:function(t,e){return-1===(e=e||[]).indexOf(t.command)},_exportTo:function(t,e,n,i){var o=(0,s.getWindow)();if(o&&o.atob&&(0,a.isFunction)(o.Blob)){var l=this._getBlobByDataURI(o,e,i),u=t.option("export");r.fileSaver.saveAs(u.fileName||"foo",n,l,u.proxyURL)}},_getBlobByDataURI:function(t,e,n){for(var i=t.atob(e.split(",")[1]),o=new Uint8Array(i.length),r=0;r<i.length;r++)o[r]=i.charCodeAt(r);return new t.Blob([o.buffer],{type:n})}};t.exports=v},function(t,e,n){"use strict";t.exports={notifyObserver:function(t,e){var n=this.option("observer");n&&n.fire(t,e)},invoke:function(){var t=this.option("observer");if(t)return t.fire.apply(t,arguments)}}},function(t,e,n){"use strict";var i,o=n(2).isFunction,r=n(13).normalizeEnum,a=Math.round,s={};e.getAlgorithm=function(t){return s[r(t)]||o(t)&&t||i},e.addAlgorithm=function(t,e){s[t]=e},e.setDefaultAlgorithm=function(t){i=s[t]};var l={"-1":[2,0],1:[0,2]},u=function(t){return t[2]-t[0]<t[3]-t[1]?0:1};e.getStaticSideIndex=u,e.buildSidesData=function(t,e,n){var i=void 0!==n?n:u(t),o=1-i,r=e[i],a=e[o],s=l[r],c=l[a];return{staticSide:t[2+i]-t[i],variedSide:t[2+o]-t[o],static1:i+s[0],static2:i+s[1],varied1:o+c[0],varied2:o+c[1],staticDir:r,variedDir:a}},e.calculateRectangles=function(t,e,n,i,o){var r,s,l,u,c=[0,0,0,0],d=i.static1,h=i.static2,f=n[d],p=i.staticDir,m=i.staticSide,g=o.sum;for(c[i.varied1]=n[i.varied1],c[i.varied2]=n[i.varied1]+i.variedDir*o.side,r=e,s=e+o.count;r<s;++r)(l=c.slice())[d]=f,u=a(m*t[r].value/g)||0,g-=t[r].value,m-=u,f+=p*u,l[h]=f,t[r].rect=l;n[i.varied1]=c[i.varied2]}},function(t,e,n){"use strict";var i,o=n(13).normalizeEnum,r=n(4).noop,a={};function s(t){return function(e){return e.isNode()?void 0:t(e)}}function l(t){return function(e){var n=!e.isNode()&&e.parent;return n?n._groupColor=n._groupColor||t(n):void 0}}function u(t){return t.value}e.getColorizer=function(t,e,n){var u=o(t.type||i),c=a[u]&&a[u](t,e,n);return c?(t.colorizeGroups?l:s)(c):r},e.addColorizer=function(t,e){a[t]=e},e.setDefaultColorizer=function(t){i=t},e.createColorCodeGetter=function(t){return t.colorCodeField?(e=t.colorCodeField,function(t){return Number(t.data[e])}):u;var e}},function(t,e,n){"use strict";var i,o="object"===typeof Reflect?Reflect:null,r=o&&"function"===typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=o&&"function"===typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!==t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,i){function o(){void 0!==r&&t.removeListener("error",r),n([].slice.call(arguments))}var r;"error"!==e&&(r=function(n){t.removeListener(e,o),i(n)},t.once("error",r)),t.once(e,o)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var l=10;function u(t){if("function"!==typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function d(t,e,n,i){var o,r,a,s;if(u(n),void 0===(r=t._events)?(r=t._events=Object.create(null),t._eventsCount=0):(void 0!==r.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),r=t._events),a=r[e]),void 0===a)a=r[e]=n,++t._eventsCount;else if("function"===typeof a?a=r[e]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(o=c(t))>0&&a.length>o&&!a.warned){a.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=a.length,s=l,console&&console.warn&&console.warn(s)}return t}function h(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=h.bind(i);return o.listener=n,i.wrapFn=o,o}function p(t,e,n){var i=t._events;if(void 0===i)return[];var o=i[e];return void 0===o?[]:"function"===typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n<e.length;++n)e[n]=t[n].listener||t[n];return e}(o):g(o,o.length)}function m(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(t,e){for(var n=new Array(e),i=0;i<e;++i)n[i]=t[i];return n}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return l},set:function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");l=t}}),s.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},s.prototype.setMaxListeners=function(t){if("number"!==typeof t||t<0||a(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},s.prototype.getMaxListeners=function(){return c(this)},s.prototype.emit=function(t){for(var e=[],n=1;n<arguments.length;n++)e.push(arguments[n]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(e.length>0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=o[t];if(void 0===l)return!1;if("function"===typeof l)r(l,this,e);else{var u=l.length,c=g(l,u);for(n=0;n<u;++n)r(c[n],this,e)}return!0},s.prototype.addListener=function(t,e){return d(this,t,e,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(t,e){return d(this,t,e,!0)},s.prototype.once=function(t,e){return u(e),this.on(t,f(this,t,e)),this},s.prototype.prependOnceListener=function(t,e){return u(e),this.prependListener(t,f(this,t,e)),this},s.prototype.removeListener=function(t,e){var n,i,o,r,a;if(u(e),void 0===(i=this._events))return this;if(void 0===(n=i[t]))return this;if(n===e||n.listener===e)0===--this._eventsCount?this._events=Object.create(null):(delete i[t],i.removeListener&&this.emit("removeListener",t,n.listener||e));else if("function"!==typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===e||n[r].listener===e){a=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(n,o),1===n.length&&(i[t]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",t,a||e)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(t){var e,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"===typeof(e=n[t]))this.removeListener(t,e);else if(void 0!==e)for(i=e.length-1;i>=0;i--)this.removeListener(t,e[i]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},s.prototype.listenerCount=m,s.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){"use strict";var i=n(30).Buffer,o=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!==typeof e&&(i.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=l,this.end=u,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=c,this.end=d,e=3;break;default:return this.write=h,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function a(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"\ufffd";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"\ufffd";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"\ufffd"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function c(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function h(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},r.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd":e},r.prototype.text=function(t,e){var n=function(t,e,n){var i=e.length-1;if(i<n)return 0;var o=a(e[i]);if(o>=0)return o>0&&(t.lastNeed=o-1),o;if(--i<n||-2===o)return 0;if((o=a(e[i]))>=0)return o>0&&(t.lastNeed=o-2),o;if(--i<n||-2===o)return 0;if((o=a(e[i]))>=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var i=n(242),o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=d;var r=Object.create(n(205));r.inherits=n(22);var a=n(536),s=n(320);r.inherits(d,a);for(var l=o(s.prototype),u=0;u<l.length;u++){var c=l[u];d.prototype[c]||(d.prototype[c]=s.prototype[c])}function d(t){if(!(this instanceof d))return new d(t);a.call(this,t),s.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||i.nextTick(f,this)}function f(t){t.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),d.prototype._destroy=function(t,e){this.push(null),this.end(),i.nextTick(e,t)}},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(336),n(337),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,o=t.algo,a=o.MD5,s=o.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n,o=this.cfg,r=o.hasher.create(),a=i.create(),s=a.words,l=o.keySize,u=o.iterations;s.length<l;){n&&r.update(n),n=r.update(t).finalize(e),r.reset();for(var c=1;c<u;c++)n=r.finalize(n),r.reset();a.concat(n)}return a.sigBytes=4*l,a}});t.EvpKDF=function(t,e,n){return s.create(n).compute(t,e)}}(),r.EvpKDF)}()},function(t,e,n){"use strict";var i=n(2).isFunction,o=function(){},r=function(t){return"undefined"!==typeof console&&i(console[t])?console[t].bind(console):o},a={info:r("info"),warn:r("warn"),error:r("error")},s=function(){function t(t,e){if(!t)throw new Error(e)}return{assert:t,assertParam:function(e,n){t(null!==e&&void 0!==e,n)}}}();e.logger=a,e.debug=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.EventsStrategy=void 0;var i,o=n(39),r=(i=o)&&i.__esModule?i:{default:i},a=n(5),s=n(2);function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.EventsStrategy=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._events={},this._owner=e}var e,n,i;return e=t,i=[{key:"create",value:function(e,n){return n?(0,s.isFunction)(n)?n(e):n:new t(e)}}],(n=[{key:"hasEvent",value:function(t){var e=this._events[t];return!!e&&e.has()}},{key:"fireEvent",value:function(t,e){var n=this._events[t];return n&&n.fireWith(this._owner,e),this._owner}},{key:"on",value:function(t,e){var n=this;if((0,s.isPlainObject)(t))(0,a.each)(t,(function(t,e){n.on(t,e)}));else{var i=this._events[t];i||(i=(0,r.default)(),this._events[t]=i),(i.originalAdd||i.add).call(i,e)}}},{key:"off",value:function(t,e){var n=this._events[t];n&&((0,s.isFunction)(e)?n.remove(e):n.empty())}},{key:"dispose",value:function(){(0,a.each)(this._events,(function(t,e){e.empty()}))}}])&&l(e.prototype,n),i&&l(e,i),t}()},function(t,e,n){"use strict";var i=s(n(3)),o=s(n(6)),r=s(n(114)),a=n(11);function s(t){return t&&t.__esModule?t:{default:t}}var l={setup:function(t){var e=(0,i.default)(t);o.default.on(e,(0,a.addNamespace)("wheel","dxWheel"),l._wheelHandler.bind(l))},teardown:function(t){o.default.off(t,".".concat("dxWheel"))},_wheelHandler:function(t){var e=t.originalEvent,n=e.deltaMode,i=e.deltaY,o=e.deltaX,r=e.deltaZ;(0,a.fireEvent)({type:"dxmousewheel",originalEvent:t,delta:this._normalizeDelta(i,n),deltaX:o,deltaY:i,deltaZ:r,deltaMode:n,pointerType:"mouse"}),t.stopPropagation()},_normalizeDelta:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return 0===e?-t:-30*t}};(0,r.default)("dxmousewheel",l),e.name="dxmousewheel"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(n(3)),o=u(n(51)),r=n(10),a=n(2),s=n(5),l=u(n(38));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),n=n||{},this._action=e,this._context=n.context||(0,r.getWindow)(),this._beforeExecute=n.beforeExecute,this._afterExecute=n.afterExecute,this._component=n.component,this._validatingTargetName=n.validatingTargetName;var i=this._excludeValidators={};if(n.excludeValidators)for(var o=0;o<n.excludeValidators.length;o++)i[n.excludeValidators[o]]=!0}var e,n,i;return e=t,i=[{key:"registerExecutor",value:function(e,n){(0,a.isPlainObject)(e)?(0,s.each)(e,t.registerExecutor):t.executors[e]=n}},{key:"unregisterExecutor",value:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];(0,s.each)(n,(function(){delete t.executors[this]}))}}],(n=[{key:"execute",value:function(){var t={action:this._action,args:Array.prototype.slice.call(arguments),context:this._context,component:this._component,validatingTargetName:this._validatingTargetName,cancel:!1,handled:!1},e=this._beforeExecute,n=this._afterExecute,i=t.args[0]||{};if(!("jQueryEvent"in i)&&i.event&&(0,o.default)().useJQuery&&Object.defineProperty(i,"jQueryEvent",{get:function(){return l.default.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event},set:function(t){l.default.log("W0003","Handler argument","jQueryEvent","17.2","Use the 'event' field instead"),i.event=t}}),this._validateAction(t)&&(null===e||void 0===e||e.call(this._context,t),!t.cancel)){var r=this._executeAction(t);if(!i.cancel)return null===n||void 0===n||n.call(this._context,t),r}}},{key:"_validateAction",value:function(e){var n=this._excludeValidators,i=t.executors;for(var o in i)if(!n[o]){var r,a=i[o];if(null===(r=a.validate)||void 0===r||r.call(a,e),e.cancel)return!1}return!0}},{key:"_executeAction",value:function(e){var n,i=t.executors;for(var o in i){var r,a=i[o];if(null===(r=a.execute)||void 0===r||r.call(a,e),e.handled){n=e.result;break}}return n}}])&&c(e.prototype,n),i&&c(e,i),t}();e.default=d,d.executors={};var h=function(t){return function(e){if(e.args.length){var n=e.args[0],o=n[e.validatingTargetName]||n.element;o&&t((0,i.default)(o))&&(e.cancel=!0)}}};d.registerExecutor({disabled:{validate:h((function(t){return t.is(".dx-state-disabled, .dx-state-disabled *")}))},readOnly:{validate:h((function(t){return t.is(".dx-state-readonly, .dx-state-readonly *:not(.dx-state-independent)")}))},undefined:{execute:function(t){t.action||(t.result=void 0,t.handled=!0)}},func:{execute:function(t){(0,a.isFunction)(t.action)&&(t.result=t.action.call(t.context,t.args[0]),t.handled=!0)}}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TemplateBase=e.renderedCallbacks=void 0;var i=l(n(3)),o=n(15),r=l(n(39)),a=n(17),s=l(n(38));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var c=e.renderedCallbacks=(0,r.default)({syncStrategy:!0});e.TemplateBase=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}var e,n,r;return e=t,(n=[{key:"render",value:function(t){var e=(t=t||{}).onRendered;delete t.onRendered;var n=this._renderCore(t);return this._ensureResultInContainer(n,t.container),c.fire(n,t.container),e&&e(),n}},{key:"_ensureResultInContainer",value:function(t,e){if(e){var n=(0,i.default)(e),r=(0,a.contains)(n.get(0),t.get(0));n.append(t),r||(0,o.getBody)().contains(n.get(0))&&(0,a.triggerShownEvent)(t)}}},{key:"_renderCore",value:function(){throw s.default.Error("E0001")}}])&&u(e.prototype,n),r&&u(e,r),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ChildDefaultTemplate=void 0;var i=n(156);function o(t){return(o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t,e){return(r=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.ChildDefaultTemplate=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)}(n,t);var e=a(n);function n(t){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(i=e.call(this)).name=t,i}return n}(i.TemplateBase)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.keyboard=e.click=e.dxClick=e.focus=e.visibility=e.hover=e.resize=e.active=void 0;var i=s(n(15)),o=s(n(6)),r=s(n(633)),a=n(11);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){return e?(0,a.addNamespace)(t,e):t}e.active={on:function(t,e,n,i){var r=i.selector,a=i.showTimeout,s=i.hideTimeout,u=i.namespace;o.default.on(t,l("dxactive",u),r,{timeout:a},(function(t){return e.execute({event:t,element:t.currentTarget})})),o.default.on(t,l("dxinactive",u),r,{timeout:s},(function(t){return n.execute({event:t,element:t.currentTarget})}))},off:function(t,e){var n=e.namespace,i=e.selector;o.default.off(t,l("dxactive",n),i),o.default.off(t,l("dxinactive",n),i)}},e.resize={on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(t,l("dxresize",i),e)},off:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.namespace;o.default.off(t,l("dxresize",n))}},e.hover={on:function(t,e,n,i){var r=i.selector,a=i.namespace;o.default.on(t,l("dxhoverend",a),r,(function(t){return n(t)})),o.default.on(t,l("dxhoverstart",a),r,(function(t){e.execute({element:t.target,event:t})}))},off:function(t,e){var n=e.selector,i=e.namespace;o.default.off(t,l("dxhoverstart",i),n),o.default.off(t,l("dxhoverend",i),n)}},e.visibility={on:function(t,e,n,i){var r=i.namespace;o.default.on(t,l("dxhiding",r),n),o.default.on(t,l("dxshown",r),e)},off:function(t,e){var n=e.namespace;o.default.off(t,l("dxhiding",n)),o.default.off(t,l("dxshown",n))}},e.focus={on:function(t,e,n,r){var a=r.namespace,s=r.isFocusable;o.default.on(t,l("focusin",a),e),o.default.on(t,l("focusout",a),n),i.default.hasDocumentProperty("onbeforeactivate")&&o.default.on(t,l("beforeactivate",a),(function(t){return s(t.target)||t.preventDefault()}))},off:function(t,e){var n=e.namespace;o.default.off(t,l("focusin",n)),o.default.off(t,l("focusout",n)),i.default.hasDocumentProperty("onbeforeactivate")&&o.default.off(t,l("beforeactivate",n))},trigger:function(t){return o.default.trigger(t,"focus")}},e.dxClick={on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(t,l("dxclick",i),e)},off:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.namespace;o.default.off(t,l("dxclick",n))}},e.click={on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.namespace;o.default.on(t,l("click",i),e)},off:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.namespace;o.default.off(t,l("click",n))}};var u=0,c={};e.keyboard={on:function(t,e,n){var i="keyboardProcessorId".concat(u++);return c[i]=new r.default({element:t,focusTarget:e,handler:n}),i},off:function(t){t&&c[t]&&(c[t].dispose(),delete c[t])},_getProcessor:function(t){return c[t]}}},function(t,e,n){"use strict";var i,o=n(21),r=n(4),a=n(17).contains,s=n(18),l=n(11),u=n(28),c=n(186),d=n(131),h=o.inherit({ctor:function(t,e){this._timeout=t,this._fire=e},start:function(){var t=this;this._schedule((function(){t.force()}))},_schedule:function(t){this.stop(),this._timer=setTimeout(t,this._timeout)},stop:function(){clearTimeout(this._timer)},force:function(){this._fired||(this.stop(),this._fire(),this._fired=!0)},fired:function(){return this._fired}}),f=c.inherit({ctor:function(){this.callBase.apply(this,arguments),this._active=new h(0,r.noop),this._inactive=new h(0,r.noop)},configure:function(t,e){switch(e){case"dxactive":t.activeTimeout=t.timeout;break;case"dxinactive":t.inactiveTimeout=t.timeout}this.callBase(t)},start:function(t){if(i){var e=a(this.getElement().get(0),i.getElement().get(0)),n=!i._active.fired();if(e&&n)return void this._cancel();i._inactive.force()}i=this,this._initEvents(t),this._active.start()},_initEvents:function(t){var e=this,n=this._getEmitterTarget(t),o=l.isMouseEvent(t),a=s.isSimulator()||!o,u=r.ensureDefined(this.activeTimeout,30),c=r.ensureDefined(this.inactiveTimeout,400);this._active=new h(a?u:0,(function(){e._fireEvent("dxactive",t,{target:n})})),this._inactive=new h(a?c:0,(function(){e._fireEvent("dxinactive",t,{target:n}),i=null}))},cancel:function(t){this.end(t)},end:function(t){var e=t.type!==u.up;e?this._active.stop():this._active.force(),this._inactive.start(),e&&this._inactive.force()},dispose:function(){this._active.stop(),this._inactive.stop(),this.callBase()},lockInactive:function(){return this._active.force(),this._inactive.stop(),i=null,this._cancel(),this._inactive.force.bind(this._inactive)}});f.lock=function(t){var e=i?i.lockInactive():r.noop;t.done(e)},d({emitter:f,events:["dxactive","dxinactive"]}),e.lock=f.lock,e.active="dxactive",e.inactive="dxinactive"},function(t,e,n){"use strict";var i=n(3),o=n(21),r=n(5).each,a=n(188),s=o.inherit({ctor:function(t,e,n){this._$element=t,this._options=e,this._rawData=n,a.attachInstanceToElement(t,this,this._dispose),this._render()},_render:function(){var t=i("<div>").addClass("dx-item-content-placeholder");this._$element.append(t),this._watchers=[],this._renderWatchers()},_renderWatchers:function(){this._startWatcher("disabled",this._renderDisabled.bind(this)),this._startWatcher("visible",this._renderVisible.bind(this))},_startWatcher:function(t,e){var n=this._rawData,i=this._options.fieldGetter(t),o=function(t,e,n){var i=function(){var t;return function(e){t!==e&&(n(e,t),t=e)}}();return{dispose:t(e,i),force:function(){i(e())}}}(this._options.watchMethod(),(function(){return i(n)}),function(t,n){this._dirty=!0,e(t,n)}.bind(this));this._watchers.push(o)},setDataField:function(){if(this._dirty=!1,r(this._watchers,(function(t,e){e.force()})),this._dirty)return!0},_renderDisabled:function(t,e){this._$element.toggleClass("dx-state-disabled",!!t),this._updateOwnerFocus(t)},_updateOwnerFocus:function(t){var e=this._options.owner;e&&t&&e._resetItemFocus(this._$element)},_renderVisible:function(t,e){this._$element.toggleClass("dx-state-invisible",void 0!==t&&!t)},_dispose:function(){r(this._watchers,(function(t,e){e.dispose()}))}});s.getInstance=function(t){return a.getInstanceByElement(t,this)},t.exports=s},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4).noop,a=n(21),s=n(264),l=n(11),u=l.addNamespace(s.start,"dxListEditDecorator"),c=l.addNamespace(s.swipe,"dxListEditDecorator"),d=l.addNamespace(s.end,"dxListEditDecorator"),h=a.inherit({ctor:function(t){this._list=t,this._init()},_init:r,_shouldHandleSwipe:!1,_attachSwipeEvent:function(t){var e={itemSizeFunc:function(){return this._clearSwipeCache&&(this._itemWidthCache=this._list.$element().width(),this._clearSwipeCache=!1),this._itemWidthCache}.bind(this)};o.on(t.$itemElement,u,e,this._itemSwipeStartHandler.bind(this)),o.on(t.$itemElement,c,this._itemSwipeUpdateHandler.bind(this)),o.on(t.$itemElement,d,this._itemSwipeEndHandler.bind(this))},_itemSwipeStartHandler:function(t){var e=i(t.currentTarget);e.is(".dx-state-disabled, .dx-state-disabled *")?t.cancel=!0:(clearTimeout(this._list._inkRippleTimer),this._swipeStartHandler(e,t))},_itemSwipeUpdateHandler:function(t){var e=i(t.currentTarget);this._swipeUpdateHandler(e,t)},_itemSwipeEndHandler:function(t){var e=i(t.currentTarget);this._swipeEndHandler(e,t),this._clearSwipeCache=!0},beforeBag:r,afterBag:r,_commonOptions:function(){return{activeStateEnabled:this._list.option("activeStateEnabled"),hoverStateEnabled:this._list.option("hoverStateEnabled"),focusStateEnabled:this._list.option("focusStateEnabled")}},modifyElement:function(t){this._shouldHandleSwipe&&(this._attachSwipeEvent(t),this._clearSwipeCache=!0)},afterRender:r,handleClick:r,handleKeyboardEvents:r,handleEnterPressing:r,handleContextMenu:r,_swipeStartHandler:r,_swipeUpdateHandler:r,_swipeEndHandler:r,visibilityChange:r,getExcludedSelectors:r,dispose:r});t.exports=h},function(t,e,n){"use strict";var i=Number,o=n(13).getAppropriateFormat,r=n(0).extend,a=n(384),s=r,l=n(118),u=n(707),c=n(708),d=l.inherit({_rootClassPrefix:"dxg",_themeSection:"gauge",_createThemeManager:function(){return new u.ThemeManager(this._getThemeManagerOptions())},_initCore:function(){var t=this._renderer.root;this._valueChangingLocker=0,this._translator=this._factory.createTranslator(),this._tracker=this._factory.createTracker({renderer:this._renderer,container:t}),this._setTrackerCallbacks()},_beginValueChanging:function(){this._resetIsReady(),this._onBeginUpdate(),++this._valueChangingLocker},_endValueChanging:function(){0===--this._valueChangingLocker&&this._drawn()},_setTrackerCallbacks:function(){var t=this._renderer,e=this._tooltip;this._tracker.setCallbacks({"tooltip-show":function(n,i){var o=n.getTooltipParameters(),r=t.getRootOffset(),a=s({value:o.value,valueText:e.formatValue(o.value),color:o.color},i);return e.show(a,{x:o.x+r.left,y:o.y+r.top,offset:o.offset},{target:i})},"tooltip-hide":function(){return e.hide()}})},_dispose:function(){this._cleanCore(),this.callBase.apply(this,arguments)},_disposeCore:function(){this._themeManager.dispose(),this._tracker.dispose(),this._translator=this._tracker=null},_cleanCore:function(){this._tracker.deactivate(),this._cleanContent()},_renderCore:function(){this._isValidDomain&&(this._renderContent(),this._tracker.setTooltipState(this._tooltip.isEnabled()),this._tracker.activate(),this._noAnimation=!1)},_applyChanges:function(){this.callBase.apply(this,arguments),this._resizing=this._noAnimation=!1},_setContentSize:function(){var t=this;t._resizing=t._noAnimation=2===t._changes.count(),t.callBase.apply(t,arguments)},_applySize:function(t){this._innerRect={left:t[0],top:t[1],right:t[2],bottom:t[3]};var e=this._layout._cache;return this._cleanCore(),this._renderCore(),this._layout._cache=this._layout._cache||e,[t[0],this._innerRect.top,t[2],this._innerRect.bottom]},_initialChanges:["DOMAIN"],_themeDependentChanges:["DOMAIN"],_optionChangesMap:{subtitle:"MOSTLY_TOTAL",indicator:"MOSTLY_TOTAL",geometry:"MOSTLY_TOTAL",animation:"MOSTLY_TOTAL",startValue:"DOMAIN",endValue:"DOMAIN"},_optionChangesOrder:["DOMAIN","MOSTLY_TOTAL"],_change_DOMAIN:function(){this._setupDomain()},_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_setupDomain:function(){this._setupDomainCore(),this._isValidDomain=isFinite(1/(this._translator.getDomain()[1]-this._translator.getDomain()[0])),this._isValidDomain||this._incidentOccurred("W2301"),this._change(["MOSTLY_TOTAL"])},_applyMostlyTotalChange:function(){this._setupCodomain(),this._setupAnimationSettings(),this._setupDefaultFormat(),this._change(["LAYOUT"])},_setupAnimationSettings:function(){var t=this.option("animation");this._animationSettings=null,(void 0===t||t)&&(t=s({enabled:!0,duration:1e3,easing:"easeOutCubic"},t)).enabled&&t.duration>0&&(this._animationSettings={duration:i(t.duration),easing:t.easing}),this._containerBackgroundColor=this.option("containerBackgroundColor")||this._themeManager.theme().containerBackgroundColor},_setupDefaultFormat:function(){var t=this._translator.getDomain();this._defaultFormatOptions=o(t[0],t[1],this._getApproximateScreenRange())},_setupDomainCore:null,_calculateSize:null,_cleanContent:null,_renderContent:null,_setupCodomain:null,_getApproximateScreenRange:null,_factory:{createTranslator:function(){return new a.Translator1D},createTracker:function(t){return new c(t)}}});e.dxBaseGauge=d;var h=n(94).format,f=function(t,e,n){var i,o=h(t,(e=e||{}).format);return"function"===typeof e.customizeText?(i=s({value:t,valueText:o},n),String(e.customizeText.call(i,i))):o};e.formatValue=f,e.getSampleText=function(t,e){var n=f(t.getDomainStart(),e),i=f(t.getDomainEnd(),e);return n.length>=i.length?n:i},e.compareArrays=function(t,e){return t&&e&&t.length===e.length&&function(t,e){var n,i,o,r=t.length;for(n=0;n<r;++n)if(i=t[n]!==t[n],o=e[n]!==e[n],(!i||!o)&&t[n]!==e[n])return!1;return!0}(t,e)},d.addPlugin(n(119).plugin),d.addPlugin(n(121).plugin),d.addPlugin(n(122).plugin),d.addPlugin(n(139).plugin);var p=d.prototype._setTooltipOptions;d.prototype._setTooltipOptions=function(){p.apply(this,arguments),this._tracker&&this._tracker.setTooltipState(this._tooltip.isEnabled())}},function(t,e,n){"use strict";var i=n(0).extend,o=n(10),r=n(4).noop,a=!o.hasWindow();function s(){this.reset()}function l(t,e){return t!==e?i({},t,e):i({},t)}function u(t,e){return t!==e?t.concat(e):t.slice()}function c(t){t._totalChangesOrder=t._optionChangesOrder.concat(t._layoutChangesOrder,t._customChangesOrder)}function d(t){var e=this.prototype,n=t.code;e["_change_"+n]=t.handler,t.isThemeDependent&&e._themeDependentChanges.push(n),t.option&&(e._optionChangesMap[t.option]=n),(t.isOptionChange?e._optionChangesOrder:e._customChangesOrder).push(n),c(e)}function h(){var t=function t(){var e,n,i=t._chain.length;for(e=0;e<i;++e)n=t._chain[e].apply(this,arguments);return n};return t._chain=[],t.add=function(e){t._chain.push(e)},t.copy=function(e){t._chain=e._chain.slice()},t}function f(t,e,n){var i=t[e];i?i.add?(!1===Object.prototype.hasOwnProperty.call(t,e)&&(i=h()).copy(t[e]),i.add(n)):((i=h()).add(t[e]),i.add(n)):i=n,t[e]=i}function p(t){var e=this.prototype;e._plugins.push(t),t.fontFields&&e._fontFields.push.apply(e._fontFields,t.fontFields),t.members&&i(this.prototype,t.members),t.customize&&t.customize(this),t.extenders&&Object.keys(t.extenders).forEach((function(n){var i=t.extenders[n];f(e,n,i)}),this)}s.prototype={constructor:s,add:function(t){var e,n=t.length,i=this._flags;for(e=0;e<n;++e)i[t[e]]=1;this._k+=n},has:function(t){return this._flags[t]>0},count:function(){return this._k},reset:function(){this._flags={},this._k=0}},e.replaceInherit=a?function(t){var e=t.inherit;t.inherit=function(){var t=e.apply(this,arguments),n=t.prototype;return["_plugins","_eventsMap","_initialChanges","_themeDependentChanges","_optionChangesMap","_optionChangesOrder","_layoutChangesOrder","_customChangesOrder","_totalChangesOrder"].forEach((function(t){n[t]={}})),t.addPlugin=r,t},t.addChange=r,t.addPlugin=r}:function(t){var e=t.inherit;t.inherit=function(){var t=this.prototype,n=t._plugins,i=t._fontFields,o=t._eventsMap,r=t._initialChanges,a=t._themeDependentChanges,s=t._optionChangesMap,d=t._partialOptionChangesMap,h=t._partialOptionChangesPath,f=t._optionChangesOrder,m=t._layoutChangesOrder,g=t._customChangesOrder,_=e.apply(this,arguments);return(t=_.prototype)._plugins=u(n,t._plugins),t._fontFields=u(i,t._fontFields),t._eventsMap=l(o,t._eventsMap),t._initialChanges=u(r,t._initialChanges),t._themeDependentChanges=u(a,t._themeDependentChanges),t._optionChangesMap=l(s,t._optionChangesMap),t._partialOptionChangesMap=l(d,t._partialOptionChangesMap),t._partialOptionChangesPath=l(h,t._partialOptionChangesPath),t._optionChangesOrder=u(f,t._optionChangesOrder),t._layoutChangesOrder=u(m,t._layoutChangesOrder),t._customChangesOrder=u(g,t._customChangesOrder),c(t),_.addPlugin=p,_},t.prototype._plugins=[],t.prototype._fontFields=[],t.addChange=d,t.addPlugin=p},e.changes=function(){return new s},e.expand=f},function(t,e,n){"use strict";var i=n(264),o=n(6),r=n(97),a=n(5).each,s=n(11),l=n(0).extend,u=n(188),c={onStart:i.start,onUpdated:i.swipe,onEnd:i.end,onCancel:"dxswipecancel"},d=r.inherit({_getDefaultOptions:function(){return l(this.callBase(),{elastic:!0,immediate:!1,direction:"horizontal",itemSizeFunc:null,onStart:null,onUpdated:null,onEnd:null,onCancel:null})},_render:function(){this.callBase(),this.$element().addClass("dx-swipeable"),this._attachEventHandlers()},_attachEventHandlers:function(){if(this._detachEventHandlers(),!this.option("disabled")){var t=this.NAME;this._createEventData(),a(c,function(e,n){var i=this._createActionByOption(e,{context:this});n=s.addNamespace(n,t),o.on(this.$element(),n,this._eventData,(function(t){return i({event:t})}))}.bind(this))}},_createEventData:function(){this._eventData={elastic:this.option("elastic"),itemSizeFunc:this.option("itemSizeFunc"),direction:this.option("direction"),immediate:this.option("immediate")}},_detachEventHandlers:function(){o.off(this.$element(),".dxSwipeable")},_optionChanged:function(t){switch(t.name){case"disabled":case"onStart":case"onUpdated":case"onEnd":case"onCancel":case"elastic":case"immediate":case"itemSizeFunc":case"direction":this._detachEventHandlers(),this._attachEventHandlers();break;case"rtlEnabled":break;default:this.callBase(t)}},_useTemplates:function(){return!1}});u.name(d,"dxSwipeable"),t.exports=d},function(t,e,n){"use strict";var i=n(0).extend,o=n(5).each,r=n(124),a=n(196).chart.area,s=n(13),l=r.chart,u=r.polar,c=n(2).isDefined,d=i,h=o;e.chart={},e.polar={};var f={_createLegendState:function(t,e){return{fill:t.color||e,hatching:t.hatching}},_parsePointStyle:function(t,e,n){var i=t.color||e,o=l._parsePointStyle.call(this,t,i,n);return o.fill=i,o.hatching=t.hatching,o.dashStyle=t.border&&t.border.dashStyle||"solid",delete o.r,o},_applyMarkerClipRect:function(t){t["clip-path"]=null},_setGroupsSettings:function(t,e){var n=this,i={};l._setGroupsSettings.apply(n,arguments),t&&e?i=this._getAffineCoordOptions():t||(i={scaleX:1,scaleY:1,translateX:0,translateY:0}),n._markersGroup.attr(i)},_drawPoint:function(t){t.hasAnimation=t.hasAnimation&&!t.firstDrawing,t.firstDrawing=!1,l._drawPoint.call(this,t)},_getMainColor:function(){return this._options.mainSeriesColor},_createPointStyles:function(t){var e=t.color||this._getMainColor();return{normal:this._parsePointStyle(t,e,e),hover:this._parsePointStyle(t.hoverStyle||{},e,e),selection:this._parsePointStyle(t.selectionStyle||{},e,e)}},_updatePointsVisibility:function(){var t=this._options.visible;o(this._points,(function(e,n){n._options.visible=t}))},_getOptionsForPoint:function(){return this._options},_animate:function(t){var e=this;e._animatePoints(t,(function(){e._animateComplete()}),(function(t,e){var n=t.length-1;h(t||[],(function(t,i){i.animate(t===n?e:void 0,i.getMarkerCoords())}))}))},getValueRangeInitialValue:a.getValueRangeInitialValue,_patchMarginOptions:function(t){return t.checkInterval=!0,t},_defaultAggregator:"sum",_defineDrawingState:function(){},usePointsToDefineAutoHiding:function(){return!1}};e.chart.bar=d({},l,f,{_getAffineCoordOptions:function(){var t=this._options.rotated,e={scaleX:t?.001:1,scaleY:t?1:.001};return e["translate"+(t?"X":"Y")]=this.getValueAxis().getTranslator().translate("canvas_position_default"),e},_animatePoints:function(t,e,n){this._markersGroup.animate({scaleX:1,scaleY:1,translateY:0,translateX:0},void 0,e),t||n(this._drawnPoints,e)},checkSeriesViewportCoord:function(t,e){if(0===this._points.length)return!1;if(t.isArgumentAxis)return!0;var n=t.getTranslator(),i=this.getViewport(),o=n.translate(i.categories?i.categories[0]:i.min),r=n.translate(i.categories?i.categories[i.categories.length-1]:i.max),a=this.getOptions().rotated,s=t.getOptions().inverted;return a&&!s||!a&&s?e>=o&&e<=r:e>=r&&e<=o},getSeriesPairCoord:function(t,e){for(var n=null,i=this._options.rotated,o=!e&&!i||e&&i,r=o?"vy":"vx",a=o?"vx":"vy",s=this.getPoints(),l=0;l<s.length;l++){var u=s[l],c=void 0;if(c=e?u.getCenterCoord()[r[1]]===t?u[a]:void 0:u[r]===t?u[a]:void 0,this._checkAxisVisibleAreaCoord(!e,c)){n=c;break}}return n}}),e.polar.bar=d({},u,f,{_animatePoints:function(t,e,n){n(this._drawnPoints,e)},_setGroupsSettings:l._setGroupsSettings,_drawPoint:function(t,e,n){l._drawPoint.call(this,t,e,n)},_parsePointStyle:function(t){var e=f._parsePointStyle.apply(this,arguments);return e.opacity=t.opacity,e},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){var t=this._createPointStyles(this._getMarkerGroupOptions()).normal;t.class="dxc-markers",this._applyMarkerClipRect(t);var e=d({},t);delete e.opacity,this._markersGroup.attr(e)},getSeriesPairCoord:function(t,e){for(var n=null,i=e?"argument":"radius",o=this.getVisiblePoints(),r=this.getArgumentAxis(),a=r.getAngles()[0],l=0;l<o.length;l++){var u=o[l],d=c(u[i])&&c(t[i])&&u[i].valueOf()===t[i].valueOf()?s.convertPolarToXY(r.getCenter(),a,-r.getTranslatedAngle(u.angle),u.radius):void 0;if(c(d)){n=d;break}}return n},_createLegendState:a._createLegendState})},function(t,e,n){"use strict";var i,o=n(4).noop,r=n(99),a=r.postCtor,s={_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceOptions:function(){return{paginate:!1}},_updateDataSource:function(){this._refreshDataSource(),this.option("dataSource")||this._dataSourceChangedHandler()},_dataIsLoaded:function(){return!this._dataSource||this._dataSource.isLoaded()},_dataSourceItems:function(){return this._dataSource&&this._dataSource.items()}};for(i in r)"postCtor"!==i&&(s[i]=r[i]);e.plugin={name:"data_source",init:function(){a.call(this)},dispose:o,members:s}},function(t,e,n){"use strict";var i=n(3),o=n(36),r=n(8),a=n(4).grep,s=n(0).extend,l=n(16),u=n(5),c=n(788),d=n(789),h=n(374),f=n(157).ChildDefaultTemplate,p={actionSheet:c,dropDownMenu:d},m=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{menuItemTemplate:"menuItem",submenuType:"dropDownMenu",menuContainer:void 0})},_defaultOptionsRules:function(){var t=o.current();return this.callBase().concat([{device:function(){return o.isIos7(t)},options:{submenuType:"actionSheet"}}])},_dimensionChanged:function(t){"height"!==t&&(this._menuStrategy.toggleMenuVisibility(!1,!0),this.callBase(),this._menuStrategy.renderMenuItems())},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({actionSheetItem:new f("item")})},_initMarkup:function(){this.callBase(),this._renderMenu()},_postProcessRenderItems:function(){this._hideOverflowItems(),this._menuStrategy._updateMenuVisibility(),this.callBase(),this._menuStrategy.renderMenuItems()},_renderItem:function(t,e,n,i){var o=this.callBase(t,e,n,i);return"auto"===e.locateInMenu&&o.addClass("dx-toolbar-item-auto-hide"),"dxButton"===e.widget&&"inMenu"===e.showText&&o.toggleClass("dx-toolbar-text-auto-hide"),o},_getItemsWidth:function(){return this._getSummaryItemsWidth([this._$beforeSection,this._$centerSection,this._$afterSection])},_hideOverflowItems:function(t){var e=this.$element().find(".dx-toolbar-item-auto-hide");if(e.length){t=t||this.$element().width(),i(e).removeClass("dx-toolbar-item-invisible");for(var n=this._getItemsWidth();e.length&&t<n;){var o=e.eq(-1);n-=o.outerWidth(),o.addClass("dx-toolbar-item-invisible"),e.splice(-1,1)}}},_getMenuItems:function(){var t=this,e=a(this.option("items")||[],(function(e){return t._isMenuItem(e)})),n=this._itemContainer().children(".dx-toolbar-item-auto-hide.dx-toolbar-item-invisible").not(".dx-state-invisible");this._restoreItems=this._restoreItems||[];var o=[].slice.call(n).map((function(e){var n=t._getItemData(e),o=i(e).children(),r=o.children();return s({menuItemTemplate:function(){return t._restoreItems.push({container:o,item:r}),i("<div>").addClass("dx-toolbar-item-auto-hide").append(r)}},n)}));return l.merge(o,e)},_getToolbarItems:function(){var t=this;return a(this.option("items")||[],(function(e){return!t._isMenuItem(e)}))},_renderMenu:function(){this._renderMenuStrategy(),this._menuStrategy.render()},_renderMenuStrategy:function(){var t=this.option("submenuType");this._requireDropDownStrategy()&&(t="dropDownMenu");var e=p[t];this._menuStrategy&&this._menuStrategy.NAME===t||(this._menuStrategy=new e(this))},_requireDropDownStrategy:function(){var t=this.option("items")||[],e=!1;return u.each(t,(function(t,n){("auto"===n.locateInMenu||"always"===n.locateInMenu&&n.widget)&&(e=!0)})),e},_arrangeItems:function(){if(!this.$element().is(":hidden")){this._$centerSection.css({margin:"0 auto",float:"none"}),u.each(this._restoreItems||[],(function(t,e){i(e.container).append(e.item)})),this._restoreItems=[];var t=this.$element().width();this._hideOverflowItems(t),this.callBase(t)}},_itemOptionChanged:function(t,e,n){this._isMenuItem(t)?this._menuStrategy.renderMenuItems():this._isToolbarItem(t)?this.callBase(t,e,n):(this.callBase(t,e,n),this._menuStrategy.renderMenuItems()),"location"===e&&this.repaint()},_isMenuItem:function(t){return"menu"===t.location||"always"===t.locateInMenu},_isToolbarItem:function(t){return void 0===t.location||"never"===t.locateInMenu},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"submenuType":this._invalidate();break;case"visible":this.callBase.apply(this,arguments),this._menuStrategy.handleToolbarVisibilityChange(n);break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"onItemClick":this._changeMenuOption(e,n),this.callBase.apply(this,arguments);break;case"menuContainer":this._changeMenuOption("container",n);break;default:this.callBase.apply(this,arguments)}},_changeMenuOption:function(t,e){this._menuStrategy.widgetOption(t,e)}});r("dxToolbar",m),t.exports=m,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=n(435),t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=n(812),t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(7),r=n(0),a=n(4),s=n(2),l=(i=s)&&i.__esModule?i:{default:i};t.exports=function(t,e,n){e=e||a.noop,n=n||a.noop,Array.isArray(t)||(t=[t]);var i=t.map((function(t,i){return(0,o.when)(t).then((function(n){return l.default.isFunction(e)&&e({item:t,index:i,result:n}),n}),(function(t){return t||(t={}),t.index=i,l.default.isFunction(n)&&n(t),(new o.Deferred).resolve().promise()}))}));return o.when.apply(null,i)},t.exports.getDisplayFileSize=function(t){for(var e=["B","KB","MB","GB","TB"],n=0,i=t;i>=1024&&n<=e.length-1;)i/=1024,n++;return i=Math.round(10*i)/10,"".concat(i," ").concat(e[n])},t.exports.extendAttributes=function(t,e,n){return n.forEach((function(n){(0,r.extend)(!0,t,l.default.isDefined(e[n])?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,e[n]):{})})),t},t.exports.findItemsByKeys=function(t,e){var n={};e.forEach((function(t){n[t]=null})),t.forEach((function(t){var e=t.fileItem.key;Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=t)}));var i=[];return e.forEach((function(t){var e=n[t];e&&i.push(e)})),i}},function(t,e,n){"use strict";var i=n(38),o=n(0).extend,r=n(5).each,a=n(16).inArray,s=n(2).isDefined,l=n(26),u=l.dateToMilliseconds,c=["freq","interval","byday","byweekno","byyearday","bymonth","bymonthday","count","until","byhour","byminute","bysecond","bysetpos","wkst"],d=["DAILY","WEEKLY","MONTHLY","YEARLY","SECONDLY","MINUTELY","HOURLY"],h={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},f={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},p={secondly:"seconds",minutely:"minutes",hourly:"hours",daily:"days",weekly:"weeks",monthly:"months",yearly:"years"},m={},g={bysecond:function(t,e){t.setSeconds(e)},byminute:function(t,e){t.setMinutes(e)},byhour:function(t,e){t.setHours(e)},bymonth:function(t,e){t.setMonth(e)},bymonthday:function(t,e){if(e<0){var n=new Date(t);_(n,1,-1),n.getDate()>=Math.abs(e)?_(t,1,e):_(t,2,e)}else e<=l.getLastMonthDay(t)?t.setDate(e):function(t){t.isWrongDate=!0}(t)},byday:function(t,e,n,i,o){var r=t.getDay(),a=h[n];e+=e>=a===a>r?7:0,t.setDate(t.getDate()-r+e)},byweekno:function(t,e,n){var i=new Date(t),o=new Date(i.setMonth(0,1)),r=o.getDay()-h[n],a=o.getTime()-r*u("day");r+1>4?t.setTime(a+7*e*u("day")):t.setTime(a+7*(e-1)*u("day"));var s=(t.getTimezoneOffset()-o.getTimezoneOffset())*u("minute");s&&t.setTime(t.getTime()+s)},byyearday:function(t,e){t.setMonth(0,1),t.setDate(e)}};function _(t,e,n){var i=new Date(t);t.setMonth(t.getMonth()+e),t.getMonth()-i.getMonth()>e&&t.setDate(n+1),t.setDate(n+1)}var v={bysecond:function(t){return t.getSeconds()},byminute:function(t){return t.getMinutes()},byhour:function(t){return t.getHours()},bymonth:function(t){return t.getMonth()},bymonthday:function(t){return t.getDate()},byday:function(t){return t.getDay()},byweekno:function(t,e){var n=new Date(t),i=4-n.getDay()+h[e]-1,o=u("day");t.getDay()<h[e]&&(i-=7),n.setHours(0,0,0),n.setDate(n.getDate()+i);var r=new Date(n.getFullYear(),0,1),a=(r.getTimezoneOffset()-n.getTimezoneOffset())*u("minute"),s=1+(n-r+a)/o;return Math.ceil(s/7)},byyearday:function(t){var e=new Date(t.getFullYear(),0,0),n=t.getTimezoneOffset()-e.getTimezoneOffset(),i=t-e-n*u("minute"),o=u("day");return Math.floor(i/o)}};var y=function(t,e){var n=!1;if(!e)return n;for(var i,o,r=e.split(","),a=function(t,e){for(var n=[],i=0,o=t.length;i<o;i++)n[i]=I(t[i],e);return n}(r,t),s=/\d{8}$/,l=0,u=a.length;l<u;l++)if(r[l].match(s)){var c=(i=t,o=a[l],{years:i.getFullYear()-o.getFullYear(),months:i.getMonth()-o.getMonth(),days:i.getDate()-o.getDate(),hours:i.getHours()-o.getHours(),minutes:i.getMinutes()-o.getMinutes(),seconds:i.getSeconds()-o.getSeconds()});0===c.years&&0===c.months&&0===c.days&&(n=!0)}else t.getTime()===a[l].getTime()&&(n=!0);return n},b=function(t,e,n,i,o){var r=!0;return n=n.getTime(),i.until&&i.until.getTime()<n&&(n=i.until.getTime()),i.count&&o===i.count&&(r=!1),t.getTime()<=n&&r};function w(t){var e=[],n=S(t.rule),i={},o=n.rule,a=t.start,s=function(t,e){var n=new Date(t);switch(e.freq){case"MONTHLY":n.setMonth(n.getMonth()+1);break;case"YEARLY":n.setYear(n.getYear()+1)}return n>t?n:t}(t.max,o);if(!n.isValid||!o.freq)return e;o.interval=function(t){var e=t.interval,n=t.freq,i={},o=p[n.toLowerCase()];return"MONTHLY"===n&&t.byday&&(o=p.daily),i[o]=e,i}(o);var c=O(o,t.firstDayOfWeek),d=t.end?t.end.getTime()-t.start.getTime():u("day"),h={exception:t.exception,min:t.min,dateRules:c,rule:o,recurrenceStartDate:a,recurrenceEndDate:t.end,duration:d};if(c.length&&o.count){var f=0;(function(t,e,n,i){var o=[],r=i.count,a=0,s=R(e,t,i.wkst),u=function(){var e=A(t,s,i),u=[];e.forEach((function(t){B(t)||t.getTime()>=n.getTime()&&u.push(t)}));var c=u.length,d=(a+=c)-r;a>r&&u.splice(c-d,d),u.forEach((function(t){return o.push(t)}));var h=i.interval;"days"===Object.keys(h)[0]&&(h={weeks:1}),s=l.addInterval(s,h)};for(;a<r;)u();return o})(c,new Date(a),new Date(a),o).forEach((function(t,e){t<s&&(f++,i=x(f,i,t,e,h,!0))}))}else A(c,new Date(a),o).forEach((function(t,e){for(var n=0;b(t,0,s,o,n);)n++,i=x(n,i,t,e,h),t=C(t,a,o,e)}));return o.bysetpos&&r(i,(function(t,e){i[t]=function(t,e){var n=[];return e.split(",").forEach((function(e){var i=(e=Number(e))>0?e-1:t.length+e;t[i]&&n.push(t[i])})),n}(e,o.bysetpos)})),r(i,(function(t,n){e=e.concat(n)})),(e=e.filter((function(e){return e<=t.max}))).sort((function(t,e){return t-e})),e}function x(t,e,n,i,o,r){return e[t]||(e[t]=[]),function(t,e,n,i){if(!y(t,n.exception)){var o=l.sameDate(t,n.recurrenceEndDate)&&n.recurrenceEndDate.getTime()>t.getTime()?n.recurrenceEndDate.getTime()-t.getTime():n.duration;if(t.getTime()>=n.recurrenceStartDate.getTime()&&t.getTime()+o>n.min.getTime())return i||function(t,e,n){for(var i=!1,o=0;o<e.length;o++){var r=e[o],a=!0;for(var s in r){var l="bymonthday"===s&&r[s]<0;v[s]&&!l&&r[s]!==v[s](t,n)&&(a=!1)}i=i||a}return i||!e.length}(t,[n.dateRules[e]],n.rule.wkst)}return!1}(n,i,o,r)&&e[t].push(n),e}function C(t,e,n,i){var o=new Date(t),r=!0;if(t=l.addInterval(t,n.interval),"DAILY"!==n.freq||s(n.byhour)||e.getHours()===t.getHours()||(t=new Date(t.getTime()-(o.getHours()-e.getHours())*u("hour"))),"MONTHLY"===n.freq&&!n.byday){var a=e.getDate();n.bymonthday&&(a=Number(n.bymonthday.split(",")[i]))<0&&(o.setMonth(o.getMonth()+1,1),g.bymonthday(o,a),t=o,r=!1),r&&function(t,e){t.getDate()!==e&&t.setDate(e)}(t,a)}if("YEARLY"===n.freq){if(n.byyearday){var c=Number(n.byyearday.split(",")[i]);g.byyearday(t,c)}var d=O(n);for(var h in d[i])g[h]&&g[h](t,d[i][h],n.wkst)}return t}function S(t){var e={rule:{},isValid:!1};return t&&(e.rule=function(t){for(var e={},n=t.split(";"),i=0,o=n.length;i<o;i++){var r=n[i].split("="),a=r[0].toLowerCase(),s=r[1];e[a]=s}var l=parseInt(e.count);isNaN(l)||(e.count=l);if(e.interval){var u=parseInt(e.interval);isNaN(u)||(e.interval=u)}else e.interval=1;e.freq&&e.until&&(e.until=I(e.until));return e}(t),e.isValid=function(t,e){if(function(t){var e=!1;return r(t,(function(t){if(-1===a(t,c))return e=!0,!1})),e}(t)||-1===a(t.freq,d)||function(t){var e=!1,n=t.count;n&&"string"===typeof n&&(e=!0);return e}(t)||function(t){var e=!1,n=t.interval;n&&"string"===typeof n&&(e=!0);return e}(t)||function(t){var e=T(t),n=!1;return r(e,(function(t,e){if(!Object.prototype.hasOwnProperty.call(h,e))return n=!0,!1})),n}(t)||function(t){var e=!1,n=t.bymonthday;n&&isNaN(parseInt(n))&&(e=!0);return e}(t)||function(t){var e=!1,n=t.bymonth;n&&isNaN(parseInt(n))&&(e=!0);return e}(t)||function(t){var e=!1,n=t.until;void 0===n||n instanceof Date||(e=!0);return e}(t))return function(t){-1===a(t,k)&&(i.log("W0006",t),k.push(t))}(e),!1;return!0}(e.rule,t)),e}var k=[];function I(t,e){if("string"!==typeof t)return t;var n=t.match(/(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2}))?(Z)?/);if(!n)return null;var i=void 0!==n[8],o=e?e.getTimezoneOffset():m.getTimeZoneOffset(),r=new(Function.prototype.bind.apply(Date,function(t){t.shift(),void 0===t[3]?t.splice(3):(t.splice(3,1),t.splice(6));return t[1]--,t.unshift(null),t}(n)));return o*=6e4,i&&(r=new Date(r.getTime()-o)),r}function T(t){var e=[];return t.byday&&(e=Array.isArray(t.byday)?t.byday:t.byday.split(",")),e}function E(t){var e=6e4*m.getTimeZoneOffset();return(t=new Date(t.getTime()+e)).getFullYear()+("0"+(t.getMonth()+1)).slice(-2)+("0"+t.getDate()).slice(-2)+"T"+("0"+t.getHours()).slice(-2)+("0"+t.getMinutes()).slice(-2)+("0"+t.getSeconds()).slice(-2)+"Z"}function O(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=[];if(s(e)&&(t.fdow=e),t.wkst||(t.wkst=s(e)?f[e]:"MO"),t.byweekno&&!t.byday){for(var i=Object.keys(h),o=0;o<h[t.wkst];o++)i.push(i.shift());t.byday=i.join(",")}for(var r in g)if(t[r]){var a=t[r].split(","),l=M(r,a);n=n.length?D(l,n):l}return n}function M(t,e){for(var n=[],i=0,o=e.length;i<o;i++){var r={};r[t]=P(t,e[i]),n.push(r)}return n}function P(t,e){var n=parseInt(e);return"bymonth"===t&&(n-=1),"byday"===t&&(n=h[e]),n}function D(t,e){for(var n=[],i=0,r=t.length;i<r;i++)for(var a=0,s=e.length;a<s;a++)n.push(o({},t[i],e[a]));return n}function A(t,e,n){for(var i=[],o=0,r=t.length;o<r;o++){var a=t[o],s=R(e,t,n.wkst);for(var l in a)g[l]&&g[l](s,a[l],n.wkst,n.freq,n.fdow);if(Array.isArray(s))i=i.concat(s);else{var u=B(s)?s:new Date(s);i.push(u)}}return i.length||i.push(e),i}function R(t,e,n){var i=new Date(t),o=i.getDay();return e.length&&s(e[0].byday)?i.setDate(i.getDate()-o+h[n]-(o<h[n]?7:0)):i.setDate(1),i}function B(t){return t.isWrongDate}o(m,{getRecurrenceString:function(t){if(t&&t.freq){var e="";for(var n in t){var i=t[n];"interval"===n&&i<2||("until"===n&&(i=E(i)),e+=n+"="+i+";")}return(e=e.substring(0,e.length-1)).toUpperCase()}},getRecurrenceRule:S,getAsciiStringByDate:E,getDatesByRecurrence:w,dateInRecurrenceRange:function(t){var e=[];return t.rule&&(e=w(t)),!!e.length},getDateByAsciiString:I,daysFromByDayRule:T,getTimeZoneOffset:function(){return(new Date).getTimezoneOffset()}}),t.exports=m},function(t,e,n){"use strict";var i=r(n(26)),o=r(n(503));function r(t){return t&&t.__esModule?t:{default:t}}var a=i.default.dateToMilliseconds,s=function(t,e,n,i){return l(n,i)-l(t,e)},l=function(t,e){return new Date(t).getTimezoneOffset()-new Date(e).getTimezoneOffset()},u=function(t,e){if("string"===typeof t){e=e||new Date;var n=Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes());t=o.default.getTimezoneOffsetById(t,n)}return t},c=function(t,e,n){return u(n,t)-u(n,e)},d={getDaylightOffset:l,getDaylightOffsetInMs:function(t,e){return l(t,e)*a("minute")},getTimezoneOffsetChangeInMinutes:s,getTimezoneOffsetChangeInMs:function(t,e,n,i){return s(t,e,n,i)*a("minute")},calculateTimezoneByValue:u,getCorrectedDateByDaylightOffsets:function(t,e,n,i,o){var r=c(t,e,i)-c(t,e,o);return new Date(n.getTime()-r*a("hour"))},isTimezoneChangeInDate:function(t){var e=new Date(new Date(t).setHours(0,0,0,0)),n=new Date(new Date(t).setHours(23,59,59,0));return e.getTimezoneOffset()-n.getTimezoneOffset()!==0},isSameAppointmentDates:function(t,e){return e=new Date(e.getTime()-1),i.default.sameDate(t,e)},correctRecurrenceExceptionByTimezone:function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=(t.getTimezoneOffset()-e.getTimezoneOffset())/60;return i?r=c(e,t,i):n&&(r=c(e,t,n)),new Date(t.getTime()+(o?-1:1)*r*a("hour"))}};t.exports=d},function(t,e,n){"use strict";var i=n(83).prototype,o=n(203).prototype,r=n(0).extend;function a(t,e){var n=t.ctx;n.suspend(),n.change(e),n.resume()}i._eventsMap.onNodesInitialized={name:"nodesInitialized"},i._eventsMap.onNodesRendering={name:"nodesRendering"},i._createProxyType=function(){var t,e=this;function n(t){t.proxy=this,this._id=t._id,this.level=t.level,this.index=t.index,this.data=t.data}n.prototype={constructor:n,getParent:function(){return t[this._id].parent.proxy||null},getChild:function(e){var n=t[this._id].nodes;return n?n[e].proxy:null},getChildrenCount:function(){var e=t[this._id].nodes;return e?e.length:0},getAllChildren:function(){var e,n=t[this._id].nodes,i=n&&n.length,o=[];for(e=0;e<i;++e)o.push(n[e].proxy);return o},getAllNodes:function(){var e=[];return function t(e,n){var i,o=e.nodes,r=o&&o.length;for(i=0;i<r;++i)n.push(o[i].proxy),t(o[i],n)}(t[this._id],e),e},isLeaf:function(){return!t[this._id].isNode()},isActive:function(){return t[this._id].isActive()},value:function(e){var n,i=t[this._id];return void 0!==e?(!function(t,e){var n=e-t.value;for(;t;)t.value+=n,t=t.parent}(i,e>0?Number(e):0),a(i,["TILING"]),n=this):n=i.value,n},label:function(e){var n,i=t[this._id];return void 0!==e?(i.customLabel=e?String(e):null,a(i,["LABELS"]),n=this):n=i.customLabel||i.label,n},customize:function(e){var n=t[this._id];return e&&(n._custom=n._custom||{},r(!0,n._custom,e),n._partialState=n._partialLabelState=null),a(n,["TILES","LABELS"]),this},resetCustomization:function(){var e=t[this._id];return e._custom=e._partialState=e._partialLabelState=null,a(e,["TILES","LABELS"]),this}},e._extendProxyType(n.prototype),e._handlers.beginBuildNodes=function(){t=e._nodes,new n(e._root)},e._handlers.buildNode=function(t){new n(t)},e._handlers.endBuildNodes=function(){e._eventTrigger("nodesInitialized",{root:e._root.proxy})}},i._extendProxyType=n(4).noop;var s=i._resetNodes;i._resetNodes=function(){s.call(this),this._eventTrigger("nodesRendering",{node:this._topNode.proxy})};var l=o.updateStyles;o.updateStyles=function(){l.call(this),this._custom&&(this._partialState=!this.ctx.forceReset&&this._partialState||this.ctx.calculateState(this._custom),r(!0,this.state,this._partialState))};var u=o.updateLabelStyle;o.updateLabelStyle=function(){var t=this._custom;u.call(this),t&&t.label&&(this._partialLabelState=!this.ctx.forceReset&&this._partialLabelState||function(t,e){var n=t.ctx.calculateLabelState(e);"visible"in e&&(n.visible=!!e.visible);return n}(this,t.label),this.labelState=r(!0,{},this.labelState,this._partialLabelState))},i.getRootNode=function(){return this._root.proxy},i.resetNodes=function(){var t=this._context;return t.suspend(),t.change(["NODES_CREATE"]),t.resume(),this}},function(t,e,n){"use strict";(function(e,i){var o=n(30).Buffer,r=e.crypto||e.msCrypto;r&&r.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(t);if(t>0)if(t>65536)for(var a=0;a<t;a+=65536)r.getRandomValues(n.slice(a,a+65536));else r.getRandomValues(n);if("function"===typeof e)return i.nextTick((function(){e(null,n)}));return n}:t.exports=function(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}}).call(this,n(56),n(50))},function(t,e,n){"use strict";var i={};function o(t,e,n){n||(n=Error);var o=function(t){var n,i;function o(n,i,o){return t.call(this,function(t,n,i){return"string"===typeof e?e:e(t,n,i)}(n,i,o))||this}return i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,o}(n);o.prototype.name=n.name,o.prototype.code=t,i[t]=o}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o,a,s;if("string"===typeof e&&(o="not ",e.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var l=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(l," ").concat(i," ").concat(r(e,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var o=n(528),r=n(532);n(22)(u,o);for(var a=i(r.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=r.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);o.call(this,t),r.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(50))},function(t,e,n){var i=n(30).Buffer;function o(t,e){this._block=i.alloc(t),this._finalSize=e,this._blockSize=t,this._len=0}o.prototype.update=function(t,e){"string"===typeof t&&(e=e||"utf8",t=i.from(t,e));for(var n=this._block,o=this._blockSize,r=t.length,a=this._len,s=0;s<r;){for(var l=a%o,u=Math.min(r-s,o-l),c=0;c<u;c++)n[l+c]=t[s+c];s+=u,(a+=u)%o===0&&this._update(n)}return this._len+=r,this},o.prototype.digest=function(t){var e=this._len%this._blockSize;this._block[e]=128,this._block.fill(0,e+1),e>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,o=(n-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,n){"use strict";var i={};function o(t,e,n){n||(n=Error);var o=function(t){var n,i;function o(n,i,o){return t.call(this,function(t,n,i){return"string"===typeof e?e:e(t,n,i)}(n,i,o))||this}return i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,o}(n);o.prototype.name=n.name,o.prototype.code=t,i[t]=o}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o,a,s;if("string"===typeof e&&(o="not ",e.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var l=function(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";s='The "'.concat(t,'" ').concat(l," ").concat(i," ").concat(r(e,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=u;var o=n(558),r=n(562);n(22)(u,o);for(var a=i(r.prototype),s=0;s<a.length;s++){var l=a[s];u.prototype[l]||(u.prototype[l]=r.prototype[l])}function u(t){if(!(this instanceof u))return new u(t);o.call(this,t),r.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",c)))}function c(){this._writableState.ended||e.nextTick(d,this)}function d(t){t.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})}).call(this,n(50))},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(){var t=o,e=t.lib.WordArray;t.enc.Base64={stringify:function(t){var e=t.words,n=t.sigBytes,i=this._map;t.clamp();for(var o=[],r=0;r<n;r+=3)for(var a=(e[r>>>2]>>>24-r%4*8&255)<<16|(e[r+1>>>2]>>>24-(r+1)%4*8&255)<<8|e[r+2>>>2]>>>24-(r+2)%4*8&255,s=0;s<4&&r+.75*s<n;s++)o.push(i.charAt(a>>>6*(3-s)&63));var l=i.charAt(64);if(l)for(;o.length%4;)o.push(l);return o.join("")},parse:function(t){var n=t.length,i=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var r=0;r<i.length;r++)o[i.charCodeAt(r)]=r}var a=i.charAt(64);if(a){var s=t.indexOf(a);-1!==s&&(n=s)}return function(t,n,i){for(var o=[],r=0,a=0;a<n;a++)if(a%4){var s=i[t.charCodeAt(a-1)]<<a%4*2,l=i[t.charCodeAt(a)]>>>6-a%4*2,u=s|l;o[r>>>2]|=u<<24-r%4*8,r++}return e.create(o,r)}(t,n,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),o.enc.Base64)}()},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(t){var e=o,n=e.lib,i=n.WordArray,r=n.Hasher,a=e.algo,s=[];!function(){for(var e=0;e<64;e++)s[e]=4294967296*t.abs(t.sin(e+1))|0}();var l=a.MD5=r.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r=this._hash.words,a=t[e+0],l=t[e+1],f=t[e+2],p=t[e+3],m=t[e+4],g=t[e+5],_=t[e+6],v=t[e+7],y=t[e+8],b=t[e+9],w=t[e+10],x=t[e+11],C=t[e+12],S=t[e+13],k=t[e+14],I=t[e+15],T=r[0],E=r[1],O=r[2],M=r[3];T=u(T,E,O,M,a,7,s[0]),M=u(M,T,E,O,l,12,s[1]),O=u(O,M,T,E,f,17,s[2]),E=u(E,O,M,T,p,22,s[3]),T=u(T,E,O,M,m,7,s[4]),M=u(M,T,E,O,g,12,s[5]),O=u(O,M,T,E,_,17,s[6]),E=u(E,O,M,T,v,22,s[7]),T=u(T,E,O,M,y,7,s[8]),M=u(M,T,E,O,b,12,s[9]),O=u(O,M,T,E,w,17,s[10]),E=u(E,O,M,T,x,22,s[11]),T=u(T,E,O,M,C,7,s[12]),M=u(M,T,E,O,S,12,s[13]),O=u(O,M,T,E,k,17,s[14]),T=c(T,E=u(E,O,M,T,I,22,s[15]),O,M,l,5,s[16]),M=c(M,T,E,O,_,9,s[17]),O=c(O,M,T,E,x,14,s[18]),E=c(E,O,M,T,a,20,s[19]),T=c(T,E,O,M,g,5,s[20]),M=c(M,T,E,O,w,9,s[21]),O=c(O,M,T,E,I,14,s[22]),E=c(E,O,M,T,m,20,s[23]),T=c(T,E,O,M,b,5,s[24]),M=c(M,T,E,O,k,9,s[25]),O=c(O,M,T,E,p,14,s[26]),E=c(E,O,M,T,y,20,s[27]),T=c(T,E,O,M,S,5,s[28]),M=c(M,T,E,O,f,9,s[29]),O=c(O,M,T,E,v,14,s[30]),T=d(T,E=c(E,O,M,T,C,20,s[31]),O,M,g,4,s[32]),M=d(M,T,E,O,y,11,s[33]),O=d(O,M,T,E,x,16,s[34]),E=d(E,O,M,T,k,23,s[35]),T=d(T,E,O,M,l,4,s[36]),M=d(M,T,E,O,m,11,s[37]),O=d(O,M,T,E,v,16,s[38]),E=d(E,O,M,T,w,23,s[39]),T=d(T,E,O,M,S,4,s[40]),M=d(M,T,E,O,a,11,s[41]),O=d(O,M,T,E,p,16,s[42]),E=d(E,O,M,T,_,23,s[43]),T=d(T,E,O,M,b,4,s[44]),M=d(M,T,E,O,C,11,s[45]),O=d(O,M,T,E,I,16,s[46]),T=h(T,E=d(E,O,M,T,f,23,s[47]),O,M,a,6,s[48]),M=h(M,T,E,O,v,10,s[49]),O=h(O,M,T,E,k,15,s[50]),E=h(E,O,M,T,g,21,s[51]),T=h(T,E,O,M,C,6,s[52]),M=h(M,T,E,O,p,10,s[53]),O=h(O,M,T,E,w,15,s[54]),E=h(E,O,M,T,l,21,s[55]),T=h(T,E,O,M,y,6,s[56]),M=h(M,T,E,O,I,10,s[57]),O=h(O,M,T,E,_,15,s[58]),E=h(E,O,M,T,S,21,s[59]),T=h(T,E,O,M,m,6,s[60]),M=h(M,T,E,O,x,10,s[61]),O=h(O,M,T,E,f,15,s[62]),E=h(E,O,M,T,b,21,s[63]),r[0]=r[0]+T|0,r[1]=r[1]+E|0,r[2]=r[2]+O|0,r[3]=r[3]+M|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var r=t.floor(i/4294967296),a=i;n[15+(o+64>>>9<<4)]=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,l=s.words,u=0;u<4;u++){var c=l[u];l[u]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return s},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function u(t,e,n,i,o,r,a){var s=t+(e&n|~e&i)+o+a;return(s<<r|s>>>32-r)+e}function c(t,e,n,i,o,r,a){var s=t+(e&i|n&~i)+o+a;return(s<<r|s>>>32-r)+e}function d(t,e,n,i,o,r,a){var s=t+(e^n^i)+o+a;return(s<<r|s>>>32-r)+e}function h(t,e,n,i,o,r,a){var s=t+(n^(e|~i))+o+a;return(s<<r|s>>>32-r)+e}e.MD5=r._createHelper(l),e.HmacMD5=r._createHmacHelper(l)}(Math),o.MD5)}()},function(t,e,n){"use strict";n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return s}));var i=n(340),o=function(){return Math.random().toString(36).substring(7).split("").join(".")},r={INIT:"@@redux/INIT"+o(),REPLACE:"@@redux/REPLACE"+o(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+o()}};function a(t){if("object"!==typeof t||null===t)return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function s(t,e,n){var o;if("function"===typeof e&&"function"===typeof n||"function"===typeof n&&"function"===typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"===typeof e&&"undefined"===typeof n&&(n=e,e=void 0),"undefined"!==typeof n){if("function"!==typeof n)throw new Error("Expected the enhancer to be a function.");return n(s)(t,e)}if("function"!==typeof t)throw new Error("Expected the reducer to be a function.");var l=t,u=e,c=[],d=c,h=!1;function f(){d===c&&(d=c.slice())}function p(){if(h)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return u}function m(t){if("function"!==typeof t)throw new Error("Expected the listener to be a function.");if(h)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var e=!0;return f(),d.push(t),function(){if(e){if(h)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");e=!1,f();var n=d.indexOf(t);d.splice(n,1),c=null}}}function g(t){if(!a(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if("undefined"===typeof t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(h)throw new Error("Reducers may not dispatch actions.");try{h=!0,u=l(u,t)}finally{h=!1}for(var e=c=d,n=0;n<e.length;n++){(0,e[n])()}return t}function _(t){if("function"!==typeof t)throw new Error("Expected the nextReducer to be a function.");l=t,g({type:r.REPLACE})}function v(){var t,e=m;return(t={subscribe:function(t){if("object"!==typeof t||null===t)throw new TypeError("Expected the observer to be an object.");function n(){t.next&&t.next(p())}return n(),{unsubscribe:e(n)}}})[i.a]=function(){return this},t}return g({type:r.INIT}),(o={dispatch:g,subscribe:m,getState:p,replaceReducer:_})[i.a]=v,o}function l(t,e){var n=e&&e.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function u(t){for(var e=Object.keys(t),n={},i=0;i<e.length;i++){var o=e[i];0,"function"===typeof t[o]&&(n[o]=t[o])}var a,s=Object.keys(n);try{!function(t){Object.keys(t).forEach((function(e){var n=t[e];if("undefined"===typeof n(void 0,{type:r.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if("undefined"===typeof n(void 0,{type:r.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+r.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(u){a=u}return function(t,e){if(void 0===t&&(t={}),a)throw a;for(var i=!1,o={},r=0;r<s.length;r++){var u=s[r],c=n[u],d=t[u],h=c(d,e);if("undefined"===typeof h){var f=l(u,e);throw new Error(f)}o[u]=h,i=i||h!==d}return(i=i||s.length!==Object.keys(t).length)?o:t}}function c(t,e){return function(){return e(t.apply(this,arguments))}}function d(t,e){if("function"===typeof t)return c(t,e);if("object"!==typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var i in t){var o=t[i];"function"===typeof o&&(n[i]=c(o,e))}return n}},function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(10),o=i.hasWindow()?i.getWindow():{},r=n(113),a=function(t){return setTimeout(t,1e3/60)},s=function(t){clearTimeout(t)},l=r((function(){var t=o.requestAnimationFrame||o.webkitRequestAnimationFrame||o.mozRequestAnimationFrame||o.oRequestAnimationFrame||o.msRequestAnimationFrame,e=o.cancelAnimationFrame||o.webkitCancelAnimationFrame||o.mozCancelAnimationFrame||o.oCancelAnimationFrame||o.msCancelAnimationFrame;if(t&&e&&(a=t,s=e),t&&!e){var n={};a=function(e){var i=t.call(o,(function(){try{if(i in n)return;e.apply(this,arguments)}finally{delete n[i]}}));return i},s=function(t){n[t]=!0}}}));e.requestAnimationFrame=function(){return l(),a.apply(o,arguments)},e.cancelAnimationFrame=function(){l(),s.apply(o,arguments)}},function(t,e,n){"use strict";var i=n(3),o=n(57).beforeCleanData,r=n(6),a=n(114);o((function(t){t=[].slice.call(t);for(var e=0;e<t.length;e++){var n=i(t[e]);n.prop("dxRemoveEvent")&&(n[0].dxRemoveEvent=null,r.triggerHandler(n,"dxremove"))}})),a("dxremove",{noBubble:!0,setup:function(t){i(t).prop("dxRemoveEvent",!0)}}),t.exports="dxremove"},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(21),a=n(39),s=n(0).extend,l=n(11),u=r.inherit({ctor:function(t){this._$element=i(t),this._cancelCallback=a(),this._acceptCallback=a()},getElement:function(){return this._$element},validate:function(t){return!l.isDxMouseWheelEvent(t)},validatePointers:function(t){return 1===l.hasTouches(t)},allowInterruptionByMouseWheel:function(){return!0},configure:function(t){s(this,t)},addCancelCallback:function(t){this._cancelCallback.add(t)},removeCancelCallback:function(){this._cancelCallback.empty()},_cancel:function(t){this._cancelCallback.fire(this,t)},addAcceptCallback:function(t){this._acceptCallback.add(t)},removeAcceptCallback:function(){this._acceptCallback.empty()},_accept:function(t){this._acceptCallback.fire(this,t)},_requestAccept:function(t){this._acceptRequestEvent=t},_forgetAccept:function(){this._accept(this._acceptRequestEvent),this._acceptRequestEvent=null},start:o,move:o,end:o,cancel:o,reset:function(){this._acceptRequestEvent&&this._accept(this._acceptRequestEvent)},_fireEvent:function(t,e,n){var i=s({type:t,originalEvent:e,target:this._getEmitterTarget(e),delegateTarget:this.getElement().get(0)},n);return(e=l.fireEvent(i)).cancel&&this._cancel(e),e},_getEmitterTarget:function(t){return(this.delegateSelector?i(t.target).closest(this.delegateSelector):this.getElement()).get(0)},dispose:o});t.exports=u},function(t,e,n){"use strict";e.compare=function(t,e,n){function i(t){return"string"===typeof t?t.split("."):"number"===typeof t?[t]:t}t=i(t),e=i(e);var o=Math.max(t.length,e.length);isFinite(n)&&(o=Math.min(o,n));for(var r=0;r<o;r++){var a=parseInt(t[r]||0,10),s=parseInt(e[r]||0,10);if(a<s)return-1;if(a>s)return 1}return 0}},function(t,e,n){"use strict";var i=n(57),o=n(6),r=n(253),a=n(2).isDefined,s=n(185),l=new r,u=0,c=e.name=function(t,e){if(!a(e)){if(!l.has(t)){var n="dxPrivateComponent"+u++;return l.set(t,n),n}return l.get(t)}l.set(t,e)};e.attachInstanceToElement=function(t,e,n){var r=i.data(t.get(0)),a=c(e.constructor);r[a]=e,n&&o.one(t,s,(function(){n.call(e)})),r.dxComponents||(r.dxComponents=[]),r.dxComponents.push(a)},e.getInstanceByElement=function(t,e){var n=c(e);return i.data(t.get(0),n)}},function(t,e,n){"use strict";var i=g(n(51)),o=n(0),r=n(625),a=n(256),s=g(n(21)),l=g(n(155)),u=g(n(38)),c=g(n(39)),d=n(153),h=g(n(188)),f=n(628),p=n(2),m=n(4);function g(t){return t&&t.__esModule?t:{default:t}}var _=function(t){return t.charAt(2).toLowerCase()+t.substr(3)},v=s.default.inherit({_setDeprecatedOptions:function(){this._deprecatedOptions={}},_getDeprecatedOptions:function(){return this._deprecatedOptions},_getDefaultOptions:function(){return{onInitialized:null,onOptionChanged:null,onDisposing:null,defaultOptionsRules:null}},_defaultOptionsRules:function(){return[]},_setOptionsByDevice:function(t){this._options.applyRules(t)},_convertRulesToOptions:function(t){return(0,a.convertRulesToOptions)(t)},_isInitialOptionValue:function(t){return this._options.isInitial(t)},_setOptionsByReference:function(){this._optionsByReference={}},_getOptionsByReference:function(){return this._optionsByReference},ctor:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t._optionChangedCallbacks,n=t._disposingCallbacks;this.NAME=h.default.name(this.constructor),this._eventsStrategy=d.EventsStrategy.create(this,t.eventsStrategy),this._updateLockCount=0,this._optionChangedCallbacks=e||(0,c.default)(),this._disposingCallbacks=n||(0,c.default)(),this.postponedOperations=new f.PostponedOperations,this._createOptions(t)},_createOptions:function(t){var e=this;this.beginUpdate();try{this._setOptionsByReference(),this._setDeprecatedOptions(),this._options=new r.Options(this._getDefaultOptions(),this._getDefaultOptions(),this._getOptionsByReference(),this._getDeprecatedOptions()),this._options.onChanging((function(t,n,i){return e._initialized&&e._optionChanging(t,n,i)})),this._options.onDeprecated((function(t,n){return e._logDeprecatedOptionWarning(t,n)})),this._options.onChanged((function(t,n,i){return e._notifyOptionChanged(t,n,i)})),this._options.onStartChange((function(){return e.beginUpdate()})),this._options.onEndChange((function(){return e.endUpdate()})),this._options.addRules(this._defaultOptionsRules()),t&&t.onInitializing&&t.onInitializing.apply(this,[t]),this._setOptionsByDevice(t.defaultOptionsRules),this._initOptions(t)}finally{this.endUpdate()}},_initOptions:function(t){this.option(t)},_init:function(){var t=this;this._createOptionChangedAction(),this.on("disposing",(function(e){t._disposingCallbacks.fireWith(t,[e])}))},_logDeprecatedOptionWarning:function(t,e){var n=e.message||"Use the '".concat(e.alias,"' option instead");u.default.log("W0001",this.NAME,t,e.since,n)},_logDeprecatedComponentWarning:function(t,e){u.default.log("W0000",this.NAME,t,"Use the '".concat(e,"' widget instead"))},_createOptionChangedAction:function(){this._optionChangedAction=this._createActionByOption("onOptionChanged",{excludeValidators:["disabled","readOnly"]})},_createDisposingAction:function(){this._disposingAction=this._createActionByOption("onDisposing",{excludeValidators:["disabled","readOnly"]})},_optionChanged:function(t){switch(t.name){case"onDisposing":case"onInitialized":break;case"onOptionChanged":this._createOptionChangedAction()}},_dispose:function(){this._optionChangedCallbacks.empty(),this._createDisposingAction(),this._disposingAction(),this._eventsStrategy.dispose(),this._options.dispose(),this._disposed=!0},_lockUpdate:function(){this._updateLockCount++},_unlockUpdate:function(){this._updateLockCount=Math.max(this._updateLockCount-1,0)},_isUpdateAllowed:function(){return 0===this._updateLockCount},_isInitializingRequired:function(){return!this._initializing&&!this._initialized},_commitUpdate:function(){this.postponedOperations.callPostponedOperations(),this._isInitializingRequired()&&this._initializeComponent()},_initializeComponent:function(){this._initializing=!0;try{this._init()}finally{this._initializing=!1,this._lockUpdate(),this._createActionByOption("onInitialized",{excludeValidators:["disabled","readOnly"]})(),this._unlockUpdate(),this._initialized=!0}},instance:function(){return this},beginUpdate:function(){this._lockUpdate()},endUpdate:function(){this._unlockUpdate(),this._isUpdateAllowed()&&this._commitUpdate()},_optionChanging:m.noop,_notifyOptionChanged:function(t,e,n){if(this._initialized)for(var i=[t].concat(this._options.getAliasesByName(t)),r=0;r<i.length;r++){var a=i[r],s={name:a.split(/[.[]/)[0],fullName:a,value:e,previousValue:n};this._optionChangedCallbacks.fireWith(this,[(0,o.extend)(this._defaultActionArgs(),s)]),this._optionChangedAction((0,o.extend)({},s)),this._disposed||this._cancelOptionChange===s.name||this._optionChanged(s)}},initialOption:function(t){return this._options.initial(t)},_defaultActionConfig:function(){return{context:this,component:this}},_defaultActionArgs:function(){return{component:this}},_createAction:function(t,e){var n,i=this;return function(r){return(0,p.isDefined)(r)||(r={}),(0,p.isPlainObject)(r)||(r={actionValue:r}),(n=n||new l.default(t,(0,o.extend)(e,i._defaultActionConfig()))).execute.call(n,(0,o.extend)(r,i._defaultActionArgs()))}},_createActionByOption:function(t,e){var n,o,r,a=this,s=function(){if(!o){if(e=e||{},"string"!==typeof t)throw u.default.Error("E0008");0===t.indexOf("on")&&(o=_(t)),r=a.option(t)}if(n||r||e.beforeExecute||e.afterExecute||a._eventsStrategy.hasEvent(o)){if(!n){var s=e.beforeExecute;e.beforeExecute=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];s&&s.apply(a,e),a._eventsStrategy.fireEvent(o,e[0].args)},n=a._createAction(r,e)}for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];if((0,i.default)().wrapActionsBeforeExecute){var h=a.option("beforeActionExecute")||m.noop,f=h(a,n,e)||n;return f.apply(a,c)}return n.apply(a,c)}};return(0,i.default)().wrapActionsBeforeExecute?s:(this.option("onActionCreated")||m.noop)(this,s,e)||s},on:function(t,e){return this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this},hasActionSubscription:function(t){return!!this._options.silent(t)||this._eventsStrategy.hasEvent(_(t))},isOptionDeprecated:function(t){return this._options.isDeprecated(t)},_setOptionWithoutOptionChange:function(t,e){this._cancelOptionChange=t,this.option(t,e),this._cancelOptionChange=!1},_getOptionValue:function(t,e){var n=this.option(t);return(0,p.isFunction)(n)?n.bind(e)():n},option:function(){var t;return(t=this._options).option.apply(t,arguments)},resetOption:function(t){this.beginUpdate(),this._options.reset(t),this.endUpdate()}});t.exports=v},function(t,e,n){"use strict";var i=n(2),o=c(n(51)),r=c(n(45)),a=n(0),s=n(78),l=c(n(54)),u=n(60);function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e,n,i){return i?function t(e,n,i,o){var r;if(o){for(var a=0;a<n.length;a++)if(r=t(e,n[a].items||n[a].collapsedItems||[]||[],i,o-1))return r}else if(g(e,n,i)>=0)return n}(t,e,n,i)||[]:e}function f(t,e,n,i,r){var a,c=t.key();if(c){if(function(t,e){for(var n="string"===typeof e?e.split():e.slice();n.length;)if(n.shift()in t)return!0;return!1}(i,c)&&!(0,u.keysEqual)(c,n,t.keyOf(i)))return!r&&(0,u.rejectedPromise)(s.errors.Error("E4017"));if(!(a=function(t,e){if(t._dataByKeyMap)return t._dataByKeyMap[JSON.stringify(e)]}(e,n))){var d=g(t,e,n);if(d<0)return!r&&(0,u.rejectedPromise)(s.errors.Error("E4009"));a=e[d]}}else a=n;if(l.default.deepExtendArraySafe(a,i,!0),!r)return(0,o.default)().useLegacyStoreResult?(0,u.trivialPromise)(n,i):(0,u.trivialPromise)(a,n)}function p(t,e,n,l,c){var h,f=t.key(),p=(0,i.isPlainObject)(n)?(0,a.extend)({},n):n;if(f){if(void 0===(h=t.keyOf(p))||"object"===d(h)&&(0,i.isEmptyObject)(h)){if(Array.isArray(f))throw s.errors.Error("E4007");h=p[f]=String(new r.default)}else if(void 0!==e[g(t,e,h)])return!c&&(0,u.rejectedPromise)(s.errors.Error("E4008"))}else h=p;if(l>=0?e.splice(l,0,p):e.push(p),function(t,e,n){t._dataByKeyMap&&(t._dataByKeyMap[JSON.stringify(e)]=n)}(e,h,p),!c)return(0,u.trivialPromise)((0,o.default)().useLegacyStoreResult?n:p,h)}function m(t,e,n,i){var o=g(t,e,n);if(o>-1&&e.splice(o,1),!i)return(0,u.trivialPromise)(n)}function g(t,e,n){var i=t.key();if(!function(t,e){return!t._dataByKeyMap||t._dataByKeyMap[JSON.stringify(e)]}(e,n))return-1;for(var o=0,r=e.length;o<r;o++)if((0,u.keysEqual)(i,t.keyOf(e[o]),n))return o;return-1}t.exports.applyBatch=function(t,e,n,o,r){n.forEach((function(n){var a="insert"===n.type?e:h(t,e,n.key,o);switch(function(t,e){if(t.key()&&(!e._dataByKeyMap||e._dataByKeyMapLength!==e.length)){for(var n={},i=e.length,o=0;o<i;o++)n[JSON.stringify(t.keyOf(e[o]))]=e[o];e._dataByKeyMap=n,e._dataByKeyMapLength=i}}(t,a),n.type){case"update":f(t,a,n.key,n.data,!0);break;case"insert":p(t,a,n.data,r&&(0,i.isDefined)(n.index)?n.index:-1,!0);break;case"remove":m(t,a,n.key,!0)}}))},t.exports.update=f,t.exports.insert=p,t.exports.remove=m,t.exports.indexByKey=g},function(t,e,n){"use strict";var i=n(3),o=n(60),r=n(190),a=n(2).isFunction,s=n(51),l=n(78).errors,u=n(192),c=n(217),d=n(133).queryByOptions,h=n(7),f=h.Deferred,p=h.when,m=h.fromPromise;function g(t){return t&&a(t.then)}function _(t){return(new f).resolve(t).promise()}function v(t,e){if(!a(e))throw l.Error("E4011",t)}function y(t){throw l.Error("E4012",t)}function b(t){function e(t){var e=t[0],n=t[1];return e&&e.getResponseHeader?o.errorMessageFromXhr(e,n):null}return function(n){var i;(i=n instanceof Error?n:new Error(e(arguments)||n&&String(n)||"Unknown error")).message!==o.XHR_ERROR_UNLOAD&&t.reject(i)}}function w(t,e){var n,i=t._loadFunc;return v("load",i),n=i.apply(t,[e]),Array.isArray(n)?n=_(n):null===n||void 0===n?n=_([]):g(n)||y("load"),m(n)}function x(t,e,n,i){if(e.__rawData)i(e.__rawData);else{var o=e.__rawDataPromise||w(e,n);e._cacheRawData&&(e.__rawDataPromise=o),o.always((function(){delete e.__rawDataPromise})).done((function(t){e._cacheRawData&&(e.__rawData=t),i(t)})).fail(b(t))}}function C(t,e,n,o){var r={};"userData"in(n=n||{})&&(r.userData=n.userData),x(t,e,r,(function(r){var a,s,l,u,h=c(r,{errorHandler:e._errorHandler}),f=[];o||((a=d(h,n))===h?l=r.slice(0):f.push(a.enumerate().done((function(t){l=t})))),(n.requireTotalCount||o)&&((s=d(h,n,!0))===h?u=r.length:f.push(s.count().done((function(t){u=t})))),p.apply(i,f).done((function(){o?t.resolve(u):n.requireTotalCount?t.resolve(l,{totalCount:u}):t.resolve(l)})).fail((function(e){t.reject(e)}))}))}var S=u.inherit({ctor:function(t){t=t||{},this.callBase(t),this._useDefaultSearch=!!t.useDefaultSearch||"raw"===t.loadMode,this._loadMode=t.loadMode,this._cacheRawData=!1!==t.cacheRawData,this._loadFunc=t.load,this._totalCountFunc=t.totalCount,this._byKeyFunc=t.byKey,this._insertFunc=t.insert,this._updateFunc=t.update,this._removeFunc=t.remove},createQuery:function(){throw l.Error("E4010")},clearRawDataCache:function(){delete this.__rawData},_totalCountImpl:function(t){var e=new f;return"raw"!==this._loadMode||this._totalCountFunc?(function(t,e){var n,i=t._totalCountFunc;if(!a(i))throw l.Error("E4021");return g(n=i.apply(t,[e]))||(n=Number(n),isFinite(n)||y("totalCount"),n=_(n)),m(n)}(this,t).done((function(t){e.resolve(Number(t))})).fail(b(e)),e=this._addFailHandlers(e)):C(e,this,t,!0),e.promise()},_pushImpl:function(t){this.__rawData&&r.applyBatch(this,this.__rawData,t)},_loadImpl:function(t){var e=new f;return"raw"===this._loadMode?C(e,this,t,!1):(w(this,t).done((function(t,n){e.resolve(t,n)})).fail(b(e)),e=this._addFailHandlers(e)),e.promise()},_byKeyImpl:function(t,e){var n=new f;return this._byKeyViaLoad()?(this._requireKey(),function(t,e,n){x(t,e,{},(function(i){for(var r,a=e.key(),s=0,u=i.length;s<u;s++)if(r=i[s],o.keysEqual(a,e.keyOf(i[s]),n))return void t.resolve(r);t.reject(l.Error("E4009"))}))}(n,this,t)):function(t,e,n){var i,o=t._byKeyFunc;return v("byKey",o),g(i=o.apply(t,[e,n]))||(i=_(i)),m(i)}(this,t,e).done((function(t){n.resolve(t)})).fail(b(n)),n.promise()},_byKeyViaLoad:function(){return"raw"===this._loadMode&&!this._byKeyFunc},_insertImpl:function(t){var e,n=this,i=n._insertFunc,o=new f;return v("insert",i),g(e=i.apply(n,[t]))||(e=_(e)),m(e).done((function(e){s().useLegacyStoreResult?o.resolve(t,e):o.resolve(e||t,n.keyOf(e))})).fail(b(o)),o.promise()},_updateImpl:function(t,e){var n,i=this._updateFunc,o=new f;return v("update",i),g(n=i.apply(this,[t,e]))||(n=_(n)),m(n).done((function(n){s().useLegacyStoreResult?o.resolve(t,e):o.resolve(n||e,t)})).fail(b(o)),o.promise()},_removeImpl:function(t){var e,n=this._removeFunc,i=new f;return v("remove",n),g(e=n.apply(this,[t]))||(e=_()),m(e).done((function(){i.resolve(t)})).fail(b(i)),i.promise()}});t.exports=S,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(21),r=o.abstract,a=n(153).EventsStrategy,s=n(5).each,l=n(78),u=n(60),c=n(29).compileGetter,d=n(133).queryByOptions,h=n(7).Deferred,f=n(4).noop,p={},m=o.inherit({ctor:function(t){var e=this;t=t||{},this._eventsStrategy=new a(this),s(["onLoaded","onLoading","onInserted","onInserting","onUpdated","onUpdating","onPush","onRemoved","onRemoving","onModified","onModifying"],(function(n,i){i in t&&e.on(i.slice(2).toLowerCase(),t[i])})),this._key=t.key,this._errorHandler=t.errorHandler,this._useDefaultSearch=!0},_customLoadOptions:function(){return null},key:function(){return this._key},keyOf:function(t){return this._keyGetter||(this._keyGetter=c(this.key())),this._keyGetter(t)},_requireKey:function(){if(!this.key())throw l.errors.Error("E4005")},load:function(t){var e=this;return t=t||{},this._eventsStrategy.fireEvent("loading",[t]),this._withLock(this._loadImpl(t)).done((function(n){e._eventsStrategy.fireEvent("loaded",[n,t])}))},_loadImpl:function(t){return d(this.createQuery(t),t).enumerate()},_withLock:function(t){var e=new h;return t.done((function(){var t=this,n=arguments;u.processRequestResultLock.promise().done((function(){e.resolveWith(t,n)}))})).fail((function(){e.rejectWith(this,arguments)})),e},createQuery:r,totalCount:function(t){return this._totalCountImpl(t)},_totalCountImpl:function(t){return d(this.createQuery(t),t,!0).count()},byKey:function(t,e){return this._addFailHandlers(this._withLock(this._byKeyImpl(t,e)))},_byKeyImpl:r,insert:function(t){var e=this;return e._eventsStrategy.fireEvent("modifying"),e._eventsStrategy.fireEvent("inserting",[t]),e._addFailHandlers(e._insertImpl(t).done((function(t,n){e._eventsStrategy.fireEvent("inserted",[t,n]),e._eventsStrategy.fireEvent("modified")})))},_insertImpl:r,update:function(t,e){var n=this;return n._eventsStrategy.fireEvent("modifying"),n._eventsStrategy.fireEvent("updating",[t,e]),n._addFailHandlers(n._updateImpl(t,e).done((function(){n._eventsStrategy.fireEvent("updated",[t,e]),n._eventsStrategy.fireEvent("modified")})))},_updateImpl:r,push:function(t){this._pushImpl(t),this._eventsStrategy.fireEvent("push",[t])},_pushImpl:f,remove:function(t){var e=this;return e._eventsStrategy.fireEvent("modifying"),e._eventsStrategy.fireEvent("removing",[t]),e._addFailHandlers(e._removeImpl(t).done((function(t){e._eventsStrategy.fireEvent("removed",[t]),e._eventsStrategy.fireEvent("modified")})))},_removeImpl:r,_addFailHandlers:function(t){return t.fail(this._errorHandler).fail(l._errorHandler)},on:function(t,e){return this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this}});m.create=function(t,e){if(!(t in p))throw l.errors.Error("E4020",t);return new p[t](e)},m.registerClass=function(t,e){return e&&(p[e]=t),t},m.inherit=(i=m.inherit,function(t,e){var n=i.apply(this,[t]);return m.registerClass(n,e),n}),t.exports=m},function(t,e,n){"use strict";var i=a(n(89)),o=a(n(639)),r=a(n(640));function a(t){return t&&t.__esModule?t:{default:t}}t.exports=(0,i.default)({locale:function(){var t="en";return function(e){if(!e)return t;t=e}}(),getValueByClosestLocale:function(t){for(var e,n=this.locale(),i=t(n);!i&&!e;)(n=(0,r.default)(o.default,n))?i=t(n):e=!0;return void 0===i&&"en"!==n?t("en"):i}})},function(t,e,n){"use strict";var i=n(3),o=n(106);t.exports={getSwatchContainer:function(t){var e=i(t).closest('[class^="'.concat("dx-swatch-",'"], [class*=" ').concat("dx-swatch-",'"]')),n=o.value();if(!e.length)return n;var r=new RegExp("(\\s|^)(".concat("dx-swatch-",".*?)(\\s|$)")),a=e[0].className.match(r)[2],s=n.children("."+a);return s.length||(s=i("<div>").addClass(a).appendTo(n)),s}}},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(12),a=n(8),s=n(0).extend,l=n(81),u=n(80),c=n(7).Deferred,d=n(36),h=u.inherit({_supportedKeys:function(){return s(this.callBase(),{escape:o})},_getDefaultOptions:function(){return s(this.callBase(),{message:r.format("Loading"),width:222,height:90,animation:null,showIndicator:!0,indicatorSrc:"",showPane:!0,delay:0,templatesRenderAsynchronously:!1,hideTopOverlayHandler:null,resizeEnabled:!1,focusStateEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{shadingColor:"transparent"}},{device:function(){return d.isMaterial()},options:{message:"",width:60,height:60,maxHeight:60,maxWidth:60}}])},_init:function(){this.callBase.apply(this,arguments)},_render:function(){this.callBase(),this.$element().addClass("dx-loadpanel"),this._wrapper().addClass("dx-loadpanel-wrapper")},_renderContentImpl:function(){this.callBase(),this.$content().addClass("dx-loadpanel-content"),this._$contentWrapper=i("<div>").addClass("dx-loadpanel-content-wrapper"),this._$contentWrapper.appendTo(this._$content),this._togglePaneVisible(),this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage()},_show:function(){var t=this.option("delay");if(!t)return this.callBase();var e=new c,n=this.callBase.bind(this);return this._clearShowTimeout(),this._showTimeout=setTimeout((function(){n().done((function(){e.resolve()}))}),t),e.promise()},_hide:function(){return this._clearShowTimeout(),this.callBase()},_clearShowTimeout:function(){clearTimeout(this._showTimeout)},_renderMessage:function(){if(this._$contentWrapper){var t=this.option("message");if(t){var e=i("<div>").addClass("dx-loadpanel-message").text(t);this._$contentWrapper.append(e)}}},_renderLoadIndicator:function(){this._$contentWrapper&&this.option("showIndicator")&&(this._$indicator=i("<div>").addClass("dx-loadpanel-indicator").appendTo(this._$contentWrapper),this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")}))},_cleanPreviousContent:function(){this.$content().find(".dx-loadpanel-message").remove(),this.$content().find(".dx-loadpanel-indicator").remove()},_togglePaneVisible:function(){this.$content().toggleClass("dx-loadpanel-pane-hidden",!this.option("showPane"))},_optionChanged:function(t){switch(t.name){case"delay":break;case"message":case"showIndicator":this._cleanPreviousContent(),this._renderLoadIndicator(),this._renderMessage();break;case"showPane":this._togglePaneVisible();break;case"indicatorSrc":this._$indicator&&this._createComponent(this._$indicator,l,{indicatorSrc:this.option("indicatorSrc")});break;default:this.callBase(t)}},_dispose:function(){this._clearShowTimeout(),this.callBase()}});a("dxLoadPanel",h),t.exports=h,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(54),o=n(0).extend,r=n(124).chart,a=n(231),s=a.chart.line,l=a.polar.line,u=n(13).map,c=o,d=a.chart.spline._calculateBezierPoints;e.chart={},e.polar={};var h={_createBorderElement:s._createMainElement,_createLegendState:function(t,e){return{fill:t.color||e,opacity:t.opacity,hatching:t.hatching}},getValueRangeInitialValue:function(){return"logarithmic"!==this.valueAxisType&&"datetime"!==this.valueType&&!1!==this.showZero?0:r.getValueRangeInitialValue.call(this)},_getDefaultSegment:function(t){var e=s._getDefaultSegment(t);return e.area=e.line.concat(e.line.slice().reverse()),e},_updateElement:function(t,e,n,i){var o={points:e.line},r={points:e.area},a=t.line;n?(a&&a.animate(o),t.area.animate(r,{},i)):(a&&a.attr(o),t.area.attr(r))},_removeElement:function(t){t.line&&t.line.remove(),t.area.remove()},_drawElement:function(t){return{line:this._bordersGroup&&this._createBorderElement(t.line,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),area:this._createMainElement(t.area).append(this._elementsGroup)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.smartAttr(t.elements),this._bordersGroup&&this._bordersGroup.attr(t.border),(this._graphics||[]).forEach((function(e){e.line&&e.line.attr({"stroke-width":t.border["stroke-width"]}).sharp()}))},_parseStyle:function(t,e,n){var i=t.border||{},o=s._parseLineOptions(i,n);return o.stroke=i.visible&&o["stroke-width"]?o.stroke:"none",o["stroke-width"]=o["stroke-width"]||1,{border:o,elements:{stroke:"none",fill:t.color||e,hatching:t.hatching,opacity:t.opacity}}},_areBordersVisible:function(){var t=this._options;return t.border.visible||t.hoverStyle.border.visible||t.selectionStyle.border.visible},_createMainElement:function(t,e){return this._renderer.path(t,"area").attr(e)},_getTrackerSettings:function(t){return{"stroke-width":t.singlePointSegment?this._defaultTrackerWidth:0}},_getMainPointsFromSegment:function(t){return t.area}};var f=e.chart.area=c({},s,h,{_prepareSegment:function(t,e){var n=this._processSinglePointsAreaSegment(t,e),i=function(t){return u(t,(function(t){return t.getCoords()})).concat(u(t.slice().reverse(),(function(t){return t.getCoords(!0)})))}(n),o=this.getArgumentAxis();if(o.getAxisPosition){var r=o.getAxisPosition(),a=o.getOptions(),s=(e?1:-1)*Math.round(a.width/2);a.visible&&i.forEach((function(n,a){if(n){var l=1===t.length?0:a<t.length?a:i.length-1-a;e&&n.x===t[l].defaultX&&n.x===r-o.getAxisShift()&&(n.x+=s),!e&&n.y===t[l].defaultY&&n.y===r-o.getAxisShift()&&(n.y+=s)}}))}return{line:n,area:i,singlePointSegment:n!==t}},_processSinglePointsAreaSegment:function(t,e){if(t&&1===t.length){var n=t[0],o=i.clone(n);return o[e?"y":"x"]+=1,o.argument=null,[n,o]}return t}});e.polar.area=c({},l,h,{_prepareSegment:function(t,e,n){return n&&l._closeSegment.call(this,t),f._prepareSegment.call(this,t)},_processSinglePointsAreaSegment:function(t){return a.polar.line._prepareSegment.call(this,t).line}}),e.chart.steparea=c({},f,{_prepareSegment:function(t,e){var n=a.chart.stepline;return t=f._processSinglePointsAreaSegment(t,e),f._prepareSegment.call(this,n._calculateStepLinePoints.call(this,t),e)},getSeriesPairCoord:a.chart.stepline.getSeriesPairCoord}),e.chart.splinearea=c({},f,{_areaPointsToSplineAreaPoints:function(t){var e=t[t.length/2-1],n=t[t.length/2];t.splice(t.length/2,0,{x:e.x,y:e.y},{x:n.x,y:n.y})},_prepareSegment:function(t,e){var n=f._processSinglePointsAreaSegment(t,e),i=f._prepareSegment.call(this,d(n,e));return this._areaPointsToSplineAreaPoints(i.area),i.singlePointSegment=n!==t,i},_getDefaultSegment:function(t){var e=f._getDefaultSegment(t);return this._areaPointsToSplineAreaPoints(e.area),e},_createMainElement:function(t,e){return this._renderer.path(t,"bezierarea").attr(e)},_createBorderElement:a.chart.spline._createMainElement,getSeriesPairCoord:a.chart.spline.getSeriesPairCoord,_getNearestPoints:a.chart.spline._getNearestPoints,_getBezierPoints:a.chart.spline._getBezierPoints,obtainCubicBezierTCoef:a.chart.spline.obtainCubicBezierTCoef})},function(t,e,n){"use strict";var i=n(2),o=n(16).inArray,r=n(5),a=["year","month","day"],s=["year","month","day","hour","minute"];t.exports=function(){var e=function(t,e){var n=t.dataField||t.selector;return"search"===e&&(n=t.displayField||t.calculateDisplayValue||n),n},n=function(t){return"date"===t||"datetime"===t},l=function(t,o){var r,a,s,l,u=e(this,o);if(Array.isArray(t)&&i.isDefined(t[0])&&i.isDefined(t[1]))return a=[u,">=",t[0]],s=[u,"<=",t[1]],n(this.dataType)&&(l=t[1]).getHours()+l.getMinutes()+l.getSeconds()+l.getMilliseconds()<1&&(r=new Date(t[1].getTime()),"date"===this.dataType&&r.setDate(t[1].getDate()+1),s=[u,"<",r]),[a,"and",s]},u=function(n,o,a){var s,l,u,c,d=(c=n,i.isDate(c)?[c.getFullYear(),c.getMonth(),c.getDate(),c.getHours(),c.getMinutes(),c.getSeconds()]:r.map((""+c).split("/"),(function(t,e){return 1===e?Number(t)-1:Number(t)}))),h=e(this,a);switch("headerFilter"===a?u=t.exports.getGroupInterval(this)[d.length-1]:"datetime"===this.dataType&&(u="minute"),u){case"year":s=new Date(d[0],0,1),l=new Date(d[0]+1,0,1);break;case"month":s=new Date(d[0],d[1],1),l=new Date(d[0],d[1]+1,1);break;case"quarter":s=new Date(d[0],3*d[1],1),l=new Date(d[0],3*d[1]+3,1);break;case"hour":s=new Date(d[0],d[1],d[2],d[3]),l=new Date(d[0],d[1],d[2],d[3]+1);break;case"minute":s=new Date(d[0],d[1],d[2],d[3],d[4]),l=new Date(d[0],d[1],d[2],d[3],d[4]+1);break;case"second":s=new Date(d[0],d[1],d[2],d[3],d[4],d[5]),l=new Date(d[0],d[1],d[2],d[3],d[4],d[5]+1);break;default:s=new Date(d[0],d[1],d[2]),l=new Date(d[0],d[1],d[2]+1)}switch(o){case"<":return[h,"<",s];case"<=":return[h,"<",l];case">":return[h,">=",l];case">=":return[h,">=",s];case"<>":return[[h,"<",s],"or",[h,">=",l]];default:return[[h,">=",s],"and",[h,"<",l]]}},c=function(n,o,r){var a=e(this,r),s=t.exports.getGroupInterval(this);if("headerFilter"===r&&s&&i.isDefined(n)){var l=(""+n).split("/"),u=Number(l[l.length-1]);return[[a,">=",u],"and",[a,"<",u+s[l.length-1]]]}return[a,o||"=",n]};return{defaultCalculateFilterExpression:function(t,o,r){var a=this,s=e(a,r),d=a.calculateDisplayValue&&"search"===r,h=d&&a.lookup&&a.lookup.dataType||a.dataType,f=null;if("headerFilter"!==r&&"filterBuilder"!==r||null!==t)if("string"!==h||a.lookup&&!d){if("between"===o)return l.apply(a,[t,r]);if(n(h)&&i.isDefined(t))return u.apply(a,arguments);if("number"===h)return c.apply(a,arguments);"object"!==h&&(f=[s,o||"=",t])}else f=[s,o||"contains",t];else f=[s,o||"=",null],"string"===h&&(f=[f,"="===o?"or":"and",[s,o||"=",""]]);return f},getGroupInterval:function(t){var e,r=[],l=["year","month","day","hour","minute","second"],u=t.headerFilter&&t.headerFilter.groupInterval,c="quarter"===u?"month":u;return n(t.dataType)&&null!==u?(r="datetime"===t.dataType?s:a,(e=o(c,l))>=0?((r=l.slice(0,e)).push(u),r):r):i.isDefined(u)?Array.isArray(u)?u:[u]:void 0}}}()},function(t,e,n){"use strict";var i=C(n(3)),o=C(n(15)),r=n(10),a=C(n(6)),s=C(n(57)),l=C(n(28)),u=C(n(25)),c=C(n(199)),d=C(n(31)),h=n(4),f=C(n(130)),p=n(17),m=C(n(2)),g=n(24),_=C(n(5)),v=n(0),y=C(n(44)),b=n(40),w=C(n(419)),x=n(7);function C(t){return t&&t.__esModule?t:{default:t}}var S={render:function(t){t.container.append(t.content)}},k=function(t){return"auto"===t?"":m.default.isNumeric(t)?t+"px":t},I=function(t,e,n){t.style.width=t.style.maxWidth="auto"===e.width?"":n};e.ColumnsView=y.default.View.inherit(w.default).inherit({_createScrollableOptions:function(){var t=this.option("scrolling"),e=this.option("scrolling.useNative"),n=(0,v.extend)({pushBackValue:0},t,{direction:"both",bounceEnabled:!1,useKeyboard:!1});return void 0===e&&(e=!0),"auto"===e?(delete n.useNative,delete n.useSimulatedScrollbar):(n.useNative=!!e,n.useSimulatedScrollbar=!e),n},_updateCell:function(t,e){e.rowType&&this._cellPrepared(t,e)},_createCell:function(t){var e=t.column,n=e.alignment||(0,g.getDefaultAlignment)(this.option("rtlEnabled")),r=o.default.createElement("td");r.style.textAlign=n;var a=(0,i.default)(r);return"data"===t.rowType&&e.headerId&&!e.type&&this.component.option("showColumnHeaders")&&this.setAria("describedby",e.headerId,a),e.cssClass&&a.addClass(e.cssClass),"expand"===e.command&&(a.addClass(e.cssClass),a.addClass(this.addWidgetPrefix("group-space"))),e.colspan>1?a.attr("colSpan",e.colspan):e.isBand||"auto"===e.visibleWidth||this.option("legacyRendering")||!this.option("columnAutoWidth")||((e.width||e.minWidth)&&(r.style.minWidth=k(e.minWidth||e.width)),e.width&&I(r,e,k(e.width))),a},_createRow:function(t){var e=(0,i.default)("<tr>").addClass("dx-row");return this.setAria("role","row",e),e},_isAltRow:function(t){return t&&t.dataIndex%2===1},_createTable:function(t,e){var n=this,o=(0,i.default)("<table>").addClass(n.addWidgetPrefix("table")).addClass(n.addWidgetPrefix("table-fixed"));if(t&&!e?(o.append(n._createColGroup(t)),d.default.safari&&o.append((0,i.default)("<thead>").append("<tr>")),n.setAria("role","presentation",o)):n.setAria("hidden",!0,o),this.setAria("role","presentation",(0,i.default)("<tbody>").appendTo(o)),e)return o;d.default.mozilla&&a.default.on(o,"mousedown","td",(function(t){t.ctrlKey&&t.preventDefault()})),n.option("cellHintEnabled")&&a.default.on(o,"mousemove",".dx-row > td",this.createAction((function(t){var e=t.event,o=(0,i.default)(e.target),r=(0,i.default)(e.currentTarget),a=r.parent(),s=a.hasClass("dx-data-row"),l=a.hasClass("dx-header-row"),u=a.hasClass("dx-group-row"),c=a.hasClass("dx-master-detail-row"),h=a.hasClass(n.addWidgetPrefix("filter-row")),f=n._columnsController.getVisibleColumns(),p=a.data("options"),g=r.index(),_=p&&p.cells&&p.cells[g],v=_?_.column:f[g],y=d.default.msie?1:0;c||h||s&&(!s||!v||v.cellTemplate)||l&&(!l||!v||v.headerCellTemplate)||u&&(!u||!v||void 0!==v.groupIndex&&v.groupCellTemplate)||(o.data("dxCellHintVisible")&&(o.removeAttr("title"),o.data("dxCellHintVisible",!1)),o[0].scrollWidth-o[0].clientWidth-y>0&&!m.default.isDefined(o.attr("title"))&&(o.attr("title",o.text()),o.data("dxCellHintVisible",!0)))})));var r=function(t){var e=(0,i.default)(t.currentTarget),o=(0,i.default)(t.target).closest(".dx-field-item-content"),r=e.parent().data("options"),a=r&&r.cells&&r.cells[e.index()];if(e.closest("table").is(t.delegateTarget)){var s=(0,v.extend)({},a,{cellElement:(0,p.getPublicElement)(e),event:t,eventType:t.type});if(o.length){var l=o.data("dx-form-item");l.column&&(s.column=l.column,s.columnIndex=n._columnsController.getVisibleIndex(s.column.index))}return s}};return a.default.on(o,"mouseover",".dx-row > td",(function(t){var e=r(t);e&&n.executeAction("onCellHoverChanged",e)})),a.default.on(o,"mouseout",".dx-row > td",(function(t){var e=r(t);e&&n.executeAction("onCellHoverChanged",e)})),a.default.on(o,u.default.name,".dx-row > td",(function(t){var e=r(t);e&&n.executeAction("onCellClick",e)})),a.default.on(o,c.default.name,".dx-row > td",(function(t){var e=r(t);e&&n.executeAction("onCellDblClick",e)})),function(t,e){var n,o,r;function s(t){return setTimeout((function(){n=o=null}),t)}a.default.on(e,"touchstart touchend",".dx-row",(function(t){clearTimeout(r),"touchstart"===t.type?(n=t.target,o=t.currentTarget,r=s(1e3)):r=s()})),a.default.on(e,[u.default.name,c.default.name,l.default.down].join(" "),".dx-row",{useNative:t._isNativeClick()},t.createAction((function(e){var r=e.event;n&&(r.target=n,r.currentTarget=o),(0,i.default)(r.target).closest("a").length||(e.rowIndex=t.getRowIndex(r.currentTarget),e.rowIndex>=0&&(e.rowElement=(0,p.getPublicElement)((0,i.default)(r.currentTarget)),e.columns=t.getColumns(),r.type===l.default.down?t._rowPointerDown(e):r.type===u.default.name?t._rowClick(e):t._rowDblClick(e)))})))}(n,o),o},_isNativeClick:h.noop,_rowPointerDown:h.noop,_rowClick:h.noop,_rowDblClick:h.noop,_createColGroup:function(t){for(var e=(0,i.default)("<colgroup>"),n=0;n<t.length;n++)for(var o=t[n].colspan||1,r=0;r<o;r++)e.append(this._createCol(t[n]));return e},_createCol:function(t){var e=t.visibleWidth||t.width;"adaptiveHidden"===e&&(e="0.0001px");var n=(0,i.default)("<col>");return f.default.setWidth(n,e),n},renderDelayedTemplates:function(){var t=this._delayedTemplates,e=t.filter((function(t){return!t.async})),n=t.filter((function(t){return t.async}));this._delayedTemplates=[],this._renderDelayedTemplatesCore(e),this._renderDelayedTemplatesCoreAsync(n)},_renderDelayedTemplatesCoreAsync:function(t){var e=this;t.length&&(0,r.getWindow)().setTimeout((function(){e._renderDelayedTemplatesCore(t,!0)}))},_renderDelayedTemplatesCore:function(t,e){for(var n=new Date;t.length;){var r=t.shift(),a=r.options,s=o.default.getDocument();if(e&&!(0,i.default)(a.container).closest(s).length||r.template.render(a),e&&new Date-n>30){this._renderDelayedTemplatesCoreAsync(t);break}}!t.length&&this._delayedTemplates.length&&this.renderDelayedTemplates()},_processTemplate:function(t){var e;if(t&&t.render&&!m.default.isRenderer(t))e={allowRenderToDetachedContainer:t.allowRenderToDetachedContainer,render:function(e){t.render(e.container,e.model),e.deferred&&e.deferred.resolve()}};else if(m.default.isFunction(t))e={render:function(e){var n=t((0,p.getPublicElement)(e.container),e.model);n&&(n.nodeType||m.default.isRenderer(n))&&e.container.append(n),e.deferred&&e.deferred.resolve()}};else{var n=m.default.isString(t)?t:(0,i.default)(t).attr("id");n?(this._templatesCache[n]||(this._templatesCache[n]=this.getTemplate(t)),e=this._templatesCache[n]):e=this.getTemplate(t)}return e},renderTemplate:function(t,e,n,i){var o=this._processTemplate(e,n),r=n.column,a="data"===n.rowType,s=new x.Deferred,l={container:t,model:n,deferred:s,onRendered:function(){s.resolve()}};if(o){n.component=this.component;var u=r&&(r.renderAsync&&a||this.option("renderAsync")&&(!1!==r.renderAsync&&(r.command||r.showEditorAlways)&&a||"filter"===n.rowType));!o.allowRenderToDetachedContainer&&!i||u?this._delayedTemplates.push({template:o,options:l,async:u}):o.render(l)}else s.reject();return s.promise()},_getBodies:function(t){return(0,i.default)(t).children("tbody").not(".dx-header").not(".dx-footer")},_wrapRowIfNeed:function(t,e){var n=this.option("rowTemplate")&&this._getBodies(this._tableElement||t);if(n&&n.filter(".dx-row").length){var o=(0,i.default)("<tbody>").addClass(e.attr("class"));return this.setAria("role","presentation",o),o.append(e)}return e},_appendRow:function(t,e,n){(n=n||S).render({content:e,container:t})},_resizeCore:function(){var t=this._scrollLeft;t>=0&&(this._scrollLeft=0,this.scrollTo({left:t}))},_renderCore:function(t){var e=this.element().parent();e&&!e.parent().length||this.renderDelayedTemplates(t)},_renderTable:function(t){(t=t||{}).columns=this._columnsController.getVisibleColumns();var e=t.change&&t.change.changeType,n=this._createTable(t.columns,"append"===e||"prepend"===e||"update"===e);return this._renderRows(n,t),n},_renderRows:function(t,e){for(var n=this._getRows(e.change),i=e.change&&e.change.columnIndices||[],o=e.change&&e.change.changeTypes||[],r=0;r<n.length;r++)this._renderRow(t,(0,v.extend)({row:n[r],columnIndices:i[r],changeType:o[r]},e))},_renderRow:function(t,e){e.columnIndices||(e.row.cells=[]);var n=this._createRow(e.row),i=this._wrapRowIfNeed(t,n);"remove"!==e.changeType&&this._renderCells(n,e),this._appendRow(t,i);var o=(0,v.extend)({columns:e.columns},e.row);this._addWatchMethod(o,e.row),this._rowPrepared(i,o,e.row)},_needRenderCell:function(t,e){return!e||e.indexOf(t)>=0},_renderCells:function(t,e){for(var n=0,i=e.row,o=e.columns,r=0;r<o.length;r++)this._needRenderCell(r,e.columnIndices)&&this._renderCell(t,(0,v.extend)({column:o[r],columnIndex:n,value:i.values&&i.values[n],oldValue:i.oldValues&&i.oldValues[n]},e)),o[r].colspan>1?n+=o[r].colspan:n++},_updateCells:function(t,e,n){var i=t.children(),o=e.children(),r=this.option("highlightChanges"),a=this.addWidgetPrefix("cell-updated-animation");n.forEach((function(t,e){var n=i.eq(t),s=o.eq(e);n.replaceWith(s),r&&!s.hasClass("dx-command-expand")&&s.addClass(a)})),function(t,e){if(t&&e){var n,i=t.attributes,o=e.attributes;for(n=0;n<i.length;n++){var r=i[n].nodeName;e.hasAttribute(r)||t.removeAttribute(r)}for(n=0;n<o.length;n++)t.setAttribute(o[n].nodeName,o[n].nodeValue)}}(t.get(0),e.get(0))},_setCellAriaAttributes:function(t,e){"freeSpace"!==e.rowType&&(this.setAria("selected",!1,t),this.setAria("role","gridcell",t),this.setAria("colindex",e.columnIndex+1,t))},_renderCell:function(t,e){var n=this._getCellOptions(e);e.columnIndices?e.row.cells&&(e.row.cells[n.columnIndex]=n):e.row.cells.push(n);var i=this._createCell(n);return this._setCellAriaAttributes(i,n),this._renderCellContent(i,n),t.get(0).appendChild(i.get(0)),i},_renderCellContent:function(t,e){var n=this,i=this._getCellTemplate(e);(0,x.when)(!i||this.renderTemplate(t,i,e)).done((function(){n._updateCell(t,e)}))},_getCellTemplate:function(){},_getRows:function(){return[]},_getCellOptions:function(t){var e={column:t.column,columnIndex:t.columnIndex,rowType:t.row.rowType,isAltRow:this._isAltRow(t.row)};return this._addWatchMethod(e),e},_addWatchMethod:function(t,e){if(this.option("repaintChangesOnly")){var n=[];return(e=e||t).watch=e.watch||function(t,i){var o=t(e.data),r=function(n){var r=t(e.data);JSON.stringify(o)!==JSON.stringify(r)&&(n&&i(r,o),o=r)};n.push(r);return function(){var t=n.indexOf(r);t>=0&&n.splice(t,1)}},e.update=e.update||function(e){e&&(this.data=t.data=e.data,this.rowIndex=t.rowIndex=e.rowIndex,this.dataIndex=t.dataIndex=e.dataIndex,this.isExpanded=t.isExpanded=e.isExpanded,t.row&&(t.row=e)),n.forEach((function(t){t(e)}))},e!==t&&(t.watch=e.watch.bind(e)),t}},_cellPrepared:function(t,e){e.cellElement=(0,p.getPublicElement)((0,i.default)(t)),this.executeAction("onCellPrepared",e)},_rowPrepared:function(t,e){s.default.data(t.get(0),"options",e),e.rowElement=(0,p.getPublicElement)(t),this.executeAction("onRowPrepared",e)},_columnOptionChanged:function(t){var e=t.optionNames;if((0,b.checkChanges)(e,["width","visibleWidth"])){var n=this._columnsController.getVisibleColumns(),i=_.default.map(n,(function(t){var e=t.visibleWidth||t.width;return m.default.isDefined(e)?e:"auto"}));this.setColumnWidths({widths:i,optionNames:e})}else this._requireReady||this.render()},getCellIndex:function(t){return t.length?t[0].cellIndex:-1},getTableElements:function(){return this._tableElement||(0,i.default)()},_getTableElement:function(){return this._tableElement},_setTableElement:function(t){this._tableElement=t},optionChanged:function(t){switch(this.callBase(t),t.name){case"cellHintEnabled":case"onCellPrepared":case"onRowPrepared":case"onCellHoverChanged":this._invalidate(!0,!0),t.handled=!0}},init:function(){var t=this;t._scrollLeft=-1,t._columnsController=t.getController("columns"),t._dataController=t.getController("data"),t._delayedTemplates=[],t._templatesCache={},t.createAction("onCellClick"),t.createAction("onRowClick"),t.createAction("onCellDblClick"),t.createAction("onRowDblClick"),t.createAction("onCellHoverChanged",{excludeValidators:["disabled","readOnly"]}),t.createAction("onCellPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),t.createAction("onRowPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering",afterExecute:function(e){t._afterRowPrepared(e)}}),t._columnsController.columnsChanged.add(t._columnOptionChanged.bind(t)),t._dataController&&t._dataController.changed.add(t._handleDataChanged.bind(t))},_afterRowPrepared:h.noop,_handleDataChanged:function(){},callbackNames:function(){return["scrollChanged"]},scrollTo:function(t){var e=this.element(),n=e&&e.children("."+this.addWidgetPrefix("scroll-container")).not("."+this.addWidgetPrefix("content-fixed"));m.default.isDefined(t)&&m.default.isDefined(t.left)&&this._scrollLeft!==t.left&&(this._scrollLeft=t.left,n&&n.scrollLeft(t.left))},_wrapTableInScrollContainer:function(t){var e=this,n=(0,i.default)("<div>");return a.default.on(n,"scroll",(function(){var t=n.scrollLeft();t!==e._scrollLeft&&e.scrollChanged.fire({left:t},e.name)})),n.addClass(this.addWidgetPrefix("content")).addClass(this.addWidgetPrefix("scroll-container")).append(t).appendTo(this.element()),this.setAria("role","presentation",n),n},_updateContent:function(t){this._setTableElement(t),this._wrapTableInScrollContainer(t)},_findContentElement:h.noop,_getWidths:function(t){var e,n=[],i=this.option("legacyRendering");return t&&_.default.each(t,(function(t,o){if(e=o.offsetWidth,o.getBoundingClientRect){var r=(0,g.getBoundingRect)(o);r.width>e-1&&(e=i?Math.ceil(r.width):r.width)}n.push(e)})),n},getColumnWidths:function(t){var e,n,i=[];if((this.option("forceApplyBindings")||h.noop)(),t=t||this._getTableElement()){e=t.children("tbody").children();for(var o=0;o<e.length;o++){var r=e.eq(o),a="none"!==r.get(0).style.display&&!r.hasClass("dx-state-invisible");if(!r.is(".dx-group-row")&&!r.is(".dx-master-detail-row")&&a){n=r.children("td");break}}i=this._getWidths(n)}return i},getVisibleColumnIndex:function(t,e){return t},setColumnWidths:function(t){var e,n,i,o,r=t.widths,a=t.$tableElement,s=t.columns,l=t.fixed,u=this.option("columnAutoWidth"),c=this.option("legacyRendering");if((a=a||this._getTableElement())&&a.length&&r){o=0,e=a.children("colgroup").children("col"),f.default.setWidth(e,"auto"),s=s||this.getColumns(null,a);for(var d=0;d<s.length;d++){if(!c&&u&&!l&&(n=s[d].width)&&!s[d].command){n=s[d].visibleWidth||n,n=k(n),i=k(s[d].minWidth||n);for(var h=h||a.children().children(".dx-row").not(".dx-group-row").not(".dx-master-detail-row"),p=0;p<h.length;p++){var g=this.getVisibleColumnIndex(d,p),_=h[p].cells[g];_&&(I(_,s[d],n),_.style.minWidth=i)}}s[d].colspan?o+=s[d].colspan:("adaptiveHidden"===(n=r[o])&&(n="0.0001px"),"number"===typeof n&&(n=n.toFixed(3)+"px"),f.default.setWidth(e.eq(o),m.default.isDefined(n)?n:"auto"),o++)}}},getCellElements:function(t){return this._getCellElementsCore(t)},_getCellElementsCore:function(t){return this._getRowElements().eq(t).children()},_getCellElement:function(t,e){var n,i=this.getCellElements(t),o=this._getVisibleColumnIndex(i,t,e);if(i.length&&o>=0&&(n=i.eq(o)),n&&n.length)return n},_getRowElement:function(t){var e=this,n=(0,i.default)(),o=e.getTableElements();if(_.default.each(o,(function(o,r){n=n.add(e._getRowElements((0,i.default)(r)).eq(t))})),n.length)return n},getCellElement:function(t,e){return(0,p.getPublicElement)(this._getCellElement(t,e))},getRowElement:function(t){var e=this._getRowElement(t),n=[];if(e&&!(0,p.getPublicElement)(e).get)for(var i=0;i<e.length;i++)n.push(e[i]);else n=e;return n},_getVisibleColumnIndex:function(t,e,n){if(m.default.isString(n)){var i=this._columnsController.columnOption(n,"index");return this._columnsController.getVisibleIndex(i)}return n},getColumnElements:function(){},getColumns:function(t){return this._columnsController.getVisibleColumns(t)},getCell:function(t,e){var n,i=e||this._getRowElements();if(i.length>0&&t.rowIndex>=0&&("virtual"!==this.option("scrolling.mode")&&(t.rowIndex=t.rowIndex<i.length?t.rowIndex:i.length-1),(n=this.getCellElements(t.rowIndex))&&n.length>0))return n.eq(n.length>t.columnIndex?t.columnIndex:n.length-1)},getRowsCount:function(){var t=this._getTableElement();return t&&1===t.length?t[0].rows.length:0},_getRowElementsCore:function(t){if(t=t||this._getTableElement()){var e=this.option("rowTemplate")&&t.find("> tbody.dx-row");return e&&e.length?e:t.find("> tbody > .dx-row, > .dx-row")}return(0,i.default)()},_getRowElements:function(t){return this._getRowElementsCore(t)},getRowIndex:function(t){return this._getRowElements().index(t)},getBoundingRect:function(){},getName:function(){},setScrollerSpacing:function(t){var e=this.element(),n=this.option("rtlEnabled");e&&e.css({paddingLeft:n?t:"",paddingRight:n?"":t})},isScrollbarVisible:function(t){var e=this.element(),n=this._tableElement;return!(!e||!n)&&(t?n.outerWidth()-e.width()>0:n.outerHeight()-e.height()>0)}})},function(t,e,n){"use strict";var i=n(6),o=n(17),r=n(15),a=n(21),s=n(114),l=n(25),u=n(11),c=u.addNamespace(l.name,"dxDblClick");s("dxdblclick",new(a.inherit({ctor:function(){this._handlerCount=0,this._forgetLastClick()},_forgetLastClick:function(){this._firstClickTarget=null,this._lastClickTimeStamp=-300},add:function(){this._handlerCount<=0&&i.on(r.getDocument(),c,this._clickHandler.bind(this)),this._handlerCount++},_clickHandler:function(t){var e=t.timeStamp||Date.now();e-this._lastClickTimeStamp<300?(u.fireEvent({type:"dxdblclick",target:o.closestCommonParent(this._firstClickTarget,t.target),originalEvent:t}),this._forgetLastClick()):(this._firstClickTarget=t.target,this._lastClickTimeStamp=e)},remove:function(){this._handlerCount--,this._handlerCount<=0&&(this._forgetLastClick(),i.off(r.getDocument(),c))}}))),e.name="dxdblclick"},function(t,e,n){"use strict";t.exports=n(450),t.exports.show=n(295).show,t.exports.hide=n(295).hide,t.exports.default=t.exports},function(t,e,n){"use strict";var i=h(n(3)),o=h(n(167)),r=h(n(109)),a=h(n(297)),s=n(0),l=n(10),u=h(n(474)),c=h(n(475)),d=n(104);function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),t}function _(t,e,n){return(_="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function v(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(110),n(412),n(138);var C=function(t){v(n,t);var e=b(n);function n(){return p(this,n),e.apply(this,arguments)}return g(n,[{key:"_init",value:function(){this._commands=[],this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[],this._valueConverters={},this.bar=new S(this),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnSubMenuVisibilityChangingAction(),_(x(n.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){_(x(n.prototype),"_initMarkup",this).call(this);var t=!(0,l.hasWindow)();this.option("skipAdjustSize")||t||this.$element().width(""),this._commands=this._getCommands(),this._itemHelpers={},this._commandContextMenus={},this._contextMenuList=[];var e=this._createMainElement();if(this._renderToolbar(e),!this.option("skipAdjustSize")&&!t){var i=this.$element().find(".dx-toolbar-before");this.$element().width(i.width())}}},{key:"_createMainElement",value:function(){return(0,i.default)("<div>").addClass("dx-diagram-toolbar").appendTo(this._$element)}},{key:"_getCommands",value:function(){return this.option("commands")||[]}},{key:"_renderToolbar",value:function(t){var e=this._commands.filter((function(t){return-1===["after","center"].indexOf(t.position)})),n=this._commands.filter((function(t){return"center"===t.position})),i=this._commands.filter((function(t){return"after"===t.position})),r=[].concat(this._prepareToolbarItems(e,"before",this._executeCommand)).concat(this._prepareToolbarItems(n,"center",this._executeCommand)).concat(this._prepareToolbarItems(i,"after",this._executeCommand));this._toolbarInstance=this._createComponent(t,o.default,{dataSource:r})}},{key:"_prepareToolbarItems",value:function(t,e,n){var i=this;return t.map((function(t){return(0,s.extend)(!0,{location:e,locateInMenu:i.option("locateInMenu")},i._createItem(t,e,n),i._createItemOptions(t),i._createItemActionOptions(t,n))}))}},{key:"_createItem",value:function(t,e,n){var o=this;return(t.getCommandValue||t.getEditorValue||t.getEditorDisplayValue)&&(this._valueConverters[t.command]={getCommandValue:t.getCommandValue,getEditorValue:t.getEditorValue,getEditorDisplayValue:t.getEditorDisplayValue}),"separator"===t.widget?{template:function(t,e,n){(0,i.default)(n).addClass("dx-diagram-toolbar-separator")},menuItemTemplate:function(t,e,n){(0,i.default)(n).addClass("dx-diagram-toolbar-menu-separator")}}:{widget:t.widget||"dxButton",cssClass:t.cssClass,options:{stylingMode:this.option("buttonStylingMode"),type:this.option("buttonType"),text:t.text,hint:t.hint,icon:t.icon||t.iconUnchecked||t.iconChecked,iconChecked:t.iconChecked,iconUnchecked:t.iconUnchecked,onInitialized:function(e){return o._onItemInitialized(e.component,t)},onContentReady:function(e){return o._onItemContentReady(e.component,t,n)}}}}},{key:"_createItemOptions",value:function(t){var e=t.widget,n=t.command,i=t.items,o=t.valueExpr,r=t.displayExpr,a=t.showText,s=t.hint,l=t.icon;return"dxSelectBox"===e?this._createSelectBoxItemOptions(n,s,i,o,r):"dxTextBox"===e?this._createTextBoxItemOptions(n,s):"dxColorBox"===e?this._createColorBoxItemOptions(n,s,l):e&&"dxButton"!==e?void 0:{showText:a||"inMenu"}}},{key:"_createSelectBoxItemOptions",value:function(t,e,n,o,r){var a=this._createTextEditorItemOptions(e);return a=(0,s.extend)(!0,a,{options:{dataSource:n,displayExpr:r||"text",valueExpr:o||"value"}}),n&&n.every((function(t){return void 0!==t.icon}))&&(a=(0,s.extend)(!0,a,{options:{fieldTemplate:function(t,e){(0,i.default)("<i>").addClass(t&&t.icon).appendTo(e),(0,i.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(e)},itemTemplate:function(t,e,n){return(0,i.default)(n).attr("title",t.hint),'<i class="'.concat(t.icon,'"></i>')}}})),a}},{key:"_createTextBoxItemOptions",value:function(t,e){var n=this,i=this._createTextEditorItemOptions(e);return i=(0,s.extend)(!0,i,{options:{readOnly:!0,focusStateEnabled:!1,hoverStateEnabled:!1,buttons:[{name:"dropDown",location:"after",options:{icon:"spindown",disabled:!1,stylingMode:"text",onClick:function(e){var i=n._commandContextMenus[t];i&&n._toggleContextMenu(i)}}}]}})}},{key:"_createColorBoxItemOptions",value:function(t,e,n){var o=this,r=this._createTextEditorItemOptions(e);return n&&(r=(0,s.extend)(!0,r,{options:{openOnFieldClick:!0,fieldTemplate:function(t,e){(0,i.default)("<i>").addClass(n).css("borderBottomColor",t).appendTo(e),(0,i.default)("<div>").dxTextBox({readOnly:!0,stylingMode:"outlined"}).appendTo(e)}}})),r=(0,s.extend)(!0,r,{options:{onOpened:function(){o.option("isMobileView")&&(0,i.default)("body").addClass("dx-diagram-mobile-toolbar-color-box-opened")},onClosed:function(){(0,i.default)("body").removeClass("dx-diagram-mobile-toolbar-color-box-opened")}}})}},{key:"_createTextEditorItemOptions",value:function(t){return{options:{stylingMode:this.option("editorStylingMode"),hint:t}}}},{key:"_createItemActionOptions",value:function(t,e){var n=this;switch(t.widget){case"dxSelectBox":case"dxColorBox":case"dxCheckBox":return{options:{onValueChanged:function(i){var o=c.default.getItemCommandParameter(n,t,i.component.option("value"));e.call(n,t.command,t.name,o)}}};case"dxTextBox":return{};default:return{options:{onClick:function(i){if(t.items){var o=i.component._contextMenu;o&&n._toggleContextMenu(o)}else{var r=c.default.getItemCommandParameter(n,t);e.call(n,t.command,t.name,r)}}}}}}},{key:"_toggleContextMenu",value:function(t){this._contextMenuList.forEach((function(e){t!==e&&e.hide()})),t.toggle()}},{key:"_onItemInitialized",value:function(t,e){this._addItemHelper(e.command,new k(t))}},{key:"_onItemContentReady",value:function(t,e,n){var o=this,a=(0,d.getDiagram)().Browser;if(("dxButton"===t.NAME||"dxTextBox"===t.NAME)&&e.items){var s=(0,i.default)("<div>").appendTo(this.$element());t._contextMenu=this._createComponent(s,r.default,{items:e.items,target:t.$element(),cssClass:c.default.getContextMenuCssClass(),showEvent:"",closeOnOutsideClick:!a.TouchUI,focusStateEnabled:!1,position:{at:"left bottom"},itemTemplate:function(t,e,n){c.default.getContextMenuItemTemplate(this,t,e,n)},onItemClick:function(t){var e=t.component,i=t.itemData;c.default.onContextMenuItemClick(o,i,n.bind(o)),i.items&&i.items.length||e.hide()},onShowing:function(t){o._showingSubMenu||(o._showingSubMenu=t.component,o._onSubMenuVisibilityChangingAction({visible:!0,component:o}),t.component.option("items",t.component.option("items")),delete o._showingSubMenu)},onInitialized:function(n){var i=n.component;return o._onContextMenuInitialized(i,e,t)},onDisposing:function(t){var n=t.component;return o._onContextMenuDisposing(n,e)}})}}},{key:"_onContextMenuInitialized",value:function(t,e,n){this._contextMenuList.push(t),e.command&&(this._commandContextMenus[e.command]=t),this._addContextMenuHelper(e,t,[],n)}},{key:"_addItemHelper",value:function(t,e){if(void 0!==t){if(this._itemHelpers[t])throw new Error("Toolbar cannot contain duplicated commands.");this._itemHelpers[t]=e}}},{key:"_addContextMenuHelper",value:function(t,e,n,i){var o=this;t.items&&t.items.forEach((function(t,r){var a=n.concat(r);o._addItemHelper(t.command,new I(e,a,t.command,i)),o._addContextMenuHelper(t,e,a,i)}))}},{key:"_onContextMenuDisposing",value:function(t,e){this._contextMenuList.splice(this._contextMenuList.indexOf(t),1),delete this._commandContextMenus[e.command]}},{key:"_executeCommand",value:function(t,e,n){if(!this._updateLocked){if("number"===typeof t){var i=this._valueConverters[t];i&&i.getCommandValue&&(n=i.getCommandValue(n)),this.bar.raiseBarCommandExecuted(t,n)}else"string"===typeof t&&this._onInternalCommandAction({command:t});void 0!==e&&this._onCustomCommandAction({name:e})}}},{key:"_createOnInternalCommand",value:function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}},{key:"_createOnCustomCommand",value:function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}},{key:"_setItemEnabled",value:function(t,e){if(t in this._itemHelpers){var n=this._itemHelpers[t];n.canUpdate(this._showingSubMenu)&&n.setEnabled(e)}}},{key:"_setEnabled",value:function(t){this._toolbarInstance.option("disabled",!t),this._contextMenuList.forEach((function(e){e.option("disabled",!t)}))}},{key:"_setItemValue",value:function(t,e){try{if(this._updateLocked=!0,t in this._itemHelpers){var n=this._itemHelpers[t];if(n.canUpdate(this._showingSubMenu)){var i,o=this._valueConverters[t];o&&o.getEditorValue&&(e=o.getEditorValue(e)),o&&o.getEditorDisplayValue&&(i=o.getEditorDisplayValue(e));var r=this._commandContextMenus[t];n.setValue(e,i,r,r&&t)}}}finally{this._updateLocked=!1}}},{key:"_setItemSubItems",value:function(t,e){if(this._updateLocked=!0,t in this._itemHelpers){var n=this._itemHelpers[t];if(n.canUpdate(this._showingSubMenu)){var i=this._commandContextMenus[t];n.setItems(e,i,i&&t)}}this._updateLocked=!1}},{key:"_createOnSubMenuVisibilityChangingAction",value:function(){this._onSubMenuVisibilityChangingAction=this._createActionByOption("onSubMenuVisibilityChanging")}},{key:"_optionChanged",value:function(t){switch(t.name){case"isMobileView":(0,i.default)("body").removeClass("dx-diagram-mobile-toolbar-color-box-opened"),this._invalidate();break;case"onSubMenuVisibilityChanging":this._createOnSubMenuVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"commands":this._invalidate();break;case"export":break;default:_(x(n.prototype),"_optionChanged",this).call(this,t)}}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(_(x(n.prototype),"_getDefaultOptions",this).call(this),{isMobileView:!1,export:{fileName:"Diagram",proxyUrl:void 0},locateInMenu:"auto",buttonStylingMode:"text",buttonType:"normal",editorStylingMode:"filled",skipAdjustSize:!1})}},{key:"setCommandChecked",value:function(t,e){this._setItemValue(t,e)}},{key:"setCommandEnabled",value:function(t,e){this._setItemEnabled(t,e)}}]),n}(u.default),S=function(t){v(n,t);var e=b(n);function n(){return p(this,n),e.apply(this,arguments)}return g(n,[{key:"getCommandKeys",value:function(){return this._getKeys(this._owner._commands)}},{key:"setItemValue",value:function(t,e){this._owner._setItemValue(t,e)}},{key:"setItemEnabled",value:function(t,e){this._owner._setItemEnabled(t,e)}},{key:"setEnabled",value:function(t){this._owner._setEnabled(t)}},{key:"setItemSubItems",value:function(t,e){this._owner._setItemSubItems(t,e)}}]),n}(a.default),k=function(){function t(e){p(this,t),this._widget=e}return g(t,[{key:"canUpdate",value:function(t){return void 0===t}},{key:"setEnabled",value:function(t){this._widget.option("disabled",!t)}},{key:"setValue",value:function(t,e,n,i){"value"in this._widget.option()?this._updateEditorValue(t,e):void 0!==t&&this._updateButtonValue(t),n&&this._updateContextMenuItemValue(n,"",i,t)}},{key:"setItems",value:function(t,e,n){e?this._updateContextMenuItems(e,"",n,t):this._updateEditorItems(t)}},{key:"_updateContextMenuItems",value:function(t,e,n,i){c.default.updateContextMenuItems(t,e,n,i)}},{key:"_updateEditorItems",value:function(t){"items"in this._widget.option()&&this._widget.option("items",t.map((function(t){return{value:c.default.getItemValue(t),text:t.text}})))}},{key:"_updateEditorValue",value:function(t,e){this._widget.option("value",t),!this._widget.option("selectedItem")&&e&&this._widget.option("value",e)}},{key:"_updateButtonValue",value:function(t){this._widget.option("iconChecked")&&this._widget.option("iconUnchecked")?this._widget.option("icon",t?this._widget.option("iconChecked"):this._widget.option("iconUnchecked")):this._widget.$element().toggleClass("dx-format-active",t)}},{key:"_updateContextMenuItemValue",value:function(t,e,n,i){c.default.updateContextMenuItemValue(t,e,n,i)}}]),t}(),I=function(t){v(n,t);var e=b(n);function n(t,i,o,r){var a;return p(this,n),(a=e.call(this,t))._indexPath=i,a._rootCommandKey=o,a._rootWidget=r,a}return g(n,[{key:"canUpdate",value:function(t){return _(x(n.prototype),"canUpdate",this).call(this,t)||t===this._widget}},{key:"setEnabled",value:function(t){this._widget.option(this._getItemOptionText()+"disabled",!t);var e=this._hasEnabledCommandItems(this._widget.option("items"));this._rootWidget.option("disabled",!e)}},{key:"_hasEnabledCommandItems",value:function(t){var e=this;return!!t&&t.some((function(t){return void 0!==t.command&&!t.disabled||e._hasEnabledCommandItems(t.items)}))}},{key:"setValue",value:function(t){this._updateContextMenuItemValue(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}},{key:"setItems",value:function(t){this._updateContextMenuItems(this._widget,this._getItemOptionText(),this._rootCommandKey,t)}},{key:"_getItemOptionText",value:function(){return c.default.getItemOptionText(this._widget,this._indexPath)}}]),n}(k);t.exports=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.LIST_ITEM_DATA_KEY="dxListItemData",e.FIXED_CONTAINER_CLASS="dx-scheduler-fixed-appointments",e.LIST_ITEM_CLASS="dx-list-item",e.REDUCED_APPOINTMENT_CLASS="dx-scheduler-appointment-reduced",e.REDUCED_APPOINTMENT_ICON="dx-scheduler-appointment-reduced-icon",e.RECURRENCE_APPOINTMENT_CLASS="dx-scheduler-appointment-recurrence",e.EMPTY_APPOINTMENT_CLASS="dx-scheduler-appointment-empty",e.ALL_DAY_APPOINTMENT_CLASS="dx-scheduler-all-day-appointment",e.REDUCED_APPOINTMENT_PARTS_CLASSES={head:"dx-scheduler-appointment-head",body:"dx-scheduler-appointment-body",tail:"dx-scheduler-appointment-tail"},e.DIRECTION_APPOINTMENT_CLASSES={horizontal:"dx-scheduler-appointment-horizontal",vertical:"dx-scheduler-appointment-vertical"},e.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS="dx-scheduler-last-in-date-agenda-appointment"},function(t,e,n){"use strict";var i=n(0).extend;function o(){}var r=[function(t,e){t.smartAttr(e)},function(t,e){t.outer.attr({stroke:e.stroke,"stroke-width":e["stroke-width"],"stroke-opacity":e["stroke-opacity"]}),t.inner.smartAttr({fill:e.fill,opacity:e.opacity,hatching:e.hatching})}];i(o.prototype,{value:0,isNode:function(){return!!(this.nodes&&this.level<this.ctx.maxLevel)},isActive:function(){var t=this.ctx;return this.level>=t.minLevel&&this.level<=t.maxLevel},updateStyles:function(){var t=Number(this.isNode());this.state=this._buildState(this.ctx.settings[t].state,!t&&this.color&&{fill:this.color})},_buildState:function(t,e){var n=i({},t);return e?i(n,e):n},updateLabelStyle:function(){var t=this.ctx.settings[Number(this.isNode())];this.labelState=t.labelState,this.labelParams=t.labelParams},_getState:function(){return this.state},applyState:function(){r[Number(this.isNode())](this.tile,this._getState())}}),t.exports=o},function(t,e,n){"use strict";var i=n(22),o=n(314),r=n(317),a=n(318),s=n(126);function l(t){s.call(this,"digest"),this._hash=t}i(l,s),l.prototype._update=function(t){this._hash.update(t)},l.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new r:new l(a(t))}},function(t,e,n){(function(t){function n(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===n(t)},e.isBoolean=function(t){return"boolean"===typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"===typeof t},e.isString=function(t){return"string"===typeof t},e.isSymbol=function(t){return"symbol"===typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===n(t)},e.isObject=function(t){return"object"===typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===n(t)},e.isError=function(t){return"[object Error]"===n(t)||t instanceof Error},e.isFunction=function(t){return"function"===typeof t},e.isPrimitive=function(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t},e.isBuffer=t.isBuffer}).call(this,n(52).Buffer)},function(t,e,n){(function(e){t.exports=function(t,n){for(var i=Math.min(t.length,n.length),o=new e(i),r=0;r<i;++r)o[r]=t[r]^n[r];return o}}).call(this,n(52).Buffer)},function(t,e,n){"use strict";var i=n(105),o=n(84);function r(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}e.BlockHash=r,r.prototype.update=function(t,e){if(t=i.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var o=0;o<t.length;o+=this._delta32)this._update(t,o,o+this._delta32)}return this},r.prototype.digest=function(t){return this.update(this._pad()),o(null===this.pending),this._digest(t)},r.prototype._pad=function(){var t=this.pendingTotal,e=this._delta8,n=e-(t+this.padLength)%e,i=new Array(n+this.padLength);i[0]=128;for(var o=1;o<n;o++)i[o]=0;if(t<<=3,"big"===this.endian){for(var r=8;r<this.padLength;r++)i[o++]=0;i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=t>>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=255&t}else for(i[o++]=255&t,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,r=8;r<this.padLength;r++)i[o++]=0;return i}},function(t,e,n){"use strict";var i=n(22),o=n(333).Reporter,r=n(331).Buffer;function a(t,e){o.call(this,e),r.isBuffer(t)?(this.base=t,this.offset=0,this.length=t.length):this.error("Input not Buffer")}function s(t,e){if(Array.isArray(t))this.length=0,this.value=t.map((function(t){return s.isEncoderBuffer(t)||(t=new s(t,e)),this.length+=t.length,t}),this);else if("number"===typeof t){if(!(0<=t&&t<=255))return e.error("non-byte EncoderBuffer value");this.value=t,this.length=1}else if("string"===typeof t)this.value=t,this.length=r.byteLength(t);else{if(!r.isBuffer(t))return e.error("Unsupported type: "+typeof t);this.value=t,this.length=t.length}}i(a,o),e.DecoderBuffer=a,a.isDecoderBuffer=function(t){return t instanceof a||"object"===typeof t&&r.isBuffer(t.base)&&"DecoderBuffer"===t.constructor.name&&"number"===typeof t.offset&&"number"===typeof t.length&&"function"===typeof t.save&&"function"===typeof t.restore&&"function"===typeof t.isEmpty&&"function"===typeof t.readUInt8&&"function"===typeof t.skip&&"function"===typeof t.raw},a.prototype.save=function(){return{offset:this.offset,reporter:o.prototype.save.call(this)}},a.prototype.restore=function(t){var e=new a(this.base);return e.offset=t.offset,e.length=this.offset,this.offset=t.offset,o.prototype.restore.call(this,t.reporter),e},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(t){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(t||"DecoderBuffer overrun")},a.prototype.skip=function(t,e){if(!(this.offset+t<=this.length))return this.error(e||"DecoderBuffer overrun");var n=new a(this.base);return n._reporterState=this._reporterState,n.offset=this.offset,n.length=this.offset+t,this.offset+=t,n},a.prototype.raw=function(t){return this.base.slice(t?t.offset:this.offset,this.length)},e.EncoderBuffer=s,s.isEncoderBuffer=function(t){return t instanceof s||"object"===typeof t&&"EncoderBuffer"===t.constructor.name&&"number"===typeof t.length&&"function"===typeof t.join},s.prototype.join=function(t,e){return t||(t=r.alloc(this.length)),e||(e=0),0===this.length||(Array.isArray(this.value)?this.value.forEach((function(n){n.join(t,e),e+=n.length})):("number"===typeof this.value?t[e]=this.value:"string"===typeof this.value?t.write(this.value,e):r.isBuffer(this.value)&&this.value.copy(t,e),e+=this.length)),t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n(49),o=n(75),r=n(1),a=n.n(r),s=n(88),l=(n(9),n(41)),u=n(71),c=n(76),d=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return(e=t.call.apply(t,[this].concat(i))||this).history=Object(s.a)(e.props),e}return Object(o.a)(e,t),e.prototype.render=function(){return a.a.createElement(i.c,{history:this.history,children:this.props.children})},e}(a.a.Component);a.a.Component;var h=function(t,e){return"function"===typeof t?t(e):t},f=function(t,e){return"string"===typeof t?Object(s.c)(t,null,null,e):t},p=function(t){return t},m=a.a.forwardRef;"undefined"===typeof m&&(m=p);var g=m((function(t,e){var n=t.innerRef,i=t.navigate,o=t.onClick,r=Object(u.a)(t,["innerRef","navigate","onClick"]),s=r.target,c=Object(l.a)({},r,{onClick:function(t){try{o&&o(t)}catch(e){throw t.preventDefault(),e}t.defaultPrevented||0!==t.button||s&&"_self"!==s||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),i())}});return c.ref=p!==m&&e||n,a.a.createElement("a",c)}));var _=m((function(t,e){var n=t.component,o=void 0===n?g:n,r=t.replace,s=t.to,d=t.innerRef,_=Object(u.a)(t,["component","replace","to","innerRef"]);return a.a.createElement(i.d.Consumer,null,(function(t){t||Object(c.a)(!1);var n=t.history,i=f(h(s,t.location),t.location),u=i?n.createHref(i):"",g=Object(l.a)({},_,{href:u,navigate:function(){var e=h(s,t.location);(r?n.replace:n.push)(e)}});return p!==m?g.ref=e||d:g.innerRef=d,a.a.createElement(o,g)}))})),v=function(t){return t},y=a.a.forwardRef;"undefined"===typeof y&&(y=v);y((function(t,e){var n=t["aria-current"],o=void 0===n?"page":n,r=t.activeClassName,s=void 0===r?"active":r,d=t.activeStyle,p=t.className,m=t.exact,g=t.isActive,b=t.location,w=t.sensitive,x=t.strict,C=t.style,S=t.to,k=t.innerRef,I=Object(u.a)(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a.a.createElement(i.d.Consumer,null,(function(t){t||Object(c.a)(!1);var n=b||t.location,r=f(h(S,n),n),u=r.pathname,T=u&&u.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),E=T?Object(i.e)(n.pathname,{path:T,exact:m,sensitive:w,strict:x}):null,O=!!(g?g(E,n):E),M=O?function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.filter((function(t){return t})).join(" ")}(p,s):p,P=O?Object(l.a)({},C,{},d):C,D=Object(l.a)({"aria-current":O&&o||null,className:M,style:P,to:r},I);return v!==y?D.ref=e||k:D.innerRef=k,a.a.createElement(_,D)}))}))},function(t,e,n){"use strict";var i=n(248),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(t){return i.isMemo(t)?a:s[t.$$typeof]||o}s[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[i.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function t(e,n,i){if("string"!==typeof n){if(p){var o=f(n);o&&o!==p&&t(e,o,i)}var a=c(n);d&&(a=a.concat(d(n)));for(var s=l(e),m=l(n),g=0;g<a.length;++g){var _=a[g];if(!r[_]&&(!i||!i[_])&&(!m||!m[_])&&(!s||!s[_])){var v=h(n,_);try{u(e,_,v)}catch(y){}}}}return e}},function(t,e,n){"use strict";var i=n(0).extend,o=n(152),r=n(55),a="http://js.devexpress.com/error/"+n(254).split(".").slice(0,2).join("_")+"/";t.exports=function(t,e){var n={ERROR_MESSAGES:i(e,t),Error:function(){return c([].slice.call(arguments))},log:function(t){var e="log";/^E\d+$/.test(t)?e="error":/^W\d+$/.test(t)&&(e="warn"),o.logger[e]("log"===e?t:s([].slice.call(arguments)))}};function s(t){var e=t[0];return u(e,l(e,t=t.slice(1)))}function l(t,e){return e=[n.ERROR_MESSAGES[t]].concat(e),r.format.apply(this,e).replace(/\.*\s*?$/,"")}function u(t,e){return r.format.apply(this,["{0} - {1}. See:\n{2}",t,e,d(t)])}function c(t){var e=t[0],n=l(e,t=t.slice(1)),o=d(e),r=u(e,n);return i(new Error(r),{__id:e,__details:n,url:o})}function d(t){return a+t}return n}},function(t,e,n){"use strict";var i=n(10).getWindow(),o=n(2),r=["auto","none","inherit","initial"],a=function(t,e){var n=0;return e.forEach((function(e){n+=parseFloat(t[e])||0})),n},s=function(t,e){var n="width"===t?"Left":"Top",i="width"===t?"Right":"Bottom";return{padding:a(e,["padding"+n,"padding"+i]),border:a(e,["border"+n+"Width","border"+i+"Width"]),margin:a(e,["margin"+n,"margin"+i])}},l=function(t,e){return t.indexOf("px")>0?t=parseInt(t.replace("px","")):t.indexOf("%")>0?t=parseInt(t.replace("%",""))*function(t){return o.isWindow(t)?t.innerHeight:t.offsetHeight}(e)/100:isNaN(t)||(t=parseInt(t)),t},u=function(t,e,n){return t?r.indexOf(t)>-1?e?null:t:(o.isString(t)&&(t=l(t,n)),o.isNumeric(t)?Math.max(0,t+e):"calc("+t+(e<0?" - ":" ")+Math.abs(e)+"px)"):null};e.getSize=function(t,e,n){var o=i.getComputedStyle(t),r=s(e,o),a=t.getClientRects().length,l=t.getBoundingClientRect()[e],u=a?l:0;return u<=0?(u=parseFloat(o[e]||t.style[e])||0,u-=function(t,e,n){var i=e[t];return"border-box"===e.boxSizing&&i.length&&"%"!==i[i.length-1]?n.border+n.padding:0}(e,o,r)):u-=r.padding+r.border,n.paddings&&(u+=r.padding),n.borders&&(u+=r.border),n.margins&&(u+=r.margin),u},e.getElementBoxParams=s,e.addOffsetToMaxHeight=function(t,e,n){var i=u(t,e,n);return null!==i?i:"none"},e.addOffsetToMinHeight=function(t,e,n){var i=u(t,e,n);return null!==i?i:0},e.getVerticalOffsets=function(t,e){if(!t)return 0;var n=s("height",i.getComputedStyle(t));return n.padding+n.border+(e?n.margin:0)},e.getVisibleHeight=function(t){if(t){var e=t.getBoundingClientRect();if(e.height)return e.height}return 0},e.parseHeight=l},function(t,e,n){"use strict";var i=n(10),o=n(15),r=n(39),a=n(77),s=n(113),l=function(){var t,e=r(),n=e.add,l=e.remove;if(!i.hasWindow())return e;var u,c=function(){var t=i.getWindow();return{width:t.innerWidth,height:t.innerHeight}},d=function(){var n,i=c();i.width===t.width&&i.height===t.height||(i.width===t.width&&(n="height"),i.height===t.height&&(n="width"),t=i,e.fire(n))},h=s((function(){t=c()}));return e.add=function(){var t=n.apply(e,arguments);return h(),a.add((function(){!u&&e.has()&&(u=o.listen(i.getWindow(),"resize",d))})),t},e.remove=function(){var t=l.apply(e,arguments);return!e.has()&&u&&(u(),u=void 0),t},e}();t.exports=l},function(t,e,n){"use strict";var i=n(6),o=n(31),r=n(15),a=n(21),s=n(11),l=a.inherit({ctor:function(t,e){this._eventName=t,this._originalEvents=s.addNamespace(e,"dxPointerEvents"),this._handlerCount=0,this.noBubble=this._isNoBubble()},_isNoBubble:function(){var t=this._eventName;return"dxpointerenter"===t||"dxpointerleave"===t},_handler:function(t){var e=this._getDelegateTarget(t);return this._fireEvent({type:this._eventName,pointerType:t.pointerType||s.eventSource(t),originalEvent:t,delegateTarget:e,timeStamp:o.mozilla?(new Date).getTime():t.timeStamp})},_getDelegateTarget:function(t){var e;return this.noBubble&&(e=t.delegateTarget),e},_fireEvent:function(t){return s.fireEvent(t)},_setSelector:function(t){this._selector=this.noBubble&&t?t.selector:null},_getSelector:function(){return this._selector},setup:function(){return!0},add:function(t,e){if(this._handlerCount<=0||this.noBubble){t=this.noBubble?t:r.getDocument(),this._setSelector(e);var n=this;i.on(t,this._originalEvents,this._getSelector(),(function(t){n._handler(t)}))}this.noBubble||this._handlerCount++},remove:function(t){this._setSelector(t),this.noBubble||this._handlerCount--},teardown:function(t){this._handlerCount&&!this.noBubble||(t=this.noBubble?t:r.getDocument(),".dxPointerEvents"!==this._originalEvents&&i.off(t,this._originalEvents,this._getSelector()))},dispose:function(t){t=this.noBubble?t:r.getDocument(),i.off(t,this._originalEvents)}});t.exports=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=f(n(3)),o=f(n(69)),r=n(0),a=n(2),s=f(n(190)),l=n(60),u=n(7),c=n(363),d=n(15),h=n(4);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.default=o.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{repaintChangesOnly:!1})},ctor:function(){var t=this;this.callBase.apply(this,arguments),this._customizeStoreLoadOptions=function(e){var n=t._dataSource;n&&!n.isLoaded()&&(t._correctionIndex=0),t._correctionIndex&&e.storeLoadOptions&&(e.storeLoadOptions.skip+=t._correctionIndex)},this._dataSource&&this._dataSource.on("customizeStoreLoadOptions",this._customizeStoreLoadOptions)},reload:function(){this._correctionIndex=0},_init:function(){this.callBase(),this._refreshItemsCache(),this._correctionIndex=0},_findItemElementByKey:function(t){var e=this,n=(0,i.default)(),o=this.key();return this.itemElements().each((function(r,a){var s=(0,i.default)(a),u=e._getItemData(s);if(o?(0,l.keysEqual)(o,e.keyOf(u),t):e._isItemEquals(u,t))return n=s,!1})),n},_dataSourceChangedHandler:function(t,e){e&&e.changes?this._modifyByChanges(e.changes):this.callBase(t,e)},_isItemEquals:function(t,e){t&&t.__dx_key__&&(t=t.data);try{return JSON.stringify(t)===JSON.stringify(e)}catch(n){return t===e}},_partialRefresh:function(){var t=this;if(this.option("repaintChangesOnly")){var e=(0,c.findChanges)(this._itemsCache,this._editStrategy.itemsGetter(),(function(e){return e&&void 0!==e.__dx_key__?e.__dx_key__:t.keyOf(e)}),this._isItemEquals);if(e&&this._itemsCache.length)return this._modifyByChanges(e,!0),this._renderEmptyMessage(),!0;this._refreshItemsCache()}return!1},_refreshItemsCache:function(){if(this.option("repaintChangesOnly")){var t=this._editStrategy.itemsGetter();try{this._itemsCache=(0,r.extend)(!0,[],t),this.key()||(this._itemsCache=this._itemsCache.map((function(e,n){var i;return p(i={},"__dx_key__",t[n]),p(i,"data",e),i})))}catch(e){this._itemsCache=(0,r.extend)([],t)}}},_dispose:function(){this._dataSource&&this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptions),this.callBase()},_updateByChange:function(t,e,n,i){var o=this;if(i)this._renderItem(n.index,n.data,null,this._findItemElementByKey(n.key));else{var r=e[s.default.indexByKey(t,e,n.key)];r&&s.default.update(t,e,n.key,n.data).done((function(){o._renderItem(e.indexOf(r),r,null,o._findItemElementByKey(n.key))}))}},_insertByChange:function(t,e,n,i){var o=this;(0,u.when)(i||s.default.insert(t,e,n.data,n.index)).done((function(){o._beforeItemElementInserted(n),o._renderItem((0,a.isDefined)(n.index)?n.index:e.length,n.data),o._afterItemElementInserted(),o._correctionIndex++}))},_updateSelectionAfterRemoveByChange:function(t){var e=this.option("selectedIndex");e>t?this.option("selectedIndex",e-1):e===t&&1===this.option("selectedItems").length?this.option("selectedItems",[]):this._normalizeSelectedItems()},_beforeItemElementInserted:function(t){var e=this.option("selectedIndex");t.index<=e&&this.option("selectedIndex",e+1)},_afterItemElementInserted:h.noop,_removeByChange:function(t,e,n,i){var o=this,r=i?n.index:s.default.indexByKey(t,e,n.key);if(i?n.oldItem:e[r]){var a=this._findItemElementByKey(n.key),l=this._extendActionArgs(a);this._waitDeletingPrepare(a).done((function(){i?(o._updateIndicesAfterIndex(r-1),o._afterItemElementDeleted(a,l),o._updateSelectionAfterRemoveByChange(r)):(o._deleteItemElementByIndex(r),o._afterItemElementDeleted(a,l))})),this._correctionIndex--}},_modifyByChanges:function(t,e){var n=this,i=this._editStrategy.itemsGetter(),o={key:this.key.bind(this),keyOf:this.keyOf.bind(this)},r=this._dataSource,a=r&&r.paginate(),s=r&&r.group();(a||s)&&(t=t.filter((function(t){return"insert"!==t.type||void 0!==t.index}))),t.forEach((function(t){return n["_".concat(t.type,"ByChange")](o,i,t,e)})),this._renderedItemsCount=i.length,this._refreshItemsCache(),this._fireContentReadyAction()},_appendItemToContainer:function(t,e,n){var i=t.children(this._itemSelector()).get(n);(0,d.insertElement)(t.get(0),e.get(0),i)},_optionChanged:function(t){switch(t.name){case"items":this._partialRefresh(t.value)||this.callBase(t);break;case"dataSource":this.option("repaintChangesOnly")&&t.value||this.option("items",[]),this.callBase(t);break;case"repaintChangesOnly":break;default:this.callBase(t)}}})},function(t,e,n){"use strict";var i=n(6),o=n(57),r=n(21),a=n(18),s=n(114),l=n(11),u=n(28),c=l.addNamespace(u.enter,"dxHoverStart"),d=l.addNamespace(u.leave,"dxHoverEnd"),h=r.inherit({noBubble:!0,ctor:function(){this._handlerArrayKeyPath=this._eventNamespace+"_HandlerStore"},setup:function(t){o.data(t,this._handlerArrayKeyPath,{})},add:function(t,e){var n=this,r=function(t){n._handler(t)};i.on(t,this._originalEventName,e.selector,r),o.data(t,this._handlerArrayKeyPath)[e.guid]=r},_handler:function(t){l.isTouchEvent(t)||a.isSimulator()||l.fireEvent({type:this._eventName,originalEvent:t,delegateTarget:t.delegateTarget})},remove:function(t,e){var n=o.data(t,this._handlerArrayKeyPath)[e.guid];i.off(t,this._originalEventName,e.selector,n)},teardown:function(t){o.removeData(t,this._handlerArrayKeyPath)}}),f=h.inherit({ctor:function(){this._eventNamespace="dxHoverStart",this._eventName="dxhoverstart",this._originalEventName=c,this.callBase()},_handler:function(t){(t.pointers||[]).length||this.callBase(t)}}),p=h.inherit({ctor:function(){this._eventNamespace="dxHoverEnd",this._eventName="dxhoverend",this._originalEventName=d,this.callBase()}});s("dxhoverstart",new f),s("dxhoverend",new p),e.start="dxhoverstart",e.end="dxhoverend"},function(t,e,n){"use strict";var i=n(21),o=n(2),r=n(5),a=n(29).compileGetter,s=n(29).toComparable,l=n(7).Deferred,u=n(78),c=n(60),d=i.inherit({toArray:function(){var t=[];for(this.reset();this.next();)t.push(this.current());return t},countable:function(){return!1}}),h=d.inherit({ctor:function(t){this.array=t,this.index=-1},next:function(){return this.index+1<this.array.length&&(this.index++,!0)},current:function(){return this.array[this.index]},reset:function(){this.index=-1},toArray:function(){return this.array.slice(0)},countable:function(){return!0},count:function(){return this.array.length}}),f=d.inherit({ctor:function(t){this.iter=t},next:function(){return this.iter.next()},current:function(){return this.iter.current()},reset:function(){return this.iter.reset()}}),p=f.inherit({ctor:function(t,e){this.callBase(t),this.index=-1,this.mapper=e},current:function(){return this.mapper(this.callBase(),this.index)},next:function(){var t=this.callBase();return t&&this.index++,t}}),m=function(t,e){return t=s(t),e=s(e),null===t&&null!==e?-1:null!==t&&null===e||void 0===t&&void 0!==e?1:void 0!==t&&void 0===e||t<e?-1:t>e?1:0},g=d.inherit({ctor:function(t,e,n,i){t instanceof p||(t=new p(t,this._wrap)),this.iter=t,this.rules=[{getter:e,desc:n,compare:i}]},thenBy:function(t,e,n){var i=new g(this.sortedIter||this.iter,t,e,n);return this.sortedIter||(i.rules=this.rules.concat(i.rules)),i},next:function(){return this._ensureSorted(),this.sortedIter.next()},current:function(){return this._ensureSorted(),this.sortedIter.current()},reset:function(){delete this.sortedIter},countable:function(){return this.sortedIter||this.iter.countable()},count:function(){return this.sortedIter?this.sortedIter.count():this.iter.count()},_ensureSorted:function(){var t=this;t.sortedIter||(r.each(t.rules,(function(){this.getter=a(this.getter)})),t.sortedIter=new p(new h(this.iter.toArray().sort((function(e,n){return t._compare(e,n)}))),t._unwrap))},_wrap:function(t,e){return{index:e,value:t}},_unwrap:function(t){return t.value},_compare:function(t,e){var n=t.index,i=e.index;if((t=t.value)===(e=e.value))return n-i;for(var o=0,r=this.rules.length;o<r;o++){var a=this.rules[o],s=a.getter(t),l=a.getter(e),u=(a.compare||m)(s,l);if(u)return a.desc?-u:u}return n-i}}),_=function(){var t=function(t){return o.isDefined(t)?t.toString():""};function e(t,e,n){return function(i){i=s(t(i));var o=function(t){return""===t||0===t||!1===t}(e)?i===e:i==e;return n&&(o=!o),o}}return function(n){return o.isFunction(n)?n:c.isGroupCriterion(n)?function(t){var e=[],n=!1,i=!1;return r.each(t,(function(){if(Array.isArray(this)||o.isFunction(this)){if(e.length>1&&n!==i)throw new u.errors.Error("E4019");e.push(_(this)),n=i,i=!0}else i=c.isConjunctiveOperator(this)})),function(t){for(var i=n,o=0;o<e.length;o++)if(e[o](t)!==n){i=!n;break}return i}}(n):c.isUnaryOperation(n)?function(t){var e=t[0],n=_(t[1]);if("!"===e)return function(t){return!n(t)};throw u.errors.Error("E4003",e)}(n):function(n){n=c.normalizeBinaryCriterion(n);var i=a(n[0]),o=n[1],r=n[2];switch(r=s(r),o.toLowerCase()){case"=":return e(i,r);case"<>":return e(i,r,!0);case">":return function(t){return s(i(t))>r};case"<":return function(t){return s(i(t))<r};case">=":return function(t){return s(i(t))>=r};case"<=":return function(t){return s(i(t))<=r};case"startswith":return function(e){return 0===s(t(i(e))).indexOf(r)};case"endswith":return function(e){var n=s(t(i(e))),o=t(r);return!(n.length<o.length)&&n.lastIndexOf(r)===n.length-r.length};case"contains":return function(e){return s(t(i(e))).indexOf(r)>-1};case"notcontains":return function(e){return-1===s(t(i(e))).indexOf(r)}}throw u.errors.Error("E4003",o)}(n)}}(),v=f.inherit({ctor:function(t,e){this.callBase(t),this.criteria=_(e)},next:function(){for(;this.iter.next();)if(this.criteria(this.current()))return!0;return!1}}),y=d.inherit({ctor:function(t,e){this.iter=t,this.getter=e},next:function(){return this._ensureGrouped(),this.groupedIter.next()},current:function(){return this._ensureGrouped(),this.groupedIter.current()},reset:function(){delete this.groupedIter},countable:function(){return!!this.groupedIter},count:function(){return this.groupedIter.count()},_ensureGrouped:function(){if(!this.groupedIter){var t={},e=[],n=this.iter,i=a(this.getter);for(n.reset();n.next();){var o=n.current(),s=i(o);s in t?t[s].push(o):(t[s]=[o],e.push(s))}this.groupedIter=new h(r.map(e,(function(e){return{key:e,items:t[e]}})))}}}),b=f.inherit({ctor:function(t,e){this.callBase(t),this.getter=a(e)},current:function(){return this.getter(this.callBase())},countable:function(){return this.iter.countable()},count:function(){return this.iter.count()}}),w=f.inherit({ctor:function(t,e,n){this.callBase(t),this.skip=Math.max(0,e),this.take=Math.max(0,n),this.pos=0},next:function(){if(this.pos>=this.skip+this.take)return!1;for(;this.pos<this.skip&&this.iter.next();)this.pos++;return this.pos++,this.iter.next()},reset:function(){this.callBase(),this.pos=0},countable:function(){return this.iter.countable()},count:function(){return Math.min(this.iter.count()-this.skip,this.take)}});t.exports=function t(e,n){n=n||{},e instanceof d||(e=new h(e));var i=function(t){var e=n.errorHandler;e&&e(t),u._errorHandler(t)},r=function(t){var n=(new l).fail(i),o=t.step,r=t.finalize;try{e.reset();for(var a=("seed"in t?t.seed:e.next()?e.current():NaN);e.next();)a=o(a,e.current());n.resolve(r?r(a):a)}catch(s){n.reject(s)}return n.promise()},s=function(t){return r(c.aggregators[t])},f=function(t){return o.isFunction(t)||Array.isArray(t)||(t=[].slice.call(arguments)),m(new b(e,t))},p=function(t){return f(a(t))};function m(e){return t(e,n)}return{toArray:function(){return e.toArray()},enumerate:function(){var t=(new l).fail(i);try{t.resolve(e.toArray())}catch(n){t.reject(n)}return t.promise()},sortBy:function(t,n,i){return m(new g(e,t,n,i))},thenBy:function(t,n,i){if(e instanceof g)return m(e.thenBy(t,n,i));throw u.errors.Error("E4004")},filter:function(t){return Array.isArray(t)||(t=[].slice.call(arguments)),m(new v(e,t))},slice:function(t,n){return void 0===n&&(n=Number.MAX_VALUE),m(new w(e,t,n))},select:f,groupBy:function(t){return m(new y(e,t))},aggregate:function(t,e,n){return r(arguments.length<2?{step:arguments[0]}:{seed:t,step:e,finalize:n})},count:function(){if(e.countable()){var t=(new l).fail(i);try{t.resolve(e.count())}catch(n){t.reject(n)}return t.promise()}return s("count")},sum:function(t){return t?p(t).sum():s("sum")},min:function(t){return t?p(t).min():s("min")},max:function(t){return t?p(t).max():s("max")},avg:function(t){return t?p(t).avg():s("avg")}}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(16).inArray,r=n(642).inherit({_getPlainItems:function(){return this._collectionWidget.option("items")||[]},getIndexByItemData:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget);return e?this.getIndexByKey(e(t)):o(t,this._getPlainItems())},getItemDataByIndex:function(t){return this._getPlainItems()[t]},deleteItemAtIndex:function(t){this._getPlainItems().splice(t,1)},itemsGetter:function(){return this._getPlainItems()},getKeysByItems:function(t){var e=this._collectionWidget.keyOf.bind(this._collectionWidget),n=t;if(e){n=[];for(var i=0;i<t.length;i++)n.push(e(t[i]))}return n},getIndexByKey:function(t){var e=this._cache,n=e&&e.keys||this.getKeysByItems(this._getPlainItems());if(e&&!e.keys&&(e.keys=n),"object"!==i(t))return n.indexOf(t);for(var o=0,r=n.length;o<r;o++)if(this._equalKeys(t,n[o]))return o;return-1},getItemsByKeys:function(t,e){return(e||t).slice()},moveItemAtIndexToIndex:function(t,e){var n=this._getPlainItems(),i=n[t];n.splice(t,1),n.splice(e,0,i)},_isItemIndex:function(t){return"number"===typeof t&&Math.round(t)===t},_getNormalizedItemIndex:function(t){return this._collectionWidget._itemElements().index(t)},_normalizeItemIndex:function(t){return t},_denormalizeItemIndex:function(t){return t},_getItemByNormalizedIndex:function(t){return t>-1?this._collectionWidget._itemElements().eq(t):null},_itemsFromSameParent:function(){return!0}});t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.mergeNameParts=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return t})).join(".")},e.parseOptionName=function(t){var e=t.split("[");return 1===e.length?{isCollectionItem:!1,name:t}:{isCollectionItem:!0,name:e[0],index:Number(e[1].slice(0,-1))}}},function(t,e,n){"use strict";var i=y(n(33)),o=y(n(8)),r=y(n(97)),a=y(n(3)),s=n(16),l=y(n(4)),u=n(0),c=n(5),d=n(37),h=y(n(2)),f=y(n(10)),p=y(n(6)),m=y(n(101)),g=n(24),_=n(11),v=y(n(17));function y(t){return t&&t.__esModule?t:{default:t}}var b=h.default.isPlainObject,w=h.default.isFunction,x=(0,_.addNamespace)(m.default.start,"dxResizable"),C=(0,_.addNamespace)(m.default.move,"dxResizable"),S=(0,_.addNamespace)(m.default.end,"dxResizable"),k={left:"borderLeftWidth",top:"borderTopWidth",right:"borderRightWidth",bottom:"borderBottomWidth"},I=r.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{handles:"all",step:"1",stepPrecision:"simple",area:void 0,minWidth:30,maxWidth:1/0,minHeight:30,maxHeight:1/0,onResizeStart:null,onResize:null,onResizeEnd:null,roundStepValue:!0})},_init:function(){this.callBase(),this.$element().addClass("dx-resizable")},_initMarkup:function(){this.callBase(),this._renderHandles()},_render:function(){this.callBase(),this._renderActions()},_renderActions:function(){this._resizeStartAction=this._createActionByOption("onResizeStart"),this._resizeEndAction=this._createActionByOption("onResizeEnd"),this._resizeAction=this._createActionByOption("onResize")},_renderHandles:function(){this._handles=[];var t=this.option("handles");if("none"!==t){var e="all"===t?["top","bottom","left","right"]:t.split(" ");(0,c.each)(e,function(t,e){this._renderHandle(e)}.bind(this)),(0,s.inArray)("bottom",e)+1&&(0,s.inArray)("right",e)+1&&this._renderHandle("corner-bottom-right"),(0,s.inArray)("bottom",e)+1&&(0,s.inArray)("left",e)+1&&this._renderHandle("corner-bottom-left"),(0,s.inArray)("top",e)+1&&(0,s.inArray)("right",e)+1&&this._renderHandle("corner-top-right"),(0,s.inArray)("top",e)+1&&(0,s.inArray)("left",e)+1&&this._renderHandle("corner-top-left"),this._attachEventHandlers()}},_renderHandle:function(t){var e=(0,a.default)("<div>").addClass("dx-resizable-handle").addClass("dx-resizable-handle-"+t).appendTo(this.$element());this._handles.push(e)},_attachEventHandlers:function(){if(!this.option("disabled")){var t={};t[x]=this._dragStartHandler.bind(this),t[C]=this._dragHandler.bind(this),t[S]=this._dragEndHandler.bind(this),this._handles.forEach((function(e){p.default.on(e,t,{direction:"both",immediate:!0})}))}},_detachEventHandlers:function(){this._handles.forEach((function(t){p.default.off(t)}))},_toggleEventHandlers:function(t){t?this._attachEventHandlers():this._detachEventHandlers()},_dragStartHandler:function(t){var e=this.$element();if(e.is(".dx-state-disabled, .dx-state-disabled *"))t.cancel=!0;else{this._toggleResizingClass(!0),this._movingSides=this._getMovingSides(t),this._elementLocation=i.default.locate(e);var n=(0,g.getBoundingRect)(e.get(0));this._elementSize={width:n.width,height:n.height},this._renderDragOffsets(t),this._resizeStartAction({event:t,width:this._elementSize.width,height:this._elementSize.height,handles:this._movingSides}),t.targetElements=null}},_toggleResizingClass:function(t){this.$element().toggleClass("dx-resizable-resizing",t)},_renderDragOffsets:function(t){var e=this._getArea();if(e){var n=(0,a.default)(t.target).closest(".dx-resizable-handle"),i=n.outerWidth(),o=n.outerHeight(),r=n.offset(),s=e.offset,l=this._getAreaScrollOffset();t.maxLeftOffset=r.left-s.left-l.scrollX,t.maxRightOffset=s.left+e.width-r.left-i+l.scrollX,t.maxTopOffset=r.top-s.top-l.scrollY,t.maxBottomOffset=s.top+e.height-r.top-o+l.scrollY}},_getBorderWidth:function(t,e){if(h.default.isWindow(t.get(0)))return 0;var n=t.css(k[e]);return parseInt(n)||0},_dragHandler:function(t){var e=this.$element(),n=this._movingSides,o=this._elementLocation,r=this._elementSize,a=this._getOffset(t),s=r.width+a.x*(n.left?-1:1),l=r.height+a.y*(n.top?-1:1);(a.x||"strict"===this.option("stepPrecision"))&&this._renderWidth(s),(a.y||"strict"===this.option("stepPrecision"))&&this._renderHeight(l);var u=(0,g.getBoundingRect)(e.get(0)),c=a.y-((u.height||l)-l),d=a.x-((u.width||s)-s);i.default.move(e,{top:o.top+(n.top?c:0),left:o.left+(n.left?d:0)}),this._resizeAction({event:t,width:this.option("width")||s,height:this.option("height")||l,handles:this._movingSides}),v.default.triggerResizeEvent(e)},_getOffset:function(t){var e=t.offset,n=l.default.pairToObject(this.option("step"),!this.option("roundStepValue")),i=this._getMovingSides(t),o="strict"===this.option("stepPrecision");return i.left||i.right||(e.x=0),i.top||i.bottom||(e.y=0),o?this._getStrictOffset(e,n,i):this._getSimpleOffset(e,n)},_getSimpleOffset:function(t,e){return{x:t.x-t.x%e.h,y:t.y-t.y%e.v}},_getStrictOffset:function(t,e,n){var i=this._elementLocation,o=this._elementSize,r=n.left?i.left:i.left+o.width,a=n.top?i.top:i.top+o.height,s=(r+t.x)%e.h,l=(a+t.y)%e.v,u=Math.sign||function(t){return 0===(t=+t)||isNaN(t)?t:t>0?1:-1},c=function(t,e){return(1+.2*u(e))%1*t},d=function(t,e){return Math.abs(t)<.2*e},h=t.x-s,f=t.y-l;return s>c(e.h,t.x)&&(h+=e.h),l>c(e.v,t.y)&&(f+=e.v),{x:!n.left&&!n.right||d(t.x,e.h)?0:h,y:!n.top&&!n.bottom||d(t.y,e.v)?0:f}},_getMovingSides:function(t){var e=(0,a.default)(t.target),n=e.hasClass("dx-resizable-handle-corner-top-left"),i=e.hasClass("dx-resizable-handle-corner-top-right"),o=e.hasClass("dx-resizable-handle-corner-bottom-left"),r=e.hasClass("dx-resizable-handle-corner-bottom-right");return{top:e.hasClass("dx-resizable-handle-top")||n||i,left:e.hasClass("dx-resizable-handle-left")||n||o,bottom:e.hasClass("dx-resizable-handle-bottom")||o||r,right:e.hasClass("dx-resizable-handle-right")||i||r}},_getArea:function(){var t=this.option("area");return w(t)&&(t=t.call(this)),b(t)?this._getAreaFromObject(t):this._getAreaFromElement(t)},_getAreaScrollOffset:function(){var t=this.option("area"),e={scrollY:0,scrollX:0};if(!w(t)&&!b(t)){var n=(0,a.default)(t)[0];h.default.isWindow(n)&&(e.scrollX=n.pageXOffset,e.scrollY=n.pageYOffset)}return e},_getAreaFromObject:function(t){var e={width:t.right-t.left,height:t.bottom-t.top,offset:{left:t.left,top:t.top}};return this._correctAreaGeometry(e),e},_getAreaFromElement:function(t){var e,n=(0,a.default)(t);return n.length&&(e={width:n.innerWidth(),height:n.innerHeight(),offset:(0,u.extend)({top:0,left:0},h.default.isWindow(n[0])?{}:n.offset())},this._correctAreaGeometry(e,n)),e},_correctAreaGeometry:function(t,e){var n=e?this._getBorderWidth(e,"left"):0,i=e?this._getBorderWidth(e,"top"):0;t.offset.left+=n+this._getBorderWidth(this.$element(),"left"),t.offset.top+=i+this._getBorderWidth(this.$element(),"top"),t.width-=this.$element().outerWidth()-this.$element().innerWidth(),t.height-=this.$element().outerHeight()-this.$element().innerHeight()},_dragEndHandler:function(t){var e=this.$element();this._resizeEndAction({event:t,width:e.outerWidth(),height:e.outerHeight(),handles:this._movingSides}),this._toggleResizingClass(!1)},_renderWidth:function(t){this.option("width",(0,d.fitIntoRange)(t,this.option("minWidth"),this.option("maxWidth")))},_renderHeight:function(t){this.option("height",(0,d.fitIntoRange)(t,this.option("minHeight"),this.option("maxHeight")))},_optionChanged:function(t){switch(t.name){case"disabled":this._toggleEventHandlers(!t.value),this.callBase(t);break;case"handles":this._invalidate();break;case"minWidth":case"maxWidth":f.default.hasWindow()&&this._renderWidth(this.$element().outerWidth());break;case"minHeight":case"maxHeight":f.default.hasWindow()&&this._renderHeight(this.$element().outerHeight());break;case"onResize":case"onResizeStart":case"onResizeEnd":this._renderActions();break;case"area":case"stepPrecision":case"step":case"roundStepValue":break;default:this.callBase(t)}},_clean:function(){this.$element().find(".dx-resizable-handle").remove()},_useTemplates:function(){return!1}});(0,o.default)("dxResizable",I),t.exports=I,t.exports.default=t.exports},function(t,e,n){"use strict";var i=k(n(3)),o=k(n(6)),r=k(n(45)),a=k(n(8)),s=n(4),l=n(91),u=n(5),c=n(2),d=n(0),h=n(17),f=k(n(23)),p=n(90),m=n(24),g=k(n(664)),_=k(n(20)),v=n(12),y=n(11),b=k(n(102)),w=k(n(25)),x=k(n(18)),C=n(132),S=k(n(48));function k(t){return t&&t.__esModule?t:{default:t}}var I="ios"===x.default.current().platform,T=b.default.inherit({_supportedKeys:function(){return(0,d.extend)({},this.callBase(),{tab:function(t){if(this.option("opened"))if("instantly"!==this.option("applyValueMode")){var e=t.shiftKey?this._getLastPopupElement():this._getFirstPopupElement();e&&o.default.trigger(e,"focus"),t.preventDefault()}else this.close()},escape:function(t){return this.option("opened")&&t.preventDefault(),this.close(),!0},upArrow:function(t){return t.preventDefault(),t.stopPropagation(),!t.altKey||(this.close(),!1)},downArrow:function(t){return t.preventDefault(),t.stopPropagation(),!t.altKey||(this._validatedOpening(),!1)},enter:function(t){return this.option("opened")&&(t.preventDefault(),this._valueChangeEventHandler(t)),!0}})},_getDefaultButtons:function(){return this.callBase().concat([{name:"dropDown",Ctor:g.default}])},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{value:null,onOpened:null,onClosed:null,opened:!1,acceptCustomValue:!0,applyValueMode:"instantly",deferRendering:!0,activeStateEnabled:!0,dropDownButtonTemplate:"dropDownButton",fieldTemplate:null,openOnFieldClick:!1,showDropDownButton:!0,buttons:void 0,dropDownOptions:{showTitle:!1},popupPosition:this._getDefaultPopupPosition(),onPopupInitialized:null,applyButtonText:(0,v.format)("OK"),cancelButtonText:(0,v.format)("Cancel"),buttonsLocation:"default",useHiddenSubmitElement:!1})},_getDefaultPopupPosition:function(t){var e=(0,m.getDefaultAlignment)(t);return{offset:{h:0,v:-1},my:e+" top",at:e+" bottom",collision:"flip flip"}},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"generic"===t.platform},options:{popupPosition:{offset:{v:0}}}}])},_inputWrapper:function(){return this.$element().find(".dx-dropdowneditor-input-wrapper")},_init:function(){this.callBase(),this._initVisibilityActions(),this._initPopupInitializedAction(),this._updatePopupPosition(this.option("rtlEnabled")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_updatePopupPosition:function(t){var e=this._getDefaultPopupPosition(t),n=e.my,i=e.at,o=this.option("popupPosition");this.option("popupPosition",(0,d.extend)({},o,{my:n,at:i}))},_initVisibilityActions:function(){this._openAction=this._createActionByOption("onOpened",{excludeValidators:["disabled","readOnly"]}),this._closeAction=this._createActionByOption("onClosed",{excludeValidators:["disabled","readOnly"]})},_initPopupInitializedAction:function(){this._popupInitializedAction=this._createActionByOption("onPopupInitialized",{excludeValidators:["disabled","readOnly"]})},_initMarkup:function(){this._renderSubmitElement(),this.callBase(),this.$element().addClass("dx-dropdowneditor"),this.setAria("role","combobox")},_render:function(){this.callBase(),this._renderOpenHandler(),this._attachFocusOutHandler(),this._renderOpenedState()},_renderContentImpl:function(){this.option("deferRendering")||this._createPopup()},_renderInput:function(){this.callBase(),this.$element().wrapInner((0,i.default)("<div>").addClass("dx-dropdowneditor-input-wrapper")),this._$container=this.$element().children().eq(0),this._setDefaultAria()},_setDefaultAria:function(){this.setAria({haspopup:"true",autocomplete:"list"})},_readOnlyPropValue:function(){return!this.option("acceptCustomValue")||this.callBase()},_cleanFocusState:function(){this.callBase(),this.option("fieldTemplate")&&this._detachFocusEvents()},_getFieldTemplate:function(){return this.option("fieldTemplate")&&this._getTemplateByOption("fieldTemplate")},_renderMask:function(){this.option("fieldTemplate")||this.callBase()},_renderField:function(){var t=this._getFieldTemplate();t&&this._renderTemplatedField(t,this._fieldRenderData())},_renderPlaceholder:function(){!!this._getFieldTemplate()||this.callBase()},_renderValue:function(){this.option("useHiddenSubmitElement")&&this._setSubmitValue(),this.callBase().always(this._renderField.bind(this))},_renderTemplatedField:function(t,e){var n=this,r=(0,l.focused)(this._input()),a=this._$container;this._detachKeyboardEvents();var s=this._$beforeButtonsContainer&&this._$beforeButtonsContainer[0].parentNode,u=this._$afterButtonsContainer&&this._$afterButtonsContainer[0].parentNode;s&&s.removeChild(this._$beforeButtonsContainer[0]),u&&u.removeChild(this._$afterButtonsContainer[0]),this._detachFocusEvents(),a.empty();var c=(0,i.default)("<div>").addClass("dx-dropdowneditor-field-template-wrapper").appendTo(a);t.render({model:e,container:(0,h.getPublicElement)(c),onRendered:function(){var t=n._input();if(!t.length)throw f.default.Error("E1010");n._refreshEvents(),n._refreshValueChangeEvent(),n._renderFocusState(),r&&o.default.trigger(t,"focus")}}),a.prepend(this._$beforeButtonsContainer),a.append(this._$afterButtonsContainer)},_fieldRenderData:function(){return this.option("value")},_initTemplates:function(){this._templateManager.addDefaultTemplates({dropDownButton:new C.FunctionTemplate((function(t){var e=(0,i.default)("<div>").addClass("dx-dropdowneditor-icon");(0,i.default)(t.container).append(e)}))}),this.callBase()},_renderOpenHandler:function(){var t=this._inputWrapper(),e=(0,y.addNamespace)(w.default.name,this.NAME),n=this.option("openOnFieldClick");o.default.off(t,e),o.default.on(t,e,this._getInputClickHandler(n)),this.$element().toggleClass("dx-dropdowneditor-field-clickable",n),n&&(this._openOnFieldClickAction=this._createAction(this._openHandler.bind(this)))},_attachFocusOutHandler:function(){var t=this;I&&(this._detachFocusOutEvents(),o.default.on(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME),(function(e){var n=e.relatedTarget,o=t.content?(0,i.default)(t.content()).closest(".dx-dropdowneditor-overlay"):t._$popup;n&&t.option("opened")&&(0===(0,i.default)(n).closest(".dx-dropdowneditor-overlay",o).length&&t.close())})))},_detachFocusOutEvents:function(){I&&o.default.off(this._inputWrapper(),(0,y.addNamespace)("focusout",this.NAME))},_getInputClickHandler:function(t){var e=this;return t?function(t){e._executeOpenAction(t)}:function(t){e._focusInput()}},_openHandler:function(){this._toggleOpenState()},_executeOpenAction:function(t){this._openOnFieldClickAction({event:t})},_keyboardEventBindingTarget:function(){return this._input()},_focusInput:function(){return!this.option("disabled")&&(this.option("focusStateEnabled")&&!(0,l.focused)(this._input())&&o.default.trigger(this._input(),"focus"),!0)},_toggleOpenState:function(t){this._focusInput()&&(this.option("readOnly")||(t=arguments.length?t:!this.option("opened"),this.option("opened",t)))},_renderOpenedState:function(){var t=this.option("opened");t&&this._createPopup(),this.$element().toggleClass("dx-dropdowneditor-active",t),this._setPopupOption("visible",t),this.setAria({expanded:t}),this.setAria("owns",t?this._popupContentId:void 0,this.$element())},_createPopup:function(){this._$popup||(this._$popup=(0,i.default)("<div>").addClass("dx-dropdowneditor-overlay").addClass(this.option("customOverlayCssClass")).appendTo(this.$element()),this._renderPopup(),this._renderPopupContent())},_renderPopupContent:s.noop,_renderPopup:function(){var t=(0,d.extend)(this._popupConfig(),this._options.cache("dropDownOptions"));this._popup=this._createComponent(this._$popup,S.default,t),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this._contentReadyHandler(),this._setPopupContentId(this._popup.$content()),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_setPopupContentId:function(t){this._popupContentId="dx-"+new r.default,this.setAria("id",this._popupContentId,t)},_contentReadyHandler:s.noop,_popupConfig:function(){return{onInitialized:this._popupInitializedHandler(),position:(0,d.extend)(this.option("popupPosition"),{of:this.$element()}),showTitle:this.option("dropDownOptions.showTitle"),width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:this._closeOutsideDropDownHandler.bind(this),animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,toolbarItems:this._getPopupToolbarItems(),onPositioned:this._popupPositionedHandler.bind(this),fullScreen:!1,contentTemplate:null}},_popupInitializedHandler:function(){var t=this;if(this.option("onPopupInitialized"))return function(e){t._popupInitializedAction({popup:e.component})}},_popupPositionedHandler:function(t){t.position&&this._popup.overlayContent().toggleClass("dx-dropdowneditor-overlay-flipped",t.position.v.flip)},_popupShowingHandler:s.noop,_popupHidingHandler:function(){this.option("opened",!1)},_popupShownHandler:function(){this._openAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_popupHiddenHandler:function(){this._closeAction(),this._$validationMessage&&this._$validationMessage.dxOverlay("option","position",this._getValidationMessagePosition())},_getValidationMessagePosition:function(){var t="below";if(this._popup&&this._popup.option("visible")){var e=(0,p.setup)(this.$element()).top,n=(0,p.setup)(this._popup.$content()).top;t=e+this.option("popupPosition").offset.v>n?"below":"above"}return this.callBase(t)},_closeOutsideDropDownHandler:function(t){var e=t.target,n=(0,i.default)(e),o=this.getButton("dropDown"),r=o&&o.$element(),a=!!n.closest(this.$element()).length,s=!!n.closest(r).length;return!a&&!s},_clean:function(){delete this._openOnFieldClickAction,this._$popup&&(this._$popup.remove(),delete this._$popup,delete this._popup),this.callBase()},_setPopupOption:function(t,e){this._setWidgetOption("_popup",arguments)},_validatedOpening:function(){this.option("readOnly")||this._toggleOpenState(!0)},_getPopupToolbarItems:function(){return"useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[]},_getFirstPopupElement:function(){return this._popup._wrapper().find(".dx-popup-done.dx-button")},_getLastPopupElement:function(){return this._popup._wrapper().find(".dx-popup-cancel.dx-button")},_popupElementTabHandler:function(t){var e=(0,i.default)(t.currentTarget);(t.shiftKey&&e.is(this._getFirstPopupElement())||!t.shiftKey&&e.is(this._getLastPopupElement()))&&(o.default.trigger(this._input(),"focus"),t.preventDefault())},_popupElementEscHandler:function(){o.default.trigger(this._input(),"focus"),this.close()},_popupButtonInitializedHandler:function(t){t.component.registerKeyHandler("tab",this._popupElementTabHandler.bind(this)),t.component.registerKeyHandler("escape",this._popupElementEscHandler.bind(this))},_popupToolbarItemsConfig:function(){var t=[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}},{shortcut:"cancel",options:{onClick:this._cancelButtonHandler.bind(this),text:this.option("cancelButtonText"),onInitialized:this._popupButtonInitializedHandler.bind(this)}}];return this._applyButtonsLocation(t)},_applyButtonsLocation:function(t){var e=this.option("buttonsLocation"),n=t;if("default"!==e){var i=(0,s.splitPair)(e);(0,u.each)(n,(function(t,e){(0,d.extend)(e,{toolbar:i[0],location:i[1]})}))}return n},_applyButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_cancelButtonHandler:function(){this.close(),this.option("focusStateEnabled")&&this.focus()},_updatePopupWidth:s.noop,_popupOptionChanged:function(t){var e=_.default.getOptionsFromContainer(t);this._setPopupOption(e),-1!==Object.keys(e).indexOf("width")&&void 0===e.width&&this._updatePopupWidth()},_renderSubmitElement:function(){this.option("useHiddenSubmitElement")&&(this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()))},_setSubmitValue:function(){this._getSubmitElement().val(this.option("value"))},_getSubmitElement:function(){return this.option("useHiddenSubmitElement")?this._$submitElement:this.callBase()},_dispose:function(){this._detachFocusOutEvents(),this.callBase()},_setDeprecatedOptions:function(){this.callBase(),(0,d.extend)(this._deprecatedOptions,{showPopupTitle:{since:"20.1",alias:"dropDownOptions.showTitle"}})},_optionChanged:function(t){switch(t.name){case"opened":this._renderOpenedState();break;case"onOpened":case"onClosed":this._initVisibilityActions();break;case"onPopupInitialized":this._initPopupInitializedAction();break;case"fieldTemplate":(0,c.isDefined)(t.value)?this._renderField():this._invalidate();break;case"acceptCustomValue":case"openOnFieldClick":this._invalidate();break;case"dropDownButtonTemplate":case"showDropDownButton":this._updateButtons(["dropDown"]);break;case"dropDownOptions":this._popupOptionChanged(t),this._options.cache("dropDownOptions",this.option("dropDownOptions"));break;case"popupPosition":case"deferRendering":break;case"applyValueMode":case"applyButtonText":case"cancelButtonText":case"buttonsLocation":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"showPopupTitle":this._setPopupOption("showTitle",t.value);break;case"useHiddenSubmitElement":this._$submitElement&&(this._$submitElement.remove(),this._$submitElement=void 0),this._renderSubmitElement();break;case"rtlEnabled":this._updatePopupPosition(t.value),this.callBase(t);break;default:this.callBase(t)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)},field:function(){return(0,h.getPublicElement)(this._input())},content:function(){return this._popup?this._popup.content():null}});(0,a.default)("dxDropDownEditor",T),t.exports=T,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i};function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=function(){function t(e,n,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.instance=null,this.$container=null,this.$placeMarker=null,this.editor=n,this.name=e,this.options=i||{}}var e,n,i;return e=t,(n=[{key:"_addPlaceMarker",value:function(t){this.$placeMarker=(0,r.default)("<div>").appendTo(t)}},{key:"_addToContainer",value:function(t){var e=this.$placeMarker,n=this.$container;e?e.replaceWith(t):t.appendTo(n)}},{key:"_attachEvents",value:function(){throw"Not implemented"}},{key:"_create",value:function(){throw"Not implemented"}},{key:"_isRendered",value:function(){return!!this.instance}},{key:"_isVisible",value:function(){var t=this.editor;return this.options.visible||!t.option("readOnly")}},{key:"_isDisabled",value:function(){throw"Not implemented"}},{key:"_shouldRender",value:function(){return this._isVisible()&&!this._isRendered()}},{key:"dispose",value:function(){var t=this.instance,e=this.$placeMarker;t&&(t.dispose?t.dispose():t.remove(),this.instance=null),e&&e.remove()}},{key:"render",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.$container;if(this.$container=t,this._isVisible()){var e=this._create(),n=e.instance,i=e.$element;this.instance=n,this._attachEvents(n,i)}else this._addPlaceMarker(t)}},{key:"update",value:function(){return this._shouldRender()&&this.render(),!!this.instance}}])&&a(e.prototype,n),i&&a(e,i),t}();e.default=s},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o,r,a=n(3),s=n(10).getWindow(),l=n(6),u=n(55),c=n(8),d=n(33),h=n(383),f=n(31),p=n(46).dasherize,m=n(0).extend,g=n(97),_=n(17).getPublicElement,v=n(11),y=n(28),b=n(101),w=n(90),x=n(2),C=n(4).noop,S=n(106),k=n(4),I=n(98).EmptyTemplate,T=n(7),E=n(24).getBoundingRect,O=T.when,M=T.fromPromise,P=T.Deferred,D="dxDraggable",A=v.addNamespace(b.start,D),R=v.addNamespace(b.move,D),B=v.addNamespace(b.end,D),N=v.addNamespace(b.enter,D),L=v.addNamespace(b.leave,D),F=v.addNamespace(y.down,D),V=function(t){return{x:t.pageX-a(s).scrollLeft(),y:t.pageY-a(s).scrollTop()}},z=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._preventScroll=!0,this._component=n,"vertical"===e?(this._scrollValue="scrollTop",this._overFlowAttr="overflowY",this._sizeAttr="height",this._scrollSizeProp="scrollHeight",this._limitProps={start:"top",end:"bottom"}):(this._scrollValue="scrollLeft",this._overFlowAttr="overflowX",this._sizeAttr="width",this._scrollSizeProp="scrollWidth",this._limitProps={start:"left",end:"right"})}var e,n,o;return e=t,(n=[{key:"updateScrollable",value:function(t,e){var n=this;t.some((function(t){return n._trySetScrollable(t,e)}))||(n._$scrollableAtPointer=null,n._scrollSpeed=0)}},{key:"isScrolling",value:function(){return!!this._scrollSpeed}},{key:"isScrollable",value:function(t){return("auto"===t.css(this._overFlowAttr)||t.hasClass("dx-scrollable-container"))&&t.prop(this._scrollSizeProp)>t[this._sizeAttr]()}},{key:"_trySetScrollable",value:function(t,e){var n,i=a(t),o=this._component.option("scrollSensitivity"),r=this.isScrollable(i);return r&&(o>(n=this._calculateDistanceToBorders(i,e))[this._limitProps.start]?this._preventScroll||(this._scrollSpeed=-this._calculateScrollSpeed(n[this._limitProps.start]),this._$scrollableAtPointer=i):o>n[this._limitProps.end]?this._preventScroll||(this._scrollSpeed=this._calculateScrollSpeed(n[this._limitProps.end]),this._$scrollableAtPointer=i):(r=!1,this._preventScroll=!1)),r}},{key:"_calculateDistanceToBorders",value:function(t,e){var n,i=t.get(0);return i?(n=E(i),{left:e.x-n.left,top:e.y-n.top,right:n.right-e.x,bottom:n.bottom-e.y}):{}}},{key:"_calculateScrollSpeed",value:function(t){var e=this._component,n=e.option("scrollSensitivity"),i=e.option("scrollSpeed");return Math.ceil(Math.pow((n-t)/n,2)*i)}},{key:"scrollByStep",value:function(){var t;if(this._$scrollableAtPointer&&this._scrollSpeed){if(this._$scrollableAtPointer.hasClass("dx-scrollable-container")){var e=this._$scrollableAtPointer.closest(".dx-scrollable"),n=e.data("dxScrollable")||e.data("dxScrollView");n&&((t=n.scrollOffset())[this._limitProps.start]+=this._scrollSpeed,n.scrollTo(t))}else t=this._$scrollableAtPointer[this._scrollValue]()+this._scrollSpeed,this._$scrollableAtPointer[this._scrollValue](t);var i=this._component._dragMoveArgs;i&&this._component._dragMoveHandler(i)}}},{key:"reset",value:function(){this._$scrollableAtPointer=null,this._scrollSpeed=0,this._preventScroll=!0}},{key:"isOutsideScrollable",value:function(t,e){if(!t)return!1;var n=E(t.get(0)),i=n[this._limitProps.start],o=n[this._sizeAttr],r=V(e),a="width"===this._sizeAttr?r.x:r.y;return a<i||a>i+o}}])&&i(e.prototype,n),o&&i(e,o),t}(),j=h.inherit({ctor:function(t){this.callBase(),this._strategy=t},_step:function(){var t=this._strategy._horizontalScrollHelper,e=this._strategy._verticalScrollHelper;t&&t.scrollByStep(),e&&e.scrollByStep()}}),H=g.inherit({reset:C,dragMove:C,dragEnter:C,dragLeave:C,dragEnd:function(t){return this._getSourceDraggable()._fireRemoveEvent(t),(new P).resolve()},_fireRemoveEvent:C,_getDefaultOptions:function(){return m(this.callBase(),{onDragStart:null,onDragMove:null,onDragEnd:null,onDrop:null,immediate:!0,dragDirection:"both",boundary:void 0,boundOffset:0,allowMoveByClick:!1,itemData:null,container:void 0,dragTemplate:void 0,contentTemplate:"content",handle:"",filter:"",clone:!1,autoScroll:!0,scrollSpeed:30,scrollSensitivity:60,group:void 0,data:void 0})},_setOptionsByReference:function(){this.callBase.apply(this,arguments),m(this._optionsByReference,{component:!0,group:!0,itemData:!0,data:!0})},_init:function(){this.callBase(),this._attachEventHandlers(),this._scrollAnimator=new j(this),this._horizontalScrollHelper=new z("horizontal",this),this._verticalScrollHelper=new z("vertical",this)},_normalizeCursorOffset:function(t){return x.isObject(t)&&(t={h:t.x,v:t.y}),{left:(t=k.splitPair(t).map((function(t){return parseFloat(t)})))[0],top:1===t.length?t[0]:t[1]}},_getNormalizedCursorOffset:function(t,e){return x.isFunction(t)&&(t=t.call(this,e)),this._normalizeCursorOffset(t)},_calculateElementOffset:function(t){var e,n,i=t.event,o=a(t.itemElement),r=a(t.dragElement),s=this._dragElementIsCloned(),l=this.option("cursorOffset"),u={left:0,top:0},c=this._initialLocate=d.locate(r);return(s||t.initialOffset||l)&&(e=t.initialOffset||o.offset(),l&&(u=this._getNormalizedCursorOffset(l,t),isFinite(u.left)&&(e.left=i.pageX),isFinite(u.top)&&(e.top=i.pageY)),n=r.offset(),e.top-=n.top+(u.top||0)-c.top,e.left-=n.left+(u.left||0)-c.left),e},_initPosition:function(t){var e=a(t.dragElement),n=this._calculateElementOffset(t);n&&this._move(n,e),this._startPosition=d.locate(e)},_startAnimator:function(){this._scrollAnimator.inProgress()||this._scrollAnimator.start()},_stopAnimator:function(){this._scrollAnimator.stop()},_addWidgetPrefix:function(t){var e=this.NAME;return p(e)+(t?"-"+t:"")},_getItemsSelector:function(){return this.option("filter")||""},_$content:function(){var t=this.$element(),e=t.children(".dx-template-wrapper");return e.length?e:t},_attachEventHandlers:function(){var t=this;if(!this.option("disabled")){var e=this._$content(),n=this._getItemsSelector(),i=this.option("allowMoveByClick"),o={direction:this.option("dragDirection"),immediate:this.option("immediate"),checkDropTarget:function(e,n){var i=t.option("group"),o=t._getSourceDraggable().option("group"),r=t._getScrollable(e);return!t._verticalScrollHelper.isOutsideScrollable(r,n)&&!t._horizontalScrollHelper.isOutsideScrollable(r,n)&&(o&&o===i)}};i&&(e=this._getArea(),l.on(e,F,o,this._pointerDownHandler.bind(this))),">"===n[0]&&(n=n.slice(1)),l.on(e,A,n,o,this._dragStartHandler.bind(this)),l.on(e,R,o,this._dragMoveHandler.bind(this)),l.on(e,B,o,this._dragEndHandler.bind(this)),l.on(e,N,o,this._dragEnterHandler.bind(this)),l.on(e,L,o,this._dragLeaveHandler.bind(this))}},_dragElementIsCloned:function(){return this._$dragElement&&this._$dragElement.hasClass(this._addWidgetPrefix("clone"))},_getDragTemplateArgs:function(t,e){return{container:_(e),model:{itemData:this.option("itemData"),itemElement:_(t)}}},_createDragElement:function(t){var e=t,n=this.option("clone"),i=this._getContainer(),o=this.option("dragTemplate");return o?(o=this._getTemplate(o),e=a("<div>").appendTo(i),o.render(this._getDragTemplateArgs(t,e))):n&&(e=a("<div>").appendTo(i),t.clone().css({width:t.css("width"),height:t.css("height")}).appendTo(e)),e.toggleClass(this._addWidgetPrefix("clone"),e.get(0)!==t.get(0)).toggleClass("dx-rtl",this.option("rtlEnabled"))},_resetDragElement:function(){this._dragElementIsCloned()?this._$dragElement.remove():this._toggleDraggingClass(!1),this._$dragElement=null},_resetSourceElement:function(){this._toggleDragSourceClass(!1),this._$sourceElement=null},_detachEventHandlers:function(){l.off(this._$content(),"."+D),l.off(this._getArea(),"."+D)},_move:function(t,e){d.move(e||this._$dragElement,t)},_getDraggableElement:function(t){var e=this._getSourceElement();if(e)return e;if(this.option("allowMoveByClick"))return this.$element();var n=a(t&&t.target),i=this._getItemsSelector();if(">"===i[0]){var o=this._$content().find(i);o.is(n)||(n=n.closest(o))}return n},_getSourceElement:function(){return this._getSourceDraggable()._$sourceElement},_pointerDownHandler:function(t){if(!v.needSkipEvent(t)){var e={},n=this.$element(),i=this.option("dragDirection");"horizontal"!==i&&"both"!==i||(e.left=t.pageX-n.offset().left+d.locate(n).left-n.width()/2),"vertical"!==i&&"both"!==i||(e.top=t.pageY-n.offset().top+d.locate(n).top-n.height()/2),this._move(e,n),this._getAction("onDragMove")(this._getEventArgs(t))}},_isValidElement:function(t,e){var n=this.option("handle"),i=a(t.originalEvent&&t.originalEvent.target);return!(n&&!i.closest(n).length)&&(!!e.length&&!e.is(".dx-state-disabled, .dx-state-disabled *"))},_dragStartHandler:function(t){var e=this._getDraggableElement(t);if(!this._$sourceElement)if(this._isValidElement(t,e)){var n=this._getDragStartArgs(t,e);if(this._getAction("onDragStart")(n),n.cancel)t.cancel=!0;else{this.option("itemData",n.itemData),this._setSourceDraggable(),this._$sourceElement=e;var i=e.offset(),o=this._$dragElement=this._createDragElement(e);this._toggleDraggingClass(!0),this._toggleDragSourceClass(!0);var r="fixed"===o.css("position");this._initPosition(m({},n,{dragElement:o.get(0),initialOffset:r&&i}));var a=this._getArea(),s=this._getAreaOffset(a),l=this._getBoundOffset(),u=a.outerWidth(),c=a.outerHeight(),d=o.width(),h=o.height(),f=o.offset().left-s.left,p=o.offset().top-s.top;a.length&&(t.maxLeftOffset=f-l.left,t.maxRightOffset=u-f-d-l.right,t.maxTopOffset=p-l.top,t.maxBottomOffset=c-p-h-l.bottom),this.option("autoScroll")&&this._startAnimator()}}else t.cancel=!0},_getAreaOffset:function(t){var e=t&&w.offset(t);return e||{left:0,top:0}},_toggleDraggingClass:function(t){this._$dragElement&&this._$dragElement.toggleClass(this._addWidgetPrefix("dragging"),t)},_toggleDragSourceClass:function(t,e){var n=e||this._$sourceElement;n&&n.toggleClass(this._addWidgetPrefix("source"),t)},_getBoundOffset:function(){var t=this.option("boundOffset");return x.isFunction(t)&&(t=t.call(this)),u.quadToObject(t)},_getArea:function(){var t=this.option("boundary");return x.isFunction(t)&&(t=t.call(this)),a(t)},_getContainer:function(){var t=this.option("container");return void 0===t&&(t=S.value()),a(t)},_dragMoveHandler:function(t){if(this._dragMoveArgs=t,this._$dragElement){var e=t.offset,n=this._startPosition;this._move({left:n.left+e.x,top:n.top+e.y}),this._updateScrollable(t);var i=this._getEventArgs(t);if(this._getAction("onDragMove")(i),!0!==i.cancel)this._getTargetDraggable().dragMove(t)}else t.cancel=!0},_updateScrollable:function(t){if(this.option("autoScroll")){var e=V(t),n=this.getElementsFromPoint(e);this._verticalScrollHelper.updateScrollable(n,e),this._horizontalScrollHelper.updateScrollable(n,e)}},getElementsFromPoint:function(t,e){var n=(e||this._$dragElement.get(0)).ownerDocument;if(f.msie){var i=n.msElementsFromPoint(t.x,t.y);return i?Array.prototype.slice.call(i):[]}return n.elementsFromPoint(t.x,t.y)},_getScrollable:function(t){var e,n=this;return t.parents().toArray().some((function(t){var i=a(t);if(n._horizontalScrollHelper.isScrollable(i)||n._verticalScrollHelper.isScrollable(i))return e=i,!0})),e},_defaultActionArgs:function(){var t=this.callBase.apply(this,arguments),e=this.option("component");return e&&(t.component=e,t.element=e.element()),t},_getEventArgs:function(t){var e=this._getSourceDraggable(),n=this._getTargetDraggable();return{event:t,itemData:e.option("itemData"),itemElement:_(e._$sourceElement),fromComponent:e.option("component")||e,toComponent:n.option("component")||n,fromData:e.option("data"),toData:n.option("data")}},_getDragStartArgs:function(t,e){var n=this._getEventArgs(t);return{event:n.event,itemData:n.itemData,itemElement:e,fromData:n.fromData}},_revertItemToInitialPosition:function(){!this._dragElementIsCloned()&&this._move(this._initialLocate,this._$sourceElement)},_dragEndHandler:function(t){var e=this,n=new P,i=this._getEventArgs(t),o=this._getEventArgs(t),r=this._getTargetDraggable(),a=!0;try{this._getAction("onDragEnd")(i)}finally{O(M(i.cancel)).done((function(t){if(!t&&(r!==e&&r._getAction("onDrop")(o),!o.cancel))return a=!1,void O(M(r.dragEnd(i))).always(n.resolve);n.resolve()})).fail(n.resolve),n.done((function(){a&&e._revertItemToInitialPosition(),e.reset(),r.reset(),e._stopAnimator(),e._horizontalScrollHelper.reset(),e._verticalScrollHelper.reset(),e._resetDragElement(),e._resetSourceElement(),e._resetTargetDraggable(),e._resetSourceDraggable()}))}},_isTargetOverAnotherDraggable:function(t){var e=this,n=this._getSourceDraggable();if(this===n)return!1;if(!n._dragElementIsCloned())return!0;var i=n.$element();return this.getElementsFromPoint({x:t.pageX,y:t.pageY},t.target).filter((function(t){return a(t).hasClass(e._addWidgetPrefix())}))[0]!==i.get(0)},_dragEnterHandler:function(t){this._isTargetOverAnotherDraggable(t)&&this._setTargetDraggable(),this._getSourceDraggable().dragEnter(t)},_dragLeaveHandler:function(t){this._resetTargetDraggable(),this!==this._getSourceDraggable()&&this.reset(),this._getSourceDraggable().dragLeave(t)},_getAction:function(t){return this["_"+t+"Action"]||this._createActionByOption(t)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.option("contentTemplate")&&(this._templateManager.addDefaultTemplates({content:new I}),this.callBase.apply(this,arguments))},_render:function(){this.callBase(),this.$element().addClass(this._addWidgetPrefix());var t=this._templateManager.anonymousTemplateName===this.option("contentTemplate"),e=this._getTemplateByOption("contentTemplate");e&&a(e.render({container:this.element(),transclude:t}))},_optionChanged:function(t){var e=t.name;switch(e){case"onDragStart":case"onDragMove":case"onDragEnd":case"onDrop":this["_"+e+"Action"]=this._createActionByOption(e);break;case"dragTemplate":case"contentTemplate":case"container":case"clone":break;case"allowMoveByClick":case"dragDirection":case"disabled":case"boundary":case"filter":case"immediate":this._resetDragElement(),this._detachEventHandlers(),this._attachEventHandlers();break;case"autoScroll":this._verticalScrollHelper.reset(),this._horizontalScrollHelper.reset();break;case"scrollSensitivity":case"scrollSpeed":case"boundOffset":case"handle":case"group":case"data":case"itemData":break;default:this.callBase(t)}},_getTargetDraggable:function(){return o||this},_getSourceDraggable:function(){return r||this},_setTargetDraggable:function(){var t=this.option("group"),e=this._getSourceDraggable();t&&t===e.option("group")&&(o=this)},_setSourceDraggable:function(){r=this},_resetSourceDraggable:function(){r=null},_resetTargetDraggable:function(){o=null},_dispose:function(){this.callBase(),this._detachEventHandlers(),this._resetDragElement(),this._resetTargetDraggable(),this._resetSourceDraggable(),this._$sourceElement=null,this._stopAnimator()}});c(D,H),t.exports=H,t.exports.default=t.exports},function(t,e,n){"use strict";var i=c(n(3)),o=c(n(15)),r=c(n(10)),a=c(n(6)),s=c(n(23)),l=c(n(2)),u=n(152);function c(t){return t&&t.__esModule?t:{default:t}}var d=r.default.getWindow(),h=r.default.getNavigator(),f={EXCEL:"xlsx",CSS:"css",PNG:"png",JPEG:"jpeg",GIF:"gif",SVG:"svg",PDF:"pdf"},p=e.MIME_TYPES={CSS:"text/css",EXCEL:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",PNG:"image/png",JPEG:"image/jpeg",GIF:"image/gif",SVG:"image/svg+xml",PDF:"application/pdf"};e.fileSaver={_revokeObjectURLTimeout:3e4,_getDataUri:function(t,e){var n=this._getMimeType(t);return"data:".concat(n,";base64,").concat(e)},_getMimeType:function(t){return p[t]||"application/octet-stream"},_linkDownloader:function(t,e){var n=o.default.createElement("a");return n.download=t,n.href=e,n.target="_blank",n},_formDownloader:function(t,e,n,o){var r={method:"post",action:t,enctype:"multipart/form-data"},s=(0,i.default)("<form>").css({display:"none"}).attr(r);s.append('<input type="hidden" name="fileName" value="'+e+'" />'),s.append('<input type="hidden" name="contentType" value="'+n+'" />'),s.append('<input type="hidden" name="data" value="'+o+'" />'),s.appendTo("body"),a.default.trigger(s,"submit"),a.default.trigger(s,"submit")&&s.remove()},_saveByProxy:function(t,e,n,i){var o=this._getMimeType(n);return this._formDownloader(t,e,o,i)},_winJSBlobSave:function(t,e,n){var i=new Windows.Storage.Pickers.FileSavePicker;i.suggestedStartLocation=Windows.Storage.Pickers.PickerLocationId.documentsLibrary;var o=f[n];if(o){var r=this._getMimeType(n);i.fileTypeChoices.insert(r,["."+o])}i.suggestedFileName=e,i.pickSaveFileAsync().then((function(e){e&&e.openAsync(Windows.Storage.FileAccessMode.readWrite).then((function(e){var n=t.msDetachStream();Windows.Storage.Streams.RandomAccessStream.copyAsync(n,e).then((function(){e.flushAsync().done((function(){n.close(),e.close()}))}))}))}))},_click:function(t){try{t.dispatchEvent(new MouseEvent("click",{cancelable:!0}))}catch(n){var e=o.default.getDocument().createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,d,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}},_saveBlobAs:function(t,e,n){var i=this;if(this._blobSaved=!1,l.default.isDefined(h.msSaveOrOpenBlob))h.msSaveOrOpenBlob(n,t),this._blobSaved=!0;else if(l.default.isDefined(d.WinJS))this._winJSBlobSave(n,t,e),this._blobSaved=!0;else{var o=d.URL||d.webkitURL||d.mozURL||d.msURL||d.oURL;if(l.default.isDefined(o)){var r=o.createObjectURL(n),a=this._linkDownloader(t,r);setTimeout((function(){o.revokeObjectURL(r),i._objectUrlRevoked=!0}),this._revokeObjectURLTimeout),this._click(a)}else u.logger.warn("window.URL || window.webkitURL || window.mozURL || window.msURL || window.oURL is not defined")}},saveAs:function(t,e,n,i,o){var r=f[e];if(r&&(t+="."+r),l.default.isDefined(i)&&s.default.log("W0001","Export","proxyURL","19.2","This option is no longer required"),o)this._saveByProxy(i,t,e,n);else if(l.default.isFunction(d.Blob))this._saveBlobAs(t,e,n);else if(l.default.isDefined(i)&&!l.default.isDefined(h.userAgent.match(/iPad/i)))this._saveByProxy(i,t,e,n);else{l.default.isDefined(h.userAgent.match(/iPad/i))||s.default.log("E1034");var a=this._linkDownloader(t,this._getDataUri(e,n));this._click(a)}}}},function(t,e,n){"use strict";var i=n(162).dxBaseGauge,o=n(2),r=n(5).each,a=n(0).extend,s=o.isDefined,l=Array.isArray,u=o.isNumeric,c=n(226),d=n(13).map,h=n(13).normalizeEnum,f=n(162).compareArrays,p=isFinite,m=Number,g=Math.min,_=Math.max,v=a,y=r,b=n(4).noop,w=[1,2,5];function x(t,e){return null===t?t:p(t)?m(t):e}function C(t){return l(t)?t:u(t)?[t]:null}function S(t){return t?t.value:null}function k(t,e,n){for(var i=t[e],o=l(n)?d(n,S):[],r=0,a=o.length,s=[];r<a;++r)s.push(x(o[r],i[r]));t[e]=s}function I(t){var e;void 0===t.option("value")&&void 0===t.option("subvalues")&&void 0!==t.option("valueIndicators")&&((e=t).value=e.subvalues=b,e._setupValue=e._setupSubvalues=e._updateValueIndicator=e._updateSubvalueIndicators=null,function(t){t._indicatorValues=[],k(t,"_indicatorValues",t.option("valueIndicators")),t._valueIndicators=[];var e=t._applyMostlyTotalChange;t._applyMostlyTotalChange=function(){k(this,"_indicatorValues",this.option("valueIndicators")),e.call(this)},t._updateActiveElements=T,t._prepareValueIndicators=E,t._disposeValueIndicators=O,t._cleanValueIndicators=M,t.indicatorValue=P}(t))}function T(){var t=this;y(t._valueIndicators,(function(e,n){n.value(t._indicatorValues[n.index],t._noAnimation)}))}function E(){var t,e=this,n=e._valueIndicators||[],i=e.option("valueIndicators"),o=[],r=0;for(t=l(i)?i.length:0;r<t;++r)o.push(i[r]);for(t=n.length;r<t;++r)o.push(null);var a=[];return y(o,(function(t,i){var o=n[t];if(i){var r=e._prepareIndicatorSettings(i,"valueIndicatorType");o&&o.type!==r.type&&(o.dispose(),o=null),o||(o=e._createIndicator(r.type,e._renderer.root,"dxg-value-indicator","value-indicator",t,!0)),o&&(o.index=t,o.render(r),a.push(o))}else o&&o.dispose()})),e._valueIndicators=a,e._valueIndicators}function O(){y(this._valueIndicators,(function(t,e){e.dispose()})),this._valueIndicators=null}function M(){y(this._valueIndicators,(function(t,e){e.clean()}))}function P(t,e){return function(t,e,n,i,o){return void 0!==o?(void 0!==n[i]&&(n[i]=x(o,n[i]),e[i]&&e[i].value(n[i])),t):n[i]}(this,this._valueIndicators,this._indicatorValues,t,e)}function D(t){this._parameters=t,this._indicators=[]}e.dxGauge=i.inherit({_initCore:function(){var t=this,e=t._renderer;t._setupValue(t.option("value")),t.__subvalues=C(t.option("subvalues")),t._setupSubvalues(t.__subvalues),I(t),t.callBase.apply(t,arguments),t._rangeContainer=new t._factory.RangeContainer({renderer:e,container:e.root,translator:t._translator,themeManager:t._themeManager}),t._initScale()},_fontFields:["scale.label.font","valueIndicators.rangebar.text.font","valueIndicators.textcloud.text.font","indicator.text.font"],_initScale:function(){this._scaleGroup=this._renderer.g().attr({class:"dxg-scale"}).linkOn(this._renderer.root,"scale"),this._scale=new c.Axis({incidentOccurred:this._incidentOccurred,renderer:this._renderer,axesContainerGroup:this._scaleGroup,axisType:this._scaleTypes.type,drawingType:this._scaleTypes.drawingType,widgetClass:"dxg"})},_disposeCore:function(){var t=this;t.callBase.apply(t,arguments),t._scale.dispose(),t._scaleGroup.linkOff(),t._rangeContainer.dispose(),t._disposeValueIndicators(),t._scale=t._scaleGroup=t._rangeContainer=null},_disposeValueIndicators:function(){this._valueIndicator&&this._valueIndicator.dispose(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.dispose(),this._valueIndicator=this._subvalueIndicatorsSet=null},_setupDomainCore:function(){var t=this.option("scale")||{},e=this.option("startValue"),n=this.option("endValue");e=u(e)?m(e):u(t.startValue)?m(t.startValue):0,n=u(n)?m(n):u(t.endValue)?m(t.endValue):100,this._baseValue=e<n?e:n,this._translator.setDomain(e,n)},_cleanContent:function(){this._rangeContainer.clean(),this._cleanValueIndicators()},_measureScale:function(t){var e=t.tick,n=e.visible&&e.length>0&&e.width>0,i=t.minorTick,o=i.visible&&i.length>0&&i.width>0,r=t.label,s=Number(r.indentFromTick);if(!n&&!o&&!r.visible)return{};var l=this._scale.measureLabels(a({},this._canvas)),u=this._getScaleLayoutValue(),c={min:u,max:u},d=this._getTicksCoefficients(t),h=d.inner,f=d.outer;return n&&(c.min=g(c.min,u-h*e.length),c.max=_(c.max,u+f*e.length)),o&&(c.min=g(c.min,u-h*i.length),c.max=_(c.max,u+f*i.length)),r.visible&&this._correctScaleIndents(c,s,l),c},_renderContent:function(){var t=this,e=t._prepareScaleSettings();t._rangeContainer.render(v(t._getOption("rangeContainer"),{vertical:t._area.vertical})),t._renderScale(e);var n=d([t._rangeContainer].concat(t._prepareValueIndicators()),(function(t){return t&&t.enabled?t:null}));t._applyMainLayout(n,t._measureScale(e)),y(n,(function(e,n){n.resize(t._getElementLayout(n.getOffset()))})),t._shiftScale(t._getElementLayout(0),e),t._beginValueChanging(),t._updateActiveElements(),t._endValueChanging()},_prepareScaleSettings:function(){var t=this,e=t.option("scale"),n=a(!0,{},t._themeManager.theme("scale"),e);return n.label.indentFromAxis=0,n.isHorizontal=!t._area.vertical,n.forceUserTickInterval|=s(e)&&s(e.tickInterval)&&!s(e.scaleDivisionFactor),n.axisDivisionFactor=n.scaleDivisionFactor||t._gridSpacingFactor,n.minorAxisDivisionFactor=n.minorScaleDivisionFactor||5,n.numberMultipliers=w,n.tickOrientation=t._getTicksOrientation(n),n.label.useRangeColors&&(n.label.customizeColor=function(){return t._rangeContainer.getColorForValue(this.value)}),n},_renderScale:function(t){var e=this._translator.getDomain(),n=e[0],i=e[1],o=this._translator.getCodomain(),r=n>i,s=g(n,i),l=_(n,i);t.min=s,t.max=l,t.startAngle=90-o[0],t.endAngle=90-o[1],t.skipViewportExtending=!0,this._scale.updateOptions(t),this._scale.setBusinessRange({axisType:"continuous",dataType:"numeric",min:s,max:l,invert:r}),this._updateScaleTickIndent(t),this._scaleGroup.linkAppend(),this._scale.draw(a({},this._canvas))},_updateIndicatorSettings:function(t){t.currentValue=t.baseValue=p(this._translator.translate(t.baseValue))?m(t.baseValue):this._baseValue,t.vertical=this._area.vertical,t.text&&!t.text.format&&(t.text.format=this._defaultFormatOptions)},_prepareIndicatorSettings:function(t,e){var n=this._themeManager.theme("valueIndicators"),i=h(t.type||this._themeManager.theme(e)),o=v(!0,{},n._default,n[i],t);return o.type=i,o.animation=this._animationSettings,o.containerBackgroundColor=this._containerBackgroundColor,this._updateIndicatorSettings(o),o},_cleanValueIndicators:function(){this._valueIndicator&&this._valueIndicator.clean(),this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.clean()},_prepareValueIndicators:function(){return this._prepareValueIndicator(),null!==this.__subvalues&&this._prepareSubvalueIndicators(),[this._valueIndicator,this._subvalueIndicatorsSet]},_updateActiveElements:function(){this._updateValueIndicator(),this._updateSubvalueIndicators()},_prepareValueIndicator:function(){var t=this._valueIndicator,e=this._prepareIndicatorSettings(this.option("valueIndicator")||{},"valueIndicatorType");t&&t.type!==e.type&&(t.dispose(),t=null),t||(t=this._valueIndicator=this._createIndicator(e.type,this._renderer.root,"dxg-value-indicator","value-indicator")),t.render(e)},_createSubvalueIndicatorsSet:function(){var t=this,e=t._renderer.root;return new D({createIndicator:function(n,i){return t._createIndicator(n,e,"dxg-subvalue-indicator","subvalue-indicator",i)},createPalette:function(e){return t._themeManager.createPalette(e)}})},_prepareSubvalueIndicators:function(){var t=this._subvalueIndicatorsSet,e=this._prepareIndicatorSettings(this.option("subvalueIndicator")||{},"subvalueIndicatorType");t||(t=this._subvalueIndicatorsSet=this._createSubvalueIndicatorsSet());var n=e.type!==t.type;t.type=e.type;var i=this._createIndicator(e.type,this._renderer.root);i&&(i.dispose(),t.render(e,n))},_setupValue:function(t){this.__value=x(t,this.__value)},_setupSubvalues:function(t){var e,n,i,o=void 0===t?this.__subvalues:C(t);if(null!==o){for(e=0,n=o.length,i=[];e<n;++e)i.push(x(o[e],this.__subvalues[e]));this.__subvalues=i}},_updateValueIndicator:function(){this._valueIndicator&&this._valueIndicator.value(this.__value,this._noAnimation)},_updateSubvalueIndicators:function(){this._subvalueIndicatorsSet&&this._subvalueIndicatorsSet.values(this.__subvalues,this._noAnimation)},value:function(t){return void 0!==t?(this._changeValue(t),this):this.__value},subvalues:function(t){return void 0!==t?(this._changeSubvalues(t),this):null!==this.__subvalues?this.__subvalues.slice():void 0},_changeValue:function(t){this._setupValue(t),this._beginValueChanging(),this._updateValueIndicator(),this.__value!==this.option("value")&&this.option("value",this.__value),this._endValueChanging()},_changeSubvalues:function(t){null!==this.__subvalues?(this._setupSubvalues(t),this._beginValueChanging(),this._updateSubvalueIndicators(),this._endValueChanging()):(this.__subvalues=C(t),this._setContentSize(),this._renderContent()),f(this.__subvalues,this.option("subvalues"))||this.option("subvalues",this.__subvalues)},_optionChangesMap:{scale:"DOMAIN",rangeContainer:"MOSTLY_TOTAL",valueIndicator:"MOSTLY_TOTAL",subvalueIndicator:"MOSTLY_TOTAL",containerBackgroundColor:"MOSTLY_TOTAL",value:"VALUE",subvalues:"SUBVALUES",valueIndicators:"MOSTLY_TOTAL"},_customChangesOrder:["VALUE","SUBVALUES"],_change_VALUE:function(){this._changeValue(this.option("value"))},_change_SUBVALUES:function(){this._changeSubvalues(this.option("subvalues"))},_applyMainLayout:null,_getElementLayout:null,_createIndicator:function(t,e,n,i,o,r){var a=this._factory.createIndicator({renderer:this._renderer,translator:this._translator,owner:e,tracker:this._tracker,className:n},t,r);return a&&(a.type=t,a._trackerInfo={type:i,index:o}),a},_getApproximateScreenRange:null}),D.prototype={constructor:D,dispose:function(){return y(this._indicators,(function(t,e){e.dispose()})),this._parameters=this._options=this._indicators=this._colorPalette=this._palette=null,this},clean:function(){return this._sample&&this._sample.clean().dispose(),y(this._indicators,(function(t,e){e.clean()})),this._sample=this._options=this._palette=null,this},render:function(t,e){var n=this;return n._options=t,n._sample=n._parameters.createIndicator(n.type),n._sample.render(t),n.enabled=n._sample.enabled,n._palette=s(t.palette)?n._parameters.createPalette(t.palette):null,n.enabled&&(n._generatePalette(n._indicators.length),n._indicators=d(n._indicators,(function(t,i){return e&&(t.dispose(),t=n._parameters.createIndicator(n.type,i)),t.render(n._getIndicatorOptions(i)),t}))),n},getOffset:function(){return this._sample.getOffset()},resize:function(t){return this._layout=t,y(this._indicators,(function(e,n){n.resize(t)})),this},measure:function(t){return this._sample.measure(t)},_getIndicatorOptions:function(t){var e=this._options;return this._colorPalette&&(e=v({},e,{color:this._colorPalette[t]})),e},_generatePalette:function(t){var e=null;this._palette&&(this._palette.reset(),e=this._palette.generateColors(t,{repeat:!0})),this._colorPalette=e},_adjustIndicatorsCount:function(t){var e,n,i,o=this._indicators,r=o.length;if(r>t){for(e=t,n=r;e<n;++e)o[e].clean().dispose();this._indicators=o.slice(0,t),this._generatePalette(o.length)}else if(r<t)for(this._generatePalette(t),e=r,n=t;e<n;++e)(i=this._parameters.createIndicator(this.type,e)).render(this._getIndicatorOptions(e)).resize(this._layout),o.push(i)},values:function(t,e){if(this.enabled)return void 0!==t?(l(t)||(t=p(t)?[Number(t)]:null),t&&(this._adjustIndicatorsCount(t.length),y(this._indicators,(function(n,i){i.value(t[n],e)}))),this):d(this._indicators,(function(t){return t.value()}))}},e.createIndicatorCreator=function(t){return function(e,n,i){var o=t[h(n)]||!i&&t._default;return o?new o(e):null}}},function(t,e,n){"use strict";var i=n(398),o=x(n(13)),r=n(2),a=x(n(280)),s=n(0),l=n(16),u=x(n(94)),c=x(n(281)),d=x(n(399)),h=x(n(282)),f=n(123),p=n(400),m=n(37),g=n(26),_=n(4),v=x(n(401)),y=x(n(727)),b=x(n(728)),w=x(n(729));function x(t){return t&&t.__esModule?t:{default:t}}function C(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S=a.default.convertTicksToValues,k=o.default.patchFontOptions,I=o.default.getVizRangeObject,T=o.default.getLogExt,E=o.default.raiseToExt,O=o.default.valueOf,M=Math,P=M.abs,D=M.max,A=M.min,R=Array.isArray,B=a.default.top,N=a.default.bottom,L=a.default.left,F=a.default.right,V=a.default.center,z="keep",j="shift",H="reset",W=864e5,U=6048e5;function G(t,e,n,i,o,r){var a,s=r.allowNegatives,l=r.linearThreshold;return d.default.tickGenerator({axisType:t.type,dataType:t.dataType,logBase:t.logarithmBase,allowNegatives:s,linearThreshold:l,axisDivisionFactor:o(t.axisDivisionFactor||50),minorAxisDivisionFactor:o(t.minorAxisDivisionFactor||15),numberMultipliers:t.numberMultipliers,calculateMinors:t.minorTick.visible||t.minorGrid.visible||t.calculateMinors,allowDecimals:t.allowDecimals,endOnTick:t.endOnTick,incidentOccurred:e,firstDayOfWeek:null===(a=t.workWeek)||void 0===a?void 0:a[0],skipTickGeneration:n,skipCalculationLimits:t.skipCalculationLimits,generateExtraTick:t.generateExtraTick,minTickInterval:t.minTickInterval,rangeIsEmpty:i})}function K(t,e,n){var i=t.getOptions();return(0,p.tick)(t,e,i.tick,i.grid,n,!1)}function q(t,e){var n=t.getOptions();return(0,p.tick)(t,e,n.minorTick,n.minorGrid)}function $(t,e,n){var i=t.getOptions();return(0,p.tick)(t,e,(0,s.extend)({},i.tick,{visible:i.showCustomBoundaryTicks}),i.grid,void 0,!1,n?-1:1)}function Y(t,e,n,i){(t||[]).forEach((function(t){return t[e](n,i)}))}function Z(t){Y(t,"initCoords")}function X(t,e){Y(t,"drawMark",e)}function J(t,e){Y(t,"drawGrid",e)}function Q(t,e,n){Y(t,"updateTickPosition",e,n)}function tt(t,e){Y(t,"updateGridPosition",e)}var et=e.measureLabels=function(t){t.forEach((function(t){t.labelBBox=t.label?t.label.getBBox():{x:0,y:0,width:0,height:0}}))};function nt(t){for(var e=t.length-1;e>=0&&it(t,e);e--);for(e=0;e<t.length&&it(t,e);e++)e--}function it(t,e){return(null===t[e].coords.x||null===t[e].coords.y)&&(t.splice(e,1),!0)}function ot(t,e){return 180*M.asin((t[0].height+e.minSpacing)/(t[1].x-t[0].x))/M.PI<45?-45:-90}function rt(t,e,n){t.forEach((function(t,i){t.label&&(i%e!==0?t.removeLabel():n&&n(t,i))}))}function at(t,e){return void 0===t?e:null===t?void 0:t}var st=e.calculateCanvasMargins=function(t,e){var n=e.left,i=e.top,o=e.width-e.right,r=e.height-e.bottom;return t.reduce((function(t,e){return!e||e.isEmpty?t:{left:D(t.left,n-e.x),top:D(t.top,i-e.y),right:D(t.right,e.x+e.width-o),bottom:D(t.bottom,e.y+e.height-r)}}),{left:0,right:0,top:0,bottom:0})},lt=e.Axis=function(t){this._renderer=t.renderer,this._incidentOccurred=t.incidentOccurred,this._eventTrigger=t.eventTrigger,this._stripsGroup=t.stripsGroup,this._labelAxesGroup=t.labelAxesGroup,this._constantLinesGroup=t.constantLinesGroup,this._scaleBreaksGroup=t.scaleBreaksGroup,this._axesContainerGroup=t.axesContainerGroup,this._gridContainerGroup=t.gridGroup,this._axisCssPrefix=t.widgetClass+"-"+(t.axisClass?t.axisClass+"-":""),this._setType(t.axisType,t.drawingType),this._createAxisGroups(),this._translator=this._createTranslator(),this.isArgumentAxis=t.isArgumentAxis,this._viewport={},this._firstDrawing=!0,this._initRange={}};lt.prototype={constructor:lt,_drawAxis:function(){var t=this._options;t.visible&&(this._axisElement=this._createAxisElement(),this._updateAxisElementPosition(),this._axisElement.attr({"stroke-width":t.width,stroke:t.color,"stroke-opacity":t.opacity}).sharp(this._getSharpParam(!0),this.getAxisSharpDirection()).append(this._axisLineGroup))},_createPathElement:function(t,e,n){return this.sharp(this._renderer.path(t,"line").attr(e),n)},sharp:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return t.sharp(this._getSharpParam(),e)},customPositionIsAvailable:function(){return!1},getOrthogonalAxis:_.noop,getCustomPosition:_.noop,getCustomBoundaryPosition:_.noop,resolveOverlappingForCustomPositioning:_.noop,hasCustomPosition:function(){return!1},customPositionIsBoundaryOrthogonalAxis:function(){return!1},getResolvedBoundaryPosition:function(){return this.getOptions().position},getAxisSharpDirection:function(){var t=this.getResolvedBoundaryPosition();return this.hasCustomPosition()||t!==N&&t!==F?1:-1},getSharpDirectionByCoords:function(t){var e=this._getCanvasStartEnd(),n=Math.max(e.start,e.end);return this.getRadius?0:n!==t[this._isHorizontal?"x":"y"]?1:-1},_getGridLineDrawer:function(){var t=this;return function(e,n){var i=t._getGridPoints(e.coords);return i.points?t._createPathElement(i.points,n,t.getSharpDirectionByCoords(e.coords)):null}},_getGridPoints:function(t){var e=this._isHorizontal,n=e?"x":"y",i=this._orthogonalPositions,o=i.start,r=i.end,a=this.borderOptions,s=e?L:B,l=e?F:N,u=this.getCanvas(),c={left:u.left,right:u.width-u.right,top:u.top,bottom:u.height-u.bottom},d=4+(a.visible&&a[s]?c[s]:void 0),h=(a.visible&&a[l]?c[l]:void 0)-4;return this.areCoordsOutsideAxis(t)||void 0===t[n]||t[n]<d||t[n]>h?{points:null}:{points:e?null!==t[n]?[t[n],o,t[n],r]:null:null!==t[n]?[o,t[n],r,t[n]]:null}},_getConstantLinePos:function(t,e,n){var i=this._getTranslatedCoord(t);if(!(!(0,r.isDefined)(i)||i<A(e,n)||i>D(e,n)))return i},_getConstantLineGraphicAttributes:function(t){var e=this._orthogonalPositions.start,n=this._orthogonalPositions.end;return{points:this._isHorizontal?[t,e,t,n]:[e,t,n,t]}},_createConstantLine:function(t,e){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,e,(n=t,i=this._getCanvasStartEnd(),Math.max(i.start,i.end)!==n?1:-1));var n,i},_drawConstantLineLabelText:function(t,e,n,i,o){var r=i.font,a=i.cssClass;return this._renderer.text(t,e,n).css(k((0,s.extend)({},this._options.label.font,r))).attr({align:"center",class:a}).append(o)},_drawConstantLineLabels:function(t,e,n,i){var o,r=e.text,a=this._options.label;this._checkAlignmentConstantLineLabels(e),r=null!==(o=r)&&void 0!==o?o:this.formatLabel(t,a);var s=this._getConstantLineLabelsCoords(n,e);return this._drawConstantLineLabelText(r,s.x,s.y,e,i)},_getStripPos:function(t,e,n,i,o){var a,s,u,c,d,h=!(!o.minVisible&&!o.maxVisible),f=(o.categories||[]).reduce((function(t,e){return t.push(e.valueOf()),t}),[]);if(!h&&(0,r.isDefined)(t)&&(0,r.isDefined)(e)){var p=this.parser(t),m=this.parser(e);if(c=(0,l.inArray)((0,r.isDefined)(p)?p.valueOf():void 0,f),d=(0,l.inArray)((0,r.isDefined)(m)?m.valueOf():void 0,f),-1===c||-1===d)return{from:0,to:0,outOfCanvas:!0};c>d&&(u=e,e=t,t=u)}(0,r.isDefined)(t)?(t=this.validateUnit(t,"E2105","strip"),a=this._getTranslatedCoord(t,-1)):a=n,(0,r.isDefined)(e)?(e=this.validateUnit(e,"E2105","strip"),s=this._getTranslatedCoord(e,1)):s=i;var g=a<s?{from:a,to:s}:{from:s,to:a},_=this.getVisibleArea();return(g.from<=_[0]&&g.to<=_[0]||g.from>=_[1]&&g.to>=_[1])&&(g.outOfCanvas=!0),g},_getStripGraphicAttributes:function(t,e){var n,i,o,r,a=this._orthogonalPositions,s=a.start,l=a.end;return this._isHorizontal?(n=t,i=A(s,l),o=e-t,r=P(s-l)):(n=A(s,l),i=t,o=P(s-l),r=P(t-e)),{x:n,y:i,width:o,height:r}},_createStrip:function(t){return this._renderer.rect(t.x,t.y,t.width,t.height)},_adjustStripLabels:function(){var t=this;this._strips.forEach((function(e){e.label&&e.label.attr(t._getAdjustedStripLabelCoords(e))}))},_adjustLabelsCoord:function(t,e,n){var i=this;i._majorTicks.forEach((function(o){o.label&&(o.updateMultilineTextAlignment(),o.label.attr(i._getLabelAdjustedCoord(o,t+(o.labelOffset||0),e,n)))}))},_adjustLabels:function(t){var e=this.getOptions(),n=e.position===e.label.position,i=this._majorTicks.reduce((function(t,e){if(!e.label)return t;var n=e.labelRotationAngle?o.default.rotateBBox(e.labelBBox,[e.labelCoords.x,e.labelCoords.y],-e.labelRotationAngle):e.labelBBox;return{width:D(t.width||0,n.width),height:D(t.height||0,n.height),offset:D(t.offset||0,e.labelOffset||0)}}),{}),r=n?this._isHorizontal?i.height:i.width:0;return this._adjustLabelsCoord(t,i.width),t+r+(r&&this._options.label.indentFromAxis)+(n?i.offset:0)},_getLabelAdjustedCoord:function(t,e,n){e=e||0;var i,r,a=this._options,s=o.default.rotateBBox(t.labelBBox,[t.labelCoords.x,t.labelCoords.y],-t.labelRotationAngle||0),l=t.labelAlignment||a.label.alignment,u="discrete"===this._options.type,c=t.labelRotationAngle%90===0,d=a.label.indentFromAxis,h=a.label.position,f=this._axisPosition,p=t.labelCoords,m=p.x;return this._isHorizontal?(r=h===N?f+d-s.y+e:f-d-(s.y+s.height)-e,i=l===F?u&&c?t.coords.x-(s.x+s.width):m-s.x-s.width:l===L?u&&c?m-s.x-(t.coords.x-m):m-s.x:m-s.x-s.width/2):(r=p.y-s.y-s.height/2,h===L?(i=l===L?f-d-n-s.x:l===V?f-d-n/2-s.x-s.width/2:f-d-s.x-s.width,i-=e):(i=l===F?f+d+n-s.x-s.width:l===V?f+d+n/2-s.x-s.width/2:f+d-s.x,i+=e)),{translateX:i,translateY:r}},_createAxisConstantLineGroups:function(){var t=this._renderer,e=this._axisCssPrefix+"constant-lines",n=t.g().attr({class:e}),i=t.g().attr({class:e}),o=t.g().attr({class:e});return{inside:n,outside1:i,left:i,top:i,outside2:o,right:o,bottom:o,remove:function(){this.inside.remove(),this.outside1.remove(),this.outside2.remove()},clear:function(){this.inside.clear(),this.outside1.clear(),this.outside2.clear()}}},_createAxisGroups:function(){var t=this._renderer,e=this._axisCssPrefix;this._axisGroup=t.g().attr({class:e+"axis"}),this._axisStripGroup=t.g().attr({class:e+"strips"}),this._axisGridGroup=t.g().attr({class:e+"grid"}),this._axisElementsGroup=t.g().attr({class:e+"elements"}).append(this._axisGroup),this._axisLineGroup=t.g().attr({class:e+"line"}).append(this._axisGroup),this._axisTitleGroup=t.g().attr({class:e+"title"}).append(this._axisGroup),this._axisConstantLineGroups={above:this._createAxisConstantLineGroups(),under:this._createAxisConstantLineGroups()},this._axisStripLabelGroup=t.g().attr({class:e+"axis-labels"})},_clearAxisGroups:function(){this._axisGroup.remove(),this._axisStripGroup.remove(),this._axisStripLabelGroup.remove(),this._axisConstantLineGroups.above.remove(),this._axisConstantLineGroups.under.remove(),this._axisGridGroup.remove(),this._axisTitleGroup.clear(),this._axisElementsGroup.clear(),this._axisLineGroup&&this._axisLineGroup.clear(),this._axisStripGroup&&this._axisStripGroup.clear(),this._axisGridGroup&&this._axisGridGroup.clear(),this._axisConstantLineGroups.above.clear(),this._axisConstantLineGroups.under.clear(),this._axisStripLabelGroup&&this._axisStripLabelGroup.clear()},_getLabelFormatObject:function(t,e,n,o,r,a){n=n||this._getViewportRange();var s={value:t,valueText:(0,i.smartFormatter)(t,{labelOptions:e,ticks:a||S(this._majorTicks),tickInterval:null!==r&&void 0!==r?r:this._tickInterval,dataType:this._options.dataType,logarithmBase:this._options.logarithmBase,type:this._options.type,showTransition:!this._options.marker.visible,point:o})||"",min:n.minVisible,max:n.maxVisible};return o&&(s.point=o),s},formatLabel:function(t,e,n,i,o,a){var s=this._getLabelFormatObject(t,e,n,i,o,a);return(0,r.isFunction)(e.customizeText)?e.customizeText.call(s,s):s.valueText},formatHint:function(t,e,n){var i=this._getLabelFormatObject(t,e,n);return(0,r.isFunction)(e.customizeHint)?e.customizeHint.call(i,i):void 0},formatRange:function(t,e,n){return(0,i.formatRange)(t,e,n,this.getOptions())},_setTickOffset:function(){var t=this._options.discreteAxisDivisionMode;this._tickOffset=+("crossLabels"!==t||!t)},resetApplyingAnimation:function(t){this._resetApplyingAnimation=!0,t&&(this._firstDrawing=!0)},getMargins:function(){var t=this;if(t.hasCustomPosition())return{left:0,right:0,top:0,bottom:0};var e=t._options,n=e.position,i=e.placeholderSize,o=t.getCanvas(),r=o.left,a=o.top,s=o.width-o.right,l=o.height-o.bottom,u=D(e.grid.visible&&e.grid.width||0,e.tick.visible&&e.tick.width||0),c=t._axisConstantLineGroups.above,d=t._axisConstantLineGroups.under,h=[t._axisElementsGroup,c.outside1,c.outside2,d.outside1,d.outside2,t._axisLineGroup].map((function(t){return t&&t.getBBox()})).concat(function(e){var n=e&&e.getBBox();return!n||n.isEmpty||(t._isHorizontal?(n.x=r,n.width=s-r):(n.y=a,n.height=l-a)),n}(t._axisTitleGroup)),f=st(h,o);return f[n]+=e.crosshairMargin,i&&(f[n]=i),u&&(t._isHorizontal&&o.right<u&&f.right<u&&(f.right=u),!t._isHorizontal&&o.bottom<u&&f.bottom<u&&(f.bottom=u)),f},validateUnit:function(t,e,n){return void 0===(t=this.parser(t))&&e&&this._incidentOccurred(e,[n]),t},_setType:function(t,e){var n;switch(t){case"xyAxes":n=v.default;break;case"polarAxes":n=y.default}(0,s.extend)(this,n[e])},_getSharpParam:function(){return!0},_disposeBreaksGroup:_.noop,dispose:function(){[this._axisElementsGroup,this._axisStripGroup,this._axisGroup].forEach((function(t){t.dispose()})),this._strips=this._title=null,this._axisStripGroup=this._axisConstantLineGroups=this._axisStripLabelGroup=this._axisBreaksGroup=null,this._axisLineGroup=this._axisElementsGroup=this._axisGridGroup=null,this._axisGroup=this._axisTitleGroup=null,this._axesContainerGroup=this._stripsGroup=this._constantLinesGroup=null,this._renderer=this._options=this._textOptions=this._textFontStyles=null,this._translator=null,this._majorTicks=this._minorTicks=null,this._disposeBreaksGroup()},getOptions:function(){return this._options},setPane:function(t){this.pane=t,this._options.pane=t},setTypes:function(t,e,n){this._options.type=t||this._options.type,this._options[n]=e||this._options[n],this._updateTranslator()},resetTypes:function(t){this._options.type=this._initTypes.type,this._options[t]=this._initTypes[t]},getTranslator:function(){return this._translator},updateOptions:function(t){var e=this,n=t.label;!function(t){var e,n,i,o=t.label,r=t.position,a=t.isHorizontal?N:L,s=t.isHorizontal?B:F,l=o.position;r!==a&&r!==s&&(r=a),l&&"outside"!==l?"inside"===l&&(l=(n={},C(n,B,N),C(n,N,B),C(n,L,F),C(n,F,L),n)[r]):l=r,l!==a&&l!==s&&(l=r),o.alignment===V||o.userAlignment||(o.alignment=(i={},C(i,B,V),C(i,N,V),C(i,L,F),C(i,F,L),i)[l]),t.position=r,o.position=l,t.hoverMode=t.hoverMode?t.hoverMode.toLowerCase():"none",o.minSpacing=null!==(e=o.minSpacing)&&void 0!==e?e:5,t.type&&(t.type=t.type.toLowerCase()),t.argumentType&&(t.argumentType=t.argumentType.toLowerCase()),t.valueType&&(t.valueType=t.valueType.toLowerCase())}(t),e._options=t,t.tick=t.tick||{},t.minorTick=t.minorTick||{},t.grid=t.grid||{},t.minorGrid=t.minorGrid||{},t.title=t.title||{},t.marker=t.marker||{},e._initTypes={type:t.type,argumentType:t.argumentType,valueType:t.valueType},e._setTickOffset(),e._isHorizontal=t.isHorizontal,e.pane=t.pane,e.name=t.name,e.priority=t.priority,e._hasLabelFormat=""!==n.format&&(0,r.isDefined)(n.format),e._textOptions={opacity:n.opacity,align:"center",class:n.cssClass},e._textFontStyles=o.default.patchFontOptions(n.font),t.type===a.default.logarithmic&&t.logarithmBaseError&&(e._incidentOccurred("E2104"),delete t.logarithmBaseError),e._updateTranslator(),e._createConstantLines(),e._strips=(t.strips||[]).map((function(t){return(0,w.default)(e,t)})),e._majorTicks=e._minorTicks=null,e._firstDrawing=!0},calculateInterval:function(t,e){var n=this._options;if(!n||n.type!==a.default.logarithmic)return P(t-e);var i=new f.Range(this.getTranslator().getBusinessRange()),o=i.allowNegatives,r=i.linearThreshold;return P(T(t,n.logarithmBase,o,r)-T(e,n.logarithmBase,o,r))},getCanvasRange:function(){var t=this._translator;return{startValue:t.from(t.translate("canvas_position_start")),endValue:t.from(t.translate("canvas_position_end"))}},_processCanvas:function(t){return t},updateCanvas:function(t,e){if(e)this._orthogonalPositions=null;else{var n=this._orthogonalPositions={start:this._isHorizontal?t.top:t.left,end:this._isHorizontal?t.height-t.bottom:t.width-t.right};n.center=n.start+(n.end-n.start)/2}this._canvas=t,this._translator.updateCanvas(this._processCanvas(t)),this._initAxisPositions()},getCanvas:function(){return this._canvas},getAxisShift:function(){return this._axisShift||0},hideTitle:function(){this._options.title.text&&(this._incidentOccurred("W2105",[this._isHorizontal?"horizontal":"vertical"]),this._axisTitleGroup.clear())},getTitle:function(){return this._title},hideOuterElements:function(){!this._options.label.visible&&!this._outsideConstantLines.length||this._translator.getBusinessRange().isEmpty()||(this._incidentOccurred("W2106",[this._isHorizontal?"horizontal":"vertical"]),this._axisElementsGroup.clear(),Y(this._outsideConstantLines,"removeLabel"))},adjustViewport:function(t){var e=this._options,n=e.type===a.default.discrete,i=this._seriesData&&this._seriesData.categories||[],s=this.adjustRange(I(e.wholeRange)),l=this.getViewport()||{},u=new f.Range(t);this._addConstantLinesToRange(u,"minVisible","maxVisible");var c=(0,r.isDefined)(l.startValue),d=(0,r.isDefined)(l.endValue);n||(c=c&&(!(0,r.isDefined)(s.endValue)||l.startValue<s.endValue),d=d&&(!(0,r.isDefined)(s.startValue)||l.endValue>s.startValue));var h,p,m=c?l.startValue:u.minVisible,g=d?l.endValue:u.maxVisible;n?(i=o.default.getCategoriesInfo(i,s.startValue,s.endValue).categories,u.categories=i):(u.min=null!==(h=s.startValue)&&void 0!==h?h:u.min,u.max=null!==(p=s.endValue)&&void 0!==p?p:u.max);var _=o.default.adjustVisualRange({axisType:e.type,dataType:e.dataType,base:e.logarithmBase},{startValue:c?l.startValue:void 0,endValue:d?l.endValue:void 0,length:l.length},{categories:i,min:s.startValue,max:s.endValue},{categories:i,min:m,max:g});return u.minVisible=_.startValue,u.maxVisible=_.endValue,!(0,r.isDefined)(u.min)&&(u.min=u.minVisible),!(0,r.isDefined)(u.max)&&(u.max=u.maxVisible),u.addRange({}),u},adjustRange:function(t){t=t||{};var e=this._options.type===a.default.discrete,n=this._options.type===a.default.logarithmic,i=!1===this._options.allowNegatives;if(n&&(t.startValue=i&&t.startValue<=0?null:t.startValue,t.endValue=i&&t.endValue<=0?null:t.endValue),!e&&(0,r.isDefined)(t.startValue)&&(0,r.isDefined)(t.endValue)&&t.startValue>t.endValue){var o=t.endValue;t.endValue=t.startValue,t.startValue=o}return t},_getVisualRangeUpdateMode:function(t,e,n){var i=this._options.visualRangeUpdateMode,o=this._translator,r=this._seriesData;if(this.isArgumentAxis){if(-1===[j,z,H].indexOf(i))if(r.axisType===a.default.discrete){var s=r.categories,l=e.categories,u=this.visualRange();i=s&&l&&s.length&&-1!==l.map((function(t){return t.valueOf()})).join(",").indexOf(s.map((function(t){return t.valueOf()})).join(","))&&(u.startValue.valueOf()!==s[0].valueOf()||u.endValue.valueOf()!==s[s.length-1].valueOf())?z:H}else{var c=o.translate(r.min),d=o.translate(t.startValue),h=o.translate(r.max),f=o.translate(t.endValue);i=c===d&&h===f?H:c!==d&&h===f?j:z}}else-1===[z,H].indexOf(i)&&(i=n===z?z:H);return i},_handleBusinessRangeChanged:function(t,e,n){var i=this.visualRange();if(!e&&!this._translator.getBusinessRange().isEmpty()){var o=this._lastVisualRangeUpdateMode=this._getVisualRangeUpdateMode(i,n,t);if(!this.isArgumentAxis){var a=this.getViewport();(0,r.isDefined)(a.startValue)||(0,r.isDefined)(a.endValue)||(0,r.isDefined)(a.length)||(o=H)}this._prevDataWasEmpty&&(o=z),o===z&&this._setVisualRange([i.startValue,i.endValue]),o===H&&this._setVisualRange([null,null]),o===j&&this._setVisualRange({length:this.getVisualRangeLength()})}},getVisualRangeLength:function(t){var e,n=t||this._translator.getBusinessRange(),i=this._options.type;i===a.default.logarithmic?e=(0,m.adjust)(this.calculateInterval(n.maxVisible,n.minVisible)):e=i===a.default.discrete?o.default.getCategoriesInfo(n.categories,n.minVisible,n.maxVisible).categories.length:n.maxVisible-n.minVisible;return e},getVisualRangeCenter:function(t){var e,n=this._translator.getBusinessRange(),i=t||n,s=this._options,l=s.type,u=s.logarithmBase;if((0,r.isDefined)(i.minVisible)&&(0,r.isDefined)(i.maxVisible)){if(l===a.default.logarithmic){var c=i.allowNegatives,d=i.linearThreshold,h=i.minVisible,f=i.maxVisible;e=E((0,m.adjust)(T(f,u,c,d)+T(h,u,c,d))/2,u,c,d)}else if(l===a.default.discrete){var p=o.default.getCategoriesInfo(i.categories,i.minVisible,i.maxVisible),g=Math.ceil(p.categories.length/2)-1;e=n.categories.indexOf(p.categories[g])}else e=(i.maxVisible.valueOf()+i.minVisible.valueOf())/2;return e}},setBusinessRange:function(t,e,n,i){var o,s,l=this._options,u=l.type===a.default.discrete;this._handleBusinessRangeChanged(n,e,t),this._seriesData=new f.Range(t);var c=this._seriesData.isEmpty();if(this._prevDataWasEmpty=c,this._seriesData.addRange({categories:l.categories,dataType:l.dataType,axisType:l.type,base:l.logarithmBase,invert:l.inverted}),l.type===a.default.logarithmic&&(this._seriesData.addRange({allowNegatives:void 0!==l.allowNegatives?l.allowNegatives:t.min<=0}),isNaN(l.linearThreshold)||(this._seriesData.linearThreshold=l.linearThreshold)),!u){if(!(0,r.isDefined)(this._seriesData.min)&&!(0,r.isDefined)(this._seriesData.max)){var d=this.getViewport();d&&this._seriesData.addRange({min:d.startValue,max:d.endValue})}var h=l.synchronizedValue;(0,r.isDefined)(h)&&this._seriesData.addRange({min:h,max:h})}this._seriesData.minVisible=null!==(o=this._seriesData.minVisible)&&void 0!==o?o:this._seriesData.min,this._seriesData.maxVisible=null!==(s=this._seriesData.maxVisible)&&void 0!==s?s:this._seriesData.max,!this.isArgumentAxis&&l.showZero&&this._seriesData.correctValueZeroLevel(),this._seriesData.sortCategories(this.getCategoriesSorter(i)),this._seriesData.breaks=this._initialBreaks=this._getScaleBreaks(l,this._seriesData,this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},_addConstantLinesToRange:function(t,e,n){this._outsideConstantLines.concat(this._insideConstantLines||[]).forEach((function(i){if(i.options.extendAxis){var o,r=i.getParsedValue();t.addRange((C(o={},e,r),C(o,n,r),o))}}))},setGroupSeries:function(t){this._series=t},getLabelsPosition:function(){var t=this._options,e=t.position,n=t.label.indentFromAxis+(this._axisShift||0)+this._constantLabelOffset,i=this._axisPosition;return e===B||e===L?i-n:i+n},getFormattedValue:function(t,e,n){var i=this._options.label;return(0,r.isDefined)(t)?this.formatLabel(t,(0,s.extend)(!0,{},i,e),void 0,n):null},_getBoundaryTicks:function(t,e){var n=t.length,i=this._options,o=i.customBoundTicks,s=e.minVisible,l=e.maxVisible,u=i.showCustomBoundaryTicks?this._boundaryTicksVisibility:{},c=[];return i.type===a.default.discrete?this._tickOffset&&0!==t.length&&(c=[t[0],t[t.length-1]]):o?(u.min&&(0,r.isDefined)(o[0])&&c.push(o[0]),u.max&&(0,r.isDefined)(o[1])&&c.push(o[1])):(u.min&&(0===n||t[0]>s)&&c.push(s),u.max&&(0===n||t[n-1]<l)&&c.push(l)),c},setPercentLabelFormat:function(){this._hasLabelFormat||(this._options.label.format="percent")},resetAutoLabelFormat:function(){this._hasLabelFormat||delete this._options.label.format},getMultipleAxesSpacing:function(){return this._options.multipleAxesSpacing||0},getTicksValues:function(){return{majorTicksValues:S(this._majorTicks),minorTicksValues:S(this._minorTicks)}},estimateTickInterval:function(t){return this.updateCanvas(t),this._tickInterval!==this._getTicks(this._getViewportRange(),_.noop,!0).tickInterval},setTicks:function(t){var e=t.majorTicks||[];this._majorTicks=e.map(K(this,this._renderer,this._getSkippedCategory(e))),this._minorTicks=(t.minorTicks||[]).map(q(this,this._renderer)),this._isSynchronized=!0},_adjustDivisionFactor:function(t){return t},_getTicks:function(t,e,n){var i=this._options,o=i.customTicks,r=i.customMinorTicks;return G(i,e||this._incidentOccurred,n,this._translator.getBusinessRange().isEmpty(),this._adjustDivisionFactor.bind(this),t)({min:t.minVisible,max:t.maxVisible,categories:t.categories,isSpacedMargin:t.isSpacedMargin},this._getScreenDelta(),i.tickInterval,"ignore"===i.label.overlappingBehavior||i.forceUserTickInterval,{majors:o,minors:r},i.minorTickInterval,i.minorTickCount,this._initialBreaks)},_createTicksAndLabelFormat:function(t,e){var n=this._options,i=this._getTicks(t,e,!1);return t.isEmpty()||n.type!==a.default.discrete||"datetime"!==n.dataType||this._hasLabelFormat||!i.ticks.length||(n.label.format=u.default.getDateFormatByTicks(i.ticks)),i},getAggregationInfo:function(t,e){var n,i,l,u=this._options,c=this._marginOptions,d=new f.Range(this.getTranslator().getBusinessRange()).addRange(e),h=this.getViewport(),p=null!==(n=null===h||void 0===h?void 0:h.startValue)&&void 0!==n?n:d.minVisible,m=null!==(i=null===h||void 0===h?void 0:h.endValue)&&void 0!==i?i:d.maxVisible,v=[];if(u.type===a.default.discrete&&u.aggregateByCategory)return{aggregateByCategory:!0};var y=u.aggregationInterval,b=u.aggregationGroupWidth;!b&&c&&(c.checkInterval&&(b=u.axisDivisionFactor),c.sizePointNormalState&&(b=Math.min(c.sizePointNormalState,u.axisDivisionFactor)));var w=!u.aggregationGroupWidth&&!y&&e.interval,x=function(t,e,n,i,o){var a=(0,s.extend)({},t,{endOnTick:!0,axisDivisionFactor:e,skipCalculationLimits:!0,generateExtraTick:!0,minTickInterval:o});return function(t,e,o,s,l){return G(a,_.noop,e,n.isEmpty(),(function(t){return t}),n)({min:o,max:s,categories:n.categories,isSpacedMargin:n.isSpacedMargin},i,t,(0,r.isDefined)(t),void 0,void 0,void 0,l)}}(u,b,d,this._getScreenDelta(),w),C=x(y,!0,p,m,null===(l=this._seriesData)||void 0===l?void 0:l.breaks).tickInterval;if(u.type!==a.default.discrete){var S=t?d.min:p,k=t?d.max:m;if((0,r.isDefined)(S)&&(0,r.isDefined)(k)){var I=o.default.getAddFunction({base:u.logarithmBase,axisType:u.type,dataType:u.dataType},!1),T=S,E=k;if(!t){var O=Math.max(this.calculateInterval(k,S),"datetime"===u.dataType?(0,g.dateToMilliseconds)(C):C);T=I(S,O,-1),E=I(k,O)}v=x(C,!1,T=T<d.min?d.min:T,E=E>d.max?d.max:E,this._getScaleBreaks(u,{minVisible:T,maxVisible:E},this._series,this.isArgumentAxis)).ticks}}return this._aggregationInterval=C,{interval:C,ticks:v}},createTicks:function(t){var e=this,n=e._renderer,i=e._options;if(t){e._isSynchronized=!1,e.updateCanvas(t),e._estimatedTickInterval=e._getTicks(e.adjustViewport(this._seriesData),_.noop,!0).tickInterval;var o=e._getViewportRange(),a=this._calculateValueMargins();o.addRange({minVisible:a.minValue,maxVisible:a.maxValue,isSpacedMargin:a.isSpacedMargin});var s=e._createTicksAndLabelFormat(o),l=e._getBoundaryTicks(s.ticks,e._getViewportRange());i.showCustomBoundaryTicks&&l.length?(e._boundaryTicks=[l[0]].map($(e,n,!0)),l.length>1&&(e._boundaryTicks=e._boundaryTicks.concat([l[1]].map($(e,n,!1))))):e._boundaryTicks=[];var u=(s.minorTicks||[]).filter((function(t){return!l.some((function(e){return O(e)===O(t)}))}));e._tickInterval=s.tickInterval,e._minorTickInterval=s.minorTickInterval;var c=e._majorTicks||[],d=c.reduce((function(t,e){return t[e.value.valueOf()]=e,t}),{}),h=(0,r.type)(s.ticks[0])===(0,r.type)(c[0]&&c[0].value),f=e._getSkippedCategory(s.ticks),p=s.ticks.map((function(t){var i=d[t.valueOf()];return i&&h?(delete d[t.valueOf()],i.setSkippedCategory(f),i):K(e,n,f)(t)}));e._majorTicks=p;var m=e._minorTicks||[];e._minorTicks=u.map((function(t,i){var o=m[i];return o?(o.updateValue(t),o):q(e,n)(t)})),e._ticksToRemove=Object.keys(d).map((function(t){return d[t]})).concat(m.slice(e._minorTicks.length,m.length)),s.breaks&&(e._seriesData.breaks=s.breaks),e._reinitTranslator(e._getViewportRange())}},_reinitTranslator:function(t){var e=this._translator;this._isSynchronized||e.updateBusinessRange(t)},_getViewportRange:function(){return this.adjustViewport(this._seriesData)},setMarginOptions:function(t){this._marginOptions=t},getMarginOptions:function(){var t;return null!==(t=this._marginOptions)&&void 0!==t?t:{}},_calculateRangeInterval:function(t){var e="datetime"===this._options.dataType,n=[],i=function(t){(0,r.isDefined)(t)&&n.push(e?(0,g.dateToMilliseconds)(t):t)};return i(this._tickInterval),i(this._estimatedTickInterval),(0,r.isDefined)(t)&&n.push(t),i(this._aggregationInterval),this._calculateWorkWeekInterval(A.apply(this,n))},_calculateWorkWeekInterval:function(t){var e=this._options;if("datetime"===e.dataType&&e.workdaysOnly&&t){var n=e.workWeek.length*W,i=U-n;if(n!==t&&i<t){var o=Math.ceil(t/U);t=i>=t?W:t-i*o}else i>=t&&t>W&&(t=W)}return t},_calculateValueMargins:function(t){this._resetMargins();var e,n,i,o=this.getMarginOptions(),s=(o.size||0)/2,l=this._options,u=this._getViewportRange(),c=this.getViewport(),d=this._getScreenDelta(),h=-1!==(l.type||"").indexOf(a.default.discrete),f=l.valueMarginsEnabled&&!h&&!this.customPositionIsBoundaryOrthogonalAxis(),p=this._translator,m=l.minValueMargin,g=l.maxValueMargin,_=0,v=0,y=0;if(u.stubData||!d)return{startPadding:0,endPadding:0};function b(t){var e=p.ratioOfCanvasRange();return e/(e*d/(t+d))}if(this.isArgumentAxis&&o.checkInterval){e=this._calculateRangeInterval(u.interval);var w=p.getInterval(e);isFinite(w)?y=Math.ceil(w/(2*b(w))):e=0}var x=.8*d/2;f&&((0,r.isDefined)(m)?n=isFinite(m)?m:0:!this.isArgumentAxis&&o.checkInterval&&O(u.minVisible)>0&&O(u.minVisible)===O(u.min)?_=5:(_=Math.max(s,y),_=Math.min(x,_)),(0,r.isDefined)(g)?i=isFinite(g)?g:0:!this.isArgumentAxis&&o.checkInterval&&O(u.maxVisible)<0&&O(u.maxVisible)===O(u.max)?v=5:(v=Math.max(s,y),v=Math.min(x,v))),o.percentStick&&!this.isArgumentAxis&&(1===P(u.max)&&(v=0),1===P(u.min)&&(_=0));var C,S,k,I,T,E,M=this._getCanvasStartEnd(),A=(d-_-v)/(1+(n||0)+(i||0))||d;if(void 0===n&&void 0===i||(void 0!==n&&(_=A*n),void 0!==i&&(v=A*i)),l.type!==a.default.discrete&&t&&t.length>1&&!l.skipViewportExtending&&!c.action&&!1!==l.endOnTick){var R=t.length,B=p.translate(t[0].value),N=p.translate(t[R-1].value),L=B>N?-1:1,F=D(L*(M.start-B),0),V=D(L*(N-M.end),0);if(F>_||V>v){var z=b(V+F);F>=_&&(C=t[0].value),V>=v&&(S=t[R-1].value),_=D(F,_)/z,v=D(V,v)/z}}(n=void 0===n?_/A:n,i=void 0===i?v/A:i,h)||(this._translator.isInverted()?(C=null!==(k=C)&&void 0!==k?k:p.from(M.start+d*n,-1),S=null!==(I=S)&&void 0!==I?I:p.from(M.end-d*i,1)):(C=null!==(T=C)&&void 0!==T?T:p.from(M.start-d*n,-1),S=null!==(E=S)&&void 0!==E?E:p.from(M.end+d*i,1)));function j(t,e){var n=P(M.start-t),i=P(M.end-e),o=b(n+i);_=n/o,v=i/o}return this.isArgumentAxis||"datetime"===l.dataType||(C*u.min<=0&&C*u.minVisible<=0&&(j(p.translate(0),p.translate(S)),C=0),S*u.max<=0&&S*u.maxVisible<=0&&(j(p.translate(C),p.translate(0)),S=0)),{startPadding:this._translator.isInverted()?v:_,endPadding:this._translator.isInverted()?_:v,minValue:C,maxValue:S,interval:e,isSpacedMargin:_===v&&0!==_}},applyMargins:function(){if(!this._isSynchronized){var t=this._calculateValueMargins(this._majorTicks),e=(0,s.extend)({},this._canvas,{startPadding:t.startPadding,endPadding:t.endPadding});if(this._translator.updateCanvas(this._processCanvas(e)),isFinite(t.interval)){var n=this._translator.getBusinessRange();n.addRange({interval:t.interval}),this._translator.updateBusinessRange(n)}}},_resetMargins:function(){this._reinitTranslator(this._getViewportRange()),this._canvas&&this._translator.updateCanvas(this._processCanvas(this._canvas))},_createConstantLines:function(){var t=this,e=(this._options.constantLines||[]).map((function(e){return(0,b.default)(t,e)}));this._outsideConstantLines=e.filter((function(t){return"outside"===t.labelPosition})),this._insideConstantLines=e.filter((function(t){return"inside"===t.labelPosition}))},draw:function(t,e){var n=this._options;this.borderOptions=e||{visible:!1},this._resetMargins(),this.createTicks(t),this.applyMargins(),this._clearAxisGroups(),Z(this._majorTicks),Z(this._minorTicks),Z(this._boundaryTicks),this._axisGroup.append(this._axesContainerGroup),this._drawAxis(),this._drawTitle(),X(this._majorTicks,n.tick),X(this._minorTicks,n.minorTick),X(this._boundaryTicks,n.tick);var i,o,a,s=this._getGridLineDrawer();J(this._majorTicks,s),J(this._minorTicks,s),Y(this._majorTicks,"drawLabel",this._getViewportRange()),this._majorTicks.forEach((function(t){t.labelRotationAngle=0,t.labelAlignment=void 0,t.labelOffset=0})),Y(this._outsideConstantLines.concat(this._insideConstantLines),"draw"),Y(this._strips,"draw"),this._dateMarkers=this._drawDateMarkers()||[],this._labelAxesGroup&&this._axisStripLabelGroup.append(this._labelAxesGroup),this._gridContainerGroup&&this._axisGridGroup.append(this._gridContainerGroup),this._stripsGroup&&this._axisStripGroup.append(this._stripsGroup),this._constantLinesGroup&&(this._axisConstantLineGroups.above.inside.append(this._constantLinesGroup.above),this._axisConstantLineGroups.above.outside1.append(this._constantLinesGroup.above),this._axisConstantLineGroups.above.outside2.append(this._constantLinesGroup.above),this._axisConstantLineGroups.under.inside.append(this._constantLinesGroup.under),this._axisConstantLineGroups.under.outside1.append(this._constantLinesGroup.under),this._axisConstantLineGroups.under.outside2.append(this._constantLinesGroup.under)),this._measureTitle(),et(this._majorTicks);var l=this._tickInterval;(0,r.isDefined)(l)&&(a=this.getTranslator().getInterval("datetime"===n.dataType?(0,g.dateToMilliseconds)(l):l));var u=(0,r.isDefined)(n.placeholderSize)?n.placeholderSize-n.label.indentFromAxis:void 0;this._isHorizontal?(i=a,o=u):(i=u,o=a);var c=this._validateDisplayMode(n.label.displayMode),d=this._validateOverlappingMode(n.label.overlappingBehavior,c),h=n.label.wordWrap||"none",f=n.label.textOverflow||"none";if(("none"!==h||"none"!==f)&&"rotate"!==c&&"rotate"!==d&&"auto"!==d){var p=!1,m=!1;i&&this._majorTicks.some((function(t){return t.labelBBox.width>i}))&&(p=!0),o&&this._majorTicks.some((function(t){return t.labelBBox.height>o}))&&(m=!0),(p||m)&&(this._majorTicks.forEach((function(t){t.label&&t.label.setMaxSize(i,o,n.label)})),et(this._majorTicks))}et(this._outsideConstantLines),et(this._insideConstantLines),et(this._strips),et(this._dateMarkers),this._adjustConstantLineLabels(this._insideConstantLines),this._adjustStripLabels();var _=this._constantLabelOffset=this._adjustConstantLineLabels(this._outsideConstantLines);this._translator.getBusinessRange().isEmpty()||(this._setLabelsPlacement(),_=this._adjustLabels(_)),_=this._adjustDateMarkers(_),this._adjustTitle(_)},_measureTitle:_.noop,animate:function(){Y(this._majorTicks,"animateLabels")},updateSize:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this;i.updateCanvas(t),n&&(i._checkTitleOverflow(),i._measureTitle(),i._updateTitleCoords()),i._reinitTranslator(i._getViewportRange()),i.applyMargins();var o=!i._firstDrawing&&e,r=this._options;Z(i._majorTicks),Z(i._minorTicks),Z(i._boundaryTicks),this._resetApplyingAnimation&&!this._firstDrawing&&i._resetStartCoordinates(),nt(i._majorTicks),nt(i._minorTicks),nt(i._boundaryTicks),this._axisElement&&i._updateAxisElementPosition(),Q(i._majorTicks,r.tick,o),Q(i._minorTicks,r.minorTick,o),Q(i._boundaryTicks,r.tick),Y(i._majorTicks,"updateLabelPosition",o),i._outsideConstantLines.concat(i._insideConstantLines||[]).forEach((function(t){return t.updatePosition(o)})),Y(i._strips,"updatePosition",o),tt(i._majorTicks,o),tt(i._minorTicks,o),o&&Y(i._ticksToRemove||[],"fadeOutElements"),i.prepareAnimation(),i._ticksToRemove=null,i._translator.getBusinessRange().isEmpty()||(i._firstDrawing=!1),this._resetApplyingAnimation=!1},prepareAnimation:function(){var t="saveCoords";Y(this._majorTicks,t),Y(this._minorTicks,t),Y(this._insideConstantLines,t),Y(this._outsideConstantLines,t),Y(this._strips,t)},_resetStartCoordinates:function(){var t="resetCoordinates";Y(this._majorTicks,t),Y(this._minorTicks,t),Y(this._insideConstantLines,t),Y(this._outsideConstantLines,t),Y(this._strips,t)},applyClipRects:function(t,e){this._axisGroup.attr({"clip-path":e}),this._axisStripGroup.attr({"clip-path":t})},_mergeViewportOptions:function(){var t=this._options,e={},n=t._customVisualRange;e=!(0,r.isDefined)(t.max)&&!(0,r.isDefined)(t.min)||(0,r.isDefined)(n.startValue)||(0,r.isDefined)(n.endValue)||(0,r.isDefined)(n.length)?n:{startValue:t.min,endValue:t.max},this._setVisualRange(e)},_validateVisualRange:function(t){var e=I(t);return void 0!==e.startValue&&(e.startValue=this.validateUnit(e.startValue)),void 0!==e.endValue&&(e.endValue=this.validateUnit(e.endValue)),function(t,e){return o.default.convertVisualRangeObject(t,!R(e))}(e,t)},_validateOptions:function(t){void 0!==t.min&&(t.min=this.validateUnit(t.min,"E2106")),void 0!==t.max&&(t.max=this.validateUnit(t.max,"E2106")),t.wholeRange=this._validateVisualRange(t.wholeRange),t.visualRange=t._customVisualRange=this._validateVisualRange(t._customVisualRange),this._mergeViewportOptions()},validate:function(){var t=this._options,e=this.isArgumentAxis?t.argumentType:t.valueType,n=e?c.default.getParser(e):function(t){return t};this.parser=n,t.dataType=e,this._validateOptions(t)},resetVisualRange:function(t){this._seriesData.minVisible=this._seriesData.min,this._seriesData.maxVisible=this._seriesData.max,this.handleZooming([null,null],{start:!!t,end:!!t})},_setVisualRange:function(t,e){var n=this.adjustRange(o.default.getVizRangeObject(t));e?((0,r.isDefined)(n.startValue)&&(this._viewport.startValue=n.startValue),(0,r.isDefined)(n.endValue)&&(this._viewport.endValue=n.endValue)):this._viewport=n},_applyZooming:function(t,e){this._resetVisualRangeOption(),this._setVisualRange(t,e);var n=this.getViewport();this._seriesData.breaks=this._initialBreaks=this._getScaleBreaks(this._options,{minVisible:n.startValue,maxVisible:n.endValue},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},getZoomStartEventArg:function(t,e){return{axis:this,range:this.visualRange(),cancel:!1,event:t,actionType:e}},getZoomEndEventArg:function(t,e,n,i,o){var r=this.visualRange();return{axis:this,previousRange:t,range:r,cancel:!1,event:e,actionType:n,zoomFactor:i,shift:o,rangeStart:r.startValue,rangeEnd:r.endValue}},getZoomBounds:function(){var t=o.default.getVizRangeObject(this._options.wholeRange),e=this.getTranslator().getBusinessRange(),n={startValue:at(this._initRange.startValue,e.min),endValue:at(this._initRange.endValue,e.max)};return{startValue:at(t.startValue,n.startValue),endValue:at(t.endValue,n.endValue)}},setInitRange:function(){this._initRange={},0===Object.keys(this._options.wholeRange||{}).length&&(this._initRange=this.getZoomBounds())},_resetVisualRangeOption:function(){this._options._customVisualRange={}},setCustomVisualRange:function(t){this._options._customVisualRange=t},visualRange:function(){var t,e=this,n=arguments;if(0===n.length){var i,l,u=e._getAdjustedBusinessRange(),c=u.minVisible,d=u.maxVisible;return e._options.type===a.default.discrete?{startValue:c=null!==(i=c)&&void 0!==i?i:u.categories[0],endValue:d=null!==(l=d)&&void 0!==l?l:u.categories[u.categories.length-1],categories:o.default.getCategoriesInfo(u.categories,c,d).categories}:{startValue:c,endValue:d}}t=R(n[0])?n[0]:(0,r.isPlainObject)(n[0])?(0,s.extend)({},n[0]):[n[0],n[1]];var h=e.handleZooming(t,n[1]);h.isPrevented||e._visualRange(e,h)},handleZooming:function(t,e,n,i){e=e||{},(0,r.isDefined)(t)&&((t=this._validateVisualRange(t)).action=i);var o=this.getZoomStartEventArg(n,i),a=o.range;!e.start&&this._eventTrigger("zoomStart",o);var s={isPrevented:o.cancel,skipEventRising:e.skipEventRising,range:t||o.range};return o.cancel||((0,r.isDefined)(t)&&this._applyZooming(t,e.allowPartialUpdate),(0,r.isDefined)(this._storedZoomEndParams)||(this._storedZoomEndParams={startRange:a,type:this.getOptions().type}),this._storedZoomEndParams.event=n,this._storedZoomEndParams.action=i,this._storedZoomEndParams.prevent=!!e.end),s},handleZoomEnd:function(){if((0,r.isDefined)(this._storedZoomEndParams)&&!this._storedZoomEndParams.prevent){var t=this._storedZoomEndParams.startRange,e=this._storedZoomEndParams.event,n=this._storedZoomEndParams.action,i={minVisible:t.startValue,maxVisible:t.endValue,categories:t.categories},o=this.getOptions().type===this._storedZoomEndParams.type,a=o?(0,m.adjust)(this.getVisualRangeCenter()-this.getVisualRangeCenter(i)):NaN,s=o?+(Math.round(this.getVisualRangeLength(i)/this.getVisualRangeLength()+"e+2")+"e-2"):NaN,l=this.getZoomEndEventArg(t,e,n,s,a);l.cancel=this.isZoomingLowerLimitOvercome(1===s?"pan":"zoom",s),this._eventTrigger("zoomEnd",l),l.cancel&&this.restorePreviousVisualRange(t),this._storedZoomEndParams=null}},restorePreviousVisualRange:function(t){this._storedZoomEndParams=null,this._applyZooming(t),this._visualRange(this,t)},isZoomingLowerLimitOvercome:function(t,e,n){var i,a=this._options,s=a.minVisualRangeLength,l="zoom"===t&&e>=1,u=this._translator.getBusinessRange();(0,r.isDefined)(n)&&(i={minVisible:(i=this.adjustRange(o.default.getVizRangeObject(n))).startValue,maxVisible:i.endValue,categories:u.categories});var c=this.getVisualRangeLength(i);if("discrete"!==a.type)if((0,r.isDefined)(s))"datetime"!==a.dataType||(0,r.isNumeric)(s)||(s=(0,g.dateToMilliseconds)(s)),l&=s>=c;else{var d=this._translator.canvasLength,h={minVisible:u.min,maxVisible:u.max,categories:u.categories};l&=this.getVisualRangeLength(h)/d>=c}else!(0,r.isDefined)(s)&&(s=1),l&=(0,r.isDefined)(n)&&this.getVisualRangeLength()===s&&c<=s;return!!l},dataVisualRangeIsReduced:function(){var t,e,n=this.getTranslator();if("discrete"===this._options.type){var i=n.getBusinessRange().categories;t=i[0],e=i[i.length-1]}else{var o=this._seriesData;t=o.min,e=o.max}if(!(0,r.isDefined)(t)||!(0,r.isDefined)(e))return!1;var a=n.translate(t),s=n.translate(e),l=[Math.min(a,s),Math.max(a,s)],u=this.visualRange(),c=n.translate(u.startValue),d=n.translate(u.endValue);return c>l[0]&&c<l[1]||d>l[0]&&d<l[1]||c===d&&l[0]!==l[1]},isExtremePosition:function(t){var e,n;"discrete"===this._options.type?(n=this._translator.getBusinessRange(),e=t?n.categories[n.categories.length-1]:n.categories[0]):(n=this.getZoomBounds(),e=t?n.endValue:n.startValue);var i=this.getTranslator(),o=i.translate(e),r=this.visualRange(),a=t?i.translate(r.endValue):i.translate(r.startValue);return P(a-o)<5},getViewport:function(){return this._viewport},getFullTicks:function(){var t=this._majorTicks||[];return this._options.type===a.default.discrete?S(t):S(t.concat(this._minorTicks,this._boundaryTicks)).sort((function(t,e){return O(t)-O(e)}))},measureLabels:function(t,e){var n,i,o=this,r=o._options,a=r.visible?r.width:0,s=e?r.label.indentFromAxis+.5*r.tick.length:0,l=o._getViewportRange();if(l.isEmpty()||!r.label.visible||!o._axisElementsGroup)return{height:a,width:a,x:0,y:0};o._majorTicks?n=S(o._majorTicks):(o.updateCanvas(t),n=o._createTicksAndLabelFormat(l,_.noop),i=n.tickInterval,n=n.ticks);var u=n.reduce((function(t,e,a){var s=o.formatLabel(e,r.label,l,void 0,i,n);return t.length<s.length?s:t}),o.formatLabel(n[0],r.label,l,void 0,i,n)),c=o._renderer.text(u,0,0).css(o._textFontStyles).attr(o._textOptions).append(o._renderer.root),d=c.getBBox();return c.remove(),{x:d.x,y:d.y,width:d.width+s,height:d.height+s}},_setLabelsPlacement:function(){if(this._options.label.visible){var t,e=this._options.label,n=this._validateDisplayMode(e.displayMode),i=this._validateOverlappingMode(e.overlappingBehavior,n),o="none"===i||"ignore"===i,r={rotationAngle:e.rotationAngle,staggeringSpacing:e.staggeringSpacing},a=this._majorTicks.map((function(t){return t.labelBBox})),s=this._getStep(a);switch(n){case"rotate":o&&(t=!0,s=1),this._applyLabelMode(n,s,a,e,t);break;case"stagger":o&&(s=2),this._applyLabelMode(n,D(s,2),a,e);break;default:this._applyLabelOverlapping(a,i,s,r)}}},_applyLabelOverlapping:function(t,e,n,i){var o=this._options.label,r=this._majorTicks;if("none"!==e&&"ignore"!==e){n>1&&t.some((function(t,e,n){return 0!==e&&a.default.areLabelsOverlap(t,n[e-1],o.minSpacing,o.alignment)}))&&this._applyLabelMode(e,n,t,i),this._checkBoundedLabelsOverlapping(r,t,e)}},_applyLabelMode:function(t,e,n,i,o){var r,a,s=this._majorTicks,l=this._options.label,u=i.rotationAngle;switch(t){case"rotate":l.userAlignment||(a=u<0?F:L,u%90===0&&(a=V)),rt(s,e=o?e:this._getStep(n,u),(function(t){t.label.rotate(u),t.labelRotationAngle=u,a&&(t.labelAlignment=a)}));break;case"stagger":r=this._getMaxLabelHeight(n,i.staggeringSpacing),rt(s,e-1,(function(t,n){n/(e-1)%2!==0&&(t.labelOffset=r)}));break;case"auto":case"_auto":2===e?this._applyLabelMode("stagger",e,n,i):this._applyLabelMode("rotate",e,n,{rotationAngle:ot(n,l)});break;default:rt(s,e)}},getMarkerTrackers:_.noop,_drawDateMarkers:_.noop,_adjustDateMarkers:_.noop,coordsIn:_.noop,areCoordsOutsideAxis:_.noop,_getSkippedCategory:_.noop,_initAxisPositions:_.noop,_drawTitle:_.noop,_updateTitleCoords:_.noop,_adjustConstantLineLabels:_.noop,_createTranslator:function(){return new h.default.Translator2D({},{},{})},_updateTranslator:function(){var t=this._translator;t.update(t.getBusinessRange(),this._canvas||{},this._getTranslatorOptions())},_getTranslatorOptions:function(){var t,e,n,i=this._options;return{isHorizontal:this._isHorizontal,shiftZeroValue:!this.isArgumentAxis,interval:i.semiDiscreteInterval,firstDayOfWeek:null===(t=i.workWeek)||void 0===t?void 0:t[0],stick:this._getStick(),breaksSize:null!==(e=null===(n=i.breakStyle)||void 0===n?void 0:n.width)&&void 0!==e?e:0}},getVisibleArea:function(){var t=this._getCanvasStartEnd();return[t.start,t.end].sort((function(t,e){return t-e}))},_getCanvasStartEnd:function(){var t=this._isHorizontal,e=this._canvas||{},n=this._translator.getBusinessRange().invert,i=t?[e.left,e.width-e.right]:[e.height-e.bottom,e.top];return n&&i.reverse(),{start:i[0],end:i[1]}},_getScreenDelta:function(){var t=this._getCanvasStartEnd(),e=this._seriesData?this._seriesData.breaks:[],n=e.length;return P(t.start-t.end)-(n?e[n-1].cumulativeWidth:0)},_getScaleBreaks:function(){return[]},_adjustTitle:_.noop,_checkTitleOverflow:_.noop,getSpiderTicks:_.noop,setSpiderTicks:_.noop,_checkBoundedLabelsOverlapping:_.noop,drawScaleBreaks:_.noop,_visualRange:_.noop,_rotateConstantLine:_.noop,applyVisualRangeSetter:function(t){this._visualRange=t},getCategoriesSorter:function(t){var e;if(this.isArgumentAxis)e=t;else{var n=this._options.categoriesSortingMethod;e=null!==n&&void 0!==n?n:this._options.categories}return e},_getAdjustedBusinessRange:function(){return this.adjustViewport(this._translator.getBusinessRange())}}},function(t,e,n){"use strict";var i,o=n(13),r=n(0),a=n(279),s=n(2),l=n(121),u=(i=l)&&i.__esModule?i:{default:i},c=n(54),d=n(4),h=n(274),f=n(7);var p=Number,m=Math,g=m.round,_=m.max,v=m.min,y=m.ceil,b=s.isDefined,w=s.isFunction,x=o.enumParser,C=o.normalizeEnum,S=r.extend,k="center",I="right",T="left",E="top",O="bottom",M=x([T,k,I]),P=x([E,O]),D=x(["vertical","horizontal"]),A=x([T,I,E,O]),R=x(["outside","inside"]),B=x([T,k,I]);function N(t,e,n){if(t){var i=t.fill;return(0,r.extend)({},{state:n,fill:"none"===i?e:i,opacity:t.opacity,hatching:S({},t.hatching,{step:5,width:2})})}}function L(t,e,n){var i=(0,h.processHatchingAttrs)(t,e);return i.fill&&0===i.fill.indexOf("DevExpress")&&(i.fill=(0,h.getFuncIri)(i.fill)),i.opacity=i.opacity>=0?i.opacity:1,(0,r.extend)({},i,{size:n})}function F(t,e,n,i){var o=e&&n[e[t]];o&&o.renderMarker(o.states[i])}function V(t,e,n){return t?(function(t){var e=t.margin;e=e>=0?{top:e=p(t.margin),bottom:e,left:e,right:e}:{top:e.top>=0?p(e.top):10,bottom:e.bottom>=0?p(e.bottom):10,left:e.left>=0?p(e.left):10,right:e.right>=0?p(e.right):10},t.margin=e}(t),t.horizontalAlignment=M(t.horizontalAlignment,I),t.verticalAlignment=P(t.verticalAlignment,t.horizontalAlignment===k?O:E),t.orientation=D(t.orientation,t.horizontalAlignment===k?"horizontal":"vertical"),t.itemTextPosition=A(t.itemTextPosition,"horizontal"===t.orientation?O:I),t.position=n?R(t.position,"outside"):"outside",t.itemsAlignment=B(t.itemsAlignment,null),t.hoverMode=C(t.hoverMode),t.customizeText=w(t.customizeText)?t.customizeText:function(){return this[e]},t.customizeHint=w(t.customizeHint)?t.customizeHint:d.noop,t._incidentOccurred=t._incidentOccurred||d.noop,t):null}function z(t,e){return t.rect(0,0,e,e)}function j(t,e){return t.circle(e/2,e/2,e/2)}function H(t,e,n){return e>=t.left&&e<=t.right&&n>=t.top&&n<=t.bottom}function W(t,e,n,i){var o={x:0,y:0},r=0,a=0,s=0;if(s="y"===e.direction?i.top+i.bottom:i.left+i.right,t.forEach((function(t,n){var i=t[0],s=t.length;t.forEach((function(t,n){var i=t.offset||e.spacing;o[e.direction]+=t[e.measure]+(n!==s-1?i:0),r=_(r,o[e.direction])})),o[e.direction]=0,o[e.altDirection]+=i[e.altMeasure]+i.altOffset||e.altSpacing,a=_(a,o[e.altDirection])})),r+s>e.length)return e.countItem=function(t,e){return t.altCountItem++,y(e/t.altCountItem)}(e,n),!0}function U(t,e){return t.reduce((function(t,n){var i=n.offset||e.spacing;return t+n[e.measure]+i}),0)}function G(t){switch(t.itemTextPosition){case O:return{horizontal:k,vertical:E};case E:return{horizontal:k,vertical:O};case T:return{horizontal:I,vertical:k};case I:return{horizontal:T,vertical:k}}}function K(t,e){var n=t.reduce((function(t,n){var i=n?n[e]:t;return _(t,i)}),0);t.forEach((function(t){t&&(t[e]=n)}))}function q(t){var e,n,i=t.length,o=t[0].length,r=[];for(e=0;e<o;e++)for(r[e]=[],n=0;n<i;n++)r[e][n]=t[n][e];return r}var $=function(t){return function(t){return"circle"===C(t)}(t)?j:z};function Y(t){return t.horizontalAlignment===k?k:t.itemTextPosition===I?T:t.itemTextPosition===T?I:k}var Z=e.Legend=function(t){this._renderer=t.renderer,this._legendGroup=t.group,this._backgroundClass=t.backgroundClass,this._itemGroupClass=t.itemGroupClass,this._textField=t.textField,this._getCustomizeObject=t.getFormatObject,this._titleGroupClass=t.titleGroupClass,this._allowInsidePosition=t.allowInsidePosition,this._widget=t.widget,this._asyncFirstDrawing=!0,this._updated=!1},X=Z.prototype=(0,c.clone)(a.LayoutElement.prototype);(0,r.extend)(X,{constructor:Z,getOptions:function(){return this._options},update:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=(e=i._options=V(e,i._textField,i._allowInsidePosition)||{}).markerSize;if(this._updated=!0,this._data=t.map((function(t){return t.size=p(t.size>0?t.size:o),t.marker=L(t,t.states.normal),Object.defineProperty(t.marker,"size",{get:function(){return t.size},set:function(e){t.size=e}}),Object.defineProperty(t.marker,"opacity",{get:function(){return t.states.normal.opacity},set:function(e){t.states.normal.opacity=t.states.hover.opacity=t.states.selection.opacity=e}}),t})),e.customizeItems&&(i._data=e.customizeItems(t.slice())||t),i._boundingRect={width:0,height:0,x:0,y:0},i.isVisible()&&!i._title&&(i._title=new u.default.Title({renderer:i._renderer,cssClass:i._titleGroupClass,root:i._legendGroup})),i._title){var r=e.title;n.horizontalAlignment=Y(e),i._title.update(n,r)}return this.erase(),i},isVisible:function(){return this._options&&this._options.visible},draw:function(t,e){var n=this._getItemData();if(this._isAsyncRendering=!1,this.erase(),!(this.isVisible()&&n&&n.length))return this;if(this._insideLegendGroup=this._renderer.g().enableLinks().append(this._legendGroup),this._title.changeLink(this._insideLegendGroup),this._createBackground(),this._title.hasText()){var i=this._background?2*this._options.paddingLeftRight:0;this._title.draw(t-i,e)}return this._markersGroup=this._renderer.g().attr({class:this._itemGroupClass}).append(this._insideLegendGroup),this._createItems(n),this._updateElementsPosition(t,e),this},_measureElements:function(){var t=this._options,e=0;this._items.forEach((function(n){var i=n.label.getBBox(),o=n.marker.getBBox();n.markerBBox=o,n.markerSize=Math.max(o.width,o.height);var r=function(t,e,n){var i,o;switch(t.itemTextPosition){case T:case I:i=e.width+7+n.width,o=_(e.height,n.height);break;case E:case O:i=_(e.width,n.width),o=e.height+4+n.height}return{width:i,height:o}}(t,o,i);n.labelBBox=i,n.bBox=r,e=_(e,r.height)})),t.equalRowHeight&&this._items.forEach((function(t){return t.bBox.height=e}))},_updateElementsPosition:function(t,e){var n=this._options;this._size={width:t,height:e},this._measureElements(),this._locateElements(n),this._finalUpdate(n);var i=this.getLayoutOptions();(i.width>t||i.height>e)&&this.freeSpace()},_createItems:function(t){var e=this,n=e._options,i=e._renderer,a=$(n.markerShape);e._markersId={};var s=n.markerTemplate?n.markerTemplate:function(t,e){var n=t.marker;a(i,n.size).attr({fill:n.fill,opacity:n.opacity}).append({element:e})},l=e._widget._getTemplate(s),u=e._markersGroup;u.css((0,o.patchFontOptions)(n.font));var c=[];e._items=(t||[]).map((function(t,o){var a=t.states,s=a.normal,d=s.fill;t.size=t.marker.size;var h={normal:(0,r.extend)(s,{fill:d||n.markerColor||n.defaultColor,state:"normal"}),hover:N(a.hover,d,"hovered"),selection:N(a.selection,d,"selected")};t.states=h;var p=i.g().append(u),m=i.g().attr({class:"dxl-marker"}).append(p);c[o]=new f.Deferred;var g={label:e._createLabel(t,p),marker:m,renderer:i,group:p,tracker:{id:t.id,argument:t.argument,argumentIndex:t.argumentIndex},states:h,itemTextPosition:n.itemTextPosition,markerOffset:0,bBoxes:[],renderMarker:function(n){t.marker=L(g,n,t.size),m.clear();var i=!1;l.render({model:t,container:m.element,onRendered:function(){i=!0,c[o].resolve()}}),i||0!==m.element.childNodes.length||(e._isAsyncRendering=!0)}};return g.renderMarker(h.normal),e._createHint(t,p),void 0!==t.id&&(e._markersId[t.id]=o),g})),f.when.apply(this,c).done((function(){if(e._isAsyncRendering){var t=["LAYOUT","FULL_RENDER"];e._asyncFirstDrawing?(t.push("FORCE_FIRST_DRAWING"),e._asyncFirstDrawing=!1):t.push("FORCE_DRAWING"),e._widget._requestChange(t)}}))},_getItemData:function(){var t=this._data||[];return(this._options||{}).inverted&&(t=t.slice().reverse()),t.filter((function(t){return t.visible}))},_finalUpdate:function(t){this._adjustBackgroundSettings(t),this._setBoundingRect(t.margin)},erase:function(){var t=this._insideLegendGroup;return t&&t.dispose(),this._insideLegendGroup=this._markersGroup=this._x1=this._x2=this._y2=this._y2=null,this},_locateElements:function(t){this._moveInInitialValues(),this._locateRowsColumns(t)},_moveInInitialValues:function(){this._title.hasText()&&this._title.move([0,0]),this._legendGroup&&this._legendGroup.move(0,0),this._background&&this._background.attr({x:0,y:0,width:0,height:0})},applySelected:function(t){return F(t,this._markersId,this._items,"selection"),this},applyHover:function(t){return F(t,this._markersId,this._items,"hover"),this},resetItem:function(t){return F(t,this._markersId,this._items,"normal"),this},_createLabel:function(t,e){var n=this._getCustomizeObject(t),i=this._options,r=function(t){switch(t){case E:case O:return k;case T:return I;case I:return T}}(i.itemTextPosition),a=i.customizeText.call(n,n),s=b(t.textOpacity)?{color:i.font.color,opacity:t.textOpacity}:{};return this._renderer.text(a,0,0).css((0,o.patchFontOptions)(s)).attr({align:r,class:i.cssClass}).append(e)},_createHint:function(t,e){var n=this._getCustomizeObject(t),i=this._options.customizeHint.call(n,n);b(i)&&""!==i&&e.setTitle(i)},_createBackground:function(){var t="inside"===this._options.position,e=this._options.backgroundColor,n=e||(t?this._options.containerBackgroundColor:"none");(this._options.border.visible||(t||e)&&"none"!==e)&&(this._background=this._renderer.rect(0,0,0,0).attr({fill:n,class:this._backgroundClass}).append(this._insideLegendGroup))},_locateRowsColumns:function(t){var e,n=0,i=this._getItemsLayoutOptions(),o=this._items.length;do{e=[],this._createLines(e,i),this._alignLines(e,i),n++}while(W(e,i,o,t.margin)&&n<o);this._applyItemPosition(e,i)},_createLines:function(t,e){this._items.forEach((function(n,i){var o,r,a=function(t,e,n){var i={};return n%e.countItem===0&&(e.markerOffset?t.push([],[]):t.push([])),e.markerOffset?(i.firstLine=t[t.length-1],i.secondLine=t[t.length-2]):i.firstLine=i.secondLine=t[t.length-1],i}(t,e,i),s={width:n.labelBBox.width,height:n.labelBBox.height,element:n.label,bBox:n.labelBBox,pos:G(e),itemIndex:i},l={width:n.markerBBox.width,height:n.markerBBox.height,element:n.marker,pos:{horizontal:k,vertical:k},bBox:{width:n.markerBBox.width,height:n.markerBBox.height,x:n.markerBBox.x,y:n.markerBBox.y},itemIndex:i},u=e.markerOffset?"altOffset":"offset";e.inverseLabelPosition?(o=s,r=l):(o=l,r=s),o[u]=e.labelOffset,a.secondLine.push(o),a.firstLine.push(r)}))},_alignLines:function(t,e){var n,i=e.altMeasure;if(t.forEach((function(t){return K(t,i)})),i=e.measure,e.itemsAlignment){if(e.markerOffset)for(n=0;n<t.length;)q([t[n++],t[n++]]).forEach(o)}else q(t).forEach(o);function o(t){K(t,i)}},_applyItemPosition:function(t,e){var n=this,i={x:0,y:0},o=function(t,e){return t.reduce((function(t,n){return _(t,U(n,e))}),0)}(t,e);t.forEach((function(t){var r=t[0],s=r.altOffset||e.altSpacing;i[e.direction]=function(t,e,n){var i,o=U(t,e);switch(e.itemsAlignment){case I:i=n-o;break;case k:i=(n-o)/2;break;default:i=0}return i}(t,e,o),t.forEach((function(t){var o=t.offset||e.spacing,r=new a.WrapperLayoutElement(t.element,t.bBox),s={x:i.x,y:i.y,width:t.width,height:t.height},l=new a.WrapperLayoutElement(null,s),u=n._items[t.itemIndex];r.position({of:l,my:t.pos,at:t.pos}),u.bBoxes.push(l),i[e.direction]+=t[e.measure]+o})),i[e.altDirection]+=r[e.altMeasure]+s})),this._items.forEach((function(t){var e=function(t,e){var n={};return n.left=v(t.x,e.x),n.top=v(t.y,e.y),n.right=_(t.x+t.width,e.x+e.width),n.bottom=_(t.y+t.height,e.y+e.height),n}(t.bBoxes[0].getLayoutOptions(),t.bBoxes[1].getLayoutOptions()),i=n._options.columnItemSpacing/2,o=n._options.rowItemSpacing/2;t.tracker.left=e.left-i,t.tracker.right=e.right+i,t.tracker.top=e.top-o,t.tracker.bottom=e.bottom+o}))},_getItemsLayoutOptions:function(){var t=this._options,e=t.orientation,n={itemsAlignment:t.itemsAlignment,orientation:t.orientation},i=this._size.width-(this._background?2*t.paddingLeftRight:0),o=this._size.height-(this._background?2*t.paddingTopBottom:0);return"horizontal"===e?(n.length=i,n.spacing=t.columnItemSpacing,n.direction="x",n.measure="width",n.altMeasure="height",n.altDirection="y",n.altSpacing=t.rowItemSpacing,n.countItem=t.columnCount,n.altCountItem=t.rowCount,n.marginTextLabel=4,n.labelOffset=7,t.itemTextPosition!==O&&t.itemTextPosition!==E||(n.labelOffset=4,n.markerOffset=!0)):(n.length=o,n.spacing=t.rowItemSpacing,n.direction="y",n.measure="height",n.altMeasure="width",n.altDirection="x",n.altSpacing=t.columnItemSpacing,n.countItem=t.rowCount,n.altCountItem=t.columnCount,n.marginTextLabel=7,n.labelOffset=4,t.itemTextPosition!==I&&t.itemTextPosition!==T||(n.labelOffset=7,n.markerOffset=!0)),n.countItem||(n.altCountItem?n.countItem=y(this._items.length/n.altCountItem):n.countItem=this._items.length),t.itemTextPosition!==E&&t.itemTextPosition!==T||(n.inverseLabelPosition=!0),n.itemTextPosition=t.itemTextPosition,n.altCountItem=n.altCountItem||y(this._items.length/n.countItem),n},_adjustBackgroundSettings:function(t){if(this._background){var e=t.border,n=this._calculateTotalBox(),i={x:g(n.x-t.paddingLeftRight),y:g(n.y-t.paddingTopBottom),width:g(n.width)+2*t.paddingLeftRight,height:g(n.height),opacity:t.backgroundOpacity};e.visible&&e.width&&e.color&&"none"!==e.color&&(i["stroke-width"]=e.width,i.stroke=e.color,i["stroke-opacity"]=e.opacity,i.dashStyle=e.dashStyle,i.rx=e.cornerRadius||0,i.ry=e.cornerRadius||0),this._background.attr(i)}},_setBoundingRect:function(t){if(this._insideLegendGroup){var e=this._calculateTotalBox();e.height+=t.top+t.bottom,e.widthWithoutMargins=e.width,e.width+=t.left+t.right,e.x-=t.left,e.y-=t.top,this._boundingRect=e}},_calculateTotalBox:function(){var t=this._markersGroup.getBBox(),e=this._title.getCorrectedLayoutOptions(),n=this._insideLegendGroup.getBBox(),i=this._background?2*this._options.paddingTopBottom:0;return n.height=t.height+e.height+i,e.width>n.width&&(n.width=e.width),n},getActionCallback:function(t){var e=this;return e._options.visible?function(n){e[n](t.index)}:d.noop},getLayoutOptions:function(){var t=this._options,e=this._insideLegendGroup?this._boundingRect:{width:0,height:0,x:0,y:0};return t?(e.verticalAlignment=t.verticalAlignment,e.horizontalAlignment=t.horizontalAlignment,"horizontal"===t.orientation||t.horizontalAlignment===k?(e.cutLayoutSide=t.verticalAlignment,e.cutSide="vertical"):(e.cutLayoutSide=t.horizontalAlignment,e.cutSide="horizontal"),e.position={horizontal:t.horizontalAlignment,vertical:t.verticalAlignment},e):null},shift:function(t,e){var n={};return this._insideLegendGroup&&this._insideLegendGroup.attr({translateX:t-this._boundingRect.x,translateY:e-this._boundingRect.y}),this._title&&this._shiftTitle(this._boundingRect.widthWithoutMargins),this._markersGroup&&this._shiftMarkers(),this._insideLegendGroup&&(n=this._legendGroup.getBBox()),this._x1=n.x,this._y1=n.y,this._x2=n.x+n.width,this._y2=n.y+n.height,this},_shiftTitle:function(t){var e=this._title,n=e.getCorrectedLayoutOptions();if(n&&e.hasText()){var i=t-(this._background?2*this._options.paddingLeftRight:0),o=e.getOptions(),r=n.y+o.margin.top,a=0;o.verticalAlignment===O&&this._markersGroup&&(r+=this._markersGroup.getBBox().height),o.horizontalAlignment===I?a=i-n.width:o.horizontalAlignment===k&&(a=(i-n.width)/2),e.shift(a,r)}},_shiftMarkers:function(){var t=this._title.getLayoutOptions(),e=this._markersGroup.getBBox(),n=this._title.getOptions()||{},i=0,o=0;t.width>e.width&&this._options.horizontalAlignment===k&&(i=t.width/2-e.width/2),n.verticalAlignment===E&&(o=t.height),0===i&&0===o||(this._markersGroup.attr({translateX:i,translateY:o}),this._items.forEach((function(t){t.tracker.left+=i,t.tracker.right+=i,t.tracker.top+=o,t.tracker.bottom+=o})))},getPosition:function(){return this._options.position},coordsIn:function(t,e){return t>=this._x1&&t<=this._x2&&e>=this._y1&&e<=this._y2},getItemByCoord:function(t,e){var n=this._items,i=this._insideLegendGroup;t-=i.attr("translateX"),e-=i.attr("translateY");for(var o=0;o<n.length;o++)if(H(n[o].tracker,t,e))return n[o].tracker;return null},dispose:function(){return this._title&&this._title.dispose(),this._legendGroup=this._insideLegendGroup=this._title=this._renderer=this._options=this._data=this._items=null,this},layoutOptions:function(){if(!this.isVisible())return null;var t=this.getLayoutOptions();return{horizontalAlignment:this._options.horizontalAlignment,verticalAlignment:this._options.verticalAlignment,side:t.cutSide,priority:1,position:this.getPosition()}},measure:function(t){this._updated||!this._insideLegendGroup?(this.draw(t[0],t[1]),this._updated=!1):(this._items.forEach((function(t){t.bBoxes=[]})),this._updateElementsPosition(t[0],t[1]));var e=this.getLayoutOptions();return[e.width,e.height]},move:function(t){this.shift(t[0],t[1])},freeSpace:function(){this._options._incidentOccurred("W2104"),this.erase()}}),e.plugin={name:"legend",init:function(){var t=this._renderer.g().attr({class:this._rootClassPrefix+"-legend"}).enableLinks().append(this._renderer.root);this._legend=new e.Legend({renderer:this._renderer,group:t,widget:this,itemGroupClass:this._rootClassPrefix+"-item",titleGroupClass:this._rootClassPrefix+"-title",textField:"text",getFormatObject:function(t){return{item:t.item,text:t.text}}}),this._layout.add(this._legend)},extenders:{_applyTilesAppearance:function(){var t=this;this._items.forEach((function(e){t._applyLegendItemStyle(e.id,e.getState())}))},_buildNodes:function(){this._createLegendItems()}},members:{_applyLegendItemStyle:function(t,e){var n=this._legend;switch(e){case"hover":n.applyHover(t);break;case"selection":n.applySelected(t);break;default:n.resetItem(t)}},_createLegendItems:function(){this._legend.update(this._getLegendData(),this._getOption("legend"),this._themeManager.theme("legend").title)&&this._requestChange(["LAYOUT"])}},dispose:function(){this._legend.dispose()},customize:function(t){t.prototype._proxyData.push((function(t,e){if(this._legend.coordsIn(t,e)){var n=this._legend.getItemByCoord(t,e);if(n)return{id:n.id,type:"legend"}}})),t.addChange({code:"LEGEND",handler:function(){this._createLegendItems()},isThemeDependent:!0,option:"legend",isOptionChange:!0})}}},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(6)),r=g(n(8)),a=n(0),s=n(4),l=g(n(10)),u=g(n(46)),c=n(2),d=g(n(130)),h=n(5),f=g(n(31)),p=g(n(160)),m=g(n(69));function g(t){return t&&t.__esModule?t:{default:t}}function _(t){return(_="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function w(t,e,n){return(w="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=I(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function x(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==_(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T={row:"minWidth",col:"minHeight"},E={row:"maxWidth",col:"maxHeight"},O={start:"flex-start",end:"flex-end",center:"center","space-between":"space-between","space-around":"space-around"},M={start:"flex-start",end:"flex-end",center:"center",stretch:"stretch"},P={row:"row",col:"column"},D=function(t,e,n){if(n=d.default.normalizeStyleProp(e,n),t.style[d.default.styleProp(e)]=n,!l.default.hasWindow()){if(""===n||!(0,c.isDefined)(n))return;var i=u.default.dasherize(e)+": "+n+";";t.attributes.style?t.attributes.style.value.indexOf(i)<0&&(t.attributes.style.value+=" "+i):t.setAttribute("style",i)}},A={row:"nowrap",col:"normal"},R={row:"width",col:"height"},B={row:"height",col:"width"},N={row:"marginLeft",col:"marginTop"},L={row:"marginRight",col:"marginBottom"},F={row:"marginTop",col:"marginLeft"},V={row:"marginBottom",col:"marginRight"},z={marginLeft:"marginRight",marginRight:"marginLeft"},j=function(t){x(n,t);var e=S(n);function n(){return v(this,n),e.apply(this,arguments)}return b(n,[{key:"_renderVisible",value:function(t,e){w(I(n.prototype),"_renderVisible",this).call(this,t),(0,c.isDefined)(e)&&this._options.fireItemStateChangedAction({name:"visible",state:t,oldState:e})}}]),n}(p.default),H=function(){function t(e,n){v(this,t),this._$element=e,this._option=n,this.initSize=s.noop,this.update=s.noop}return b(t,[{key:"renderBox",value:function(){this._$element.css({display:d.default.stylePropPrefix("flexDirection")+"flex"}),D(this._$element.get(0),"flexDirection",P[this._option("direction")])}},{key:"renderAlign",value:function(){this._$element.css({justifyContent:this._normalizedAlign()})}},{key:"_normalizedAlign",value:function(){var t=this._option("align");return t in O?O[t]:t}},{key:"renderCrossAlign",value:function(){this._$element.css({alignItems:this._normalizedCrossAlign()})}},{key:"_normalizedCrossAlign",value:function(){var t=this._option("crossAlign");return t in M?M[t]:t}},{key:"renderItems",value:function(t){var e=d.default.stylePropPrefix("flexDirection"),n=this._option("direction");(0,h.each)(t,(function(){var t=(0,i.default)(this),o=t.data("dxBoxItemData");t.css({display:e+"flex"}).css(E[n],o.maxSize||"none").css(T[n],o.minSize||"0"),D(t.get(0),"flexBasis",o.baseSize||0),D(t.get(0),"flexGrow",o.ratio),D(t.get(0),"flexShrink",(0,c.isDefined)(o.shrink)?o.shrink:1),t.children().each((function(t,e){(0,i.default)(e).css({width:"auto",height:"auto",display:d.default.stylePropPrefix("flexDirection")+"flex",flexBasis:0}),D(e,"flexGrow",1),D(e,"flexDirection",(0,i.default)(e)[0].style.flexDirection||"column")}))}))}}]),t}(),W=function(){function t(e,n){v(this,t),this._$element=e,this._option=n}return b(t,[{key:"renderBox",value:function(){this._$element.css({fontSize:0,whiteSpace:A[this._option("direction")],verticalAlign:"top"}),o.default.off(this._$element,"dxupdate.dxBox"),o.default.on(this._$element,"dxupdate.dxBox",this.update.bind(this))}},{key:"renderAlign",value:function(){var t=this._$items;if(t){var e=this._option("align"),n=this.totalItemSize,i=this._option("direction"),o=this._$element[R[i]]()-n,r=0;switch(this._setItemsMargins(t,i,0),e){case"start":break;case"end":r=o,t.first().css(this._chooseMarginSide(N[i]),r);break;case"center":r=.5*o,t.first().css(this._chooseMarginSide(N[i]),r),t.last().css(this._chooseMarginSide(L[i]),r);break;case"space-between":r=.5*o/(t.length-1),this._setItemsMargins(t,i,r),t.first().css(this._chooseMarginSide(N[i]),0),t.last().css(this._chooseMarginSide(L[i]),0);break;case"space-around":r=.5*o/t.length,this._setItemsMargins(t,i,r)}}}},{key:"_setItemsMargins",value:function(t,e,n){t.css(this._chooseMarginSide(N[e]),n).css(this._chooseMarginSide(L[e]),n)}},{key:"renderCrossAlign",value:function(){var t=this._$items;if(t){var e=this._option("crossAlign"),n=this._option("direction"),o=this._$element[B[n]](),r=this;switch(e){case"start":break;case"end":(0,h.each)(t,(function(){var t=(0,i.default)(this),e=t[B[n]](),a=o-e;t.css(r._chooseMarginSide(F[n]),a)}));break;case"center":(0,h.each)(t,(function(){var t=(0,i.default)(this),e=t[B[n]](),a=.5*(o-e);t.css(r._chooseMarginSide(F[n]),a).css(r._chooseMarginSide(V[n]),a)}));break;case"stretch":t.css(r._chooseMarginSide(F[n]),0).css(r._chooseMarginSide(V[n]),0).css(B[n],"100%")}}}},{key:"_chooseMarginSide",value:function(t){return this._option("rtlEnabled")&&z[t]||t}},{key:"renderItems",value:function(t){var e=this;this._$items=t;var n=this._option("direction"),o=0,r=0,a=0;(0,h.each)(t,(function(t,s){var l=(0,i.default)(s);l.css({display:"inline-block",verticalAlign:"top"}),l[R[n]]("auto"),l.removeClass("dx-box-fallback-item");var u=l.data("dxBoxItemData"),d=u.ratio||0,h=e._baseSize(l),f=(0,c.isDefined)(u.shrink)?u.shrink:1;o+=d,r+=f*h,a+=h}));var s=this._boxSize()-a,l=0;(0,h.each)(t,(function(t,a){var u=(0,i.default)(a),d=(0,i.default)(a).data("dxBoxItemData"),h=function(t){var n=t.data("dxBoxItemData"),i=e._baseSize(t),a=s>=0?n.ratio||0:((0,c.isDefined)(n.shrink)?n.shrink:1)*i,l=s>=0?o:r;return i+(l?Math.round(s*a/l):0)}(u);l+=h,u.css(E[n],d.maxSize||"none").css(T[n],d.minSize||"0").css(R[n],h),u.addClass("dx-box-fallback-item")})),this.totalItemSize=l}},{key:"_baseSize",value:function(t){var e=(0,i.default)(t).data("dxBoxItemData");return null==e.baseSize?0:"auto"===e.baseSize?this._contentSize(t):this._parseSize(e.baseSize)}},{key:"_contentSize",value:function(t){return(0,i.default)(t)[R[this._option("direction")]]()}},{key:"_parseSize",value:function(t){return String(t).match(/.+%$/)?.01*parseFloat(t)*this._boxSizeValue:t}},{key:"_boxSize",value:function(t){if(!arguments.length)return this._boxSizeValue=this._boxSizeValue||this._totalBaseSize(),this._boxSizeValue;this._boxSizeValue=t}},{key:"_totalBaseSize",value:function(){var t=this,e=0;return(0,h.each)(this._$items,(function(n,i){e+=t._baseSize(i)})),e}},{key:"initSize",value:function(){this._boxSize(this._$element[R[this._option("direction")]]())}},{key:"update",value:function(){if(this._$items&&!this._$element.is(":hidden")){this._$items.detach(),this.initSize(),this._$element.append(this._$items),this.renderItems(this._$items),this.renderAlign(),this.renderCrossAlign();var t=this._$element.get(0);this._$items.find(".dx-box").each((function(){t===(0,i.default)(this).parent().closest(".dx-box").get(0)&&o.default.triggerHandler(this,"dxupdate.dxBox")}))}}}]),t}(),U=function(t){x(n,t);var e=S(n);function n(){return v(this,n),e.apply(this,arguments)}return b(n,[{key:"_getDefaultOptions",value:function(){return(0,a.extend)(w(I(n.prototype),"_getDefaultOptions",this).call(this),{direction:"row",align:"start",crossAlign:"stretch",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,_layoutStrategy:"flex",_queue:void 0})}},{key:"_defaultOptionsRules",value:function(){return w(I(n.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return f.default.msie},options:{_layoutStrategy:"fallback"}}])}},{key:"_itemClass",value:function(){return"dx-box-item"}},{key:"_itemDataKey",value:function(){return"dxBoxItemData"}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}},{key:"_init",value:function(){w(I(n.prototype),"_init",this).call(this),this.$element().addClass("".concat("dx-box","-").concat(this.option("_layoutStrategy"))),this._initLayout(),this._initBoxQueue()}},{key:"_initLayout",value:function(){this._layout="fallback"===this.option("_layoutStrategy")?new W(this.$element(),this.option.bind(this)):new H(this.$element(),this.option.bind(this))}},{key:"_initBoxQueue",value:function(){this._queue=this.option("_queue")||[]}},{key:"_queueIsNotEmpty",value:function(){return!this.option("_queue")&&!!this._queue.length}},{key:"_pushItemToQueue",value:function(t,e){this._queue.push({$item:t,config:e})}},{key:"_shiftItemFromQueue",value:function(){return this._queue.shift()}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-box"),this._layout.renderBox(),w(I(n.prototype),"_initMarkup",this).call(this),this._renderAlign(),this._renderActions()}},{key:"_renderActions",value:function(){this._onItemStateChanged=this._createActionByOption("onItemStateChanged")}},{key:"_renderAlign",value:function(){this._layout.renderAlign(),this._layout.renderCrossAlign()}},{key:"_renderItems",value:function(t){var e=this;for(this._layout.initSize(),w(I(n.prototype),"_renderItems",this).call(this,t);this._queueIsNotEmpty();){var i=this._shiftItemFromQueue();this._createComponent(i.$item,n,(0,a.extend)({_layoutStrategy:this.option("_layoutStrategy"),itemTemplate:this.option("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this.option("onItemHold"),onItemClick:this.option("onItemClick"),onItemContextMenu:this.option("onItemContextMenu"),onItemRendered:this.option("onItemRendered"),_queue:this._queue},i.config))}this._layout.renderItems(this._itemElements()),clearTimeout(this._updateTimer),this._updateTimer=setTimeout((function(){e._isUpdated||e._layout.update(),e._isUpdated=!1,e._updateTimer=null}))}},{key:"_renderItemContent",value:function(t){var e=t.itemData&&t.itemData.node;return e?this._renderItemContentByNode(t,e):w(I(n.prototype),"_renderItemContent",this).call(this,t)}},{key:"_postprocessRenderItem",value:function(t){var e=t.itemData.box;e&&this._pushItemToQueue(t.itemContent,e)}},{key:"_createItemByTemplate",value:function(t,e){return e.itemData.box?t.source?t.source():(0,i.default)():w(I(n.prototype),"_createItemByTemplate",this).call(this,t,e)}},{key:"_visibilityChanged",value:function(t){t&&this._dimensionChanged()}},{key:"_dimensionChanged",value:function(){this._updateTimer||(this._isUpdated=!0,this._layout.update())}},{key:"_dispose",value:function(){clearTimeout(this._updateTimer),w(I(n.prototype),"_dispose",this).apply(this,arguments)}},{key:"_itemOptionChanged",value:function(t,e,i,o){"visible"===e&&this._onItemStateChanged({name:e,state:i,oldState:!1!==o}),w(I(n.prototype),"_itemOptionChanged",this).call(this,t,e,i)}},{key:"_optionChanged",value:function(t){switch(t.name){case"_layoutStrategy":case"_queue":case"direction":this._invalidate();break;case"align":this._layout.renderAlign();break;case"crossAlign":this._layout.renderCrossAlign();break;default:w(I(n.prototype),"_optionChanged",this).call(this,t)}}},{key:"_itemOptions",value:function(){var t=this,e=w(I(n.prototype),"_itemOptions",this).call(this);return e.fireItemStateChangedAction=function(e){t._onItemStateChanged(e)},e}},{key:"repaint",value:function(){this._dimensionChanged()}}]),n}(m.default);U.ItemClass=j,(0,r.default)("dxBox",U),t.exports=U,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(0).extend,o=Math,r=o.floor,a=o.abs,s=n(141);function l(t){var e=t.initialValue,n=t._getValTranslator().getBusinessRange().invert,i="discrete"===t.series.valueAxisType,o=t.series.isFullStackedSeries();return!i&&(e>=0&&!n||e<0&&n)||i&&!n||o?"top":"bottom"}t.exports=i({},s,{correctCoordinates:function(t){var e=r(t.offset-t.width/2);this._options.rotated?(this.height=t.width,this.yCorrection=e,this.xCorrection=null):(this.width=t.width,this.xCorrection=e,this.yCorrection=null)},_getGraphicBBox:function(t){var e={x:this.x,y:this.y,width:this.width,height:this.height};if(t){var n="top"===t;this._options.rotated?(e.x=n?e.x+e.width:e.x,e.width=0):(e.y=n?e.y:e.y+e.height,e.height=0)}return e},_getLabelConnector:function(t){return this._getGraphicBBox(t)},_getLabelPosition:function(){var t=l(this);return this._options.rotated&&(t="top"===t?"right":"left"),t},_getLabelCoords:function(t){return 0===this.initialValue&&this.series.isFullStackedSeries()?this._options.rotated?this._getLabelCoordOfPosition(t,"right"):this._getLabelCoordOfPosition(t,"top"):"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):s._getLabelCoords.call(this,t)},_drawLabel:function(){this._label.pointPosition="inside"!==this._label.getLayoutOptions().position&&l(this),s._drawLabel.call(this)},hideInsideLabel:function(t,e){var n=this._getGraphicBBox(),i=t.getBoundingRect();return!(!this._options.resolveLabelsOverlapping||!(e.y<=n.y&&e.y+i.height>=n.y+n.height||e.x<=n.x&&e.x+i.width>=n.x+n.width)||e.y>n.y+n.height||e.y+i.height<n.y||e.x>n.x+n.width||e.x+i.width<n.x)&&(t.draw(!1),!0)},_showForZeroValues:function(){return this._options.label.showForZeroValues||this.initialValue},_drawMarker:function(t,e,n){var i=this._getStyle(),o=this._options.cornerRadius,r=this._options.rotated,a=this.getMarkerCoords(),s=a.x,l=a.y,u=a.width,c=a.height;n&&(r?(u=0,s=this.defaultX):(c=0,l=this.defaultY)),this.graphic=t.rect(s,l,u,c).attr({rx:o,ry:o}).smartAttr(i).data({"chart-data-point":this}).append(e)},_getSettingsForTracker:function(){var t=this.y,e=this.height,n=this.x,i=this.width;return this._options.rotated?1===i&&(i=9,n-=4):1===e&&(e=9,t-=4),{x:n,y:t,width:i,height:e}},getGraphicSettings:function(){var t=this.graphic;return{x:t.attr("x"),y:t.attr("y"),height:t.attr("height"),width:t.attr("width")}},_getEdgeTooltipParams:function(){var t,e,n=this.value>=0,i=this._getValTranslator().getBusinessRange().invert,o=this.x,r=this.y,a=this.width,s=this.height;return this._options.rotated?(e=r+s/2,t=i?n?o:o+a:n?o+a:o):(t=o+a/2,e=i?n?r+s:r:n?r:r+s),{x:t,y:e,offset:0}},getTooltipParams:function(t){if("edge"===t)return this._getEdgeTooltipParams();var e=this.getCenterCoord();return e.offset=0,e},getCenterCoord:function(){var t=this.width,e=this.height;return{x:this.x+t/2,y:this.y+e/2}},_truncateCoord:function(t,e){return null===t?t:t<e[0]?e[0]:t>e[1]?e[1]:t},_getErrorBarBaseEdgeLength:function(){return this._options.rotated?this.height:this.width},_translateErrorBars:function(t){s._translateErrorBars.call(this),(this._errorBarPos<t[0]||this._errorBarPos>t[1])&&(this._errorBarPos=void 0)},_translate:function(){var t,e,n,i=this._options.rotated,o=i?"x":"y",r=i?"y":"x",s=i?"width":"height",l=i?"height":"width",u=this._getArgTranslator(),c=this._getValTranslator(),d=this.series.getArgumentAxis().getVisibleArea(),h=this.series.getValueAxis().getVisibleArea();t=u.translate(this.argument),this[r]=t=null===t?t:t+(this[r+"Correction"]||0),e=c.translate(this.value,1),n=c.translate(this.minValue),this["v"+o]=e,this["v"+r]=t+this[l]/2,e=this._truncateCoord(e,h),n=this._truncateCoord(n,h),this[s]=a(e-n),e=e<n?e:n,this._calculateVisibility(i?e:t,i?t:e,this.width,this.height),this[o]=null===e?e:e+(this[o+"Correction"]||0),this["min"+o.toUpperCase()]=null===n?n:n+(this[o+"Correction"]||0),this["default"+o.toUpperCase()]=c.translate("canvas_position_default"),this._translateErrorBars(d),this.inVisibleArea&&null!==this[r]&&(this[r]<d[0]&&(this[l]=this[l]-(d[0]-this[r]),this[r]=d[0]),this[r]+this[l]>d[1]&&(this[l]=d[1]-this[r]))},_updateMarker:function(t,e){this.graphic.smartAttr(i({},e,t?{}:this.getMarkerCoords()))},getMarkerCoords:function(){var t=this.x,e=this.y,n=this.width,i=this.height,o=this.series.getArgumentAxis(),r=this._options.rotated;if(o.getAxisPosition){var a=o.getOptions(),s=Math.round(a.width/2),l=o.getAxisPosition();if(a.visible)if(r){var u=this.minX===this.defaultX&&this.minX===l-o.getAxisShift();t+=u?s:0,(n-=u?s:0)<0&&(n=0)}else(i-=this.minY===this.defaultY&&this.minY===l-o.getAxisShift()?s:0)<0&&(i=0)}return{x:t,y:e,width:n,height:i}},coordsIn:function(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}})},function(t,e,n){"use strict";var i=n(13),o=n(2),r=n(4),a=Math.abs,s=Math.floor,l=Math.ceil,u=Math.min;function c(t,e,n){t.min=t.min<e?t.min:e,t.max=t.max>n?t.max:n}function d(t,e){if("logarithmic"!==t)return null;var n=e.getOptions().logarithmBase;return function(t){var e=(0,i.getLog)(a(t),n);return(e<0?s:l)(e)}}function h(t,e,n){var i=c;return"discrete"===t?i=function(t,e,n){e!==n&&t.categories.push(n),t.categories.push(e)}:e&&(i=function(t,n){var i=e.calculateInterval(n,t.prevValue),o=t.interval;t.interval=(o<i?o:i)||o,t.prevValue=n,c(t,n,n)}),n?function(t,e,o){var r=[];i(t,e,o),0!==e&&r.push(n(e)),0!==o&&r.push(n(o));var a=u.apply(null,r);t.linearThreshold=t.linearThreshold<a?t.linearThreshold:a}:i}function f(t,e,n){var i={axisType:t,dataType:e};return"discrete"===t?i.categories=[]:(i.min=n,i.max=n),i}function p(t){return t.categories&&(t.categories=(0,i.unique)(t.categories)),t}function m(t,e,n,i,r){var a=function(t,e,n,i){if(e&&(0,o.isDefined)(e.value)){var r=t.value,a=e.value,s=t.argument,l=(n-s)*(a-r)/(e.argument-s)+r.valueOf();return"datetime"===i.dataType?new Date(l):l}return t.value}(n,i,r,e);t(e,a,a)}function g(t){return t.type.toLowerCase().indexOf("line")>=0||t.type.toLowerCase().indexOf("area")>=0}function _(t){var e=h(t.valueAxisType),n=t.getArgumentAxis(),a=n&&t.getArgumentAxis().visualRange()||{},s=g(t)?m:r.noop;if(n&&n.getMarginOptions().checkInterval){var l=t.getArgumentAxis().getTranslator().getBusinessRange(),u=(0,i.getAddFunction)(l,!1),c=l.interval;isFinite(c)&&(0,o.isDefined)(a.startValue)&&(0,o.isDefined)(a.endValue)&&(a.startValue=u(a.startValue,c,-1),a.endValue=u(a.endValue,c))}var d=v(a);return function(t,n,i,r){var l=n.argument;return n.hasValue()?(d(l)?(t.startCalc||(t.startCalc=!0,s(e,t,n,r[i-1],a.startValue)),e(t,n.getMinValue(),n.getMaxValue())):!a.categories&&(0,o.isDefined)(a.startValue)&&l>a.startValue&&(t.startCalc||s(e,t,n,r[i-1],a.startValue),t.endCalc=!0,s(e,t,n,r[i-1],a.endValue)),t):t}}function v(t){if(t.categories){var e=t.categories.reduce((function(t,e){return t[e.valueOf()]=!0,t}),{});return function(t){return(0,o.isDefined)(t)&&e[t.valueOf()]}}return(0,o.isDefined)(t.startValue)||(0,o.isDefined)(t.endValue)?(0,o.isDefined)(t.endValue)?(0,o.isDefined)(t.startValue)?function(e){return e>=t.startValue&&e<=t.endValue}:function(e){return e<=t.endValue}:function(e){return e>=t.startValue}:function(){return!0}}t.exports={getViewPortFilter:v,getArgumentRange:function(t){var e=t._data||[],n={};if(e.length)if("discrete"===t.argumentAxisType)n={categories:e.map((function(t){return t.argument}))};else{var i;if(e.length>1){var o=t.getArgumentAxis().calculateInterval(e[0].argument,e[1].argument),r=t.getArgumentAxis().calculateInterval(e[e.length-1].argument,e[e.length-2].argument);i=u(o,r)}n={min:e[0].argument,max:e[e.length-1].argument,interval:i}}return p(n)},getRangeData:function(t){var e=t.getPoints(),n=t.useAggregation(),i=h(t.argumentAxisType,e.length>1&&t.getArgumentAxis(),d(t.argumentAxisType,t.getArgumentAxis())),r=h(t.valueAxisType,null,d(t.valueAxisType,t.getValueAxis())),a=_(t),s=e.reduce((function(t,e,n,o){var s=e.argument;return e.isArgumentCorrect()?(i(t.arg,s,s),e.hasValue()&&(r(t.val,e.getMinValue(),e.getMaxValue()),a(t.viewport,e,n,o)),t):t}),{arg:f(t.argumentAxisType,t.argumentType),val:f(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0),viewport:f(t.valueAxisType,t.valueType,e.length?t.getValueRangeInitialValue():void 0)});if(n){var l=this.getArgumentRange(t);if("discrete"===t.argumentAxisType)s.arg=l;else{var u=t.getArgumentAxis().getViewport();((0,o.isDefined)(u.startValue)||(0,o.isDefined)(u.length))&&i(s.arg,l.min,l.min),((0,o.isDefined)(u.endValue)||(0,o.isDefined)(u.length)&&(0,o.isDefined)(u.startValue))&&i(s.arg,l.max,l.max)}}return p(s.arg),p(s.val),s},getViewport:function(t){var e,n=t.getPoints(),i=_(t);return e=f(t.valueAxisType,t.valueType,n.length?t.getValueRangeInitialValue():void 0),n.some((function(t,o){return i(e,t,o,n),e.endCalc})),e},getPointsInViewPort:function(t){var e=v(t.getArgumentAxis().visualRange()||{}),n=t.getValueAxis().visualRange()||{},i=v(n),o=t.getPoints(),a=function(t,e,o){var r=e.getMinValue(),a=e.getMaxValue(),s=i(r),l=i(a);s&&t.push(r),a!==r&&l&&t.push(a),!o||s||l||(t.length?t.push(n.endValue):t.push(n.startValue))},s=g(t)?function(t,n,i){var o=n[i],r=n[i-1],s=n[i+1];s&&e(s.argument)&&a(t[1],o,!0),r&&e(r.argument)&&a(t[1],o,!0)}:r.noop;return o.reduce((function(t,n,i){return e(n.argument)?a(t[0],n):s(t,o,i),t}),[[],[]])}}},function(t,e,n){"use strict";var i=n(124),o=i.chart,r=i.polar,a=n(54),s=n(0).extend,l=n(5).each,u=n(13),c=n(37),d=u.normalizeAngle,h=u.map,f=s,p=l,m=Math.round,g=Math.sqrt,_=Math.pow,v=Math.min,y=Math.max,b=Math.abs;function w(t,e,n,i){var o=a.clone(t);return o.x=e,o.y=n,o.angle=i,o}function x(t,e,n,i,o){var r=t.angle+o,a=u.getCosAndSin(r);return w(e,n.x+(t.radius+i*o)*a.cos,n.y-(t.radius+i*o)*a.sin,r)}e.chart={},e.polar={};var C={autoHidePointMarkersEnabled:function(){return!0},_applyGroupSettings:function(t,e,n){e=f(e,t),this._applyElementsClipRect(e),n.attr(e)},_setGroupsSettings:function(t){var e=this._styles.normal;this._applyGroupSettings(e.elements,{class:"dxc-elements"},this._elementsGroup),this._bordersGroup&&this._applyGroupSettings(e.border,{class:"dxc-borders"},this._bordersGroup),o._setGroupsSettings.call(this,t),t&&this._markersGroup&&this._markersGroup.attr({opacity:.001})},_createGroups:function(){this._createGroup("_elementsGroup",this,this._group),this._areBordersVisible()&&this._createGroup("_bordersGroup",this,this._group),o._createGroups.call(this)},_areBordersVisible:function(){return!1},_getDefaultSegment:function(t){return{line:h(t.line||[],(function(t){return t.getDefaultCoords()}))}},_prepareSegment:function(t){return{line:t}},_parseLineOptions:function(t,e){return{stroke:t.color||e,"stroke-width":t.width,dashStyle:t.dashStyle||"solid"}},_parseStyle:function(t,e){return{elements:this._parseLineOptions(t,e)}},_applyStyle:function(t){this._elementsGroup&&this._elementsGroup.attr(t.elements),p(this._graphics||[],(function(e,n){n.line&&n.line.attr({"stroke-width":t.elements["stroke-width"]}).sharp()}))},_drawElement:function(t,e){return{line:this._createMainElement(t.line,{"stroke-width":this._styles.normal.elements["stroke-width"]}).append(e)}},_removeElement:function(t){t.line.remove()},_updateElement:function(t,e,n,i){var o={points:e.line},r=t.line;n?r.animate(o,{},i):r.attr(o)},_animateComplete:function(){o._animateComplete.call(this),this._markersGroup&&this._markersGroup.animate({opacity:1},{duration:this._defaultDuration})},_animate:function(){var t=this,e=t._graphics.length-1;p(t._graphics||[],(function(n,i){var o;n===e&&(o=function(){t._animateComplete()}),t._updateElement(i,t._segments[n],!0,o)}))},_drawPoint:function(t){o._drawPoint.call(this,{point:t.point,groups:t.groups})},_createMainElement:function(t,e){return this._renderer.path(t,"line").attr(e)},_sortPoints:function(t,e){return e?t.sort((function(t,e){return e.y-t.y})):t.sort((function(t,e){return t.x-e.x}))},_drawSegment:function(t,e,n,i){var o=this._options.rotated,r=this._prepareSegment(t,o,i);this._segments.push(r),this._graphics[n]?e||this._updateElement(this._graphics[n],r):this._graphics[n]=this._drawElement(e?this._getDefaultSegment(r):r,this._elementsGroup)},_getTrackerSettings:function(){var t=this._defaultTrackerWidth,e=this._styles.normal.elements["stroke-width"];return{"stroke-width":e>t?e:t,fill:"none"}},_getMainPointsFromSegment:function(t){return t.line},_drawTrackerElement:function(t){return this._createMainElement(this._getMainPointsFromSegment(t),this._getTrackerSettings(t))},_updateTrackerElement:function(t,e){var n=this._getTrackerSettings(t);n.points=this._getMainPointsFromSegment(t),e.attr(n)},checkSeriesViewportCoord:function(t,e){if(0===this._points.length)return!1;var n=t.isArgumentAxis?this.getArgumentRange():this.getViewport(),i=t.getTranslator().translate(n.categories?n.categories[0]:n.min),o=t.getTranslator().translate(n.categories?n.categories[n.categories.length-1]:n.max),r=this.getOptions().rotated,a=t.getOptions().inverted;return t.isArgumentAxis&&(!r&&!a||r&&a)||!t.isArgumentAxis&&(r&&!a||!r&&a)?e>=i&&e<=o:e>=o&&e<=i}},S=e.chart.line=f({},o,C,{getPointCenterByArg:function(t){var e=this.getArgumentAxis().getTranslator().translate(t);return{x:e,y:e}},getSeriesPairCoord:function(t,e){for(var n=null,i=this._getNearestPointsByCoord(t,e),o=e&&!this._options.rotated||!e&&this._options.rotated,r=0;r<i.length;r++){var a=i[r],s=(a[1].vy-a[0].vy)/(a[1].vx-a[0].vx),l=a[0].vy-a[0].vx*s,u=void 0;if(u=a[1].vx-a[0].vx===0?o?a[0].vy:a[0].vx:o?s*t+l:(t-l)/s,this._checkAxisVisibleAreaCoord(!e,u)){n=u;break}}return n}});e.chart.stepline=f({},S,{_calculateStepLinePoints:function(t){var e=[],n=this._options.rotated?"x":"y";return p(t,(function(t,i){var o;if(t){var r=e[e.length-1][n];r!==i[n]&&((o=a.clone(i))[n]=r,e.push(o)),e.push(i)}else e.push(i)})),e},_prepareSegment:function(t){return S._prepareSegment(this._calculateStepLinePoints(t))},getSeriesPairCoord:function(t,e){for(var n,i=this._options.rotated,o=!e&&!i||e&&i,r=o?"vy":"vx",a=o?"vx":"vy",s=this._getNearestPointsByCoord(t,e),l=0;l<s.length;l++){var u=s[l],c=void 0;if(c=e?t!==u[1][r]?u[0][a]:u[1][a]:t===u[0][r]?u[0][a]:u[1][a],this._checkAxisVisibleAreaCoord(!e,c)){n=c;break}}return n}}),e.chart.spline=f({},S,{_calculateBezierPoints:function(t,e){var n=[],i=t,o=function(t,e,n){return t>e&&n>t||t<e&&n<t?t:n};return 1!==i.length?i.forEach((function(t,r){var a,s,l,u,c,d,h,f,p,m,g,_,v=i[r-1],y=i[r+1];if(r&&r!==i.length-1){var b=t.x,x=t.y;if(c=v.x,d=y.x,h=v.y,f=y.y,!!(!e&&(x<=v.y&&x<=y.y||x>=v.y&&x>=y.y)||e&&(b<=v.x&&b<=y.x||b>=v.x&&b>=y.x)))e?(l=a=b,u=(x+y.y)/2,s=(x+v.y)/2):(u=s=x,l=(b+y.x)/2,a=(b+v.x)/2);else{if(p=f-h,m=c-d,g=h*d-c*f,e){if(!p)return void n.push(t,t,t);c-=_=-1*(m*x+g)/p-b,d-=_}else{if(!m)return void n.push(t,t,t);h-=_=-1*(p*b+g)/m-x,f-=_}l=(b+.5*d)/1.5,u=(x+.5*f)/1.5,a=(b+.5*c)/1.5,s=(x+.5*h)/1.5}e?(a=o(v.x,b,a),l=o(y.x,b,l)):(s=o(v.y,x,s),u=o(y.y,x,u));var C=w(t,a,s),S=w(t,l,u);n.push(C,t,S)}else n.push(t,t)})):n.push(i[0]),n},_prepareSegment:function(t,e){return S._prepareSegment(this._calculateBezierPoints(t,e))},_createMainElement:function(t,e){return this._renderer.path(t,"bezier").attr(e)},getSeriesPairCoord:function(t,e){for(var n=null,i=!e&&!this._options.rotated||e&&this._options.rotated,o=i?"vy":"vx",r=i?"y":"x",a=i?"vx":"vy",s=i?"x":"y",l=(e?this.getValueAxis():this.getArgumentAxis()).getVisibleArea(),u=this._getNearestPointsByCoord(t,e),d=function(e){var i=u[e];1===i.length?l[0]<=i[0][a]&&l[1]>=i[0][a]&&(n=i[0][a]):function(t,e,n,i,o){var r=e-t,a=3*n-3*e,s=3*i-6*n+3*e,l=o-3*i+3*n-e;return c.solveCubicEquation(l,s,a,r)}(t,i[0][o],i[1][r],i[2][r],i[3][o]).forEach((function(t){if(t>=0&&t<=1){var e=Math.pow(1-t,3)*i[0][a]+3*Math.pow(1-t,2)*t*i[1][s]+3*(1-t)*t*t*i[2][s]+t*t*t*i[3][a];l[0]<=e&&l[1]>=e&&(n=e)}}));if(null!==n)return"break"},h=0;h<u.length;h++){if("break"===d(h))break}return n},_getNearestPoints:function(t,e,n){var i=n.indexOf(t);return[t,n[i+1],n[i+2],e]},_getBezierPoints:function(){return this._segments.length>0?this._segments.reduce((function(t,e){return t.concat(e.line)}),[]):[]}}),e.polar.line=f({},r,C,{_sortPoints:function(t){return t},_prepareSegment:function(t,e,n){var i,o=[],r=this.getValueAxis().getCenter();if(n&&this._closeSegment(t),"discrete"===this.argumentAxisType||"discrete"===this.valueAxisType)return S._prepareSegment.call(this,t);for(i=1;i<t.length;i++)o=o.concat(this._getTangentPoints(t[i],t[i-1],r));return o.length||(o=t),{line:o}},_getRemainingAngle:function(t){var e=d(t);return t>=0?360-e:-e},_closeSegment:function(t){var e;e=this._segments.length?this._segments[0].line[0]:w(t[0],t[0].x,t[0].y,t[0].angle),(e=this._modifyReflectedPoint(e,t[t.length-1]))&&t.push(e)},_modifyReflectedPoint:function(t,e){if(e.angle!==t.angle){if(d(m(e.angle))===d(m(t.angle)))t.angle=e.angle;else{var n=e.angle-t.angle;t.angle=e.angle+this._getRemainingAngle(n)}return t}},_getTangentPoints:function(t,e,n){var i,o=[],r=Math.round(e.angle-t.angle),a=(e.radius-t.radius)/r;if(0===r)o=[e,t];else if(r>0)for(i=r;i>=0;i--)o.push(x(t,e,n,a,i));else for(i=0;i>=r;i--)o.push(x(t,e,n,a,r-i));return o},getSeriesPairCoord:function(t,e){var n,i=this.getArgumentAxis(),o=e?"angle":"radius",r=t[o],a=i.getCenter(),s=function(t,e,n){var o,r,s=n.x,l=n.y;return g(_((o={x:s,y:l}).x-(r=a).x,2)+_(o.y-r.y,2))<=i.getRadius()&&v(t.x,e.x)<=s&&y(t.x,e.x)>=s&&v(t.y,e.y)<=l&&y(t.y,e.y)>=l},l=this.getNeighborPoints(r,o);if(1===l.length)n=l[0];else if(l.length>1){var d,h,f=l[0],p=l[1];if("discrete"!==this.argumentAxisType&&"discrete"!==this.valueAxisType)e?(d=(f.radius-p.radius)/(f.angle-p.angle),h=r-p.angle):(d=(f.radius-p.radius)/(f.angle-p.angle),h=(r-p.radius)/d),n=x(p,f,a,d,h);else if(e){var m=u.getCosAndSin(-r),w=(p.y-f.y)/(p.x-f.x),C=f.y-f.x*w,S=m.sin/m.cos,k=(a.y-S*a.x-C)/(w-S),I=w*k+C;if(s(f,p,{x:k,y:I})){var T=b(c.trunc((360+r)/90)%4);(0===T&&k>=a.x&&I<=a.y||1===T&&k<=a.x&&I<=a.y||2===T&&k<=a.x&&I>=a.y||3===T&&k>=a.x&&I>=a.y)&&(n={x:k,y:I})}}else{var E=(p.y-f.y)/(p.x-f.x),O=f.y-f.x*E,M=1+E*E,P=-2*a.x+2*E*O-2*E*a.y,D=P*P-4*M*(-_(r,2)+_(O-a.y,2)+_(a.x,2));if(D>=0){var A=(-P-g(D))/(2*M),R=(-P+g(D))/(2*M),B=E*A+O,N=E*R+O;n=s(f,p,{x:A,y:B})?{x:A,y:B}:s(f,p,{x:R,y:N})?{x:R,y:N}:void 0}}}return n},getNeighborPoints:function(t,e){var n=this.getPoints(),i=[];if(this.getOptions().closed){var o=(n=f(!0,[],n))[n.length-1],r=w(n[0],n[0].x,n[0].y,n[0].angle),a=w(o,o.x,o.y,o.angle),s=this._modifyReflectedPoint(r,o),l=this._modifyReflectedPoint(a,n[0]);l&&n.unshift(l),s&&n.push(s)}for(var u=1;u<n.length&&(n[u-1][e]===t?i.push(n[u-1]):n[u][e]===t?i.push(n[u]):(n[u][e]>t&&n[u-1][e]<t||n[u-1][e]>t&&n[u][e]<t)&&(i.push(n[u-1]),i.push(n[u])),!(i.length>0));u++);return i}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.plugins=e.__test_utils=e.createAnnotations=void 0;var i=n(15),o=n(2),r=n(122),a=n(0),s=n(13),l=n(396),u=f(n(28)),c=f(n(101)),d=n(11),h=f(n(6));function f(t){return t&&t.__esModule?t:{default:t}}var p=(0,d.addNamespace)([u.default.down,u.default.move],"annotations"),m=(0,d.addNamespace)(u.default.up,"annotations"),g=c.default.start+".annotations",_=c.default.move+".annotations",v=c.default.end+".annotations";function y(t,e){return{draw:function(n,i){var r=this,u=n._renderer.g().append(i).css((0,s.patchFontOptions)(t.font));this.plaque=new l.Plaque((0,a.extend)(!0,{},t,{cornerRadius:(t.border||{}).cornerRadius}),n,u,e,(0,o.isDefined)(t.value)||(0,o.isDefined)(t.argument)),this.plaque.draw(n._getAnnotationCoords(this)),t.allowDragging&&u.on(g,{immediate:!0},(function(t){r._dragOffsetX=r.plaque.x-t.pageX,r._dragOffsetY=r.plaque.y-t.pageY})).on(_,(function(t){r.plaque.move(t.pageX+r._dragOffsetX,t.pageY+r._dragOffsetY)})).on(v,(function(t){r.offsetX=(r.offsetX||0)+t.offset.x,r.offsetY=(r.offsetY||0)+t.offset.y}))},hitTest:function(t,e){return this.plaque.hitTest(t,e)},showTooltip:function(t,e){var n=e.x,i=e.y;t.annotation!==this?(t.setTemplate(this.options.tooltipTemplate),t.show(this.options,{x:n,y:i},{target:this.options},this.options.customizeTooltip)&&(t.annotation=this)):t.move(n,i)}}}function b(t,e){var n;return"text"===t.type?n=function(t,n){var i=e._renderer.text(t.text).attr({class:t.cssClass}).append({element:n});(t.width>0||t.height>0)&&i.setMaxSize(t.width,t.height,{wordWrap:t.wordWrap,textOverflow:t.textOverflow})}:"image"===t.type?n=function(t,n){var i=t.image||{},o=i.width,r=i.height,a=i.url,s=i.location,l=t.width,u=t.height,c=l>0?Math.min(o,l):o,d=u>0?Math.min(r,u):r;e._renderer.image(0,0,c,d,a,s||"center").append({element:n})}:"custom"===t.type&&(n=t.template),n}function w(t){return"string"===typeof t?{url:t}:t}var x=e.createAnnotations=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0,r=arguments.length>4?arguments[4]:void 0,s=w(n.image);return e.reduce((function(e,l){var u=w(l.image),c=(0,o.isFunction)(i)?i(l):{};c&&(c.image=w(c.image));var d=(0,a.extend)(!0,{},n,l,{image:s},{image:u},c),h=b(d,t),f=h&&(0,a.extend)(!0,r(d),y(d,t._getTemplate(h)));return f&&e.push(f),e}),[])},C={name:"annotations_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(t){var e,n,i,r,a={offsetX:t.offsetX,offsetY:t.offsetY},s=this._options.silent("rotated")?"y":"x",l=this._options.silent("rotated")?"x":"y",u=this.getArgumentAxis(),c=u.validateUnit(t.argument),d=this.getValueAxis(t.axis),h=null===(e=d)||void 0===e?void 0:e.pane;t.series&&(i=this.series.filter((function(e){return e.name===t.series}))[0],d=null===(r=i)||void 0===r?void 0:r.getValueAxis(),(0,o.isDefined)(d)&&(h=d.pane));if((0,o.isDefined)(c)){if(i){var f=i.getPointCenterByArg(c);f&&(a[s]=f[s])}else a[s]=u.getTranslator().translate(c);!(0,o.isDefined)(h)&&(h=u.pane)}var p,m,g=null===(n=d)||void 0===n?void 0:n.validateUnit(t.value);(0,o.isDefined)(g)&&(a[l]=null===(p=d)||void 0===p?void 0:p.getTranslator().translate(g),!(0,o.isDefined)(h)&&(0,o.isDefined)(d)&&(h=d.pane));(a.canvas=this._getCanvasForPane(h),(0,o.isDefined)(a[s])&&!(0,o.isDefined)(g))&&((0,o.isDefined)(d)||(0,o.isDefined)(i)?(0,o.isDefined)(d)&&!(0,o.isDefined)(i)?a[l]=this._argumentAxes.filter((function(t){return t.pane===d.pane}))[0].getAxisPosition():(null===(m=i)||void 0===m?void 0:m.checkSeriesViewportCoord(u,a[s]))&&(a[l]=i.getSeriesPairCoord(a[s],!0)):a[l]=u.getAxisPosition());return!(0,o.isDefined)(c)&&(0,o.isDefined)(a[l])&&((0,o.isDefined)(d)&&!(0,o.isDefined)(i)?a[s]=d.getAxisPosition():(0,o.isDefined)(i)&&i.checkSeriesViewportCoord(d,a[l])&&(a[s]=i.getSeriesPairCoord(a[l],!1))),a},_annotationsPointerEventHandler:function(t){var e=t.originalEvent||{},n=e.touches&&e.touches[0]||{},i=this._renderer.getRootOffset(),o={x:n.pageX||e.pageX||t.pageX,y:n.pageY||e.pageY||t.pageY},r=this._annotations.items.filter((function(t){return t.hitTest(o.x-i.left,o.y-i.top)}))[0];r&&r.options.tooltipEnabled?(this.hideTooltip(),this.clearHover(),r.options.allowDragging&&t.type===u.default.down&&(this._annotations._hideToolTipForDrag=!0),this._annotations._hideToolTipForDrag||(r.showTooltip(this._annotations.tooltip,o),t.stopPropagation())):this._annotations.hideTooltip()},_pullOptions:function(t){return{type:t.type,name:t.name,x:t.x,y:t.y,value:t.value,argument:t.argument,axis:t.axis,series:t.series,options:t,offsetX:t.offsetX,offsetY:t.offsetY}}}},S={name:"annotations_polar_chart",init:function(){},dispose:function(){},members:{_getAnnotationCoords:function(t){var e,n,i={offsetX:t.offsetX,offsetY:t.offsetY,canvas:this._calcCanvas()},r=this.getArgumentAxis(),s=r.validateUnit(t.argument),l=this.getValueAxis().validateUnit(t.value),u=t.radius,c=t.angle;return t.series&&(n=this.series.filter((function(e){return e.name===t.series}))[0]),(0,a.extend)(!0,i,this.getXYFromPolar(c,u,s,l)),(0,o.isDefined)(n)&&(!(0,o.isDefined)(i.angle)||(0,o.isDefined)(l)||(0,o.isDefined)(u)?!(0,o.isDefined)(i.radius)||(0,o.isDefined)(s)||(0,o.isDefined)(c)||(e=n.getSeriesPairCoord({radius:i.radius},!1)):((0,o.isDefined)(s)||(s=r.getTranslator().from(isFinite(c)?this.getActualAngle(c):i.angle)),e=n.getSeriesPairCoord({argument:s,angle:-i.angle},!0)),(0,o.isDefined)(e)&&(i.x=e.x,i.y=e.y)),t.series&&!(0,o.isDefined)(e)&&(i.x=i.y=void 0),i},_annotationsPointerEventHandler:C.members._annotationsPointerEventHandler,_pullOptions:function(t){var e=(0,a.extend)({},{radius:t.radius,angle:t.angle},C.members._pullOptions(t));return delete e.axis,e}}},k={name:"annotations_core",init:function(){this._annotations={items:[],_hideToolTipForDrag:!1,tooltip:new r.Tooltip({cssClass:"".concat(this._rootClassPrefix,"-annotation-tooltip"),eventTrigger:this._eventTrigger,widgetRoot:this.element(),widget:this}),hideTooltip:function(){this.tooltip.annotation=null,this.tooltip.hide()}},this._annotations.tooltip.setRendererOptions(this._getRendererOptions());var t=(0,a.extend)({},this._themeManager.getOptions("tooltip"));t.contentTemplate=t.customizeTooltip=void 0,this._annotations.tooltip.update(t)},dispose:function(){this._annotationsGroup.linkRemove().linkOff(),h.default.off((0,i.getDocument)(),".annotations"),this._annotationsGroup.off(".annotations"),this._annotations.tooltip&&this._annotations.tooltip.dispose()},extenders:{_createHtmlStructure:function(){var t=this;this._annotationsGroup=this._renderer.g().attr({class:"".concat(this._rootClassPrefix,"-annotations")}).linkOn(this._renderer.root,"annotations").linkAppend(),h.default.on((0,i.getDocument)(),p,(function(){return t._annotations.hideTooltip()})),h.default.on((0,i.getDocument)(),m,(function(e){t._annotations._hideToolTipForDrag=!1,t._annotationsPointerEventHandler(e)})),this._annotationsGroup.on(p,this._annotationsPointerEventHandler.bind(this))},_renderExtraElements:function(){var t=this;this._annotationsGroup.clear(),this._annotations.items.forEach((function(e){return e.draw(t,t._annotationsGroup)}))},_stopCurrentHandling:function(){this._annotations.hideTooltip()}},members:{_buildAnnotations:function(){this._annotations.items=[];var t=this._getOption("annotations");(null===t||void 0===t?void 0:t.length)&&(this._annotations.items=x(this,t,this._getOption("commonAnnotationSettings"),this._getOption("customizeAnnotation"),this._pullOptions))},_getAnnotationCoords:function(){return{}},_pullOptions:function(){return{}}},customize:function(t){t.addChange({code:"ANNOTATIONITEMS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"annotations"}),t.addChange({code:"ANNOTATIONSSETTINGS",handler:function(){this._requestChange(["ANNOTATIONS"])},isOptionChange:!0,option:"commonAnnotationSettings"}),t.addChange({code:"ANNOTATIONS",handler:function(){this._buildAnnotations(),this._change(["FORCE_RENDER"])},isThemeDependent:!0,isOptionChange:!0})},fontFields:["commonAnnotationSettings.font"]};e.plugins={core:k,chart:C,polarChart:S}},function(t,e,n){"use strict";var i,o=n(421);var r=((i=o)&&i.__esModule?i:{default:i}).default;t.exports={extend:function(t){r=r.inherit(t)},create:function(t){return new r(t)}}},function(t,e,n){"use strict";t.exports=n(801),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4).noop,a=n(21),s=n(43),l=a.abstract,u=a.inherit({ctor:function(t){this.dateBox=t},widgetOption:function(){return this._widget&&this._widget.option.apply(this._widget,arguments)},_renderWidget:function(t){t=t||i("<div>"),this._widget=this._createWidget(t),this._widget.$element().appendTo(this._getWidgetContainer())},_createWidget:function(t){var e=this._getWidgetName(),n=this._getWidgetOptions();return this.dateBox._createComponent(t,e,n)},_getWidgetOptions:l,_getWidgetName:l,getDefaultOptions:function(){return{mode:"text"}},getDisplayFormat:l,supportedKeys:r,getKeyboardListener:r,customizeButtons:r,getParsedText:function(t,e){var n=s.parse(t,e);return n||s.parse(t)},renderInputMinMax:r,renderOpenedState:function(){this._updateValue()},popupConfig:l,_dimensionChanged:function(){var t;null===(t=this._getPopup())||void 0===t||t.repaint()},renderPopupContent:function(){var t=this._getPopup();this._renderWidget();var e=t.$content().parent();o.off(e,"mousedown"),o.on(e,"mousedown",this._preventFocusOnPopup.bind(this))},getFirstPopupElement:r,getLastPopupElement:r,_preventFocusOnPopup:function(t){t.preventDefault()},_getWidgetContainer:function(){return this._getPopup().$content()},_getPopup:function(){return this.dateBox._popup},popupShowingHandler:r,popupHiddenHandler:r,_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},useCurrentDateByDefault:r,getDefaultDate:function(){return new Date},textChangedHandler:r,renderValue:function(){this.dateBox.option("opened")&&this._updateValue()},getValue:function(){return this._widget.option("value")},isAdaptivityChanged:function(){return!1},dispose:function(){var t=this._getPopup();t&&t.$content().empty()},dateBoxValue:function(){return arguments.length?this.dateBox.dateValue.apply(this.dateBox,arguments):this.dateBox.dateOption.apply(this.dateBox,["value"])}});t.exports=u},function(t,e,n){"use strict";var i=p(n(57)),o=p(n(39)),r=p(n(23)),a=p(n(97)),s=n(0),l=n(5),u=p(n(136)),c=p(n(814)),d=p(n(8)),h=n(7),f=p(n(45));function p(t){return t&&t.__esModule?t:{default:t}}var m=a.default.inherit({_initOptions:function(t){this.callBase.apply(this,arguments),this.option(u.default.initValidationOptions(t))},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{validationRules:[]})},_init:function(){this.callBase(),this._initGroupRegistration(),this.focused=(0,o.default)(),this._initAdapter(),this._validationInfo={result:null,deferred:null,skipValidation:!1}},_initGroupRegistration:function(){var t=this._findGroup();this._groupWasInit||this.on("disposing",(function(t){u.default.removeRegisteredValidator(t.component._validationGroup,t.component)})),this._groupWasInit&&this._validationGroup===t||(u.default.removeRegisteredValidator(this._validationGroup,this),this._groupWasInit=!0,this._validationGroup=t,u.default.registerValidatorInGroup(t,this))},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{validationGroup:!0})},_initAdapter:function(){var t=this,e=this.$element()[0],n=i.default.data(e,"dx-validation-target"),o=this.option("adapter");if(!o){if(n)return(o=new c.default(n,this)).validationRequestsCallbacks.add((function(e){t._validationInfo.skipValidation||t.validate(e)})),void this.option("adapter",o);throw r.default.Error("E0120")}var a=o.validationRequestsCallbacks;a&&(Array.isArray(a)?a.push((function(e){t.validate(e)})):(r.default.log("W0014","validationRequestsCallbacks","jQuery.Callbacks","17.2","Use the array instead"),a.add((function(e){t.validate(e)}))))},_toggleRTLDirection:function(t){var e,n,i,o=null!==(e=null===(n=this.option("adapter"))||void 0===n||null===(i=n.editor)||void 0===i?void 0:i.option("rtlEnabled"))&&void 0!==e?e:t;this.callBase(o)},_initMarkup:function(){this.$element().addClass("dx-validator"),this.callBase()},_visibilityChanged:function(t){t&&this._initGroupRegistration()},_optionChanged:function(t){switch(t.name){case"validationGroup":return void this._initGroupRegistration();case"validationRules":return this._resetValidationRules(),void(void 0!==this.option("isValid")&&this.validate());case"adapter":this._initAdapter();break;case"isValid":case"validationStatus":this.option(u.default.synchronizeValidationOptions(t,this.option()));break;default:this.callBase(t)}},_getValidationRules:function(){var t=this;return this._validationRules||(this._validationRules=(0,l.map)(this.option("validationRules"),(function(e,n){return(0,s.extend)({},e,{validator:t,index:n})}))),this._validationRules},_findGroup:function(){var t=this.$element();return this.option("validationGroup")||u.default.findGroup(t,this._modelByElement(t))},_resetValidationRules:function(){delete this._validationRules},validate:function(t){var e,n=this,i=this.option("adapter"),o=this.option("name"),r=i.bypass&&i.bypass(),a=t&&void 0!==t.value?t.value:i.getValue(),l=i.getCurrentValidationError&&i.getCurrentValidationError(),c=this._getValidationRules(),d=this._validationInfo&&this._validationInfo.result;return d&&"pending"===d.status&&d.value===a?(0,s.extend)({},d):(r?e={isValid:!0,status:"valid"}:l&&l.editorSpecific?(l.validator=this,e={isValid:!1,status:"invalid",brokenRule:l,brokenRules:[l]}):e=u.default.validate(a,c,o),e.id=(new f.default).toString(),this._applyValidationResult(e,i),e.complete&&e.complete.then((function(t){t.id===n._validationInfo.result.id&&n._applyValidationResult(t,i)})),(0,s.extend)({},this._validationInfo.result))},reset:function(){var t=this.option("adapter"),e={id:null,isValid:!0,brokenRule:null,brokenRules:null,pendingRules:null,status:"valid",complete:null};this._validationInfo.skipValidation=!0,t.reset(),this._validationInfo.skipValidation=!1,this._resetValidationRules(),this._applyValidationResult(e,t)},_updateValidationResult:function(t){if(this._validationInfo.result&&this._validationInfo.result.id===t.id)for(var e in t)"id"!==e&&"complete"!==e&&(this._validationInfo.result[e]=t[e]);else{var n=this._validationInfo.deferred&&this._validationInfo.result.complete;this._validationInfo.result=(0,s.extend)({},t,{complete:n})}},_applyValidationResult:function(t,e){var n=this._createActionByOption("onValidated",{excludeValidators:["readOnly"]});if(t.validator=this,this._updateValidationResult(t),e.applyValidationResults&&e.applyValidationResults(this._validationInfo.result),this.option({validationStatus:this._validationInfo.result.status}),"pending"===this._validationInfo.result.status)return this._validationInfo.deferred||(this._validationInfo.deferred=new h.Deferred,this._validationInfo.result.complete=this._validationInfo.deferred.promise()),void this._eventsStrategy.fireEvent("validating",[this._validationInfo.result]);"pending"!==this._validationInfo.result.status&&(n(t),this._validationInfo.deferred&&(this._validationInfo.deferred.resolve(t),this._validationInfo.deferred=null))},focus:function(){var t=this.option("adapter");t&&t.focus&&t.focus()},_useTemplates:function(){return!1}});(0,d.default)("dxValidator",m),t.exports=m,t.exports.default=t.exports},function(t,e,n){"use strict";var i=x(n(3)),o=x(n(6)),r=x(n(18)),a=x(n(8)),s=x(n(42)),l=x(n(79)),u=n(11),c=n(0),d=n(2),h=x(n(28)),f=n(5),p=x(n(446)),m=x(n(36)),g=x(n(135)),_=x(n(103)),v=x(n(215)),y=n(70),b=n(73),w=n(7);function x(t){return t&&t.__esModule?t:{default:t}}var C=v.default.inherit({_activeStateUnit:".dx-tab",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{hoverStateEnabled:!0,showNavButtons:!0,scrollByContent:!0,scrollingEnabled:!0,selectionMode:"single",activeStateEnabled:!0,selectionRequired:!1,selectOnFocus:!0,loopItemFocus:!1,useInkRipple:!1,badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){var t=m.default.current();return this.callBase().concat([{device:function(){return"desktop"!==r.default.real().deviceType},options:{showNavButtons:!1}},{device:{deviceType:"desktop"},options:{scrollByContent:!1}},{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return m.default.isMaterial(t)},options:{useInkRipple:!0,selectOnFocus:!1}}])},_init:function(){this.callBase(),this.setAria("role","tablist"),this.$element().addClass("dx-tabs"),this._renderWrapper(),this._renderMultiple(),this._feedbackHideTimeout=100},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new b.BindableTemplate(function(t,e){(0,d.isPlainObject)(e)?this._prepareDefaultItemTemplate(e,t):t.text(String(e));var n=(0,y.getImageContainer)(e.icon);n&&n.prependTo(t),t.wrapInner((0,i.default)("<span>").addClass("dx-tab-text"))}.bind(this),["text","html","icon"],this.option("integrationOptions.watchMethod"))})},_createItemByTemplate:function(t,e){var n=this,i=e.itemData,o=e.container,r=e.index;return this._deferredTemplates[r]=new w.Deferred,t.render({model:i,container:o,index:r,onRendered:function(){return n._deferredTemplates[r].resolve()}})},_itemClass:function(){return"dx-tab"},_selectedItemClass:function(){return"dx-tab-selected"},_itemDataKey:function(){return"dxTabData"},_initMarkup:function(){this._deferredTemplates=[],this.callBase(),this.setAria("role","tab",this.itemElements()),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass("dx-overflow-hidden")},_render:function(){this.callBase(),this._deferRenderScrolling()},_deferRenderScrolling:function(){var t=this;w.when.apply(this,this._deferredTemplates).done((function(){return t._renderScrolling()}))},_renderScrolling:function(){var t=["dx-tabs-stretched","dx-tabs-expanded","dx-overflow-hidden"];this.$element().removeClass(t.join(" ")),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()&&(this._scrollable||(this._renderScrollable(),this._renderNavButtons()),this._scrollable.update(),this._updateNavButtonsVisibility(),this.option("rtlEnabled")&&this._scrollable.scrollTo({left:this._scrollable.scrollWidth()-this._scrollable.clientWidth()}),this._scrollToItem(this.option("selectedItem"))),this.option("scrollingEnabled")&&this._isItemsWidthExceeded()||(this._cleanScrolling(),this._needStretchItems()&&!this._isItemsWidthExceeded()&&this.$element().addClass("dx-tabs-stretched"),this.$element().removeClass("dx-tabs-nav-buttons").addClass("dx-tabs-expanded"))},_isItemsWidthExceeded:function(){return this._getSummaryItemsWidth(this._getVisibleItems(),!0)-1>this.$element().width()},_needStretchItems:function(){var t=this._getVisibleItems(),e=this.$element().width(),n=[];return(0,f.each)(t,(function(t,e){n.push((0,i.default)(e).outerWidth(!0))})),Math.max.apply(null,n)>e/t.length},_cleanNavButtons:function(){this._leftButton&&this._rightButton&&(this._leftButton.$element().remove(),this._rightButton.$element().remove(),this._leftButton=null,this._rightButton=null)},_cleanScrolling:function(){this._scrollable&&(this._$wrapper.appendTo(this.$element()),this._scrollable.$element().remove(),this._scrollable=null,this._cleanNavButtons())},_renderInkRipple:function(){this._inkRipple=l.default.render()},_toggleActiveState:function(t,e,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:t,event:n};e?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderMultiple:function(){"multiple"===this.option("selectionMode")&&this.option("selectOnFocus",!1)},_renderWrapper:function(){this._$wrapper=(0,i.default)("<div>").addClass("dx-tabs-wrapper"),this.$element().append(this._$wrapper)},_itemContainer:function(){return this._$wrapper},_renderScrollable:function(){var t=this.$element().wrapInner((0,i.default)("<div>").addClass("dx-tabs-scrollable")).children();this._scrollable=this._createComponent(t,_.default,{direction:"horizontal",showScrollbar:!1,useKeyboard:!1,useNative:!1,scrollByContent:this.option("scrollByContent"),onScroll:this._updateNavButtonsVisibility.bind(this)}),this.$element().append(this._scrollable.$element())},_scrollToItem:function(t){if(this._scrollable){var e=this._editStrategy.getItemElement(t);this._scrollable.scrollToElement(e)}},_renderNavButtons:function(){if(this.$element().toggleClass("dx-tabs-nav-buttons",this.option("showNavButtons")),this.option("showNavButtons")){var t=this.option("rtlEnabled");this._leftButton=this._createNavButton(-30,t?"chevronnext":"chevronprev");var e=this._leftButton.$element();e.addClass("dx-tabs-nav-button-left"),this.$element().prepend(e),this._rightButton=this._createNavButton(30,t?"chevronprev":"chevronnext");var n=this._rightButton.$element();n.addClass("dx-tabs-nav-button-right"),this.$element().append(n)}},_updateNavButtonsVisibility:function(){this._leftButton&&this._leftButton.option("disabled",this._scrollable.scrollLeft()<=0),this._rightButton&&this._rightButton.option("disabled",this._scrollable.scrollLeft()>=Math.round(this._scrollable.scrollWidth()-this._scrollable.clientWidth()))},_updateScrollPosition:function(t,e){this._scrollable.update(),this._scrollable.scrollBy(t/e)},_createNavButton:function(t,e){var n=this,r=n._createAction((function(){n._holdInterval=setInterval((function(){n._updateScrollPosition(t,5)}),5)})),a=(0,u.addNamespace)(g.default.name,"dxNavButton"),l=(0,u.addNamespace)(h.default.up,"dxNavButton"),c=(0,u.addNamespace)(h.default.out,"dxNavButton"),d=this._createComponent((0,i.default)("<div>").addClass("dx-tabs-nav-button"),s.default,{focusStateEnabled:!1,icon:e,onClick:function(){n._updateScrollPosition(t,1)},integrationOptions:{}}),f=d.$element();return o.default.on(f,a,{timeout:300},function(t){r({event:t})}.bind(this)),o.default.on(f,l,(function(){n._clearInterval()})),o.default.on(f,c,(function(){n._clearInterval()})),d},_clearInterval:function(){this._holdInterval&&clearInterval(this._holdInterval)},_updateSelection:function(t){this._scrollable&&this._scrollable.scrollToElement(this.itemElements().eq(t[0]),{left:1,right:1})},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._renderScrolling()},_itemSelectHandler:function(t){"single"===this.option("selectionMode")&&this.isItemSelected(t.currentTarget)||this.callBase(t)},_clean:function(){this._deferredTemplates=[],this._cleanScrolling(),this.callBase()},_optionChanged:function(t){switch(t.name){case"useInkRipple":case"scrollingEnabled":case"showNavButtons":this._invalidate();break;case"scrollByContent":this._scrollable&&this._scrollable.option(t.name,t.value);break;case"width":this.callBase(t),this._dimensionChanged();break;case"selectionMode":this._renderMultiple(),this.callBase(t);break;case"badgeExpr":this._invalidate();break;default:this.callBase(t)}},_afterItemElementInserted:function(){this.callBase(),this._deferRenderScrolling()},_afterItemElementDeleted:function(t,e){this.callBase(t,e),this._renderScrolling()}});C.ItemClass=p.default,(0,a.default)("dxTabs",C),t.exports=C,t.exports.getTabsExpandedClass="dx-tabs-expanded",t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(7),o=n(78),r=n(2),a=n(29),s=g(n(23)),l=g(n(197)),u=g(n(94)),c=n(0),d=g(n(46)),h=g(n(824)),f=g(n(12)),p=n(92),m=g(n(825));function g(t){return t&&t.__esModule?t:{default:t}}var _={number:["=","<>","<",">","<=",">=","isblank","isnotblank"],string:["contains","notcontains","startswith","endswith","=","<>","isblank","isnotblank"],date:["=","<>","<",">","<=",">=","isblank","isnotblank"],datetime:["=","<>","<",">","<=",">=","isblank","isnotblank"],boolean:["=","<>","isblank","isnotblank"],object:["isblank","isnotblank"]},v={date:"shortDate",datetime:"shortDateShortTime"},y=["=","<>","isblank","isnotblank"],b=["caption","customizeText","dataField","dataType","editorTemplate","falseText","editorOptions","filterOperations","format","lookup","trueText","calculateFilterExpression","name"];function w(t){return t&&t.length>1&&"!"===t[0]&&!D(t)}function x(t){return w(t)?t[1]:t}function C(t){if(D(t))return"and";for(var e="",n=0;n<t.length;n++){var i=t[n];if(!Array.isArray(i)){if(e&&e!==i)throw new o.errors.Error("E4019");"!"!==i&&(e=i)}}return e}function S(t){var e=x(t),n=C(e);return n||(n="and"),e!==t&&(n="!"+n),n}function k(t){var e,n=(e=t.filterOperations,Array.isArray(e)&&e.length?t.filterOperations:function(t){return t.lookup&&y||_[t.dataType||"string"]}(t));return(0,c.extend)([],n)}function I(t,e){var n=m.default.getNameByFilterOperation(t);return e&&e[n]?e[n]:n}function T(t,e){var n=t.filter((function(t){return t.name===e}));return n.length?n[0]:null}function E(t){return t.defaultFilterOperation||k(t)[0]}function O(t,e){var n=x(t),i=n.indexOf(e);return n.splice(i,1),1!==n.length&&n.splice(i,1),t}function M(t,e){for(var n=0;n<e.length;n++){if(e[n].name===t)return e[n];if(e[n].dataField.toLowerCase()===t.toLowerCase())return e[n]}var i=W(e,!0).filter((function(e){return e.dataField.toLowerCase()===t.toLowerCase()}));if(i.length>0)return i[0];throw new s.default.Error("E1047",t)}function P(t){return!!Array.isArray(t)&&(t.length<2||Array.isArray(t[0])||Array.isArray(t[1]))}function D(t){return!!Array.isArray(t)&&(t.length>1&&!Array.isArray(t[0])&&!Array.isArray(t[1]))}function A(t,e){for(var n=C(t).toLowerCase()||"and",i=[],o=0;o<t.length;o++)P(t[o])?(i.push(B(t[o],e)),i.push(n)):D(t[o])&&(i.push(R(t[o],e)),i.push(n));return 0===i.length&&i.push(n),i}function R(t,e){return function(t,e){var n=T(e,t[1]);return n&&n.name===t[1]}(t,e)||t.length<3&&(t[2]=t[1],t[1]="="),t}function B(t,e){return t?D(t=(0,c.extend)(!0,[],t))?[R(t,e),"and"]:w(t)?["!",D(t[1])?[R(t[1],e),"and"]:w(t[1])?[B(t[1],e),"and"]:A(t[1],e)]:A(t,e):["and"]}function N(t,e,n,i){var o=M(t[0],e),r=R(t,n),a=n.length&&T(n,r[1]);return a&&a.calculateFilterExpression?a.calculateFilterExpression.apply(a,[r[2],o,e]):o.createFilterExpression?o.createFilterExpression.apply(o,[r[2],r[1],i]):o.calculateFilterExpression?o.calculateFilterExpression.apply(o,[r[2],r[1],i]):o.defaultCalculateFilterExpression.apply(o,[r[2],r[1],i])}function L(t,e,n,i){var o;return o=!0===e?t.trueText||f.default.format("dxDataGrid-trueText"):!1===e?t.falseText||f.default.format("dxDataGrid-falseText"):function(t,e){var n=t.format||v[t.dataType];return u.default.format(e,n)}(t,e),t.customizeText&&(o=t.customizeText.call(t,{value:e,valueText:o,target:i})),n&&n.customizeText&&(o=n.customizeText.call(n,{value:e,valueText:o,field:t,target:i})),o}function F(t,e,n,i){return e.map((function(e){return L(t,e,n,i)}))}function V(t){return""===t||null===t}function z(t,e){return t.some((function(t){return t.dataField===e}))}function j(t,e,n){var i=n.dataField;U(i)&&(n.parentId=G(i),z(e,n.parentId)||z(t,n.parentId)||j(t,e,{id:n.parentId,dataType:"object",dataField:n.parentId,caption:H(n.parentId,!0),filterOperations:["isblank","isnotblank"]})),e.push(n)}function H(t,e){var n="";if(e)t=t.substring(t.lastIndexOf(".")+1);else if(U(t))return t.split(".").forEach((function(t,e,i){n+=d.default.captionize(t),e!==i.length-1&&(n+=".")})),n;return d.default.captionize(t)}function W(t,e){for(var n=[],i=0;i<t.length;i++){var o=(0,c.extend)(!0,{caption:H(t[i].dataField,e)},t[i]);o.id=o.name||o.dataField,e?j(t,n,o):n.push(o)}return n}function U(t){return-1!==t.lastIndexOf(".")}function G(t){return t.substring(0,t.lastIndexOf("."))}function K(t,e,n){var i=T(n,e);return i?(!1===i.hasValue?(t[1]=e,t.length=2):(t[1]=e,t[2]=""),t):("isblank"===e?(t[1]="=",t[2]=null):"isnotblank"===e?(t[1]="<>",t[2]=null):(((i=T(n,t[1]))||2===t.length||null===t[2])&&(t[2]=""),t[1]=e),t)}function q(t){return""!==t[2]}function $(t,e){return t[0]===e}function Y(t,e,n){var i=[];return t.forEach((function(t){D(t)?$(t,e[0])?n?(i.push(e),n=!1):i.splice(i.length-1,1):i.push(t):(i.length||P(t))&&i.push(t)})),0===i.length?null:(n&&(i.push("and"),i.push(e)),1===i.length?i[0]:i)}e.isValidCondition=q,e.isEmptyGroup=function(t){var e=x(t);return!D(e)&&!e.some((function(t){return D(t)}))},e.getOperationFromAvailable=function(t,e){for(var n=0;n<e.length;n++)if(e[n].value===t)return e[n];throw new s.default.Error("E1048",t)},e.updateConditionByOperation=K,e.getCaptionWithParents=function t(e,n){if(U(e.dataField))for(var i=G(e.dataField),o=0;o<n.length;o++)if(n[o].dataField===i)return t(n[o],n)+"."+e.caption;return e.caption},e.getItems=W,e.setGroupValue=function(t,e){var n;return function(t,e){!function(t){return-1!==t.indexOf("!")}(e)?w(t)&&function(t){var e=x(t);t.length=0,[].push.apply(t,e)}(t):w(t)||function(t){var e=t.slice(0);t.length=0,t.push("!",e)}(t)}(t,e),function(t,e){for(n=0;n<t.length;n++)Array.isArray(t[n])||(t[n]=e)}(x(t),e=function(t){return-1===t.indexOf("!")?t:t.substring(1)}(e)),t},e.getGroupMenuItem=function(t,e){var n=S(t);return e.filter((function(t){return t.value===n}))[0]},e.getGroupValue=S,e.getAvailableOperations=function(t,e,n){var i=k(t),o=!!t.lookup;return n.forEach((function(e){if(!t.filterOperations&&-1===i.indexOf(e.name)){var n=e&&e.dataTypes;!(!!o&&!!e.notForLookup)&&n&&n.indexOf(t.dataType||"string")>=0&&i.push(e.name)}})),i.map((function(t){var i=T(n,t);return i?{icon:i.icon||"icon-none",text:i.caption||d.default.captionize(i.name),value:i.name,isCustom:!0}:{icon:m.default.getIconByFilterOperation(t)||"icon-none",text:I(t,e),value:t}}))},e.removeItem=O,e.createCondition=function(t,e){var n=[t.dataField,"",""];return K(n,E(t),e),n},e.createEmptyGroup=function(t){return-1!==t.indexOf("not")?["!",[t.substring(3).toLowerCase()]]:[t]},e.addItem=function(t,e){var n=x(e),i=S(n);return 1===n.length?n.unshift(t):n.push(t,i),e},e.getField=M,e.isGroup=P,e.isCondition=D,e.getNormalizedFields=function(t){return t.reduce((function(t,e){if((0,r.isDefined)(e.dataField)){var n={};for(var i in e)e[i]&&b.indexOf(i)>-1&&(n[i]=e[i]);n.defaultCalculateFilterExpression=l.default.defaultCalculateFilterExpression,(0,r.isDefined)(n.dataType)||(n.dataType="string"),t.push(n)}return t}),[])},e.getNormalizedFilter=function t(e){var n,i=x(e);if(0===i.length)return null;var o=[];for(n=0;n<i.length;n++)if(P(i[n])){var r=t(i[n]);r?i[n]=r:o.push(i[n])}else D(i[n])&&(q(i[n])||o.push(i[n]));for(n=0;n<o.length;n++)O(i,o[n]);return 1===i.length?null:(i.splice(i.length-1,1),1===i.length&&(e=function(t,e){return w(t)?t[1]=e:t=e,t}(e,i[0])),0===e.length?null:e)},e.getGroupCriteria=x,e.convertToInnerStructure=B,e.getDefaultOperation=E,e.getCurrentValueText=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"filterBuilder";if(V(e))return"";if(Array.isArray(e)){var r=new i.Deferred;return i.when.apply(this,F(t,e,n,o)).done((function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.some((function(t){return!V(t)}))?e.map((function(t){return V(t)?"?":t})):"";r.resolve(i)})),r}return L(t,e,n,o)},e.getCurrentLookupValueText=function(t,e,n){if(""!==e){var i=t.lookup;if(i.items)n(i.calculateCellValue(e)||"");else new p.DataSource(i.dataSource).loadSingle(i.valueExpr,e).done((function(t){n(t?i.displayExpr?(0,a.compileGetter)(i.displayExpr)(t):t:"")})).fail((function(){n("")}))}else n("")},e.getFilterOperations=k,e.getCaptionByOperation=I,e.getOperationValue=function(t){return null===t[2]?"="===t[1]?"isblank":"isnotblank":t[1]},e.getFilterExpression=function t(e,n,i,o){if(!(0,r.isDefined)(e))return null;if(w(e))return["!",t(e[1],n,i,o)];var a=x(e);if(D(a))return N(a,n,i,o)||null;for(var s,l=[],u=S(a),c=0;c<a.length;c++)P(a[c])?(s=t(a[c],n,i,o))&&(c&&l.push(u),l.push(s)):D(a[c])&&(s=N(a[c],n,i,o))&&(l.length&&l.push(u),l.push(s));return 1===l.length&&(l=l[0]),l.length?l:null},e.getCustomOperation=T,e.getMergedOperations=function(t,e,n){var i=(0,c.extend)(!0,[],t),o=-1;return i.some((function(t,e){if("between"===t.name)return o=e,!0})),-1!==o?i[o]=(0,c.extend)(h.default.getConfig(e,n),i[o]):i.unshift(h.default.getConfig(e,n)),i},e.syncFilters=function(t,e){return null===t||0===t.length?e:D(t)?$(t,e[0])?e:[t,"and",e]:"and"!==S(t)?[e,"and",t]:Y(t,e,!0)},e.getMatchedConditions=function(t,e){return null===t||0===t.length?[]:D(t)?$(t,e)?[t]:[]:"and"!==S(t)?[]:t.filter((function(t){return D(t)&&$(t,e)}))},e.filterHasField=function t(e,n){return null!==e&&0!==e.length&&(D(e)?e[0]===n:e.some((function(e){return(D(e)||P(e))&&t(e,n)})))},e.removeFieldConditionsFromFilter=function(t,e){return t&&0!==t.length?D(t)?$(t,e)?null:t:Y(t,[e],!1):null}},function(t,e,n){"use strict";var i=s(n(3)),o=s(n(47)),r=n(7),a=n(46);function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var u={moveTo:function(t){var e,n=t.$element,i=t.position,r={};switch(t.direction||"left"){case"right":r.transform="translate("+i+"px, 0px)",e="custom";break;case"left":r.left=i,e="slide";break;case"top":case"bottom":r.top=i,e="slide"}o.default.animate(n,{type:e,to:r,duration:t.duration,complete:t.complete})},margin:function(t){var e=t.$element,n=t.margin,i=t.direction||"left",r={};r["margin"+(0,a.camelize)(i,!0)]=n,o.default.animate(e,{to:r,duration:t.duration,complete:t.complete})},fade:function(t,e,n,i){o.default.animate(t,{type:"fade",to:e.to,from:e.from,duration:n,complete:i})},size:function(t){var e=t.$element,n=t.size,i=t.direction||"left",r=t.marginTop||0,a=t.duration,s={};"right"===i||"left"===i?s.width=n:s.height=n,"bottom"===i&&(s.marginTop=r),o.default.animate(e,{to:s,duration:a,complete:t.complete})},complete:function(t){o.default.stop(t,!0)}},c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._drawer=e}var e,n,o;return e=t,(n=[{key:"getDrawerInstance",value:function(){return this._drawer}},{key:"renderPanelContent",value:function(t){var e=this.getDrawerInstance(),n=e._getTemplate(e.option("template"));n&&n.render({container:e.content(),onRendered:function(){t.resolve()}})}},{key:"renderPosition",value:function(t,e){this._prepareAnimationDeferreds(e);var n=this._getPositionRenderingConfig(t);if(this._useDefaultAnimation())this._defaultPositionRendering(n,t,e);else{var i=this.getDrawerInstance().option("revealMode");"slide"===i?this._slidePositionRendering(n,t,e):"expand"===i&&this._expandPositionRendering(n,t,e)}}},{key:"_prepareAnimationDeferreds",value:function(t){var e=this.getDrawerInstance();this._contentAnimation=new r.Deferred,this._panelAnimation=new r.Deferred,this._shaderAnimation=new r.Deferred,e._animations.push(this._contentAnimation,this._panelAnimation,this._shaderAnimation),t?r.when.apply(i.default,e._animations).done((function(){e._animationCompleteHandler()})):e.resizeViewContent()}},{key:"_getPositionRenderingConfig",value:function(t){var e=this.getDrawerInstance();return{direction:e.calcTargetPosition(),$panel:(0,i.default)(e.content()),$content:(0,i.default)(e.viewContent()),defaultAnimationConfig:this._defaultAnimationConfig(),size:this._getPanelSize(t)}}},{key:"_useDefaultAnimation",value:function(){return!1}},{key:"_elementsAnimationCompleteHandler",value:function(){this._contentAnimation.resolve(),this._panelAnimation.resolve()}},{key:"_defaultAnimationConfig",value:function(){var t=this;return{complete:function(){t._elementsAnimationCompleteHandler()}}}},{key:"_getPanelOffset",value:function(t){var e=this.getDrawerInstance(),n=e.isHorizontalDirection()?e.getRealPanelWidth():e.getRealPanelHeight();return t?-(n-e.getMaxSize()):-(n-e.getMinSize())}},{key:"_getPanelSize",value:function(t){return t?this.getDrawerInstance().getMaxSize():this.getDrawerInstance().getMinSize()}},{key:"renderShaderVisibility",value:function(t,e,n){var o=this,r=this.getDrawerInstance(),a=t?{from:0,to:1}:{from:1,to:0};e?u.fade((0,i.default)(r._$shader),a,n,(function(){o._drawer._toggleShaderVisibility(t),o._shaderAnimation.resolve()})):(r._toggleShaderVisibility(t),r._$shader.css("opacity",a.to))}},{key:"getPanelContent",value:function(){return(0,i.default)(this.getDrawerInstance().content())}},{key:"setPanelSize",value:function(t){this.refreshPanelElementSize(t)}},{key:"refreshPanelElementSize",value:function(t){var e=this.getDrawerInstance(),n=this._getPanelSize(e.option("opened"));e.isHorizontalDirection()?(0,i.default)(e.content()).width(t?e.getRealPanelWidth():n):(0,i.default)(e.content()).height(t?e.getRealPanelHeight():n)}},{key:"isViewContentFirst",value:function(){return!1}}])&&l(e.prototype,n),o&&l(e,o),t}();t.exports=c,t.exports.animation=u},function(t,e,n){"use strict";var i,o=n(29),r=n(4),a=n(67),s=n(5),l=n(2),u=n(7),c=n(481),d=(i=c)&&i.__esModule?i:{default:i};function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var f=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),e=(0,r.ensureDefined)(e,{}),this._keyGetter=(0,o.compileGetter)(this._getKeyExpr(e)),this._nameGetter=(0,o.compileGetter)(this._getNameExpr(e)),this._isDirGetter=(0,o.compileGetter)(this._getIsDirExpr(e)),this._sizeGetter=(0,o.compileGetter)(this._getSizeExpr(e)),this._dateModifiedGetter=(0,o.compileGetter)(this._getDateModifiedExpr(e)),this._thumbnailGetter=(0,o.compileGetter)(e.thumbnailExpr||"thumbnail")}var e,n,i;return e=t,(n=[{key:"getItems",value:function(t){return[]}},{key:"renameItem",value:function(t,e){}},{key:"createDirectory",value:function(t,e){}},{key:"deleteItems",value:function(t){}},{key:"moveItems",value:function(t,e){}},{key:"copyItems",value:function(t,e){}},{key:"uploadFileChunk",value:function(t,e,n){}},{key:"abortFileUpload",value:function(t,e,n){}},{key:"downloadItems",value:function(t){}},{key:"getItemsContent",value:function(t){}},{key:"getFileUploadChunkSize",value:function(){return 2e5}},{key:"_getItemsByType",value:function(t,e){return this.getItems(t).filter((function(t){return t.isDirectory===e}))}},{key:"_convertDataObjectsToFileItems",value:function(t,e){var n=this,i=[];return(0,s.each)(t,(function(t,o){var r=n._createFileItem(o,e);i.push(r)})),i}},{key:"_createFileItem",value:function(t,e){var n=new d.default(e,this._nameGetter(t),!!this._isDirGetter(t));return n.size=this._sizeGetter(t),void 0===n.size&&(n.size=0),n.dateModified=(0,a.deserializeDate)(this._dateModifiedGetter(t)),void 0===n.dateModified&&(n.dateModified=new Date),n.isDirectory&&(n.hasSubDirectories=this._hasSubDirs(t)),n.key=this._keyGetter(t),n.key||(n.key=n.relativeName),n.thumbnail=this._thumbnailGetter(t)||"",n.dataItem=t,n}},{key:"_hasSubDirs",value:function(t){return!0}},{key:"_getKeyExpr",value:function(t){return t.keyExpr||this._defaultKeyExpr}},{key:"_defaultKeyExpr",value:function(t){if(2!==arguments.length)return Object.prototype.hasOwnProperty.call(t,"__KEY__")?t.__KEY__:null;t.__KEY__=arguments[1]}},{key:"_getNameExpr",value:function(t){return t.nameExpr||"name"}},{key:"_getIsDirExpr",value:function(t){return t.isDirectoryExpr||"isDirectory"}},{key:"_getSizeExpr",value:function(t){return t.sizeExpr||"size"}},{key:"_getDateModifiedExpr",value:function(t){return t.dateModifiedExpr||"dateModified"}},{key:"_executeActionAsDeferred",value:function(t,e){var n=new u.Deferred;try{var i=t();(0,l.isPromise)(i)?(0,u.fromPromise)(i).done((function(t){return n.resolve(e&&t||void 0)})).fail((function(t){return n.reject(t)})):n.resolve(e&&i||void 0)}catch(o){return n.reject(o)}return n.promise()}}])&&h(e.prototype,n),i&&h(e,i),t}();t.exports=f},function(t,e,n){"use strict";var i=n(398).smartFormatter,o=n(2).isFunction,r={emptySliderMarkerText:". . .",pointerSize:4};e.utils={trackerSettings:{fill:"grey",stroke:"grey",opacity:1e-4},animationSettings:{duration:250}},e.consts=r,e.formatValue=function(t,e,n,r,a,s){var l={value:t,valueText:i(t,{labelOptions:e,ticks:n?n.ticks:[],tickInterval:n?n.tickInterval:void 0,dataType:r,type:a,logarithmBase:s})};return String(o(e.customizeText)?e.customizeText.call(l,l):l.valueText)},e.HEIGHT_COMPACT_MODE=24},function(t,e,n){"use strict";(function(e){"undefined"===typeof e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,i,o){if("function"!==typeof t)throw new TypeError('"callback" argument must be a function');var r,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,i)}));case 4:return e.nextTick((function(){t.call(null,n,i,o)}));default:for(r=new Array(s-1),a=0;a<r.length;)r[a++]=arguments[a];return e.nextTick((function(){t.apply(null,r)}))}}}:t.exports=e}).call(this,n(50))},function(t,e,n){var i=n(30).Buffer;function o(t){i.isBuffer(t)||(t=i.from(t));for(var e=t.length/4|0,n=new Array(e),o=0;o<e;o++)n[o]=t.readUInt32BE(4*o);return n}function r(t){for(;0<t.length;t++)t[0]=0}function a(t,e,n,i,o){for(var r,a,s,l,u=n[0],c=n[1],d=n[2],h=n[3],f=t[0]^e[0],p=t[1]^e[1],m=t[2]^e[2],g=t[3]^e[3],_=4,v=1;v<o;v++)r=u[f>>>24]^c[p>>>16&255]^d[m>>>8&255]^h[255&g]^e[_++],a=u[p>>>24]^c[m>>>16&255]^d[g>>>8&255]^h[255&f]^e[_++],s=u[m>>>24]^c[g>>>16&255]^d[f>>>8&255]^h[255&p]^e[_++],l=u[g>>>24]^c[f>>>16&255]^d[p>>>8&255]^h[255&m]^e[_++],f=r,p=a,m=s,g=l;return r=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[m>>>8&255]<<8|i[255&g])^e[_++],a=(i[p>>>24]<<24|i[m>>>16&255]<<16|i[g>>>8&255]<<8|i[255&f])^e[_++],s=(i[m>>>24]<<24|i[g>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^e[_++],l=(i[g>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&m])^e[_++],[r>>>=0,a>>>=0,s>>>=0,l>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],o=[[],[],[],[]],r=[[],[],[],[]],a=0,s=0,l=0;l<256;++l){var u=s^s<<1^s<<2^s<<3^s<<4;u=u>>>8^255&u^99,n[a]=u,i[u]=a;var c=t[a],d=t[c],h=t[d],f=257*t[u]^16843008*u;o[0][a]=f<<24|f>>>8,o[1][a]=f<<16|f>>>16,o[2][a]=f<<8|f>>>24,o[3][a]=f,f=16843009*h^65537*d^257*c^16843008*a,r[0][u]=f<<24|f>>>8,r[1][u]=f<<16|f>>>16,r[2][u]=f<<8|f>>>24,r[3][u]=f,0===a?a=s=1:(a=c^t[t[t[h^c]]],s^=t[t[s]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:o,INV_SUB_MIX:r}}();function u(t){this._key=o(t),this._reset()}u.blockSize=16,u.keySize=32,u.prototype.blockSize=u.blockSize,u.prototype.keySize=u.keySize,u.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),o=[],r=0;r<e;r++)o[r]=t[r];for(r=e;r<i;r++){var a=o[r-1];r%e===0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=s[r/e|0]<<24):e>6&&r%e===4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),o[r]=o[r-e]^a}for(var u=[],c=0;c<i;c++){var d=i-c,h=o[d-(c%4?0:4)];u[c]=c<4||d<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=u},u.prototype.encryptBlockRaw=function(t){return a(t=o(t),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},u.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},u.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var n=a(t,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),r=i.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},u.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},t.exports.AES=u},function(t,e,n){var i=n(30).Buffer,o=n(314);t.exports=function(t,e,n,r){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=i.alloc(a),l=i.alloc(r||0),u=i.alloc(0);a>0||r>0;){var c=new o;c.update(u),c.update(t),e&&c.update(e),u=c.digest();var d=0;if(a>0){var h=s.length-a;d=Math.min(a,u.length),u.copy(s,h,0,d),a-=d}if(d<u.length&&r>0){var f=l.length-r,p=Math.min(r,u.length-d);u.copy(l,f,d,d+p),r-=p}}return u.fill(0),{key:s,iv:l}}},function(t,e,n){"use strict";var i=n(111),o=n(85),r=o.getNAF,a=o.getJSF,s=o.assert;function l(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function u(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=l,l.prototype.point=function(){throw new Error("Not implemented")},l.prototype.validate=function(){throw new Error("Not implemented")},l.prototype._fixedNafMul=function(t,e){s(t.precomputed);var n=t._getDoubles(),i=r(e,1,this._bitLength),o=(1<<n.step+1)-(n.step%2===0?2:1);o/=3;for(var a=[],l=0;l<i.length;l+=n.step){var u=0;for(e=l+n.step-1;e>=l;e--)u=(u<<1)+i[e];a.push(u)}for(var c=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=o;h>0;h--){for(l=0;l<a.length;l++){(u=a[l])===h?d=d.mixedAdd(n.points[l]):u===-h&&(d=d.mixedAdd(n.points[l].neg()))}c=c.add(d)}return c.toP()},l.prototype._wnafMul=function(t,e){var n=4,i=t._getNAFPoints(n);n=i.wnd;for(var o=i.points,a=r(e,n,this._bitLength),l=this.jpoint(null,null,null),u=a.length-1;u>=0;u--){for(e=0;u>=0&&0===a[u];u--)e++;if(u>=0&&e++,l=l.dblp(e),u<0)break;var c=a[u];s(0!==c),l="affine"===t.type?c>0?l.mixedAdd(o[c-1>>1]):l.mixedAdd(o[-c-1>>1].neg()):c>0?l.add(o[c-1>>1]):l.add(o[-c-1>>1].neg())}return"affine"===t.type?l.toP():l},l.prototype._wnafMulAdd=function(t,e,n,i,o){for(var s=this._wnafT1,l=this._wnafT2,u=this._wnafT3,c=0,d=0;d<i;d++){var h=(k=e[d])._getNAFPoints(t);s[d]=h.wnd,l[d]=h.points}for(d=i-1;d>=1;d-=2){var f=d-1,p=d;if(1===s[f]&&1===s[p]){var m=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(m[1]=e[f].add(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].add(e[p].neg())):(m[1]=e[f].toJ().mixedAdd(e[p]),m[2]=e[f].toJ().mixedAdd(e[p].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],_=a(n[f],n[p]);c=Math.max(_[0].length,c),u[f]=new Array(c),u[p]=new Array(c);for(var v=0;v<c;v++){var y=0|_[0][v],b=0|_[1][v];u[f][v]=g[3*(y+1)+(b+1)],u[p][v]=0,l[f]=m}}else u[f]=r(n[f],s[f],this._bitLength),u[p]=r(n[p],s[p],this._bitLength),c=Math.max(u[f].length,c),c=Math.max(u[p].length,c)}var w=this.jpoint(null,null,null),x=this._wnafT4;for(d=c;d>=0;d--){for(var C=0;d>=0;){var S=!0;for(v=0;v<i;v++)x[v]=0|u[v][d],0!==x[v]&&(S=!1);if(!S)break;C++,d--}if(d>=0&&C++,w=w.dblp(C),d<0)break;for(v=0;v<i;v++){var k,I=x[v];0!==I&&(I>0?k=l[v][I-1>>1]:I<0&&(k=l[v][-I-1>>1].neg()),w="affine"===k.type?w.mixedAdd(k):w.add(k))}}for(d=0;d<i;d++)l[d]=null;return o?w:w.toP()},l.BasePoint=u,u.prototype.eq=function(){throw new Error("Not implemented")},u.prototype.validate=function(){return this.curve.validate(this)},l.prototype.decodePoint=function(t,e){t=o.toArray(t,e);var n=this.p.byteLength();if((4===t[0]||6===t[0]||7===t[0])&&t.length-1===2*n)return 6===t[0]?s(t[t.length-1]%2===0):7===t[0]&&s(t[t.length-1]%2===1),this.point(t.slice(1,1+n),t.slice(1+n,1+2*n));if((2===t[0]||3===t[0])&&t.length-1===n)return this.pointFromX(t.slice(1,1+n),3===t[0]);throw new Error("Unknown point format")},u.prototype.encodeCompressed=function(t){return this.encode(t,!0)},u.prototype._encode=function(t){var e=this.curve.p.byteLength(),n=this.getX().toArray("be",e);return t?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",e))},u.prototype.encode=function(t,e){return o.encode(this._encode(e),t)},u.prototype.precompute=function(t){if(this.precomputed)return this;var e={doubles:null,naf:null,beta:null};return e.naf=this._getNAFPoints(8),e.doubles=this._getDoubles(4,t),e.beta=this._getBeta(),this.precomputed=e,this},u.prototype._hasDoubles=function(t){if(!this.precomputed)return!1;var e=this.precomputed.doubles;return!!e&&e.points.length>=Math.ceil((t.bitLength()+1)/e.step)},u.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o<e;o+=t){for(var r=0;r<t;r++)i=i.dbl();n.push(i)}return{step:t,points:n}},u.prototype._getNAFPoints=function(t){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var e=[this],n=(1<<t)-1,i=1===n?null:this.dbl(),o=1;o<n;o++)e[o]=e[o-1].add(i);return{wnd:t,points:e}},u.prototype._getBeta=function(){return null},u.prototype.dblp=function(t){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}},function(t,e,n){var i=n(1217),o=n(1225),r=n(1226),a=n(322),s=n(543),l=n(30).Buffer;function u(t){var e;"object"!==typeof t||l.isBuffer(t)||(e=t.passphrase,t=t.key),"string"===typeof t&&(t=l.from(t));var n,u,c=r(t,e),d=c.tag,h=c.data;switch(d){case"CERTIFICATE":u=i.certificate.decode(h,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(u||(u=i.PublicKey.decode(h,"der")),n=u.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPublicKey.decode(u.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return u.subjectPrivateKey=u.subjectPublicKey,{type:"ec",data:u};case"1.2.840.10040.4.1":return u.algorithm.params.pub_key=i.DSAparam.decode(u.subjectPublicKey.data,"der"),{type:"dsa",data:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"ENCRYPTED PRIVATE KEY":h=function(t,e){var n=t.algorithm.decrypt.kde.kdeparams.salt,i=parseInt(t.algorithm.decrypt.kde.kdeparams.iters.toString(),10),r=o[t.algorithm.decrypt.cipher.algo.join(".")],u=t.algorithm.decrypt.cipher.iv,c=t.subjectPrivateKey,d=parseInt(r.split("-")[1],10)/8,h=s.pbkdf2Sync(e,n,i,d,"sha1"),f=a.createDecipheriv(r,h,u),p=[];return p.push(f.update(c)),p.push(f.final()),l.concat(p)}(h=i.EncryptedPrivateKey.decode(h,"der"),e);case"PRIVATE KEY":switch(n=(u=i.PrivateKey.decode(h,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return i.RSAPrivateKey.decode(u.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:u.algorithm.curve,privateKey:i.ECPrivateKey.decode(u.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return u.algorithm.params.priv_key=i.DSAparam.decode(u.subjectPrivateKey,"der"),{type:"dsa",params:u.algorithm.params};default:throw new Error("unknown key id "+n)}case"RSA PUBLIC KEY":return i.RSAPublicKey.decode(h,"der");case"RSA PRIVATE KEY":return i.RSAPrivateKey.decode(h,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:i.DSAPrivateKey.decode(h,"der")};case"EC PRIVATE KEY":return{curve:(h=i.ECPrivateKey.decode(h,"der")).parameters.value,privateKey:h.privateKey};default:throw new Error("unknown key type "+d)}}t.exports=u,u.signature=i.signature},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(t){var e=o,n=e.lib,i=n.Base,r=n.WordArray,a=e.x64={};a.Word=i.extend({init:function(t,e){this.high=t,this.low=e}}),a.WordArray=i.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=void 0!=e?e:8*t.length},toX32:function(){for(var t=this.words,e=t.length,n=[],i=0;i<e;i++){var o=t[i];n.push(o.high),n.push(o.low)}return r.create(n,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),e=t.words=this.words.slice(0),n=e.length,o=0;o<n;o++)e[o]=e[o].clone();return t}})}(),o)}()},function(t,e,n){"use strict";t.exports=n(613)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(352);e.Template=i.Template;var o=n(616);e.Accordion=o.Accordion;var r=n(657);e.ActionSheet=r.ActionSheet;var a=n(662);e.Autocomplete=a.Autocomplete;var s=n(690);e.BarGauge=s.BarGauge;var l=n(732);e.Box=l.Box;var u=n(733);e.Bullet=u.Bullet;var c=n(736);e.Button=c.Button;var d=n(737);e.ButtonGroup=d.ButtonGroup;var h=n(738);e.Calendar=h.Calendar;var f=n(743);e.Chart=f.Chart;var p=n(761);e.CheckBox=p.CheckBox;var m=n(762);e.CircularGauge=m.CircularGauge;var g=n(764);e.ColorBox=g.ColorBox;var _=n(772);e.ContextMenu=_.ContextMenu;var v=n(776);e.DataGrid=v.DataGrid;var y=n(842);e.DateBox=y.DateBox;var b=n(843);e.DeferRendering=b.DeferRendering;var w=n(847);e.Diagram=w.Diagram;var x=n(866);e.Draggable=x.Draggable;var C=n(867);e.Drawer=C.Drawer;var S=n(872);e.DropDownBox=S.DropDownBox;var k=n(874);e.DropDownButton=k.DropDownButton;var I=n(875);e.FileManager=I.FileManager;var T=n(899);e.FileUploader=T.FileUploader;var E=n(900);e.FilterBuilder=E.FilterBuilder;var O=n(901);e.Form=O.Form;var M=n(902);e.Funnel=M.Funnel;var P=n(911);e.Gallery=P.Gallery;var D=n(913);e.Gantt=D.Gantt;var A=n(956);e.HtmlEditor=A.HtmlEditor;var R=n(979);e.LinearGauge=R.LinearGauge;var B=n(984);e.List=B.List;var N=n(985);e.LoadIndicator=N.LoadIndicator;var L=n(986);e.LoadPanel=L.LoadPanel;var F=n(987);e.Lookup=F.Lookup;var V=n(989);e.Map=V.Map;var z=n(994);e.Menu=z.Menu;var j=n(995);e.MultiView=j.MultiView;var H=n(996);e.NavBar=H.NavBar;var W=n(999);e.NumberBox=W.NumberBox;var U=n(1e3);e.PieChart=U.PieChart;var G=n(1002);e.PivotGrid=G.PivotGrid;var K=n(1016);e.PivotGridFieldChooser=K.PivotGridFieldChooser;var q=n(1018);e.PolarChart=q.PolarChart;var $=n(1020);e.Popover=$.Popover;var Y=n(338);e.Popup=Y.Popup;var Z=n(1021);e.ProgressBar=Z.ProgressBar;var X=n(1022);e.RadioGroup=X.RadioGroup;var J=n(1024);e.RangeSelector=J.RangeSelector;var Q=n(1033);e.RangeSlider=Q.RangeSlider;var tt=n(1036);e.RecurrenceEditor=tt.RecurrenceEditor;var et=n(1038);e.Resizable=et.Resizable;var nt=n(1039);e.ResponsiveBox=nt.ResponsiveBox;var it=n(1040);e.Sankey=it.Sankey;var ot=n(1048);e.Scheduler=ot.Scheduler;var rt=n(1082);e.ScrollView=rt.ScrollView;var at=n(1083);e.SelectBox=at.SelectBox;var st=n(1084);e.SlideOut=st.SlideOut;var lt=n(1086);e.SlideOutView=lt.SlideOutView;var ut=n(1087);e.Slider=ut.Slider;var ct=n(1088);e.Sortable=ct.Sortable;var dt=n(1089);e.Sparkline=dt.Sparkline;var ht=n(1092);e.SpeedDialAction=ht.SpeedDialAction;var ft=n(1097);e.Switch=ft.Switch;var pt=n(1098);e.TabPanel=pt.TabPanel;var mt=n(1099);e.Tabs=mt.Tabs;var gt=n(1100);e.TagBox=gt.TagBox;var _t=n(1101);e.TextArea=_t.TextArea;var vt=n(1102);e.TextBox=vt.TextBox;var yt=n(1103);e.TileView=yt.TileView;var bt=n(1105);e.Toast=bt.Toast;var wt=n(1106);e.Toolbar=wt.Toolbar;var xt=n(1107);e.Tooltip=xt.Tooltip;var Ct=n(1108);e.TreeList=Ct.TreeList;var St=n(1109);e.TreeMap=St.TreeMap;var kt=n(1121);e.TreeView=kt.TreeView;var It=n(1122);e.ValidationGroup=It.ValidationGroup;var Tt=n(1123);e.ValidationSummary=Tt.ValidationSummary;var Et=n(1124);e.Validator=Et.Validator;var Ot=n(1125);e.VectorMap=Ot.VectorMap},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(87);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(i.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},function(t,e,n){"use strict";function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function o(t,e){if(t){if("string"===typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}n.d(e,"a",(function(){return o}))},,function(t,e,n){"use strict";var i=n(16).inArray,o=n(10),r=o.hasWindow()?o.getWindow().WeakMap:WeakMap;r||(r=function(){var t=[],e=[];this.set=function(n,o){var r=i(n,t);-1===r?(t.push(n),e.push(o)):e[r]=o},this.get=function(n){var o=i(n,t);if(-1!==o)return e[o]},this.has=function(e){return-1!==i(e,t)},this.delete=function(n){var o=i(n,t);-1!==o&&(t.splice(o,1),e.splice(o,1))}}),t.exports=r},function(t,e,n){"use strict";t.exports="20.1.6"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=n(5),r=n(39),a=(i=r)&&i.__esModule?i:{default:i};function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.memory=[],this.callbacks=(0,a.default)()}var e,n,i;return e=t,(n=[{key:"add",value:function(t){(0,o.each)(this.memory,(function(e,n){return t.apply(t,n)})),this.callbacks.add(t)}},{key:"remove",value:function(t){this.callbacks.remove(t)}},{key:"fire",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.memory.push(e),this.callbacks.fire.apply(this.callbacks,e)}}])&&s(e.prototype,n),i&&s(e,i),t}();e.default=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getNestedOptionValue=e.getParentName=e.getFieldName=e.deviceMatch=e.normalizeOptions=e.convertRulesToOptions=void 0;var i,o=n(18),r=(i=o)&&i.__esModule?i:{default:i},a=n(2),s=n(4),l=n(0),u=n(29);var c={},d=(e.convertRulesToOptions=function(t){var e=r.default.current();return t.reduce((function(t,n){var i=n.device,o=n.options,r=i||{};return((0,a.isFunction)(r)?r(e):d(e,r))&&(0,l.extend)(!0,t,o),t}),{})},e.normalizeOptions=function(t,e){return"string"!==typeof t?t:function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},t,e)},e.deviceMatch=function(t,e){return(0,a.isEmptyObject)(e)||(0,s.findBestMatches)(t,[e]).length>0});e.getFieldName=function(t){return t.substr(t.lastIndexOf(".")+1)},e.getParentName=function(t){return t.substr(0,t.lastIndexOf("."))},e.getNestedOptionValue=function(t,e){return c[e]=c[e]||(0,u.compileGetter)(e),c[e](t,{functionsAsIs:!0})}},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(58),a=n(18),s=n(21),l=n(114),u=n(11),c=n(135),d=u.addNamespace("contextmenu","dxContexMenu"),h=u.addNamespace(c.name,"dxContexMenu");l("dxcontextmenu",new(s.inherit({setup:function(t){var e=i(t);o.on(e,d,this._contextMenuHandler.bind(this)),(r.touch||a.isSimulator())&&o.on(e,h,this._holdHandler.bind(this))},_holdHandler:function(t){u.isMouseEvent(t)&&!a.isSimulator()||this._fireContextMenu(t)},_contextMenuHandler:function(t){this._fireContextMenu(t)},_fireContextMenu:function(t){return u.fireEvent({type:"dxcontextmenu",originalEvent:t})},teardown:function(t){o.off(t,".dxContexMenu")}}))),e.name="dxcontextmenu"},function(t,e,n){"use strict";var i=n(21),o=n(643),r=n(644),a=n(0).extend,s=n(4).noop,l=n(2).isDefined,u=n(7).Deferred;t.exports=i.inherit({ctor:function(t){this.options=a(this._getDefaultOptions(),t,{selectedItemKeys:t.selectedKeys||[]}),this._selectionStrategy=this.options.deferred?new o(this.options):new r(this.options),this._focusedItemIndex=-1,this.options.equalByReference||this._selectionStrategy.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_getDefaultOptions:function(){return{allowNullValue:!1,deferred:!1,equalByReference:!1,mode:"multiple",selectedItems:[],selectionFilter:[],maxFilterLengthInRequest:0,onSelectionChanged:s,key:s,keyOf:function(t){return t},load:function(){return(new u).resolve([])},totalCount:function(){return-1},isSelectableItem:function(){return!0},isItemSelected:function(){return!1},getItemData:function(t){return t},dataFields:s,filter:s}},validate:function(){this._selectionStrategy.validate()},getSelectedItemKeys:function(){return this._selectionStrategy.getSelectedItemKeys()},getSelectedItems:function(){return this._selectionStrategy.getSelectedItems()},selectionFilter:function(t){if(void 0===t)return this.options.selectionFilter;var e=this.options.selectionFilter!==t&&JSON.stringify(this.options.selectionFilter)!==JSON.stringify(t);this.options.selectionFilter=t,e&&this.onSelectionChanged()},setSelection:function(t){return this.selectedItemKeys(t)},select:function(t){return this.selectedItemKeys(t,!0)},deselect:function(t){return this.selectedItemKeys(t,!0,!0)},selectedItemKeys:function(t,e,n,i){return t=t||[],t=Array.isArray(t)?t:[t],this.validate(),this._selectionStrategy.selectedItemKeys(t,e,n,i)},clearSelection:function(){return this.selectedItemKeys([])},_addSelectedItem:function(t,e){this._selectionStrategy.addSelectedItem(e,t)},_removeSelectedItem:function(t){this._selectionStrategy.removeSelectedItem(t)},_setSelectedItems:function(t,e){this._selectionStrategy.setSelectedItems(t,e)},onSelectionChanged:function(){this._selectionStrategy.onSelectionChanged()},changeItemSelection:function(t,e){var n,i=this.options.plainItems(),o=i[t];if(!this.isSelectable()||!this.isDataItem(o))return!1;var r=this.options.getItemData(o),a=this.options.keyOf(r);if((e=e||{}).shift&&"multiple"===this.options.mode&&this._focusedItemIndex>=0)n=this.changeItemSelectionWhenShiftKeyPressed(t,i);else if(e.control){this._resetItemSelectionWhenShiftKeyPressed();var s=this._selectionStrategy.isItemDataSelected(r);"single"===this.options.mode&&this.clearSelectedItems(),s?this._removeSelectedItem(a):this._addSelectedItem(r,a),n=!0}else{this._resetItemSelectionWhenShiftKeyPressed();var l=this._selectionStrategy.equalKeys(this.options.selectedItemKeys[0],a);1===this.options.selectedItemKeys.length&&l||(this._setSelectedItems([a],[r]),n=!0)}return n?(this._focusedItemIndex=t,this.onSelectionChanged(),!0):void 0},isDataItem:function(t){return this.options.isSelectableItem(t)},isSelectable:function(){return"single"===this.options.mode||"multiple"===this.options.mode},isItemDataSelected:function(t){return this._selectionStrategy.isItemDataSelected(t)},isItemSelected:function(t){return this._selectionStrategy.isItemKeySelected(t)},_resetItemSelectionWhenShiftKeyPressed:function(){delete this._shiftFocusedItemIndex},_resetFocusedItemIndex:function(){this._focusedItemIndex=-1},changeItemSelectionWhenShiftKeyPressed:function(t,e){var n,i,o,r,a=!1,s=this.options.keyOf,u=e[this._focusedItemIndex],c=this.options.getItemData(u),d=s(c),h=u&&this.isItemDataSelected(c);if(l(this._shiftFocusedItemIndex)||(this._shiftFocusedItemIndex=this._focusedItemIndex),this._shiftFocusedItemIndex!==this._focusedItemIndex)for(n=this._focusedItemIndex<this._shiftFocusedItemIndex?1:-1,i=this._focusedItemIndex;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(e[i])&&(r=s(this.options.getItemData(e[i])),this._removeSelectedItem(r),a=!0);if(t!==this._shiftFocusedItemIndex)for(n=t<this._shiftFocusedItemIndex?1:-1,i=t;i!==this._shiftFocusedItemIndex;i+=n)this.isDataItem(e[i])&&(r=s(o=this.options.getItemData(e[i])),this._addSelectedItem(o,r),a=!0);return this.isDataItem(u)&&!h&&(this._addSelectedItem(c,d),a=!0),a},clearSelectedItems:function(){this._setSelectedItems([],[])},selectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!1):this.selectedItemKeys([],!0,!1,!0)},deselectAll:function(t){return this._resetFocusedItemIndex(),t?this._onePageSelectAll(!0):this.selectedItemKeys([],!0,!0,!0)},_onePageSelectAll:function(t){for(var e=this._selectionStrategy.getSelectableItems(this.options.plainItems()),n=0;n<e.length;n++){var i=e[n];if(this.isDataItem(i)){var o=this.options.getItemData(i),r=this.options.keyOf(o),a=this.isItemSelected(r);a||t||this._addSelectedItem(o,r),a&&t&&this._removeSelectedItem(r)}}return this.onSelectionChanged(),(new u).resolve()},getSelectAllState:function(t){return this._selectionStrategy.getSelectAllState(t)}})},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var r=n(364),a=n(1),s=n(646),l=n(648),u=n(653),c=n(654),d=n(366),h=n(655);e.DX_REMOVE_EVENT="dxremove";var f=function(t){function e(e){var n=t.call(this,e)||this;return n._templateProps=[],n._setTemplatesRendererRef=n._setTemplatesRendererRef.bind(n),n._createWidget=n._createWidget.bind(n),n._templatesStore=new c.TemplatesStore((function(){n._templatesRendererRef&&n._templatesRendererRef.scheduleUpdate()})),n._templatesManager=new l.default(n._templatesStore),n._optionsManager=new s.OptionsManager(n._templatesManager),n}return i(e,t),e.prototype.render=function(){return a.createElement("div",this._getElementProps(),this.renderChildren(),a.createElement(u.TemplatesRenderer,{templatesStore:this._templatesStore,ref:this._setTemplatesRendererRef}))},e.prototype.componentDidMount=function(){this._updateCssClasses(null,this.props)},e.prototype.componentDidUpdate=function(t){this._updateCssClasses(t,this.props);var e=this._getConfig();this._optionsManager.update(e),this._templatesRendererRef&&this._templatesRendererRef.scheduleUpdate()},e.prototype.componentWillUnmount=function(){this._instance&&(r.triggerHandler(this._element,"dxremove"),this._instance.dispose()),this._optionsManager.dispose()},e.prototype.renderChildren=function(){return this.props.children},e.prototype._createWidget=function(t){t=t||this._element;var e=this._getConfig();this._instance=new this._WidgetClass(t,o({templatesRenderAsynchronously:!0},this._optionsManager.getInitialOptions(e))),this._optionsManager.setInstance(this._instance,e),this._instance.on("optionChanged",this._optionsManager.onOptionChanged)},e.prototype._getConfig=function(){return h.buildConfigTree({templates:this._templateProps,initialValuesProps:this._defaults,predefinedValuesProps:{},expectedChildren:this._expectedChildren},this.props)},e.prototype._setTemplatesRendererRef=function(t){this._templatesRendererRef=t},e.prototype._getElementProps=function(){var t=this,e={ref:function(e){return t._element=e}};return d.elementPropNames.forEach((function(n){n in t.props&&(e[n]=t.props[n])})),e},e.prototype._updateCssClasses=function(t,e){var n,i,o=t?d.getClassName(t):void 0,r=d.getClassName(e);if(o!==r){var a;if(o)(a=o.split(" ").filter((function(t){return t}))).length&&(n=this._element.classList).remove.apply(n,a);if(r)(a=r.split(" ").filter((function(t){return t}))).length&&(i=this._element.classList).add.apply(i,a)}},e}(a.PureComponent);e.ComponentBase=f},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(4).noop,a=n(12),s=n(8),l=n(0).extend,u=n(42),c=n(69),d=n(48),h=n(137),f=n(73).BindableTemplate,p=n(7).Deferred,m=c.inherit({_getDefaultOptions:function(){return l(this.callBase(),{usePopover:!1,target:null,title:"",showTitle:!0,showCancelButton:!0,cancelText:a.format("Cancel"),onCancelClick:null,visible:!1,noDataText:"",focusStateEnabled:!1,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios",tablet:!0},options:{usePopover:!0}}])},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new f((function(t,e){var n=new u(i("<div>"),l({onClick:e&&e.click},e));t.append(n.$element())}),["disabled","icon","text","type","onClick","click"],this.option("integrationOptions.watchMethod"))})},_itemContainer:function(){return this._$itemContainer},_itemClass:function(){return"dx-actionsheet-item"},_itemDataKey:function(){return"dxActionSheetItemData"},_toggleVisibility:r,_renderDimensions:r,_initMarkup:function(){this.callBase(),this.$element().addClass("dx-actionsheet"),this._createItemContainer()},_render:function(){this._renderPopup()},_createItemContainer:function(){this._$itemContainer=i("<div>").addClass("dx-actionsheet-container"),this._renderDisabled()},_renderDisabled:function(){this._$itemContainer.toggleClass("dx-state-disabled",this.option("disabled"))},_renderPopup:function(){this._$popup=i("<div>").appendTo(this.$element()),this._isPopoverMode()?this._createPopover():this._createPopup(),this._renderPopupTitle(),this._mapPopupOption("visible")},_mapPopupOption:function(t){this._popup&&this._popup.option(t,this.option(t))},_isPopoverMode:function(){return this.option("usePopover")&&this.option("target")},_renderPopupTitle:function(){this._mapPopupOption("showTitle"),this._popup&&this._popup._wrapper().toggleClass("dx-actionsheet-without-title",!this.option("showTitle"))},_clean:function(){this._$popup&&this._$popup.remove(),this.callBase()},_overlayConfig:function(){return{onInitialized:function(t){this._popup=t.component}.bind(this),disabled:!1,showTitle:!0,title:this.option("title"),deferRendering:!o.angular,onContentReady:this._popupContentReadyAction.bind(this),onHidden:this.hide.bind(this)}},_createPopover:function(){this._createComponent(this._$popup,h,l(this._overlayConfig(),{width:this.option("width")||200,height:this.option("height")||"auto",target:this.option("target")})),this._popup._wrapper().addClass("dx-actionsheet-popover-wrapper")},_createPopup:function(){this._createComponent(this._$popup,d,l(this._overlayConfig(),{dragEnabled:!1,width:this.option("width")||"100%",height:this.option("height")||"auto",showCloseButton:!1,position:{my:"bottom",at:"bottom",of:o},animation:{show:{type:"slide",duration:400,from:{position:{my:"top",at:"bottom",of:o}},to:{position:{my:"bottom",at:"bottom",of:o}}},hide:{type:"slide",duration:400,from:{position:{my:"bottom",at:"bottom",of:o}},to:{position:{my:"top",at:"bottom",of:o}}}}})),this._popup._wrapper().addClass("dx-actionsheet-popup-wrapper")},_popupContentReadyAction:function(){this._popup.$content().append(this._$itemContainer),this._attachClickEvent(),this._attachHoldEvent(),this._prepareContent(),this._renderContent(),this._renderCancelButton()},_renderCancelButton:function(){if(!this._isPopoverMode()&&(this._$cancelButton&&this._$cancelButton.remove(),this.option("showCancelButton"))){var t=this._createActionByOption("onCancelClick")||r,e=this;this._$cancelButton=i("<div>").addClass("dx-actionsheet-cancel").appendTo(this._popup&&this._popup.$content()),this._createComponent(this._$cancelButton,u,{disabled:!1,text:this.option("cancelText"),onClick:function(n){var i={event:n,cancel:!1};t(i),i.cancel||e.hide()},integrationOptions:{}})}},_attachItemClickEvent:r,_itemClickHandler:function(t){this.callBase(t),i(t.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_itemHoldHandler:function(t){this.callBase(t),i(t.target).is(".dx-state-disabled, .dx-state-disabled *")||this.hide()},_optionChanged:function(t){switch(t.name){case"width":case"height":case"visible":case"title":this._mapPopupOption(t.name);break;case"disabled":this._renderDisabled();break;case"showTitle":this._renderPopupTitle();break;case"showCancelButton":case"onCancelClick":case"cancelText":this._renderCancelButton();break;case"target":case"usePopover":case"items":this._invalidate();break;default:this.callBase(t)}},toggle:function(t){var e=this,n=new p;return e._popup.toggle(t).done((function(){e.option("visible",t),n.resolveWith(e)})),n.promise()},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)}});s("dxActionSheet",m),t.exports=m,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(0);t.exports={_formatNumberCore:function(t,e,n){if("currency"===e){n.precision=n.precision||0;var o=this.format(t,(0,i.extend)({},n,{type:"fixedpoint"})),r=this.getCurrencySymbol().symbol.replace("$","$$$$");return o=o.replace(/^(\D*)(\d.*)/,"$1"+r+"$2")}return this.callBase.apply(this,arguments)},getCurrencySymbol:function(){return{symbol:"$"}},getOpenXmlCurrencyFormat:function(){return"$#,##0{0}_);\\($#,##0{0}\\)"}}},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(18),a=n(130),s=n(113),l=n(17),u=n(77).add,c=n(37),d=n(4).noop,h=n(2).isDefined,f=n(11),p=n(186),m=c.sign,g=Math.abs,_=10,v=s((function(){var t="desktop"===r.real().deviceType;if(!a.styleProp("pointer-events")||!t)return d;var e=i("<div>").addClass("dx-gesture-cover").css("pointerEvents","none");return o.subscribeGlobal(e,"dxmousewheel",(function(t){t.preventDefault()})),u((function(){e.appendTo("body")})),function(t,n){e.css("pointerEvents",t?"all":"none"),t&&e.css("cursor",n)}})),y=p.inherit({gesture:!0,configure:function(t){this.getElement().css("msTouchAction",t.immediate?"pinch-zoom":""),this.callBase(t)},allowInterruptionByMouseWheel:function(){return 2!==this._stage},getDirection:function(){return this.direction},_cancel:function(){this.callBase.apply(this,arguments),this._toggleGestureCover(!1),this._stage=0},start:function(t){t._needSkipEvent||f.needSkipEvent(t)?this._cancel(t):(this._startEvent=f.createEvent(t),this._startEventData=f.eventData(t),this._stage=1,this._init(t),this._setupImmediateTimer())},_setupImmediateTimer:function(){clearTimeout(this._immediateTimer),this._immediateAccepted=!1,this.immediate&&(this._immediateTimer=setTimeout(function(){this._immediateAccepted=!0}.bind(this),180))},move:function(t){if(1===this._stage&&this._directionConfirmed(t)){if(this._stage=2,this._resetActiveElement(),this._toggleGestureCover(!0),this._clearSelection(t),this._adjustStartEvent(t),this._start(this._startEvent),0===this._stage)return;this._requestAccept(t),this._move(t),this._forgetAccept()}else 2===this._stage&&(this._clearSelection(t),this._move(t))},_directionConfirmed:function(t){var e=this._getTouchBoundary(t),n=f.eventDelta(this._startEventData,f.eventData(t)),i=g(n.x),o=g(n.y),r=this._validateMove(e,i,o),a=this._validateMove(e,o,i),s=this.getDirection(t);return"both"===s&&(r||a)||"horizontal"===s&&r||"vertical"===s&&a||this._immediateAccepted},_validateMove:function(t,e,n){return e&&e>=t&&(!this.immediate||e>=n)},_getTouchBoundary:function(t){return this.immediate||f.isDxMouseWheelEvent(t)?0:_},_adjustStartEvent:function(t){var e=this._getTouchBoundary(t),n=f.eventDelta(this._startEventData,f.eventData(t));this._startEvent.pageX+=m(n.x)*e,this._startEvent.pageY+=m(n.y)*e},_resetActiveElement:function(){"ios"===r.real().platform&&this.getElement().find(":focus").length&&l.resetActiveElement()},_toggleGestureCover:function(t){this._toggleGestureCoverImpl(t)},_toggleGestureCoverImpl:function(t){2===this._stage&&function(t,e){v()(t,e)}(t,this.getElement().css("cursor"))},_clearSelection:function(t){f.isDxMouseWheelEvent(t)||f.isTouchEvent(t)||l.clearSelection()},end:function(t){this._toggleGestureCover(!1),2===this._stage?this._end(t):1===this._stage&&this._stop(t),this._stage=0},dispose:function(){clearTimeout(this._immediateTimer),this.callBase.apply(this,arguments),this._toggleGestureCover(!1)},_init:d,_start:d,_move:d,_stop:d,_end:d});y.initialTouchBoundary=_,y.touchBoundary=function(t){if(!h(t))return _;_=t},t.exports=y},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(3),r=n(10),a=n(6),s=n(45),l=n(8),u=n(4),c=n(2),d=n(0).extend,h=n(16).inArray,f=n(221),p=n(108),m=n(23),g=n(11),_=n(18),v=n(61),y=n(5).each,b=n(272),w=n(12),x=n(157).ChildDefaultTemplate,C=n(7).Deferred,S=n(269).default,k=r.getWindow(),I=["startswith","contains","endwith","notcontains"],T=f.inherit({_supportedKeys:function(){var t=this.callBase();return d({},t,{tab:function(e){if(this._allowSelectItemByTab()){this._saveValueChangeEvent(e);var n=o(this._list.option("focusedElement"));n.length&&this._setSelectedElement(n)}t.tab.apply(this,arguments)},space:u.noop,home:u.noop,end:u.noop})},_allowSelectItemByTab:function(){return this.option("opened")&&"instantly"===this.option("applyValueMode")},_setSelectedElement:function(t){var e=this._valueGetter(this._list._getItemData(t));this._setValue(e)},_setValue:function(t){this.option("value",t)},_getDefaultOptions:function(){return d(this.callBase(),d(b._dataExpressionDefaultOptions(),{displayValue:void 0,searchEnabled:!1,searchMode:"contains",searchTimeout:500,minSearchLength:0,searchExpr:null,valueChangeEvent:"input change keyup",selectedItem:null,noDataText:w.format("dxCollectionWidget-noDataText"),onSelectionChanged:null,onItemClick:u.noop,showDataBeforeSearch:!1,grouped:!1,groupTemplate:"group",popupPosition:{my:"left top",at:"left bottom",offset:{h:0,v:0},collision:"flip"},wrapItemText:!1,popupWidthExtension:0}))},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{popupPosition:{offset:{v:-1}}}},{device:{platform:"generic"},options:{buttonsLocation:"bottom center"}}])},_setOptionsByReference:function(){this.callBase(),d(this._optionsByReference,{value:!0,selectedItem:!0,displayValue:!0})},_init:function(){this.callBase(),this._initDataExpressions(),this._initActions(),this._setListDataSource(),this._validateSearchMode(),this._clearSelectedItem(),this._initItems()},_initItems:function(){var t=this.option().items;t&&!t.length&&this._dataSource&&(this.option().items=this._dataSource.items())},_initActions:function(){this._initContentReadyAction(),this._initSelectionChangedAction(),this._initItemClickAction()},_initContentReadyAction:function(){this._contentReadyAction=this._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]})},_initSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new x("item")})},_saveFocusOnWidget:function(t){this._list&&this._list.initialOption("focusStateEnabled")&&this._focusInput()},_fitIntoRange:function(t,e,n){return t>n?e:t<e?n:t},_items:function(){var t=this._getPlainItems(!this._list&&this._dataSource.items());return new v(t).filter("disabled","<>",!0).toArray()},_calcNextItem:function(t){var e=this._items();return e[this._fitIntoRange(this._getSelectedIndex()+t,0,e.length-1)]},_getSelectedIndex:function(){var t=this._items(),e=this.option("selectedItem"),n=-1;return y(t,function(t,i){if(this._isValueEquals(i,e))return n=t,!1}.bind(this)),n},_createPopup:function(){this.callBase(),this._updateCustomBoundaryContainer(),this._popup._wrapper().addClass(this._popupWrapperClass());var t=this._popup.$content();a.off(t,"mouseup"),a.on(t,"mouseup",this._saveFocusOnWidget.bind(this));var e=this;this._popup.on({shown:function(){e.$element().addClass("dx-skip-gesture-event")},hidden:function(){e.$element().removeClass("dx-skip-gesture-event")}})},_updateCustomBoundaryContainer:function(){var t=this.option("dropDownOptions.container"),e=t&&o(t);if(e&&e.length&&!c.isWindow(e.get(0))){var n=[].slice.call(e.parents());n.unshift(e.get(0)),y(n,function(t,e){return e!==o("body").get(0)&&("hidden"===k.getComputedStyle(e).overflowY?(this._$customBoundaryContainer=o(e),!1):void 0)}.bind(this))}},_popupWrapperClass:function(){return"dx-dropdownlist-popup-wrapper"},_renderInputValue:function(){var t=this._getCurrentValue();return this._loadInputValue(t,this._setSelectedItem.bind(this)).always(this.callBase.bind(this,t))},_loadInputValue:function(t,e){return this._loadItem(t).always(e)},_getItemFromPlain:function(t,e){var n,o;return e&&"object"!==i(t)&&(e.itemByValue||(e.itemByValue={},(n=this._getPlainItems()).forEach((function(t){e.itemByValue[this._valueGetter(t)]=t}),this)),o=e.itemByValue[t]),o||(n=this._getPlainItems(),o=u.grep(n,function(e){return this._isValueEquals(this._valueGetter(e),t)}.bind(this))[0]),o},_loadItem:function(t,e){var n=this._getItemFromPlain(t,e);return void 0!==n?(new C).resolve(n).promise():this._loadValue(t)},_getPlainItems:function(t){var e=[];t=t||this.option("items")||this._dataSource.items()||[];for(var n=0;n<t.length;n++)t[n]&&t[n].items?e=e.concat(t[n].items):e.push(t[n]);return e},_setSelectedItem:function(t){var e=this._displayValue(t);this.option("selectedItem",u.ensureDefined(t,null)),this.option("displayValue",e)},_displayValue:function(t){return this._displayGetter(t)},_refreshSelected:function(){var t={};this._listItemElements().each(function(e,n){var i=o(n),r=this._valueGetter(i.data("dxListItemData"));this._isSelectedValue(r,t)?this._list.selectItem(i):this._list.unselectItem(i)}.bind(this))},_popupShownHandler:function(){this.callBase(),this._setFocusPolicy()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&this._list&&this._list.option("focusedElement",null)},_isSelectedValue:function(t){return this._isValueEquals(t,this.option("value"))},_validateSearchMode:function(){var t=this.option("searchMode"),e=t.toLowerCase();if(h(e,I)<0)throw m.Error("E1019",t)},_clearSelectedItem:function(){this.option("selectedItem",null)},_processDataSourceChanging:function(){this._setListDataSource(),this._renderInputValue().fail(function(){this._isCustomValueAllowed()||this._clearSelectedItem()}.bind(this))},_isCustomValueAllowed:function(){return this.option("displayCustomValue")},reset:function(){this.callBase(),this._clearFilter(),this._clearSelectedItem()},_listItemElements:function(){return this._$list?this._$list.find(".dx-list-item"):o()},_popupConfig:function(){return d(this.callBase(),{templatesRenderAsynchronously:!1,autoResizeEnabled:!1,maxHeight:this._getMaxHeight.bind(this),width:this._getInputWidth.bind(this)})},_getInputWidth:function(){return this.$element().outerWidth()},_renderPopupContent:function(){this.callBase(),this._renderList()},_getKeyboardListeners:function(){var t=this._canListHaveFocus();return this.callBase().concat([!t&&this._list])},_fireContentReadyAction:u.noop,_setAriaTargetForList:function(){this._list._getAriaTarget=this._getAriaTarget.bind(this)},_renderList:function(){this._listId="dx-"+(new s)._value;var t=this._$list=o("<div>").attr("id",this._listId).appendTo(this._popup.$content());this._list=this._createComponent(t,p,this._listConfig()),this._refreshList(),this._setAriaTargetForList(),this._list.option("_listAttributes",{role:"combobox"}),this._renderPreventBlur(this._$list)},_renderPreventBlur:function(t){var e=g.addNamespace("mousedown","dxDropDownList");a.off(t,e),a.on(t,e,function(t){t.preventDefault()}.bind(this))},_renderOpenedState:function(){this.callBase();var t=this.option("opened")||void 0;this.setAria({activedescendant:t&&this._list.getFocusedItemId(),controls:t&&this._listId})},_setDefaultAria:function(){this.setAria({haspopup:"listbox",autocomplete:"list"})},_refreshList:function(){this._list&&this._shouldRefreshDataSource()&&this._setListDataSource()},_shouldRefreshDataSource:function(){return!!this._list.option("dataSource")!==this._needPassDataSourceToList()},_isDesktopDevice:function(){return"desktop"===_.real().deviceType},_listConfig:function(){var t={selectionMode:"single",_templates:this.option("_templates"),templateProvider:this.option("templateProvider"),noDataText:this.option("noDataText"),grouped:this.option("grouped"),wrapItemText:this.option("wrapItemText"),onContentReady:this._listContentReadyHandler.bind(this),itemTemplate:this.option("itemTemplate"),indicateLoading:!1,keyExpr:this._getCollectionKeyExpr(),displayExpr:this._displayGetterExpr(),groupTemplate:this.option("groupTemplate"),onItemClick:this._listItemClickAction.bind(this),dataSource:this._getDataSource(),hoverStateEnabled:!!this._isDesktopDevice()&&this.option("hoverStateEnabled"),focusStateEnabled:!!this._isDesktopDevice()&&this.option("focusStateEnabled")};return this._canListHaveFocus()||(t.tabIndex=null),t},_canListHaveFocus:function(){return!1},_getDataSource:function(){return this._needPassDataSourceToList()?this._dataSource:null},_dataSourceOptions:function(){return{paginate:!1}},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_listContentReadyHandler:function(){this._list=this._list||this._$list.dxList("instance"),this.option("deferRendering")||this._refreshSelected(),this._dimensionChanged(),this._contentReadyAction()},_setListOption:function(t,e){this._setWidgetOption("_list",arguments)},_listItemClickAction:function(t){this._listItemClickHandler(t),this._itemClickAction(t)},_listItemClickHandler:u.noop,_setListDataSource:function(){this._list&&(this._setListOption("dataSource",this._getDataSource()),this._needPassDataSourceToList()||this._setListOption("items",[]))},_needPassDataSourceToList:function(){return this.option("showDataBeforeSearch")||this._isMinSearchLengthExceeded()},_isMinSearchLengthExceeded:function(){return this._searchValue().toString().length>=this.option("minSearchLength")},_needClearFilter:function(){return!this._canKeepDataSource()&&this._needPassDataSourceToList()},_canKeepDataSource:function(){var t,e=this._isMinSearchLengthExceeded();return(null===(t=this._dataSource)||void 0===t?void 0:t.isLoaded())&&this.option("showDataBeforeSearch")&&this.option("minSearchLength")&&!e&&!this._isLastMinSearchLengthExceeded},_searchValue:function(){return this._input().val()||""},_getSearchEvent:function(){return g.addNamespace("input",this.NAME+"Search")},_getSetFocusPolicyEvent:function(){return g.addNamespace("input",this.NAME+"FocusPolicy")},_renderEvents:function(){this.callBase(),a.on(this._input(),this._getSetFocusPolicyEvent(),this._setFocusPolicy.bind(this)),this._shouldRenderSearchEvent()&&a.on(this._input(),this._getSearchEvent(),this._searchHandler.bind(this))},_shouldRenderSearchEvent:function(){return this.option("searchEnabled")},_refreshEvents:function(){a.off(this._input(),this._getSearchEvent()),a.off(this._input(),this._getSetFocusPolicyEvent()),this.callBase()},_searchHandler:function(){if(this._isMinSearchLengthExceeded()){var t=this.option("searchTimeout");t?(this._clearSearchTimer(),this._searchTimer=setTimeout(this._searchDataSource.bind(this),t)):this._searchDataSource()}else this._searchCanceled()},_searchCanceled:function(){this._clearSearchTimer(),this._needClearFilter()&&this._filterDataSource(null),this._refreshList()},_searchDataSource:function(){this._filterDataSource(this._searchValue())},_filterDataSource:function(t){this._clearSearchTimer();var e=this._dataSource;e&&(e.searchExpr(this.option("searchExpr")||this._displayGetterExpr()),e.searchOperation(this.option("searchMode")),e.searchValue(t),e.load().done(this._dataSourceFiltered.bind(this,t)))},_clearFilter:function(){var t=this._dataSource;t&&t.searchValue()&&t.searchValue(null)},_dataSourceFiltered:function(){this._isLastMinSearchLengthExceeded=this._isMinSearchLengthExceeded(),this._refreshList(),this._refreshPopupVisibility()},_shouldOpenPopup:function(){return this._hasItemsToShow()},_refreshPopupVisibility:function(){if(!this.option("readOnly")&&this._searchValue()){var t=this._shouldOpenPopup();t&&!this._isFocused()||(this.option("opened",t),t&&this._dimensionChanged())}},_dataSourceChangedHandler:function(t){0===this._dataSource.pageIndex()?this.option().items=t:this.option().items=this.option().items.concat(t)},_hasItemsToShow:function(){var t=(this._dataSource&&this._dataSource.items()||[]).length;return!(!this._needPassDataSourceToList()||!t)},_clearSearchTimer:function(){clearTimeout(this._searchTimer),delete this._searchTimer},_updatePopupMinWidth:function(t){k&&this._popup&&(void 0===t&&(t=this.$element().outerWidth()),this._popup.overlayContent().css("minWidth",t))},_popupShowingHandler:function(){this._dimensionChanged()},_getPopupWidth:function(){var t=this.option("dropDownOptions.width");if(null!==t)return"function"===typeof t?t():t},_dimensionChanged:function(){var t=this._getPopupWidth(),e=this.option("dropDownOptions.minWidth");void 0===t&&this._setPopupOption("width",this._getInputWidth.bind(this)),c.isDefined(e)||this._updatePopupMinWidth(t),this._popup&&this._updatePopupDimensions()},_needPopupRepaint:function(){if(!this._dataSource)return!1;var t=this._dataSource.pageIndex(),e=c.isDefined(this._pageIndex)&&t<=this._pageIndex;return this._pageIndex=t,e},_updatePopupDimensions:function(){this._needPopupRepaint()&&this._popup.repaint(),this._list&&this._list.updateDimensions()},_getMaxHeight:function(){var t=this.$element(),e=this._$customBoundaryContainer,n=t.offset().top-(e?e.offset().top:0),i=o(k).outerHeight(),r=e?Math.min(e.outerHeight(),i):i,a=Math.max(n,r-n-t.outerHeight());return Math.min(.5*r,a)},_clean:function(){this._list&&delete this._list,delete this._isLastMinSearchLengthExceeded,this.callBase()},_dispose:function(){this._clearSearchTimer(),this.callBase()},_setCollectionWidgetOption:function(){this._setListOption.apply(this,arguments)},_setSubmitValue:function(){var t=this.option("value"),e=this._shouldUseDisplayValue(t)?this._displayGetter(t):t;this._getSubmitElement().val(e)},_shouldUseDisplayValue:function(t){return"this"===this.option("valueExpr")&&c.isObject(t)},_optionChanged:function(t){switch(this._dataExpressionOptionChanged(t),t.name){case"hoverStateEnabled":case"focusStateEnabled":this._isDesktopDevice()&&this._setListOption(t.name,t.value),this.callBase(t);break;case"dropDownOptions":"dropDownOptions.width"===t.fullName&&this._dimensionChanged(),this.callBase(t);break;case"items":this.option("dataSource")||this._processDataSourceChanging();break;case"dataSource":this._processDataSourceChanging();break;case"valueExpr":this._renderValue(),this._setListOption("keyExpr",this._getCollectionKeyExpr());break;case"displayExpr":this._renderValue(),this._setListOption("displayExpr",this._displayGetterExpr());break;case"searchMode":this._validateSearchMode();break;case"minSearchLength":this._refreshList();break;case"searchEnabled":case"showDataBeforeSearch":case"searchExpr":this._invalidate();break;case"onContentReady":this._initContentReadyAction();break;case"onSelectionChanged":this._initSelectionChangedAction();break;case"onItemClick":this._initItemClickAction();break;case"grouped":case"groupTemplate":case"wrapItemText":case"noDataText":this._setListOption(t.name);break;case"displayValue":this.option("text",t.value);break;case"itemTemplate":case"searchTimeout":case"popupWidthExtension":break;case"selectedItem":t.previousValue!==t.value&&this._selectionChangedAction({selectedItem:t.value});break;default:this.callBase(t)}}}).include(b,S);l("dxDropDownList",T),t.exports=T},function(t,e,n){"use strict";var i=n(11),o=n(262),r=n(131),a={horizontal:{defaultItemSizeFunc:function(){return this.getElement().width()},getBounds:function(){return[this._maxLeftOffset,this._maxRightOffset]},calcOffsetRatio:function(t){return(i.eventData(t).x-(this._savedEventData&&this._savedEventData.x||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var e=i.eventData(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(e.x-this._tickData.x)>=e.time-this._tickData.time}},vertical:{defaultItemSizeFunc:function(){return this.getElement().height()},getBounds:function(){return[this._maxTopOffset,this._maxBottomOffset]},calcOffsetRatio:function(t){return(i.eventData(t).y-(this._savedEventData&&this._savedEventData.y||0))/this._itemSizeFunc().call(this,t)},isFastSwipe:function(t){var e=i.eventData(t);return this.FAST_SWIPE_SPEED_LIMIT*Math.abs(e.y-this._tickData.y)>=e.time-this._tickData.time}}};r({emitter:o.inherit({TICK_INTERVAL:300,FAST_SWIPE_SPEED_LIMIT:10,ctor:function(t){this.callBase(t),this.direction="horizontal",this.elastic=!0},_getStrategy:function(){return a[this.direction]},_defaultItemSizeFunc:function(){return this._getStrategy().defaultItemSizeFunc.call(this)},_itemSizeFunc:function(){return this.itemSizeFunc||this._defaultItemSizeFunc},_init:function(t){this._tickData=i.eventData(t)},_start:function(t){this._savedEventData=i.eventData(t),(t=this._fireEvent("dxswipestart",t)).cancel||(this._maxLeftOffset=t.maxLeftOffset,this._maxRightOffset=t.maxRightOffset,this._maxTopOffset=t.maxTopOffset,this._maxBottomOffset=t.maxBottomOffset)},_move:function(t){var e=this._getStrategy(),n=i.eventData(t),o=e.calcOffsetRatio.call(this,t);o=this._fitOffset(o,this.elastic),n.time-this._tickData.time>this.TICK_INTERVAL&&(this._tickData=n),this._fireEvent("dxswipe",t,{offset:o}),t.preventDefault()},_end:function(t){var e=this._getStrategy(),n=e.calcOffsetRatio.call(this,t),i=e.isFastSwipe.call(this,t),o=n,r=this._calcTargetOffset(n,i);o=this._fitOffset(o,this.elastic),r=this._fitOffset(r,!1),this._fireEvent("dxswipeend",t,{offset:o,targetOffset:r})},_fitOffset:function(t,e){var n=this._getStrategy().getBounds.call(this);return t<-n[0]?e?(-2*n[0]+t)/3:-n[0]:t>n[1]?e?(2*n[1]+t)/3:n[1]:t},_calcTargetOffset:function(t,e){var n;return e?(n=Math.ceil(Math.abs(t)),t<0&&(n=-n)):n=Math.round(t),n}}),events:["dxswipestart","dxswipe","dxswipeend"]}),e.swipe="dxswipe",e.start="dxswipestart",e.end="dxswipeend"},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4),a=n(2),s=n(70),l=n(17).getPublicElement,u=n(5).each,c=n(29).compileGetter,d=n(0).extend,h=n(47),f=n(25),p=n(264),m=n(58),g=n(12),_=n(79),v=n(18),y=n(683),b=n(42),w=n(11),x=n(36),C=n(10),S=n(116),k=n(103).deviceDependentOptions,I=n(215).default,T=n(73).BindableTemplate,E=n(7).Deferred,O=n(269).default,M=".dx-list-item",P=c("items"),D=I.inherit({_activeStateUnit:[M,".dx-list-select-all"].join(","),_supportedKeys:function(){var t=this,e=function(e){var i=n(e);i.is(t.option("focusedElement"))&&(!function(e,n){var i=e.position().top;"prev"===n&&(i=e.position().top-t.$element().height()+e.outerHeight());t.scrollTo(i)}(i,e),i=n(e)),t.option("focusedElement",l(i)),t.scrollToItem(i)};function n(e){var n=t.scrollTop(),o=t.$element().height(),r=i(t.option("focusedElement")),a=!0;if(!r.length)return i();for(;a;){var s=r[e]();if(!s.length)break;var l=s.position().top+s.outerHeight()/2;(a=l<o+n&&l>n)&&(r=s)}return r}return d(this.callBase(),{leftArrow:r.noop,rightArrow:r.noop,pageUp:function(){return e("prev"),!1},pageDown:function(){return e("next"),!1}})},_getDefaultOptions:function(){return d(this.callBase(),{hoverStateEnabled:!0,pullRefreshEnabled:!1,scrollingEnabled:!0,showScrollbar:"onScroll",useNativeScrolling:!0,bounceEnabled:!0,scrollByContent:!0,scrollByThumb:!1,pullingDownText:g.format("dxList-pullingDownText"),pulledDownText:g.format("dxList-pulledDownText"),refreshingText:g.format("dxList-refreshingText"),pageLoadingText:g.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:g.format("dxList-nextButtonText"),onItemSwipe:null,grouped:!1,onGroupRendered:null,collapsibleGroups:!1,groupTemplate:"group",indicateLoading:!0,activeStateEnabled:!0,_itemAttributes:{role:"option"},_listAttributes:{role:"listbox"},useInkRipple:!1,wrapItemText:!1,showChevronExpr:function(t){return t?t.showChevron:void 0},badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){var t=x.current();return this.callBase().concat(k(),[{device:function(){return!m.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(t){return!m.nativeScrolling&&!v.isSimulator()&&"desktop"===v.real().deviceType&&"generic"===t.platform},options:{showScrollbar:"onHover",pageLoadMode:"nextButton"}},{device:function(){return"desktop"===v.real().deviceType&&!v.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return x.isMaterial(t)},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",pageLoadingText:"",useInkRipple:!0}}])},_visibilityChanged:function(t){t&&this._updateLoadingState(!0)},_itemClass:function(){return"dx-list-item"},_itemDataKey:function(){return"dxListItemData"},_itemContainer:function(){return this._$container},_refreshItemElements:function(){this.option("grouped")?this._itemElementsCache=this._itemContainer().children(".dx-list-group").children(".dx-list-group-body").children(this._itemSelector()):this._itemElementsCache=this._itemContainer().children(this._itemSelector())},_modifyByChanges:function(){this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState()},reorderItem:function(t,e){return this.callBase(t,e).done((function(){this._refreshItemElements()}))},deleteItem:function(t){return this.callBase(t).done((function(){this._refreshItemElements()}))},_itemElements:function(){return this._itemElementsCache},_itemSelectHandler:function(t){"single"===this.option("selectionMode")&&this.isItemSelected(t.currentTarget)||this.callBase(t)},_allowDynamicItemsAppend:function(){return!0},_init:function(){this.callBase(),this._$container=this.$element(),this._initScrollView(),this._feedbackShowTimeout=70,this._createGroupRenderAction()},_scrollBottomMode:function(){return"scrollBottom"===this.option("pageLoadMode")},_nextButtonMode:function(){return"nextButton"===this.option("pageLoadMode")},_dataSourceOptions:function(){var t=this._scrollBottomMode(),e=this._nextButtonMode();return d(this.callBase(),{paginate:r.ensureDefined(t||e,!0)})},_getGroupedOption:function(){return this.option("grouped")},_dataSourceFromUrlLoadMode:function(){return"raw"},_initScrollView:function(){var t=this.option("scrollingEnabled"),e=t&&this.option("pullRefreshEnabled"),n=t&&this._scrollBottomMode()&&!!this._dataSource;this._scrollView=this._createComponent(this.$element(),S,{disabled:this.option("disabled")||!t,onScroll:this._scrollHandler.bind(this),onPullDown:e?this._pullDownHandler.bind(this):null,onReachBottom:n?this._scrollBottomHandler.bind(this):null,showScrollbar:this.option("showScrollbar"),useNative:this.option("useNativeScrolling"),bounceEnabled:this.option("bounceEnabled"),scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),reachBottomText:this.option("pageLoadingText"),useKeyboard:!1}),this._$container=i(this._scrollView.content()),this.option("wrapItemText")&&this._$container.addClass("dx-wrap-item-text"),this._createScrollViewActions()},_createScrollViewActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._pullRefreshAction=this._createActionByOption("onPullRefresh"),this._pageLoadingAction=this._createActionByOption("onPageLoading")},_scrollHandler:function(t){this._scrollAction&&this._scrollAction(t)},_initTemplates:function(){this._templateManager.addDefaultTemplates({group:new T((function(t,e){a.isPlainObject(e)?e.key&&t.text(e.key):t.text(String(e))}),["key"],this.option("integrationOptions.watchMethod"))}),this.callBase()},_prepareDefaultItemTemplate:function(t,e){if(this.callBase(t,e),t.icon){var n=s.getImageContainer(t.icon).addClass("dx-list-item-icon"),o=i("<div>").addClass("dx-list-item-icon-container");o.append(n),e.prepend(o)}},_getBindableFields:function(){return["text","html","icon"]},_updateLoadingState:function(t){var e=!t||this._isLastPage(),n=this._scrollBottomMode(),i=e||!n,o=i&&!this._isDataSourceLoading();i||this._scrollViewIsFull()?(this._scrollView.release(o),this._toggleNextButton(this._shouldRenderNextButton()&&!this._isLastPage()),this._loadIndicationSuppressed(!1)):this._infiniteDataLoading()},_shouldRenderNextButton:function(){return this._nextButtonMode()&&this._dataSource&&this._dataSource.isLoaded()},_dataSourceLoadingChangedHandler:function(t){this._loadIndicationSuppressed()||(t&&this.option("indicateLoading")?this._showLoadingIndicatorTimer=setTimeout(function(){var t=!this._itemElements().length;this._scrollView&&!t&&this._scrollView.startLoading()}.bind(this)):(clearTimeout(this._showLoadingIndicatorTimer),this._scrollView&&this._scrollView.finishLoading()))},_dataSourceChangedHandler:function(t){!this._shouldAppendItems()&&C.hasWindow()&&this._scrollView&&this._scrollView.scrollTo(0),this.callBase.apply(this,arguments)},_refreshContent:function(){this._prepareContent(),this._fireContentReadyAction()},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_loadIndicationSuppressed:function(t){if(!arguments.length)return this._isLoadIndicationSuppressed;this._isLoadIndicationSuppressed=t},_scrollViewIsFull:function(){return!this._scrollView||this._scrollView.isFull()},_pullDownHandler:function(t){this._pullRefreshAction(t),this._dataSource&&!this._isDataSourceLoading()?(this._clearSelectedItems(),this._dataSource.pageIndex(0),this._dataSource.reload()):this._updateLoadingState()},_infiniteDataLoading:function(){!this.$element().is(":visible")||this._scrollViewIsFull()||this._isDataSourceLoading()||this._isLastPage()||(clearTimeout(this._loadNextPageTimer),this._loadNextPageTimer=setTimeout(this._loadNextPage.bind(this)))},_scrollBottomHandler:function(t){this._pageLoadingAction(t),this._isDataSourceLoading()||this._isLastPage()?this._updateLoadingState():this._loadNextPage()},_renderItems:function(t){this.option("grouped")?(u(t,this._renderGroup.bind(this)),this._attachGroupCollapseEvent(),this._renderEmptyMessage(),x.isMaterial()&&this.attachGroupHeaderInkRippleEvents()):this.callBase.apply(this,arguments),this._refreshItemElements(),this._updateLoadingState(!0)},_attachGroupCollapseEvent:function(){var t=w.addNamespace(f.name,this.NAME),e=this.$element(),n=this.option("collapsibleGroups");e.toggleClass("dx-list-collapsible-groups",n),o.off(e,t,".dx-list-group-header"),n&&o.on(e,t,".dx-list-group-header",function(t){this._createAction(function(t){var e=i(t.event.currentTarget).parent();this._collapseGroupHandler(e),this.option("focusStateEnabled")&&this.option("focusedElement",l(e.find(".dx-list-item").eq(0)))}.bind(this),{validatingTargetName:"element"})({event:t})}.bind(this))},_collapseGroupHandler:function(t,e){var n=new E;if(t.hasClass("dx-list-group-collapsed")===e)return n.resolve();var i=t.children(".dx-list-group-body"),o=i.outerHeight(),r=0===o?i.height("auto").outerHeight():0;return t.toggleClass("dx-list-group-collapsed",e),h.animate(i,{type:"custom",from:{height:o},to:{height:r},duration:200,complete:function(){this.updateDimensions(),this._updateLoadingState(),n.resolve()}.bind(this)}),n.promise()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this._initialized&&(this._renderEmptyMessage(),this._updateLoadingState())},_initMarkup:function(){this._itemElementsCache=i(),this.$element().addClass("dx-list"),this.callBase(),this.option("useInkRipple")&&this._renderInkRipple(),this.setAria("role",this.option("_listAttributes").role)},_renderInkRipple:function(){this._inkRipple=_.render()},_toggleActiveState:function(t,e,n){this.callBase.apply(this,arguments);var i=this;if(this._inkRipple){var o={element:t,event:n};e?x.isMaterial()?this._inkRippleTimer=setTimeout((function(){i._inkRipple.showWave(o)}),35):i._inkRipple.showWave(o):(clearTimeout(this._inkRippleTimer),this._inkRipple.hideWave(o))}},_postprocessRenderItem:function(t){this._refreshItemElements(),this.callBase.apply(this,arguments),this.option("onItemSwipe")&&this._attachSwipeEvent(i(t.itemElement))},_attachSwipeEvent:function(t){var e=w.addNamespace(p.end,this.NAME);o.on(t,e,this._itemSwipeEndHandler.bind(this))},_itemSwipeEndHandler:function(t){this._itemDXEventHandler(t,"onItemSwipe",{direction:t.offset<0?"left":"right"})},_nextButtonHandler:function(t){this._pageLoadingAction(t);var e=this._dataSource;e&&!e.isLoading()&&(this._scrollView.toggleLoading(!0),this._$nextButton.detach(),this._loadIndicationSuppressed(!0),this._loadNextPage())},_renderGroup:function(t,e){var n=i("<div>").addClass("dx-list-group").appendTo(this._itemContainer()),o=i("<div>").addClass("dx-list-group-header").appendTo(n),r=this.option("groupTemplate"),a=this._getTemplate(e.template||r,e,t,o),s={index:t,itemData:e,container:l(o)};this._createItemByTemplate(a,s),x.isMaterial()&&i("<div>").addClass("dx-list-group-header-indicator").prependTo(o),this._renderingGroupIndex=t;var c=i("<div>").addClass("dx-list-group-body").appendTo(n);u(P(e)||[],function(t,e){this._renderItem(t,e,c)}.bind(this)),this._groupRenderAction({groupElement:l(n),groupIndex:t,groupData:e})},downInkRippleHandler:function(t){this._toggleActiveState(i(t.currentTarget),!0,t)},upInkRippleHandler:function(t){this._toggleActiveState(i(t.currentTarget),!1)},attachGroupHeaderInkRippleEvents:function(){var t=this.$element();this._downInkRippleHandler=this._downInkRippleHandler||this.downInkRippleHandler.bind(this),this._upInkRippleHandler=this._upInkRippleHandler||this.upInkRippleHandler.bind(this);var e=[t,"dxpointerdown",".dx-list-group-header",this._downInkRippleHandler],n=[t,"dxpointerup dxpointerout",".dx-list-group-header",this._upInkRippleHandler];o.off.apply(o,e),o.on.apply(o,e),o.off.apply(o,n),o.on.apply(o,n)},_createGroupRenderAction:function(){this._groupRenderAction=this._createActionByOption("onGroupRendered")},_clean:function(){clearTimeout(this._inkRippleTimer),this._$nextButton&&(this._$nextButton.remove(),this._$nextButton=null),this.callBase.apply(this,arguments)},_dispose:function(){clearTimeout(this._holdTimer),clearTimeout(this._loadNextPageTimer),clearTimeout(this._showLoadingIndicatorTimer),this.callBase()},_toggleDisabledState:function(t){this.callBase(t),this._scrollView.option("disabled",t||!this.option("scrollingEnabled"))},_toggleNextButton:function(t){var e=this._dataSource,n=this._getNextButton();this.$element().toggleClass("dx-has-next",t),t&&e&&e.isLoaded()&&n.appendTo(this._itemContainer()),t||n.detach()},_getNextButton:function(){return this._$nextButton||(this._$nextButton=this._createNextButton()),this._$nextButton},_createNextButton:function(){var t=i("<div>").addClass("dx-list-next-button"),e=i("<div>").appendTo(t);return this._createComponent(e,b,{text:this.option("nextButtonText"),onClick:this._nextButtonHandler.bind(this),type:x.isMaterial()?"default":void 0,integrationOptions:{}}),t},_moveFocus:function(){this.callBase.apply(this,arguments),this.scrollToItem(this.option("focusedElement"))},_refresh:function(){if(C.hasWindow()){var t=this._scrollView.scrollTop();this.callBase(),t&&this._scrollView.scrollTo(t)}else this.callBase()},_optionChanged:function(t){switch(t.name){case"pageLoadMode":this._toggleNextButton(t.value),this._initScrollView();break;case"dataSource":this.callBase(t),this._initScrollView();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"useNative":case"showScrollbar":case"bounceEnabled":case"scrollByContent":case"scrollByThumb":case"scrollingEnabled":case"pullRefreshEnabled":this._initScrollView(),this._updateLoadingState();break;case"nextButtonText":case"onItemSwipe":case"useInkRipple":this._invalidate();break;case"onScroll":case"onPullRefresh":case"onPageLoading":this._createScrollViewActions(),this._invalidate();break;case"grouped":case"collapsibleGroups":case"groupTemplate":this._invalidate();break;case"wrapItemText":this._$container.toggleClass("dx-wrap-item-text",t.value);break;case"onGroupRendered":this._createGroupRenderAction();break;case"width":case"height":this.callBase(t),this._scrollView.update();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;case"visible":this.callBase(t),this._scrollView.update();break;case"rtlEnabled":this._initScrollView(),this.callBase(t);break;case"showChevronExpr":case"badgeExpr":this._invalidate();break;case"_listAttributes":break;default:this.callBase(t)}},_extendActionArgs:function(t){if(!this.option("grouped"))return this.callBase(t);var e=t.closest(".dx-list-group"),n=e.find(".dx-list-item");return d(this.callBase(t),{itemIndex:{group:e.index(),item:n.index(t)}})},expandGroup:function(t){var e=new E,n=this._itemContainer().find(".dx-list-group").eq(t);return this._collapseGroupHandler(n,!1).done(function(){e.resolveWith(this)}.bind(this)),e.promise()},collapseGroup:function(t){var e=new E,n=this._itemContainer().find(".dx-list-group").eq(t);return this._collapseGroupHandler(n,!0).done(function(){e.resolveWith(this)}.bind(this)),e},updateDimensions:function(){var t=this,e=new E;return t._scrollView?t._scrollView.update().done((function(){!t._scrollViewIsFull()&&t._updateLoadingState(!0),e.resolveWith(t)})):e.resolveWith(t),e.promise()},reload:function(){this.callBase(),this.scrollTo(0),this._pullDownHandler()},repaint:function(){this.scrollTo(0),this.callBase()},scrollTop:function(){return this._scrollView.scrollOffset().top},clientHeight:function(){return this._scrollView.clientHeight()},scrollHeight:function(){return this._scrollView.scrollHeight()},scrollBy:function(t){this._scrollView.scrollBy(t)},scrollTo:function(t){this._scrollView.scrollTo(t)},scrollToItem:function(t){var e=this._editStrategy.getItemElement(t);this._scrollView.scrollToElement(e)}}).include(O);D.ItemClass=y,t.exports=D},function(t,e,n){"use strict";var i=n(3),o=n(18),r=n(10),a=n(12),s=n(8),l=n(17).getPublicElement,u=n(0).extend,c=n(4).noop,d=n(684),h=n(685),f=n(686),p=n(103),m=n(81),g=n(36),_=n(195),v={pullDown:d,swipeDown:h,simulated:f},y=!r.hasWindow(),b={finishLoading:c,release:c,refresh:c,_optionChanged:function(t){if("onUpdated"!==t.name)return this.callBase.apply(this,arguments)}},w=p.inherit(y?b:{_getDefaultOptions:function(){return u(this.callBase(),{pullingDownText:a.format("dxScrollView-pullingDownText"),pulledDownText:a.format("dxScrollView-pulledDownText"),refreshingText:a.format("dxScrollView-refreshingText"),reachBottomText:a.format("dxScrollView-reachBottomText"),onPullDown:null,onReachBottom:null,refreshStrategy:"pullDown"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"android"===o.real().platform},options:{refreshStrategy:"swipeDown"}},{device:function(){return g.isMaterial()},options:{pullingDownText:"",pulledDownText:"",refreshingText:"",reachBottomText:""}}])},_init:function(){this.callBase(),this._loadingIndicatorEnabled=!0},_initScrollableMarkup:function(){this.callBase(),this.$element().addClass("dx-scrollview"),this._initContent(),this._initTopPocket(),this._initBottomPocket(),this._initLoadPanel()},_initContent:function(){var t=i("<div>").addClass("dx-scrollview-content");this._$content.wrapInner(t)},_initTopPocket:function(){var t=this._$topPocket=i("<div>").addClass("dx-scrollview-top-pocket"),e=this._$pullDown=i("<div>").addClass("dx-scrollview-pull-down");t.append(e),this._$content.prepend(t)},_initBottomPocket:function(){var t=this._$bottomPocket=i("<div>").addClass("dx-scrollview-bottom-pocket"),e=this._$reachBottom=i("<div>").addClass("dx-scrollview-scrollbottom"),n=i("<div>").addClass("dx-scrollview-scrollbottom-indicator"),o=new m(i("<div>")).$element(),r=this._$reachBottomText=i("<div>").addClass("dx-scrollview-scrollbottom-text");this._updateReachBottomText(),e.append(n.append(o)).append(r),t.append(e),this._$content.append(t)},_initLoadPanel:function(){var t=i("<div>").addClass("dx-scrollview-loadpanel").appendTo(this.$element()),e={shading:!1,delay:400,message:this.option("refreshingText"),position:{of:this.$element()}};this._loadPanel=this._createComponent(t,_,e)},_updateReachBottomText:function(){this._$reachBottomText.text(this.option("reachBottomText"))},_createStrategy:function(){var t=this.option("useNative")?this.option("refreshStrategy"):"simulated",e=v[t];if(!e)throw Error("E1030",this.option("refreshStrategy"));this._strategy=new e(this),this._strategy.pullDownCallbacks.add(this._pullDownHandler.bind(this)),this._strategy.releaseCallbacks.add(this._releaseHandler.bind(this)),this._strategy.reachBottomCallbacks.add(this._reachBottomHandler.bind(this))},_createActions:function(){this.callBase(),this._pullDownAction=this._createActionByOption("onPullDown"),this._reachBottomAction=this._createActionByOption("onReachBottom"),this._tryRefreshPocketState()},_tryRefreshPocketState:function(){this._pullDownEnable(this.hasActionSubscription("onPullDown")),this._reachBottomEnable(this.hasActionSubscription("onReachBottom"))},on:function(t){var e=this.callBase.apply(this,arguments);return"pullDown"!==t&&"reachBottom"!==t||this._tryRefreshPocketState(),e},_pullDownEnable:function(t){if(0===arguments.length)return this._pullDownEnabled;this._$pullDown&&this._strategy&&(this._$pullDown.toggle(t),this._strategy.pullDownEnable(t),this._pullDownEnabled=t)},_reachBottomEnable:function(t){if(0===arguments.length)return this._reachBottomEnabled;this._$reachBottom&&this._strategy&&(this._$reachBottom.toggle(t),this._strategy.reachBottomEnable(t),this._reachBottomEnabled=t)},_pullDownHandler:function(){this._loadingIndicator(!1),this._pullDownLoading()},_loadingIndicator:function(t){if(arguments.length<1)return this._loadingIndicatorEnabled;this._loadingIndicatorEnabled=t},_pullDownLoading:function(){this.startLoading(),this._pullDownAction()},_reachBottomHandler:function(){this._loadingIndicator(!1),this._reachBottomLoading()},_reachBottomLoading:function(){this.startLoading(),this._reachBottomAction()},_releaseHandler:function(){this.finishLoading(),this._loadingIndicator(!0)},_optionChanged:function(t){switch(t.name){case"onPullDown":case"onReachBottom":this._createActions();break;case"pullingDownText":case"pulledDownText":case"refreshingText":case"refreshStrategy":this._invalidate();break;case"reachBottomText":this._updateReachBottomText();break;default:this.callBase(t)}},isEmpty:function(){return!i(this.content()).children().length},content:function(){return l(this._$content.children().eq(1))},release:function(t){return void 0!==t&&this.toggleLoading(!t),this._strategy.release()},toggleLoading:function(t){this._reachBottomEnable(t)},isFull:function(){return i(this.content()).height()>this._$container.height()},refresh:function(){this.hasActionSubscription("onPullDown")&&(this._strategy.pendingRelease(),this._pullDownLoading())},startLoading:function(){this._loadingIndicator()&&this.$element().is(":visible")&&this._loadPanel.show(),this._lock()},finishLoading:function(){this._loadPanel.hide(),this._unlock()},_dispose:function(){this._strategy.dispose(),this.callBase(),this._loadPanel&&this._loadPanel.$element().remove()}});s("dxScrollView",w),t.exports=w},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=f(n(3)),r=f(n(6)),a=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=h();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),s=n(4),l=n(5),u=f(n(18)),c=f(n(21)),d=f(n(381));function h(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return h=function(){return t},t}function f(t){return t&&t.__esModule?t:{default:t}}var p=c.default.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=t._$container,this._$content=t._$content,this._direction=t.option("direction"),this._useSimulatedScrollbar=t.option("useSimulatedScrollbar"),this._showScrollbar=t.option("showScrollbar"),this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t)},render:function(){this._renderPushBackOffset();var t=u.default.real().platform;this._$element.addClass("dx-scrollable-native").addClass("dx-scrollable-native-"+t).toggleClass("dx-scrollable-scrollbars-hidden",!this._showScrollbar),this._showScrollbar&&this._useSimulatedScrollbar&&this._renderScrollbars()},updateBounds:s.noop,_renderPushBackOffset:function(){var t=this.option("pushBackValue");(t||this._component._lastPushBackValue)&&(this._$content.css({paddingTop:t,paddingBottom:t}),this._component._lastPushBackValue=t)},_renderScrollbars:function(){this._scrollbars={},this._hideScrollbarTimeout=0,this._$element.addClass("dx-scrollable-scrollbar-simulated"),this._renderScrollbar("vertical"),this._renderScrollbar("horizontal")},_renderScrollbar:function(t){this._isDirection(t)&&(this._scrollbars[t]=new d.default((0,o.default)("<div>").appendTo(this._$element),{direction:t,expandable:this._component.option("scrollByThumb")}))},handleInit:s.noop,handleStart:function(){this._disablePushBack=!0},handleMove:function(t){this._isLocked()?t.cancel=!0:this._allowedDirection()&&(t.originalEvent.isScrollingEvent=!0)},handleEnd:function(){this._disablePushBack=!1},handleCancel:s.noop,handleStop:s.noop,_eachScrollbar:function(t){t=t.bind(this),(0,l.each)(this._scrollbars||{},(function(e,n){t(n,e)}))},createActions:function(){this._scrollAction=this._createActionByOption("onScroll"),this._updateAction=this._createActionByOption("onUpdated")},_createActionArgs:function(){var t=this.location(),e=this._$container.get(0);return{event:this._eventForUserAction,scrollOffset:{top:-t.top,left:-t.left},reachedLeft:this._isDirection("horizontal")?t.left>=0:void 0,reachedRight:this._isDirection("horizontal")?Math.abs(t.left)>=e.scrollWidth-e.clientWidth:void 0,reachedTop:this._isDirection("vertical")?t.top>=0:void 0,reachedBottom:this._isDirection("vertical")?Math.abs(t.top)>=e.scrollHeight-e.clientHeight-2*this.option("pushBackValue"):void 0}},handleScroll:function(t){this._isScrollLocationChanged()?(this._eventForUserAction=t,this._moveScrollbars(),this._scrollAction(this._createActionArgs()),this._lastLocation=this.location(),this._pushBackFromBoundary()):t.stopImmediatePropagation()},_pushBackFromBoundary:function(){var t=this.option("pushBackValue");if(t&&!this._disablePushBack){var e=this._containerSize.height-this._contentSize.height,n=this._$container.scrollTop();n?e+n-2*t||this._$container.scrollTop(t-e):this._$container.scrollTop(t)}},_isScrollLocationChanged:function(){var t=this.location(),e=this._lastLocation||{},n=e.top!==t.top,i=e.left!==t.left;return n||i},_moveScrollbars:function(){this._eachScrollbar((function(t){t.moveTo(this.location()),t.option("visible",!0)})),this._hideScrollbars()},_hideScrollbars:function(){clearTimeout(this._hideScrollbarTimeout),this._hideScrollbarTimeout=setTimeout(function(){this._eachScrollbar((function(t){t.option("visible",!1)}))}.bind(this),500)},location:function(){return{left:-this._$container.scrollLeft(),top:this.option("pushBackValue")-this._$container.scrollTop()}},disabledChanged:s.noop,update:function(){this._update(),this._updateAction(this._createActionArgs())},_update:function(){this._updateDimensions(),this._updateScrollbars()},_updateDimensions:function(){this._containerSize={height:this._$container.height(),width:this._$container.width()},this._componentContentSize={height:this._component.$content().height(),width:this._component.$content().width()},this._contentSize={height:this._$content.height(),width:this._$content.width()},this._pushBackFromBoundary()},_updateScrollbars:function(){this._eachScrollbar((function(t,e){var n="vertical"===e?"height":"width";t.option({containerSize:this._containerSize[n],contentSize:this._componentContentSize[n]}),t.update()}))},_allowedDirections:function(){return{vertical:this._isDirection("vertical")&&this._contentSize.height>this._containerSize.height,horizontal:this._isDirection("horizontal")&&this._contentSize.width>this._containerSize.width}},dispose:function(){var t=this._$element.get(0).className,e=new RegExp("dx-scrollable-native\\S*","g");e.test(t)&&this._$element.removeClass(t.match(e).join(" ")),r.default.off(this._$element,".dxNativeScrollable"),r.default.off(this._$container,".dxNativeScrollable"),this._removeScrollbars(),clearTimeout(this._hideScrollbarTimeout)},_removeScrollbars:function(){this._eachScrollbar((function(t){t.$element().remove()}))},scrollBy:function(t){var e=this.location();this._$container.scrollTop(Math.round(-e.top-t.top+this.option("pushBackValue"))),this._$container.scrollLeft(Math.round(-e.left-t.left))},validate:function(t){return!this.option("disabled")&&((!a.isDxMouseWheelEvent(t)||!this._isScrolledInMaxDirection(t))&&!!this._allowedDirection())},_isScrolledInMaxDirection:function(t){var e=this._$container.get(0);return t.delta>0?t.shiftKey?!e.scrollLeft:!e.scrollTop:t.shiftKey?e.clientWidth+e.scrollLeft>=e.scrollWidth:e.clientHeight+e.scrollTop>=e.scrollHeight},getDirection:function(){return this._allowedDirection()},verticalOffset:function(){return this.option("pushBackValue")}});t.exports=p},function(t,e,n){"use strict";var i=n(6),o=n(21),r=o.abstract,a=n(11),s=n(262),l=n(131),u=n(184),c=n(18).real(),d=n(187).compare,h=o.inherit(function(){var t=a.addNamespace("scroll","dxScrollEmitter");return{ctor:function(e){this._element=e,this._locked=!1;var n=this;this._proxiedScroll=function(t){n._scroll(t)},i.on(this._element,t,this._proxiedScroll)},_scroll:r,check:function(t,e){this._locked&&e()},dispose:function(){i.off(this._element,t,this._proxiedScroll)}}}()),f=h.inherit({ctor:function(t,e){this.callBase(t),this._timeout=e},_scroll:function(){this._prepare(),this._forget()},_prepare:function(){this._timer&&this._clearTimer(),this._locked=!0},_clearTimer:function(){clearTimeout(this._timer),this._locked=!1,this._timer=null},_forget:function(){var t=this;this._timer=setTimeout((function(){t._clearTimer()}),this._timeout)},dispose:function(){this.callBase(),this._clearTimer()}}),p=f.inherit({ctor:function(t){this.callBase(t,400),this._lastWheelDirection=null},check:function(t,e){this._checkDirectionChanged(t),this.callBase(t,e)},_checkDirectionChanged:function(t){if(a.isDxMouseWheelEvent(t)){var e=t.shiftKey||!1,n=null!==this._lastWheelDirection&&e!==this._lastWheelDirection;this._lastWheelDirection=e,this._locked=this._locked&&!n}else this._lastWheelDirection=null}}),m=f.inherit({ctor:function(t){this.callBase(t,400)}});!function(){var t=c.ios&&d(c.version,[8])>=0,e=c.android&&d(c.version,[5])>=0;(t||e)&&(m=h.inherit({_scroll:function(){this._locked=!0;var t=this;u.cancelAnimationFrame(this._scrollFrame),this._scrollFrame=u.requestAnimationFrame((function(){t._locked=!1}))},check:function(t,e){u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame);var n=this,i=this.callBase;this._checkFrame=u.requestAnimationFrame((function(){i.call(n,t,e),n._locked=!1}))},dispose:function(){this.callBase(),u.cancelAnimationFrame(this._scrollFrame),u.cancelAnimationFrame(this._checkFrame)}}))}(),l({emitter:s.inherit(function(){var t=Math.round(1e3/60);return{ctor:function(t){this.callBase.apply(this,arguments),this.direction="both",this._pointerLocker=new m(t),this._wheelLocker=new p(t)},validate:function(){return!0},configure:function(t){t.scrollTarget&&(this._pointerLocker.dispose(),this._wheelLocker.dispose(),this._pointerLocker=new m(t.scrollTarget),this._wheelLocker=new p(t.scrollTarget)),this.callBase(t)},_init:function(t){this._wheelLocker.check(t,function(){a.isDxMouseWheelEvent(t)&&this._accept(t)}.bind(this)),this._pointerLocker.check(t,function(){var e=this.isNative&&a.isMouseEvent(t);a.isDxMouseWheelEvent(t)||e||this._accept(t)}.bind(this)),this._fireEvent("dxscrollinit",t),this._prevEventData=a.eventData(t)},move:function(t){this.callBase.apply(this,arguments),t.isScrollingEvent=this.isNative||t.isScrollingEvent},_start:function(t){this._savedEventData=a.eventData(t),this._fireEvent("dxscrollstart",t),this._prevEventData=a.eventData(t)},_move:function(t){var e=a.eventData(t);this._fireEvent("dxscroll",t,{delta:a.eventDelta(this._prevEventData,e)}),a.eventDelta(this._savedEventData,e).time>200&&(this._savedEventData=this._prevEventData),this._prevEventData=a.eventData(t)},_end:function(e){var n=a.eventDelta(this._prevEventData,a.eventData(e)),i={x:0,y:0};if(!a.isDxMouseWheelEvent(e)&&n.time<100){var o=a.eventDelta(this._savedEventData,this._prevEventData),r=t/o.time;i={x:o.x*r,y:o.y*r}}this._fireEvent("dxscrollend",e,{velocity:i})},_stop:function(t){this._fireEvent("dxscrollstop",t)},cancel:function(t){this.callBase.apply(this,arguments),this._fireEvent("dxscrollcancel",t)},dispose:function(){this.callBase.apply(this,arguments),this._pointerLocker.dispose(),this._wheelLocker.dispose()},_clearSelection:function(){if(!this.isNative)return this.callBase.apply(this,arguments)},_toggleGestureCover:function(){if(!this.isNative)return this.callBase.apply(this,arguments)}}}()),events:["dxscrollinit","dxscrollstart","dxscroll","dxscrollend","dxscrollstop","dxscrollcancel"]}),t.exports={init:"dxscrollinit",start:"dxscrollstart",move:"dxscroll",end:"dxscrollend",stop:"dxscrollstop",cancel:"dxscrollcancel"}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2);e.default={_getSpecificDataSourceOption:function(){var t=this.option("dataSource"),e=!1,n={};return this._getGroupedOption()&&function(t){return Array.isArray(t)&&t.every((function(t){return 2===Object.keys(t).length&&("key"in t&&"items"in t)&&Array.isArray(t.items)}))}(t)&&(n=t.reduce((function(t,n){var o=n.items.map((function(t){return(0,i.isObject)(t)||(t={text:t},e=!0),"key"in t||(t.key=n.key),t}));return t.concat(o)}),[]),t={store:{type:"array",data:n},group:{selector:"key",keepInitialKeyOrder:!0}},e&&(t.searchExpr="text")),t}}},function(t,e,n){"use strict";var i=f(n(3)),o=f(n(8)),r=n(0),a=f(n(223)),s=n(17),l=n(10),u=n(24),c=f(n(33)),d=f(n(47)),h=n(7);function f(t){return t&&t.__esModule?t:{default:t}}var p=function(t){return(0,i.default)(t).is(":visible")},m=function(t,e){var n,i;if(t){var o=(null===(n=e.to)||void 0===n?void 0:n.left)||0,r=(null===(i=e.to)||void 0===i?void 0:i.top)||0;t.style.transform="translate(".concat(o,"px,").concat(r,"px)"),t.style.transition=d.default.off?"":"all ".concat(e.duration,"ms ").concat(e.easing)}},g=a.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{clone:!0,filter:"> *",itemOrientation:"vertical",dropFeedbackMode:"push",allowDropInsideItem:!1,allowReordering:!0,moveItemOnDrop:!1,onDragChange:null,onAdd:null,onRemove:null,onReorder:null,onPlaceholderPrepared:null,animation:{type:"slide",duration:300,easing:"ease"},fromIndex:null,toIndex:null,dropInsideItem:!1,itemPoints:null})},reset:function(){this.option({dropInsideItem:!1,toIndex:null,fromIndex:null}),this._$placeholderElement&&this._$placeholderElement.remove(),this._$placeholderElement=null,!this._isIndicateMode()&&this._$modifiedItem&&(this._$modifiedItem.css("marginBottom",this._modifiedItemMargin),this._$modifiedItem=null)},_getPrevVisibleItem:function(t,e){return t.slice(0,e).reverse().filter(p)[0]},_dragStartHandler:function(t){if(this.callBase.apply(this,arguments),!0!==t.cancel){var e=this._getSourceElement();this._updateItemPoints(),this.option("fromIndex",this._getElementIndex(e))}},_dragEnterHandler:function(){if(this.callBase.apply(this,arguments),this!==this._getSourceDraggable()&&(this._updateItemPoints(),this.option("fromIndex",-1),!this._isIndicateMode())){var t=this.option("itemPoints"),e=t[t.length-1];if(e){var n=this.$element(),o=this._getSourceElement(),r=this._isVerticalOrientation(),a=r?o.outerHeight(!0):o.outerWidth(!0),s=n.get(0)[r?"scrollHeight":"scrollWidth"],l=n.get(0)[r?"scrollTop":"scrollLeft"],u=r?"top":"left",c=e[u],d=n.offset()[u],h=d+s-l-c;if(h<a&&r){var f=this._getItems(),p=(0,i.default)(this._getPrevVisibleItem(f));this._$modifiedItem=p,this._modifiedItemMargin=p.get(0).style.marginBottom,p.css("marginBottom",a-h);var m=p.closest(".dx-sortable"),g=m.data("dxScrollable")||m.data("dxScrollView");g&&g.update()}}}},dragEnter:function(){this!==this._getTargetDraggable()&&this.option("toIndex",-1)},dragLeave:function(){this!==this._getTargetDraggable()&&this.option("toIndex",this.option("fromIndex"))},_isInsideTargetDraggable:function(t){var e=this._getTargetDraggable().$element(),n=this._getScrollable(e);if(n){var i=n.offset(),o=i.top+n.height()>=t.pageY&&i.top<=t.pageY,r=i.left+n.width()>=t.pageX&&i.left<=t.pageX;return o&&r}return!0},dragEnd:function(t){var e,n,i=this._getSourceElement(),o=this._getSourceDraggable(),r=o.NAME!==this.NAME,a=this.option("toIndex"),s=this._isInsideTargetDraggable(t.event);if(null!==a&&a>=0&&s&&(o!==this&&((e=this._fireAddEvent(t))||(n=this._fireRemoveEvent(t))),r&&c.default.resetPosition(i),this.option("moveItemOnDrop")&&!e&&this._moveItem(i,a,n),o===this))return this._fireReorderEvent(t);return(new h.Deferred).resolve()},dragMove:function(t){var e=this.option("itemPoints");if(e){for(var n,i=this._isVerticalOrientation(),o=i?"top":"left",r=i?t.pageY:t.pageX,a=this.option("rtlEnabled"),s=e.length-1;s>=0;s--){var l=e[s+1]&&(e[s][o]+e[s+1][o])/2;if(!(!i&&a?r>l:l>r)&&void 0!==l)break;n=e[s]}n&&(this._updatePlaceholderPosition(t,n),this._verticalScrollHelper.isScrolling()&&this._isIndicateMode()&&this._movePlaceholder())}},_isIndicateMode:function(){return"indicate"===this.option("dropFeedbackMode")||this.option("allowDropInsideItem")},_createPlaceholder:function(){var t;return this._isIndicateMode()&&(t=(0,i.default)("<div>").addClass(this._addWidgetPrefix("placeholder")).insertBefore(this._getSourceDraggable()._$dragElement)),this._$placeholderElement=t,t},_getItems:function(){var t=this._getItemsSelector();return this._$content().find(t).not("."+this._addWidgetPrefix("placeholder")).not("."+this._addWidgetPrefix("clone")).toArray()},_allowReordering:function(){return this._getSourceDraggable()!==this._getTargetDraggable()||this.option("allowReordering")},_isValidPoint:function(t,e,n){var i=this.option("allowDropInsideItem");return!!(n||this._allowReordering()||0===t&&i)&&(!this._isIndicateMode()||(-1===e||t!==e&&(n||t!==e+1)))},_getItemPoints:function(){var t,e,n,o=[],a=this.option("rtlEnabled"),s=this._isVerticalOrientation(),l=this._getItems(),u=l.filter(p),c=u.length,d=this._getDraggableElement(),h=u.indexOf(d.get(0));if(c){for(var f=0;f<=c;f++){var m=!s&&a^f===c,g=s&&f===c;f<c&&(e=(t=(0,i.default)(u[f])).offset(),n=t.outerWidth()),o.push({dropInsideItem:!1,left:e.left+(m?n:0),top:e.top+(g?o[f-1].height:0),index:f===c?l.length:l.indexOf(t.get(0)),$item:t,width:t.outerWidth(),height:t.outerHeight(),isValid:this._isValidPoint(f,h)})}if(this.option("allowDropInsideItem")){var _=o;o=[];for(var v=0;v<_.length;v++)o.push(_[v]),_[v+1]&&o.push((0,r.extend)({},_[v],{dropInsideItem:!0,top:Math.floor((_[v].top+_[v+1].top)/2),left:Math.floor((_[v].left+_[v+1].left)/2),isValid:this._isValidPoint(v,h,!0)}))}}else o.push({dropInsideItem:!1,index:0,isValid:!0});return o},_updateItemPoints:function(){this.option("itemPoints",this._getItemPoints())},_getElementIndex:function(t){return this._getItems().indexOf(t.get(0))},_getDragTemplateArgs:function(t){var e=this.callBase.apply(this,arguments);return e.model.fromIndex=this._getElementIndex(t),e},_togglePlaceholder:function(t){this._$placeholderElement&&this._$placeholderElement.toggle(t)},_isVerticalOrientation:function(){return"vertical"===this.option("itemOrientation")},_normalizeToIndex:function(t,e){var n=this._getSourceDraggable()!==this._getTargetDraggable(),i=this.option("fromIndex");return null===t?i:Math.max(n||i>=t||e?t:t-1,0)},_updatePlaceholderPosition:function(t,e){var n=this._getSourceDraggable(),i=this._normalizeToIndex(e.index,e.dropInsideItem),o=(0,r.extend)(this._getEventArgs(t),{toIndex:i,dropInsideItem:e.dropInsideItem});e.isValid&&this._getAction("onDragChange")(o),!o.cancel&&e.isValid?(this.option({dropInsideItem:e.dropInsideItem,toIndex:e.index}),this._getAction("onPlaceholderPrepared")((0,r.extend)(this._getEventArgs(t),{placeholderElement:(0,s.getPublicElement)(this._$placeholderElement),dragElement:(0,s.getPublicElement)(n._$dragElement)})),this._updateItemPoints()):e.isValid||this.option({dropInsideItem:!1,toIndex:null})},_makeWidthCorrection:function(t,e){if(this._$scrollable=this._getScrollable(t),this._$scrollable&&this._$scrollable.width()<e){var n=this._$scrollable.width(),i=t.offset().left-this._$scrollable.offset().left,o=n-t.outerWidth()-i;e=i>0?n-i:o>0?n-o:n}return e},_updatePlaceholderSizes:function(t,e){var n=this.option("dropInsideItem"),o=e?(0,i.default)(e):this._getSourceElement(),r=this._isVerticalOrientation(),a="",s="";t.toggleClass(this._addWidgetPrefix("placeholder-inside"),n),(r||n)&&(a=o.outerWidth()),r&&!n||(s=o.outerHeight()),a=this._makeWidthCorrection(o,a),t.css({width:a,height:s})},_moveItem:function(t,e,n){var i,o=this._getItems(),r=o[e],a=this._getSourceDraggable();n&&(t=t.clone(),a._toggleDragSourceClass(!1,t)),r||(i=o[e-1]),this._moveItemCore(t,r,i)},_moveItemCore:function(t,e,n){e||n?n?t.insertAfter((0,i.default)(n)):t.insertBefore((0,i.default)(e)):t.appendTo(this.$element())},_getDragStartArgs:function(t,e){return(0,r.extend)(this.callBase.apply(this,arguments),{fromIndex:this._getElementIndex(e)})},_getEventArgs:function(t){var e=this._getSourceDraggable(),n=this._getTargetDraggable(),i=n.option("dropInsideItem");return(0,r.extend)(this.callBase.apply(this,arguments),{fromIndex:e.option("fromIndex"),toIndex:this._normalizeToIndex(n.option("toIndex"),i),dropInsideItem:i})},_optionChanged:function(t){var e=this,n=t.name;switch(n){case"onDragChange":case"onPlaceholderPrepared":case"onAdd":case"onRemove":case"onReorder":this["_"+n+"Action"]=this._createActionByOption(n);break;case"itemOrientation":case"allowDropInsideItem":case"moveItemOnDrop":case"dropFeedbackMode":case"itemPoints":case"animation":case"allowReordering":break;case"fromIndex":this._$sourceElement||[!1,!0].forEach((function(n){var o=n?t.value:t.previousValue;if(null!==o){var r=(0,i.default)(e._getItems()[o]);e._toggleDragSourceClass(n,r)}}));break;case"dropInsideItem":this._optionChangedDropInsideItem(t);break;case"toIndex":this._optionChangedToIndex(t);break;default:this.callBase(t)}},_optionChangedDropInsideItem:function(){this._isIndicateMode()&&this._$placeholderElement&&this._movePlaceholder()},_isPositionVisible:function(t){var e,n=this.$element();if("hidden"!==n.css("overflow")?e=n.get(0):n.parents().each((function(){if("visible"!==(0,i.default)(this).css("overflow"))return e=this,!1})),e){var o=(0,u.getBoundingRect)(e),r=this._isVerticalOrientation(),a=r?"top":"left",s=r?"bottom":"right",c=(0,l.getWindow)(),d=r?c.pageYOffset:c.pageXOffset;if(t[a]<o[a]+d||t[a]>o[s]+d)return!1}return!0},_optionChangedToIndex:function(t){var e=t.value;if(this._isIndicateMode()){var n=null!==e&&e>=0;this._togglePlaceholder(n),n&&this._movePlaceholder()}else this._moveItems(t.previousValue,t.value)},_makeLeftCorrection:function(t,e){var n=this._$scrollable;return n&&this._isVerticalOrientation()&&n.scrollLeft()>e&&(t+=n.scrollLeft()-e),t},_movePlaceholder:function(){var t=this._$placeholderElement||this._createPlaceholder(),e=this._getItems(),n=this.option("toIndex"),o=e[n],r=this._isVerticalOrientation(),a=this.option("rtlEnabled"),s=this.option("dropInsideItem"),l=null,u=0;if(this._updatePlaceholderSizes(t,o),o){var c=(0,i.default)(o);l=c.offset(),u=parseFloat(c.css("marginLeft")),r||!a||s||(l.left+=c.outerWidth(!0))}else{var d=this._getPrevVisibleItem(e,n);d&&(l=(0,i.default)(d).offset(),r?l.top+=(0,i.default)(d).outerHeight(!0):a||(l.left+=(0,i.default)(d).outerWidth(!0)))}l&&!this._isPositionVisible(l)&&(l=null),l&&(l.left=this._makeLeftCorrection(l.left,u),this._move(l,t)),t.toggle(!!l)},_getPositions:function(t,e,n,i){for(var o=[],r=0;r<t.length;r++){var a=0;null!==i&&null!==n?(-1===n?r>=i&&(a=e):-1===i?r>n&&(a=-e):n<i?r>n&&r<i&&(a=-e):n>i&&r>=i&&r<n&&(a=e),o.push(a)):o.push(a)}return o},_moveItems:function(t,e){for(var n,i,o,a,s=this.option("fromIndex"),l=this._isVerticalOrientation(),u=l?"top":"left",c=this._getDraggableElement(),d=l?(c.outerHeight()+c.outerHeight(!0))/2:(c.outerWidth()+c.outerWidth(!0))/2,h=this._getItems(),f=this._getPositions(h,d,s,t),p=this._getPositions(h,d,s,e),g=this.option("animation"),_=this.option("rtlEnabled"),v=0;v<h.length;v++){var y=h[v],b=f[v],w=p[v];null===e||null===s?(a=y)&&(a.style.transform="",a.style.transition=""):b!==w&&m(y,(0,r.extend)({},g,{to:(n={},i=u,o=!l&&_?-w:w,i in n?Object.defineProperty(n,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[i]=o,n)}))}},_toggleDragSourceClass:function(t,e){var n=e||this._$sourceElement;this.callBase.apply(this,arguments),this._isIndicateMode()||n&&n.toggleClass(this._addWidgetPrefix("source-hidden"),t)},_dispose:function(){this.reset(),this.callBase()},_fireAddEvent:function(t){var e=this._getEventArgs(t);return this._getAction("onAdd")(e),e.cancel},_fireRemoveEvent:function(t){var e=this._getSourceDraggable(),n=this._getEventArgs(t);return e._getAction("onRemove")(n),n.cancel},_fireReorderEvent:function(t){var e=this._getEventArgs(t);return this._getAction("onReorder")(e),e.promise||(new h.Deferred).resolve()}});(0,o.default)("dxSortable",g),t.exports=g,t.exports.default=t.exports},function(t,e,n){"use strict";var i=u(n(3)),o=n(0),r=u(n(12)),a=u(n(102)),s=u(n(23)),l=n(7);function u(t){return t&&t.__esModule?t:{default:t}}t.exports={_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{searchMode:"",searchExpr:null,searchValue:"",searchEnabled:!1,searchEditorOptions:{}})},_initMarkup:function(){this._renderSearch(),this.callBase()},_renderSearch:function(){var t=this.$element(),e=this.option("searchEnabled"),n=this._addWidgetPrefix("search"),o=this._addWidgetPrefix("with-search");if(!e)return t.removeClass(o),void this._removeSearchBox();var r=this._getSearchEditorOptions();this._searchEditor?this._searchEditor.option(r):(t.addClass(o),this._$searchEditorElement=(0,i.default)("<div>").addClass(n).prependTo(t),this._searchEditor=this._createComponent(this._$searchEditorElement,a.default,r))},_removeSearchBox:function(){this._$searchEditorElement&&this._$searchEditorElement.remove(),delete this._$searchEditorElement,delete this._searchEditor},_getSearchEditorOptions:function(){var t=this,e=t.option("searchEditorOptions"),n=r.default.format("Search");return(0,o.extend)({mode:"search",placeholder:n,tabIndex:t.option("tabIndex"),value:t.option("searchValue"),valueChangeEvent:"input",inputAttr:{"aria-label":n},onValueChanged:function(e){var n=t.option("searchTimeout");t._valueChangeDeferred=new l.Deferred,clearTimeout(t._valueChangeTimeout),t._valueChangeDeferred.done(function(){this.option("searchValue",e.value)}.bind(t)),e.event&&"input"===e.event.type&&n?t._valueChangeTimeout=setTimeout((function(){t._valueChangeDeferred.resolve()}),n):t._valueChangeDeferred.resolve()}},e)},_getAriaTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.$element()},_focusTarget:function(){return this.option("searchEnabled")?this._itemContainer(!0):this.callBase()},_updateFocusState:function(t,e){this.option("searchEnabled")&&this._toggleFocusClass(e,this.$element()),this.callBase(t,e)},getOperationBySearchMode:function(t){return"equals"===t?"=":t},_cleanAria:function(t){this.setAria({role:null,activedescendant:null},t),t.attr("tabIndex",null)},_optionChanged:function(t){switch(t.name){case"searchEnabled":case"searchEditorOptions":this._cleanAria(this.option("searchEnabled")?this.$element():this._itemContainer()),this._invalidate();break;case"searchExpr":case"searchMode":case"searchValue":if(!this._dataSource)return void s.default.log("W1009");"searchMode"===t.name?this._dataSource.searchOperation(this.getOperationBySearchMode(t.value)):this._dataSource[t.name](t.value),this._dataSource.load();break;case"searchTimeout":break;default:this.callBase(t)}},focus:function(){this.option("focusedElement")||!this.option("searchEnabled")?this.callBase():this._searchEditor&&this._searchEditor.focus()},_refresh:function(){this._valueChangeDeferred&&this._valueChangeDeferred.resolve(),this.callBase()}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(129),r=n(29),a=n(4),s=n(2),l=n(0).extend,u=n(99),c=n(92),d=n(107),h=n(7).Deferred,f=l({},u,{_dataExpressionDefaultOptions:function(){return{items:[],dataSource:null,itemTemplate:"item",value:null,valueExpr:"this",displayExpr:void 0}},_initDataExpressions:function(){this._compileValueGetter(),this._compileDisplayGetter(),this._initDynamicTemplates(),this._initDataSource(),this._itemsToDataSource()},_itemsToDataSource:function(){this.option("dataSource")||(this._dataSource=new c.DataSource({store:new d(this.option("items")),pageSize:0}))},_compileDisplayGetter:function(){this._displayGetter=r.compileGetter(this._displayGetterExpr())},_displayGetterExpr:function(){return this.option("displayExpr")},_compileValueGetter:function(){this._valueGetter=r.compileGetter(this._valueGetterExpr())},_valueGetterExpr:function(){return this.option("valueExpr")||"this"},_loadValue:function(t){var e=new h;return t=this._unwrappedValue(t),s.isDefined(t)?(this._loadSingle(this._valueGetterExpr(),t).done(function(n){this._isValueEquals(this._valueGetter(n),t)?e.resolve(n):e.reject()}.bind(this)).fail((function(){e.reject()})),e.promise()):e.reject().promise()},_getCurrentValue:function(){return this.option("value")},_unwrappedValue:function(t){return(t=s.isDefined(t)?t:this._getCurrentValue())&&this._dataSource&&"this"===this._valueGetterExpr()&&(t=this._getItemKey(t)),o.unwrap(t)},_getItemKey:function(t){var e=this._dataSource.key();if(Array.isArray(e)){for(var n={},o=0,r=e.length;o<r;o++)n[e[o]]=t[e[o]];return n}return e&&"object"===i(t)&&(t=t[e]),t},_isValueEquals:function(t,e){var n=this._dataSource&&this._dataSource.key(),i=s.isDefined,o=this._compareValues(t,e);return!o&&n&&i(t)&&i(e)&&(o=Array.isArray(n)?this._compareByCompositeKey(t,e,n):this._compareByKey(t,e,n)),o},_compareByCompositeKey:function(t,e,n){var i=s.isObject;if(!i(t)||!i(e))return!1;for(var o=0,r=n.length;o<r;o++)if(t[n[o]]!==e[n[o]])return!1;return!0},_compareByKey:function(t,e,n){var i=a.ensureDefined,r=o.unwrap,s=i(r(t[n]),t),l=i(r(e[n]),e);return this._compareValues(s,l)},_compareValues:function(t,e){return r.toComparable(t,!0)===r.toComparable(e,!0)},_initDynamicTemplates:a.noop,_setCollectionWidgetItemTemplate:function(){this._initDynamicTemplates(),this._setCollectionWidgetOption("itemTemplate",this.option("itemTemplate"))},_getCollectionKeyExpr:function(){var t=this.option("valueExpr");return s.isString(t)&&"this"!==t||s.isFunction(t)?t:null},_dataExpressionOptionChanged:function(t){switch(t.name){case"items":this._itemsToDataSource(),this._setCollectionWidgetOption("items");break;case"dataSource":this._initDataSource();break;case"itemTemplate":this._setCollectionWidgetItemTemplate();break;case"valueExpr":this._compileValueGetter();break;case"displayExpr":this._compileDisplayGetter(),this._initDynamicTemplates(),this._setCollectionWidgetOption("displayExpr")}}});t.exports=f},function(t,e,n){"use strict";var i=n(21),o=n(0).extend,r=n(2),a=n(5).each,s=n(693),l=r.isString,u=n(13).parseScalar,c=n(82),d=c.getTheme,h=c.addCacheItem,f=c.removeCacheItem,p=o,m=a;function g(t,e){var n=t;return e&&m(e.split("."),(function(t,e){return n=n[e]})),n}n(694),n(695),n(696),n(697),n(698),n(699),n(700),n(701),n(702),n(703),e.BaseThemeManager=i.inherit({ctor:function(t){this._themeSection=t.themeSection,this._fontFields=t.fontFields||[],h(this)},dispose:function(){return f(this),this._callback=this._theme=this._font=null,this},setCallback:function(t){return this._callback=t,this},setTheme:function(t,e){return this._current=t,this._rtl=e,this.refresh()},refresh:function(){var t=this._current||{},e=d(t.name||t);return this._themeName=e.name,this._defaultPalette=e.defaultPalette,this._font=p({},e.font,t.font),this._themeSection&&m(this._themeSection.split("."),(function(t,n){e=p(!0,{},e[n])})),this._theme=p(!0,{},e,l(t)?{}:t),this._initializeTheme(),u(this._rtl,this._theme.rtlEnabled)&&p(!0,this._theme,this._theme._rtl),this._callback(),this},theme:function(t){return g(this._theme,t)},themeName:function(){return this._themeName},createPalette:function(t,e){return s.createPalette(t,e,this._defaultPalette)},createDiscretePalette:function(t,e){return s.getDiscretePalette(t,e,this._defaultPalette)},createGradientPalette:function(t){return s.getGradientPalette(t,this._defaultPalette)},getAccentColor:function(t){return s.getAccentColor(t,this._defaultPalette)},_initializeTheme:function(){var t=this;m(t._fontFields||[],(function(e,n){t._initializeFont(g(t._theme,n))}))},_initializeFont:function(t){p(t,this._font,p({},t))}})},function(t,e,n){"use strict";var i=f(n(3)),o=f(n(15)),r=f(n(10)),a=f(n(113)),s=f(n(6)),l=f(n(31)),u=n(275),c=f(n(705)),d=n(13),h=n(2);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var g=r.default.getWindow(),_=Math.max,v=Math.min,y=Math.floor,b=Math.round,w=Math.sin,x=Math.cos,C=Math.abs,S=Math.PI,k=S/180,I={"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,widows:!0,"z-index":!0,zoom:!0},T="none",E=Object.create?function(t){return Object.create(t)}:function(t){var e=function(){};return e.prototype=t,new e},O={scaleX:1,scaleY:1,"pointer-events":null},M=(0,a.default)((function(){var t=o.default.createElement("div");return t.style.left="-9999px",t.style.position="absolute",{backupContainer:t,backupCounter:0}}));var P=function(){var t=1;return function(){return"DevExpress_"+t++}}();function D(t){return t&&"string"!==typeof t}function A(t){return o.default.createElementNS("http://www.w3.org/2000/svg",t)}function R(t,e){return null!==t?"url("+(e?g.location.href.split("#")[0]:"")+"#"+t+")":t}function B(t,e){var n;for(n in e)t[n]=e[n];return t}function N(t,e){return t=t.toString().split("e"),+((t=(t=b(+(t[0]+"e"+(t[1]?+t[1]+e:e)))).toString().split("e"))[0]+"e"+(t[1]?+t[1]-e:-e))}t.exports.getFuncIri=R;var L={full:T,lefttop:"xMinYMin",leftcenter:"xMinYMid",leftbottom:"xMinYMax",centertop:"xMidYMin",center:"xMidYMid",centerbottom:"xMidYMax",righttop:"xMaxYMin",rightcenter:"xMaxYMid",rightbottom:"xMaxYMax"};function F(t,e){return e.hatching&&"none"!==(0,d.normalizeEnum)(e.hatching.direction)?((e=B({},e)).fill=t._hatching=t.renderer.lockHatching(e.fill,e.hatching,t._hatching),delete e.hatching):t._hatching&&(t.renderer.releaseHatching(t._hatching),t._hatching=null),e}t.exports.processHatchingAttrs=F;var V=function(t,e,n,i,o,r,a,s,l,u){return["M",(t+i*o).toFixed(5),(e-i*r).toFixed(5),"A",i.toFixed(5),i.toFixed(5),0,u,0,(t+i*a).toFixed(5),(e-i*s).toFixed(5),l?"M":"L",(t+n*a).toFixed(5),(e-n*s).toFixed(5),"A",n.toFixed(5),n.toFixed(5),0,u,1,(t+n*o).toFixed(5),(e-n*r).toFixed(5),"Z"].join(" ")};function z(t,e){var n=[["M",0,0]];switch(e){case"line":n=j(t);break;case"area":n=j(t,!0);break;case"bezier":n=H(t);break;case"bezierarea":n=H(t,!0)}return n}function j(t,e){return W(t,U,e)}function H(t,e){return W(t,G,e)}function W(t,e,n){var i,o,r,a=[];if(null===(i=t[0])||void 0===i?void 0:i.length)for(o=0,r=t.length;o<r;++o)e(t[o],n,a);else e(t,n,a);return a}function U(t,e,n){var i=0,o=n.length,r=o,a=(t||[]).length;if(a){if(void 0!==t[0].x)for(;i<a;)n[r++]=["L",t[i].x,t[i++].y];else for(;i<a;)n[r++]=["L",t[i++],t[i++]];n[o][0]="M"}else n[r]=["M",0,0];return e&&n.push(["Z"]),n}function G(t,e,n){var i,o=n.length,r=(t||[]).length;if(r)if(void 0!==t[0].x)for(n[o++]=["M",t[0].x,t[0].y],i=1;i<r;)n[o++]=["C",t[i].x,t[i++].y,t[i].x,t[i++].y,t[i].x,t[i++].y];else for(n[o++]=["M",t[0],t[1]],i=2;i<r;)n[o++]=["C",t[i++],t[i++],t[i++],t[i++],t[i++],t[i++]];else n[o]=["M",0,0];return e&&n.push(["Z"]),n}function K(t,e){var n=t[t.length-2],i=t[t.length-1];switch(e){case"line":case"area":t[0]="L";break;case"bezier":case"bezierarea":t[0]="C",t[1]=t[3]=t[5]=n,t[2]=t[4]=t[6]=i}}function q(t,e,n){var i=t[t.length-1].slice(),o=t.length;for(K(i,n);o<e.length;o++)t[o]=i.slice(0)}function $(t,e,n){var i,o,r,a,s=t.length,l=e.length;if((s-1)%2===0&&(l-1)%2===0){i=(s-1)/2-1,r=(o=t.slice(0,i+1))[o.length-1].slice(0),a=t.slice(i+1)[0].slice(0),K(r,n),K(a,n);for(var u=i;u<(l-1)/2-1;u++)t.splice(u+1,0,r),t.splice(u+3,0,a)}}function Y(t,e){var n,i,o=t._styles,r="";for(n in e=e||{})i=e[n],(0,h.isDefined)(i)&&(i+="number"!==typeof i||I[n]?"":"px",o[n]=""!==i?i:null);for(n in o)(i=o[n])&&(r+=n+":"+i+";");return r&&t.element.setAttribute("style",r),t}function Z(t,e){var n=t.element,i=t.attr(e);i&&-1!==i.indexOf("DevExpress")&&(n.removeAttribute(e),n.setAttribute(e,R(i,t.renderer.pathModified)))}function X(t,e){e=e||{};var n,i,o,r,a,s,l=t._settings,u={},c=t.element,h=t.renderer,f=h.rtl;if(!D(e))return e in l?l[e]:e in O?O[e]:0;for(n in B(u,e),u)if(void 0!==(i=u[n])){if(l[n]=i,"align"===n)n="text-anchor",i={left:f?"end":"start",center:"middle",right:f?"start":"end"}[i]||null;else{if("dashStyle"===n){r=!0;continue}if("stroke-width"===n)r=!0;else if(!i||"fill"!==n&&"clip-path"!==n&&"filter"!==n||0!==i.indexOf("DevExpress")){if(/^(translate(X|Y)|rotate[XY]?|scale(X|Y)|sharp|sharpDirection)$/i.test(n)){o=!0;continue}/^(x|y|d)$/i.test(n)&&(o=!0)}else t._addFixIRICallback(),i=R(i,h.pathModified)}null===i?c.removeAttribute(n):c.setAttribute(n,i)}if(r&&"dashStyle"in l)if(i=l.dashStyle,a=("_originalSW"in t?t._originalSW:l["stroke-width"])||1,n="stroke-dasharray",""===(i=null===i?"":(0,d.normalizeEnum)(i))||"solid"===i||i===T)t.element.removeAttribute(n);else{for(s=(i=i.replace(/longdash/g,"8,3,").replace(/dash/g,"4,3,").replace(/dot/g,"1,3,").replace(/,$/,"").split(",")).length;s--;)i[s]=parseInt(i[s])*a;t.element.setAttribute(n,i.join(","))}return o&&t._applyTransformation(),t}function J(t,e,n){var i,r,a;for(i=0,r=t.length;i<r;++i)(a=t[i])[n]=A("tspan"),a[n].appendChild(o.default.createTextNode(a.value)),a.style&&Y({element:a[n],_styles:{}},a.style),a.className&&a[n].setAttribute("class",a.className),e.appendChild(a[n])}function Q(){this._hasEllipsis&&this.attr({text:this._settings.text})}function tt(t){var e;return t&&((e=t.cloneNode()).removeAttribute("y"),e.removeAttribute("x")),e||t}function et(t){for(var e=o.default.querySelectorAll(t,"title"),n=0;n<e.length;n++)t.removeChild(e[n]);return function(){for(var n=0;n<e.length;n++)t.appendChild(e[n])}}function nt(t,e,n,i){var o,r;if(n<=e&&i>e)for(o=1,r=t.value.length;o<=r;++o)if(n+t.tspan.getSubStringLength(0,o)>e)return o-1}function it(t){return t.value.length?t.tspan.getSubStringLength(0,t.value.length):0}function ot(t,e){return e.hideOverflowEllipsis&&0===t?"":"..."}function rt(t,e,n){var i=ot(e,n);if(t.value.length&&t.tspan.parentNode)for(var o=t.value.length-1;o>=1;o--){if(t.startBox+t.tspan.getSubStringLength(0,o)<e){lt(t,o,i);break}1===o&<(t,0,i)}}function at(t,e,n,i,o){var r=n.textOverflow;if(!isFinite(i)||0===Number(i)||"none"===r)return t;var a=t.reduce((function(t,a,s,l){var u=p(t,2),c=u[0],d=u[1];if((d+=function(t,e){return t.parts.reduce((function(t,n){return _(t,dt(n,e))}),0)}(a,o))<i)c.push(a);else if(a.parts.forEach((function(t){ut(t)})),"ellipsis"===r){var h=l[s-1];if(h){var f=h.parts[h.parts.length-1];f.hasEllipsis||(0===e||f.endBox<e?lt(f,f.value.length,ot(e,n)):rt(f,e,n))}}return[c,d]}),[[],0]);return"hide"===r&&a[1]>i?(a[0].forEach((function(t){t.parts.forEach((function(t){ut(t)}))})),[]):a[0]}function st(t,e,n,i,o){if(!e){var r={value:t.textContent,height:0,line:0};t.textContent="",J([r],t,"tspan"),e=[r]}return e.reduce((function(t,e){var r=p(t,5),a=r[0],s=r[1],l=r[2],u=r[3],c=r[4],d=a[a.length-1];if(u)return[a,s,l,u];if(d&&e.line===c){if(e.startBox=s,s>i&&"none"===o.wordWrap&&"ellipsis"===o.textOverflow)return ut(e),[a,s,l,u,c];d.parts.push(e),d.commonLength+=e.value.length}else e.startBox=s=0,a.push({commonLength:e.value.length,parts:[e]});if(e.endBox=l=s+it(e),s=l,(0,h.isDefined)(n)&&l>n){var f=function t(e,n,i,o){var r,a=e.value;"none"!==o.wordWrap&&(r="normal"===o.wordWrap?function(t,e){for(var n=t.startBox>0?[0]:[],i=t.value.split("").reduce((function(t,e,n){return" "===e&&t.push(n),t}),n),o=0;void 0!==i[o+1]&&t.startBox+t.tspan.getSubStringLength(0,i[o+1])<e;)o++;return i[o]}(e,n):function(t,e){for(var n=0;n<t.value.length-1;n++)if(t.startBox+t.tspan.getSubStringLength(0,n+1)>e)return n}(e,n));var s,l=[];if(isFinite(r)){lt(e,r,"");var u=" "===a[r]?1:0,c=a.slice(r+u);if(c.length){var d=tt(e.tspan);if(d.textContent=c,e.tspan.parentNode.appendChild(d),(s=B(B({},e),{value:c,startBox:0,height:0,tspan:d,stroke:tt(e.stroke),endBox:d.getSubStringLength(0,c.length)})).stroke&&(s.stroke.textContent=c),s.endBox>n&&!(l=t(s,n,i,o)).length)return[]}}if(e.value.length){if("ellipsis"===o.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>n&&rt(e,i,o),"hide"===o.textOverflow&&e.tspan.getSubStringLength(0,e.value.length)>n)return[]}else e.tspan.parentNode.removeChild(e.tspan);var h=[];return s&&h.push(s),[{commonLength:a.length,parts:h}].concat(l)}(e,n,i,o);f.length?a=a.concat(f.filter((function(t){return t.parts.length>0}))):(a=[],u=!0)}return[a,s,l,u,e.line]}),[[],0,0,!1,0])[0]}function lt(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",i=t.value.substr(0,e)+n;t.value=t.tspan.textContent=i,t.stroke&&(t.stroke.textContent=i),"..."===n&&(t.hasEllipsis=!0)}function ut(t){t.tspan.parentNode&&t.tspan.parentNode.removeChild(t.tspan),t.stroke&&t.stroke.parentNode&&t.stroke.parentNode.removeChild(t.stroke)}function ct(t,e,n){t.tspan.setAttribute(e,n),t.stroke&&t.stroke.setAttribute(e,n)}function dt(t,e){return t.inherits?ft(t.height,e):t.height||e}function ht(t){if(t._texts){var e,n,i=t._texts,o=t._settings.x,r=t._getLineHeight(),a=i[0];for(ct(a,"x",o),ct(a,"y",t._settings.y),e=1,n=i.length;e<n;++e){if(a=i[e],parseFloat(a.height)>=0)ct(a,"x",o),ct(a,"dy",dt(a,r))}}}function ft(t,e){var n=parseFloat(t),i=parseFloat(e),o=n||12,r=i||12;return o>r?isNaN(n)?o:t:isNaN(i)?r:e}function pt(t,e,n,i){var o,r;n=n||{};var a=t.renderer,s=t._settings,l={},u={translateX:0,translateY:0,scaleX:1,scaleY:1,rotate:0,rotateX:0,rotateY:0};if(i&&(n.complete=i),a.animationEnabled()){for(o in e)r=e[o],/^(translate(X|Y)|rotate[XY]?|scale(X|Y))$/i.test(o)?(l.transform=l.transform||{from:{},to:{}},l.transform.from[o]=o in s?Number(s[o].toFixed(3)):u[o],l.transform.to[o]=r):l[o]="arc"===o||"segments"===o?r:{from:o in s?s[o]:parseFloat(t.element.getAttribute(o)||0),to:r};a.animateElement(t,l,B(B({},a._animation),n))}else n.step&&n.step.call(t,1,1),n.complete&&n.complete.call(t),t.attr(e);return t}function mt(t,e){var n={is:!1,name:e.name||e,after:e.after};return t?n.to=t:n.virtual=!0,n}function gt(t,e,n){this.renderer=t,this.element=A(e),this._settings={},this._styles={},"path"===e&&(this.type=n||"line")}function _t(t){kt.remove(t)}function vt(t,e){gt.call(this,t,"path",e)}function yt(t){gt.call(this,t,"path","arc")}function bt(t){gt.call(this,t,"rect")}function wt(t){gt.call(this,t,"text"),this.css({"white-space":"pre"})}function xt(t,e){var n,i;for(n=e;i=t[n];++n)i._link.i=n}function Ct(t,e){var n,i,o=e._links,r=t._link.after=t._link.after||e._linkAfter;if(r){for(n=0;(i=o[n])&&i._link.name!==r;++n);if(i)for(++n;(i=o[n])&&i._link.after===r;++n);}else n=o.length;o.splice(n,0,t),xt(o,n)}function St(t){this.root=this._createElement("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",fill:T,stroke:T,"stroke-width":0}).attr({class:t.cssClass}).css({"line-height":"normal","-ms-user-select":T,"-moz-user-select":T,"-webkit-user-select":T,"-webkit-tap-highlight-color":"rgba(0, 0, 0, 0)",display:"block",overflow:"hidden"}),this._init(),this.pathModified=!!t.pathModified,this._$container=(0,i.default)(t.container),this.root.append({element:t.container}),this.fixPlacement(),this._locker=0,this._backed=!1}e.SvgElement=gt,gt.prototype={constructor:gt,_getJQElement:function(){return this._$element||(this._$element=(0,i.default)(this.element))},_addFixIRICallback:function(){var t=this,e=function(){Z(t,"fill"),Z(t,"clip-path"),Z(t,"filter")};t.element._fixFuncIri=e,e.renderer=t.renderer,kt.add(e),t._addFixIRICallback=function(){}},_clearChildrenFuncIri:function(){!function t(e){var n;for(n=0;n<e.childNodes.length;n++)_t(e.childNodes[n]._fixFuncIri),t(e.childNodes[n])}(this.element)},dispose:function(){return _t(this.element._fixFuncIri),this._clearChildrenFuncIri(),this._getJQElement().remove(),this},append:function(t){return(t||this.renderer.root).element.appendChild(this.element),this},remove:function(){var t=this.element;return t.parentNode&&t.parentNode.removeChild(t),this},enableLinks:function(){return this._links=[],this},virtualLink:function(t){return Ct({_link:mt(null,t)},this),this},linkAfter:function(t){return this._linkAfter=t,this},linkOn:function(t,e){return this._link=mt(t,e),Ct(this,t),this},linkOff:function(){return function(t){var e,n=t._link.to._links;for(e=0;n[e]!==t;++e);n.splice(e,1),xt(n,e)}(this),this._link=null,this},linkAppend:function(){var t,e,n=this._link,i=n.to._links;for(t=n.i+1;(e=i[t])&&!e._link.is;++t);return this._insert(n.to,e),n.is=!0,this},_insert:function(t,e){t.element.insertBefore(this.element,e?e.element:null)},linkRemove:function(){return this.remove(),this._link.is=!1,this},clear:function(){return this._clearChildrenFuncIri(),this._getJQElement().empty(),this},toBackground:function(){var t=this.element,e=t.parentNode;return e&&e.insertBefore(t,e.firstChild),this},toForeground:function(){var t=this.element,e=t.parentNode;return e&&e.appendChild(t),this},attr:function(t){return X(this,t)},smartAttr:function(t){return this.attr(F(this,t))},css:function(t){return Y(this,t)},animate:function(t,e,n){return pt(this,t,e,n)},sharp:function(t,e){return this.attr({sharp:t||!0,sharpDirection:e})},_applyTransformation:function(){var t,e,n=this._settings,i=[],o=n.sharp,r=n.sharpDirection||1,a=n["stroke-width"]%2,s=!a||"h"!==o&&!0!==o?0:.5*r,l=!a||"v"!==o&&!0!==o?0:.5*r;i.push("translate("+((n.translateX||0)+s)+","+((n.translateY||0)+l)+")"),n.rotate&&(t="rotateX"in n?n.rotateX:n.x,e="rotateY"in n?n.rotateY:n.y,i.push("rotate("+n.rotate+","+(t||0)+","+(e||0)+")"));var u=(0,h.isDefined)(n.scaleX),c=(0,h.isDefined)(n.scaleY);(u||c)&&i.push("scale("+(u?n.scaleX:1)+","+(c?n.scaleY:1)+")"),i.length&&this.element.setAttribute("transform",i.join(" "))},move:function(t,e,n,i){var o={};return(0,h.isDefined)(t)&&(o.translateX=t),(0,h.isDefined)(e)&&(o.translateY=e),n?this.animate(o,i):this.attr(o),this},rotate:function(t,e,n,i,o){var r={rotate:t||0};return(0,h.isDefined)(e)&&(r.rotateX=e),(0,h.isDefined)(n)&&(r.rotateY=n),i?this.animate(r,o):this.attr(r),this},_getElementBBox:function(){var t,e=this.element;try{t=e.getBBox&&e.getBBox()}catch(n){}return t||{x:0,y:0,width:e.offsetWidth||0,height:e.offsetHeight||0}},getBBox:function(){var t=this._settings,e=this._getElementBBox();return e=t.rotate?(0,d.rotateBBox)(e,[("rotateX"in t?t.rotateX:t.x)||0,("rotateY"in t?t.rotateY:t.y)||0],-t.rotate):(0,d.normalizeBBox)(e)},markup:function(){return(0,u.getSvgMarkup)(this.element)},getOffset:function(){return this._getJQElement().offset()},stopAnimation:function(t){var e=this.animation;return e&&e.stop(t),this},setTitle:function(t){var e=A("title");e.textContent=t||"",this.element.appendChild(e)},data:function(t,e){var n,i=this.element;if(void 0!==e)i[t]=e;else for(n in t)i[n]=t[n];return this},on:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),s.default.on.apply(s.default,t),this},off:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),s.default.off.apply(s.default,t),this},trigger:function(){var t=[this._getJQElement()];return t.push.apply(t,arguments),s.default.trigger.apply(s.default,t),this}},e.PathSvgElement=vt,vt.prototype=E(gt.prototype),B(vt.prototype,{constructor:vt,attr:function(t){var e;return D(t)&&(e=(t=B({},t)).segments,"points"in t&&(e=z(t.points,this.type),delete t.points),e&&(t.d=function(t){var e,n,i,o,r=[],a=0,s=t.length;for(e=0;e<s;++e)for(i=0,o=(n=t[e]).length;i<o;++i)r[a++]=n[i];return r.join(" ")}(e),this.segments=e,delete t.segments)),X(this,t)},animate:function(t,e,n){var i,o,r=this.segments||[];return this.renderer.animationEnabled()&&"points"in t&&(o=function(t,e,n){var i,o,r=t.length,a=e.length,s=-1!==n.indexOf("area")?$:q;if(0===r)for(i=0;i<a;i++)t.push(e[i].slice(0));else r<a?s(t,e,n):r>a&&(o=e.slice(0),s(e,t,n));return o}(r,i=z(t.points,this.type),this.type),t.segments={from:r,to:i,end:o},delete t.points),pt(this,t,e,n)}}),e.ArcSvgElement=yt,yt.prototype=E(gt.prototype),B(yt.prototype,{constructor:yt,attr:function(t){var e,n,i,o,r,a,s=this._settings;return D(t)&&("x"in(t=B({},t))||"y"in t||"innerRadius"in t||"outerRadius"in t||"startAngle"in t||"endAngle"in t)&&(s.x=e="x"in t?t.x:s.x,delete t.x,s.y=n="y"in t?t.y:s.y,delete t.y,s.innerRadius=i="innerRadius"in t?t.innerRadius:s.innerRadius,delete t.innerRadius,s.outerRadius=o="outerRadius"in t?t.outerRadius:s.outerRadius,delete t.outerRadius,s.startAngle=r="startAngle"in t?t.startAngle:s.startAngle,delete t.startAngle,s.endAngle=a="endAngle"in t?t.endAngle:s.endAngle,delete t.endAngle,t.d=V.apply(null,function(t,e,n,i,o,r){var a,s=!0,l=N(r,3)-N(o,3);return l&&(C(l)%360===0&&(o=0,r=360,a=!0,r-=.01),o>360&&(o%=360),r>360&&(r%=360),o>r&&(o-=360),s=!1),o*=k,r*=k,[t,e,v(i,n),_(i,n),x(o),w(o),x(r),w(r),a,y(C(r-o)/S)%2?"1":"0",s]}(e,n,i,o,r,a))),X(this,t)},animate:function(t,e,n){var i=this._settings,o={from:{},to:{}};return this.renderer.animationEnabled()&&("x"in t||"y"in t||"innerRadius"in t||"outerRadius"in t||"startAngle"in t||"endAngle"in t)&&(o.from.x=i.x||0,o.from.y=i.y||0,o.from.innerRadius=i.innerRadius||0,o.from.outerRadius=i.outerRadius||0,o.from.startAngle=i.startAngle||0,o.from.endAngle=i.endAngle||0,o.to.x="x"in t?t.x:i.x,delete t.x,o.to.y="y"in t?t.y:i.y,delete t.y,o.to.innerRadius="innerRadius"in t?t.innerRadius:i.innerRadius,delete t.innerRadius,o.to.outerRadius="outerRadius"in t?t.outerRadius:i.outerRadius,delete t.outerRadius,o.to.startAngle="startAngle"in t?t.startAngle:i.startAngle,delete t.startAngle,o.to.endAngle="endAngle"in t?t.endAngle:i.endAngle,delete t.endAngle,t.arc=o),pt(this,t,e,n)}}),e.RectSvgElement=bt,bt.prototype=E(gt.prototype),B(bt.prototype,{constructor:bt,attr:function(t){var e,n,i,o,r,a,s;return D(t)&&(void 0===(t=B({},t)).x&&void 0===t.y&&void 0===t.width&&void 0===t.height&&void 0===t["stroke-width"]||(e=void 0!==t.x?this._originalX=t.x:this._originalX||0,n=void 0!==t.y?this._originalY=t.y:this._originalY||0,i=void 0!==t.width?this._originalWidth=t.width:this._originalWidth||0,o=void 0!==t.height?this._originalHeight=t.height:this._originalHeight||0,s=((r=void 0!==t["stroke-width"]?this._originalSW=t["stroke-width"]:this._originalSW)||0)<(a=~~((i<o?i:o)/2))?r||0:a,t.x=e+s/2,t.y=n+s/2,t.width=i-s,t.height=o-s,((r||0)!==s||0!==s||void 0!==r)&&(t["stroke-width"]=s)),"sharp"in t&&delete t.sharp),X(this,t)}}),e.TextSvgElement=wt,wt.prototype=E(gt.prototype),B(wt.prototype,{constructor:wt,attr:function(t){var e;if(!D(t))return X(this,t);t=B({},t);var n=this._settings,i=(0,h.isDefined)(n.stroke)&&(0,h.isDefined)(n["stroke-width"]);void 0!==t.text&&(n.text=t.text,delete t.text,e=!0),void 0!==t.stroke&&(n.stroke=t.stroke,delete t.stroke),void 0!==t["stroke-width"]&&(n["stroke-width"]=t["stroke-width"],delete t["stroke-width"]),void 0!==t["stroke-opacity"]&&(n["stroke-opacity"]=t["stroke-opacity"],delete t["stroke-opacity"]),void 0!==t.textsAlignment&&(!function(t,e){if(!t._texts||"center"===e)return;for(var n=t._texts,i="left"===e?-1:1,o=Math.max.apply(Math,n.map((function(t){return it(t)}))),r=0;r<n.length;r++){var a=n[r],s=it(a);0!==o&&o!==s&&ct(a,"dx",i*b((o-s)/2*10)/10)}}(this,t.textsAlignment),delete t.textsAlignment);var r=(0,h.isDefined)(n.stroke)&&(0,h.isDefined)(n["stroke-width"]);return X(this,t),(e=e||r!==i&&n.text)&&(!function(t,e,n){var i,r;if(t._texts=null,t.clear(),null===e)return;e=""+e,t.renderer.encodeHtml||!/<[a-z][\s\S]*>/i.test(e)&&-1===e.indexOf("&")?/\n/g.test(e)?i=function(t){for(var e=t.replace(/\r/g,"").split(/\n/g),n=0,i=[];n<e.length;n++)i.push({value:e[n].trim(),height:0,line:n});return i}(e):n&&(i=[{value:e.trim(),height:0}]):(r=function(t){var e=/(style|class)\s*=\s*(["'])(?:(?!\2).)*\2\s?/gi;return t.replace(/(?:(<[a-z0-9]+\s*))([\s\S]*?)(>|\/>)/gi,(function(t,n,i,o){return n+(i=(i&&i.match(e)||[]).map((function(t){return t})).join(" "))+o}))}(e),i=function(t){var e=[],n=o.default.createElement("div");return n.innerHTML=t.replace(/\r/g,"").replace(/\n/g,"<br/>"),function t(e,n,i,r,a){var s,l,u,c,d;if(void 0!==i.wholeText)e.push({value:i.wholeText,style:r,className:a,line:n,height:r["font-size"]||0});else if("BR"===i.tagName)++n;else if(o.default.isElementNode(i)){switch(B(s={},r),i.tagName){case"B":case"STRONG":s["font-weight"]="bold";break;case"I":case"EM":s["font-style"]="italic";break;case"U":s["text-decoration"]="underline"}for((l=i.style).color&&(s.fill=l.color),l.fontSize&&(s["font-size"]=l.fontSize),l.fontStyle&&(s["font-style"]=l.fontStyle),l.fontWeight&&(s["font-weight"]=l.fontWeight),l.textDecoration&&(s["text-decoration"]=l.textDecoration),u=0,d=i.childNodes,c=d.length;u<c;++u)n=t(e,n,d[u],s,i.className||a)}return n}(e,0,n,{},""),function(t){var e,n,i,o=t[0];for(e=1,n=t.length;e<n;++e)(i=t[e]).line===o.line?(o.height=ft(o.height,i.height),o.inherits=o.inherits||0===parseFloat(i.height),i.height=NaN):o=i}(e),e}(r));i?i.length&&(t._texts=i,n&&J(i,t.element,"stroke"),J(i,t.element,"tspan")):t.element.appendChild(o.default.createTextNode(e))}(this,n.text,r),this._hasEllipsis=!1),(e||void 0!==t.x||void 0!==t.y)&&ht(this),r&&function(t){if(!t._texts)return;var e,n,i,o=t._texts,r=t._settings.stroke,a=t._settings["stroke-width"],s=t._settings["stroke-opacity"]||1;for(n=0,i=o.length;n<i;++n)(e=o[n].stroke).setAttribute("stroke",r),e.setAttribute("stroke-width",a),e.setAttribute("stroke-opacity",s),e.setAttribute("stroke-linejoin","round")}(this),this},css:function(t){return Y(this,t=t||{}),"font-size"in t&&ht(this),this},applyEllipsis:function(t){var e,n,i,o,r,a,s,l=!1;Q.call(this);var u=this.renderer.text("...").attr(this._styles).append(this.renderer.root),c=u.getBBox().width;if(this._getElementBBox().width>t)for(t-c<0?t=0:t-=c,e=function(t,e,n){var i,o,r,a,s,l=[];if(e)for(i=0,o=e.length;i<o;++i)r=e[i],l[r.line]?(r.startBox=a,l[r.line].parts.push(r),l[r.line].commonLength+=r.value.length):(r.startBox=a=0,l.push({commonLength:r.value.length,parts:[r]})),s=a+r.tspan.getSubStringLength(0,r.value.length),r.endIndex=nt(r,n,a,s),a=s;else(r={value:t.textContent,tspan:t}).startBox=a=0,s=a+it(r),r.endIndex=nt(r,n,a,s),l=[{commonLength:t.textContent.length,parts:[r]}];return l}(this.element,this._texts,t),n=0,i=e.length;n<i;++n)if(o=e[n].parts,1!==e[n].commonLength)for(r=0,a=o.length;r<a;++r)s=o[r],(0,h.isDefined)(s.endIndex)?(lt(s,s.endIndex),l=!0):s.startBox>t&&ut(s);return u.remove(),this._hasEllipsis=l,l},setMaxSize:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this,o=[],r=!1,a=!1,s=t;Q.call(i);var l=et(this.element),u=i.renderer.text("...").attr(i._styles).append(i.renderer.root),c=u.getBBox().width,d=i._getElementBBox(),h=d.width,f=d.height;return(h||f)&&(h>t||e&&f>e)&&(t-c<0?s=0:s-=c,o=at(o=st(i.element,i._texts,t,s,n),s,n,e,parseFloat(this._getLineHeight())),this._texts=o.reduce((function(t,e){return t.concat(e.parts)}),[]).filter((function(t){return""!==t.value})).map((function(t){return t.stroke&&t.tspan.parentNode.appendChild(t.stroke),t})).map((function(t){return t.tspan.parentNode.appendChild(t.tspan),t})),!this._texts.length&&(this._texts=null),r=!0,this._texts?ht(this):(this.element.textContent="",a=!0)),u.remove(),i._hasEllipsis=r,l(),{rowCount:o.length,textChanged:r,textIsEmpty:a}},restoreText:Q,_getLineHeight:function(){return isNaN(parseFloat(this._styles["font-size"]))?12:this._styles["font-size"]}}),e.Renderer=St,St.prototype={constructor:St,_init:function(){this._defs=this._createElement("defs").append(this.root),this._animationController=new c.default.AnimationController(this.root.element),this._animation={enabled:!0,duration:1e3,easing:"easeOutCubic"}},fixPlacement:function(){if(l.default.mozilla||l.default.msie){var t=function(t){var e;try{e=t.getBoundingClientRect()}catch(n){}return e||{left:0,top:0}}(this._$container.get(0)),e=N(t.left%1,2),n=N(t.top%1,2);l.default.msie?this.root.css({transform:"translate("+-e+"px,"+-n+"px)"}):l.default.mozilla&&this.root.move(-e,-n)}},removePlacementFix:function(){(l.default.mozilla||l.default.msie)&&(l.default.msie?this.root.css({transform:""}):l.default.mozilla&&this.root.attr({transform:null}))},setOptions:function(t){return this.rtl=!!t.rtl,this.encodeHtml=!!t.encodeHtml,this.updateAnimationOptions(t.animation||{}),this.root.attr({direction:this.rtl?"rtl":"ltr"}),this},_createElement:function(t,n,i){var o=new e.SvgElement(this,t,i);return n&&o.attr(n),o},lock:function(){var t;return 0===this._locker&&(this._backed=!this._$container.is(":visible"),this._backed&&(t=this.root,0===M().backupCounter&&o.default.getBody().appendChild(M().backupContainer),++M().backupCounter,t.append({element:M().backupContainer}))),++this._locker,this},unlock:function(){var t,e;return--this._locker,0===this._locker&&(this._backed&&(t=this.root,e=this._$container[0],t.append({element:e}),--M().backupCounter,0===M().backupCounter&&o.default.getBody().removeChild(M().backupContainer),this.fixPlacement()),this._backed=!1),this},resize:function(t,e){return t>=0&&e>=0&&this.root.attr({width:t,height:e}),this},dispose:function(){var t;for(t in this.root.dispose(),this._defs.dispose(),this._animationController.dispose(),kt.removeByRenderer(this),this)this[t]=null;return this},animationEnabled:function(){return!!this._animation.enabled},updateAnimationOptions:function(t){return B(this._animation,t),this},stopAllAnimations:function(t){return this._animationController[t?"lock":"stop"](),this},animateElement:function(t,e,n){return this._animationController.animateElement(t,e,n),this},svg:function(){this.removePlacementFix();var t=this.root.markup();return this.fixPlacement(),t},getRootOffset:function(){return this.root.getOffset()},onEndAnimation:function(t){this._animationController.onEndAnimation(t)},rect:function(t,n,i,o){return new e.RectSvgElement(this).attr({x:t||0,y:n||0,width:i||0,height:o||0})},simpleRect:function(){return this._createElement("rect")},circle:function(t,e,n){return this._createElement("circle",{cx:t||0,cy:e||0,r:n||0})},g:function(){return this._createElement("g")},image:function(t,e,n,i,o,r){var a=this._createElement("image",{x:t||0,y:e||0,width:n||0,height:i||0,preserveAspectRatio:L[(0,d.normalizeEnum)(r)]||T});return a.element.setAttributeNS("http://www.w3.org/1999/xlink","href",o||""),a},path:function(t,n){return new e.PathSvgElement(this,n).attr({points:t||[]})},arc:function(t,n,i,o,r,a){return new e.ArcSvgElement(this).attr({x:t||0,y:n||0,innerRadius:i||0,outerRadius:o||0,startAngle:r||0,endAngle:a||0})},text:function(t,n,i){return new e.TextSvgElement(this).attr({text:t,x:n||0,y:i||0})},linearGradient:function(t){var e=P(),n=this,i=n._createElement("linearGradient",{id:e}).append(n._defs);return i.id=e,t.forEach((function(t){n._createElement("stop",{offset:t.offset,"stop-color":t["stop-color"]}).append(i)})),i},pattern:function(t,n,i){var o=(n=n||{}).step||6,r=o/2,a=1.5*o,s=i||P(),l="right"===(0,d.normalizeEnum)(n.direction)?"M "+r+" "+-r+" L "+-r+" "+r+" M 0 "+o+" L "+o+" 0 M "+a+" "+r+" L "+r+" "+a:"M 0 0 L "+o+" "+o+" M "+-r+" "+r+" L "+r+" "+a+" M "+r+" "+-r+" L "+a+" "+r,u=this._createElement("pattern",{id:s,width:o,height:o,patternUnits:"userSpaceOnUse"}).append(this._defs);return u.id=s,this.rect(0,0,o,o).attr({fill:t,opacity:n.opacity}).append(u),new e.PathSvgElement(this).attr({d:l,"stroke-width":n.width||1,stroke:t}).append(u),u},_getPointsWithYOffset:function(t,e){return t.map((function(t,n){return n%2!==0?t+e:t}))},clipShape:function(t,e){var n=P(),i=this._createElement("clipPath",{id:n}).append(this._defs),o=t.apply(this,e).append(i);return o.id=n,o.remove=function(){throw"Not implemented"},o.dispose=function(){return i.dispose(),i=null,this},o},clipRect:function(t,e,n,i){return this.clipShape(this.rect,arguments)},clipCircle:function(t,e,n){return this.clipShape(this.circle,arguments)},shadowFilter:function(t,e,n,i,o,r,a,s,l){var u=P(),c=this._createElement("filter",{id:u,x:t||0,y:e||0,width:n||0,height:i||0}).append(this._defs),d=this._createElement("feGaussianBlur",{in:"SourceGraphic",result:"gaussianBlurResult",stdDeviation:a||0}).append(c),h=this._createElement("feOffset",{in:"gaussianBlurResult",result:"offsetResult",dx:o||0,dy:r||0}).append(c),f=this._createElement("feFlood",{result:"floodResult","flood-color":s||"","flood-opacity":l}).append(c),p=this._createElement("feComposite",{in:"floodResult",in2:"offsetResult",operator:"in",result:"compositeResult"}).append(c),m=this._createElement("feComposite",{in:"SourceGraphic",in2:"compositeResult",operator:"over"}).append(c);return c.id=u,c.gaussianBlur=d,c.offset=h,c.flood=f,c.composite=p,c.finalComposite=m,c.attr=function(t){var e={},n={},i={};return"x"in t&&(e.x=t.x),"y"in t&&(e.y=t.y),"width"in t&&(e.width=t.width),"height"in t&&(e.height=t.height),X(this,e),"blur"in t&&this.gaussianBlur.attr({stdDeviation:t.blur}),"offsetX"in t&&(n.dx=t.offsetX),"offsetY"in t&&(n.dy=t.offsetY),this.offset.attr(n),"color"in t&&(i["flood-color"]=t.color),"opacity"in t&&(i["flood-opacity"]=t.opacity),this.flood.attr(i),this},c},brightFilter:function(t,e){var n=P(),i=this._createElement("filter",{id:n}).append(this._defs),o=this._createElement("feComponentTransfer").append(i),r={type:t,slope:e};return i.id=n,this._createElement("feFuncR",r).append(o),this._createElement("feFuncG",r).append(o),this._createElement("feFuncB",r).append(o),i},getGrayScaleFilter:function(){if(this._grayScaleFilter)return this._grayScaleFilter;var t=P(),e=this._createElement("filter",{id:t}).append(this._defs);return this._createElement("feColorMatrix").attr({type:"matrix",values:"0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 0.6 0"}).append(e),e.id=t,this._grayScaleFilter=e,e},initHatching:function(){var t,e=this._hatchingStorage=this._hatchingStorage||{byHash:{},baseId:P()},n=e.byHash;for(t in n)n[t].pattern.dispose();e.byHash={},e.refToHash={},e.nextId=0},lockHatching:function(t,e,n){var i,o,r=this._hatchingStorage,a=function(t,e){return"@"+t+"::"+e.step+":"+e.width+":"+e.opacity+":"+e.direction}(t,e);return r.refToHash[n]!==a&&(n&&this.releaseHatching(n),(i=r.byHash[a])||(o=this.pattern(t,e,r.baseId+"-hatching-"+r.nextId++),i=r.byHash[a]={pattern:o,count:0},r.refToHash[o.id]=a),++i.count,n=i.pattern.id),n},releaseHatching:function(t){var e=this._hatchingStorage,n=e.refToHash[t],i=e.byHash[n];i&&0===--i.count&&(i.pattern.dispose(),delete e.byHash[n],delete e.refToHash[t])}};var kt=function(){var t=[];return{add:function(e){t.push(e)},remove:function(e){t=t.filter((function(t){return t!==e}))},removeByRenderer:function(e){t=t.filter((function(t){return t.renderer!==e}))},fire:function(){t.forEach((function(t){t()}))}}}();e.refreshPaths=function(){kt.fire()}},function(t,e,n){"use strict";var i=n(15),o=n(10).getWindow(),r=n(3);e.getSvgMarkup=function(t,e){return function(t){var e=!0;return-1===t.indexOf("xmlns:xlink")&&(t=t.replace("<svg",'<svg xmlns:xlink="http://www.w3.org/1999/xlink"')),(t=t.replace(/xmlns="[\s\S]*?"/gi,(function(t){return e?(e=!1,t):""}))).replace(/xmlns:NS1="[\s\S]*?"/gi,"").replace(/NS1:xmlns:xlink="([\s\S]*?)"/gi,'xmlns:xlink="$1"')}(function(t,e){var n=i.createElement("div"),o=t.cloneNode(!0);return e&&r(o).css("backgroundColor",e),n.appendChild(o),n.innerHTML}(t,e).replace(/"/gi,""").replace(/&/gi,"&").replace(/'/gi,"'").replace(/</gi,"<").replace(/>/gi,">").replace(/ /gi," ").replace(/­/gi,"­"))},e.getSvgElement=function(t){return i.isNode(t)?t:(new o.DOMParser).parseFromString(t,"image/svg+xml").childNodes[0]}},function(t,e,n){"use strict";var i,o=n(74),r=(i=o)&&i.__esModule?i:{default:i};var a=" .,:;/\\<>()-[]\u060c",s=function(t){var e=t&&r.default.convertDigits(t,!1).charCodeAt(0),n=r.default.convertDigits("0",!1).charCodeAt(0);return n<=e&&e<n+10},l=function(t,e,n){var i=t[e],o=t[e+1];if(!n){if("."===i||" "===i&&". m."===t.slice(e-1,e+3))return!0;if("-"===i&&!s(o))return!0}return a.indexOf(i)<0&&n===s(i)},u=function(t,e){if(!s(t[e]))for(;e>0&&!s(t[e-1])&&("."===t[e-1]||a.indexOf(t[e-1])<0);)e--;return e},c=function(t,e){return Array.isArray(t)?t.map((function(t){return(e(t)||"").toString()})):(e(t)||"").toString()},d=/[a-zA-Z]/g;e.getFormat=function(t){var e=[],n=c(new Date(2009,8,8,6,5,4),t),i=n.split("").map((function(t,e){return e})),o=n,r={},a=[{date:new Date(2009,8,8,6,5,4,100),pattern:"S"},{date:new Date(2009,8,8,6,5,2),pattern:"s"},{date:new Date(2009,8,8,6,2,4),pattern:"m"},{date:new Date(2009,8,8,18,5,4),pattern:"H",isDigit:!0},{date:new Date(2009,8,8,2,5,4),pattern:"h",isDigit:!0},{date:new Date(2009,8,8,18,5,4),pattern:"a",isDigit:!1},{date:new Date(2009,8,1,6,5,4),pattern:"d"},{date:[new Date(2009,8,2,6,5,4),new Date(2009,8,3,6,5,4),new Date(2009,8,4,6,5,4)],pattern:"E"},{date:new Date(2009,9,6,6,5,4),pattern:"M"},{date:new Date(1998,8,8,6,5,4),pattern:"y"}];if(o)return a.forEach((function(a){var d=function(t,e,n,i){var o=0,r=[],a=function(e){return t[o]!==e[o]&&(void 0===i||s(t[o])===i)};for(Array.isArray(e)||(e=[e]),o=0;o<t.length;o++)if(n.indexOf(o)<0&&e.filter(a).length){o=u(t,o);do{if(i=s(t[o]),!r.length&&!i&&s(e[0][o]))break;r.push(o),n.unshift(o),o++}while(t[o]&&l(t,o,i));break}return 1!==r.length||"0"!==t[n[0]-1]&&"\u0660"!==t[n[0]-1]||n.unshift(n[0]-1),r}(n,c(a.date,t),e,a.isDigit),h="M"!==a.pattern||r.d?a.pattern:"L";o=function(t,e,n,i){var o,r,a;if(!s(t[e[0]]||"0")){for(var l=Math.max(e.length<=3?3:4,n.length);e.length>l;){for(a=i[r=e.pop()],i[r]=-1,o=r+1;o<i.length;o++)i[o]--;t=t.substr(0,a)+t.substr(a+1)}for(a=(r=e[e.length-1]+1)<i.length?i[r]:r;e.length<l;){for(e.push(e[e.length-1]+1),o=r;o<i.length;o++)i[o]++;t=t.substr(0,a)+" "+t.substr(a)}}return t=function(t,e,n,i){var o=e[0],r=o<i.length?i[o]:o;return e.forEach((function(e,i){t=t.substr(0,r+i)+(n.length>1?n[i]:n)+t.substr(r+i+1)})),1===e.length&&(t=(t=t.replace("0"+n,n+n)).replace("\u0660"+n,n+n)),t}(t,e,n,i)}(o,d,h,i),r[h]=d.length})),o=function(t,e,n,i){var o=e.split("").map((function(t,e){return n.indexOf(e)<0&&(t.match(d)||"'"===t)?i[e]:-1}));return t=t.split("").map((function(t,e){var n=t,i=o.indexOf(e)>=0,r=e>0&&o.indexOf(e-1)>=0,a=o.indexOf(e+1)>=0;return i&&(r||(n="'"+n),a||(n+="'")),n})).join("")}(o,n,e,i),e.length?o:void 0}},function(t,e,n){"use strict";var i=n(4).escapeRegExp,o={3:"abbreviated",4:"wide",5:"narrow"},r=function(t,e){return t>2?Object.keys(o).map((function(t){return["format","standalone"].map((function(n){return e.getMonthNames(o[t],n).join("|")})).join("|")})).join("|"):"0?[1-9]|1[012]"},a={y:function(t){return"[0-9]+"},M:r,L:r,Q:function(t,e){return t>2?e.getQuarterNames(o[t],"format").join("|"):"0?[1-4]"},E:function(t,e){return"\\D*"},a:function(t,e){return e.getPeriodNames(o[t<3?3:t],"format").join("|")},d:function(t){return"0?[1-9]|[12][0-9]|3[01]"},H:function(t){return"0?[0-9]|1[0-9]|2[0-3]"},h:function(t){return"0?[1-9]|1[012]"},m:function(t){return"0?[0-9]|[1-5][0-9]"},s:function(t){return"0?[0-9]|[1-5][0-9]"},S:function(t){return"[0-9]{1,"+t+"}"}},s=Number,l=function(t,e){return t.map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase())},u=function(t,e,n){return e>2?["format","standalone"].map((function(e){return Object.keys(o).map((function(i){var r=n.getMonthNames(o[i],e);return l(r,t)}))})).reduce((function(t,e){return t.concat(e)})).filter((function(t){return t>=0}))[0]:s(t)-1},c={y:function(t,e){var n=s(t);return 2===e?n<30?2e3+n:1900+n:n},M:u,L:u,Q:function(t,e,n){return e>2?n.getQuarterNames(o[e],"format").indexOf(t):s(t)-1},E:function(t,e,n){var i=n.getDayNames(o[e<3?3:e],"format");return l(i,t)},a:function(t,e,n){var i=n.getPeriodNames(o[e<3?3:e],"format");return l(i,t)},d:s,H:s,h:s,m:s,s:s,S:function(t,e){for(e=Math.max(e,3),t=t.slice(0,3);e<3;)t+="0",e++;return s(t)}},d=["y","M","d","h","m","s","S"],h={y:"setFullYear",M:"setMonth",L:"setMonth",a:function(t,e,n){var i=t.getHours(),o=n.h;void 0!==o&&o!==i&&i--,e||12!==i?e&&12!==i&&(i+=12):i=0,t.setHours(i)},d:"setDate",H:"setHours",h:"setHours",m:"setMinutes",s:"setSeconds",S:"setMilliseconds"},f=function(t,e){var n=t[e],i=0;do{e++,i++}while(t[e]===n);return i},p=function(t,e){for(var n="",i=0;i<e;i++)n+=t;return n},m=function(t,e){for(var n,o="",r="",s=[],l=function(){r&&(s.push("'"+r+"'"),o+=i(r)+")",r="")},u=0;u<t.length;u++){var c=t[u],d=a[c];if(!("'"===c)||(n=!n,"'"===t[u-1]))if(d&&!n){var h=f(t,u),m=p(c,h);l(),s.push(m),o+="("+d(h,e)+")",u+=h-1}else r||(o+="("),r+=c}return l(),{patterns:s,regexp:new RegExp("^"+o+"$","i")}};e.getParser=function(t,e){var n=m(t,e);return function(t){var i=n.regexp.exec(t);if(i){var o=new Date,r=new Date(o.getFullYear(),0,1),a=n.patterns.map((function(t){return"'"===t[0]?"":"H"===t[0]?"h":t[0]})),s=function(t){var e=t.map((function(t){return d.indexOf(t)}));return Math.max.apply(Math,e)}(a),l=function(t){var e=t.filter((function(t){return d.indexOf(t)<0}));return d.concat(e)}(a),u={};return l.forEach((function(t,l){if(t&&!(l<d.length&&l>s)){var f=a.indexOf(t);if(f>=0){var p=n.patterns[f],m=i[f+1];!function(t,e,n,i,o){var r=e[0],a=h[r],s=c[r];if(a&&s){var l=s(n,e.length,i);o[e]=l,t[a]?t[a](l):a(t,l,o)}}(r,p,m,e,u)}else!function(t,e,n){var i=h[e],o=n["g"+i.substr(1)]();t[i](o)}(r,t,o)}})),r}return null}},e.getRegExpInfo=m,e.getPatternSetters=function(){return h}},function(t,e,n){"use strict";var i=n(224).fileSaver,o=n(711),r=n(395),a=n(720),s=n(2).isFunction,l=n(7).Deferred;e.export=function(t,e,n){if(!t)return(new l).resolve();var o=e.exportingAction,r=e.exportedAction,a=e.fileSavingAction,u={fileName:e.fileName,format:e.format,cancel:!1};return s(o)&&o(u),u.cancel?(new l).resolve():n(t,e).then((function(t){s(r)&&r(),s(a)&&(u.data=t,a(u)),u.cancel||i.saveAs(u.fileName,e.format,t,e.proxyUrl,e.forceProxy)}))},e.fileSaver=i,e.excel={creator:o.ExcelCreator,getData:o.getData,formatConverter:n(390)},e.image={creator:r.imageCreator,getData:r.getData,testFormats:r.testFormats},e.pdf={getData:n(721).getData},e.svg={creator:a.svgCreator,getData:a.getData}},function(t,e,n){"use strict";var i=n(4).noop,o=Math.round,r=n(54),a={horizontal:0,vertical:0},s={center:.5,right:1,bottom:1,left:0,top:0};function l(t){this._options=t}function u(t,e){this._renderElement=t,this._cacheBBox=e}l.prototype={constructor:l,position:function(t){var e=t.of.getLayoutOptions(),n=this.getLayoutOptions(),i=t.at,r=t.my,l=t.offset||a,u=-s[r.horizontal]*n.width+e.x+s[i.horizontal]*e.width+parseInt(l.horizontal),c=-s[r.vertical]*n.height+e.y+s[i.vertical]*e.height+parseInt(l.vertical);this.shift(o(u),o(c))},getLayoutOptions:i};var c=u.prototype=r.clone(l.prototype);c.constructor=u,c.getLayoutOptions=function(){return this._cacheBBox||this._renderElement.getBBox()},c.shift=function(t,e){var n=this.getLayoutOptions();this._renderElement.move(o(t-n.x),o(e-n.y))},e.LayoutElement=l,e.WrapperLayoutElement=u},function(t,e,n){"use strict";var i=n(13);t.exports={logarithmic:"logarithmic",discrete:"discrete",numeric:"numeric",left:"left",right:"right",top:"top",bottom:"bottom",center:"center",horizontal:"horizontal",vertical:"vertical",convertTicksToValues:function(t){return(0,i.map)(t||[],(function(t){return t.value}))},validateOverlappingMode:function(t){return"ignore"===t||"none"===t?t:"hide"},getTicksCountInRange:function(t,e,n){var i=1;if(t.length>1)for(;i<t.length&&!(Math.abs(t[i].coords[e]-t[0].coords[e])>=n);i++);return i},areLabelsOverlap:function(t,e,n,i){var o=t.x>e.x,r=t.y>e.y,a=t.x,s=e.x,l=t.width,u=e.width;"left"===i?(a+=l/2,s+=u/2):"right"===i&&(a-=l/2,s-=u/2);var c=o?s+u+n>a:a+l+n>s,d=r?e.y+e.height>t.y:t.y+t.height>e.y;return c&&d}}},function(t,e,n){"use strict";var i=n(4).noop,o=n(67),r=n(2).isDefined,a={string:function(t){return r(t)?""+t:t},numeric:function(t){if(!r(t))return t;var e=Number(t);return isNaN(e)&&(e=void 0),e},datetime:function(t){if(!r(t))return t;var e,n=Number(t);return e=isNaN(n)?o.deserializeDate(t):new Date(n),isNaN(Number(e))&&(e=void 0),e}};function s(t){return"numeric"===t||"datetime"===t||"string"===t?t:""}t.exports={correctValueType:s,getParser:function(t){return a[s(t)]||i}}},function(t,e,n){"use strict";var i=n(0),o=n(5),r=n(123),a=p(n(722)),s=p(n(723)),l=p(n(724)),u=p(n(725)),c=n(13),d=n(2),h=n(37),f=n(26);function p(t){return t&&t.__esModule?t:{default:t}}var m,g=Math.abs,_=["width","height","left","top","bottom","right"],v={to:function(t){var e=this._canvasOptions.startPoint+(this._options.conversionValue?t:Math.round(t));return e>this._canvasOptions.endPoint?this._canvasOptions.endPoint:e},from:function(t){return t-this._canvasOptions.startPoint}},y=function(t){return(0,o.each)(_,(function(e,n){t[n]=parseInt(t[n])||0})),t};function b(t){return{isStartSide:t?function(t,e,n,i){return t<=e[e.length-1][i]}:function(t,e,n,i){return t<e[0][n]},isEndSide:t?function(t,e,n,i){return t>e[0][n]}:function(t,e,n,i){return t>=e[e.length-1][i]},isInBreak:t?function(t,e,n,i){return t>e[i]&&t<=e[n]}:function(t,e,n,i){return t>=e[n]&&t<e[i]},isBetweenBreaks:t?function(t,e,n,i,o){return t>=e[o]&&t<n[i]}:function(t,e,n,i,o){return t<e[i]&&t>=n[o]},getLength:t?function(t,e){return e.length-t.length}:function(t){return t.length},getBreaksSize:t?function(t,e){return e.cumulativeWidth-t.cumulativeWidth}:function(t){return t.cumulativeWidth}}}e.Translator2D=m=function(t,e,n){this.update(t,e,n)},m.prototype={constructor:m,reinit:function(){var t=this,e=t._options,n=t._businessRange,o=n.categories||[],r={},d=t._prepareCanvasOptions(),h=(0,c.getCategoriesInfo)(o,n.minVisible,n.maxVisible).categories,p=h.length;if(n.isEmpty())r=v;else switch(n.axisType){case"logarithmic":r=u.default;break;case"semidiscrete":r=s.default,d.ratioOfCanvasRange=d.canvasLength/((0,f.addInterval)(d.rangeMaxVisible,e.interval)-d.rangeMinVisible);break;case"discrete":r=a.default,t._categories=o,d.interval=t._getDiscreteInterval(e.addSpiderCategory?p+1:p,d),t._categoriesToPoints=function(t){var e={};return t.forEach((function(t,n){e[t.valueOf()]=n})),e}(o,d.invert),p&&(d.startPointIndex=t._categoriesToPoints[h[0].valueOf()],t.visibleCategories=h);break;default:"datetime"===n.dataType&&(r=l.default)}(t._oldMethods||[]).forEach((function(e){delete t[e]})),t._oldMethods=Object.keys(r),(0,i.extend)(t,r),t._conversionValue=e.conversionValue?function(t){return t}:function(t){return Math.round(t)},t.sc={},t._checkingMethodsAboutBreaks=[b(!1),b(t.isInverted())],t._translateBreaks(),t._calculateSpecialValues()},_translateBreaks:function(){var t,e,n,i,o=this._breaks,r=this._options.breaksSize;if(void 0!==o)for(t=0,i=o.length;t<i;t++)e=o[t],n=this.translate(e.to),e.end=n,e.start=e.gapSize?n:this.isInverted()?n+r:n-r},_checkValueAboutBreaks:function(t,e,n,i,o){var r,a,s,l,u={length:0,breaksSize:void 0,inBreak:!1},c=t[t.length-1];if(o.isStartSide(e,t,n,i))return u;if(o.isEndSide(e,t,n,i))return{length:c.length,breaksSize:c.cumulativeWidth,inBreak:!1};for(r=0,a=t.length;r<a;r++){if(s=t[r],l=t[r-1],o.isInBreak(e,s,n,i)){u.inBreak=!0,u.break=s;break}if(l&&o.isBetweenBreaks(e,s,l,n,i)){u={length:o.getLength(l,c),breaksSize:o.getBreaksSize(l,c),inBreak:!1};break}}return u},isInverted:function(){return!(this._options.isHorizontal^this._businessRange.invert)},_getDiscreteInterval:function(t,e){var n=t-(this._options.stick?1:0);return n>0?e.canvasLength/n:e.canvasLength},_prepareCanvasOptions:function(){var t,e=this._businessRange,n=this._canvasOptions=function(t){var e=t.min,n=t.max,i=t.minVisible,o=t.maxVisible;return"logarithmic"===t.axisType&&(o=(0,c.getLogExt)(o,t.base,t.allowNegatives,t.linearThreshold),i=(0,c.getLogExt)(i,t.base,t.allowNegatives,t.linearThreshold),e=(0,c.getLogExt)(e,t.base,t.allowNegatives,t.linearThreshold),n=(0,c.getLogExt)(n,t.base,t.allowNegatives,t.linearThreshold)),{base:t.base,rangeMin:e,rangeMax:n,rangeMinVisible:i,rangeMaxVisible:o}}(e),i=this._canvas,o=this._breaks;return n.startPadding=i.startPadding||0,n.endPadding=i.endPadding||0,this._options.isHorizontal?(n.startPoint=i.left+n.startPadding,t=i.width,n.endPoint=i.width-i.right-n.endPadding,n.invert=e.invert):(n.startPoint=i.top+n.startPadding,t=i.height,n.endPoint=i.height-i.bottom-n.endPadding,n.invert=!e.invert),this.canvasLength=n.canvasLength=n.endPoint-n.startPoint,n.rangeDoubleError=Math.pow(10,(0,c.getPower)(n.rangeMax-n.rangeMin)-(0,c.getPower)(t)-2),n.ratioOfCanvasRange=n.canvasLength/(n.rangeMaxVisible-n.rangeMinVisible),void 0!==o&&(n.ratioOfCanvasRange=(n.canvasLength-o[o.length-1].cumulativeWidth)/(n.rangeMaxVisible-n.rangeMinVisible-o[o.length-1].length)),n},updateCanvas:function(t){this._canvas=y(t),this.reinit()},updateBusinessRange:function(t){var e=t.breaks||[];this._businessRange=function(t){function e(e,n){!(0,d.isDefined)(t[e])&&(0,d.isDefined)(t[n])&&(t[e]=t[n])}return t instanceof r.Range||(t=new r.Range(t)),e("minVisible","min"),e("maxVisible","max"),t}(t),this._breaks=e.length?function(t,e){var n,i,o,r,a="logarithmic"===e.axisType?function(t){return(0,c.getLogExt)(t,e.base)}:function(t){return t},s=[],l=t.length,u=0;for(r=0;r<l;r++)i=a((n=t[r]).from),u+=(o=a(n.to))-i,s.push({trFrom:i,trTo:o,from:n.from,to:n.to,length:u,cumulativeWidth:n.cumulativeWidth});return s}(e,this._businessRange):void 0,this.reinit()},update:function(t,e,n){this._options=(0,i.extend)(this._options||{},n),this._canvas=y(e),this.updateBusinessRange(t)},getBusinessRange:function(){return this._businessRange},getEventScale:function(t){return t.deltaScale||1},getCanvasVisibleArea:function(){return{min:this._canvasOptions.startPoint,max:this._canvasOptions.endPoint}},_calculateSpecialValues:function(){var t,e=this._canvasOptions,n=e.startPoint-e.startPadding,i=e.endPoint+e.endPadding,o=this._businessRange,r=o.minVisible,a=o.maxVisible,s=n+e.canvasLength/2;if(r<0&&a>0&&r!==a&&(t=this.translate(0,1)),!(0,d.isDefined)(t)){var l=o.invert^(r<0&&a<=0);t=this._options.isHorizontal?l?i:n:l?n:i}this.sc={canvas_position_default:t,canvas_position_left:n,canvas_position_top:n,canvas_position_center:s,canvas_position_middle:s,canvas_position_right:i,canvas_position_bottom:i,canvas_position_start:e.invert?i:n,canvas_position_end:e.invert?n:i}},translateSpecialCase:function(t){return this.sc[t]},_calculateProjection:function(t){var e=this._canvasOptions;return e.invert?e.endPoint-t:e.startPoint+t},_calculateUnProjection:function(t){var e=this._canvasOptions;return e.invert?e.rangeMaxVisible.valueOf()-t:e.rangeMinVisible.valueOf()+t},getMinBarSize:function(t){var e=this.getCanvasVisibleArea(),n=this.from(e.min+t);return g(this.from(e.min)-((0,d.isDefined)(n)?n:this.from(e.max)))},checkMinBarSize:function(t,e,n){return g(t)<e?t>=0?e:-e:t},translate:function(t,e){var n=this.translateSpecialCase(t);return(0,d.isDefined)(n)?Math.round(n):isNaN(t)?null:this.to(t,e)},getInterval:function(t){var e,n=this._canvasOptions;return(t=null!==(e=t)&&void 0!==e?e:this._businessRange.interval)?Math.round(n.ratioOfCanvasRange*t):Math.round(n.endPoint-n.startPoint)},zoom:function(t,e,n){var i=this._canvasOptions;if(i.rangeMinVisible.valueOf()===i.rangeMaxVisible.valueOf()&&0!==t)return this.zoomZeroLengthRange(t,e);var o=i.startPoint,r=i.endPoint,a=this.isInverted(),s=(o+t)/e,l=(r+t)/e;n=n||{};var u,c,f=this.to(a?n.endValue:n.startValue),p=this.to(a?n.startValue:n.endValue);return f>s&&(l-=s-f,s=f,u=a?n.endValue:n.startValue),p<l&&(s-=l-p,l=p,c=a?n.startValue:n.endValue),p-f<l-s&&(s=f,l=p),e=(o+(t=(r-o)*s/(l-s)-o))/s||1,(u=(0,d.isDefined)(u)?u:(0,h.adjust)(this.from(s,1)))>(c=(0,d.isDefined)(c)?c:(0,h.adjust)(this.from(l,-1)))?(u=u>n.endValue?n.endValue:u,c=c<n.startValue?n.startValue:c):(u=u<n.startValue?n.startValue:u,c=c>n.endValue?n.endValue:c),{min:u,max:c,translate:(0,h.adjust)(t),scale:(0,h.adjust)(e)}},zoomZeroLengthRange:function(t,e){var n=this._canvasOptions,i=n.rangeMin,o=n.rangeMax,r=(o.valueOf()!==i.valueOf()?o.valueOf()-i.valueOf():g(n.rangeMinVisible.valueOf()-i.valueOf()))/n.canvasLength,a=(0,d.isDate)(o)||(0,d.isDate)(i),s="logarithmic"===this._businessRange.axisType,l=n.rangeMinVisible.valueOf()-r,u=n.rangeMaxVisible.valueOf()+r;return{min:l=s?(0,h.adjust)((0,c.raiseToExt)(l,n.base)):a?new Date(l):l,max:u=s?(0,h.adjust)((0,c.raiseToExt)(u,n.base)):a?new Date(u):u,translate:t,scale:e}},getMinScale:function(t){return t?1.1:.9},getScale:function(t,e){var n=this._canvasOptions;return n.rangeMax===n.rangeMin?1:(t=(0,d.isDefined)(t)?this._fromValue(t):n.rangeMin,e=(0,d.isDefined)(e)?this._fromValue(e):n.rangeMax,(n.rangeMax-n.rangeMin)/Math.abs(t-e))},isValid:function(t){var e=this._canvasOptions;return null!==(t=this._fromValue(t))&&!isNaN(t)&&t.valueOf()+e.rangeDoubleError>=e.rangeMin&&t.valueOf()-e.rangeDoubleError<=e.rangeMax},getCorrectValue:function(t,e){var n,i=this._breaks;return t=this._fromValue(t),this._breaks&&!0===(n=this._checkValueAboutBreaks(i,t,"trFrom","trTo",this._checkingMethodsAboutBreaks[0])).inBreak?this._toValue(e>0?n.break.trTo:n.break.trFrom):this._toValue(t)},to:function(t,e){var n=this.getBusinessRange();if((0,d.isDefined)(n.maxVisible)&&(0,d.isDefined)(n.minVisible)&&n.maxVisible.valueOf()===n.minVisible.valueOf())return(0,d.isDefined)(t)&&n.maxVisible.valueOf()===t.valueOf()?this.translateSpecialCase(0===t&&this._options.shiftZeroValue?"canvas_position_default":"canvas_position_middle"):null;t=this._fromValue(t);var i=this._canvasOptions,o=this._breaks,r={length:0},a=0;return void 0!==o&&(r=this._checkValueAboutBreaks(o,t,"trFrom","trTo",this._checkingMethodsAboutBreaks[0]),a=(0,d.isDefined)(r.breaksSize)?r.breaksSize:0),!0===r.inBreak?e>0?r.break.start:e<0?r.break.end:null:this._conversionValue(this._calculateProjection((t-i.rangeMinVisible-r.length)*i.ratioOfCanvasRange+a))},from:function(t,e){var n=this._breaks,i={length:0},o=this._canvasOptions,r=o.startPoint,a=0;return void 0!==n&&(i=this._checkValueAboutBreaks(n,t,"start","end",this._checkingMethodsAboutBreaks[1]),a=(0,d.isDefined)(i.breaksSize)?i.breaksSize:0),!0===i.inBreak?e>0?this._toValue(i.break.trTo):e<0?this._toValue(i.break.trFrom):null:this._toValue(this._calculateUnProjection((t-r-a)/o.ratioOfCanvasRange+i.length))},isValueProlonged:!1,getRange:function(){return[this._toValue(this._canvasOptions.rangeMin),this._toValue(this._canvasOptions.rangeMax)]},getScreenRange:function(){return[this._canvasOptions.startPoint,this._canvasOptions.endPoint]},add:function(t,e,n){return this._add(t,e,(this._businessRange.invert?-1:1)*n)},_add:function(t,e,n){return this._toValue(this._fromValue(t)+e*n)},_fromValue:function(t){return null!==t?Number(t):null},_toValue:function(t){return null!==t?Number(t):null},ratioOfCanvasRange:function(){return this._canvasOptions.ratioOfCanvasRange}}},function(t,e,n){"use strict";var i=n(4).noop,o=n(5).each,r=isFinite,a=Number,s=Math.round,l=n(162),u=l.formatValue,c=l.getSampleText,d=n(13).patchFontOptions,h=n(0).extend,f=n(21).inherit({ctor:function(t){var e=this;o(t,(function(t,n){e["_"+t]=n})),e._init()},dispose:function(){var t=this;return t._dispose(),o(t,(function(e){t[e]=null})),t},getOffset:function(){return a(this._options.offset)||0}}),p=f.inherit({_init:function(){this._rootElement=this._createRoot().linkOn(this._owner,{name:"value-indicator",after:"core"}),this._trackerElement=this._createTracker()},_dispose:function(){this._rootElement.linkOff()},_setupAnimation:function(){var t=this;t._options.animation&&(t._animation={step:function(e){t._actualValue=t._animation.start+t._animation.delta*e,t._actualPosition=t._translator.translate(t._actualValue),t._move()},duration:t._options.animation.duration>0?a(t._options.animation.duration):0,easing:t._options.animation.easing})},_runAnimation:function(t){var e=this._animation;e.start=this._actualValue,e.delta=t-this._actualValue,this._rootElement.animate({_:0},{step:e.step,duration:e.duration,easing:e.easing})},_createRoot:function(){return this._renderer.g().attr({class:this._className})},_createTracker:function(){return this._renderer.path([],"area")},_getTrackerSettings:i,clean:function(){return this._animation&&this._rootElement.stopAnimation(),this._rootElement.linkRemove().clear(),this._clear(),this._tracker.detach(this._trackerElement),this._options=this.enabled=this._animation=null,this},render:function(t){return this.type=t.type,this._options=t,this._actualValue=this._currentValue=this._translator.adjust(this._options.currentValue),this.enabled=this._isEnabled(),this.enabled&&(this._setupAnimation(),this._rootElement.attr({fill:this._options.color}).linkAppend(),this._tracker.attach(this._trackerElement,this,this._trackerInfo)),this},resize:function(t){return this._rootElement.clear(),this._clear(),this.visible=this._isVisible(t),this.visible&&(h(this._options,t),this._actualPosition=this._translator.translate(this._actualValue),this._render(),this._trackerElement.attr(this._getTrackerSettings()),this._move()),this},value:function(t,e){var n,i=this._rootElement,o=null;return void 0===t?this._currentValue:(null===t?(o="hidden",this._currentValue=t):(n=this._translator.adjust(t),this._currentValue!==n&&r(n)&&(this._currentValue=n,this.visible&&(this._animation&&!e?this._runAnimation(n):(this._actualValue=n,this._actualPosition=this._translator.translate(n),this._move())))),i.attr({visibility:o}),this)},_isEnabled:null,_isVisible:null,_render:null,_clear:null,_move:null}),m={};m["right-bottom"]=m.rb=[0,-1,-1,0,0,1,1,0],m["bottom-right"]=m.br=[-1,0,0,-1,1,0,0,1],m["left-bottom"]=m.lb=[0,-1,1,0,0,1,-1,0],m["bottom-left"]=m.bl=[1,0,0,-1,-1,0,0,1],m["left-top"]=m.lt=[0,1,1,0,0,-1,-1,0],m["top-left"]=m.tl=[1,0,0,1,-1,0,0,-1],m["right-top"]=m.rt=[0,1,-1,0,0,-1,1,0],m["top-right"]=m.tr=[-1,0,0,1,1,0,0,-1];var g=p.inherit({_move:function(){var t=this._getTextCloudOptions(),e=u(this._actualValue,this._options.text);this._text.attr({text:e});var n=this._text.getBBox(),i=function(t){var e,n,i=t.x,o=t.y,r=m[t.type],a=t.textWidth+2*t.horMargin,l=t.textHeight+2*t.verMargin,u=i,c=o;return e=n=t.tailLength,1&r[0]?n=Math.min(n,l/3):e=Math.min(e,a/3),{cx:s(u+r[0]*e+(r[0]+r[2])*a/2),cy:s(c+r[1]*n+(r[1]+r[3])*l/2),points:[s(i),s(o),s(i+=r[0]*(a+e)),s(o+=r[1]*(l+n)),s(i+=r[2]*a),s(o+=r[3]*l),s(i+=r[4]*a),s(o+=r[5]*l),s(i+=r[6]*(a-e)),s(o+=r[7]*(l-n))]}}({x:t.x,y:t.y,textWidth:n.width||e.length*this._textUnitWidth,textHeight:n.height||this._textHeight,horMargin:this._options.horizontalOffset,verMargin:this._options.verticalOffset,tailLength:this._options.arrowLength,type:t.type});this._text.attr({x:i.cx,y:i.cy+this._textVerticalOffset}),this._cloud.attr({points:i.points}),this._trackerElement&&this._trackerElement.attr({points:i.points})},_measureText:function(){var t,e,n;this._textVerticalOffset||(t=this._createRoot().append(this._owner),n=c(this._translator,this._options.text),e=this._renderer.text(n,0,0).attr({align:"center"}).css(d(this._options.text.font)).append(t).getBBox(),t.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height,this._textUnitWidth=this._textWidth/n.length,this._textFullWidth=this._textWidth+2*this._options.horizontalOffset,this._textFullHeight=this._textHeight+2*this._options.verticalOffset)},_render:function(){this._measureText(),this._cloud=this._cloud||this._renderer.path([],"area").append(this._rootElement),this._text=this._text||this._renderer.text().append(this._rootElement),this._text.attr({align:"center"}).css(d(this._options.text.font))},_clear:function(){delete this._cloud,delete this._text},getTooltipParameters:function(){var t=this._getTextCloudOptions();return{x:t.x,y:t.y,value:this._currentValue,color:this._options.color}}}),_=p.inherit({_measureText:function(){var t,e;this._hasText=this._isTextVisible(),this._hasText&&!this._textVerticalOffset&&(t=this._createRoot().append(this._owner),e=this._renderer.text(c(this._translator,this._options.text),0,0).attr({class:"dxg-text",align:"center"}).css(d(this._options.text.font)).append(t).getBBox(),t.remove(),this._textVerticalOffset=-e.y-e.height/2,this._textWidth=e.width,this._textHeight=e.height)},_move:function(){this._updateBarItemsPositions(),this._hasText&&(this._text.attr({text:u(this._actualValue,this._options.text)}),this._updateTextPosition(),this._updateLinePosition())},_updateBarItems:function(){var t,e=this._options,n=this._translator;this._setBarSides(),this._startPosition=n.translate(n.getDomainStart()),this._endPosition=n.translate(n.getDomainEnd()),this._basePosition=n.translate(e.baseValue),this._space=this._getSpace();var i=e.backgroundColor||"none";"none"!==i&&this._space>0?t=e.containerBackgroundColor||"none":(this._space=0,t="none"),this._backItem1.attr({fill:i}),this._backItem2.attr({fill:i}),this._spaceItem1.attr({fill:t}),this._spaceItem2.attr({fill:t})},_getSpace:function(){return 0},_updateTextItems:function(){this._hasText?(this._line=this._line||this._renderer.path([],"line").attr({class:"dxg-main-bar","stroke-linecap":"square"}).append(this._rootElement),this._text=this._text||this._renderer.text("",0,0).attr({class:"dxg-text"}).append(this._rootElement),this._text.attr({align:this._getTextAlign()}).css(this._getFontOptions()),this._setTextItemsSides()):(this._line&&(this._line.remove(),delete this._line),this._text&&(this._text.remove(),delete this._text))},_isTextVisible:function(){return!1},_getTextAlign:function(){return"center"},_getFontOptions:function(){var t=this._options,e=t.text.font;return e&&e.color||(e=h({},e,{color:t.color})),d(e)},_updateBarItemsPositions:function(){var t=this._getPositions();this._backItem1.attr(this._buildItemSettings(t.start,t.back1)),this._backItem2.attr(this._buildItemSettings(t.back2,t.end)),this._spaceItem1.attr(this._buildItemSettings(t.back1,t.main1)),this._spaceItem2.attr(this._buildItemSettings(t.main2,t.back2)),this._mainItem.attr(this._buildItemSettings(t.main1,t.main2)),this._trackerElement&&this._trackerElement.attr(this._buildItemSettings(t.main1,t.main2))},_render:function(){this._measureText(),this._backItem1||(this._backItem1=this._createBarItem(),this._backItem1.attr({class:"dxg-back-bar"})),this._backItem2||(this._backItem2=this._createBarItem(),this._backItem2.attr({class:"dxg-back-bar"})),this._spaceItem1||(this._spaceItem1=this._createBarItem(),this._spaceItem1.attr({class:"dxg-space-bar"})),this._spaceItem2||(this._spaceItem2=this._createBarItem(),this._spaceItem2.attr({class:"dxg-space-bar"})),this._mainItem||(this._mainItem=this._createBarItem(),this._mainItem.attr({class:"dxg-main-bar"})),this._updateBarItems(),this._updateTextItems()},_clear:function(){delete this._backItem1,delete this._backItem2,delete this._spaceItem1,delete this._spaceItem2,delete this._mainItem,delete this._hasText,delete this._line,delete this._text},getTooltipParameters:function(){var t=this._getTooltipPosition();return{x:t.x,y:t.y,value:this._currentValue,color:this._options.color,offset:0}}});e.BaseElement=f,e.BaseIndicator=p,e.BaseTextCloudMarker=g,e.BaseRangeBar=_},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(20)),r=d(n(42)),a=d(n(69)),s=d(n(8)),l=n(0),u=n(2),c=n(73);function d(t){return t&&t.__esModule?t:{default:t}}var h=a.default.inherit({_initTemplates:function(){var t=this;this.callBase(),this._templateManager.addDefaultTemplates({item:new c.BindableTemplate((function(e,n,i){t._prepareItemStyles(e),t._createComponent(e,r.default,(0,l.extend)({},i,n,t._getBasicButtonOptions(),{_templateData:i,template:i.template||t.option("buttonTemplate")}))}),["text","type","icon","disabled","visible","hint"],this.option("integrationOptions.watchMethod"))})},_getBasicButtonOptions:function(){return{focusStateEnabled:!1,onClick:null,hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode")}},_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{itemTemplateProperty:null})},_prepareItemStyles:function(t){var e=t.data("dxItemIndex");0===e&&t.addClass("dx-buttongroup-first-item");var n=this.option("items");n&&e===n.length-1&&t.addClass("dx-buttongroup-last-item"),t.addClass("dx-shape-standard")},_renderItemContent:function(t){return t.container=(0,i.default)(t.container).parent(),this.callBase(t)},_renderItemContentByNode:function(t,e){return t.container=(0,i.default)(t.container.children().first()),this.callBase(t,e)},_focusTarget:function(){return this.$element().parent()},_keyboardEventBindingTarget:function(){return this._focusTarget()},_refreshContent:function(){this._prepareContent(),this._renderContent()},_itemClass:function(){return"dx-buttongroup-item"},_itemSelectHandler:function(t){"single"===this.option("selectionMode")&&this.isItemSelected(t.currentTarget)||this.callBase(t)}}),f=o.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{hoverStateEnabled:!0,focusStateEnabled:!0,selectionMode:"single",selectedItems:[],selectedItemKeys:[],stylingMode:"contained",keyExpr:"text",items:[],buttonTemplate:"content",onSelectionChanged:null,onItemClick:null})},_setDeprecatedOptions:function(){this.callBase(),(0,l.extend)(this._deprecatedOptions,{itemTemplate:{since:"19.2",alias:"buttonTemplate"}})},_init:function(){this.callBase(),this._createItemClickAction()},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initMarkup:function(){this.setAria("role","group"),this.$element().addClass("dx-buttongroup"),this._renderButtons(),this._syncSelectionOptions(),this.callBase()},_fireSelectionChangeEvent:function(t,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:t,removedItems:e})},_renderButtons:function(){var t=this,e=(0,i.default)("<div>").addClass("dx-buttongroup-wrapper").appendTo(this.$element()),n=this.option("selectedItems"),o={selectionMode:this.option("selectionMode"),items:this.option("items"),keyExpr:this.option("keyExpr"),buttonTemplate:this.option("buttonTemplate"),scrollingEnabled:!1,selectedItemKeys:this.option("selectedItemKeys"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),stylingMode:this.option("stylingMode"),accessKey:this.option("accessKey"),tabIndex:this.option("tabIndex"),noDataText:"",selectionRequired:!1,onItemRendered:function(e){var n=t.option("width");(0,u.isDefined)(n)&&(0,i.default)(e.itemElement).addClass("dx-buttongroup-item-has-width")},onSelectionChanged:function(e){t._syncSelectionOptions(),t._fireSelectionChangeEvent(e.addedItems,e.removedItems)},onItemClick:function(e){t._itemClickAction(e)}};(0,u.isDefined)(n)&&n.length&&(o.selectedItems=n),this._buttonsCollection=this._createComponent(e,h,o)},_syncSelectionOptions:function(){this._setOptionWithoutOptionChange("selectedItems",this._buttonsCollection.option("selectedItems")),this._setOptionWithoutOptionChange("selectedItemKeys",this._buttonsCollection.option("selectedItemKeys"))},_optionChanged:function(t){switch(t.name){case"stylingMode":case"selectionMode":case"keyExpr":case"buttonTemplate":case"items":case"activeStateEnabled":case"focusStateEnabled":case"hoverStateEnabled":case"tabIndex":this._invalidate();break;case"selectedItemKeys":case"selectedItems":this._buttonsCollection.option(t.name,t.value);break;case"onItemClick":this._createItemClickAction();break;case"onSelectionChanged":break;case"width":this.callBase(t),this._buttonsCollection.itemElements().toggleClass("dx-buttongroup-item-has-width",!!t.value);break;default:this.callBase(t)}}});(0,s.default)("dxButtonGroup",f),t.exports=f,t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=n(739),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(4),o=v(n(6)),r=n(2),a=n(5),s=n(0),l=n(16),u=n(11),c=v(n(118)),d=v(n(227)),h=v(n(287)),f=v(n(288)),p=v(n(407)),m=v(n(408)),g=v(n(755)),_=n(13);function v(t){return t&&t.__esModule?t:{default:t}}var y=Array.isArray,b=["_reinit","_updateDataSource","_dataInit","_forceRender","_resize"];function w(t,e){var n=e.end-e.start,i=0;for(t.forEach((function(t){i+=t.getBoundingRect().width}));n<i;)i-=x(t)}function x(t){var e=t.reduce((function(t,e,n){if(!e)return t;var i=e.value();return i<t.value?{value:i,rollingStock:e,index:n}:t}),{rollingStock:void 0,value:1/0,index:void 0});e.rollingStock.getLabels()[0].draw(!1);var n=e.rollingStock.getBoundingRect().width;return t[e.index]=null,n}function C(t){var e,n,i,o,r=!1;for(e=0,i=t.length-1;e<i;e++){for(n=e+1,o=t.length;n<o;n++)if(e!==n&&S(t[e],t[n],!0)){r=!0;break}if(r)break}return r}function S(t,e,n){if(t&&e){var i=t.getBoundingRect(),o=e.getBoundingRect(),r=!n||(i.oppositeStart<=o.oppositeStart&&i.oppositeEnd>o.oppositeStart||o.oppositeStart<=i.oppositeStart&&o.oppositeEnd>i.oppositeStart);return i.end>o.start&&r}}function k(t){var e,n,i;for(e=0;e<t.length-1;e++)S(n=i||t[e],t[e+1])?(n.toChain(t[e+1]),t[e+1]=null,i=n):i=t[e+1]||n}function I(t,e){var n,i,o,r,a;for(n=0;n<t.length;n++){if(T(o=t[n],e))for(a=o.getBoundingRect(),i=n+1;i<t.length;i++)if((r=t[i])&&r.getBoundingRect().end>a.start-(a.end-e.end)){r.toChain(o),t[n]=o=null;break}o&&o.setRollingStockInCanvas(e)}}function T(t,e){return t&&t.getBoundingRect().end>e.end}function E(t,e,n){var i=t.getBoundingRect(),o=i.x,r=i.y,a=i.x+i.width,s=i.y+i.height;return this.labels=[t],this.shiftFunction=n,this._bBox={start:e?o:r,width:e?i.width:i.height,end:e?a:s,oppositeStart:e?r:o,oppositeEnd:e?s:a},this._initialPosition=e?i.x:i.y,this}E.prototype={toChain:function(t){var e=t.getBoundingRect();t.shift(e.start-this._bBox.end),this._changeBoxWidth(e.width),this.labels=this.labels.concat(t.labels)},getBoundingRect:function(){return this._bBox},shift:function(t){var e=this.shiftFunction;(0,a.each)(this.labels,(function(n,i){var o=i.getBoundingRect(),r=e(o,t);i.hideInsideLabel(r)||i.shift(r.x,r.y)})),this._bBox.end-=t,this._bBox.start-=t},setRollingStockInCanvas:function(t){this._bBox.end>t.end&&this.shift(this._bBox.end-t.end)},getLabels:function(){return this.labels},value:function(){return this.labels[0].getData().value},getInitialPosition:function(){return this._initialPosition},_changeBoxWidth:function(t){this._bBox.end+=t,this._bBox.width+=t}};var O={resolveLabelOverlappingInOneDirection:function(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return 0},r=[],a={start:n?e.left:e.top,end:n?e.width-e.right:e.height-e.bottom},s=!1;if(t.forEach((function(t){t&&(s=s||t.series.isStackedSeries()||t.series.isFullStackedSeries(),t.getLabels().forEach((function(t){t.isVisible()&&r.push(new E(t,n,i))})))})),s)!n&&r.reverse();else{var l=r.slice();r.sort((function(t,e){return o(t,e)||t.getInitialPosition()-e.getInitialPosition()||l.indexOf(t)-l.indexOf(e)}))}return!!C(r)&&(w(r,a),k(r),r.reverse(),I(r,a),!0)}},M=c.default.inherit({_eventsMap:{onSeriesClick:{name:"seriesClick"},onPointClick:{name:"pointClick"},onArgumentAxisClick:{name:"argumentAxisClick"},onLegendClick:{name:"legendClick"},onSeriesSelectionChanged:{name:"seriesSelectionChanged"},onPointSelectionChanged:{name:"pointSelectionChanged"},onSeriesHoverChanged:{name:"seriesHoverChanged"},onPointHoverChanged:{name:"pointHoverChanged"},onDone:{name:"done"},onZoomStart:{name:"zoomStart"},onZoomEnd:{name:"zoomEnd"}},_fontFields:["legend.font","legend.title.font","legend.title.subtitle.font","commonSeriesSettings.label.font"],_rootClassPrefix:"dxc",_rootClass:"dxc-chart",_initialChanges:["INIT"],_themeDependentChanges:["REFRESH_SERIES_REINIT"],_getThemeManagerOptions:function(){var t=this.callBase.apply(this,arguments);return t.options=this.option(),t},_createThemeManager:function(){var t=this.option(),e=new p.default.ThemeManager(this._getThemeManagerOptions());return e.setTheme(t.theme,t.rtlEnabled),e},_initCore:function(){this._canvasClipRect=this._renderer.clipRect(),this._createHtmlStructure(),this._createLegend(),this._createTracker(),this._needHandleRenderComplete=!0,this.layoutManager=new m.default.LayoutManager,this._createScrollBar(),o.default.on(this._$element,"contextmenu",(function(t){((0,u.isTouchEvent)(t)||(0,u.isPointerEvent)(t))&&t.preventDefault()})),o.default.on(this._$element,"MSHoldVisual",(function(t){t.preventDefault()}))},_getLayoutItems:i.noop,_layoutManagerOptions:function(){return this._themeManager.getOptions("adaptiveLayout")},_reinit:function(){(0,_.setCanvasValues)(this._canvas),this._reinitAxes(),this._requestChange(["DATA_SOURCE","DATA_INIT","CORRECT_AXIS","FULL_RENDER"])},_correctAxes:i.noop,_createHtmlStructure:function(){var t=this._renderer,e=t.root,n=function(){return t.g().attr({class:"dxc-constant-lines-group"}).linkOn(e,"constant-lines")};this._constantLinesGroup={dispose:function(){this.under.dispose(),this.above.dispose()},linkOff:function(){this.under.linkOff(),this.above.linkOff()},clear:function(){this.under.linkRemove().clear(),this.above.linkRemove().clear()},linkAppend:function(){this.under.linkAppend(),this.above.linkAppend()}},this._backgroundRect=t.rect().attr({fill:"gray",opacity:1e-4}).append(e),this._panesBackgroundGroup=t.g().attr({class:"dxc-background"}).append(e),this._stripsGroup=t.g().attr({class:"dxc-strips-group"}).linkOn(e,"strips"),this._gridGroup=t.g().attr({class:"dxc-grids-group"}).linkOn(e,"grids"),this._panesBorderGroup=t.g().attr({class:"dxc-border"}).linkOn(e,"border"),this._axesGroup=t.g().attr({class:"dxc-axes-group"}).linkOn(e,"axes"),this._labelAxesGroup=t.g().attr({class:"dxc-strips-labels-group"}).linkOn(e,"strips-labels"),this._constantLinesGroup.under=n(),this._seriesGroup=t.g().attr({class:"dxc-series-group"}).linkOn(e,"series"),this._constantLinesGroup.above=n(),this._scaleBreaksGroup=t.g().attr({class:"dxc-scale-breaks"}).linkOn(e,"scale-breaks"),this._labelsGroup=t.g().attr({class:"dxc-labels-group"}).linkOn(e,"labels"),this._crosshairCursorGroup=t.g().attr({class:"dxc-crosshair-cursor"}).linkOn(e,"crosshair"),this._legendGroup=t.g().attr({class:"dxc-legend","clip-path":this._getCanvasClipRectID()}).linkOn(e,"legend").linkAppend(e).enableLinks(),this._scrollBarGroup=t.g().attr({class:"dxc-scroll-bar"}).linkOn(e,"scroll-bar")},_disposeObjectsInArray:function(t,e){(0,a.each)(this[t]||[],(function(t,n){e&&n?(0,a.each)(e,(function(t,e){n[e]&&n[e].dispose()})):n&&n.dispose()})),this[t]=null},_disposeCore:function(){var t=this,e=function(e){t[e]&&(t[e].dispose(),t[e]=null)},n=function(e){t[e].linkOff()},i=this._disposeObjectsInArray;t._renderer.stopAllAnimations(),i.call(t,"series"),e("_tracker"),e("_crosshair"),t.layoutManager=t._userOptions=t._canvas=t._groupsData=null,n("_stripsGroup"),n("_gridGroup"),n("_axesGroup"),n("_constantLinesGroup"),n("_labelAxesGroup"),n("_panesBorderGroup"),n("_seriesGroup"),n("_labelsGroup"),n("_crosshairCursorGroup"),n("_legendGroup"),n("_scrollBarGroup"),n("_scaleBreaksGroup"),e("_canvasClipRect"),e("_panesBackgroundGroup"),e("_backgroundRect"),e("_stripsGroup"),e("_gridGroup"),e("_axesGroup"),e("_constantLinesGroup"),e("_labelAxesGroup"),e("_panesBorderGroup"),e("_seriesGroup"),e("_labelsGroup"),e("_crosshairCursorGroup"),e("_legendGroup"),e("_scrollBarGroup"),e("_scaleBreaksGroup")},_getAnimationOptions:function(){return this._themeManager.getOptions("animation")},_getDefaultSize:function(){return{width:400,height:400}},_getOption:function(t){return this._themeManager.getOptions(t)},_applySize:function(t){this._rect=t.slice(),this._changes.has("FULL_RENDER")||this._processRefreshData("_resize")},_resize:function(){this._doRender(this.__renderOptions||{animate:!1,isResize:!0})},_trackerType:"ChartTracker",_createTracker:function(){this._tracker=new g.default[this._trackerType]({seriesGroup:this._seriesGroup,renderer:this._renderer,tooltip:this._tooltip,legend:this._legend,eventTrigger:this._eventTrigger})},_getTrackerSettings:function(){return(0,s.extend)({chart:this},this._getSelectionModes())},_getSelectionModes:function(){var t=this._themeManager;return{seriesSelectionMode:t.getOptions("seriesSelectionMode"),pointSelectionMode:t.getOptions("pointSelectionMode")}},_updateTracker:function(t){this._tracker.update(this._getTrackerSettings()),this._tracker.setCanvases({left:0,right:this._canvas.width,top:0,bottom:this._canvas.height},t)},_createCanvasFromRect:function(t){var e=this._canvas;return(0,_.setCanvasValues)({left:t[0],top:t[1],right:e.width-t[2],bottom:e.height-t[3],width:e.width,height:e.height})},_doRender:function(t){if(0!==this._canvas.width||0!==this._canvas.height){this._resetIsReady();var e=this._prepareDrawOptions(t),n=e.recreateCanvas;this._preserveOriginalCanvas(),n?this.__currentCanvas=this._canvas:this._canvas=this.__currentCanvas,n&&this._updateCanvasClipRect(this._canvas),this._canvas=this._createCanvasFromRect(this._rect),this._renderer.stopAllAnimations(!0),this._cleanGroups();var i=new Date;this._renderElements(e),this._lastRenderingTime=new Date-i}},_preserveOriginalCanvas:function(){this.__originalCanvas=this._canvas,this._canvas=(0,s.extend)({},this._canvas)},_layoutAxes:i.noop,_renderElements:function(t){var e,n,i,o=this,r=o._prepareToRender(t),a=o._isRotated(),l=o._isLegendInside(),u=[];(0,s.extend)({},o._canvas),o._renderer.lock(),t.drawLegend&&o._legend&&o._legendGroup.linkAppend(),o.layoutManager.setOptions(o._layoutManagerOptions());var c=o._getLayoutTargets();this._layoutAxes((function(e){var n=e?(0,s.extend)({},t,{animate:!1}):t,i=o._renderAxes(n,r);o._shrinkAxes(e,i)})),o._applyClipRects(r),o._appendSeriesGroups(),o._createCrosshairCursor(),c.forEach((function(t){var e=t.canvas;u.push({left:e.left,right:e.width-e.right,top:e.top,bottom:e.height-e.bottom})})),o._scrollBar&&("discrete"===(e=o._argumentAxes[0].getTranslator().getBusinessRange()).axisType&&e.categories&&e.categories.length<=1||"discrete"!==e.axisType&&e.min===e.max?n=i=void 0:(n=e.minVisible,i=e.maxVisible),o._scrollBar.init(e,!o._argumentAxes[0].getOptions().valueMarginsEnabled).setPosition(n,i)),o._updateTracker(u),o._updateLegendPosition(t,l),o._applyPointMarkersAutoHiding(),o._renderSeries(t,a,l),o._renderer.unlock()},_updateLegendPosition:i.noop,_createCrosshairCursor:i.noop,_appendSeriesGroups:function(){this._seriesGroup.linkAppend(),this._labelsGroup.linkAppend(),this._appendAdditionalSeriesGroups()},_renderSeries:function(t,e,n){this._calculateSeriesLayout(t,e),this._renderSeriesElements(t,n)},_calculateSeriesLayout:function(t,e){t.hideLayoutLabels=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),e)&&!this._themeManager.getOptions("adaptiveLayout").keepLabels,this._updateSeriesDimensions(t)},_getArgFilter:function(){return function(){return!0}},_getValFilter:function(t){return function(){return!0}},_getPointsToAnimation:function(t){var e=this,n=this._getArgFilter();return t.map((function(t){var i=e._getValFilter(t);return t.getPoints().filter((function(t){return t.getOptions().visible&&n(t.argument)&&(i(t.getMinValue(!0))||i(t.getMaxValue(!0)))})).length}))},_renderSeriesElements:function(t,e){var n,i,o=this.series,r=o.length,a=this._themeManager.getOptions("resolveLabelOverlapping"),s=this._getPointsToAnimation(o);for(n=0;n<r;n++)i=o[n],this._applyExtraSettings(i,t),i.draw(t.animate&&s[n]<=t.animationPointsLimit&&this._renderer.animationEnabled(),t.hideLayoutLabels,this._getLegendCallBack(i));"none"===a?this._adjustSeriesLabels(!1):this._locateLabels(a),this._renderTrackers(e),this._tracker.repairTooltip(),this._clearCanvas(),this._renderExtraElements(),this._drawn(),this._renderCompleteHandler()},_locateLabels:function(t){this._resolveLabelOverlapping(t)},_renderExtraElements:function(){},_clearCanvas:function(){this._canvas=this.__originalCanvas},_resolveLabelOverlapping:function(t){var e;switch(t){case"stack":e=this._resolveLabelOverlappingStack;break;case"hide":e=this._resolveLabelOverlappingHide;break;case"shift":e=this._resolveLabelOverlappingShift}return(0,r.isFunction)(e)&&e.call(this)},_getVisibleSeries:function(){return(0,i.grep)(this.getAllSeries(),(function(t){return t.isVisible()}))},_resolveLabelOverlappingHide:function(){var t,e,n,i,o,r,a,s,l,u=[],c=this._getVisibleSeries();for(o=0;o<c.length;o++)for(a=c[o].getVisiblePoints(),r=0;r<a.length;r++)u.push.apply(u,a[r].getLabels());for(o=0;o<u.length;o++)if((t=u[o]).isVisible())for(n=t.getBoundingRect(),r=o+1;r<u.length;r++)i=(e=u[r]).getBoundingRect(),l=i,((s=n).x<=l.x&&l.x<=s.x+s.width||s.x>=l.x&&s.x<=l.x+l.width)&&(s.y<=l.y&&l.y<=s.y+s.height||s.y>=l.y&&s.y<=l.y+l.height)&&e.draw(!1)},_cleanGroups:function(){this._stripsGroup.linkRemove().clear(),this._gridGroup.linkRemove().clear(),this._axesGroup.linkRemove().clear(),this._constantLinesGroup.above.clear(),this._labelAxesGroup.linkRemove().clear(),this._labelsGroup.linkRemove().clear(),this._crosshairCursorGroup.linkRemove().clear(),this._scaleBreaksGroup.linkRemove().clear()},_allowLegendInsidePosition:function(){return!1},_createLegend:function(){var t=function(t){var e,n={nameField:(e=t)+"Name",colorField:e+"Color",indexField:e+"Index"};return{getFormatObject:function(t){var e={};return e[n.indexField]=t.id,e[n.colorField]=t.states.normal.fill,e[n.nameField]=t.text,e},textField:n.nameField}}(this._legendDataField);this._legend=new d.default.Legend({renderer:this._renderer,widget:this,group:this._legendGroup,backgroundClass:"dxc-border",itemGroupClass:"dxc-item",titleGroupClass:"dxc-title",textField:t.textField,getFormatObject:t.getFormatObject,allowInsidePosition:this._allowLegendInsidePosition()}),this._updateLegend(),this._layout.add(this._legend)},_updateLegend:function(){var t=this._themeManager,e=t.getOptions("legend"),n=this._getLegendData();e.containerBackgroundColor=t.getOptions("containerBackgroundColor"),e._incidentOccurred=this._incidentOccurred,this._legend.update(n,e,t.theme("legend").title),this._change(["LAYOUT"])},_prepareDrawOptions:function(t){var e=this._getAnimationOptions(),n=(0,s.extend)({},{force:!1,adjustAxes:!0,drawLegend:!0,drawTitle:!0,animate:e.enabled,animationPointsLimit:e.maxPointCountSupported},t,this.__renderOptions);return(0,r.isDefined)(n.recreateCanvas)||(n.recreateCanvas=n.adjustAxes&&n.drawLegend&&n.drawTitle),n},_processRefreshData:function(t){var e=(0,l.inArray)(this._currentRefreshData,b),n=(0,l.inArray)(t,b);(!this._currentRefreshData||e>=0&&n<e)&&(this._currentRefreshData=t),this._requestChange(["REFRESH"])},_getLegendData:function(){return(0,_.map)(this._getLegendTargets(),(function(t){var e=t.legendData,n=t.getLegendStyles,i=n.normal.opacity;t.visible||((!(0,r.isDefined)(i)||i>.3)&&(i=.3),e.textOpacity=.3);var o={opacity:i};return e.states={hover:(0,s.extend)({},n.hover,o),selection:(0,s.extend)({},n.selection,o),normal:(0,s.extend)({},n.normal,o)},e}))},_getLegendOptions:function(t){return{legendData:{text:t[this._legendItemTextField],id:t.index,visible:!0},getLegendStyles:t.getLegendStyles(),visible:t.isVisible()}},_disposeSeries:function(t){var e;this.series&&((0,r.isDefined)(t)?(this.series[t].dispose(),this.series.splice(t,1)):((0,a.each)(this.series,(function(t,e){return e.dispose()})),this.series.length=0)),(null===(e=this.series)||void 0===e?void 0:e.length)||(this.series=[])},_disposeSeriesFamilies:function(){(0,a.each)(this.seriesFamilies||[],(function(t,e){e.dispose()})),this.seriesFamilies=null,this._needHandleRenderComplete=!0},_optionChanged:function(t){this._themeManager.resetOptions(t.name),this.callBase.apply(this,arguments)},_applyChanges:function(){var t=this;t._themeManager.update(t._options.silent()),t.callBase.apply(t,arguments)},_optionChangesMap:{animation:"ANIMATION",dataSource:"DATA_SOURCE",palette:"PALETTE",paletteExtensionMode:"PALETTE",legend:"FORCE_DATA_INIT",seriesTemplate:"FORCE_DATA_INIT",export:"FORCE_RENDER",valueAxis:"AXES_AND_PANES",argumentAxis:"AXES_AND_PANES",commonAxisSettings:"AXES_AND_PANES",panes:"AXES_AND_PANES",commonPaneSettings:"AXES_AND_PANES",defaultPane:"AXES_AND_PANES",useAggregation:"AXES_AND_PANES",containerBackgroundColor:"AXES_AND_PANES",rotated:"ROTATED",autoHidePointMarkers:"REFRESH_SERIES_REINIT",customizePoint:"REFRESH_SERIES_REINIT",customizeLabel:"REFRESH_SERIES_REINIT",scrollBar:"SCROLL_BAR"},_optionChangesOrder:["ROTATED","PALETTE","REFRESH_SERIES_REINIT","AXES_AND_PANES","INIT","REINIT","DATA_SOURCE","REFRESH_SERIES_DATA_INIT","DATA_INIT","FORCE_DATA_INIT","REFRESH_AXES","CORRECT_AXIS"],_customChangesOrder:["ANIMATION","REFRESH_SERIES_FAMILIES","FORCE_FIRST_DRAWING","FORCE_DRAWING","FORCE_RENDER","VISUAL_RANGE","SCROLL_BAR","REINIT","REFRESH","FULL_RENDER"],_change_ANIMATION:function(){this._renderer.updateAnimationOptions(this._getAnimationOptions())},_change_DATA_SOURCE:function(){this._needHandleRenderComplete=!0,this._updateDataSource()},_change_PALETTE:function(){this._themeManager.updatePalette(),this._refreshSeries("DATA_INIT")},_change_REFRESH_SERIES_DATA_INIT:function(){this._refreshSeries("DATA_INIT")},_change_DATA_INIT:function(){this.series&&!this.needToPopulateSeries||this._changes.has("FORCE_DATA_INIT")||this._dataInit()},_change_FORCE_DATA_INIT:function(){this._dataInit()},_change_REFRESH_SERIES_FAMILIES:function(){this._processSeriesFamilies(),this._populateBusinessRange(),this._processRefreshData("_forceRender")},_change_FORCE_RENDER:function(){this._processRefreshData("_forceRender")},_change_AXES_AND_PANES:function(){this._refreshSeries("INIT")},_change_ROTATED:function(){this._createScrollBar(),this._refreshSeries("INIT")},_change_REFRESH_SERIES_REINIT:function(){this._refreshSeries("INIT")},_change_REFRESH_AXES:function(){(0,_.setCanvasValues)(this._canvas),this._reinitAxes(),this._requestChange(["CORRECT_AXIS","FULL_RENDER"])},_change_SCROLL_BAR:function(){this._createScrollBar(),this._processRefreshData("_forceRender")},_change_REINIT:function(){this._processRefreshData("_reinit")},_change_FORCE_DRAWING:function(){this._resetComponentsAnimation()},_change_FORCE_FIRST_DRAWING:function(){this._resetComponentsAnimation(!0)},_resetComponentsAnimation:function(t){this.series.forEach((function(e){e.resetApplyingAnimation(t)})),this._resetAxesAnimation(t)},_resetAxesAnimation:i.noop,_refreshSeries:function(t){this.needToPopulateSeries=!0,this._requestChange([t])},_change_CORRECT_AXIS:function(){this._correctAxes()},_doRefresh:function(){var t=this._currentRefreshData;t&&(this._currentRefreshData=null,this._renderer.stopAllAnimations(!0),this[t]())},_updateCanvasClipRect:function(t){var e=Math.max(t.width-t.left-t.right,0),n=Math.max(t.height-t.top-t.bottom,0);this._canvasClipRect.attr({x:t.left,y:t.top,width:e,height:n}),this._backgroundRect.attr({x:t.left,y:t.top,width:e,height:n})},_getCanvasClipRectID:function(){return this._canvasClipRect.id},_dataSourceChangedHandler:function(){this._changes.has("INIT")?this._requestChange(["DATA_INIT"]):this._requestChange(["FORCE_DATA_INIT"])},_dataInit:function(){this._dataSpecificInit(!0)},_processSingleSeries:function(t){t.createPoints(!1)},_handleSeriesDataUpdated:function(){var t=this;this._getVisibleSeries().some((function(t){return t.useAggregation()}))&&this._populateMarginOptions(),this.series.forEach((function(e){return t._processSingleSeries(e)}),this)},_dataSpecificInit:function(t){this.series&&!this.needToPopulateSeries||(this.series=this._populateSeries()),this._repopulateSeries(),this._seriesPopulatedHandlerCore(),this._populateBusinessRange(),this._tracker.updateSeries(this.series,this._changes.has("INIT")),this._updateLegend(),t&&this._requestChange(["FULL_RENDER"])},_forceRender:function(){this._doRender({force:!0})},_repopulateSeries:function(){var t=this._themeManager,e=this._dataSourceItems(),n=t.getOptions("dataPrepareSettings");t.getOptions("seriesTemplate")&&this._populateSeries(e),this._groupSeries();var i=h.default.validateData(e,this._groupsData,this._incidentOccurred,n);t.resetPalette(),this.series.forEach((function(t){t.updateData(i[t.getArgumentField()])})),this._handleSeriesDataUpdated()},_renderCompleteHandler:function(){var t=!0;this._needHandleRenderComplete&&((0,a.each)(this.series,(function(e,n){t=t&&n.canRenderCompleteHandle()})),t&&(this._needHandleRenderComplete=!1,this._eventTrigger("done",{target:this})))},_dataIsReady:function(){return(0,r.isDefined)(this.option("dataSource"))&&this._dataIsLoaded()},_populateSeriesOptions:function(t){for(var e,n,i=this,o=i._themeManager,r=o.getOptions("seriesTemplate"),a=r?(0,_.processSeriesTemplate)(r,t||[]):i.option("series"),l=y(a)?a:a?[a]:[],u=i._getExtraOptions(),c=[],d=function(t){i._specialProcessSeries(),i._populateBusinessRange(t&&t.getValueAxis(),!0),i._renderer.stopAllAnimations(!0),i._updateLegend(),i._requestChange(["FULL_RENDER"])},h=0;h<l.length;h++)(e=(0,s.extend)(!0,{},l[h],u)).name||(e.name="Series "+(h+1).toString()),e.rotated=i._isRotated(),e.customizePoint=o.getOptions("customizePoint"),e.customizeLabel=o.getOptions("customizeLabel"),e.visibilityChanged=d,e.incidentOccurred=i._incidentOccurred,n=o.getOptions("series",e,l.length),i._checkPaneName(n)&&c.push(n);return c},_populateSeries:function(t){var e,n=this,i=[],o=n._incidentOccurred,r=n._populateSeriesOptions(t),l=!1;n.needToPopulateSeries=!1,(0,a.each)(r,(function(t,e){var o=n.series&&n.series.filter((function(t){return t.name===e.name&&-1===i.map((function(t){return t.series})).indexOf(t)}))[0];o&&o.type===e.type?i.push({series:o,options:e}):(i.push({options:e}),l=!0)})),n._tracker.clearHover(),(0,a.reverseEach)(n.series,(function(t,e){i.some((function(t){return e===t.series}))||(n._disposeSeries(t),l=!0)})),!l&&(l=i.some((function(t){return t.series.name!==r[t.series.index].name}))),n.series=[],l&&n._disposeSeriesFamilies(),n._themeManager.resetPalette();var u=function(t){n.series.forEach((function(e){e.notify(t)}))};return(0,a.each)(i,(function(t,i){var r=i.options,a={commonSeriesModes:n._getSelectionModes(),argumentAxis:n.getArgumentAxis(),valueAxis:n._getValueAxis(r.pane,r.axis)};i.series?(e=i.series).updateOptions(r,a):e=new f.default.Series((0,s.extend)({renderer:n._renderer,seriesGroup:n._seriesGroup,labelsGroup:n._labelsGroup,eventTrigger:n._eventTrigger,eventPipe:u,incidentOccurred:o},a),r),e.isUpdated?(e.index=n.series.length,n.series.push(e)):o("E2101",[r.type])})),n.series},getStackedPoints:function(t){var e=t.series.getStackName();return this._getVisibleSeries().reduce((function(n,i){return((0,r.isDefined)(i.getStackName())||(0,r.isDefined)(e))&&e!==i.getStackName()||(n=n.concat(i.getPointsByArg(t.argument))),n}),[])},getAllSeries:function(){return(this.series||[]).slice()},getSeriesByName:function(t){var e=null;return(0,a.each)(this.series,(function(n,i){if(i.name===t)return e=i,!1})),e},getSeriesByPos:function(t){return(this.series||[])[t]},clearSelection:function(){this._tracker.clearSelection()},hideTooltip:function(){this._tracker._hideTooltip()},clearHover:function(){this._tracker.clearHover()},render:function(t){var e=this;return e.__renderOptions=t,e.__forceRender=t&&t.force,e.callBase.apply(e,arguments),e.__renderOptions=e.__forceRender=null,e},refresh:function(){this._disposeSeries(),this._disposeSeriesFamilies(),this._requestChange(["CONTAINER_SIZE","REFRESH_SERIES_REINIT"])},_getMinSize:function(){var t=this._layoutManagerOptions();return[t.width,t.height]},_change_REFRESH:function(){this._changes.has("INIT")?this._currentRefreshData=null:this._doRefresh()},_change_FULL_RENDER:function(){this._forceRender()},_change_INIT:function(){this._reinit()},_stopCurrentHandling:function(){this._tracker.stopCurrentHandling()}});["series","commonSeriesSettings","dataPrepareSettings","seriesSelectionMode","pointSelectionMode","synchronizeMultiAxes","resolveLabelsOverlapping"].forEach((function(t){M.prototype._optionChangesMap[t]="REFRESH_SERIES_DATA_INIT"})),["adaptiveLayout","crosshair","resolveLabelOverlapping","adjustOnZoom","zoomingMode","scrollingMode","stickyHovering"].forEach((function(t){M.prototype._optionChangesMap[t]="FORCE_RENDER"})),["equalBarWidth","minBubbleSize","maxBubbleSize","barWidth","barGroupPadding","barGroupWidth","negativesAsZeroes","negativesAsZeros"].forEach((function(t){M.prototype._optionChangesMap[t]="REFRESH_SERIES_FAMILIES"})),e.overlapping=O,e.BaseChart=M,M.addPlugin(n(119).plugin),M.addPlugin(n(121).plugin),M.addPlugin(n(122).plugin),M.addPlugin(n(139).plugin),M.addPlugin(n(166).plugin);var P=M.prototype._change_TITLE;M.prototype._change_TITLE=function(){P.apply(this,arguments),this._change(["FORCE_RENDER"])}},function(t,e,n){"use strict";var i=n(2),o=n(0).extend,r=n(13).enumParser(["string","numeric","datetime"]),a=n(281).getParser,s=i.isDefined,l=i.isFunction,u=Array.isArray,c=i.isString,d=i.isDate,h=i.isNumeric,f=i.isObject;function p(t,e,n){var i=e?function(t,e){return t-e}:function(t,e){return e-t};return t.sort((function(t,e){var o=n(t),r=n(e),a=s(o)?1:0,l=s(r)?1:0;return a&&l?i(o,r):i(a,l)})),t}function m(t,e){var n=[];return t.forEach((function(t){var i=e(t);void 0!==i&&n.push(i)})),n}function g(t){return t}function _(t,e){var n=e;return"string"===e||c(t)?n="string":"datetime"===e||d(t)?n="datetime":h(t)&&(n="numeric"),n}function v(t,e,n,i){return"string"!==t||"continuous"!==e&&"logarithmic"!==e&&"semidiscrete"!==e||i("E2002"),"logarithmic"===e?"logarithmic":n||"discrete"===e||"string"===t?"discrete":"semidiscrete"===e?"semidiscrete":"continuous"}function y(t,e,n){var i=t?a(t):g,o="discrete"!==e?function(t){return isFinite(t)||void 0===t?t:null}:g;return function(t,e){var r=o(i(t));return void 0===r&&function(t,e,n){t&&n(h(t)||d(t)||c(t)?"E2004":"E2003",[e])}(t,e,n),r}}function b(t,e){var n,i,o=y(t.argumentType,t.argumentAxisType,e),r=[o],a={},s=[];for(var l in t.groups.forEach((function(t,s){t.series.forEach((function(l){i=y(t.valueType,t.valueAxisType,e),n=y("numeric","continuous",e),a[l.getArgumentField()]=o,l.getValueFields().forEach((function(t){r[s+1]=i,a[t]=i})),l.getSizeField()&&(a[l.getSizeField()]=n)}))})),a)s.push([l,a[l]]);return s.length&&function(t,e){var n=t.argumentOptions&&t.argumentOptions.categories;t.groups.forEach((function(t,n){var i=t.valueOptions&&t.valueOptions.categories;i&&(t.valueOptions.categories=m(i,e[n+1]))})),n&&(t.argumentOptions.categories=m(n,e[0]))}(t,r),s}function w(t,e){var n,i,r,a=e.length,s=o({},t);for(n=0;n<a;++n)r=t[i=e[n][0]],s[i]=e[n][1](r,i);return s}function x(t,e,n,i){var o=(i=i||{}).mode,r={};if(o&&"none"!==o){r[e]=String(i.groupName||"others"),r[n]=0;var a=p(t.slice(),!1,(function(t){return t[n]}));!function(t,e,n,i){i>=0&&t.slice(i).forEach((function(t){s(t[n])&&(e[n]+=t[n],t[n]=void 0)}))}(a,r,n,"smallValueThreshold"===o?function(t,e,n){var i,o,r=t.length;for(i=0;i<r&&(o=t[i][e],!(s(o)&&n>o));++i);return i}(a,n,i.threshold):i.topCount),r[n]&&t.push(r)}}function C(t,e){var n=t-e;return isNaN(n)?s(t)?s(e)?0:-1:1:n}function S(t,e){return t.slice().sort((function(t,n){return C(t[e],n[e])}))}function k(t,e,n,i){var o,r={},a="discrete"===e.argumentAxisType,u=a&&e.argumentOptions&&e.argumentOptions.categories,c=function(t){return t},d=n.sortingMethod;return!u&&l(d)&&(t=function(t,e){return t.slice().sort(e)}(t,d)),a&&(e.categories=function(t,e,n){var i=n?n.slice():[];return e.forEach((function(e){t.forEach((function(t){var n=t[e];s(n)&&function(t,e){return-1===t.map((function(t){return t.valueOf()})).indexOf(e.valueOf())}(i,n)&&i.push(n)}))})),i}(t,i,u)),u||!l(d)&&"string"===e.argumentType&&!n._skipArgumentSorting?c=function(t){var e={};return t.forEach((function(t,n){e[t]=n})),function(t,n){return p(t.slice(),!0,(function(t){return e[t[n]]}))}}(e.categories):!0===d&&"string"!==e.argumentType&&(c=S,o=a),i.forEach((function(e){r[e]=c(t,e)})),o&&(e.categories=e.categories.sort(C)),r}function I(t,e,n){var i,o=[],a=[],s=e.argumentOptions&&r(e.argumentOptions.argumentType);e.groups.forEach((function(t){if(t.series.length){var n=t.valueOptions&&r(t.valueOptions.valueType);t.valueType=n,e.argumentType=s,!n&&o.push(t),!s&&a.push(t)}})),(o.length||a.length)&&(i=o.map((function(t,e){return e})),t.some((function(t){var r;if(o.forEach((function(e,n){(function(t,e){return t.series.forEach((function(n){n.getValueFields().forEach((function(n){t.valueType=_(e[n],t.valueType)}))})),t.valueType})(e,t)&&i.indexOf(n)>=0&&i.splice(n,1)})),r||a.forEach((function(n){r=function(t,e,n){return t.forEach((function(t){n.argumentType=_(e[t.getArgumentField()],n.argumentType)})),n.argumentType}(n.series,t,e)})),!n&&r&&0===i.length)return!0})))}e.validateData=function(t,e,n,i){var o;return t=function(t,e){var n,i,o,r,a=[],l=s(t),c=l&&!u(t);if(l&&!c)for(n=0,i=t.length,o=0;n<i;++n)r=t[n],f(r)?a[o++]=r:r&&(c=!0);return c&&e("E2001"),a}(t,n),e.argumentType=e.argumentAxisType=null,e.groups.forEach((function(t){t.valueType=t.valueAxisType=null,t.series.forEach((function(t){t.updateDataType({})})),t.valueAxis&&t.valueAxis.resetTypes("valueType")})),(o=e.argumentAxes)&&o.forEach((function(t){t.resetTypes("argumentType")})),I(t,e,i.checkTypeForAllData),function(t,e){var n=t.argumentOptions||{},i=n&&n.categories||[],o=v(t.argumentType,n.type,!!i.length,e);t.groups.forEach((function(n){var i=n.valueOptions||{},r=i.categories||[],a=v(n.valueType,i.type,!!r.length,e);n.series.forEach((function(e){var r={};r.argumentAxisType=o,r.valueAxisType=a,t.argumentAxisType=t.argumentAxisType||r.argumentAxisType,n.valueAxisType=n.valueAxisType||r.valueAxisType,r.argumentType=t.argumentType,r.valueType=n.valueType,r.showZero=i.showZero,e.updateDataType(r)})),n.valueAxisType=n.valueAxisType||a,n.valueAxis&&(n.valueAxis.setTypes(n.valueAxisType,n.valueType,"valueType"),n.valueAxis.validate())})),t.argumentAxisType=t.argumentAxisType||o,t.argumentAxes&&t.argumentAxes.forEach((function(e){e.setTypes(t.argumentAxisType,t.argumentType,"argumentType"),e.validate()}))}(e,n),i.convertToAxisDataType&&(t=function(t,e){var n,i=[],o=t.length;for(i.length=o,n=0;n<o;++n)i[n]=w(t[n],e);return i}(t,b(e,n))),function(t,e){var n=e.groups[0]&&e.groups[0].series[0];n&&("pie"===n.type||"doughnut"===n.type||"donut"===n.type)&&e.groups.forEach((function(e){e.series.forEach((function(e){x(t,e.getArgumentField(),e.getValueFields()[0],e.getOptions().smallValuesGrouping)}))}))}(t,e),k(t,e,i,function(t){var e=[],n={};return t.groups.forEach((function(t){t.series.forEach((function(t){var i,o,r;i=t.getArgumentField(),o=e,(r=n)[i]||(o.push(i),r[i]=!0)}))})),e}(e))}},function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(5),a=b(n(745)),s=n(13),l=n(4),u=n(140),c=b(n(230)),d=b(n(124)),h=b(n(231)),f=b(n(196)),p=b(n(165)),m=b(n(750)),g=b(n(751)),_=b(n(752)),v=b(n(753)),y=b(n(754));function b(t){return t&&t.__esModule?t:{default:t}}var w={},x=u.states.selectedMark,C=u.states.hoverMark,S=u.states.hover,k=u.states.normal,I=u.states.selection,T=u.states.applySelected,E=u.states.applyHover,O=u.states.resetItem;function M(t,e,n){t&&t.trigger(e,n)}function P(t){return"includepoints"===(t=(0,s.normalizeEnum)(t))||"allseriespoints"===t}function D(t,e){var n=(0,o.extend)({},t,e);return n.border=(0,o.extend)({},t&&t.border,e&&e.border),n}function A(t,e){this.fullState=0,this._extGroups=t,this._renderer=t.renderer,this._group=t.renderer.g().attr({class:"dxc-series"}),this._eventTrigger=t.eventTrigger,this._eventPipe=t.eventPipe,this._incidentOccurred=t.incidentOccurred,this._legendCallback=l.noop,this.updateOptions(e,t)}function R(t){return t.data}function B(t,e){return e&&"logarithmic"===t&&!1===e.getOptions().allowNegatives?function(t){return t>0}:function(){return!0}}w.mixins={chart:{},pie:{},polar:{}},w.mixins.chart.scatter=d.default.chart,w.mixins.polar.scatter=d.default.polar,(0,o.extend)(w.mixins.pie,_.default),(0,o.extend)(w.mixins.chart,h.default.chart,f.default.chart,p.default.chart,m.default.chart,g.default.chart,v.default,y.default.chart),(0,o.extend)(w.mixins.polar,h.default.polar,f.default.polar,p.default.polar,m.default.polar,g.default.polar,y.default.polar),e.Series=A,e.mixins=w.mixins,A.prototype={constructor:A,_createLegendState:l.noop,getLegendStyles:function(){return this._styles.legendStyles},_createStyles:function(t){var e=t.mainSeriesColor;this._styles={normal:this._parseStyle(t,e,e),hover:this._parseStyle(t.hoverStyle||{},e,e),selection:this._parseStyle(t.selectionStyle||{},e,e),legendStyles:{normal:this._createLegendState(t,e),hover:this._createLegendState(t.hoverStyle||{},e),selection:this._createLegendState(t.selectionStyle||{},e)}}},setClippingParams:function(t,e,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];this._paneClipRectID=t,this._widePaneClipRectID=e,this._forceClipping=n,this._clipLabels=i},applyClip:function(){this._group.attr({"clip-path":this._paneClipRectID})},resetClip:function(){this._group.attr({"clip-path":null})},getTagField:function(){return this._options.tagField||"tag"},getValueFields:l.noop,getSizeField:l.noop,getArgumentField:l.noop,getPoints:function(){return this._points},getPointsInViewPort:function(){return c.default.getPointsInViewPort(this)},_createPoint:function(t,e,n){t.index=e;var i=this.pointsByArgument,o=this._getCreatingPointOptions(t),r=t.argument.valueOf(),s=n;s?s.update(t,o):(s=new a.default.Point(this,t,o),this.isSelected()&&P(this.lastSelectionMode)&&s.setView(I));var l=i[r];return l?l.push(s):i[r]=[s],s.hasValue()&&this.customizePoint(s,t),s},getRangeData:function(){return this._visible?this._getRangeData():{arg:{},val:{}}},getArgumentRange:function(){return this._visible?c.default.getArgumentRange(this):{arg:{},val:{}}},getViewport:function(){return c.default.getViewport(this)},_deleteGroup:function(t){var e=this[t];e&&(e.dispose(),this[t]=null)},updateOptions:function(t,e){var n=t.widgetType,i=this.type,o=t.type;if(this.type=o&&(0,s.normalizeEnum)(o.toString()),!this._checkType(n)||this._checkPolarBarType(n,t))return this.dispose(),void(this.isUpdated=!1);i!==this.type?(this._firstDrawing=!0,this._resetType(i,n),this._setType(this.type,n)):this._defineDrawingState(),this._options=t,this._pointOptions=null,this.name=t.name,this.pane=t.pane,this.tag=t.tag,e&&(this._seriesModes=e.commonSeriesModes||this._seriesModes,this._valueAxis=e.valueAxis||this._valueAxis,this.axis=this._valueAxis&&this._valueAxis.name,this._argumentAxis=e.argumentAxis||this._argumentAxis),this._createStyles(t),this._stackName=null,this._updateOptions(t),this._visible=t.visible,this.isUpdated=!0,this.stack=t.stack,this.barOverlapGroup=t.barOverlapGroup,this._createGroups(),this._processEmptyValue=t.ignoreEmptyPoints?function(t){return null===t?void 0:t}:function(t){return t}},_defineDrawingState:function(){this._firstDrawing=!0},_disposePoints:function(t){(0,r.each)(t||[],(function(t,e){e.dispose()}))},updateDataType:function(t){return this.argumentType=t.argumentType,this.valueType=t.valueType,this.argumentAxisType=t.argumentAxisType,this.valueAxisType=t.valueAxisType,this.showZero=t.showZero,this._argumentChecker=B(t.argumentAxisType,this.getArgumentAxis()),this._valueChecker=B(t.valueAxisType,this.getValueAxis()),this},_argumentChecker:function(){return!0},_valueChecker:function(){return!0},getOptions:function(){return this._options},_getOldPoint:function(t,e,n){var i=t.argument&&t.argument.valueOf(),o=(e[i]||[])[0];return o&&e[i].splice(0,1),o},updateData:function(t){var e=this._options,n=e.nameField;(t=t||[]).length&&(this._canRenderCompleteHandle=!0);var o=this._getPointDataSelector(),r=0;this._data=t.reduce((function(t,a,s){var l=o(a);return(0,i.isDefined)(l.argument)?n&&a[n]!==e.nameFieldValue||(l.index=s,t.push(l)):r++,t}),[]),r&&r===t.length&&this._incidentOccurred("W2002",[this.name,this.getArgumentField()]),this._endUpdateData()},_getData:function(){var t=this._data||[];return this.useAggregation()&&(t=this._resample(this.getArgumentAxis().getAggregationInfo(this._useAllAggregatedPoints,"discrete"!==this.argumentAxisType?this.getArgumentRange():{}),t)),t},useAggregation:function(){var t=this.getOptions().aggregation;return t&&t.enabled},autoHidePointMarkersEnabled:l.noop,usePointsToDefineAutoHiding:l.noop,createPoints:function(t){this._normalizeUsingAllAggregatedPoints(t),this._createPoints()},_normalizeUsingAllAggregatedPoints:function(t){this._useAllAggregatedPoints=this.useAggregation()&&("discrete"===this.argumentAxisType||(this._data||[]).length>1&&!!t)},_createPoints:function(){var t=this,e=t.pointsByArgument||{},n=t._getData();t.pointsByArgument={},t._calculateErrorBars(n);var i={},o=n.reduce((function(n,o){if(t._checkData(o,i)){var r=n.length,a=t._getOldPoint(o,e,r),s=t._createPoint(o,r,a);n.push(s)}return n}),[]);for(var r in i)i[r]===n.length&&t._incidentOccurred("W2002",[t.name,r]);Object.keys(e).forEach((function(n){return t._disposePoints(e[n])})),t._points=o},_removeOldSegments:function(){var t=this,e=t._segments.length;(0,r.each)(t._graphics.splice(e,t._graphics.length)||[],(function(e,n){t._removeElement(n)})),t._trackers&&(0,r.each)(t._trackers.splice(e,t._trackers.length)||[],(function(t,e){e.remove()}))},_drawElements:function(t,e,n){var i=this,o=i._points||[],r=o[0]&&o[0].hasValue()&&i._options.closed,a={markers:i._markersGroup,errorBars:i._errorBarGroup};i._drawnPoints=[],i._graphics=i._graphics||[],i._segments=[];var s=o.reduce((function(o,r){var s=o[o.length-1];return r.translated&&!n||(r.translate(),!n&&r.setDefaultCoords()),r.hasValue()&&r.hasCoords()?(n&&i._drawPoint({point:r,groups:a,hasAnimation:t,firstDrawing:e}),s.push(r)):r.hasValue()?r.setInvisibility():s.length&&o.push([]),o}),[[]]);s.forEach((function(e,n){e.length&&i._drawSegment(e,t,n,r&&n===this.length-1)}),s),i._firstDrawing=!o.length,i._removeOldSegments(),t&&i._animate(e)},draw:function(t,e,n){var i=this._firstDrawing;if(this._legendCallback=n||this._legendCallback,!this._visible)return t=!1,void this._group.remove();this._appendInGroup(),this._applyVisibleArea(),this._setGroupsSettings(t,i),!i&&!this._resetApplyingAnimation&&this._drawElements(!1,i,!1),this._drawElements(t,i,!0),e&&this.hideLabels(),this.isSelected()?this._changeStyle(this.lastSelectionMode,void 0,!0):this.isHovered()?this._changeStyle(this.lastHoverMode,void 0,!0):this._applyStyle(this._styles.normal),this._resetApplyingAnimation=!1},_setLabelGroupSettings:function(t){var e={class:"dxc-labels","pointer-events":"none"};this._clipLabels&&this._applyElementsClipRect(e),this._applyClearingSettings(e),t&&(e.opacity=.001),this._labelsGroup.attr(e).append(this._extGroups.labelsGroup)},_checkType:function(t){return!!w.mixins[t][this.type]},_checkPolarBarType:function(t,e){return"polar"===t&&e.spiderWidget&&-1!==this.type.indexOf("bar")},_resetType:function(t,e){var n;if(t)for(n in w.mixins[e][t])delete this[n]},_setType:function(t,e){var n,i=w.mixins[e][t];for(n in i)this[n]=i[n]},_setPointsView:function(t,e){this.getPoints().forEach((function(n){e!==n&&n.setView(t)}))},_resetPointsView:function(t,e){this.getPoints().forEach((function(n){e!==n&&n.resetView(t)}))},_resetNearestPoint:function(){this._nearestPoint&&null!==this._nearestPoint.series&&this._nearestPoint.resetView(S),this._nearestPoint=null},_setSelectedState:function(t){this.lastSelectionMode=(0,s.normalizeEnum)(t||this._options.selectionMode),this.fullState=this.fullState|x,this._resetNearestPoint(),this._changeStyle(this.lastSelectionMode),"none"!==this.lastSelectionMode&&this.isHovered()&&P(this.lastHoverMode)&&this._resetPointsView(S)},_releaseSelectedState:function(){this.fullState=this.fullState&~x,this._changeStyle(this.lastSelectionMode,I),"none"!==this.lastSelectionMode&&this.isHovered()&&P(this.lastHoverMode)&&this._setPointsView(S)},isFullStackedSeries:function(){return 0===this.type.indexOf("fullstacked")},isStackedSeries:function(){return 0===this.type.indexOf("stacked")},resetApplyingAnimation:function(t){this._resetApplyingAnimation=!0,t&&(this._firstDrawing=!0)},isFinancialSeries:function(){return"stock"===this.type||"candlestick"===this.type},_canChangeView:function(){return!this.isSelected()&&"none"!==(0,s.normalizeEnum)(this._options.hoverMode)},_changeStyle:function(t,e,n){var i=this.fullState,o=[k,S,I,I];"none"===this.lastHoverMode&&(i&=~C),"none"===this.lastSelectionMode&&(i&=~x),P(t)&&!n&&(e?this._resetPointsView(e):this._setPointsView(o[i])),this._legendCallback([O,E,T,T][i]),this._applyStyle(this._styles[o[i]])},updateHover:function(t,e){var n=this._nearestPoint,i=this.isHovered()&&"nearestpoint"===this.lastHoverMode&&this.getNeighborPoint(t,e);i===n||this.isSelected()&&"none"!==this.lastSelectionMode||(this._resetNearestPoint(),i&&(i.setView(S),this._nearestPoint=i))},_getMainAxisName:function(){return this._options.rotated?"X":"Y"},areLabelsVisible:function(){return!(0,i.isDefined)(this._options.maxLabelCount)||this._points.length<=this._options.maxLabelCount},getLabelVisibility:function(){return this.areLabelsVisible()&&this._options.label&&this._options.label.visible},customizePoint:function(t,e){var n,r,a,s,l,u,c=this._options,d=c.customizePoint,h=c.customizeLabel;h&&h.call&&((n=(0,o.extend)({seriesName:this.name},e)).series=this,a=(l=(a=h.call(n,n))&&!(0,i.isEmptyObject)(a))?(0,o.extend)(!0,{},c.label,a):null),d&&d.call&&((n=n||(0,o.extend)({seriesName:this.name},e)).series=this,u=(s=d.call(n,n))&&!(0,i.isEmptyObject)(s)),(l||u)&&((r=this._parsePointOptions(this._preparePointOptions(s),a||c.label,e,t)).styles.useLabelCustomOptions=l,r.styles.usePointCustomOptions=u,t.updateOptions(r))},show:function(){this._visible||this._changeVisibility(!0)},hide:function(){this._visible&&this._changeVisibility(!1)},_changeVisibility:function(t){this._visible=this._options.visible=t,this._updatePointsVisibility(),this.hidePointTooltip(),this._options.visibilityChanged(this)},_updatePointsVisibility:l.noop,hideLabels:function(){(0,r.each)(this._points,(function(t,e){e._label.draw(!1)}))},_parsePointOptions:function(t,e,n,r){var a=this._options,l=this._createPointStyles(t,n,r),u=(0,o.extend)({},t,{type:a.type,rotated:a.rotated,styles:l,widgetType:a.widgetType,visibilityChanged:a.visibilityChanged});return u.label=function(t,e){var n=t||{},r=(0,o.extend)({},n.font)||{},a=n.border||{},l=n.connector||{},u={fill:n.backgroundColor||e,"stroke-width":a.visible&&a.width||0,stroke:a.visible&&a.width?a.color:"none",dashStyle:a.dashStyle},c={stroke:l.visible&&l.width?l.color||e:"none","stroke-width":l.visible&&l.width||0};return r.color="none"===n.backgroundColor&&"#ffffff"===(0,s.normalizeEnum)(r.color)&&"inside"!==n.position?e:r.color,{alignment:n.alignment,format:n.format,argumentFormat:n.argumentFormat,customizeText:(0,i.isFunction)(n.customizeText)?n.customizeText:void 0,attributes:{font:r},visible:0!==r.size&&n.visible,showForZeroValues:n.showForZeroValues,horizontalOffset:n.horizontalOffset,verticalOffset:n.verticalOffset,radialOffset:n.radialOffset,background:u,position:n.position,connector:c,rotationAngle:n.rotationAngle,wordWrap:n.wordWrap,textOverflow:n.textOverflow,cssClass:n.cssClass}}(e,l.normal.fill),this.areErrorBarsVisible()&&(u.errorBars=a.valueErrorBar),u},_preparePointOptions:function(t){var e=this._getOptionsForPoint();return t?function(t,e){var n=D(t,e);return n.image=(0,o.extend)(!0,{},t.image,e.image),n.selectionStyle=D(t.selectionStyle,e.selectionStyle),n.hoverStyle=D(t.hoverStyle,e.hoverStyle),n}(e,t):e},_getMarkerGroupOptions:function(){return(0,o.extend)(!1,{},this._getOptionsForPoint(),{hoverStyle:{},selectionStyle:{}})},_getAggregationMethod:function(t,e){var n,i=this.getOptions().aggregation,o=(0,s.normalizeEnum)(i.method),r="custom"===o&&i.calculate;return n=t&&!e?function(t){return t.data[0]}:this._aggregators[o]||this._aggregators[this._defaultAggregator],r||n},_resample:function(t,e){var n=t.interval,i=t.ticks,o=t.aggregateByCategory,r=this,a="discrete"===r.argumentAxisType||"discrete"===r.valueAxisType,s=0,l=this._getPointDataSelector(),u=r.getOptions(),c=function(t,e,n){if(e){var i=function(e){var i=e&&l(e,u);i&&r._checkData(i)&&(i.aggregationInfo=n,t.push(i))};e.length?e.forEach(i):i(e)}},d=this._getAggregationMethod(a,o);if(a){if(o){var h=this.getArgumentAxis().getTranslator().getBusinessRange().categories,f=h.reduce((function(t,e){return t[e.valueOf()]=[],t}),{});return e.forEach((function(t){f[t.argument].push(t)})),h.reduce((function(t,e){return c(t,d({aggregationInterval:null,intervalStart:e,intervalEnd:e,data:f[e].map(R)},r)),t}),[])}return e.reduce((function(t,e,i,o){if(t[1].push(e),i===o.length-1||(i+1)%n===0){var a=t[1],s={aggregationInterval:n,data:a.map(R)};c(t[0],d(s,r)),t[1]=[]}return t}),[[],[]])[0]}for(var p=[],m=1;m<i.length;m++){for(var g=i[m],_=i[m-1],v=[];e[s]&&e[s].argument<g;)e[s].argument>=_&&v.push(e[s]),s++;var y={intervalStart:_,intervalEnd:g,aggregationInterval:n,data:v.map(R)};c(p,d(y,r),y)}return r._endUpdateData(),p},canRenderCompleteHandle:function(){var t=this._canRenderCompleteHandle;return delete this._canRenderCompleteHandle,!!t},isHovered:function(){return!!(1&this.fullState)},isSelected:function(){return!!(2&this.fullState)},isVisible:function(){return this._visible},getAllPoints:function(){return this._createAllAggregatedPoints(),(this._points||[]).slice()},getPointByPos:function(t){return this._createAllAggregatedPoints(),(this._points||[])[t]},getVisiblePoints:function(){return(this._drawnPoints||[]).slice()},selectPoint:function(t){t.isSelected()||(!function(t,e){t.fullState|=x,t.applyView(e)}(t,this._legendCallback),this._eventPipe({action:"pointSelect",target:t}),this._eventTrigger("pointSelectionChanged",{target:t}))},deselectPoint:function(t){t.isSelected()&&(!function(t,e){t.fullState&=~x,t.applyView(e)}(t,this._legendCallback),this._eventPipe({action:"pointDeselect",target:t}),this._eventTrigger("pointSelectionChanged",{target:t}))},hover:function(t){var e=this._eventTrigger;this.isHovered()||(this.lastHoverMode=(0,s.normalizeEnum)(t||this._options.hoverMode),this.fullState=this.fullState|C,this._changeStyle(this.lastHoverMode,void 0,this.isSelected()&&"none"!==this.lastSelectionMode),e("seriesHoverChanged",{target:this}))},clearHover:function(){var t=this._eventTrigger;this.isHovered()&&(this._resetNearestPoint(),this.fullState=this.fullState&~C,this._changeStyle(this.lastHoverMode,S,this.isSelected()&&"none"!==this.lastSelectionMode),t("seriesHoverChanged",{target:this}))},hoverPoint:function(t){t.isHovered()||(t.clearHover(),function(t,e){t.fullState|=C,t.applyView(e)}(t,this._legendCallback),this._canChangeView()&&this._applyStyle(this._styles.hover),this._eventPipe({action:"pointHover",target:t}),this._eventTrigger("pointHoverChanged",{target:t}))},clearPointHover:function(){var t=this;t.getPoints().some((function(e){return!!e.isHovered()&&(n=e,i=t._legendCallback,n.fullState&=~C,n.applyView(i),n.releaseHoverState(),t._canChangeView()&&t._applyStyle(t._styles.normal),t._eventPipe({action:"clearPointHover",target:e}),t._eventTrigger("pointHoverChanged",{target:e}),!0);var n,i}))},showPointTooltip:function(t){M(this._extGroups.seriesGroup,"showpointtooltip",t)},hidePointTooltip:function(t){M(this._extGroups.seriesGroup,"hidepointtooltip",t)},select:function(){this.isSelected()||(this._setSelectedState(this._options.selectionMode),this._eventPipe({action:"seriesSelect",target:this}),this._group.toForeground(),this._eventTrigger("seriesSelectionChanged",{target:this}))},clearSelection:function(){this.isSelected()&&(this._releaseSelectedState(),this._eventTrigger("seriesSelectionChanged",{target:this}))},getPointsByArg:function(t,e){var n=t.valueOf(),i=this.pointsByArgument[n];return i||e||!this._createAllAggregatedPoints()||(i=this.pointsByArgument[n]),i||[]},_createAllAggregatedPoints:function(){return!(!this.useAggregation()||this._useAllAggregatedPoints)&&(this.createPoints(!0),!0)},getPointsByKeys:function(t){return this.getPointsByArg(t)},notify:function(t){var e=this,n=t.action,i=e._seriesModes,o=t.target,r=o.getOptions(),a=(0,s.normalizeEnum)(r.hoverMode),l=(0,s.normalizeEnum)(r.selectionMode);"pointHover"===n?e._hoverPointHandler(o,a,t.notifyLegend):"clearPointHover"===n?e._clearPointHoverHandler(o,a,t.notifyLegend):"seriesSelect"===n?o!==e&&"single"===i.seriesSelectionMode&&e.clearSelection():"pointSelect"===n?("single"===i.pointSelectionMode&&e.getPoints().some((function(t){return!(t===o||!t.isSelected())&&(e.deselectPoint(t),!0)})),e._selectPointHandler(o,l)):"pointDeselect"===n&&e._deselectPointHandler(o,l)},_selectPointHandler:function(t,e){"allseriespoints"===e?t.series===this&&this._setPointsView(I,t):"allargumentpoints"===e&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(e){e!==t&&e.setView(I)}))},_deselectPointHandler:function(t,e){"allseriespoints"===e?t.series===this&&this._resetPointsView(I,t):"allargumentpoints"===e&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(e){e!==t&&e.resetView(I)}))},_hoverPointHandler:function(t,e,n){t.series!==this&&"allargumentpoints"===e?(this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(t){t.setView(S)})),n&&this._legendCallback(t)):"allseriespoints"===e&&t.series===this&&this._setPointsView(S,t)},_clearPointHoverHandler:function(t,e,n){"allargumentpoints"===e?(t.series!==this&&this.getPointsByKeys(t.argument,t.argumentIndex).forEach((function(t){t.resetView(S)})),n&&this._legendCallback(t)):"allseriespoints"===e&&t.series===this&&this._resetPointsView(S,t)},_deletePoints:function(){this._disposePoints(this._points),this._points=this._drawnPoints=null},_deleteTrackers:function(){(0,r.each)(this._trackers||[],(function(t,e){e.remove()})),this._trackersGroup&&this._trackersGroup.dispose(),this._trackers=this._trackersGroup=null},dispose:function(){this._deletePoints(),this._group.dispose(),this._labelsGroup&&this._labelsGroup.dispose(),this._errorBarGroup&&this._errorBarGroup.dispose(),this._deleteTrackers(),this._group=this._extGroups=this._markersGroup=this._elementsGroup=this._bordersGroup=this._labelsGroup=this._errorBarGroup=this._graphics=this._rangeData=this._renderer=this._styles=this._options=this._pointOptions=this._drawnPoints=this.pointsByArgument=this._segments=this._prevSeries=null},correctPosition:l.noop,drawTrackers:l.noop,getNeighborPoint:l.noop,areErrorBarsVisible:l.noop,getMarginOptions:function(){return this._patchMarginOptions({percentStick:this.isFullStackedSeries()})},getColor:function(){return this.getLegendStyles().normal.fill},getOpacity:function(){return this._options.opacity},getStackName:function(){return this._stackName},getBarOverlapGroup:function(){return this._options.barOverlapGroup},getPointByCoord:function(t,e){var n=this.getNeighborPoint(t,e);return(null===n||void 0===n?void 0:n.coordsIn(t,e))?n:null},getValueAxis:function(){return this._valueAxis},getArgumentAxis:function(){return this._argumentAxis},getMarkersGroup:function(){return this._markersGroup},getRenderer:function(){return this._renderer}}},function(t,e,n){"use strict";var i=n(94),o=n(13),r=n(5),a=n(0),s=Math,l=s.round,u=s.floor,c=s.abs;function d(t,e){var n,i=1/0;return(0,r.each)(e,(function(e,o){var r=t[0]-o[0],a=t[1]-o[1],s=r*r+a*a;s<i&&(i=s,n=o)})),[u(n[0]),u(n[1])]}function h(t,e,n){return(e-t[0+n])/(t[2+n]-t[0+n])*(t[3-n]-t[1-n])+t[1-n]}var f={isLabelInside:function(t,e){var n=t.x+t.width/2,i=t.y+t.height/2;return e.x<=n&&n<=e.x+e.width&&e.y<=i&&i<=e.y+e.height},prepareLabelPoints:function(t,e,n,i,o){var r=e.x,a=r+e.width/2,s=r+e.width-1,l=e.y,u=l+e.height/2,d=l+e.height-1,f=c(i)%90===0;return o[0]>r&&o[0]<s?f?[[o[0],c(o[1]-l)<c(o[1]-d)?l:d]]:[[o[0],h([r,l,s,d],o[0],0)]]:o[1]>l&&o[1]<d?f?[[c(o[0]-r)<c(o[0]-s)?r:s,o[1]]]:[[h([r,l,s,d],o[1],1),o[1]]]:f?[[r,l],[n?r:a,n?u:l],[s,l],[r,d],[n?s:a,n?u:d],[s,d]]:[[a,u]]},isHorizontal:function(t,e){return t.x>e.x+e.width||t.x+t.width<e.x},getFigureCenter:function(t){return[u(t.x+t.width/2),u(t.y+t.height/2)]},findFigurePoint:function(t,e){var n=f.getFigureCenter(t);return d(e,[[t.x,n[1]],[n[0],t.y+t.height],[t.x+t.width,n[1]],[n[0],t.y]])},adjustPoints:function(t){var e=c(t[1]-t[3])<=1;return c(t[0]-t[2])<=1&&(t[0]=t[2]),e&&(t[1]=t[3]),t}},p={isLabelInside:function(){return!1},prepareLabelPoints:f.prepareLabelPoints,isHorizontal:function(t,e){return t.x>e.x+e.r||t.x+t.width<e.x-e.r},getFigureCenter:function(t){return[t.x,t.y]},findFigurePoint:function(t,e){var n=Math.atan2(t.y-e[1],e[0]-t.x);return[l(t.x+t.r*Math.cos(n)),l(t.y-t.r*Math.sin(n))]},adjustPoints:f.adjustPoints},m={isLabelInside:function(t,e,n){return!n},prepareLabelPoints:function(t,e,n,i){var r=t.x,a=r+t.width,s=r+l(t.width/2),u=t.y,c=u+t.height,d=u+l(t.height/2),h=[[[r,u],[a,u]],[[a,u],[a,c]],[[a,c],[r,c]],[[r,c],[r,u]]],f=(0,o.getCosAndSin)(i);return h=0===i?n?[[r,d],[a,d]]:[[s,u],[s,c]]:h.map((function(t){return t.map((function(t){return[l((t[0]-s)*f.cos+(t[1]-d)*f.sin+s),l(-(t[0]-s)*f.sin+(t[1]-d)*f.cos+d)]}))})).reduce((function(t,e){var i=e[0][0],o=e[0][1],r=e[1][0],a=e[1][1];return n?(o>=d&&d>=a||o<=d&&d<=a)&&t.push([(d-o)*(r-i)/(a-o)+i,d]):(i>=s&&s>=r||i<=s&&s<=r)&&t.push([s,(s-i)*(a-o)/(r-i)+o]),t}),[])},isHorizontal:function(t,e){return t.x>e.x||e.x>t.x+t.width},getFigureCenter:p.getFigureCenter,findFigurePoint:function(t,e,n){if(!n)return[t.x,t.y];var i=e[0],r=l(t.x+(t.y-e[1])/Math.tan((0,o.degreesToRadians)(t.angle))),a=[t.x,t.y,r,e[1]];return t.x<=r&&r<=i||i<=r&&r<=t.x||(c(t.x-i)<12?a=[t.x,t.y]:t.x<=i?a[2]=t.x+12:a[2]=t.x-12),a},adjustPoints:function(t){return t}};function g(t){return void 0!==t.angle&&m||void 0!==t.r&&p||f}function _(t,e){t[e]&&t[e].dispose(),t[e]=null}function v(t){return t&&(t.fill&&"none"!==t.fill||t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke)}function y(t){return t&&t["stroke-width"]>0&&t.stroke&&"none"!==t.stroke}function b(t){this._renderer=t.renderer,this._container=t.labelsGroup,this._point=t.point,this._strategy=t.strategy,this._rowCount=1}b.prototype={constructor:b,setColor:function(t){this._color=t},setOptions:function(t){this._options=t},setData:function(t){this._data=t},setDataField:function(t,e){this._data=this._data||{},this._data[t]=e},getData:function(){return this._data},setFigureToDrawConnector:function(t){this._figure=t},dispose:function(){_(this,"_group"),this._data=this._options=this._textContent=this._visible=this._insideGroup=this._text=this._background=this._connector=this._figure=null},_setVisibility:function(t,e){this._group&&this._group.attr({visibility:t}),this._visible=e},isVisible:function(){return this._visible},hide:function(t){this._holdVisibility=!!t,this._hide()},_hide:function(){this._setVisibility("hidden",!1)},show:function(t){var e=!this._drawn;this._point.hasValue()&&(this._holdVisibility=!!t,this._show(),e&&this._point.correctLabelPosition(this))},_show:function(){var t=this._renderer,e=this._container,n=this._options||{},r=this._textContent=function(t,e){var n=e.format;return t.valueText=(0,i.format)(t.value,n),t.argumentText=(0,i.format)(t.argument,e.argumentFormat),void 0!==t.percent&&(t.percentText=(0,i.format)(t.percent,{type:"percent",precision:n&&n.percentPrecision})),void 0!==t.total&&(t.totalText=(0,i.format)(t.total,n)),void 0!==t.openValue&&(t.openValueText=(0,i.format)(t.openValue,n)),void 0!==t.closeValue&&(t.closeValueText=(0,i.format)(t.closeValue,n)),void 0!==t.lowValue&&(t.lowValueText=(0,i.format)(t.lowValue,n)),void 0!==t.highValue&&(t.highValueText=(0,i.format)(t.highValue,n)),void 0!==t.reductionValue&&(t.reductionValueText=(0,i.format)(t.reductionValue,n)),e.customizeText?e.customizeText.call(t,t):t.valueText}(this._data,this._options)||null;r?(this._group||(this._group=t.g().append(e),this._insideGroup=t.g().append(this._group),this._text=t.text("",0,0).append(this._insideGroup)),this._text.css(n.attributes?(0,o.patchFontOptions)(n.attributes.font):{}),v(n.background)?(this._background=this._background||t.rect().append(this._insideGroup).toBackground(),this._background.attr(n.background),this._color&&this._background.attr({fill:this._color})):_(this,"_background"),y(n.connector)?(this._connector=this._connector||t.path([],"line").sharp().append(this._group).toBackground(),this._connector.attr(n.connector),this._color&&this._connector.attr({stroke:this._color})):_(this,"_connector"),this._text.attr({text:r,align:n.textAlignment,class:n.cssClass}),this._updateBackground(this._text.getBBox()),this._setVisibility("visible",!0),this._drawn=!0):this._hide()},_getLabelVisibility:function(t){return this._holdVisibility?this.isVisible():t},draw:function(t){return this._getLabelVisibility(t)?(this._show(),this._point&&this._point.correctLabelPosition(this)):(this._drawn=!1,this._hide()),this},_updateBackground:function(t){this._background&&(t.x-=8,t.y-=4,t.width+=16,t.height+=8,this._background.attr(t)),this._bBoxWithoutRotation=(0,a.extend)({},t);var e=this._options.rotationAngle||0;this._insideGroup.rotate(e,t.x+t.width/2,t.y+t.height/2),t=(0,o.rotateBBox)(t,[t.x+t.width/2,t.y+t.height/2],-e),this._bBox=t},getFigureCenter:function(){var t=this._figure;return(this._strategy||g(t)).getFigureCenter(t)},_getConnectorPoints:function(){var t,e,n=this._figure,i=this._options,o=this._strategy||g(n),r=this._shiftBBox(this._bBoxWithoutRotation),a=this.getBoundingRect(),s=[];if(!o.isLabelInside(r,n,"inside"!==i.position)){e=o.isHorizontal(r,n);var l=this.getFigureCenter();t=d(l,s=o.prepareLabelPoints(r,a,e,-i.rotationAngle||0,l)),s=(s=o.findFigurePoint(n,t,e)).concat(t)}return o.adjustPoints(s)},fit:function(t){var e=this._background?16:0,n=!1;if(this._text){var i=this._text.setMaxSize(t-e,void 0,this._options),o=i.rowCount;0===o&&(o=1),o!==this._rowCount&&(n=!0,this._rowCount=o),i.textIsEmpty&&_(this,"_background")}return this._updateBackground(this._text.getBBox()),n},resetEllipsis:function(){this._text&&this._text.restoreText(),this._updateBackground(this._text.getBBox())},setTrackerData:function(t){this._text.data({"chart-data-point":t}),this._background&&this._background.data({"chart-data-point":t})},hideInsideLabel:function(t){return this._point.hideInsideLabel(this,t)},getPoint:function(){return this._point},shift:function(t,e){return this._textContent&&(this._insideGroup.attr({translateX:this._x=l(t-this._bBox.x),translateY:this._y=l(e-this._bBox.y)}),this._connector&&this._connector.attr({points:this._getConnectorPoints()})),this},getBoundingRect:function(){return this._shiftBBox(this._bBox)},_shiftBBox:function(t){return this._textContent?{x:t.x+this._x,y:t.y+this._y,width:t.width,height:t.height}:{}},getLayoutOptions:function(){var t=this._options;return{alignment:t.alignment,background:v(t.background),horizontalOffset:t.horizontalOffset,verticalOffset:t.verticalOffset,radialOffset:t.radialOffset,position:t.position,connectorOffset:(y(t.connector)?12:0)+(v(t.background)?8:0)}}},e.Label=b},function(t,e,n){"use strict";var i,o=n(125),r=(i=o)&&i.__esModule?i:{default:i};t.exports={registerKeyboardAction:function(t,e,n,i,o){var a=e.getController("keyboardNavigation");if(!(e.option("useLegacyKeyboardNavigation")||a&&!a.isKeyboardEnabled())){e.createAction("onKeyDown"),r.default.registerKeyboardAction(t,e,n,i,o,(function(t){e.executeAction("onKeyDown",t)}))}}}},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(18),a=n(8),s=n(0).extend,l=n(20),u=n(42),c=n(137),d=n(99),h=n(108),f=n(36),p=n(157).ChildDefaultTemplate,m={popupWidth:"width",popupHeight:"height",popupMaxHeight:"maxHeight",popupAutoResizeEnabled:"autoResizeEnabled"},g={buttonIcon:"icon",buttonText:"text",buttonWidth:"width",buttonHeight:"height",buttonTemplate:"template"},_=l.inherit({_supportedKeys:function(){var t={};return this.option("opened")&&this._list.option("focusedElement")||(t=this._button._supportedKeys()),s(this.callBase(),t,{tab:function(){this._popup&&this._popup.hide()}})},_getDefaultOptions:function(){return s(this.callBase(),{items:[],onItemClick:null,dataSource:null,itemTemplate:"item",buttonText:"",buttonIcon:"overflow",buttonWidth:void 0,buttonHeight:void 0,buttonTemplate:"content",onButtonClick:null,usePopover:!1,popupWidth:"auto",popupHeight:"auto",activeStateEnabled:!0,hoverStateEnabled:!0,opened:!1,selectionMode:"none",selectedItemKeys:[],deferRendering:!1,popupPosition:{my:"top center",at:"bottom center",collision:"fit flip",offset:{v:1}},popupAnimation:void 0,onItemRendered:null,menuWidget:h,popupMaxHeight:void 0,closeOnClick:!0,useInkRipple:!1,container:void 0,popupAutoResizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{usePopover:!0}},{device:{platform:"generic"},options:{popupPosition:{offset:{v:4}}}},{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}},{device:{platform:"android"},options:{popupPosition:{my:"top "+(this.option("rtlEnabled")?"left":"right"),at:"top "+(this.option("rtlEnabled")?"left":"right"),collision:"flipfit"},popupAnimation:{show:{type:"pop",duration:200,from:{scale:0},to:{scale:1}},hide:{type:"pop",duration:200,from:{scale:1},to:{scale:0}}}}},{device:function(){return f.isMaterial()},options:{useInkRipple:!0}}])},_initOptions:function(t){"android"===r.current().platform&&(t.popupPosition||(t.popupPosition={at:(t.usePopover?"bottom ":"top ")+(t.rtlEnabled?"left":"right")})),this.callBase(t)},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this.callBase(),this.$element().addClass("dx-dropdownmenu"),this._initDataSource(),this._initItemClickAction(),this._initButtonClickAction()},_initItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_initButtonClickAction:function(){this._buttonClickAction=this._createActionByOption("onButtonClick")},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new p("content")}),this.callBase()},_initMarkup:function(){this._renderButton(),this.callBase()},_render:function(){this.callBase(),this.setAria({role:"menubar",haspopup:!0,expanded:this.option("opened")})},_renderContentImpl:function(){this.option("opened")&&this._renderPopup()},_clean:function(){this._cleanFocusState(),this._popup&&(this._popup.$element().remove(),delete this._$popup)},_renderButton:function(){var t=this.$element().addClass("dx-dropdownmenu-button"),e=this._buttonOptions();this._button=this._createComponent(t,u,e)},_toggleActiveState:function(t,e,n){this._button._toggleActiveState(t,e,n)},_buttonOptions:function(){return{text:this.option("buttonText"),icon:this.option("buttonIcon"),width:this.option("buttonWidth"),height:this.option("buttonHeight"),useInkRipple:this.option("useInkRipple"),template:this.option("buttonTemplate"),focusStateEnabled:!1,onClick:function(t){this.option("opened",!this.option("opened")),this._buttonClickAction(t)}.bind(this)}},_toggleMenuVisibility:function(t){var e=void 0===t?!this._popup.option("visible"):t;t&&this._renderPopup(),this._popup.toggle(e),this.setAria("expanded",e)},_renderPopup:function(){if(!this._$popup){var t=this._$popup=i("<div>").appendTo(this.$element()),e=this._popupOptions();this._popup=this._createComponent(t,c,e)}},_popupOptions:function(){var t=!this.option("usePopover");return{onInitialized:function(e){e.component._wrapper().addClass("dx-dropdownmenu-popup-wrapper").toggleClass("dx-dropdownmenu-popup",t)},visible:this.option("opened"),deferRendering:!1,contentTemplate:function(t){this._renderList(t)}.bind(this),position:this.option("popupPosition"),animation:this.option("popupAnimation"),onOptionChanged:function(t){"visible"===t.name&&this.option("opened",t.value)}.bind(this),target:this.$element(),height:this.option("popupHeight"),width:this.option("popupWidth"),maxHeight:this.option("popupMaxHeight"),container:this.option("container"),autoResizeEnabled:this.option("popupAutoResizeEnabled")}},_renderList:function(t){var e=i(t),n=this._listOptions();e.addClass("dx-dropdownmenu-list"),this._list=this._createComponent(e,this.option("menuWidget"),n),this._list._getAriaTarget=function(){return this.$element()}.bind(this),this._setListDataSource();var r=.5*i(o).height();e.height()>r&&e.height(r)},_listOptions:function(){return{pageLoadMode:"scrollBottom",indicateLoading:!1,noDataText:"",selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),itemTemplate:this.option("itemTemplate"),onItemClick:function(t){this.option("closeOnClick")&&this.option("opened",!1),this._itemClickAction(t)}.bind(this),tabIndex:-1,focusStateEnabled:this.option("focusStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),onItemRendered:this.option("onItemRendered"),_itemAttributes:{role:"menuitem"}}},_setListDataSource:function(){this._list&&this._list.option("dataSource",this._dataSource||this.option("items")),delete this._deferRendering},_getKeyboardListeners:function(){return this.callBase().concat([this._list])},_toggleVisibility:function(t){this.callBase(t),this._button.option("visible",t)},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"items":case"dataSource":this.option("deferRendering")&&!this.option("opened")?this._deferRendering=!0:(this._refreshDataSource(),this._setListDataSource());break;case"itemTemplate":this._list&&this._list.option(e,this._getTemplate(n));break;case"onItemClick":this._initItemClickAction();break;case"onButtonClick":this._buttonClickAction();break;case"buttonIcon":case"buttonText":case"buttonWidth":case"buttonHeight":case"buttonTemplate":this._button.option(g[e],n),this._renderPopup();break;case"popupWidth":case"popupHeight":case"popupMaxHeight":case"popupAutoResizeEnabled":this._popup.option(m[e],n);break;case"usePopover":case"menuWidget":case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"activeStateEnabled":this._list&&this._list.option(e,n),this.callBase(t);break;case"selectionMode":case"selectedItemKeys":case"onItemRendered":this._list&&this._list.option(e,n);break;case"opened":this._deferRendering&&(this._refreshDataSource(),this._setListDataSource()),this._toggleMenuVisibility(n);break;case"deferRendering":case"popupPosition":case"closeOnClick":break;case"container":this._popup&&this._popup.option(t.name,t.value);break;default:this.callBase(t)}},open:function(){this.option("opened",!0)},close:function(){this.option("opened",!1)}}).include(d);a("dxDropDownMenu",_),t.exports=_},function(t,e,n){"use strict";var i,o=n(40),r=(i=o)&&i.__esModule?i:{default:i},a=n(60);e.createGroupFilter=function(t,e){for(var n=(0,a.normalizeSortingInfo)(e.group),i=[],o=0;o<t.length;o++)i.push([n[o].selector,"=",t[o]]);return e.filter&&i.push(e.filter),r.default.combineFilters(i)}},function(t,e,n){"use strict";var i=_(n(3)),o=_(n(58)),r=n(0),a=_(n(18)),s=_(n(15)),l=_(n(8)),u=_(n(445)),c=_(n(237)),d=_(n(815)),h=n(70),f=n(17),p=n(2),m=n(73),g=_(n(10));function _(t){return t&&t.__esModule?t:{default:t}}var v=u.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{itemTitleTemplate:"title",hoverStateEnabled:!0,showNavButtons:!1,scrollByContent:!0,scrollingEnabled:!0,onTitleClick:null,onTitleHold:null,onTitleRendered:null,badgeExpr:function(t){return t?t.badge:void 0}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===a.default.real().deviceType&&!a.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!o.default.touch},options:{swipeEnabled:!1}},{device:{platform:"generic"},options:{animationEnabled:!1}}])},_init:function(){this.callBase(),this.$element().addClass("dx-tabpanel"),this.setAria("role","tabpanel")},_initMarkup:function(){this.callBase(),this._createTitleActions(),this._renderLayout()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new m.BindableTemplate((function(t,e){if((0,p.isPlainObject)(e)){var n=(0,h.getImageContainer)(e.icon);n&&t.append(n),(0,p.isDefined)(e.title)&&!(0,p.isPlainObject)(e.title)&&t.append(s.default.createTextNode(e.title))}else(0,p.isDefined)(e)&&t.text(String(e));t.wrapInner((0,i.default)("<span>").addClass("dx-tab-text"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_createTitleActions:function(){this._createTitleClickAction(),this._createTitleHoldAction(),this._createTitleRenderedAction()},_createTitleClickAction:function(){this._titleClickAction=this._createActionByOption("onTitleClick")},_createTitleHoldAction:function(){this._titleHoldAction=this._createActionByOption("onTitleHold")},_createTitleRenderedAction:function(){this._titleRenderedAction=this._createActionByOption("onTitleRendered")},_renderContent:function(){var t=this;this.callBase(),this.option("templatesRenderAsynchronously")&&(this._resizeEventTimer=setTimeout((function(){t._updateLayout()}),0))},_renderLayout:function(){if(this._tabs)this._updateLayout();else{var t=this.$element();this._$tabContainer=(0,i.default)("<div>").addClass("dx-tabpanel-tabs").appendTo(t);var e=(0,i.default)("<div>").appendTo(this._$tabContainer);this._tabs=this._createComponent(e,c.default,this._tabConfig()),this._$container=(0,i.default)("<div>").addClass("dx-tabpanel-container").appendTo(t),this._$container.append(this._$wrapper),this._updateLayout()}},_updateLayout:function(){if(g.default.hasWindow()){var t=this._$tabContainer.outerHeight();this._$container.css({marginTop:-t,paddingTop:t})}},_refreshActiveDescendant:function(){if(this._tabs){var t=this._tabs,e=t.itemElements(),n=(0,i.default)(e[t.option("selectedIndex")]),o=this.getFocusedItemId();this.setAria("controls",void 0,(0,i.default)(e)),this.setAria("controls",o,n)}},_tabConfig:function(){return{selectOnFocus:!0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),repaintChangesOnly:this.option("repaintChangesOnly"),tabIndex:this.option("tabIndex"),selectedIndex:this.option("selectedIndex"),badgeExpr:this.option("badgeExpr"),onItemClick:this._titleClickAction.bind(this),onItemHold:this._titleHoldAction.bind(this),itemHoldTimeout:this.option("itemHoldTimeout"),onSelectionChanged:function(t){this.option("selectedIndex",t.component.option("selectedIndex")),this._refreshActiveDescendant()}.bind(this),onItemRendered:this._titleRenderedAction.bind(this),itemTemplate:this._getTemplateByOption("itemTitleTemplate"),items:this.option("items"),noDataText:null,scrollingEnabled:this.option("scrollingEnabled"),scrollByContent:this.option("scrollByContent"),showNavButtons:this.option("showNavButtons"),itemTemplateProperty:"tabTemplate",loopItemFocus:this.option("loop"),selectionRequired:!0,onOptionChanged:function(t){if("focusedElement"===t.name)if(t.value){var e=(0,i.default)(t.value),n=this._itemElements().eq(e.index());this.option("focusedElement",(0,f.getPublicElement)(n))}else this.option("focusedElement",t.value)}.bind(this),onFocusIn:function(t){this._focusInHandler(t.event)}.bind(this),onFocusOut:function(t){this._isFocusOutHandlerExecuting||this._focusOutHandler(t.event)}.bind(this)}},_renderFocusTarget:function(){this._focusTarget().attr("tabIndex",-1)},_updateFocusState:function(t,e){this.callBase(t,e),t.target===this._tabs._focusTarget().get(0)&&this._toggleFocusClass(e,this._focusTarget())},_focusOutHandler:function(t){this._isFocusOutHandlerExecuting=!0,this.callBase.apply(this,arguments),this._tabs._focusOutHandler(t),this._isFocusOutHandlerExecuting=!1},_setTabsOption:function(t,e){this._tabs&&this._tabs.option(t,e)},_visibilityChanged:function(t){t&&(this._tabs._dimensionChanged(),this._updateLayout())},registerKeyHandler:function(t,e){this.callBase(t,e),this._tabs&&this._tabs.registerKeyHandler(t,e)},repaint:function(){this.callBase(),this._tabs.repaint()},_optionChanged:function(t){var e=t.name,n=t.value,o=t.fullName;switch(e){case"dataSource":this.callBase(t);break;case"items":this._setTabsOption(e,this.option(e)),this._updateLayout(),this.option("repaintChangesOnly")||this._tabs.repaint(),this.callBase(t);break;case"width":this.callBase(t),this._tabs.repaint();break;case"selectedIndex":case"selectedItem":if(this._setTabsOption(o,n),this.callBase(t),!0===this.option("focusStateEnabled")){var r=this.option("selectedIndex"),a=this._itemElements().eq(r);this.option("focusedElement",(0,f.getPublicElement)(a))}break;case"itemHoldTimeout":case"focusStateEnabled":case"hoverStateEnabled":this._setTabsOption(o,n),this.callBase(t);break;case"scrollingEnabled":case"scrollByContent":case"showNavButtons":this._setTabsOption(o,n);break;case"focusedElement":var s=n?(0,i.default)(n).index():n,l=n?this._tabs._itemElements().eq(s):n;this._setTabsOption("focusedElement",(0,f.getPublicElement)(l)),this.callBase(t);break;case"itemTitleTemplate":this._setTabsOption("itemTemplate",this._getTemplateByOption("itemTitleTemplate"));break;case"onTitleClick":this._createTitleClickAction(),this._setTabsOption("onItemClick",this._titleClickAction.bind(this));break;case"onTitleHold":this._createTitleHoldAction(),this._setTabsOption("onItemHold",this._titleHoldAction.bind(this));break;case"onTitleRendered":this._createTitleRenderedAction(),this._setTabsOption("onItemRendered",this._titleRenderedAction.bind(this));break;case"loop":this._setTabsOption("loopItemFocus",n);break;case"badgeExpr":this._invalidate();break;default:this.callBase(t)}},_clean:function(){clearTimeout(this._resizeEventTimer),this.callBase()}});v.ItemClass=d.default,(0,l.default)("dxTabPanel",v),t.exports=v,t.exports.default=t.exports},function(t,e,n){"use strict";var i=c(n(8)),o=c(n(6)),r=n(4),a=n(0),s=c(n(5)),l=c(n(136)),u=c(n(69));function c(t){return t&&t.__esModule?t:{default:t}}var d=u.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{focusStateEnabled:!1,noDataText:null})},_setOptionsByReference:function(){this.callBase(),(0,a.extend)(this._optionsByReference,{validationGroup:!0})},_init:function(){this.callBase(),this._initGroupRegistration()},_initGroupRegistration:function(){var t=this.$element(),e=this.option("validationGroup")||l.default.findGroup(t,this._modelByElement(t)),n=l.default.addGroup(e);this._unsubscribeGroup(),this._groupWasInit=!0,this._validationGroup=e,this.groupSubscription=this._groupValidationHandler.bind(this),n.on("validated",this.groupSubscription)},_unsubscribeGroup:function(){var t=l.default.getGroupConfig(this._validationGroup);t&&t.off("validated",this.groupSubscription)},_getOrderedItems:function(t,e){var n=[];return s.default.each(t,(function(t,i){var o=(0,r.grep)(e,(function(t){if(t.validator===i)return!0}));o.length&&(n=n.concat(o))})),n},_groupValidationHandler:function(t){var e=this,n=this._getOrderedItems(t.validators,s.default.map(t.brokenRules,(function(t){return{text:t.message,validator:t.validator,index:t.index}})));this.validators=t.validators,s.default.each(this.validators,(function(t,n){if(n._validationSummary!==e){var i=e._itemValidationHandler.bind(e);n.on("validated",i),n.on("disposing",(function(){n.off("validated",i),n._validationSummary=null,i=null})),n._validationSummary=e}})),this.option("items",n)},_itemValidationHandler:function(t){for(var e=t.isValid,n=t.validator,i=t.brokenRules,o=this.option("items"),a=!1,l=0,u=function(){var t=o[l];if(t.validator===n){var s=(0,r.grep)(i||[],(function(e){return e.index===t.index}))[0];if(e||!s)return o.splice(l,1),a=!0,"continue";s.message!==t.text&&(t.text=s.message,a=!0)}l++};l<o.length;)u();s.default.each(i,(function(t,e){(0,r.grep)(o,(function(t){return t.validator===n&&t.index===e.index}))[0]||(o.push({text:e.message,validator:n,index:e.index}),a=!0)})),a&&(o=this._getOrderedItems(this.validators,o),this.option("items",o))},_initMarkup:function(){this.$element().addClass("dx-validationsummary"),this.callBase()},_optionChanged:function(t){switch(t.name){case"validationGroup":this._initGroupRegistration();break;default:this.callBase(t)}},_itemClass:function(){return"dx-validationsummary-item"},_itemDataKey:function(){return"dx-validationsummary-item-data"},_postprocessRenderItem:function(t){o.default.on(t.itemElement,"click",(function(){t.itemData.validator&&t.itemData.validator.focus&&t.itemData.validator.focus()}))},_dispose:function(){this.callBase(),this._unsubscribeGroup()}});(0,i.default)("dxValidationSummary",d),t.exports=d,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(450),r=n(0).extend,a=n(7).Deferred,s=n(106),l=null,u=null,c=function(){l&&(u(),l=null)};e.show=function(t){return c(),function(t){var e=(t=r({position:"top"},t)).content;delete t.content;var n=i("<div>").html(e).appendTo(s.value());u=function(){n.remove()},l=new o(n,t)}(t),l.show()},e.hide=function(){return l?l.hide().done(c).promise():(new a).resolve()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getElementMaxHeightByWindow=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(10),s=n(2);e.getElementMaxHeightByWindow=function(t,e){var n,i=(0,a.getWindow)();if((0,s.isNumeric)(e))n=(0,r.default)(i).innerHeight()-e+(0,r.default)(i).scrollTop();else{var o=t.offset().top-(0,r.default)(i).scrollTop(),l=(0,r.default)(i).innerHeight()-o-t.outerHeight();n=Math.max(o,l)}return.9*n}},function(t,e,n){"use strict";var i=n(104);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n=(0,i.getDiagram)().EventDispatcher;this.onChanged=new n,this._owner=e}var e,n,r;return e=t,(n=[{key:"raiseBarCommandExecuted",value:function(t,e){this.onChanged.raise("notifyBarCommandExecuted",parseInt(t),e)}},{key:"getCommandKeys",value:function(){throw"Not Implemented"}},{key:"setItemValue",value:function(t,e){}},{key:"setItemEnabled",value:function(t,e){}},{key:"setItemVisible",value:function(t,e){}},{key:"setEnabled",value:function(t){}},{key:"setItemSubItems",value:function(t,e){}},{key:"isVisible",value:function(){return!0}},{key:"_getKeys",value:function(t){var e=this;return t.reduce((function(t,n){return void 0!==n.command&&t.push(n.command),n.items&&(t=t.concat(e._getKeys(n.items))),t}),[])}}])&&o(e.prototype,n),r&&o(e,r),t}();t.exports=r},function(t,e,n){"use strict";var i=k(n(3)),o=k(n(45)),r=n(10),a=k(n(6)),s=k(n(8)),l=k(n(39)),u=n(2),c=n(5),d=n(0),h=n(16),f=n(7),p=k(n(134)),m=k(n(62)),g=k(n(42)),_=k(n(299)),v=k(n(31)),y=k(n(18)),b=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==I(t)&&"function"!==typeof t)return{default:t};var e=S();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?Object.getOwnPropertyDescriptor(t,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=t[o]}n.default=t,e&&e.set(t,n);return n}(n(11)),w=k(n(25)),x=k(n(12)),C=k(n(36));function S(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return S=function(){return t},t}function k(t){return t&&t.__esModule?t:{default:t}}function I(t){return(I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function E(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function O(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),t}function M(t,e,n){return(M="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=B(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function P(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==I(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=(0,r.getWindow)(),L=function(){return!!N.FormData},F=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_supportedKeys",value:function(){var t=this,e=function(e){e.preventDefault();var n=t._selectButton.$element();a.default.trigger(n,w.default.name)};return(0,d.extend)(M(B(n.prototype),"_supportedKeys",this).call(this),{space:e,enter:e})}},{key:"_setOptionsByReference",value:function(){M(B(n.prototype),"_setOptionsByReference",this).call(this),(0,d.extend)(this._optionsByReference,{value:!0})}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(M(B(n.prototype),"_getDefaultOptions",this).call(this),{chunkSize:0,value:[],selectButtonText:x.default.format("dxFileUploader-selectFile"),uploadButtonText:x.default.format("dxFileUploader-upload"),labelText:x.default.format("dxFileUploader-dropFile"),name:"files[]",multiple:!1,accept:"",uploadUrl:"/",allowCanceling:!0,showFileList:!0,progress:0,readyToUploadMessage:x.default.format("dxFileUploader-readyToUpload"),uploadedMessage:x.default.format("dxFileUploader-uploaded"),uploadFailedMessage:x.default.format("dxFileUploader-uploadFailedMessage"),uploadMode:"instantly",uploadMethod:"POST",uploadHeaders:{},onUploadStarted:null,onUploaded:null,onProgress:null,onUploadError:null,onUploadAborted:null,allowedFileExtensions:[],maxFileSize:0,minFileSize:0,inputAttr:{},invalidFileExtensionMessage:x.default.format("dxFileUploader-invalidFileExtension"),invalidMaxFileSizeMessage:x.default.format("dxFileUploader-invalidMaxFileSize"),invalidMinFileSizeMessage:x.default.format("dxFileUploader-invalidMinFileSize"),extendSelection:!0,validationMessageMode:"always",uploadFile:null,uploadChunk:null,abortUpload:null,validationMessageOffset:{h:0,v:0},useNativeInputClick:!1,useDragOver:!0,nativeDropSupported:!0,_uploadButtonType:"normal"})}},{key:"_defaultOptionsRules",value:function(){return M(B(n.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}},{device:[{platform:"android"}],options:{validationMessageOffset:{v:0}}},{device:function(){return"desktop"!==y.default.real().deviceType},options:{useDragOver:!1}},{device:function(){return!L()},options:{uploadMode:"useForm"}},{device:function(){return v.default.msie||"desktop"!==y.default.real().deviceType},options:{nativeDropSupported:!1}},{device:function(){return C.default.isMaterial()},options:{_uploadButtonType:"default"}}])}},{key:"_init",value:function(){M(B(n.prototype),"_init",this).call(this),this._initFileInput(),this._initLabel(),this._setUploadStrategy(),this._createFiles(),this._createUploadStartedAction(),this._createUploadedAction(),this._createProgressAction(),this._createUploadErrorAction(),this._createUploadAbortedAction()}},{key:"_setUploadStrategy",value:function(){var t=null;if(this.option("chunkSize")>0){var e=this.option("uploadChunk");t=e&&(0,u.isFunction)(e)?new W(this):new H(this)}else{var n=this.option("uploadFile");t=n&&(0,u.isFunction)(n)?new K(this):new G(this)}this._uploadStrategy=t}},{key:"_initFileInput",value:function(){var t=this;this._isCustomClickEvent=!1,this._$fileInput||(this._$fileInput=(0,i.default)("<input>").attr("type","file"),a.default.on(this._$fileInput,"change",this._inputChangeHandler.bind(this)),a.default.on(this._$fileInput,"click",(function(e){return e.stopPropagation(),t.option("useNativeInputClick")||t._isCustomClickEvent}))),this._$fileInput.prop({multiple:this.option("multiple"),accept:this.option("accept"),tabIndex:-1})}},{key:"_inputChangeHandler",value:function(){if(!this._doPreventInputChange){var t=this._$fileInput.val().replace(/^.*\\/,""),e=this._$fileInput.prop("files");if(!e||e.length){var n=e?this._getFiles(e):[{name:t}];this._changeValue(n),"instantly"===this.option("uploadMode")&&this._uploadFiles()}}}},{key:"_shouldFileListBeExtended",value:function(){return"useForm"!==this.option("uploadMode")&&this.option("extendSelection")&&this.option("multiple")}},{key:"_removeDuplicates",value:function(t,e){for(var n=[],i=0;i<e.length;i++)this._isFileInArray(t,e[i])||n.push(e[i]);return n}},{key:"_isFileInArray",value:function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.size===e.size&&i.name===e.name)return!0}return!1}},{key:"_changeValue",value:function(t){var e=this._shouldFileListBeExtended()?this.option("value").slice():[];"instantly"!==this.option("uploadMode")&&(t=this._removeDuplicates(e,t)),this.option("value",e.concat(t))}},{key:"_getFiles",value:function(t){var e=[];return(0,c.each)(t,(function(t,n){return e.push(n)})),e}},{key:"_initLabel",value:function(){this._$inputLabel||(this._$inputLabel=(0,i.default)("<div>")),this._$inputLabel.text(this.option("labelText"))}},{key:"_focusTarget",value:function(){return this.$element().find(".dx-fileuploader-button")}},{key:"_getSubmitElement",value:function(){return this._$fileInput}},{key:"_initMarkup",value:function(){M(B(n.prototype),"_initMarkup",this).call(this),this.$element().addClass("dx-fileuploader"),this._renderWrapper(),this._renderInputWrapper(),this._renderSelectButton(),this._renderInputContainer(),this._renderUploadButton(),this._preventRecreatingFiles=!0}},{key:"_render",value:function(){this._preventRecreatingFiles=!1,this._renderDragEvents(),this._renderFiles(),M(B(n.prototype),"_render",this).call(this)}},{key:"_createFileProgressBar",value:function(t){t.progressBar=this._createProgressBar(t.value.size),t.progressBar.$element().appendTo(t.$file),this._initStatusMessage(t),this._initCancelButton(t)}},{key:"_setStatusMessage",value:function(t,e){var n=this;setTimeout((function(){n.option("showFileList")&&t.$statusMessage&&(t.$statusMessage.text(n.option(e)),t.$statusMessage.css("display",""),t.progressBar.$element().remove())}),400)}},{key:"_createFiles",value:function(){var t=this,e=this.option("value");!this._files||0!==e.length&&this._shouldFileListBeExtended()||(this._preventFilesUploading(this._files),this._files=null),this._files||(this._files=[]),(0,c.each)(e.slice(this._files.length),(function(e,n){var i=t._createFile(n);t._validateFile(i),t._files.push(i)}))}},{key:"_preventFilesUploading",value:function(t){var e=this;t.forEach((function(t){return e._uploadStrategy.abortUpload(t)}))}},{key:"_validateFile",value:function(t){t.isValidFileExtension=this._validateFileExtension(t),t.isValidMinSize=this._validateMinFileSize(t),t.isValidMaxSize=this._validateMaxFileSize(t)}},{key:"_validateFileExtension",value:function(t){var e=this.option("allowedFileExtensions"),n=t.value.name.substring(t.value.name.lastIndexOf(".")).toLowerCase();if(0===e.length)return!0;for(var i=0;i<e.length;i++)if(n===e[i].toLowerCase())return!0;return!1}},{key:"_validateMaxFileSize",value:function(t){var e=t.value.size,n=this.option("maxFileSize");return!(n>0)||e<=n}},{key:"_validateMinFileSize",value:function(t){var e=t.value.size,n=this.option("minFileSize");return!(n>0)||e>=n}},{key:"_createUploadStartedAction",value:function(){this._uploadStartedAction=this._createActionByOption("onUploadStarted")}},{key:"_createUploadedAction",value:function(){this._uploadedAction=this._createActionByOption("onUploaded")}},{key:"_createProgressAction",value:function(){this._progressAction=this._createActionByOption("onProgress")}},{key:"_createUploadAbortedAction",value:function(){this._uploadAbortedAction=this._createActionByOption("onUploadAborted")}},{key:"_createUploadErrorAction",value:function(){this._uploadErrorAction=this._createActionByOption("onUploadError")}},{key:"_createFile",value:function(t){return{value:t,loadedSize:0,onProgress:(0,l.default)(),onAbort:(0,l.default)(),onLoad:(0,l.default)(),onError:(0,l.default)(),onLoadStart:(0,l.default)(),isValidFileExtension:!0,isValidMaxSize:!0,isValidMinSize:!0,isValid:function(){return this.isValidFileExtension&&this.isValidMaxSize&&this.isValidMinSize}}}},{key:"_renderFiles",value:function(){var t=this,e=this.option("value");this._$filesContainer?this._shouldFileListBeExtended()&&0!==e.length||this._$filesContainer.empty():this._$filesContainer=(0,i.default)("<div>").addClass("dx-fileuploader-files-container").appendTo(this._$content);var n=this.option("showFileList");n&&(0,c.each)(this._files,(function(e,n){n.$file||t._renderFile(n)})),this.$element().toggleClass("dx-fileuploader-show-file-list",n),this._toggleFileUploaderEmptyClassName(),this._updateFileNameMaxWidth(),this._$validationMessage&&this._$validationMessage.dxOverlay("instance").repaint()}},{key:"_renderFile",value:function(t){var e=t.value,n=(0,i.default)("<div>").addClass("dx-fileuploader-file-container").appendTo(this._$filesContainer);this._renderFileButtons(t,n),t.$file=(0,i.default)("<div>").addClass("dx-fileuploader-file").appendTo(n);var o=(0,i.default)("<div>").addClass("dx-fileuploader-file-info").appendTo(t.$file);t.$statusMessage=(0,i.default)("<div>").addClass("dx-fileuploader-file-status-message").appendTo(t.$file),(0,i.default)("<div>").addClass("dx-fileuploader-file-name").text(e.name).appendTo(o),(0,u.isDefined)(e.size)&&(0,i.default)("<div>").addClass("dx-fileuploader-file-size").text(this._getFileSize(e.size)).appendTo(o),t.isValid()?t.$statusMessage.text(this.option("readyToUploadMessage")):(t.isValidFileExtension||t.$statusMessage.append(this._createValidationElement("invalidFileExtensionMessage")),t.isValidMaxSize||t.$statusMessage.append(this._createValidationElement("invalidMaxFileSizeMessage")),t.isValidMinSize||t.$statusMessage.append(this._createValidationElement("invalidMinFileSizeMessage")),n.addClass("dx-fileuploader-invalid"))}},{key:"_createValidationElement",value:function(t){return(0,i.default)("<span>").text(this.option(t))}},{key:"_updateFileNameMaxWidth",value:function(){var t=this.option("allowCanceling")&&"useForm"!==this.option("uploadMode")?1:0,e="useButtons"===this.option("uploadMode")?1:0,n=this._$filesContainer.find(".dx-fileuploader-file-container").first().width()||this._$filesContainer.width(),i=this._$filesContainer.find(".dx-fileuploader-button-container").eq(0).width()*(t+e),o=this._$filesContainer.find(".dx-fileuploader-file-size").eq(0),r=o.text();o.text("1000 Mb");var a=o.width();o.text(r),this._$filesContainer.find(".dx-fileuploader-file-name").css("maxWidth",n-i-a)}},{key:"_renderFileButtons",value:function(t,e){var n=this._getCancelButton(t);n&&e.append(n);var i=this._getUploadButton(t);i&&e.append(i)}},{key:"_getCancelButton",value:function(t){var e=this;return"useForm"===this.option("uploadMode")?null:(t.cancelButton=this._createComponent((0,i.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-cancel-button"),g.default,{onClick:function(){return e._removeFile(t)},icon:"close",visible:this.option("allowCanceling"),integrationOptions:{}}),(0,i.default)("<div>").addClass("dx-fileuploader-button-container").append(t.cancelButton.$element()))}},{key:"_getUploadButton",value:function(t){var e=this;return t.isValid()&&"useButtons"===this.option("uploadMode")?(t.uploadButton=this._createComponent((0,i.default)("<div>").addClass("dx-fileuploader-button dx-fileuploader-upload-button"),g.default,{onClick:function(){return e._uploadFile(t)},icon:"upload"}),t.onLoadStart.add((function(){return t.uploadButton.$element().remove()})),(0,i.default)("<div>").addClass("dx-fileuploader-button-container").append(t.uploadButton.$element())):null}},{key:"_removeFile",value:function(t){t.$file.parent().remove(),this._files.splice((0,h.inArray)(t,this._files),1);var e=this.option("value").slice();e.splice((0,h.inArray)(t.value,e),1),this._preventRecreatingFiles=!0,this.option("value",e),this._preventRecreatingFiles=!1,this._toggleFileUploaderEmptyClassName(),this._doPreventInputChange=!0,this._$fileInput.val(""),this._doPreventInputChange=!1}},{key:"_toggleFileUploaderEmptyClassName",value:function(){this.$element().toggleClass("dx-fileuploader-empty",!this._files.length||this._hasInvalidFile(this._files))}},{key:"_hasInvalidFile",value:function(t){for(var e=0;e<t.length;e++)if(!t[e].isValid())return!0;return!1}},{key:"_getFileSize",value:function(t){for(var e=0,n=[x.default.format("dxFileUploader-bytes"),x.default.format("dxFileUploader-kb"),x.default.format("dxFileUploader-Mb"),x.default.format("dxFileUploader-Gb")],i=n.length-1;e<i&&t>=1024;)t/=1024,e++;return Math.round(t)+" "+n[e]}},{key:"_renderSelectButton",value:function(){var t=(0,i.default)("<div>").addClass("dx-fileuploader-button").appendTo(this._$inputWrapper);this._selectButton=this._createComponent(t,g.default,{text:this.option("selectButtonText"),focusStateEnabled:!1,integrationOptions:{}}),"desktop"===y.default.real().deviceType?this._selectButton.option("onClick",this._selectButtonClickHandler.bind(this)):(a.default.off(t,"click"),a.default.on(t,"click",this._selectButtonClickHandler.bind(this)))}},{key:"_selectButtonClickHandler",value:function(){if(!this.option("useNativeInputClick")){if(this.option("disabled"))return!1;this._isCustomClickEvent=!0,a.default.trigger(this._$fileInput,"click"),this._isCustomClickEvent=!1}}},{key:"_renderUploadButton",value:function(){if("useButtons"===this.option("uploadMode")){var t=(0,i.default)("<div>").addClass("dx-fileuploader-button").addClass("dx-fileuploader-upload-button").appendTo(this._$content);this._uploadButton=this._createComponent(t,g.default,{text:this.option("uploadButtonText"),onClick:this._uploadButtonClickHandler.bind(this),type:this.option("_uploadButtonType"),integrationOptions:{}})}}},{key:"_uploadButtonClickHandler",value:function(){this._uploadFiles()}},{key:"_shouldDragOverBeRendered",value:function(){return"useForm"!==this.option("uploadMode")||this.option("nativeDropSupported")}},{key:"_renderInputContainer",value:function(){this._$inputContainer=(0,i.default)("<div>").addClass("dx-fileuploader-input-container").appendTo(this._$inputWrapper),this._shouldDragOverBeRendered()||this._$inputContainer.css("display","none"),this._$fileInput.addClass("dx-fileuploader-input"),this._renderInput();var t="dx-fileuploader-input-label-".concat(new o.default);this._$inputLabel.attr("id",t).addClass("dx-fileuploader-input-label").appendTo(this._$inputContainer),this.setAria("labelledby",t,this._$fileInput)}},{key:"_renderInput",value:function(){this.option("useNativeInputClick")?this._selectButton.option("template",this._selectButtonInputTemplate.bind(this)):(this._$fileInput.appendTo(this._$inputContainer),this._selectButton.option("template","content")),this._applyInputAttributes(this.option("inputAttr"))}},{key:"_selectButtonInputTemplate",value:function(t,e){var n=(0,i.default)(e),o=(0,i.default)("<span>").addClass("dx-button-text").text(t.text);return n.append(o).append(this._$fileInput),n}},{key:"_renderInputWrapper",value:function(){this._$inputWrapper=(0,i.default)("<div>").addClass("dx-fileuploader-input-wrapper").appendTo(this._$content)}},{key:"_renderDragEvents",value:function(){a.default.off(this._$inputWrapper,"."+this.NAME),this._shouldDragOverBeRendered()&&(this._dragEventsTargets=[],a.default.on(this._$inputWrapper,b.addNamespace("dragenter",this.NAME),this._dragEnterHandler.bind(this)),a.default.on(this._$inputWrapper,b.addNamespace("dragover",this.NAME),this._dragOverHandler.bind(this)),a.default.on(this._$inputWrapper,b.addNamespace("dragleave",this.NAME),this._dragLeaveHandler.bind(this)),a.default.on(this._$inputWrapper,b.addNamespace("drop",this.NAME),this._dropHandler.bind(this)))}},{key:"_applyInputAttributes",value:function(t){this._$fileInput.attr(t)}},{key:"_useInputForDrop",value:function(){return this.option("nativeDropSupported")&&"useForm"===this.option("uploadMode")}},{key:"_dragEnterHandler",value:function(t){if(this.option("disabled"))return!1;this._useInputForDrop()||t.preventDefault(),this._updateEventTargets(t),this.$element().addClass("dx-fileuploader-dragover")}},{key:"_dragOverHandler",value:function(t){this._useInputForDrop()||t.preventDefault(),t.originalEvent.dataTransfer.dropEffect="copy"}},{key:"_dragLeaveHandler",value:function(t){this._useInputForDrop()||t.preventDefault(),this._updateEventTargets(t),this._dragEventsTargets.length||this.$element().removeClass("dx-fileuploader-dragover")}},{key:"_updateEventTargets",value:function(t){var e=this._dragEventsTargets.indexOf(t.target),n=-1!==e;"dragenter"===t.type?!n&&this._dragEventsTargets.push(t.target):n&&this._dragEventsTargets.splice(e,1)}},{key:"_dropHandler",value:function(t){if(this._dragEventsTargets=[],this.$element().removeClass("dx-fileuploader-dragover"),!this._useInputForDrop()){t.preventDefault();var e=t.originalEvent.dataTransfer.files,n=this._getFiles(e);!this.option("multiple")&&n.length>1||(this._changeValue(this._filterFiles(n)),"instantly"===this.option("uploadMode")&&this._uploadFiles())}}},{key:"_filterFiles",value:function(t){if(!t.length)return t;var e=this.option("accept");if(!e.length)return t;for(var n=[],i=this._getAllowedFileTypes(e),o=0,r=t.length;o<r;o++)this._isFileTypeAllowed(t[o],i)&&n.push(t[o]);return n}},{key:"_getAllowedFileTypes",value:function(t){return t.length?t.split(",").map((function(t){return t.trim()})):[]}},{key:"_isFileTypeAllowed",value:function(t,e){for(var n=0,i=e.length;n<i;n++){var o=e[n];if("."===o[0]){if(o=o.replace(".","\\."),t.name.match(new RegExp(o+"$","i")))return!0}else if(o=o.replace("*",""),t.type.match(new RegExp(o,"i")))return!0}return!1}},{key:"_renderWrapper",value:function(){var t=(0,i.default)("<div>").addClass("dx-fileuploader-wrapper").appendTo(this.$element()),e=(0,i.default)("<div>").addClass("dx-fileuploader-container").appendTo(t);this._$content=(0,i.default)("<div>").addClass("dx-fileuploader-content").appendTo(e)}},{key:"_clean",value:function(){this._$fileInput.detach(),delete this._$filesContainer,this._files&&this._files.forEach((function(t){t.$file=null,t.$statusMessage=null})),M(B(n.prototype),"_clean",this).call(this)}},{key:"_uploadFiles",value:function(){var t=this;L()&&(0,c.each)(this._files,(function(e,n){return t._uploadFile(n)}))}},{key:"_uploadFile",value:function(t){this._uploadStrategy.upload(t)}},{key:"_updateProgressBar",value:function(t,e){t.progressBar&&t.progressBar.option({value:e.loaded,showStatus:!0}),this._progressAction({file:t.value,segmentSize:e.currentSegmentSize,bytesLoaded:e.loaded,bytesTotal:e.total,event:e.event,request:t.request})}},{key:"_updateTotalProgress",value:function(t,e){var n=t?this._getProgressValue(e/t):0;this.option("progress",n),this._setLoadedSize(e)}},{key:"_getProgressValue",value:function(t){return Math.floor(100*t)}},{key:"_initStatusMessage",value:function(t){t.$statusMessage.css("display","none")}},{key:"_initCancelButton",value:function(t){var e=this;t.cancelButton.option("onClick",(function(){e._preventFilesUploading([t]),e._removeFile(t)}));var n=function(){setTimeout((function(){t.cancelButton.option({visible:!1})}),400)};t.onLoad.add(n),t.onError.add(n)}},{key:"_createProgressBar",value:function(t){var e=this;return this._createComponent((0,i.default)("<div>"),_.default,{value:void 0,min:0,max:t,statusFormat:function(t){return e._getProgressValue(t)+"%"},showStatus:!1,statusPosition:"right"})}},{key:"_getTotalFilesSize",value:function(){var t=this;return this._totalFilesSize||(this._totalFilesSize=0,(0,c.each)(this._files,(function(e,n){t._totalFilesSize+=n.value.size}))),this._totalFilesSize}},{key:"_getTotalLoadedFilesSize",value:function(){var t=this;return this._totalLoadedFilesSize||(this._totalLoadedFilesSize=0,(0,c.each)(this._files,(function(e,n){t._totalLoadedFilesSize+=n.loadedSize}))),this._totalLoadedFilesSize}},{key:"_setLoadedSize",value:function(t){this._totalLoadedFilesSize=t}},{key:"_recalculateProgress",value:function(){this._totalFilesSize=0,this._totalLoadedFilesSize=0,this._updateTotalProgress(this._getTotalFilesSize(),this._getTotalLoadedFilesSize())}},{key:"_getValidationMessageTarget",value:function(){return this._$inputWrapper}},{key:"_optionChanged",value:function(t){var e=t.value;switch(t.name){case"height":case"width":this._updateFileNameMaxWidth(),M(B(n.prototype),"_optionChanged",this).call(this,t);break;case"value":!e.length&&this._$fileInput.val(""),this._preventRecreatingFiles||(this._createFiles(),this._renderFiles()),this._recalculateProgress(),M(B(n.prototype),"_optionChanged",this).call(this,t);break;case"name":this._initFileInput(),M(B(n.prototype),"_optionChanged",this).call(this,t);break;case"accept":this._initFileInput();break;case"multiple":this._initFileInput(),t.value||this.reset();break;case"selectButtonText":this._selectButton.option("text",e);break;case"uploadButtonText":this._uploadButton&&this._uploadButton.option("text",e);break;case"_uploadButtonType":this._uploadButton&&this._uploadButton.option("type",e);break;case"maxFileSize":case"minFileSize":case"allowedFileExtensions":case"invalidFileExtensionMessage":case"invalidMaxFileSizeMessage":case"invalidMinFileSizeMessage":case"readyToUploadMessage":case"uploadedMessage":case"uploadFailedMessage":this._invalidate();break;case"labelText":this._$inputLabel.text(e);break;case"showFileList":this._preventRecreatingFiles||this._renderFiles();break;case"uploadFile":case"uploadChunk":case"chunkSize":this._setUploadStrategy();break;case"abortUpload":case"uploadUrl":case"progress":case"uploadMethod":case"uploadHeaders":case"extendSelection":break;case"allowCanceling":case"uploadMode":this.reset(),this._invalidate();break;case"onUploadStarted":this._createUploadStartedAction();break;case"onUploaded":this._createUploadedAction();break;case"onProgress":this._createProgressAction();break;case"onUploadError":this._createUploadErrorAction();break;case"onUploadAborted":this._createUploadAbortedAction();break;case"useNativeInputClick":this._renderInput();break;case"useDragOver":this._renderDragEvents();break;case"nativeDropSupported":this._invalidate();break;case"inputAttr":this._applyInputAttributes(e);break;default:M(B(n.prototype),"_optionChanged",this).call(this,t)}}},{key:"reset",value:function(){this.option("value",[])}}]),n}(m.default),V=function(){function t(e,n){T(this,t),this.file=e,this.chunkSize=n,this.index=0}return O(t,[{key:"read",value:function(){if(!this.file)return null;var t=this.createBlobResult(this.file,this.index,this.chunkSize);return t.isCompleted&&(this.file=null),this.index++,t}},{key:"createBlobResult",value:function(t,e,n){var i=e*n;return{blob:this.sliceFile(t,i,n),index:e,isCompleted:i+n>=t.size}}},{key:"sliceFile",value:function(t,e,n){return t.slice?t.slice(e,e+n):t.webkitSlice?t.webkitSlice(e,e+n):null}}]),t}(),z=function(){function t(e){T(this,t),this.fileUploader=e}return O(t,[{key:"upload",value:function(t){t.isValid()&&!t.uploadStarted&&(this._prepareFileBeforeUpload(t),this._uploadCore(t))}},{key:"abortUpload",value:function(t){var e=this;if(!(t._isError||t._isLoaded||t.isAborted)&&(t.request&&t.request.abort(),t.isAborted=!0,this._isCustomAbortUpload())){var n=this.fileUploader.option("abortUpload"),i=this._createAbortUploadArgument(t),o=null;try{var r=n(t.value,i);o=(0,f.fromPromise)(r)}catch(a){o=(new f.Deferred).reject(a).promise()}o.done((function(){return t.onAbort.fire()})).fail((function(n){return e._handleFileError(t,n)}))}}},{key:"_createAbortUploadArgument",value:function(t){}},{key:"_uploadCore",value:function(t){}},{key:"_isCustomAbortUpload",value:function(){var t=this.fileUploader.option("abortUpload");return t&&(0,u.isFunction)(t)}},{key:"_handleFileError",value:function(t,e){t._isError=!0,t.onError.fire(e)}},{key:"_prepareFileBeforeUpload",value:function(t){t.$file&&this.fileUploader._createFileProgressBar(t),t.onLoadStart.add(this._onUploadStarted.bind(this,t)),t.onLoad.add(this._onLoadedHandler.bind(this,t)),t.onError.add(this._onErrorHandler.bind(this,t)),t.onAbort.add(this._onAbortHandler.bind(this,t)),t.onProgress.add(this._onProgressHandler.bind(this,t))}},{key:"_isStatusError",value:function(t){return 400<=t&&t<500||500<=t&&t<600}},{key:"_onUploadStarted",value:function(t,e){t.uploadStarted=!0,this.fileUploader._uploadStartedAction({file:t.value,event:e,request:t.request})}},{key:"_onAbortHandler",value:function(t,e){this.fileUploader._uploadAbortedAction({file:t.value,event:e,request:t.request})}},{key:"_onErrorHandler",value:function(t,e){this.fileUploader._setStatusMessage(t,"uploadFailedMessage"),this.fileUploader._uploadErrorAction({file:t.value,event:void 0,request:t.request,error:e})}},{key:"_onLoadedHandler",value:function(t,e){t._isLoaded=!0,this.fileUploader._setStatusMessage(t,"uploadedMessage"),this.fileUploader._uploadedAction({file:t.value,event:e,request:t.request})}},{key:"_onProgressHandler",value:function(t,e){if(t){var n=this.fileUploader._getTotalFilesSize(),i=this.fileUploader._getTotalLoadedFilesSize(),o=Math.min(e.loaded,t.value.size),r=o-t.loadedSize;t.loadedSize=o,this.fileUploader._updateTotalProgress(n,i+r),this.fileUploader._updateProgressBar(t,this._getLoadedData(o,e.total,r,e))}}},{key:"_getLoadedData",value:function(t,e,n,i){return{loaded:t,total:e,currentSegmentSize:n}}}]),t}(),j=function(t){P(n,t);var e=A(n);function n(t){var i;return T(this,n),(i=e.call(this,t)).chunkSize=i.fileUploader.option("chunkSize"),i}return O(n,[{key:"_uploadCore",value:function(t){var e=t.value,n={name:e.name,loadedBytes:0,type:e.type,blobReader:new V(e,this.chunkSize),guid:new o.default,fileSize:e.size,count:Math.ceil(e.size/this.chunkSize),customData:{}};t.chunksData=n,this._sendChunk(t,n)}},{key:"_sendChunk",value:function(t,e){var n=this,i=e.blobReader.read();e.currentChunk=i,i&&this._sendChunkCore(t,e,i).done((function(){t.isAborted||(e.loadedBytes+=i.blob.size,t.onProgress.fire({loaded:e.loadedBytes,total:t.value.size}),i.isCompleted&&t.onLoad.fire(),setTimeout((function(){return n._sendChunk(t,e)})))})).fail((function(e){n._shouldHandleError(e)&&n._handleFileError(t,e)}))}},{key:"_sendChunkCore",value:function(t,e,n){}},{key:"_shouldHandleError",value:function(t){}},{key:"_tryRaiseStartLoad",value:function(t){t.isStartLoad||(t.isStartLoad=!0,t.onLoadStart.fire())}},{key:"_getEvent",value:function(t){return null}}]),n}(z),H=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_sendChunkCore",value:function(t,e,n){var i=this;return p.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(e){t.request=e},upload:{onloadstart:function(){return i._tryRaiseStartLoad(t)},onabort:function(){return t.onAbort.fire()}},data:this._createFormData({fileName:e.name,blobName:this.fileUploader.option("name"),blob:n.blob,index:n.index,count:e.count,type:e.type,guid:e.guid,size:e.fileSize})})}},{key:"_shouldHandleError",value:function(t){return this._isStatusError(t.status)}},{key:"_createFormData",value:function(t){var e=new N.FormData;return e.append(t.blobName,t.blob),e.append("chunkMetadata",JSON.stringify({FileName:t.fileName,Index:t.index,TotalCount:t.count,FileSize:t.size,FileType:t.type,FileGuid:t.guid})),e}}]),n}(j),W=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_sendChunkCore",value:function(t,e){this._tryRaiseStartLoad(t);var n=this._createChunksInfo(e),i=this.fileUploader.option("uploadChunk");try{var o=i(t.value,n);return(0,f.fromPromise)(o)}catch(r){return(new f.Deferred).reject(r).promise()}}},{key:"_createAbortUploadArgument",value:function(t){return this._createChunksInfo(t.chunksData)}},{key:"_shouldHandleError",value:function(t){return!0}},{key:"_createChunksInfo",value:function(t){return{bytesUploaded:t.loadedBytes,chunkCount:t.count,customData:t.customData,chunkBlob:t.currentChunk.blob,chunkIndex:t.currentChunk.index}}}]),n}(j),U=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_uploadCore",value:function(t){var e=this;t.loadedSize=0,this._uploadFile(t).done((function(){t.isAborted||t.onLoad.fire()})).fail((function(n){e._shouldHandleError(t,n)&&e._handleFileError(t,n)}))}},{key:"_uploadFile",value:function(t){}},{key:"_shouldHandleError",value:function(t,e){}},{key:"_handleProgress",value:function(t,e){t._isError||(t._isProgressStarted=!0,t.onProgress.fire(e))}},{key:"_getLoadedData",value:function(t,e,i,o){var r=M(B(n.prototype),"_getLoadedData",this).call(this,t,e,i,o);return r.event=o,r}}]),n}(z),G=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_uploadFile",value:function(t){var e=this;return p.default.sendRequest({url:this.fileUploader.option("uploadUrl"),method:this.fileUploader.option("uploadMethod"),headers:this.fileUploader.option("uploadHeaders"),beforeSend:function(e){t.request=e},upload:{onprogress:function(n){return e._handleProgress(t,n)},onloadstart:function(){return t.onLoadStart.fire()},onabort:function(){return t.onAbort.fire()}},data:this._createFormData(this.fileUploader.option("name"),t.value)})}},{key:"_shouldHandleError",value:function(t,e){return this._isStatusError(e.status)||!t._isProgressStarted}},{key:"_createFormData",value:function(t,e){var n=new N.FormData;return n.append(t,e,e.name),n}}]),n}(U),K=function(t){P(n,t);var e=A(n);function n(){return T(this,n),e.apply(this,arguments)}return O(n,[{key:"_uploadFile",value:function(t){var e=this;t.onLoadStart.fire();var n=this.fileUploader.option("uploadFile");try{var i=n(t.value,(function(n){var i={loaded:n,total:t.size};e._handleProgress(t,i)}));return(0,f.fromPromise)(i)}catch(o){return(new f.Deferred).reject(o).promise()}}},{key:"_shouldHandleError",value:function(t,e){return!0}}]),n}(U);(0,s.default)("dxFileUploader",F),t.exports=F,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(477),r=n(0).extend,a=n(2).isFunction,s=n(8),l=o.inherit({_getDefaultOptions:function(){return r(this.callBase(),{value:0,statusFormat:function(t){return"Progress: "+Math.round(100*t)+"%"},showStatus:!0,onComplete:null,activeStateEnabled:!1,statusPosition:"bottom left",_animatingSegmentCount:0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"android"===t.platform},options:{_animatingSegmentCount:2}}])},_initMarkup:function(){this._renderStatus(),this._createCompleteAction(),this.callBase(),this.$element().addClass("dx-progressbar"),this._$wrapper.addClass("dx-progressbar-wrapper"),this._$bar.addClass("dx-progressbar-container"),this.setAria("role","progressbar"),i("<div>").addClass("dx-progressbar-range-container").appendTo(this._$wrapper).append(this._$bar),this._$range.addClass("dx-progressbar-range"),this._toggleStatus(this.option("showStatus"))},_createCompleteAction:function(){this._completeAction=this._createActionByOption("onComplete")},_renderStatus:function(){this._$status=i("<div>").addClass("dx-progressbar-status")},_renderIndeterminateState:function(){this._$segmentContainer=i("<div>").addClass("dx-progressbar-animating-container");for(var t=this.option("_animatingSegmentCount"),e=0;e<t;e++)i("<div>").addClass("dx-progressbar-animating-segment").addClass("dx-progressbar-animating-segment-"+(e+1)).appendTo(this._$segmentContainer);this._$segmentContainer.appendTo(this._$wrapper)},_toggleStatus:function(t){var e=this.option("statusPosition").split(" ");t?"top"===e[0]||"left"===e[0]?this._$status.prependTo(this._$wrapper):this._$status.appendTo(this._$wrapper):this._$status.detach(),this._togglePositionClass()},_togglePositionClass:function(){var t=this.option("statusPosition").split(" ");this._$wrapper.removeClass("dx-position-top-left dx-position-top-right dx-position-bottom-left dx-position-bottom-right dx-position-left dx-position-right");var e="dx-position-"+t[0];t[1]&&(e+="-"+t[1]),this._$wrapper.addClass(e)},_toggleIndeterminateState:function(t){t?(this._renderIndeterminateState(),this._$bar.toggle(!1)):(this._$bar.toggle(!0),this._$segmentContainer.remove(),delete this._$segmentContainer)},_renderValue:function(){var t=this.option("value"),e=this.option("max");t||0===t?(this._$segmentContainer&&this._toggleIndeterminateState(!1),t===e&&this._completeAction(),this.callBase(),this._setStatus()):this._toggleIndeterminateState(!0)},_setStatus:function(){var t=this.option("statusFormat"),e=(t=a(t)?t.bind(this):function(t){return t})(this._currentRatio,this.option("value"));this._$status.text(e)},_dispose:function(){this._$status.remove(),this.callBase()},_optionChanged:function(t){switch(t.name){case"statusFormat":this._setStatus();break;case"showStatus":this._toggleStatus(t.value);break;case"statusPosition":this._toggleStatus(this.option("showStatus"));break;case"onComplete":this._createCompleteAction();break;case"_animatingSegmentCount":break;default:this.callBase(t)}}});s("dxProgressBar",l),t.exports=l,t.exports.default=t.exports},function(t,e,n){"use strict";var i=b(n(3)),o=b(n(6)),r=b(n(2)),a=n(17),s=b(n(8)),l=n(0),u=n(24),c=b(n(20)),d=n(98),h=n(10),f=b(n(869)),p=b(n(870)),m=b(n(871)),g=n(239),_=n(25),v=b(n(47)),y=n(7);function b(t){return t&&t.__esModule?t:{default:t}}var w=c.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{position:"left",opened:!1,minSize:null,maxSize:null,shading:!1,template:"panel",openedStateMode:"shrink",revealMode:"slide",animationEnabled:!0,animationDuration:400,closeOnOutsideClick:!1,contentTemplate:"content",target:void 0})},_setDeprecatedOptions:function(){this.callBase(),(0,l.extend)(this._deprecatedOptions,{target:{since:"20.1",message:"Functionality associated with this option is not intended for the Drawer widget."}})},_init:function(){this.callBase(),this._initStrategy(),this.$element().addClass("dx-drawer"),this._animations=[],this._whenAnimationCompleted=void 0,this._whenPanelContentRendered=void 0,this._whenPanelContentRefreshed=void 0,this._$wrapper=(0,i.default)("<div>").addClass("dx-drawer-wrapper"),this._$viewContentWrapper=(0,i.default)("<div>").addClass("dx-drawer-content"),this._$wrapper.append(this._$viewContentWrapper),this.$element().append(this._$wrapper)},_initStrategy:function(){switch(this.option("openedStateMode")){case"push":this._strategy=new f.default(this);break;case"shrink":this._strategy=new p.default(this);break;case"overlap":this._strategy=new m.default(this);break;default:this._strategy=new f.default(this)}},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){var t={};t.panel=new d.EmptyTemplate,t.content=new d.EmptyTemplate,this._templateManager.addDefaultTemplates(t),this.callBase()},_viewContentWrapperClickHandler:function(t){var e=this.option("closeOnOutsideClick");r.default.isFunction(e)&&(e=e(t)),e&&this.option("opened")&&(this.stopAnimations(),this.option("shading")&&t.preventDefault(),this.hide())},_initMarkup:function(){this.callBase(),this._toggleOpenedStateClass(this.option("opened")),this._renderPanelContentWrapper(),this._refreshOpenedStateModeClass(),this._refreshRevealModeClass(),this._renderShader(),this._whenPanelContentRendered=new y.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRendered),this._renderViewContent(),o.default.off(this._$viewContentWrapper,_.name),o.default.on(this._$viewContentWrapper,_.name,this._viewContentWrapperClickHandler.bind(this)),this._refreshPositionClass(),this._refreshWrapperChildrenOrder()},_render:function(){var t=this;this._initMinMaxSize(),this.callBase(),this._whenPanelContentRendered.always((function(){t._initMinMaxSize(),t._strategy.refreshPanelElementSize("slide"===t.option("revealMode")||!t.isHorizontalDirection()),t._renderPosition(t.option("opened"),!1)}))},_renderPanelContentWrapper:function(){this._$panelContentWrapper=(0,i.default)("<div>").addClass("dx-drawer-panel-content"),this._$wrapper.append(this._$panelContentWrapper)},_refreshOpenedStateModeClass:function(t){t&&this.$element().removeClass("dx-drawer-"+t),this.$element().addClass("dx-drawer-"+this.option("openedStateMode"))},_refreshPositionClass:function(t){t&&this.$element().removeClass("dx-drawer-"+t),this.$element().addClass("dx-drawer-"+this.calcTargetPosition())},_refreshWrapperChildrenOrder:function(){var t=this.calcTargetPosition();this._strategy.isViewContentFirst(t,this.option("rtlEnabled"))?this._$wrapper.prepend(this._$viewContentWrapper):this._$wrapper.prepend(this._$panelContentWrapper)},_refreshRevealModeClass:function(t){t&&this.$element().removeClass("dx-drawer-"+t),this.$element().addClass("dx-drawer-"+this.option("revealMode"))},_renderViewContent:function(){var t=this.option("contentTemplate"),e=this._getTemplate(t);if(e){var n=e.render({container:this.viewContent(),noModel:!0,transclude:this._templateManager.anonymousTemplateName===t});n.hasClass("ng-scope")&&(0,i.default)(this._$viewContentWrapper).children().not(".".concat("dx-drawer-shader")).replaceWith(n)}},_renderShader:function(){this._$shader=this._$shader||(0,i.default)("<div>").addClass("dx-drawer-shader"),this._$shader.appendTo(this.viewContent()),this._toggleShaderVisibility(this.option("opened"))},_initSize:function(){this._initMinMaxSize()},_initMinMaxSize:function(){var t=this.isHorizontalDirection()?this.getRealPanelWidth():this.getRealPanelHeight();this._maxSize=this.option("maxSize")||t,this._minSize=this.option("minSize")||0},calcTargetPosition:function(){var t=this.option("position"),e=this.option("rtlEnabled"),n=t;return"before"===t?n=e?"right":"left":"after"===t&&(n=e?"left":"right"),n},getOverlayTarget:function(){return this._options.silent("target")||this._$wrapper},getOverlay:function(){return this._overlay},getMaxSize:function(){return this._maxSize},getMinSize:function(){return this._minSize},getRealPanelWidth:function(){return(0,h.hasWindow)()?r.default.isDefined(this.option("templateSize"))?this.option("templateSize"):this.getElementWidth(this._strategy.getPanelContent()):0},getElementWidth:function(t){var e=t.children();return e.length?(0,u.getBoundingRect)(e.eq(0).get(0)).width:(0,u.getBoundingRect)(t.get(0)).width},getRealPanelHeight:function(){return(0,h.hasWindow)()?r.default.isDefined(this.option("templateSize"))?this.option("templateSize"):this.getElementHeight(this._strategy.getPanelContent()):0},getElementHeight:function(t){var e=t.children();return e.length?(0,u.getBoundingRect)(e.eq(0).get(0)).height:(0,u.getBoundingRect)(t.get(0)).height},isHorizontalDirection:function(){var t=this.calcTargetPosition();return"left"===t||"right"===t},stopAnimations:function(t){v.default.stop(this._$shader,t),v.default.stop((0,i.default)(this.content()),t),v.default.stop((0,i.default)(this.viewContent()),t);var e=this.getOverlay();e&&v.default.stop((0,i.default)(e.$content()),t)},setZIndex:function(t){this._$shader.css("zIndex",t-1),this._$panelContentWrapper.css("zIndex",t)},resizeContent:function(){this.resizeViewContent},resizeViewContent:function(){(0,a.triggerResizeEvent)(this.viewContent())},_isInvertedPosition:function(){var t=this.calcTargetPosition();return"right"===t||"bottom"===t},_renderPosition:function(t,e,n){this.stopAnimations(n),this._animations=[],(0,h.hasWindow)()&&(e=r.default.isDefined(e)?e&&this.option("animationEnabled"):this.option("animationEnabled"),t&&this._toggleShaderVisibility(t),this._strategy.renderPosition(t,e),this._strategy.renderShaderVisibility(t,e,this.option("animationDuration")))},_animationCompleteHandler:function(){this.resizeViewContent(),this._whenAnimationCompleted&&(this._whenAnimationCompleted.resolve(),this._animations=[])},_getPositionCorrection:function(){return this._isInvertedPosition()?-1:1},_dispose:function(){g.animation.complete((0,i.default)(this.viewContent())),this.callBase()},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._initMinMaxSize(),this._strategy.refreshPanelElementSize("slide"===this.option("revealMode")),this._renderPosition(this.option("opened"),!1)},_toggleShaderVisibility:function(t){this.option("shading")?(this._$shader.toggleClass("dx-state-invisible",!t),this._$shader.css("visibility",t?"visible":"hidden")):this._$shader.toggleClass("dx-state-invisible",!0)},_toggleOpenedStateClass:function(t){this.$element().toggleClass("dx-drawer-opened",t)},_refreshPanel:function(){var t=this;(0,i.default)(this.viewContent()).css("paddingLeft",0),(0,i.default)(this.viewContent()).css("left",0),(0,i.default)(this.viewContent()).css("transform","translate(0px, 0px)"),this._removePanelContentWrapper(),this._removeOverlay(),this._renderPanelContentWrapper(),this._refreshWrapperChildrenOrder(),this._whenPanelContentRefreshed=new y.Deferred,this._strategy.renderPanelContent(this._whenPanelContentRefreshed),(0,h.hasWindow)()&&this._whenPanelContentRefreshed.always((function(){t._strategy.refreshPanelElementSize("slide"===t.option("revealMode")),t._renderPosition(t.option("opened"),!1,!0)}))},_clean:function(){this._cleanFocusState(),this._removePanelContentWrapper(),this._removeOverlay()},_removePanelContentWrapper:function(){this._$panelContentWrapper&&this._$panelContentWrapper.remove()},_removeOverlay:function(){this._overlay&&(this._overlay.dispose(),delete this._overlay,delete this._$panelContentWrapper)},_optionChanged:function(t){switch(t.name){case"width":this.callBase(t),this._dimensionChanged();break;case"opened":this._renderPosition(t.value),this._toggleOpenedStateClass(t.value);break;case"position":this._refreshPositionClass(t.previousValue),this._refreshWrapperChildrenOrder(),this._invalidate();break;case"contentTemplate":case"template":this._invalidate();break;case"openedStateMode":case"target":this._initStrategy(),this._refreshOpenedStateModeClass(t.previousValue),this._refreshPanel();break;case"minSize":case"maxSize":this._initMinMaxSize(),this._renderPosition(this.option("opened"),!1);break;case"revealMode":this._refreshRevealModeClass(t.previousValue),this._refreshPanel();break;case"shading":this._toggleShaderVisibility(this.option("opened"));break;case"animationEnabled":case"animationDuration":case"closeOnOutsideClick":break;default:this.callBase(t)}},content:function(){return(0,a.getPublicElement)(this._$panelContentWrapper)},viewContent:function(){return(0,a.getPublicElement)(this._$viewContentWrapper)},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},toggle:function(t){var e=void 0===t?!this.option("opened"):t;return this._whenAnimationCompleted=new y.Deferred,this.option("opened",e),this._whenAnimationCompleted.promise()}});(0,s.default)("dxDrawer",w),t.exports=w},function(t,e,n){"use strict";var i=n(5),o=function(t){return t.replace(/\//g,"//")},r=function(){var t="";return(0,i.each)(arguments,(function(e,n){n&&(t&&(t+="/"),t+=n)})),t};t.exports.getFileExtension=function(t){var e=t.lastIndexOf(".");return-1!==e?t.substr(e):""},t.exports.getName=function(t){var e=t.lastIndexOf("/");return-1!==e?t.substr(e+"/".length):t},t.exports.getParentPath=function(t){var e=t.lastIndexOf("/");return-1!==e?t.substr(0,e):""},t.exports.getPathParts=function(t,e){if(!t||"/"===t)return[];for(var n=[],i="",a=0;a<t.length;a++){var s=t.charAt(a);if("/"===s){var l=t.charAt(a+1);"/"!==l&&(i&&(n.push(i),i=""),s=l),a++}i+=s}if(i&&n.push(i),e)for(var u=0;u<n.length;u++)n[u]=r(0===u?"":n[u-1],o(n[u]));return n},t.exports.getEscapedFileName=o,t.exports.pathCombine=r,t.exports.PATH_SEPARATOR="/"},function(t,e,n){"use strict";t.exports={NoAccess:0,FileExists:1,FileNotFound:2,DirectoryExists:3,DirectoryNotFound:4,WrongFileExtension:5,MaxFileSizeExceeded:6,InvalidSymbols:7,Other:32767}},function(t,e,n){"use strict";var i=l(n(3)),o=n(0),r=l(n(12)),a=l(n(20)),s=l(n(48));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,a,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_initMarkup",value:function(){var t=this;h(g(u.prototype),"_initMarkup",this).call(this),this._createOnClosedAction();var e=this._getDialogOptions(),n=(0,i.default)("<div>").addClass("dx-filemanager-dialog-popup").appendTo(this.$element());e.popupCssClass&&n.addClass(e.popupCssClass),this._popup=this._createComponent(n,s.default,{showTitle:!0,title:e.title,visible:!1,closeOnOutsideClick:!0,contentTemplate:this._createContentTemplate.bind(this),toolbarItems:[{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:e.buttonText,onClick:this._applyDialogChanges.bind(this)}},{widget:"dxButton",toolbar:"bottom",location:"after",options:{text:r.default.format("dxFileManager-dialogButtonCancel"),onClick:this._closeDialog.bind(this)}}],onInitialized:function(e){e.component.registerKeyHandler("enter",t._applyDialogChanges.bind(t))},onHidden:this._onPopupHidden.bind(this),onShown:this._onPopupShown.bind(this)})}},{key:"show",value:function(){this._dialogResult=null,this._popup.show()}},{key:"_getDialogOptions",value:function(){return{title:"Title",buttonText:"ButtonText",contentCssClass:"",popupCssClass:""}}},{key:"_createContentTemplate",value:function(t){this._$contentElement=(0,i.default)("<div>").appendTo(t).addClass("dx-filemanager-dialog");var e=this._getDialogOptions().contentCssClass;e&&this._$contentElement.addClass(e)}},{key:"_getDialogResult",value:function(){return null}},{key:"_applyDialogChanges",value:function(){var t=this._getDialogResult();t&&(this._dialogResult=t,this._popup.hide())}},{key:"_closeDialog",value:function(){this._popup.hide()}},{key:"_onPopupHidden",value:function(){this._onClosedAction({dialogResult:this._dialogResult})}},{key:"_onPopupShown",value:function(){}},{key:"_createOnClosedAction",value:function(){this._onClosedAction=this._createActionByOption("onClosed")}},{key:"_setTitle",value:function(t){this._popup.option("title",t)}},{key:"_setButtonText",value:function(t){this._popup.option("toolbarItems[0].options.text",t)}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(h(g(u.prototype),"_getDefaultOptions",this).call(this),{onClosed:null})}},{key:"_optionChanged",value:function(t){switch(t.name){case"onClosed":this._createOnPathChangedAction();break;default:h(g(u.prototype),"_optionChanged",this).call(this,t)}}}])&&d(e.prototype,n),a&&d(e,a),u}(a.default);t.exports=_},function(t,e,n){"use strict";var i=n(11).eventData,o=n(15),r=n(25).name,a=n(28).down,s=n(28).move,l=n(6);function u(t){this._initHandlers(t)}u.prototype={constructor:u,_initHandlers:function(t){var e=o.getDocument();function n(e){!function(t,e){var n=e.getData(t);n>=0&&e.click({node:e.getNode(n),coords:e.getCoords(t),event:t})}(e,t)}t.getCoords=function(e){var n=i(e),o=t.widget._renderer.getRootOffset();return[n.x-o.left,n.y-o.top]},t.root.on(r,n),t.root.on(a,c),l.on(e,a,c),l.on(e,s,d),this._disposeHandlers=function(){t.root.off(r,n),t.root.off(a,c),l.off(e,a,c),l.off(e,s,d)};var u=!1;function c(e){u?u=!1:(void 0!==t.getData(e)&&(u=!0),d(e))}function d(e){!function(t,e){var n=e.getData(t);n>=0?e.getNode(n).setHover():e.widget.clearHover()}(e,t),t.widget._getOption("tooltip").enabled&&function(t,e){var n,o=e.getData(t,!0);o>=0?(n=i(t),e.getNode(o).showTooltip([n.x,n.y])):e.widget.hideTooltip()}(e,t)}},dispose:function(){this._disposeHandlers()}},t.exports.Tracker=u},function(t,e,n){"use strict";var i=T(n(3)),o=T(n(18)),r=T(n(57)),a=n(2),s=T(a),l=T(n(6)),u=T(n(8)),c=T(n(31)),d=n(4),h=n(362),f=n(7),p=n(17),m=n(10),g=n(0),_=n(16),v=n(5),y=T(n(12)),b=n(11),w=n(25),x=T(n(376)),C=n(100),S=T(n(110)),k=n(73),I=n(306);function T(t){return t&&t.__esModule?t:{default:t}}function E(t){return(E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var O=S.default.inherit({_supportedKeys:function(){var t=this,e=this.callBase(),n=function(e){return t._list._keyboardHandler(e)};return(0,g.extend)({},e,{backspace:function(t){if(this._isCaretAtTheStart()){t.preventDefault(),t.stopPropagation(),this._isTagRemoved=!0;var e=this._$focusedTag||this._tagElements().last();this._$focusedTag&&this._moveTagFocus("prev",!0),0!==e.length&&(this._preserveFocusedTag=!0,this._removeTagElement(e),delete this._preserveFocusedTag)}},upArrow:function(i,o){return i.altKey||!t._list?e.upArrow.call(t,i):n(o)},downArrow:function(i,o){return i.altKey||!t._list?e.downArrow.call(t,i):n(o)},del:function(t){if(this._$focusedTag&&this._isCaretAtTheStart()){t.preventDefault(),t.stopPropagation(),this._isTagRemoved=!0;var e=this._$focusedTag;this._moveTagFocus("next",!0),this._preserveFocusedTag=!0,this._removeTagElement(e),delete this._preserveFocusedTag}},enter:function(t,e){var i=this._list&&null!==this._list.option("focusedElement");if(this.option("acceptCustomValue")&&!i)return t.preventDefault(),void(""!==this._searchValue()&&this._customItemAddedHandler(t));this.option("opened")&&(n(e),t.preventDefault())},space:function(t,e){var i=this.option("opened"),o=this._shouldRenderSearchEvent();i&&!o&&(n(e),t.preventDefault())},leftArrow:function(t){if(this._isCaretAtTheStart()){var e=this.option("rtlEnabled");if(!this._isEditable()||!e||this._$focusedTag){t.preventDefault();var n=e?"next":"prev";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}},rightArrow:function(t){if(this._isCaretAtTheStart()){var e=this.option("rtlEnabled");if(!this._isEditable()||e||this._$focusedTag){t.preventDefault();var n=e?"prev":"next";this._moveTagFocus(n),!this.option("multiline")&&this._scrollContainer(n)}}}})},_allowSelectItemByTab:function(){return!1},_isCaretAtTheStart:function(){var t=(0,x.default)(this._input());return 0===t.start&&0===t.end},_moveTagFocus:function(t,e){if(!this._$focusedTag){var n=this._tagElements();return this._$focusedTag="next"===t?n.first():n.last(),void this._toggleFocusClass(!0,this._$focusedTag)}var i=this._$focusedTag[t](".".concat("dx-tag"));i.length>0?this._replaceFocusedTag(i):(e||"next"===t&&this._isEditable())&&this._clearTagFocus()},_replaceFocusedTag:function(t){this._toggleFocusClass(!1,this._$focusedTag),this._$focusedTag=t,this._toggleFocusClass(!0,this._$focusedTag)},_clearTagFocus:function(){this._$focusedTag&&(this._toggleFocusClass(!1,this._$focusedTag),delete this._$focusedTag)},_focusClassTarget:function(t){return t&&t.length&&t[0]!==this._focusTarget()[0]?t:this.callBase()},_scrollContainer:function(t){if(!this.option("multiline")&&(0,m.hasWindow)()&&this._$tagsContainer){var e=this._getScrollPosition(t);this._$tagsContainer.scrollLeft(e)}},_getScrollPosition:function(t){return"start"===t||"end"===t?this._getBorderPosition(t):this._$focusedTag?this._getFocusedTagPosition(t):this._getBorderPosition("end")},_getBorderPosition:function(t){var e=this.option("rtlEnabled"),n="end"===t^e,i=e&&!c.default.webkit,o=!e||c.default.webkit||c.default.msie?1:-1;return n^!i?0:o*(this._$tagsContainer.get(0).scrollWidth-this._$tagsContainer.outerWidth())},_getFocusedTagPosition:function(t){var e=this.option("rtlEnabled"),n="next"===t^e,i=this._$focusedTag.position().left,o=this._$tagsContainer.scrollLeft();(n&&(i+=this._$focusedTag.outerWidth(!0)-this._$tagsContainer.outerWidth()),n^i<0)&&(o+=i*(e&&c.default.msie?-1:1));return o},_setNextValue:d.noop,_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{value:[],showDropDownButton:!1,maxFilterLength:1500,tagTemplate:"tag",selectAllText:y.default.format("dxList-selectAll"),hideSelectedItems:!1,selectedItems:[],selectAllMode:"page",onSelectAllValueChanged:null,maxDisplayedTags:void 0,showMultiTagOnly:!0,onMultiTagPreparing:null,multiline:!0,useSubmitBehavior:!0})},_init:function(){this.callBase(),this._selectedItems=[],this._initSelectAllValueChangedAction()},_initActions:function(){this.callBase(),this._initMultiTagPreparingAction()},_initMultiTagPreparingAction:function(){this._multiTagPreparingAction=this._createActionByOption("onMultiTagPreparing",{beforeExecute:function(t){this._multiTagPreparingHandler(t.args[0])}.bind(this),excludeValidators:["disabled","readOnly"]})},_multiTagPreparingHandler:function(t){var e=this._getValue().length;this.option("showMultiTagOnly")?t.text=y.default.getFormatter("dxTagBox-selected")(e):t.text=y.default.getFormatter("dxTagBox-moreSelected")(e-this.option("maxDisplayedTags")+1)},_initDynamicTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({tag:new k.BindableTemplate((function(t,e){var n=(0,i.default)("<div>").addClass("dx-tag-content");(0,i.default)("<span>").text(e.text||e).appendTo(n),(0,i.default)("<div>").addClass("dx-tag-remove-button").appendTo(n),t.append(n)}),["text"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter})})},_toggleSubmitElement:function(t){t?(this._renderSubmitElement(),this._setSubmitValue()):(this._$submitElement&&this._$submitElement.remove(),delete this._$submitElement)},_renderSubmitElement:function(){this.option("useSubmitBehavior")&&(this._$submitElement=(0,i.default)("<select>").attr("multiple","multiple").css("display","none").appendTo(this.$element()))},_setSubmitValue:function(){if(this.option("useSubmitBehavior")){for(var t=this._getValue(),e=[],n=0,o=t.length;n<o;n++){var r=this._shouldUseDisplayValue(t[n]);e.push((0,i.default)("<option>").val(r?this._displayGetter(t[n]):t[n]).attr("selected","selected"))}this._getSubmitElement().empty().append(e)}},_initMarkup:function(){this._tagElementsCache=(0,i.default)();var t=!this.option("multiline");this.$element().addClass("dx-tagbox").toggleClass("dx-tagbox-only-select",!(this.option("searchEnabled")||this.option("acceptCustomValue"))).toggleClass("dx-tagbox-single-line",t),this._initTagTemplate(),this.callBase()},_render:function(){this.callBase(),this._renderTagRemoveAction(),this._renderSingleLineScroll(),this._scrollContainer("start")},_initTagTemplate:function(){this._tagTemplate=this._getTemplateByOption("tagTemplate")},_renderField:function(){var t=!(0,a.isDefined)(this.option("fieldTemplate"));this.$element().toggleClass("dx-tagbox-default-template",t).toggleClass("dx-tagbox-custom-template",!t),this.callBase()},_renderTagRemoveAction:function(){var t=this._createAction(this._removeTagHandler.bind(this)),e=(0,b.addNamespace)(w.name,"dxTagBoxTagRemove");l.default.off(this._$tagsContainer,e),l.default.on(this._$tagsContainer,e,".".concat("dx-tag-remove-button"),(function(e){t({event:e})})),this._renderTypingEvent()},_renderSingleLineScroll:function(){var t=(0,b.addNamespace)("dxmousewheel",this.NAME),e=this.$element(),n=this.option("multiline");l.default.off(e,t),"desktop"===o.default.real().deviceType?n||l.default.on(e,t,this._tagContainerMouseWheelHandler.bind(this)):this._$tagsContainer&&this._$tagsContainer.css("overflowX",n?"":"auto")},_tagContainerMouseWheelHandler:function(t){var e=this._$tagsContainer.scrollLeft(),n=-.3*t.delta;if((0,I.allowScroll)(this._$tagsContainer,n,!0))return this._$tagsContainer.scrollLeft(e+n),!1},_renderTypingEvent:function(){var t=this;l.default.on(this._input(),(0,b.addNamespace)("keydown",this.NAME),(function(e){var n=(0,b.normalizeKeyName)(e);!t._isControlKey(n)&&t._isEditable()&&t._clearTagFocus()}))},_popupWrapperClass:function(){return this.callBase()+" dx-tagbox-popup-wrapper"},_renderInput:function(){this.callBase(),this._renderPreventBlur(this._inputWrapper())},_renderInputValueImpl:function(){return this._renderMultiSelect()},_loadInputValue:function(){return(0,f.when)()},_clearTextValue:function(){this._input().val(""),this._toggleEmptinessEventHandler()},_focusInHandler:function(t){this._preventNestedFocusEvent(t)||this._scrollContainer("end"),this.callBase(t)},_restoreInputText:function(t){t||this._clearTextValue()},_focusOutHandler:function(t){this._preventNestedFocusEvent(t)||(this._clearTagFocus(),this._scrollContainer("start")),this.callBase(t)},_getFirstPopupElement:function(){return this.option("showSelectionControls")?this._list.$element():this.callBase()},_initSelectAllValueChangedAction:function(){this._selectAllValueChangeAction=this._createActionByOption("onSelectAllValueChanged")},_renderList:function(){var t=this;this.callBase(),this._setListDataSourceFilter(),this.option("showSelectionControls")&&(this._list.registerKeyHandler("tab",(function(e){return t._popupElementTabHandler(e)})),this._list.registerKeyHandler("escape",(function(e){return t._popupElementEscHandler(e)})))},_canListHaveFocus:function(){return"useButtons"===this.option("applyValueMode")},_listConfig:function(){var t=this,e=this.option("showSelectionControls")?"all":"multiple";return(0,g.extend)(this.callBase(),{selectionMode:e,selectAllText:this.option("selectAllText"),onSelectAllValueChanged:function(e){var n=e.value;t._selectAllValueChangeAction({value:n})},selectAllMode:this.option("selectAllMode"),selectedItems:this._selectedItems,onFocusedItemChanged:null})},_renderMultiSelect:function(){var t=this,e=new f.Deferred;return this._$tagsContainer=this._$textEditorInputContainer.addClass("dx-tag-container").addClass("dx-native-click"),this._$tagsContainer.parent().addClass("dx-native-click"),this._renderInputSize(),this._renderTags().done((function(){t._popup&&t._popup.refreshPosition(),e.resolve()})).fail(e.reject),e.promise()},_listItemClickHandler:function(t){!this.option("showSelectionControls")&&this._clearTextValue(),"useButtons"!==this.option("applyValueMode")&&this.callBase(t)},_shouldClearFilter:function(){var t=this.callBase();return!this.option("showSelectionControls")&&t},_renderInputSize:function(){var t=this._input(),e=t.val(),n=(0,a.isString)(e)&&e,i="",o="",r=this.option("searchEnabled")||this.option("acceptCustomValue");if(n&&r){var s=(0,p.createTextElementHiddenCopy)(t,e,{includePaddings:!0});s.insertAfter(t),i=s.outerWidth()+5,s.remove()}else e||(o=1);t.css("width",i),t.attr("size",o)},_renderInputSubstitution:function(){this.callBase(),this._renderInputSize()},_getValue:function(){return this.option("value")||[]},_multiTagRequired:function(){var t=this._getValue(),e=this.option("maxDisplayedTags");return(0,a.isDefined)(e)&&t.length>e},_renderMultiTag:function(t){var e=(0,i.default)("<div>").addClass("dx-tag").addClass("dx-tagbox-multi-tag"),n={multiTagElement:(0,p.getPublicElement)(e),selectedItems:this.option("selectedItems")};return this._multiTagPreparingAction(n),!n.cancel&&(e.data("dxTagData",n.text),e.insertBefore(t),this._tagTemplate.render({model:n.text,container:(0,p.getPublicElement)(e)}),e)},_getFilteredItems:function(t){var e=this,n=new h.SelectionFilterCreator(t),i=this._list&&this._list.option("selectedItems")||this.option("selectedItems"),o=n.getLocalFilter(this._valueGetter),r=i.filter(o),a=r.length===t.length,s=new f.Deferred;if(!this._isDataSourceChanged&&a)return s.resolve(r).promise();var l=this._dataSource,u=l.filter(),c=n.getCombinedFilter(this.option("valueExpr"),u),d=encodeURI(JSON.stringify(c)).length>this.option("maxFilterLength")?void 0:c,p=l.loadOptions(),m=p.customQueryParams,g=p.expand;return l.store().load({filter:d,customQueryParams:m,expand:g}).done((function(t,n){if(e._isDataSourceChanged=!1,e._disposed)s.reject();else{var i=(0,C.normalizeLoadResult)(t,n).data,r=l._applyMapFunction(i);s.resolve(r.filter(o))}})).fail(s.reject),s.promise()},_createTagsData:function(t,e){var n=this,i=[],o={},r="this"===this._valueGetterExpr(),s={};e.forEach((function(t){var e=r?JSON.stringify(t):n._valueGetter(t);s[e]=t}));var l=[];t.forEach((function(t,e){var u=s[r?JSON.stringify(t):t];if(r&&!(0,a.isDefined)(u))l.push(n._loadItem(t,o).always((function(o){var r=n._createTagData(i,o,t,e);i.splice(e,0,r)})));else{var c=n._createTagData(i,u,t,e);i.splice(e,0,c)}}));var u=new f.Deferred;return f.when.apply(this,l).always((function(){u.resolve(i)})),u.promise()},_createTagData:function(t,e,n,i){if((0,a.isDefined)(e))return this._selectedItems.push(e),e;var o=this.option("selectedItem");return this._valueGetter(o)===n?o:n},_isGroupedData:function(){return this.option("grouped")&&!this._dataSource.group()},_getItemsByValues:function(t){var e=[];return t.forEach(function(t){var n=this._getItemFromPlain(t);(0,a.isDefined)(n)&&e.push(n)}.bind(this)),e},_getFilteredGroupedItems:function(t){var e=new f.Deferred;return this._dataSource.items().length?e.resolve(this._getItemsByValues(t)):this._dataSource.load().done(function(){e.resolve(this._getItemsByValues(t))}.bind(this)).fail(e.resolve([])),e.promise()},_loadTagsData:function(){var t=this,e=this._getValue(),n=new f.Deferred;return this._selectedItems=[],(this._isGroupedData()?this._getFilteredGroupedItems(e):this._getFilteredItems(e)).done((function(i){t._createTagsData(e,i).always((function(t){n.resolve(t)}))})).fail(n.reject.bind(this)),n.promise()},_renderTags:function(){var t=this,e=new f.Deferred,n=!1;return this._shouldGetItemsFromPlain(this._valuesToUpdate)&&(this._selectedItems=this._getItemsFromPlain(this._valuesToUpdate),this._selectedItems.length===this._valuesToUpdate.length&&(this._renderTagsImpl(this._selectedItems),n=!0,e.resolve())),n||this._loadTagsData().always((function(n){t._disposed?e.reject():(t._renderTagsImpl(n),e.resolve())})),e.promise()},_renderTagsImpl:function(t){this._renderTagsCore(t),this._renderEmptyState(),this._preserveFocusedTag||this._clearTagFocus()},_shouldGetItemsFromPlain:function(t){return t&&this._dataSource.isLoaded()&&!this._wasSearch()&&t.length<=this._getPlainItems().length},_getItemsFromPlain:function(t){var e=this;return this._getPlainItems().filter((function(n){for(var i,o=0;o<t.length;o++)if(i=t[o],s.default.isObject(i)){if(e._isValueEquals(n,i))return!0}else if(e._isValueEquals(e._valueGetter(n),i))return!0;return!1}),this)},_renderTagsCore:function(t){var e=this;this._renderField(),this.option("selectedItems",this._selectedItems.slice()),this._cleanTags();var n=this._multiTagRequired()&&this._renderMultiTag(this._input()),i=this.option("showMultiTagOnly"),o=this.option("maxDisplayedTags");t.forEach((function(t,r){if(n&&i||n&&!i&&r-o>=-1)return!1;e._renderTag(t,n||e._input())})),this._isFocused()&&this._scrollContainer("end"),this._refreshTagElements()},_cleanTags:function(){if(this._multiTagRequired())this._tagElements().remove();else{var t=this._tagElements(),e=this._getValue();(0,v.each)(t,(function(t,n){var o=(0,i.default)(n);(0,_.inArray)(o.data("dxTagData"),e)<0&&o.remove()}))}},_renderEmptyState:function(){var t=!(this._getValue().length||this._selectedItems.length||this._searchValue());this._toggleEmptiness(t),this._renderDisplayText()},_renderDisplayText:function(){this._renderInputSize()},_refreshTagElements:function(){this._tagElementsCache=this.$element().find(".".concat("dx-tag"))},_tagElements:function(){return this._tagElementsCache},_applyTagTemplate:function(t,e){this._tagTemplate.render({model:t,container:(0,p.getPublicElement)(e)})},_renderTag:function(t,e){var n=this._valueGetter(t);if((0,a.isDefined)(n)){var i=this._getTag(n),o=this._displayGetter(t),r=this._getItemModel(t,o);i?((0,a.isDefined)(o)&&(i.empty(),this._applyTagTemplate(r,i)),i.removeClass("dx-tag-custom")):(i=this._createTag(n,e),(0,a.isDefined)(t)?this._applyTagTemplate(r,i):(i.addClass("dx-tag-custom"),this._applyTagTemplate(n,i)))}},_getItemModel:function(t,e){return(0,a.isObject)(t)&&e?t:(0,d.ensureDefined)(e,"")},_getTag:function(t){for(var e=this._tagElements(),n=e.length,o=!1,a=0;a<n;a++){var s=e[a],l=r.default.data(s,"dxTagData");if(t===l||(0,d.equalByValue)(t,l)){o=(0,i.default)(s);break}}return o},_createTag:function(t,e){return(0,i.default)("<div>").addClass("dx-tag").data("dxTagData",t).insertBefore(e)},_toggleEmptinessEventHandler:function(){this._toggleEmptiness(!this._getValue().length&&!this._searchValue().length)},_customItemAddedHandler:function(t){this.callBase(t),this._input().val("")},_removeTagHandler:function(t){var e=t.event;e.stopPropagation(),this._saveValueChangeEvent(e);var n=(0,i.default)(e.target).closest(".".concat("dx-tag"));this._removeTagElement(n)},_removeTagElement:function(t){if(t.hasClass("dx-tagbox-multi-tag"))this.option("showMultiTagOnly")?this.reset():this.option("value",this._getValue().slice(0,this.option("maxDisplayedTags")));else{var e=t.data("dxTagData");this._removeTagWithUpdate(e),this._refreshTagElements()}},_updateField:d.noop,_removeTagWithUpdate:function(t){var e=this._getValue().slice();this._removeTag(e,t),this.option("value",e),0===e.length&&this._clearTagFocus()},_getCurrentValue:function(){return this._lastValue()},_selectionChangeHandler:function(t){var e=this;if("useButtons"!==this.option("applyValueMode")){var n=this._getValue().slice();(0,v.each)(t.removedItems||[],(function(t,i){e._removeTag(n,e._valueGetter(i))})),(0,v.each)(t.addedItems||[],(function(t,i){e._addTag(n,e._valueGetter(i))})),this._updateWidgetHeight(),(0,d.equalByValue)(this._list.option("selectedItemKeys"),this.option("value"))||this.option("value",n)}},_removeTag:function(t,e){var n=this._valueIndex(e,t);n>=0&&t.splice(n,1)},_addTag:function(t,e){this._valueIndex(e)<0&&t.push(e)},_fieldRenderData:function(){return this._selectedItems.slice()},_completeSelection:function(t){this.option("showSelectionControls")||this._setValue(t)},_setValue:function(t){if(null!==t){var e="useButtons"===this.option("applyValueMode"),n=this._valueIndex(t),i=(e?this._list.option("selectedItemKeys"):this._getValue()).slice();n>=0?i.splice(n,1):i.push(t),"useButtons"===this.option("applyValueMode")?this._list.option("selectedItemKeys",i):this.option("value",i)}},_isSelectedValue:function(t,e){return this._valueIndex(t,null,e)>-1},_valueIndex:function(t,e,n){var i=this,o=-1;return n&&"object"!==E(t)&&(n.indexByValues||(n.indexByValues={},(e=e||this._getValue()).forEach((function(t,e){n.indexByValues[t]=e}))),t in n.indexByValues)?n.indexByValues[t]:(e=e||this._getValue(),(0,v.each)(e,(function(e,n){if(i._isValueEquals(t,n))return o=e,!1})),o)},_lastValue:function(){var t=this._getValue(),e=t[t.length-1];return(0,a.isDefined)(e)?e:null},_valueChangeEventHandler:d.noop,_shouldRenderSearchEvent:function(){return this.option("searchEnabled")||this.option("acceptCustomValue")},_searchHandler:function(t){this.option("searchEnabled")&&t&&!this._isTagRemoved&&this.callBase(t),this._updateWidgetHeight(),delete this._isTagRemoved},_updateWidgetHeight:function(){var t=this.$element(),e=t.height();this._renderInputSize();var n=t.height();this._popup&&this.option("opened")&&this._isEditable()&&n!==e&&this._popup.repaint()},_refreshSelected:function(){this._list&&this._list.option("selectedItems",this._selectedItems)},_resetListDataSourceFilter:function(){var t=this._getDataSource();t&&(delete this._userFilter,t.filter(null),t.reload())},_setListDataSourceFilter:function(){if(this.option("hideSelectedItems")&&this._list){var t=this._getDataSource();if(t){var e=this._valueGetterExpr();if((0,a.isString)(e)&&"this"!==e){var n=this._dataSourceFilterExpr();void 0===this._userFilter&&(this._userFilter=t.filter()||null),this._userFilter&&n.push(this._userFilter),n.length?t.filter(n):t.filter(null)}else t.filter(this._dataSourceFilterFunction.bind(this));t.load()}}},_dataSourceFilterExpr:function(){var t=this,e=[];return(0,v.each)(this._getValue(),(function(n,i){e.push(["!",[t._valueGetterExpr(),i]])})),e},_dataSourceFilterFunction:function(t){var e=this,n=this._valueGetter(t),i=!0;return(0,v.each)(this._getValue(),(function(t,o){if(e._isValueEquals(o,n))return i=!1,!1})),i},_dataSourceChangedHandler:function(){this._list&&(this._isDataSourceChanged=!0),this.callBase.apply(this,arguments)},_applyButtonHandler:function(){this.option("value",this._getSortedListValues()),this._clearTextValue(),this._clearFilter(),this.callBase()},_getSortedListValues:function(){var t=this._getListValues(),e=this.option("value")||[],n=t.length?e.filter((function(e){return-1!==t.indexOf(e)})):[],i=n.length?t.filter((function(t){return-1===e.indexOf(t)})):t;return n.concat(i)},_getListValues:function(){var t=this;if(!this._list)return[];var e=this._getPlainItems(this._list.option("selectedItems")),n=[];return(0,v.each)(e,(function(e,i){n[e]=t._valueGetter(i)})),n},_setListDataSource:function(){this.callBase(),this._refreshSelected()},_renderOpenedState:function(){this.callBase(),"useButtons"!==this.option("applyValueMode")||this.option("opened")||this._refreshSelected()},reset:function(){this._restoreInputText();var t=this._getDefaultOptions().value,e=this.option("value");t&&0===t.length&&e&&t.length===e.length||this.callBase()},_clean:function(){this.callBase(),delete this._defaultTagTemplate,delete this._valuesToUpdate,delete this._tagTemplate},_removeDuplicates:function(t,e){var n=this,i=[];return(0,v.each)(t,(function(t,o){e.filter((function(t){return n._valueGetter(o)===n._valueGetter(t)})).length||i.push(o)})),i},_optionChanged:function(t){switch(t.name){case"onSelectAllValueChanged":this._initSelectAllValueChangedAction();break;case"onMultiTagPreparing":this._initMultiTagPreparingAction(),this._renderTags();break;case"hideSelectedItems":t.value?this._setListDataSourceFilter():this._resetListDataSourceFilter();break;case"useSubmitBehavior":this._toggleSubmitElement(t.value);break;case"displayExpr":this.callBase(t),this._initTemplates(),this._invalidate();break;case"tagTemplate":this._initTagTemplate(),this._invalidate();break;case"selectAllText":this._setListOption("selectAllText",this.option("selectAllText"));break;case"value":this._valuesToUpdate=null===t||void 0===t?void 0:t.value,this.callBase(t),this._valuesToUpdate=void 0,this._setListDataSourceFilter();break;case"maxDisplayedTags":case"showMultiTagOnly":this._renderTags();break;case"selectAllMode":this._setListOption(t.name,t.value);break;case"selectedItem":break;case"selectedItems":this._selectionChangedAction({addedItems:this._removeDuplicates(t.value,t.previousValue),removedItems:this._removeDuplicates(t.previousValue,t.value)});break;case"multiline":this.$element().toggleClass("dx-tagbox-single-line",!t.value),this._renderSingleLineScroll();break;case"maxFilterLength":break;default:this.callBase(t)}},_getActualSearchValue:function(){return this.callBase()||this._searchValue()},_popupHidingHandler:function(){this.callBase(),this._clearFilter()}});(0,u.default)("dxTagBox",O),t.exports=O,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.prepareScrollData=e.allowScroll=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(11);var s=function(t,e,n){var i=(0,r.default)(t),o=n?i.scrollLeft():i.scrollTop(),a=n?"Width":"Height",s=i.prop("scroll".concat(a))-i.prop("client".concat(a))-o;return(0!==o||0!==s)&&(!!(0===o&&e>=0||0===s&&e<=0||o>0&&s>0)||void 0)};e.allowScroll=s,e.prepareScrollData=function(t,e){var n=(0,r.default)(t);return{validate:function(i){if((0,a.isDxMouseWheelEvent)(i)&&(o=i.target,!e||(0,r.default)(o).is(t)))return!!s(n,-i.delta,i.shiftKey)&&(i._needSkipEvent=!0,!0);var o}}}},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(21)),r=n(17),a=n(0),s=n(24),l=n(2);function u(t){return t&&t.__esModule?t:{default:t}}var c=function(t){var e=0,n=t.offsetWidth;if(t.getBoundingClientRect){var i=(0,s.getBoundingRect)(t);(e=i.width)||(e=i.right-i.left),e<=n-1&&(e=n)}return e>0?e:n};function d(t,e,n,i){var o=0,r=0,a=n/2;return t+i-(e+n)>1?(t>=e+n+a&&(r=parseInt((t-(e+n))/a,10)),o=e+n+a*r):t<e?(t<=e-a&&(r=parseInt((t-(e-a))/a,10)),o=e-(n-a*r)):o=e,o}e.AreaItem=o.default.inherit({_getRowElement:function(t){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows[t]:null},_createGroupElement:function(){return(0,i.default)("<div>")},_createTableElement:function(){return(0,i.default)("<table>")},_getCellText:function(t,e){var n=t.isWhiteSpace?" ":t.text||" ";return!e||-1===n.indexOf("<")&&-1===n.indexOf(">")||(n=(0,i.default)("<div>").text(n).html()),n},_getRowClassNames:function(){},_applyCustomStyles:function(t){t.cell.width&&t.cssArray.push("min-width:"+t.cell.width+"px"),t.cell.sorted&&t.classArray.push("dx-pivotgrid-sorted")},_getMainElementMarkup:function(){return"<tbody>"},_getCloseMainElementMarkup:function(){return"</tbody>"},_renderTableContent:function(t,e){var n,i,o,r,a,s,u=e.length,c=this.option("rtlEnabled"),d=[],h=this.option("encodeHtml");for(t.data("area",this._getAreaName()),t.data("data",e),t.css("width",""),d.push(this._getMainElementMarkup()),o=0;o<u;o++){n=e[o];var f=[];for(s=[],d.push("<tr "),r=0;r<n.length;r++){if(i=n[r],this._getRowClassNames(o,i,s),f.push("<td "),i){i.rowspan&&f.push("rowspan='"+(i.rowspan||1)+"'"),i.colspan&&f.push("colspan='"+(i.colspan||1)+"'");var p={cellElement:void 0,cell:i,cellsCount:n.length,cellIndex:r,rowElement:void 0,rowIndex:o,rowsCount:u,rtlEnabled:c,classArray:[],cssArray:[]};this._applyCustomStyles(p),p.cssArray.length&&(f.push("style='"),f.push(p.cssArray.join(";")),f.push("'")),p.classArray.length&&(f.push("class='"),f.push(p.classArray.join(" ")),f.push("'")),f.push(">"),(0,l.isDefined)(i.expanded)&&f.push("<div class='dx-expand-icon-container'><span class='dx-expand'></span></div>"),a=this._getCellText(i,h)}else a="";f.push("<span "),(0,l.isDefined)(i.wordWrapEnabled)&&f.push("style='white-space:",i.wordWrapEnabled?"normal":"nowrap",";'"),f.push(">"+a+"</span>"),i.sorted&&f.push("<span class='dx-icon-sorted'></span>"),f.push("</td>")}s.length&&(d.push("class='"),d.push(s.join(" ")),d.push("'")),d.push(">"),d.push(f.join("")),d.push("</tr>")}d.push(this._getCloseMainElementMarkup()),t.append(d.join("")),this._triggerOnCellPrepared(t,e)},_triggerOnCellPrepared:function(t,e){var n,i,o,s,l,u,c,d=t.find("tr"),h=this._getAreaName(),f=this.option("onCellPrepared"),p=this.component._eventsStrategy.hasEvent("cellPrepared"),m=this.component._defaultActionArgs();if(f||p)for(u=0;u<e.length;u++)for(s=e[u],n=d.eq(u),c=0;c<s.length;c++)l=s[c],i=n.children().eq(c),o={area:h,rowIndex:u,columnIndex:c,cellElement:(0,r.getPublicElement)(i),cell:l},p?this.component._trigger("onCellPrepared",o):f((0,a.extend)(o,m))},_getRowHeight:function(t){var e=this._getRowElement(t),n=0,i=e.offsetHeight;if(e&&e.lastChild){if(e.getBoundingClientRect)(n=(0,s.getBoundingRect)(e).height)<=i-1&&(n=i);return n>0?n:i}return 0},_setRowHeight:function(t,e){var n=this._getRowElement(t);n&&(n.style.height=e+"px")},ctor:function(t){this.component=t},option:function(){return this.component.option.apply(this.component,arguments)},getRowsLength:function(){return this._tableElement&&this._tableElement.length>0?this._tableElement[0].rows.length:0},getRowsHeight:function(){var t,e=[],n=this.getRowsLength();for(t=0;t<n;t++)e.push(this._getRowHeight(t));return e},setRowsHeight:function(t){var e,n=0,i=t.length;for(e=0;e<i;e++)n+=t[e],this._setRowHeight(e,t[e]);this._tableHeight=n,this._tableElement[0].style.height=n+"px"},getColumnsWidth:function(){var t,e,n,i,o=this.getRowsLength(),r=[],a=[],s=function(t,e,n,i,o){var r,a;for(r=0;r<i;r++)for(a=0;a<o;a++)t[e+r]=t[e+r]||[],t[e+r][n+a]=!0};if(o)for(t=0;t<o;t++)for(r[t]=r[t]||[],e=this._getRowElement(t),n=0;n<e.cells.length;n++){for(i=0;r[t][i];i++);s(r,t,i,e.cells[n].rowSpan,e.cells[n].colSpan),1===e.cells[n].colSpan&&(a[i]=a[i]||c(e.cells[n]))}return a},setColumnsWidth:function(t){var e,n=0,i=this._tableElement[0],o="",r=this.getColumnsCount(),a=[];for(e=0;e<r;e++)a.push(t[e]||0);for(e=r;e<t.length&&t;e++)a[r-1]+=t[e];for(e=0;e<r;e++)n+=a[e],o+='<col style="width: '+a[e]+'px">';this._colgroupElement.html(o),this._tableWidth=n-this._groupWidth>.01?Math.ceil(n):n,i.style.width=this._tableWidth+"px",i.style.tableLayout="fixed"},resetColumnsWidth:function(){this._colgroupElement.find("col").width("auto"),this._tableElement.css({width:"",tableLayout:""})},groupWidth:function(t){return void 0===t?this._groupElement.width():t>=0?(this._groupWidth=t,this._groupElement[0].style.width=t+"px"):this._groupElement[0].style.width=t},groupHeight:function(t){if(void 0===t)return this._groupElement.height();this._groupHeight=null,t>=0?(this._groupHeight=t,this._groupElement[0].style.height=t+"px"):this._groupElement[0].style.height=t},groupElement:function(){return this._groupElement},tableElement:function(){return this._tableElement},element:function(){return this._rootElement},headElement:function(){return this._tableElement.find("thead")},_setTableCss:function(t){this.option("rtlEnabled")&&(t.right=t.left,delete t.left),this.tableElement().css(t)},setVirtualContentParams:function(t){this._virtualContent.css({width:t.width,height:t.height}),this.groupElement().addClass("dx-virtual-mode")},disableVirtualMode:function(){this.groupElement().removeClass("dx-virtual-mode")},_renderVirtualContent:function(){this._virtualContent||"virtual"!==this.option("scrolling.mode")||(this._virtualContent=(0,i.default)("<div>").addClass("dx-virtual-content").insertBefore(this._tableElement))},reset:function(){var t=this._tableElement[0];if(this._fakeTable&&this._fakeTable.detach(),this._fakeTable=null,this.disableVirtualMode(),this.groupWidth("100%"),this.groupHeight("auto"),this.resetColumnsWidth(),t){for(var e=0;e<t.rows.length;e++)t.rows[e].style.height="";t.style.height="",t.style.width="100%"}},_updateFakeTableVisibility:function(){var t=this.tableElement()[0],e=this.option("rtlEnabled")?"right":"left",n=this._fakeTable[0];t.style.top===n.style.top&&n.style[e]===t.style[e]?this._fakeTable.addClass("dx-hidden"):this._fakeTable.removeClass("dx-hidden")},_moveFakeTableHorizontally:function(t){var e=this.option("rtlEnabled")?"right":"left",n=d(t,parseFloat(this.tableElement()[0].style[e]),this._tableWidth,this._groupWidth);parseFloat(this._fakeTable[0].style[e])!==n&&(this._fakeTable[0].style[e]=n+"px")},_moveFakeTableTop:function(t){var e=d(t,parseFloat(this.tableElement()[0].style.top),this._tableHeight,this._groupHeight);parseFloat(this._fakeTable[0].style.top)!==e&&(this._fakeTable[0].style.top=e+"px")},_moveFakeTable:function(){this._updateFakeTableVisibility()},_createFakeTable:function(){this._fakeTable||(this._fakeTable=this.tableElement().clone().addClass("dx-pivot-grid-fake-table").appendTo(this._virtualContent))},render:function(t,e){if(this._tableElement){try{this._tableElement[0].innerHTML=""}catch(n){this._tableElement.empty()}this._tableElement.attr("style","")}else this._groupElement=this._createGroupElement(),this._tableElement=this._createTableElement(),this._tableElement.appendTo(this._groupElement),this._groupElement.appendTo(t),this._rootElement=t;this._colgroupElement=(0,i.default)("<colgroup>").appendTo(this._tableElement),this._renderTableContent(this._tableElement,e),this._renderVirtualContent()},_getScrollable:function(){return this.groupElement().data("dxScrollable")},on:function(t,e){var n=this,i=n._getScrollable();return i&&i.on(t,(function(t){n.option("rtlEnabled")&&(0,l.isDefined)(t.scrollOffset.left)&&(t.scrollOffset.left=i.$content().width()-i._container().width()-t.scrollOffset.left),e(t)})),this},off:function(t){var e=this._getScrollable();return e&&e.off(t),this},scrollTo:function(t){var e=this._getScrollable(),n=t;e&&(this.option("rtlEnabled")&&("column"===this._getAreaName()?n=e.$content().width()-e._container().width()-t:"data"===this._getAreaName()&&(n={x:e.$content().width()-e._container().width()-t.x,y:t.y})),e.scrollTo(n),this._virtualContent&&(this._createFakeTable(),this._moveFakeTable(t)))},updateScrollable:function(){var t=this._getScrollable();if(t)return t.update()},getColumnsCount:function(){var t,e=0,n=this._getRowElement(0);if(n)for(var i=0,o=(t=n.cells).length;i<o;++i)e+=t[i].colSpan;return e},getData:function(){var t=this._tableElement;return t?t.data("data"):[]}})},function(t,e,n){"use strict";var i=x(n(3)),o=x(n(6)),r=x(n(107)),a=x(n(25)),s=n(4),l=n(2),u=n(16),c=n(0),d=n(5),h=n(12),f=x(n(8)),p=x(n(20)),m=n(457),g=x(m),_=x(n(419)),v=x(n(424)),y=n(95),b=x(n(1013)),w=n(7);function x(t){return t&&t.__esModule?t:{default:t}}var C="<div>",S=g.default.HeaderFilterView.inherit({_getSearchExpr:function(t){return t.useDefaultSearchExpr=!0,this.callBase(t)}});function k(t,e){var n=e;return(0,l.isDefined)(e.groupIndex)&&(n=t.getAreaFields(e.area,!0)[e.areaIndex]),n}function I(t){return t=t||{},JSON.stringify([t.fields,t.columnExpandedPaths,t.rowExpandedPaths])}var T=p.default.inherit(_.default).inherit(v.default).inherit(m.headerFilterMixin).inherit({_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{allowFieldDragging:!0,applyChangesMode:"instantly",state:null,headerFilter:{width:252,height:325,searchTimeout:500,texts:{emptyValue:(0,h.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,h.format)("dxDataGrid-headerFilterOK"),cancel:(0,h.format)("dxDataGrid-headerFilterCancel")}}})},_init:function(){this.callBase(),this._headerFilterView=new S(this),this._refreshDataSource(),this.subscribeToEvents()},_refreshDataSource:function(){var t=this.option("dataSource");t&&t.fields&&t.load&&(this._dataSource=t)},_optionChanged:function(t){switch(t.name){case"dataSource":this._refreshDataSource();break;case"applyChangesMode":break;case"state":if(this._skipStateChange||!this._dataSource)break;"instantly"===this.option("applyChangesMode")&&I(this._dataSource.state())!==I(t.value)?this._dataSource.state(t.value):(this._clean(!0),this._renderComponent());break;case"headerFilter":case"allowFieldDragging":this._invalidate();break;default:this.callBase(t)}},renderField:function(t,e){var n=(0,i.default)(C).addClass("dx-area-field-content").text(t.caption||t.dataField),o=(0,i.default)(C).addClass("dx-area-field").addClass("dx-area-box").data("field",t).append(n),r=k(this._dataSource,t);return"data"!==t.area&&(t.allowSorting&&this._applyColumnState({name:"sort",rootElement:o,column:{alignment:this.option("rtlEnabled")?"right":"left",sortOrder:"desc"===t.sortOrder?"desc":"asc"},showColumnLines:e}),this._applyColumnState({name:"headerFilter",rootElement:o,column:{alignment:this.option("rtlEnabled")?"right":"left",filterValues:r.filterValues,allowFiltering:r.allowFiltering&&!t.groupIndex},showColumnLines:e})),t.groupName&&o.attr("item-group",t.groupName),o},_clean:function(){},_render:function(){this.callBase(),this._headerFilterView.render(this.$element())},renderSortable:function(){var t=this;t._createComponent(t.$element(),b.default,(0,c.extend)({allowDragging:t.option("allowFieldDragging"),itemSelector:".dx-area-field",itemContainerSelector:".dx-area-field-container",groupSelector:".dx-area-fields",groupFilter:function(){var e=t._dataSource,n=(0,i.default)(this).closest(".dx-sortable-old"),o=n.data("dxPivotGrid"),r=n.data("dxPivotGridFieldChooser");return o?o.getDataSource()===e:!!r&&r.option("dataSource")===e},itemRender:function(t,e){var n;if(t.hasClass("dx-area-box")?(n=t.clone(),"drag"===e&&(0,d.each)(t,(function(t,e){n.eq(t).css("width",parseInt((0,i.default)(e).outerWidth(),10)+1)}))):n=(0,i.default)(C).addClass("dx-area-field").addClass("dx-area-box").text(t.text()),"drag"===e){var o=(0,i.default)(C);return(0,d.each)(n,(function(t,e){var n=(0,i.default)("<div>").addClass("dx-pivotgrid-fields-container").addClass("dx-widget").append((0,i.default)(e));o.append(n)})),o.children()}return n},onDragging:function(t){var e=t.sourceElement.data("field"),n=t.targetGroup;t.cancel=!1,!0===e.isMeasure?"column"!==n&&"row"!==n&&"filter"!==n||(t.cancel=!0):!1===e.isMeasure&&"data"===n&&(t.cancel=!0)},useIndicator:!0,onChanged:function(e){var n=t._dataSource,i=e.sourceElement.data("field");e.removeSourceElement=!!e.sourceGroup,t._adjustSortableOnChangedArgs(e),i&&t._applyChanges([k(n,i)],{area:e.targetGroup,areaIndex:e.targetIndex})}},t._getSortableOptions()))},_processDemandState:function(t){var e="instantly"===this.option("applyChangesMode"),n=this._dataSource;if(e)t(n,e);else{var i=n.state(),o=this.option("state");o&&n.state(o,!0),t(n,e),n.state(i,!0)}},_applyChanges:function(t,e){var n=this;n._processDemandState((function(i,o){t.forEach((function(t){var n=t.index;i.field(n,e)})),o?i.load():n._changedHandler()}))},_adjustSortableOnChangedArgs:function(t){t.removeSourceElement=!1,t.removeTargetElement=!0,t.removeSourceClass=!1},_getSortableOptions:function(){return{direction:"auto"}},subscribeToEvents:function(t){var e=this,n=function(t){var n=(0,i.default)(t.currentTarget).data("field"),o=(0,c.extend)(!0,{},k(e._dataSource,n)),a=(0,i.default)(t.target).hasClass("dx-header-filter"),s=e._dataSource,l=o.groupName?"tree":"list",h=s.paginate()&&"list"===l;a?e._headerFilterView.showHeaderFilterMenu((0,i.default)(t.currentTarget),(0,c.extend)(o,{type:l,encodeHtml:e.option("encodeHtml"),dataSource:{useDefaultSearch:!h,load:function(t){var n=t.userData;if(n.store)return n.store.load(t);var i=new w.Deferred;return s.getFieldValues(o.index,e.option("headerFilter.showRelevantValues"),h?t:void 0).done((function(o){var a=e.option("headerFilter.texts.emptyValue");o.forEach((function(t){t.text||(t.text=a)})),h?i.resolve(o):(n.store=new r.default(o),n.store.load(t).done(i.resolve).fail(i.reject))})).fail(i.reject),i},postProcess:function(t){return function(t,e){var n=[],i=!!e.groupName,o="exclude"===e.filterType;e.filterValues&&(0,d.each)(e.filterValues,(function(t,e){n.push(Array.isArray(e)?e.join("/"):e&&e.valueOf())})),(0,y.foreachTree)(t,(function(t){var e=t[0],r=(0,y.createPath)(t),a=i?(0,d.map)(t,(function(t){return t.text})).reverse().join("/"):e.text;e.value=i?r.slice(0):e.key||e.value;var s=i?r.join("/"):e.value&&e.value.valueOf();e.children&&(e.items=e.children,e.children=null),(0,m.updateHeaderFilterItemSelectionState)(e,e.key&&(0,u.inArray)(a,n)>-1||(0,u.inArray)(s,n)>-1,o)}))}(t,o),t}},apply:function(){e._applyChanges([o],{filterValues:this.filterValues,filterType:this.filterType})}})):n.allowSorting&&"data"!==n.area&&e._applyChanges([n],{sortOrder:"desc"===n.sortOrder?"asc":"desc"})};t?o.default.on(t,a.default.name,".dx-area-field.dx-area-box",n):o.default.on(e.$element(),a.default.name,".dx-area-field.dx-area-box",n)},_initTemplates:s.noop,addWidgetPrefix:function(t){return"dx-pivotgrid-"+t}});(0,f.default)("dxPivotGridFieldChooserBase",T),t.exports=T},function(t,e,n){"use strict";var i=c(n(3)),o=c(n(509)),r=c(n(8)),a=c(n(26)),s=n(0),l=n(24),u=c(n(10));function c(t){return t&&t.__esModule?t:{default:t}}var d=a.default.dateToMilliseconds,h=o.default.inherit({_getToday:function(){var t=this.option("indicatorTime")||new Date;return this.invoke("convertDateByTimezone",t)||t},_needRenderDateTimeIndicator:function(){var t=this._getToday(),e=a.default.trimTime(this.getEndViewDate());return a.default.dateInRange(t,this._firstViewDate,new Date(e.getTime()+d("day")))},needRenderDateTimeIndication:function(){return!!u.default.hasWindow()&&this._getToday()>=a.default.trimTime(new Date(this.getStartViewDate()))},_renderDateTimeIndication:function(){if(this.needRenderDateTimeIndication()&&(this.option("shadeUntilCurrentTime")&&this._shader.render(),this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator())){var t=this._getGroupCount()||1,e=this._dateTableScrollable.$content(),n=this.getIndicationHeight(),i=this._getRtlOffset(this.getCellWidth());n>0&&this._renderIndicator(n,i,e,t)}},_renderIndicator:function(t,e,n,i){for(var o=this.isGroupedByDate(),r=o?1:i,a=0;a<r;a++){var s=this._createIndicator(n);s.width(o?this.getCellWidth()*i:this.getCellWidth()),this._groupedStrategy.shiftIndicator(s,t,e,a)}},_createIndicator:function(t){var e=(0,i.default)("<div>").addClass("dx-scheduler-date-time-indicator");return t.append(e),e},_getRtlOffset:function(t){return this.option("rtlEnabled")?(0,l.getBoundingRect)(this._dateTableScrollable.$content().get(0)).width-this.getTimePanelWidth()-t:0},_setIndicationUpdateInterval:function(){this.option("showCurrentTimeIndicator")&&0!==this.option("indicatorUpdateInterval")&&(this._clearIndicatorUpdateInterval(),this._indicatorInterval=setInterval(function(){this._refreshDateTimeIndication()}.bind(this),this.option("indicatorUpdateInterval")))},_clearIndicatorUpdateInterval:function(){this._indicatorInterval&&(clearInterval(this._indicatorInterval),delete this._indicatorInterval)},_isVerticalShader:function(){return!0},getIndicationWidth:function(t){var e=this.getCellWidth()*this._getCellCount(),n=this._getIndicatorDuration();n>this._getCellCount()&&(n=this._getCellCount());var i=n*this.getRoundedCellWidth(t,t*this._getCellCount(),n);return e<i?e:i},getIndicatorOffset:function(t){var e=this._getIndicatorDuration()-1;return e*this.getRoundedCellWidth(t,t*this._getCellCount(),e)},_getIndicatorDuration:function(){var t=this._getToday(),e=new Date(this._firstViewDate),n=t.getTime()-e.getTime();return"workWeek"===this.option("type")&&(n-=this._getWeekendsCount(Math.round(n/d("day")))*d("day")),Math.ceil((n+1)/d("day"))},getIndicationHeight:function(){var t=this._getToday(),e=this.getCellHeight(),n=new Date(this._firstViewDate);return this._needRenderDateTimeIndicator()&&n.setFullYear(t.getFullYear(),t.getMonth(),t.getDate()),(t.getTime()-n.getTime())/this.getCellDuration()*e},_dispose:function(){this._clearIndicatorUpdateInterval(),this.callBase.apply(this,arguments)},_refreshDateTimeIndication:function(){this._cleanDateTimeIndicator(),this._shader&&this._shader.clean(),this._renderDateTimeIndication()},_isCurrentTime:function(t){if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var e=this._getToday(),n=!1;(t=new Date(t)).setFullYear(e.getFullYear(),e.getMonth(),e.getDate());var i=new Date(t),o=new Date(t);return a.default.sameDate(e,t)&&(i=i.setMilliseconds(t.getMilliseconds()-this.getCellDuration()+1),o=o.setMilliseconds(t.getMilliseconds()+this.getCellDuration()),n=a.default.dateInRange(e,i,o)),n}},_isCurrentTimeHeaderCell:function(t){var e=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(t),i=this.option("indicatorTime")||new Date;e=a.default.sameDate(n,i)}return e},_getTimeCellClass:function(t){var e=this._getTimeCellDate(t),n=this.callBase(t);return this._isCurrentTime(e)?n+" dx-scheduler-time-panel-current-time-cell":n},_getHeaderPanelCellClass:function(t){var e=this.callBase(t);return this._isCurrentTimeHeaderCell(t)?e+" dx-scheduler-header-panel-current-time-cell":e},_cleanView:function(){this.callBase(),this._cleanDateTimeIndicator()},_dimensionChanged:function(){this.callBase(),this._refreshDateTimeIndication()},_cleanDateTimeIndicator:function(){this.$element().find(".dx-scheduler-date-time-indicator").remove()},_cleanWorkSpace:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_optionChanged:function(t){switch(t.name){case"showCurrentTimeIndicator":case"indicatorTime":this._cleanWorkSpace();break;case"indicatorUpdateInterval":this._setIndicationUpdateInterval();break;case"showAllDayPanel":case"allDayExpanded":case"crossScrollingEnabled":this.callBase(t),this._refreshDateTimeIndication();break;case"shadeUntilCurrentTime":this._refreshDateTimeIndication();break;default:this.callBase(t)}},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{showCurrentTimeIndicator:!0,indicatorTime:new Date,indicatorUpdateInterval:5*d("minute"),shadeUntilCurrentTime:!0})}});(0,r.default)("dxSchedulerWorkSpace",h),t.exports=h},function(t,e,n){"use strict";var i=l(n(3)),o=l(n(15)),r=l(n(57)),a=l(n(2)),s=n(17);function l(t){return t&&t.__esModule?t:{default:t}}var u={VERTICAL:"vertical",HORIZONTAL:"horizontal",insertAllDayRow:function(t,e,n){if(t[n]){var r=t[n].find("tr");r.length||(r=(0,i.default)(o.default.createElement("tr"))).append(t[n].get(0)),e.appendChild(r.get?r.get(0):r)}},makeTable:function(t){var e,n=o.default.createElement("tbody"),l=[],u=t.groupCount?t.rowCount/t.groupCount:t.rowCount,c=0,d=t.allDayElements,h=t.groupIndex,f=t.rowCount;(0,i.default)(t.container).append(n),d&&(this.insertAllDayRow(d,n,0),c++);for(var p=0;p<f;p++){e=o.default.createElement("tr"),n.appendChild(e);var m=(p+1)%u===0;t.rowClass&&(e.className=t.rowClass);for(var g=0;g<t.cellCount;g++){var _=o.default.createElement("td");e.appendChild(_),t.cellClass&&(a.default.isFunction(t.cellClass)?_.className=t.cellClass(p,g):_.className=t.cellClass);var v=void 0,y=void 0,b=void 0;if(t.getCellData&&(y=(v=t.getCellData(_,p,g,h)).key,b=v.value,y&&r.default.data(_,y,b)),t.cellTemplate&&t.cellTemplate.render){var w={model:{text:t.getCellText?t.getCellText(p,g):"",date:t.getCellDate?t.getCellDate(p):void 0},container:(0,s.getPublicElement)((0,i.default)(_)),index:p*t.cellCount+g};b&&(b.startDate&&(w.model.startDate=b.startDate),b.endDate&&(w.model.endDate=b.endDate),b.groups&&(w.model.groups=b.groups),b.allDay&&(w.model.allDay=b.allDay)),l.push(t.cellTemplate.render.bind(t.cellTemplate,w))}else t.getCellText&&(_.innerHTML="<div>"+t.getCellText(p,g)+"</div>")}d&&m&&(this.insertAllDayRow(d,n,c),c++)}return l},makeGroupedTable:function(t,e,n,i,o,r,a){return t===this.VERTICAL?this._makeVerticalGroupedRows(e,n,o,r):this._makeHorizontalGroupedRows(e,n,i,o,a)},makeGroupedTableFromJSON:function(t,e,n){var i,r=[],a=0,s=(n=n||{}).cellTag||"td",l=n.childrenField||"children",u=n.titleField||"title",c=n.groupTableClass,d=n.groupRowClass,h=n.groupCellClass,f=n.groupCellCustomContent;function p(t,e,n,i){var r={element:o.default.createElement(s),childCount:e};h&&(r.element.className=h);var a=o.default.createTextNode(t);return"function"===typeof f?f(r.element,a,n,i):r.element.appendChild(a),r}return i=o.default.createElement("table"),c&&(i.className=c),function t(e){for(var n=0;n<e.length;n++){var i=(s=e[n])[l]?s[l].length:0,o=p(e[n][u],i,n,e[n]);r[a]||(r[a]=[]),r[a].push(o),i?t(e[n][l]):a++}var s}(e),r.forEach((function(t){var e=o.default.createElement("tr");d&&(e.className=d);for(var n=[],r=t.length-1;r>=0;r--){var a=t[r+1],s=t[r].childCount;a&&a.childCount&&(s*=a.childCount),n.push(s)}n.reverse(),t.forEach((function(t,i){n[i]&&t.element.setAttribute("rowSpan",n[i]),e.appendChild(t.element)})),i.appendChild(e)})),i},_makeFlexGroupedRowCells:function(t,e,n,o){for(var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,l=[],u=t.items,c=u.length,d=0;d<e*r;d++)for(var h=0;h<c;h++){var f=(0,i.default)("<div>"),p={};if(o&&o.render){var m={model:u[h],container:(0,s.getPublicElement)(f),index:d*c+h};t.data&&(m.model.data=t.data[h]),p.template=o.render.bind(o,m)}else f.text(u[h].text).attr("title",u[h].text).addClass("dx-scheduler-group-header-content"),f=(0,i.default)("<div>").append(f);var g=a.default.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass;p.element=f.addClass(g),l.push(p)}return l},_makeVerticalGroupedRows:function(t,e,n){for(var o=[],r=1,a=[],s=function(t){t.template&&o.push(t.template)},l=0;l<t.length;l++){l>0&&(r=t[l-1].items.length*r);var u=this._makeFlexGroupedRowCells(t[l],r,e,n);u.forEach(s),a.push(u)}for(var c=[],d=a.length,h=0;h<d;h++)c.push((0,i.default)("<div>").addClass(e.groupHeaderRowClass));for(var f=d-1;f>=0;f--)for(var p=a[f].length,m=0;m<p;m++)c[f].append(a[f][m].element);return{elements:(0,i.default)("<div>").addClass("dx-scheduler-group-flex-container").append(c),cellTemplates:o}},_makeHorizontalGroupedRows:function(t,e,n,o,r){for(var a=1,s=t.length,l=[],u=[],c=r?n:1,d=function(t){return t.template&&u.push(t.template),t.element},h=0;h<s;h++){h>0&&(a=t[h-1].items.length*a);var f=this._makeGroupedRowCells(t[h],a,e,o,c);l.push((0,i.default)("<tr>").addClass(e.groupRowClass).append(f.map(d)))}for(var p=l[s-1].find("th").length,m=0;m<s;m++){var g=l[m].find("th"),_=p/g.length;r||(_*=n),(_>1&&1===c||r&&s>1)&&g.attr("colSpan",_)}return{elements:l,cellTemplates:u}},_makeGroupedRowCells:function(t,e,n,o,r){e*=r=r||1;for(var l=[],u=t.items,c=u.length,d=0;d<e;d++)for(var h=0;h<c;h++){var f=(0,i.default)("<div>"),p={};if(o&&o.render){var m={model:u[h],container:(0,s.getPublicElement)(f),index:d*c+h};t.data&&(m.model.data=t.data[h]),p.template=o.render.bind(o,m)}else f.text(u[h].text),f=(0,i.default)("<div>").append(f);f.addClass(n.groupHeaderContentClass);var g=void 0;g=a.default.isFunction(n.groupHeaderClass)?n.groupHeaderClass(h):n.groupHeaderClass,p.element=(0,i.default)("<th>").addClass(g).append(f),l.push(p)}return l}};t.exports=u},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(0).extend,a=n(24).getBoundingRect,s=n(8),l=n(309),u=n(26),c=n(310),d=n(1068),h=u.dateToMilliseconds,f=l.inherit({_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-timeline"),this._$sidebarTable=i("<div>").addClass("dx-scheduler-group-table")},_getCellFromNextRow:function(t,e){return e?this._$focusedCell:this.callBase(t,e)},_getDefaultGroupStrategy:function(){return"vertical"},_toggleGroupingDirectionClass:function(){this.$element().toggleClass("dx-scheduler-work-space-horizontal-grouped",this._isHorizontalGroupedWorkSpace())},_getDefaultOptions:function(){return r(this.callBase(),{groupOrientation:"vertical"})},_getRowCount:function(){return 1},_getCellCount:function(){return this._getCellCountInDay()*this.option("intervalCount")},getGroupTableWidth:function(){return this._$sidebarTable?this._$sidebarTable.outerWidth():0},_getTotalRowCount:function(t){return this._isHorizontalGroupedWorkSpace()?this._getRowCount():(t=t||1,this._getRowCount()*t)},_getDateByIndex:function(t){var e=new Date(this._firstViewDate),n=Math.floor(t/this._getCellCountInDay());return e.setTime(this._firstViewDate.getTime()+this._calculateCellIndex(0,t)*this._getInterval()+n*this._getHiddenInterval()),e},_getFormat:function(){return"shorttime"},_needApplyLastGroupCellClass:function(){return!0},_calculateHiddenInterval:function(t,e){return Math.floor(e/this._getCellCountInDay())*this._getHiddenInterval()},_getMillisecondsOffset:function(t,e){return e=this._calculateCellIndex(t,e),this._getInterval()*e+this._calculateHiddenInterval(t,e)},_createWorkSpaceElements:function(){this._createWorkSpaceScrollableElements()},_getWorkSpaceHeight:function(){return this.option("crossScrollingEnabled")?a(this._$dateTable.get(0)).height:a(this.$element().get(0)).height},_dateTableScrollableConfig:function(){var t=this.callBase(),e={direction:"horizontal"};return this.option("crossScrollingEnabled")?t:r(t,e)},_needCreateCrossScrolling:function(){return!0},_headerScrollableConfig:function(){var t=this.callBase();return r(t,{scrollByContent:!0})},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:function(){return!1},_getDateHeaderTemplate:function(){return this.option("timeCellTemplate")},_toggleAllDayVisibility:o,_changeAllDayVisibility:o,supportAllDayRow:function(){return!1},_getGroupHeaderContainer:function(){return this._isHorizontalGroupedWorkSpace()?this._$thead:this._$sidebarTable},_insertAllDayRowsIntoDateTable:function(){return!1},_createAllDayPanelElements:o,_renderDateHeader:function(){var t=this.callBase();if(this._needRenderWeekHeader()){for(var e=new Date(this._firstViewDate),n=[],o=this._getCellCountInDay(),r=this.option("dateCellTemplate"),a=0;a<this._getWeekDuration()*this.option("intervalCount");a++){var s=i("<th>"),l=this._formatWeekdayAndDay(e);if(r){var u={model:{text:l,date:new Date(e)},container:s,index:a};r.render(u)}else s.text(l);s.addClass("dx-scheduler-header-panel-cell").addClass("dx-scheduler-header-panel-week-cell").attr("colSpan",o),n.push(s),this._incrementDate(e)}var c=i("<tr>").addClass("dx-scheduler-header-row").append(n);t.before(c)}},_needRenderWeekHeader:function(){return!1},_incrementDate:function(t){t.setDate(t.getDate()+1)},_getWeekDuration:function(){return 1},_renderView:function(){this._setFirstViewDate();var t=this._renderGroupHeader();this._renderDateHeader(),this._renderAllDayPanel(),this._renderTimePanel(),this._renderDateTable(),this._shader=new d(this),this._updateGroupTableHeight(),this._$sidebarTable.appendTo(this._sidebarScrollable.$content()),this._applyCellTemplates(t)},_setHorizontalGroupHeaderCellsHeight:o,getIndicationCellCount:function(){var t=this._getToday(),e=this._getIndicationFirstViewDate(),n=this._getHiddenInterval(),i=t.getTime()-e.getTime();return(i-(Math.ceil(i/h("day"))-1)*n)/this.getCellDuration()},getIndicationWidth:function(){if(this.isGroupedByDate()){var t=this.getIndicationCellCount(),e=Math.floor(t),n=t-e;return this.getCellWidth()*(e*this._getGroupCount()+n)}return this.getIndicationCellCount()*this.getCellWidth()},_renderIndicator:function(t,e,n,i){var o,r=this.getIndicationWidth();if("vertical"===this.option("groupOrientation"))(o=this._createIndicator(n)).height(a(n.get(0)).height),o.css("left",e?e-r:r);else for(var s=0;s<i;s++){var l=this.isGroupedByDate()?s*this.getCellWidth():this._getCellCount()*this.getCellWidth()*s;(o=this._createIndicator(n)).height(a(n.get(0)).height),o.css("left",e?e-r-l:r+l)}},_isVerticalShader:function(){return!1},_isCurrentTimeHeaderCell:function(t){var e=!1;if(this.option("showCurrentTimeIndicator")&&this._needRenderDateTimeIndicator()){var n=this._getDateByIndex(t),i=this._getToday();if(n=new Date(n),u.sameDate(i,n)){var o=new Date(n),r=new Date(n);r=r.setMilliseconds(n.getMilliseconds()+this.getCellDuration()),e=u.dateInRange(i,o,r)}}return e},_cleanView:function(){this.callBase(),this._$sidebarTable.empty()},_visibilityChanged:function(t){this.callBase(t)},_setTableSizes:function(){var t=this.getCellHeight(),e=this._getWorkSpaceMinHeight(),n=t*this._$sidebarTable.find("tr").length;n<e&&(n=e),this._$sidebarTable.height(n),this._$dateTable.height(n),this.callBase()},_getWorkSpaceMinHeight:function(){var t=this._getWorkSpaceHeight(),e=this.$element().outerHeight(!0)-this.getHeaderPanelHeight()-2-10;return t<e&&(t=e),t},_makeGroupRows:function(t,e){var n="vertical"===this.option("groupOrientation")?c.VERTICAL:c.HORIZONTAL;return c.makeGroupedTable(n,t,{groupRowClass:this._getGroupRowClass(),groupHeaderRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getTotalRowCount(this._getGroupCount()),e)},_ensureGroupHeaderCellsHeight:function(t){var e=this._calculateMinCellHeight();return t<e?e:t},_calculateMinCellHeight:function(){var t=this._getDateTable(),e="."+this._getDateTableRowClass();return a(t).height/t.find(e).length-2},_getCellCoordinatesByIndex:function(t){return{cellIndex:t%this._getCellCount(),rowIndex:0}},_getCellByCoordinates:function(t,e){var n=this._groupedStrategy.prepareCellIndexes(t,e);return this._$dateTable.find("tr").eq(n.rowIndex).find("td").eq(n.cellIndex)},_getWorkSpaceWidth:function(){return this._$dateTable.outerWidth(!0)},_getIndicationFirstViewDate:function(){return new Date(this._firstViewDate)},_getIntervalBetween:function(t,e){var n=this.option("startDayHour"),i=this.option("endDayHour"),o=this.getStartViewDate(),r=o.getTime(),a=(24-i+n)*h("hour"),s=u.getTimezonesDifference(o,t),l=t.getTime(),c=l-r-s,d=Math.floor(c/h("day")),f=c-d*h("day"),p=0,m=this._getCellCountInDay()*(d-this._getWeekendsCount(d)),g=l-u.trimTime(new Date(t)).getTime(),_=m*this.option("hoursInterval")*h("hour");return e||(t.getHours()<n?p=f-a+g:t.getHours()>=n&&t.getHours()<i?p=f:t.getHours()>=n&&t.getHours()>=i?p=f-(g-i*h("hour")):d||(_=c),_+=p),_},_getWeekendsCount:function(){return 0},getAllDayContainer:function(){return null},getTimePanelWidth:function(){return 0},getPositionShift:function(t){var e=this.callBase(t),n=this.getCellWidth()*t;return this.option("rtlEnabled")&&(n*=-1),{top:0,left:n+=e.left,cellPosition:n}},getVisibleBounds:function(){var t=this.option("rtlEnabled"),e={},n=this.getScrollable().$element(),i=this.getCellWidth(),o=(t?this.getScrollableOuterWidth()-this.getScrollableScrollLeft():this.getScrollableScrollLeft())/i,r=n.width()/i,a=t?o-r:o+r,s=this._getDateByIndex(o),l=this._getDateByIndex(a);return t&&(s=this._getDateByIndex(a),l=this._getDateByIndex(o)),e.left={hours:s.getHours(),minutes:s.getMinutes()>=30?30:0,date:u.trimTime(s)},e.right={hours:l.getHours(),minutes:l.getMinutes()>=30?30:0,date:u.trimTime(l)},e},needUpdateScrollPosition:function(t,e,n,i){var o=!1;return o=this._dateWithinBounds(n,i),(t<n.left.hours||t>n.right.hours)&&(o=!0),t===n.left.hours&&e<n.left.minutes&&(o=!0),t===n.right.hours&&e>n.right.minutes&&(o=!0),o},getIntervalDuration:function(t){return this.getCellDuration()},_dateWithinBounds:function(t,e){var n=u.trimTime(new Date(e)),i=!1;return(n<t.left.date||n>t.right.date)&&(i=!0),i},_supportCompactDropDownAppointments:function(){return!1},getCellMinWidth:function(){return 0},getWorkSpaceLeftOffset:function(){return 0},scrollToTime:function(t,e,n){var i=this._getScrollCoordinates(t,e,n),o=this.getScrollable(),r=this.option("rtlEnabled")?a(this.getScrollableContainer().get(0)).width:0;this.option("templatesRenderAsynchronously")?setTimeout((function(){o.scrollBy({left:i.left-o.scrollLeft()-r,top:0})})):o.scrollBy({left:i.left-o.scrollLeft()-r,top:0})},_getRowCountWithAllDayRows:function(){return this._getRowCount()}});s("dxSchedulerTimeline",f),t.exports=f},function(t,e,n){"use strict";var i=h(n(515)),o=h(n(1078)),r=n(0),a=h(n(23)),s=h(n(26)),l=n(2),u=h(l),c=h(n(36)),d=h(n(172));function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var p=s.default.dateToMilliseconds,m=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.instance=e,this._initPositioningStrategy()}var e,n,h;return e=t,(n=[{key:"_isAdaptive",value:function(){return this.instance.fire("isAdaptive")}},{key:"_correctCollectorCoordinatesInAdaptive",value:function(t,e){t.top=t.top+this.getCollectorTopOffset(e),t.left=t.left+this.getCollectorLeftOffset()}},{key:"_initPositioningStrategy",value:function(){this._positioningStrategy=this._isAdaptive()?new o.default(this):new i.default(this)}},{key:"getPositioningStrategy",value:function(){return this._positioningStrategy}},{key:"getAppointmentMinSize",value:function(){return 2}},{key:"keepAppointmentSettings",value:function(){return!1}},{key:"getDeltaTime",value:function(){}},{key:"getAppointmentGeometry",value:function(t){return t}},{key:"needCorrectAppointmentDates",value:function(){return!0}},{key:"getDirection",value:function(){return"horizontal"}},{key:"createTaskPositionMap",value:function(t){delete this._maxAppointmentCountPerCell;var e=t&&t.length;if(e){this._defaultWidth=this.instance._cellWidth,this._defaultHeight=this.instance._cellHeight,this._allDayHeight=this.instance._allDayCellHeight;for(var n=[],i=0;i<e;i++){var o=this._getItemPosition(t[i]);this._isRtl()&&(o=this._correctRtlCoordinates(o)),n.push(o)}var r=this._getSortedPositions(n),a=this._getResultPositions(r);return this._getExtendedPositionMap(n,a)}}},{key:"_getDeltaWidth",value:function(t,e){var n=this.instance.fire("getResizableStep")||this.getAppointmentMinSize(),i=e.width;return Math.round((t.width-i)/n)}},{key:"_correctRtlCoordinates",value:function(t){var e=t[0].width||this._getAppointmentMaxWidth();return t.forEach((function(t){t.appointmentReduced||(t.left-=e)})),t}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_getItemPosition",value:function(t){for(var e=this._getAppointmentCoordinates(t),n=this.isAllDay(t),i=[],o=new Date(this.instance.fire("getField","startDate",t)),a=!!this.instance.fire("getField","recurrenceRule",t),s=0;s<e.length;s++){var l=this.calculateAppointmentHeight(t,e[s],a),u=this.calculateAppointmentWidth(t,e[s],a),c=u,d=null,h=[],f=e[s].rowIndex,p=e[s].cellIndex;if(this._needVerifyItemSize()||n){var m=e[s].hMax;this.isAppointmentGreaterThan(m,{left:e[s].left,width:u})&&(d="head",f=e[s].rowIndex,p=e[s].cellIndex,c=this._reduceMultiWeekAppointment(u,{left:e[s].left,right:m}),h=this._getAppointmentParts({sourceAppointmentWidth:u,reducedWidth:c,height:l},e[s],o),this._isRtl()&&(e[s].left=m))}(0,r.extend)(e[s],{height:l,width:c,allDay:n,rowIndex:f,cellIndex:p,appointmentReduced:d,originalAppointmentStartDate:this.startDate(t,!0),originalAppointmentEndDate:this.endDate(t),endDate:this.endDate(t,e[s],a)}),i=this._getAppointmentPartsPosition(h,e[s],i)}return i}},{key:"_getAppointmentPartsPosition",value:function(t,e,n){return t.length?(t.unshift(e),n=n.concat(t)):n.push(e),n}},{key:"_getAppointmentCoordinates",value:function(t){return this.instance.fire("needCoordinates",{startDate:this.startDate(t),originalStartDate:this.startDate(t,!0),appointmentData:t})}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){return[]}},{key:"_getCompactAppointmentParts",value:function(t){var e=this.getDefaultCellWidth()||this.getAppointmentMinSize();return Math.round(t/e)}},{key:"_reduceMultiWeekAppointment",value:function(t,e){return this._isRtl()?Math.floor(e.left-e.right):e.right-Math.floor(e.left)}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(t,e){var n=e.left+e.width-t;return this._isRtl()&&(n=t+e.width-e.left),n>this.getDefaultCellWidth()/2}},{key:"isAllDay",value:function(){return!1}},{key:"cropAppointmentWidth",value:function(t,e){return this.instance.fire("isGroupedByDate")&&(t=e),t}},{key:"_getSortedPositions",value:function(t){for(var e=this,n=[],i=function(t){return Math.round(100*t)/100},o=function(t,e,n,o,r,a,s,l){return{i:t,j:e,top:i(n),left:i(o),bottom:i(r),right:i(a),cellPosition:s,allDay:l}},r=0,a=t.length;r<a;r++)for(var s=0,l=t[r].length;s<l;s++){var u=t[r][s],c=u.top,d=u.left,h=u.height,f=u.width,p=u.cellPosition,m=u.allDay;n.push(o(r,s,c,d,c+h,d+f,p,m))}return n.sort((function(t,n){return e._sortCondition(t,n)}))}},{key:"_sortCondition",value:function(){}},{key:"_getConditions",value:function(t,e){var n=this._isSomeEdge(t,e);return{columnCondition:n||this._normalizeCondition(t.left,e.left),rowCondition:n||this._normalizeCondition(t.top,e.top),cellPositionCondition:n||this._normalizeCondition(t.cellPosition,e.cellPosition)}}},{key:"_rowCondition",value:function(t,e){var n=this._getConditions(t,e);return n.columnCondition||n.rowCondition}},{key:"_columnCondition",value:function(t,e){var n=this._getConditions(t,e);return n.rowCondition||n.columnCondition}},{key:"_isSomeEdge",value:function(t,e){return t.i===e.i&&t.j===e.j}},{key:"_normalizeCondition",value:function(t,e){var n=t-e;return Math.abs(n)>1?n:0}},{key:"_isItemsCross",value:function(t,e){var n=!!t.allDay===!!e.allDay,i=t.allDay&&e.allDay;if(n){var o=this._getOrientation(i);return this._checkItemsCrossing(t,e,o)}return!1}},{key:"_checkItemsCrossing",value:function(t,e,n){var i=Math.floor(t[n[0]]),o=Math.floor(t[n[1]]),r=Math.ceil(e[n[0]]),a=Math.ceil(e[n[1]]);return Math.abs(t[n[2]]-e[n[2]])<=1&&(i<=r&&o>r||i<a&&o>=a||i===r&&o===a)}},{key:"_getOrientation",value:function(t){return t?["left","right","top"]:["top","bottom","left"]}},{key:"_getResultPositions",value:function(t){var e,n,i,o,r=this,a=[],s=0,l=0,u={},c=function t(e,n){return e.some((function(t){return t===n}))?t(e,++n):n},d=function(t,e){var n=e||0;return{index:n,i:t.i,j:t.j,left:t.left,right:t.right,top:t.top,bottom:t.bottom,allDay:t.allDay,sortedIndex:r._skipSortedIndex(n)?null:s++}},h=function(t){u.items=[d(t)],u.left=t.left,u.right=t.right,u.top=t.top,u.bottom=t.bottom,u.allDay=t.allDay},f=function(t){t.forEach((function(t){a.push({index:t.index,count:l+1,i:t.i,j:t.j,sortedIndex:t.sortedIndex})}))};for(e=0;e<t.length;e++)n=t[e],i=[],u.items?this._isItemsCross(u,n)?(u.items.forEach((function(t,e){r._isItemsCross(t,n)&&i.push(t.index)})),o=i.length?c(i,0):0,u.items.push(d(n,o)),l=Math.max(o,l),u.left=Math.min(u.left,n.left),u.right=Math.max(u.right,n.right),u.top=Math.min(u.top,n.top),u.bottom=Math.max(u.bottom,n.bottom),u.allDay=n.allDay):(f(u.items),u={},h(n),l=0):h(n);return u.items&&f(u.items),a.sort((function(t,e){var n=t.j-e.j,i=t.i-e.i;return i||n}))}},{key:"_skipSortedIndex",value:function(t){return t>this._getMaxAppointmentCountPerCell()-1}},{key:"_findIndexByKey",value:function(t,e,n,i,o){for(var r=0,a=0,s=t.length;a<s;a++)if(t[a][e]===i&&t[a][n]===o){r=a;break}return r}},{key:"_getExtendedPositionMap",value:function(t,e){for(var n=0,i=[],o=0,r=t.length;o<r;o++){for(var a=[],s=0,l=t[o].length;s<l;s++)t[o][s].index=e[n].index,t[o][s].sortedIndex=e[n].sortedIndex,t[o][s].count=e[n++].count,a.push(t[o][s]),this._checkLongCompactAppointment(t[o][s],a);i.push(a)}return i}},{key:"_checkLongCompactAppointment",value:function(t,e){return this._splitLongCompactAppointment(t,e),e}},{key:"_splitLongCompactAppointment",value:function(t,e){var n=this._getMaxAppointmentCountPerCellByType(t.allDay),i=0;if(void 0!==n&&t.index>n-1){t.isCompact=!0,i=this._getCompactAppointmentParts(t.width);for(var o=1;o<i;o++){var a=(0,r.extend)(!0,{},t);a.left=this._getCompactLeftCoordinate(t.left,o),a.cellIndex=a.cellIndex+o,a.sortedIndex=null,e.push(a)}}return e}},{key:"startDate",value:function(t,e,n){var i=n&&n.startDate,o=this.instance._getStartDate(t,e),r=this.instance.fire("getField","text",t);if((i&&o>i||!i)&&(i=o),isNaN(i.getTime()))throw a.default.Error("E1032",r);return i}},{key:"endDate",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=this.instance._getEndDate(t,i),r=this.startDate(t,!0),a=this.startDate(t,!1,e);if(a.getTime()>o.getTime()||n){var l=e?e.initialStartDate||e.startDate:r,u=e?e.startDate:r,c=a.getTime()>o.getTime()?this.instance.fire("getField","endDate",t).getTime()-this.instance.fire("getField","startDate",t).getTime():o.getTime()-r.getTime();if(c=this._adjustDurationByDaylightDiff(c,r,o),o=new Date(a.getTime()>=l.getTime()?l.getTime():a.getTime()),n&&(o=new Date(o.getTime()+c)),!s.default.sameDate(r,o)&&u.getTime()<a.getTime()){var d=s.default.trimTime(o).getTime()-u.getTime(),h=c-d||c;o=new Date(s.default.trimTime(a).getTime()+h)}}if(!this.isAllDay(t)){var f=s.default.roundToHour(this.instance.fire("getEndViewDate"));o>f&&(o=f)}var p=new Date(new Date(o).setHours(this.instance.option("endDayHour"),0,0));return o.getTime()>p.getTime()&&(o=p),o}},{key:"_adjustDurationByDaylightDiff",value:function(t,e,n){var i=d.default.getDaylightOffset(e,n);return this._needAdjustDuration(i)?this._calculateDurationByDaylightDiff(t,i):t}},{key:"_needAdjustDuration",value:function(t){return 0!==t}},{key:"_calculateDurationByDaylightDiff",value:function(t,e){return t+e*p("minute")}},{key:"_getAppointmentDurationInMs",value:function(t,e,n){return this.instance.fire("getAppointmentDurationInMs",{startDate:t,endDate:e,allDay:n})}},{key:"_markAppointmentAsVirtual",value:function(t,e){var n=this._getMaxAppointmentCountPerCellByType(e);t.count-n>0&&(t.virtual={top:t.top,left:t.left,index:"tail"===t.appointmentReduced?t.groupIndex+"-"+t.rowIndex+"-"+t.cellIndex:t.groupIndex+"-"+t.rowIndex+"-"+t.cellIndex+"-tail",isAllDay:e})}},{key:"_getMaxAppointmentCountPerCellByType",value:function(t){var e=this._getMaxAppointmentCountPerCell();return u.default.isObject(e)?t?this._getMaxAppointmentCountPerCell().allDay:this._getMaxAppointmentCountPerCell().simple:e}},{key:"getDropDownAppointmentWidth",value:function(t,e){return this.getPositioningStrategy().getDropDownAppointmentWidth(t,e)}},{key:"getDropDownAppointmentHeight",value:function(){return this.getPositioningStrategy().getDropDownAppointmentHeight()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return 28}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getDefaultCellHeight",value:function(){return this._defaultHeight}},{key:"getDefaultAllDayCellHeight",value:function(){return this._allDayHeight}},{key:"getCollectorTopOffset",value:function(t){return this.getPositioningStrategy().getCollectorTopOffset(t)}},{key:"getCollectorLeftOffset",value:function(){return this.getPositioningStrategy().getCollectorLeftOffset()}},{key:"getAppointmentDataCalculator",value:function(){}},{key:"_customizeCoordinates",value:function(t,e,n,i,o){var r=t.index,a=e/n,s=t.top+r*a+i,l=t.width,u=t.left;return t.isCompact&&(this._isAdaptive()&&this._correctCollectorCoordinatesInAdaptive(t,o),this._markAppointmentAsVirtual(t,o)),{height:a,width:l,top:s,left:u,empty:this._isAppointmentEmpty(e,l)}}},{key:"_isAppointmentEmpty",value:function(t,e){return t<this._getAppointmentMinHeight()||e<this._getAppointmentMinWidth()}},{key:"_calculateGeometryConfig",value:function(t){var e=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(e,t),r=this._getDefaultRatio(t,o),a=this._getMaxHeight();(0,l.isNumeric)(o)||(o=t.count,r=(a-n.unlimited)/a);var s=(1-r)*a;return("auto"===e||(0,l.isNumeric)(e))&&(r=1,a-=i,s=i),{height:r*a,appointmentCountPerCell:o,offset:s}}},{key:"_getAppointmentCount",value:function(){}},{key:"_getDefaultRatio",value:function(){}},{key:"_getOffsets",value:function(){}},{key:"_getMaxHeight",value:function(){}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"needSeparateAppointment",value:function(t){return this.instance.fire("isGroupedByDate")&&t}},{key:"_getMaxAppointmentCountPerCell",value:function(){if(!this._maxAppointmentCountPerCell){var t,e=this.instance.fire("getMaxAppointmentsPerCell");(0,l.isNumeric)(e)&&(t=e),"auto"===e&&(t=this._getDynamicAppointmentCountPerCell()),"unlimited"===e&&(t=void 0),this._maxAppointmentCountPerCell=t}return this._maxAppointmentCountPerCell}},{key:"_getDynamicAppointmentCountPerCell",value:function(){return this.getPositioningStrategy().getDynamicAppointmentCountPerCell()}},{key:"hasAllDayAppointments",value:function(){return!1}},{key:"_isCompactTheme",value:function(){return"compact"===(c.default.current()||"").split(".").pop()}},{key:"_getAppointmentDefaultOffset",value:function(){return this.getPositioningStrategy().getAppointmentDefaultOffset()}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_getAppointmentHeightByTheme",value:function(){return this._isCompactTheme()?18:20}},{key:"_getAppointmentDefaultWidth",value:function(){return this.getPositioningStrategy()._getAppointmentDefaultWidth()}},{key:"_getAppointmentMinWidth",value:function(){return this._getAppointmentDefaultWidth()}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}])&&f(e.prototype,n),h&&f(e,h),t}();t.exports=m},function(t,e,n){"use strict";var i=n(13).patchFontOptions;e.buildRectAppearance=function(t){var e=t.border||{};return{fill:t.color,opacity:t.opacity,stroke:e.color,"stroke-width":e.width,"stroke-opacity":e.opacity,hatching:t.hatching}},e.buildTextAppearance=function(t,e){return{attr:{filter:e},css:i(t.font)}}},function(t,e,n){"use strict";var i=n(22),o=n(527),r=n(30).Buffer,a=new Array(16);function s(){o.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function l(t,e){return t<<e|t>>>32-e}function u(t,e,n,i,o,r,a){return l(t+(e&n|~e&i)+o+r|0,a)+e|0}function c(t,e,n,i,o,r,a){return l(t+(e&i|n&~i)+o+r|0,a)+e|0}function d(t,e,n,i,o,r,a){return l(t+(e^n^i)+o+r|0,a)+e|0}function h(t,e,n,i,o,r,a){return l(t+(n^(e|~i))+o+r|0,a)+e|0}i(s,o),s.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,o=this._c,r=this._d;n=u(n,i,o,r,t[0],3614090360,7),r=u(r,n,i,o,t[1],3905402710,12),o=u(o,r,n,i,t[2],606105819,17),i=u(i,o,r,n,t[3],3250441966,22),n=u(n,i,o,r,t[4],4118548399,7),r=u(r,n,i,o,t[5],1200080426,12),o=u(o,r,n,i,t[6],2821735955,17),i=u(i,o,r,n,t[7],4249261313,22),n=u(n,i,o,r,t[8],1770035416,7),r=u(r,n,i,o,t[9],2336552879,12),o=u(o,r,n,i,t[10],4294925233,17),i=u(i,o,r,n,t[11],2304563134,22),n=u(n,i,o,r,t[12],1804603682,7),r=u(r,n,i,o,t[13],4254626195,12),o=u(o,r,n,i,t[14],2792965006,17),n=c(n,i=u(i,o,r,n,t[15],1236535329,22),o,r,t[1],4129170786,5),r=c(r,n,i,o,t[6],3225465664,9),o=c(o,r,n,i,t[11],643717713,14),i=c(i,o,r,n,t[0],3921069994,20),n=c(n,i,o,r,t[5],3593408605,5),r=c(r,n,i,o,t[10],38016083,9),o=c(o,r,n,i,t[15],3634488961,14),i=c(i,o,r,n,t[4],3889429448,20),n=c(n,i,o,r,t[9],568446438,5),r=c(r,n,i,o,t[14],3275163606,9),o=c(o,r,n,i,t[3],4107603335,14),i=c(i,o,r,n,t[8],1163531501,20),n=c(n,i,o,r,t[13],2850285829,5),r=c(r,n,i,o,t[2],4243563512,9),o=c(o,r,n,i,t[7],1735328473,14),n=d(n,i=c(i,o,r,n,t[12],2368359562,20),o,r,t[5],4294588738,4),r=d(r,n,i,o,t[8],2272392833,11),o=d(o,r,n,i,t[11],1839030562,16),i=d(i,o,r,n,t[14],4259657740,23),n=d(n,i,o,r,t[1],2763975236,4),r=d(r,n,i,o,t[4],1272893353,11),o=d(o,r,n,i,t[7],4139469664,16),i=d(i,o,r,n,t[10],3200236656,23),n=d(n,i,o,r,t[13],681279174,4),r=d(r,n,i,o,t[0],3936430074,11),o=d(o,r,n,i,t[3],3572445317,16),i=d(i,o,r,n,t[6],76029189,23),n=d(n,i,o,r,t[9],3654602809,4),r=d(r,n,i,o,t[12],3873151461,11),o=d(o,r,n,i,t[15],530742520,16),n=h(n,i=d(i,o,r,n,t[2],3299628645,23),o,r,t[0],4096336452,6),r=h(r,n,i,o,t[7],1126891415,10),o=h(o,r,n,i,t[14],2878612391,15),i=h(i,o,r,n,t[5],4237533241,21),n=h(n,i,o,r,t[12],1700485571,6),r=h(r,n,i,o,t[3],2399980690,10),o=h(o,r,n,i,t[10],4293915773,15),i=h(i,o,r,n,t[1],2240044497,21),n=h(n,i,o,r,t[8],1873313359,6),r=h(r,n,i,o,t[15],4264355552,10),o=h(o,r,n,i,t[6],2734768916,15),i=h(i,o,r,n,t[13],1309151649,21),n=h(n,i,o,r,t[4],4149444226,6),r=h(r,n,i,o,t[11],3174756917,10),o=h(o,r,n,i,t[2],718787259,15),i=h(i,o,r,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+o|0,this._d=this._d+r|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=s},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(_){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}}).call(this,n(56))},function(t,e,n){"use strict";var i=n(175).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,n,r){if("function"===typeof n)return t(e,null,n);n||(n={}),r=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t.apply(this,i)}}}(r||o);var a=n.readable||!1!==n.readable&&e.readable,s=n.writable||!1!==n.writable&&e.writable,l=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){s=!1,u=!0,a||r.call(e)},d=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,d=!0,s||r.call(e)},f=function(t){r.call(e,t)},p=function(){var t;return a&&!d?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):s&&!u?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},m=function(){e.req.on("finish",c)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",l),e.on("close",l)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",h),e.on("finish",c),!1!==n.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("end",h),e.removeListener("error",f),e.removeListener("close",p)}}},function(t,e,n){"use strict";var i=n(52).Buffer,o=n(22),r=n(527),a=new Array(16),s=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],l=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],u=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],c=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],d=[0,1518500249,1859775393,2400959708,2840853838],h=[1352829926,1548603684,1836072691,2053994217,0];function f(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function p(t,e){return t<<e|t>>>32-e}function m(t,e,n,i,o,r,a,s){return p(t+(e^n^i)+r+a|0,s)+o|0}function g(t,e,n,i,o,r,a,s){return p(t+(e&n|~e&i)+r+a|0,s)+o|0}function _(t,e,n,i,o,r,a,s){return p(t+((e|~n)^i)+r+a|0,s)+o|0}function v(t,e,n,i,o,r,a,s){return p(t+(e&i|n&~i)+r+a|0,s)+o|0}function y(t,e,n,i,o,r,a,s){return p(t+(e^(n|~i))+r+a|0,s)+o|0}o(f,r),f.prototype._update=function(){for(var t=a,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,o=0|this._c,r=0|this._d,f=0|this._e,b=0|this._a,w=0|this._b,x=0|this._c,C=0|this._d,S=0|this._e,k=0;k<80;k+=1){var I,T;k<16?(I=m(n,i,o,r,f,t[s[k]],d[0],u[k]),T=y(b,w,x,C,S,t[l[k]],h[0],c[k])):k<32?(I=g(n,i,o,r,f,t[s[k]],d[1],u[k]),T=v(b,w,x,C,S,t[l[k]],h[1],c[k])):k<48?(I=_(n,i,o,r,f,t[s[k]],d[2],u[k]),T=_(b,w,x,C,S,t[l[k]],h[2],c[k])):k<64?(I=v(n,i,o,r,f,t[s[k]],d[3],u[k]),T=g(b,w,x,C,S,t[l[k]],h[3],c[k])):(I=y(n,i,o,r,f,t[s[k]],d[4],u[k]),T=m(b,w,x,C,S,t[l[k]],h[4],c[k])),n=f,f=r,r=p(o,10),o=i,i=I,b=S,S=C,C=p(x,10),x=w,w=T}var E=this._b+o+C|0;this._b=this._c+r+S|0,this._c=this._d+f+b|0,this._d=this._e+n+w|0,this._e=this._a+i+x|0,this._a=E},f.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=f},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(1147),e.sha1=n(1148),e.sha224=n(1149),e.sha256=n(534),e.sha384=n(1150),e.sha512=n(535)},function(t,e,n){(e=t.exports=n(536)).Stream=e,e.Readable=e,e.Writable=n(320),e.Duplex=n(150),e.Transform=n(539),e.PassThrough=n(1155)},function(t,e,n){"use strict";(function(e,i,o){var r=n(242);function a(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var o=i.callback;e.pendingcb--,o(n),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=y;var s,l=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:r.nextTick;y.WritableState=v;var u=Object.create(n(205));u.inherits=n(22);var c={deprecate:n(315)},d=n(537),h=n(30).Buffer,f=o.Uint8Array||function(){};var p,m=n(538);function g(){}function v(t,e){s=s||n(150),t=t||{};var i=e instanceof s;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,u=t.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(u||0===u)?u:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===t.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(k,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),k(t,e))}(t,n,i,e,o);else{var a=C(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||x(t,n),i?l(w,t,n,a,o):w(t,n,a,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function y(t){if(s=s||n(150),!p.call(y,this)&&!(this instanceof s))return new y(t);this._writableState=new v(t,this),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),d.call(this)}function b(t,e,n,i,o,r,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,r,e.onwrite),e.sync=!1}function w(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),k(t,e)}function x(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,o=new Array(i),r=e.corkedRequestsFree;r.entry=n;for(var s=0,l=!0;n;)o[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;o.allBuffers=l,b(t,e,!0,e.length,o,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new a(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(b(t,e,!1,e.objectMode?1:u.length,u,c,d),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function C(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function S(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),k(t,e)}))}function k(t,e){var n=C(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"===typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(S,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}u.inherits(y,d),v.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(v.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(y,Symbol.hasInstance,{value:function(t){return!!p.call(this,t)||this===y&&(t&&t._writableState instanceof v)}})):p=function(t){return t instanceof this},y.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},y.prototype.write=function(t,e,n){var i,o=this._writableState,a=!1,s=!o.objectMode&&(i=t,h.isBuffer(i)||i instanceof f);return s&&!h.isBuffer(t)&&(t=function(t){return h.from(t)}(t)),"function"===typeof e&&(n=e,e=null),s?e="buffer":e||(e=o.defaultEncoding),"function"!==typeof n&&(n=g),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(s||function(t,e,n,i){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||e.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(t.emit("error",a),r.nextTick(i,a),o=!1),o}(this,o,t,n))&&(o.pendingcb++,a=function(t,e,n,i,o,r){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=h.from(e,n));return e}(e,i,o);i!==a&&(n=!0,o="buffer",i=a)}var s=e.objectMode?1:i.length;e.length+=s;var l=e.length<e.highWaterMark;l||(e.needDrain=!0);if(e.writing||e.corked){var u=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:r,next:null},u?u.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else b(t,e,!1,s,i,o,r);return l}(this,o,s,t,e,n)),a},y.prototype.cork=function(){this._writableState.corked++},y.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||x(this,t))},y.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(y.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),y.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},y.prototype._writev=null,y.prototype.end=function(t,e,n){var i=this._writableState;"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,k(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),y.prototype.destroy=m.destroy,y.prototype._undestroy=m.undestroy,y.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(50),n(389).setImmediate,n(56))},function(t,e,n){"use strict";var i=n(84);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},o.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i<n;i++)this.buffer[this.bufferOff+i]=t[e+i];return this.bufferOff+=n,n},o.prototype._flushBuffer=function(t,e){return this._update(this.buffer,0,t,e),this.bufferOff=0,this.blockSize},o.prototype._updateEncrypt=function(t){var e=0,n=0,i=(this.bufferOff+t.length)/this.blockSize|0,o=new Array(i*this.blockSize);0!==this.bufferOff&&(e+=this._buffer(t,e),this.bufferOff===this.buffer.length&&(n+=this._flushBuffer(o,n)));for(var r=t.length-(t.length-e)%this.blockSize;e<r;e+=this.blockSize)this._update(t,e,o,n),n+=this.blockSize;for(;e<t.length;e++,this.bufferOff++)this.buffer[this.bufferOff]=t[e];return o},o.prototype._updateDecrypt=function(t){for(var e=0,n=0,i=Math.ceil((this.bufferOff+t.length)/this.blockSize)-1,o=new Array(i*this.blockSize);i>0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(o,n);return e+=this._buffer(t,e),o},o.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e<t.length;)t[e++]=0;return!0},o.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var t=new Array(this.blockSize);return this._update(this.buffer,0,t,0),t},o.prototype._unpad=function(t){return t},o.prototype._finalDecrypt=function(){i.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var t=new Array(this.blockSize);return this._flushBuffer(t,0),this._unpad(t)}},function(t,e,n){var i=n(1168),o=n(1176),r=n(552);e.createCipher=e.Cipher=i.createCipher,e.createCipheriv=e.Cipheriv=i.createCipheriv,e.createDecipher=e.Decipher=o.createDecipher,e.createDecipheriv=e.Decipheriv=o.createDecipheriv,e.listCiphers=e.getCiphers=function(){return Object.keys(r)}},function(t,e,n){var i={ECB:n(1169),CBC:n(1170),CFB:n(1171),CFB8:n(1172),CFB1:n(1173),OFB:n(1174),CTR:n(550),GCM:n(550)},o=n(552);for(var r in o)o[r].module=i[o[r].mode];t.exports=o},function(t,e,n){var i;function o(t){this.rand=t}if(t.exports=function(t){return i||(i=new o(null)),i.generate(t)},t.exports.Rand=o,o.prototype.generate=function(t){return this._rand(t)},o.prototype._rand=function(t){if(this.rand.getBytes)return this.rand.getBytes(t);for(var e=new Uint8Array(t),n=0;n<e.length;n++)e[n]=this.rand.getByte();return e},"object"===typeof self)self.crypto&&self.crypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.crypto.getRandomValues(e),e}:self.msCrypto&&self.msCrypto.getRandomValues?o.prototype._rand=function(t){var e=new Uint8Array(t);return self.msCrypto.getRandomValues(e),e}:"object"===typeof window&&(o.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var r=n(1182);if("function"!==typeof r.randomBytes)throw new Error("Not supported");o.prototype._rand=function(t){return r.randomBytes(t)}}catch(a){}},function(t,e,n){var i=n(52),o=i.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=a),a.prototype=Object.create(o.prototype),r(o,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var i=o(t);return void 0!==e?"string"===typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";var i=n(178).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,n,r){if("function"===typeof n)return t(e,null,n);n||(n={}),r=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];t.apply(this,i)}}}(r||o);var a=n.readable||!1!==n.readable&&e.readable,s=n.writable||!1!==n.writable&&e.writable,l=function(){e.writable||c()},u=e._writableState&&e._writableState.finished,c=function(){s=!1,u=!0,a||r.call(e)},d=e._readableState&&e._readableState.endEmitted,h=function(){a=!1,d=!0,s||r.call(e)},f=function(t){r.call(e,t)},p=function(){var t;return a&&!d?(e._readableState&&e._readableState.ended||(t=new i),r.call(e,t)):s&&!u?(e._writableState&&e._writableState.ended||(t=new i),r.call(e,t)):void 0},m=function(){e.req.on("finish",c)};return!function(t){return t.setHeader&&"function"===typeof t.abort}(e)?s&&!e._writableState&&(e.on("end",l),e.on("close",l)):(e.on("complete",c),e.on("abort",p),e.req?m():e.on("request",m)),e.on("end",h),e.on("finish",c),!1!==n.error&&e.on("error",f),e.on("close",p),function(){e.removeListener("complete",c),e.removeListener("abort",p),e.removeListener("request",m),e.req&&e.req.removeListener("finish",c),e.removeListener("end",l),e.removeListener("close",l),e.removeListener("finish",c),e.removeListener("end",h),e.removeListener("error",f),e.removeListener("close",p)}}},function(t,e,n){(function(e){var i=n(1195),o=n(174);function r(t,n){var o=function(t){var e=a(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),r=n.modulus.byteLength(),s=(i.mont(n.modulus),new i(t).mul(o.blinder).umod(n.modulus)),l=s.toRed(i.mont(n.prime1)),u=s.toRed(i.mont(n.prime2)),c=n.coefficient,d=n.prime1,h=n.prime2,f=l.redPow(n.exponent1),p=u.redPow(n.exponent2);f=f.fromRed(),p=p.fromRed();var m=f.isub(p).imul(c).umod(d);return m.imul(h),p.iadd(m),new e(p.imul(o.unblinder).umod(n.modulus).toArray(!1,r))}function a(t){for(var e=t.modulus.byteLength(),n=new i(o(e));n.cmp(t.modulus)>=0||!n.umod(t.prime1)||!n.umod(t.prime2);)n=new i(o(e));return n}t.exports=r,r.getr=a}).call(this,n(52).Buffer)},function(t,e,n){"use strict";var i=e;i.version=n(1197).version,i.utils=n(85),i.rand=n(324),i.curve=n(565),i.curves=n(329),i.ec=n(1209),i.eddsa=n(1213)},function(t,e,n){"use strict";var i,o=e,r=n(330),a=n(565),s=n(85).assert;function l(t){"short"===t.type?this.curve=new a.short(t):"edwards"===t.type?this.curve=new a.edwards(t):this.curve=new a.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var n=new l(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=l,u("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),u("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),u("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n(1208)}catch(c){i=void 0}u("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(t,e,n){var i=e;i.utils=n(105),i.common=n(207),i.sha=n(1202),i.ripemd=n(1206),i.hmac=n(1207),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(t,e,n){"use strict";(function(e){var i,o=n(52),r=o.Buffer,a={};for(i in o)o.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(a[i]=o[i]);var s=a.Buffer={};for(i in r)r.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(s[i]=r[i]);if(a.Buffer.prototype=r.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(t,e,n){if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&"undefined"===typeof t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,n)}),s.alloc||(s.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var i=r(t);return e&&0!==e.length?"string"===typeof n?i.fill(e,n):i.fill(e):i.fill(0),i}),!a.kStringMaxLength)try{a.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(l){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),t.exports=a}).call(this,n(50))},function(t,e,n){"use strict";var i=n(333).Reporter,o=n(208).EncoderBuffer,r=n(208).DecoderBuffer,a=n(84),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],l=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function u(t,e,n){var i={};this._baseState=i,i.name=n,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=u;var c=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];u.prototype.clone=function(){var t=this._baseState,e={};c.forEach((function(n){e[n]=t[n]}));var n=new this.constructor(e.parent);return n._baseState=e,n},u.prototype._wrap=function(){var t=this._baseState;l.forEach((function(e){this[e]=function(){var n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},u.prototype._init=function(t){var e=this._baseState;a(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),a.equal(e.children.length,1,"Root node can have only one child")},u.prototype._useArgs=function(t){var e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(a(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(a(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!==typeof t||t.constructor!==Object)return t;var e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);var i=t[n];e[i]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){u.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),s.forEach((function(t){u.prototype[t]=function(){var e=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===e.tag),e.tag=t,this._useArgs(n),this}})),u.prototype.use=function(t){a(t);var e=this._baseState;return a(null===e.use),e.use=t,this},u.prototype.optional=function(){return this._baseState.optional=!0,this},u.prototype.def=function(t){var e=this._baseState;return a(null===e.default),e.default=t,e.optional=!0,this},u.prototype.explicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.explicit=t,this},u.prototype.implicit=function(t){var e=this._baseState;return a(null===e.explicit&&null===e.implicit),e.implicit=t,this},u.prototype.obj=function(){var t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},u.prototype.key=function(t){var e=this._baseState;return a(null===e.key),e.key=t,this},u.prototype.any=function(){return this._baseState.any=!0,this},u.prototype.choice=function(t){var e=this._baseState;return a(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},u.prototype.contains=function(t){var e=this._baseState;return a(null===e.use),e.contains=t,this},u.prototype._decode=function(t,e){var n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));var i,o=n.default,a=!0,s=null;if(null!==n.key&&(s=t.enterKey(n.key)),n.optional){var l=null;if(null!==n.explicit?l=n.explicit:null!==n.implicit?l=n.implicit:null!==n.tag&&(l=n.tag),null!==l||n.any){if(a=this._peekTag(t,l,n.any),t.isError(a))return a}else{var u=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),a=!0}catch(m){a=!1}t.restore(u)}}if(n.obj&&a&&(i=t.enterObject()),a){if(null!==n.explicit){var c=this._decodeTag(t,n.explicit);if(t.isError(c))return c;t=c}var d=t.offset;if(null===n.use&&null===n.choice){var h;n.any&&(h=t.save());var f=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(f))return f;n.any?o=t.raw(h):t=f}if(e&&e.track&&null!==n.tag&&e.track(t.path(),d,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(o=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(o))return o;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new r(o);o=this._getUse(n.contains,t._reporterState.obj)._decode(p,e)}}return n.obj&&a&&(o=t.leaveObject(i)),null===n.key||null===o&&!0!==a?null!==s&&t.exitKey(s):t.leaveKey(s,n.key,o),o},u.prototype._decodeGeneric=function(t,e,n){var i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},u.prototype._getUse=function(t,e){var n=this._baseState;return n.useDecoder=this._use(t,e),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},u.prototype._decodeChoice=function(t,e){var n=this._baseState,i=null,o=!1;return Object.keys(n.choice).some((function(r){var a=t.save(),s=n.choice[r];try{var l=s._decode(t,e);if(t.isError(l))return!1;i={type:r,value:l},o=!0}catch(u){return t.restore(a),!1}return!0}),this),o?i:t.error("Choice not matched")},u.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},u.prototype._encode=function(t,e,n){var i=this._baseState;if(null===i.default||i.default!==t){var o=this._encodeValue(t,e,n);if(void 0!==o&&!this._skipDefault(o,e,n))return o}},u.prototype._encodeValue=function(t,e,n){var o=this._baseState;if(null===o.parent)return o.children[0]._encode(t,e||new i);var r=null;if(this.reporter=e,o.optional&&void 0===t){if(null===o.default)return;t=o.default}var a=null,s=!1;if(o.any)r=this._createEncoderBuffer(t);else if(o.choice)r=this._encodeChoice(t,e);else if(o.contains)a=this._getUse(o.contains,n)._encode(t,e),s=!0;else if(o.children)a=o.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");var i=e.enterKey(n._baseState.key);if("object"!==typeof t)return e.error("Child expected, but input is not object");var o=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),o}),this).filter((function(t){return t})),a=this._createEncoderBuffer(a);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return e.error("Too many args for : "+o.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");var l=this.clone();l._baseState.implicit=null,a=this._createEncoderBuffer(t.map((function(n){var i=this._baseState;return this._getUse(i.args[0],t)._encode(n,e)}),l))}else null!==o.use?r=this._getUse(o.use,n)._encode(t,e):(a=this._encodePrimitive(o.tag,t),s=!0);if(!o.any&&null===o.choice){var u=null!==o.implicit?o.implicit:o.tag,c=null===o.implicit?"universal":"context";null===u?null===o.use&&e.error("Tag could be omitted only for .use()"):null===o.use&&(r=this._encodeComposite(u,s,c,a))}return null!==o.explicit&&(r=this._encodeComposite(o.explicit,!1,"context",r)),r},u.prototype._encodeChoice=function(t,e){var n=this._baseState,i=n.choice[t.type];return i||a(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},u.prototype._encodePrimitive=function(t,e){var n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},u.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},u.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,n){"use strict";var i=n(22);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function r(t,e){this.path=t,this.rethrow(e)}e.Reporter=o,o.prototype.isError=function(t){return t instanceof r},o.prototype.save=function(){var t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(t){var e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){var e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,n){var i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){var t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){var e=this._reporterState,n=e.obj;return e.obj=t,n},o.prototype.error=function(t){var e,n=this._reporterState,i=t instanceof r;if(e=i?t:new r(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},o.prototype.wrapResult=function(t){var e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(r,Error),r.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},function(t,e,n){"use strict";function i(t){var e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);var i=t[n];e[i]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1233).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(){var t=o,e=t.lib,n=e.WordArray,i=e.Hasher,r=t.algo,a=[],s=r.SHA1=i.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],o=n[1],r=n[2],s=n[3],l=n[4],u=0;u<80;u++){if(u<16)a[u]=0|t[e+u];else{var c=a[u-3]^a[u-8]^a[u-14]^a[u-16];a[u]=c<<1|c>>>31}var d=(i<<5|i>>>27)+l+a[u];d+=u<20?1518500249+(o&r|~o&s):u<40?1859775393+(o^r^s):u<60?(o&r|o&s|r&s)-1894007588:(o^r^s)-899497514,l=s,s=r,r=o<<30|o>>>2,o=i,i=d}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+r|0,n[3]=n[3]+s|0,n[4]=n[4]+l|0},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=Math.floor(n/4294967296),e[15+(i+64>>>9<<4)]=n,t.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(s),t.HmacSHA1=i._createHmacHelper(s)}(),o.SHA1)}()},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),void function(){var t=o,e=t.lib.Base,n=t.enc.Utf8;t.algo.HMAC=e.extend({init:function(t,e){t=this._hasher=new t.init,"string"==typeof e&&(e=n.parse(e));var i=t.blockSize,o=4*i;e.sigBytes>o&&(e=t.finalize(e)),e.clamp();for(var r=this._oKey=e.clone(),a=this._iKey=e.clone(),s=r.words,l=a.words,u=0;u<i;u++)s[u]^=1549556828,l[u]^=909522486;r.sigBytes=a.sigBytes=o,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var e=this._hasher,n=e.finalize(t);return e.reset(),e.finalize(this._oKey.clone().concat(n))}})}())}()},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(48),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Popup=l,l.propTypes={accessKey:r.string,animation:r.object,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),deferRendering:r.bool,disabled:r.bool,dragEnabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,fullScreen:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxHeight:r.oneOfType([r.func,r.number,r.string]),maxWidth:r.oneOfType([r.func,r.number,r.string]),minHeight:r.oneOfType([r.func,r.number,r.string]),minWidth:r.oneOfType([r.func,r.number,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onOptionChanged:r.func,onResize:r.func,onResizeEnd:r.func,onResizeStart:r.func,onShowing:r.func,onShown:r.func,onTitleRendered:r.func,position:r.oneOfType([r.func,r.object,r.oneOf(["bottom","center","left","left bottom","left top","right","right bottom","right top","top"])]),resizeEnabled:r.bool,rtlEnabled:r.bool,shading:r.bool,shadingColor:r.string,showCloseButton:r.bool,showTitle:r.bool,tabIndex:r.number,title:r.string,toolbarItems:r.array,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=v,e.default=l},function(t,e,n){"use strict";var i=n(1),o=n.n(i),r=n(9),a=n.n(r);function s(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{l(i.next(t))}catch(e){r(e)}}function s(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function l(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}Object.create;function u(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}Object.create;var c=new Map([["avi","video/avi"],["gif","image/gif"],["ico","image/x-icon"],["jpeg","image/jpeg"],["jpg","image/jpeg"],["mkv","video/x-matroska"],["mov","video/quicktime"],["mp4","video/mp4"],["pdf","application/pdf"],["png","image/png"],["zip","application/zip"],["doc","application/msword"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"]]);function d(t,e){var n=function(t){var e=t.name;if(e&&-1!==e.lastIndexOf(".")&&!t.type){var n=e.split(".").pop().toLowerCase(),i=c.get(n);i&&Object.defineProperty(t,"type",{value:i,writable:!1,configurable:!1,enumerable:!0})}return t}(t);if("string"!==typeof n.path){var i=t.webkitRelativePath;Object.defineProperty(n,"path",{value:"string"===typeof e?e:"string"===typeof i&&i.length>0?i:t.name,writable:!1,configurable:!1,enumerable:!0})}return n}var h=[".DS_Store","Thumbs.db"];function f(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,(n=t,n.dataTransfer&&t.dataTransfer?m(t.dataTransfer,t.type):p(t))];var n}))}))}function p(t){return(null!==t.target&&t.target.files?_(t.target.files):[]).map((function(t){return d(t)}))}function m(t,e){return s(this,void 0,void 0,(function(){var n;return l(this,(function(i){switch(i.label){case 0:return t.items?(n=_(t.items).filter((function(t){return"file"===t.kind})),"drop"!==e?[2,n]:[4,Promise.all(n.map(v))]):[3,2];case 1:return[2,g(y(i.sent()))];case 2:return[2,g(_(t.files).map((function(t){return d(t)})))]}}))}))}function g(t){return t.filter((function(t){return-1===h.indexOf(t.name)}))}function _(t){for(var e=[],n=0;n<t.length;n++){var i=t[n];e.push(i)}return e}function v(t){if("function"!==typeof t.webkitGetAsEntry)return b(t);var e=t.webkitGetAsEntry();return e&&e.isDirectory?x(e):b(t)}function y(t){return t.reduce((function(t,e){return function(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(u(arguments[e]));return t}(t,Array.isArray(e)?y(e):[e])}),[])}function b(t){var e=t.getAsFile();if(!e)return Promise.reject(t+" is not a File");var n=d(e);return Promise.resolve(n)}function w(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,t.isDirectory?x(t):C(t)]}))}))}function x(t){var e=t.createReader();return new Promise((function(t,n){var i=[];!function o(){var r=this;e.readEntries((function(e){return s(r,void 0,void 0,(function(){var r,a,s;return l(this,(function(l){switch(l.label){case 0:if(e.length)return[3,5];l.label=1;case 1:return l.trys.push([1,3,,4]),[4,Promise.all(i)];case 2:return r=l.sent(),t(r),[3,4];case 3:return a=l.sent(),n(a),[3,4];case 4:return[3,6];case 5:s=Promise.all(e.map(w)),i.push(s),o(),l.label=6;case 6:return[2]}}))}))}),(function(t){n(t)}))}()}))}function C(t){return s(this,void 0,void 0,(function(){return l(this,(function(e){return[2,new Promise((function(e,n){t.file((function(n){var i=d(n,t.fullPath);e(i)}),(function(t){n(t)}))}))]}))}))}var S=n(585),k=n.n(S);function I(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var T=function(t){t=Array.isArray(t)&&1===t.length?t[0]:t;var e=Array.isArray(t)?"one of ".concat(t.join(", ")):t;return{code:"file-invalid-type",message:"File type must be ".concat(e)}},E=function(t){return{code:"file-too-large",message:"File is larger than ".concat(t," bytes")}},O=function(t){return{code:"file-too-small",message:"File is smaller than ".concat(t," bytes")}},M={code:"too-many-files",message:"Too many files"};function P(t,e){var n="application/x-moz-file"===t.type||k()(t,e);return[n,n?null:T(e)]}function D(t,e,n){if(A(t.size))if(A(e)&&A(n)){if(t.size>n)return[!1,E(n)];if(t.size<e)return[!1,O(e)]}else{if(A(e)&&t.size<e)return[!1,O(e)];if(A(n)&&t.size>n)return[!1,E(n)]}return[!0,null]}function A(t){return void 0!==t&&null!==t}function R(t){var e=t.files,n=t.accept,i=t.minSize,o=t.maxSize;return!(!t.multiple&&e.length>1)&&e.every((function(t){var e=I(P(t,n),1)[0],r=I(D(t,i,o),1)[0];return e&&r}))}function B(t){return"function"===typeof t.isPropagationStopped?t.isPropagationStopped():"undefined"!==typeof t.cancelBubble&&t.cancelBubble}function N(t){return t.dataTransfer?Array.prototype.some.call(t.dataTransfer.types,(function(t){return"Files"===t||"application/x-moz-file"===t})):!!t.target&&!!t.target.files}function L(t){t.preventDefault()}function F(t){return-1!==t.indexOf("MSIE")||-1!==t.indexOf("Trident/")}function V(t){return-1!==t.indexOf("Edge/")}function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.navigator.userAgent;return F(t)||V(t)}function j(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return e.some((function(e){return!B(t)&&e&&e.apply(void 0,[t].concat(i)),B(t)}))}}function H(t){return function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function W(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function U(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?U(n,!0).forEach((function(e){K(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):U(n).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function K(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function q(t,e){if(null==t)return{};var n,i,o=function(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)n=r[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var $=Object(i.forwardRef)((function(t,e){var n=t.children,r=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.accept,n=t.disabled,o=void 0!==n&&n,r=t.getFilesFromEvent,a=void 0===r?f:r,s=t.maxSize,l=void 0===s?1/0:s,u=t.minSize,c=void 0===u?0:u,d=t.multiple,h=void 0===d||d,p=t.maxFiles,m=void 0===p?0:p,g=t.onDragEnter,_=t.onDragLeave,v=t.onDragOver,y=t.onDrop,b=t.onDropAccepted,w=t.onDropRejected,x=t.onFileDialogCancel,C=t.preventDropOnDocument,S=void 0===C||C,k=t.noClick,I=void 0!==k&&k,T=t.noKeyboard,E=void 0!==T&&T,O=t.noDrag,A=void 0!==O&&O,F=t.noDragEventsBubbling,V=void 0!==F&&F,U=Object(i.useRef)(null),$=Object(i.useRef)(null),X=Object(i.useReducer)(Z,Y),J=W(X,2),Q=J[0],tt=J[1],et=Q.isFocused,nt=Q.isFileDialogActive,it=Q.draggedFiles,ot=Object(i.useCallback)((function(){$.current&&(tt({type:"openDialog"}),$.current.value=null,$.current.click())}),[tt]),rt=function(){nt&&setTimeout((function(){$.current&&($.current.files.length||(tt({type:"closeDialog"}),"function"===typeof x&&x()))}),300)};Object(i.useEffect)((function(){return window.addEventListener("focus",rt,!1),function(){window.removeEventListener("focus",rt,!1)}}),[$,nt,x]);var at=Object(i.useCallback)((function(t){U.current&&U.current.isEqualNode(t.target)&&(32!==t.keyCode&&13!==t.keyCode||(t.preventDefault(),ot()))}),[U,$]),st=Object(i.useCallback)((function(){tt({type:"focus"})}),[]),lt=Object(i.useCallback)((function(){tt({type:"blur"})}),[]),ut=Object(i.useCallback)((function(){I||(z()?setTimeout(ot,0):ot())}),[$,I]),ct=Object(i.useRef)([]),dt=function(t){U.current&&U.current.contains(t.target)||(t.preventDefault(),ct.current=[])};Object(i.useEffect)((function(){return S&&(document.addEventListener("dragover",L,!1),document.addEventListener("drop",dt,!1)),function(){S&&(document.removeEventListener("dragover",L),document.removeEventListener("drop",dt))}}),[U,S]);var ht=Object(i.useCallback)((function(t){t.preventDefault(),t.persist(),yt(t),ct.current=[].concat(H(ct.current),[t.target]),N(t)&&Promise.resolve(a(t)).then((function(e){B(t)&&!V||(tt({draggedFiles:e,isDragActive:!0,type:"setDraggedFiles"}),g&&g(t))}))}),[a,g,V]),ft=Object(i.useCallback)((function(t){if(t.preventDefault(),t.persist(),yt(t),t.dataTransfer)try{t.dataTransfer.dropEffect="copy"}catch(e){}return N(t)&&v&&v(t),!1}),[v,V]),pt=Object(i.useCallback)((function(t){t.preventDefault(),t.persist(),yt(t);var e=ct.current.filter((function(t){return U.current&&U.current.contains(t)})),n=e.indexOf(t.target);-1!==n&&e.splice(n,1),ct.current=e,e.length>0||(tt({isDragActive:!1,type:"setDraggedFiles",draggedFiles:[]}),N(t)&&_&&_(t))}),[U,_,V]),mt=Object(i.useCallback)((function(t){t.preventDefault(),t.persist(),yt(t),ct.current=[],N(t)&&Promise.resolve(a(t)).then((function(n){if(!B(t)||V){var i=[],o=[];n.forEach((function(t){var n=W(P(t,e),2),r=n[0],a=n[1],s=W(D(t,c,l),2),u=s[0],d=s[1];if(r&&u)i.push(t);else{var h=[a,d].filter((function(t){return t}));o.push({file:t,errors:h})}})),(!h&&i.length>1||h&&m>=1&&i.length>m)&&(i.forEach((function(t){o.push({file:t,errors:[M]})})),i.splice(0)),tt({acceptedFiles:i,fileRejections:o,type:"setFiles"}),y&&y(i,o,t),o.length>0&&w&&w(o,t),i.length>0&&b&&b(i,t)}})),tt({type:"reset"})}),[h,e,c,l,a,y,b,w,V]),gt=function(t){return o?null:t},_t=function(t){return E?null:gt(t)},vt=function(t){return A?null:gt(t)},yt=function(t){V&&t.stopPropagation()},bt=Object(i.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.refKey,n=void 0===e?"ref":e,i=t.onKeyDown,r=t.onFocus,a=t.onBlur,s=t.onClick,l=t.onDragEnter,u=t.onDragOver,c=t.onDragLeave,d=t.onDrop,h=q(t,["refKey","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"]);return G(K({onKeyDown:_t(j(i,at)),onFocus:_t(j(r,st)),onBlur:_t(j(a,lt)),onClick:gt(j(s,ut)),onDragEnter:vt(j(l,ht)),onDragOver:vt(j(u,ft)),onDragLeave:vt(j(c,pt)),onDrop:vt(j(d,mt))},n,U),o||E?{}:{tabIndex:0},{},h)}}),[U,at,st,lt,ut,ht,ft,pt,mt,E,A,o]),wt=Object(i.useCallback)((function(t){t.stopPropagation()}),[]),xt=Object(i.useMemo)((function(){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.refKey,i=void 0===n?"ref":n,o=t.onChange,r=t.onClick,a=q(t,["refKey","onChange","onClick"]),s=K({accept:e,multiple:h,type:"file",style:{display:"none"},onChange:gt(j(o,mt)),onClick:gt(j(r,wt)),autoComplete:"off",tabIndex:-1},i,$);return G({},s,{},a)}}),[$,e,h,mt,o]),Ct=it.length,St=Ct>0&&R({files:it,accept:e,minSize:c,maxSize:l,multiple:h}),kt=Ct>0&&!St;return G({},Q,{isDragAccept:St,isDragReject:kt,isFocused:et&&!o,getRootProps:bt,getInputProps:xt,rootRef:U,inputRef:$,open:gt(ot)})}(q(t,["children"])),a=r.open,s=q(r,["open"]);return Object(i.useImperativeHandle)(e,(function(){return{open:a}}),[a]),o.a.createElement(i.Fragment,null,n(G({},s,{open:a})))}));$.displayName="Dropzone",$.propTypes={children:a.a.func,accept:a.a.oneOfType([a.a.string,a.a.arrayOf(a.a.string)]),multiple:a.a.bool,preventDropOnDocument:a.a.bool,noClick:a.a.bool,noKeyboard:a.a.bool,noDrag:a.a.bool,noDragEventsBubbling:a.a.bool,minSize:a.a.number,maxSize:a.a.number,maxFiles:a.a.number,disabled:a.a.bool,getFilesFromEvent:a.a.func,onFileDialogCancel:a.a.func,onDragEnter:a.a.func,onDragLeave:a.a.func,onDragOver:a.a.func,onDrop:a.a.func,onDropAccepted:a.a.func,onDropRejected:a.a.func};e.a=$;var Y={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]};function Z(t,e){switch(e.type){case"focus":return G({},t,{isFocused:!0});case"blur":return G({},t,{isFocused:!1});case"openDialog":return G({},t,{isFileDialogActive:!0});case"closeDialog":return G({},t,{isFileDialogActive:!1});case"setDraggedFiles":var n=e.isDragActive;return G({},t,{draggedFiles:e.draggedFiles,isDragActive:n});case"setFiles":return G({},t,{acceptedFiles:e.acceptedFiles,fileRejections:e.fileRejections});case"reset":return G({},t,{isFileDialogActive:!1,isDragActive:!1,draggedFiles:[],acceptedFiles:[],fileRejections:[]});default:return t}}},function(t,e,n){"use strict";(function(t,i){var o,r=n(583);o="undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof t?t:i;var a=Object(r.a)(o);e.a=a}).call(this,n(56),n(614)(t))},function(t,e,n){"use strict";(function(t){var i=n(1),o=n.n(i),r=n(75),a=n(9),s=n.n(a),l="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof t?t:{};function u(t){var e=[];return{on:function(t){e.push(t)},off:function(t){e=e.filter((function(e){return e!==t}))},get:function(){return t},set:function(n,i){t=n,e.forEach((function(e){return e(t,i)}))}}}var c=o.a.createContext||function(t,e){var n,o,a="__create-react-context-"+function(){var t="__global_unique_id__";return l[t]=(l[t]||0)+1}()+"__",c=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).emitter=u(e.props.value),e}Object(r.a)(n,t);var i=n.prototype;return i.getChildContext=function(){var t;return(t={})[a]=this.emitter,t},i.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var n,i=this.props.value,o=t.value;((r=i)===(a=o)?0!==r||1/r===1/a:r!==r&&a!==a)?n=0:(n="function"===typeof e?e(i,o):1073741823,0!==(n|=0)&&this.emitter.set(t.value,n))}var r,a},i.render=function(){return this.props.children},n}(i.Component);c.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(e,n){0!==((0|t.observedBits)&n)&&t.setState({value:t.getValue()})},t}Object(r.a)(n,e);var i=n.prototype;return i.componentWillReceiveProps=function(t){var e=t.observedBits;this.observedBits=void 0===e||null===e?1073741823:e},i.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?1073741823:t},i.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},i.getValue=function(){return this.context[a]?this.context[a].get():t},i.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},n}(i.Component);return d.contextTypes=((o={})[a]=s.a.object,o),{Provider:c,Consumer:d}};e.a=c}).call(this,n(56))},function(t,e,n){var i=n(1259);t.exports=f,t.exports.parse=r,t.exports.compile=function(t,e){return s(r(t,e),e)},t.exports.tokensToFunction=s,t.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function r(t,e){for(var n,i=[],r=0,a=0,s="",c=e&&e.delimiter||"/";null!=(n=o.exec(t));){var d=n[0],h=n[1],f=n.index;if(s+=t.slice(a,f),a=f+d.length,h)s+=h[1];else{var p=t[a],m=n[2],g=n[3],_=n[4],v=n[5],y=n[6],b=n[7];s&&(i.push(s),s="");var w=null!=m&&null!=p&&p!==m,x="+"===y||"*"===y,C="?"===y||"*"===y,S=n[2]||c,k=_||v;i.push({name:g||r++,prefix:m||"",delimiter:S,optional:C,repeat:x,partial:w,asterisk:!!b,pattern:k?u(k):b?".*":"[^"+l(S)+"]+?"})}}return a<t.length&&(s+=t.substr(a)),s&&i.push(s),i}function a(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function s(t,e){for(var n=new Array(t.length),o=0;o<t.length;o++)"object"===typeof t[o]&&(n[o]=new RegExp("^(?:"+t[o].pattern+")$",d(e)));return function(e,o){for(var r="",s=e||{},l=(o||{}).pretty?a:encodeURIComponent,u=0;u<t.length;u++){var c=t[u];if("string"!==typeof c){var d,h=s[c.name];if(null==h){if(c.optional){c.partial&&(r+=c.prefix);continue}throw new TypeError('Expected "'+c.name+'" to be defined')}if(i(h)){if(!c.repeat)throw new TypeError('Expected "'+c.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(c.optional)continue;throw new TypeError('Expected "'+c.name+'" to not be empty')}for(var f=0;f<h.length;f++){if(d=l(h[f]),!n[u].test(d))throw new TypeError('Expected all "'+c.name+'" to match "'+c.pattern+'", but received `'+JSON.stringify(d)+"`");r+=(0===f?c.prefix:c.delimiter)+d}}else{if(d=c.asterisk?encodeURI(h).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):l(h),!n[u].test(d))throw new TypeError('Expected "'+c.name+'" to match "'+c.pattern+'", but received "'+d+'"');r+=c.prefix+d}}else r+=c}return r}}function l(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function u(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function c(t,e){return t.keys=e,t}function d(t){return t&&t.sensitive?"":"i"}function h(t,e,n){i(e)||(n=e||n,e=[]);for(var o=(n=n||{}).strict,r=!1!==n.end,a="",s=0;s<t.length;s++){var u=t[s];if("string"===typeof u)a+=l(u);else{var h=l(u.prefix),f="(?:"+u.pattern+")";e.push(u),u.repeat&&(f+="(?:"+h+f+")*"),a+=f=u.optional?u.partial?h+"("+f+")?":"(?:"+h+"("+f+"))?":h+"("+f+")"}}var p=l(n.delimiter||"/"),m=a.slice(-p.length)===p;return o||(a=(m?a.slice(0,-p.length):a)+"(?:"+p+"(?=$))?"),a+=r?"$":o&&m?"":"(?="+p+"|$)",c(new RegExp("^"+a,d(n)),e)}function f(t,e,n){return i(e)||(n=e||n,e=[]),n=n||{},t instanceof RegExp?function(t,e){var n=t.source.match(/\((?!\?)/g);if(n)for(var i=0;i<n.length;i++)e.push({name:i,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return c(t,e)}(t,e):i(t)?function(t,e,n){for(var i=[],o=0;o<t.length;o++)i.push(f(t[o],e,n).source);return c(new RegExp("(?:"+i.join("|")+")",d(n)),e)}(t,e,n):function(t,e,n){return h(r(t,n),e,n)}(t,e,n)}},function(t,e,n){"use strict";var i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function a(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(t){return e[t]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(t){i[t]=t})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}()?Object.assign:function(t,e){for(var n,s,l=a(t),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))o.call(n,c)&&(l[c]=n[c]);if(i){s=i(n);for(var d=0;d<s.length;d++)r.call(n,s[d])&&(l[s[d]]=n[s[d]])}}return l}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e,n){"use strict";var i=n(72);function o(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(i.isURLSearchParams(e))r=e.toString();else{var a=[];i.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,(function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),a.push(o(e)+"="+o(t))})))})),r=a.join("&")}if(r){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+r}return t}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";(function(e){var i=n(72),o=n(602),r={"Content-Type":"application/x-www-form-urlencoded"};function a(t,e){!i.isUndefined(t)&&i.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var s={adapter:function(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof e&&"[object process]"===Object.prototype.toString.call(e))&&(t=n(348)),t}(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),i.isFormData(t)||i.isArrayBuffer(t)||i.isBuffer(t)||i.isStream(t)||i.isFile(t)||i.isBlob(t)?t:i.isArrayBufferView(t)?t.buffer:i.isURLSearchParams(t)?(a(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):i.isObject(t)?(a(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){s.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){s.headers[t]=i.merge(r)})),t.exports=s}).call(this,n(50))},function(t,e,n){"use strict";var i=n(72),o=n(603),r=n(345),a=n(605),s=n(608),l=n(609),u=n(349);t.exports=function(t){return new Promise((function(e,c){var d=t.data,h=t.headers;i.isFormData(d)&&delete h["Content-Type"];var f=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password||"";h.Authorization="Basic "+btoa(p+":"+m)}var g=a(t.baseURL,t.url);if(f.open(t.method.toUpperCase(),r(g,t.params,t.paramsSerializer),!0),f.timeout=t.timeout,f.onreadystatechange=function(){if(f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,i={data:t.responseType&&"text"!==t.responseType?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:n,config:t,request:f};o(e,c,i),f=null}},f.onabort=function(){f&&(c(u("Request aborted",t,"ECONNABORTED",f)),f=null)},f.onerror=function(){c(u("Network Error",t,null,f)),f=null},f.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),c(u(e,t,"ECONNABORTED",f)),f=null},i.isStandardBrowserEnv()){var _=n(610),v=(t.withCredentials||l(g))&&t.xsrfCookieName?_.read(t.xsrfCookieName):void 0;v&&(h[t.xsrfHeaderName]=v)}if("setRequestHeader"in f&&i.forEach(h,(function(t,e){"undefined"===typeof d&&"content-type"===e.toLowerCase()?delete h[e]:f.setRequestHeader(e,t)})),i.isUndefined(t.withCredentials)||(f.withCredentials=!!t.withCredentials),t.responseType)try{f.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&f.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){f&&(f.abort(),c(t),f=null)})),void 0===d&&(d=null),f.send(d)}))}},function(t,e,n){"use strict";var i=n(604);t.exports=function(t,e,n,o,r){var a=new Error(t);return i(a,e,n,o,r)}},function(t,e,n){"use strict";var i=n(72);t.exports=function(t,e){e=e||{};var n={},o=["url","method","params","data"],r=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];i.forEach(o,(function(t){"undefined"!==typeof e[t]&&(n[t]=e[t])})),i.forEach(r,(function(o){i.isObject(e[o])?n[o]=i.deepMerge(t[o],e[o]):"undefined"!==typeof e[o]?n[o]=e[o]:i.isObject(t[o])?n[o]=i.deepMerge(t[o]):"undefined"!==typeof t[o]&&(n[o]=t[o])})),i.forEach(a,(function(i){"undefined"!==typeof e[i]?n[i]=e[i]:"undefined"!==typeof t[i]&&(n[i]=t[i])}));var s=o.concat(r).concat(a),l=Object.keys(e).filter((function(t){return-1===s.indexOf(t)}));return i.forEach(l,(function(i){"undefined"!==typeof e[i]?n[i]=e[i]:"undefined"!==typeof t[i]&&(n[i]=t[i])})),n}},function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.render=function(){return null},e}(n(1).PureComponent);e.Template=r;var a=function(t){return t.component||t.render||t.children?null:new Error("The Template component requires 'component' or 'render' property")};r.propTypes={name:o.string.isRequired,component:a,render:a,children:a},e.findProps=function(t){if(t.type===r)return{name:t.props.name,render:t.props.render,component:t.props.component,children:t.props.children,keyFn:t.props.keyFn}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=C(n(3)),r=C(n(6)),a=C(n(47)),s=C(n(25)),l=C(n(18)),u=C(n(15)),c=n(0),d=n(4),h=n(17),f=C(n(5)),p=n(2),m=C(n(8)),g=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=x();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),_=C(n(215)),v=n(7),y=n(73),b=n(70),w=C(n(36));function x(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return x=function(){return t},t}function C(t){return t&&t.__esModule?t:{default:t}}var S=_.default.inherit({_activeStateUnit:".dx-accordion-item",_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{hoverStateEnabled:!0,height:void 0,itemTitleTemplate:"title",onItemTitleClick:null,selectedIndex:0,collapsible:!1,multiple:!1,animationDuration:300,deferRendering:!0,selectionByClick:!0,activeStateEnabled:!0,_itemAttributes:{role:"tab"},_animationEasing:"ease"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===l.default.real().deviceType&&!l.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return w.default.isMaterial()},options:{animationDuration:200,_animationEasing:"cubic-bezier(0.4, 0, 0.2, 1)"}}])},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_init:function(){this.callBase(),this.option("selectionRequired",!this.option("collapsible")),this.option("selectionMode",this.option("multiple")?"multiple":"single");var t=this.$element();t.addClass("dx-accordion"),this._$container=(0,o.default)("<div>").addClass("dx-accordion-wrapper"),t.append(this._$container)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({title:new y.BindableTemplate((function(t,e){if((0,p.isPlainObject)(e)){var n=(0,b.getImageContainer)(e.icon);n&&t.append(n),(0,p.isDefined)(e.title)&&!(0,p.isPlainObject)(e.title)&&t.append(u.default.createTextNode(e.title))}else(0,p.isDefined)(e)&&t.text(String(e));t.wrapInner((0,o.default)("<div>").addClass("dx-accordion-item-title-caption"))}),["title","icon"],this.option("integrationOptions.watchMethod"))})},_initMarkup:function(){var t=this;this._deferredItems=[],this.callBase(),this.setAria({role:"tablist",multiselectable:this.option("multiple")}),(0,d.deferRender)((function(){var e=t._getSelectedItemIndices();t._renderSelection(e,[])}))},_render:function(){this.callBase(),this._updateItemHeightsWrapper(!0)},_itemDataKey:function(){return"dxAccordionItemData"},_itemClass:function(){return"dx-accordion-item"},_itemContainer:function(){return this._$container},_itemTitles:function(){return this._itemElements().find(".dx-accordion-item-title")},_itemContents:function(){return this._itemElements().find(".dx-accordion-item-body")},_getItemData:function(t){return(0,o.default)(t).parent().data(this._itemDataKey())||this.callBase.apply(this,arguments)},_executeItemRenderAction:function(t){t.type||this.callBase.apply(this,arguments)},_itemSelectHandler:function(t){(0,o.default)(t.target).closest(this._itemContents()).length||this.callBase.apply(this,arguments)},_afterItemElementDeleted:function(t,e){this._deferredItems.splice(e.itemIndex,1),this.callBase.apply(this,arguments)},_renderItemContent:function(t){var e=this.callBase((0,c.extend)({},t,{contentClass:"dx-accordion-item-title",templateProperty:"titleTemplate",defaultTemplateName:this.option("itemTitleTemplate")}));this._attachItemTitleClickAction(e);var n=new v.Deferred;(0,p.isDefined)(this._deferredItems[t.index])?this._deferredItems[t.index]=n:this._deferredItems.push(n),(!this.option("deferRendering")||this._getSelectedItemIndices().indexOf(t.index)>=0)&&n.resolve(),n.done(this.callBase.bind(this,(0,c.extend)({},t,{contentClass:"dx-accordion-item-body",container:(0,h.getPublicElement)((0,o.default)("<div>").appendTo((0,o.default)(e).parent()))})))},_attachItemTitleClickAction:function(t){var e=g.addNamespace(s.default.name,this.NAME);r.default.off(t,e),r.default.on(t,e,this._itemTitleClickHandler.bind(this))},_itemTitleClickHandler:function(t){this._itemDXEventHandler(t,"onItemTitleClick")},_renderSelection:function(t,e){this._itemElements().addClass("dx-accordion-item-closed"),this.setAria("hidden",!0,this._itemContents()),this._updateItems(t,e)},_updateSelection:function(t,e){this._updateItems(t,e),this._updateItemHeightsWrapper(!1)},_updateItems:function(t,e){var n=this,i=this._itemElements();f.default.each(t,(function(t,e){n._deferredItems[e].resolve();var o=i.eq(e).addClass("dx-accordion-item-opened").removeClass("dx-accordion-item-closed");n.setAria("hidden",!1,o.find(".dx-accordion-item-body"))})),f.default.each(e,(function(t,e){var o=i.eq(e).removeClass("dx-accordion-item-opened");n.setAria("hidden",!0,o.find(".dx-accordion-item-body"))}))},_updateItemHeightsWrapper:function(t){this.option("templatesRenderAsynchronously")?this._animationTimer=setTimeout(function(){this._updateItemHeights(t)}.bind(this)):this._updateItemHeights(t)},_updateItemHeights:function(t){var e=this,n=e._deferredAnimate,i=this._splitFreeSpace(this._calculateFreeSpace());return clearTimeout(this._animationTimer),v.when.apply(o.default,[].slice.call(this._itemElements()).map((function(n){return e._updateItemHeight((0,o.default)(n),i,t)}))).done((function(){n&&n.resolveWith(e)}))},_updateItemHeight:function(t,e,n){var i=t.children(".dx-accordion-item-title");a.default.isAnimating(t)&&a.default.stop(t);var o=t.outerHeight(),r=t.hasClass("dx-accordion-item-opened")?e+i.outerHeight()||t.height("auto").outerHeight():i.outerHeight();return this._animateItem(t,o,r,n,!!e)},_animateItem:function(t,e,n,i,o){var r;return i||e===n?(t.css("height",n),r=(new v.Deferred).resolve()):r=a.default.animate(t,{type:"custom",from:{height:e},to:{height:n},duration:this.option("animationDuration"),easing:this.option("_animationEasing")}),r.done((function(){t.hasClass("dx-accordion-item-opened")&&!o&&t.css("height",""),t.not(".dx-accordion-item-opened").addClass("dx-accordion-item-closed")}))},_splitFreeSpace:function(t){return t?t/this.option("selectedItems").length:t},_calculateFreeSpace:function(){var t=this.option("height");if(void 0!==t&&"auto"!==t){var e=this._itemTitles(),n=0;return f.default.each(e,(function(t,e){n+=(0,o.default)(e).outerHeight()})),this.$element().height()-n}},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._updateItemHeights(!0)},_clean:function(){clearTimeout(this._animationTimer),this.callBase()},_itemOptionChanged:function(t,e,n,i){this.callBase(t,e,n,i),"visible"===e&&this._updateItemHeightsWrapper(!0)},_tryParseItemPropertyName:function(t){var e=t.match(/.*\.(.*)/);if((0,p.isDefined)(e)&&e.length>=1)return e[1]},_optionChanged:function(t){switch(t.name){case"items":this.callBase(t),"title"===this._tryParseItemPropertyName(t.fullName)&&this._renderSelection(this._getSelectedItemIndices(),[]);break;case"animationDuration":case"onItemTitleClick":case"_animationEasing":break;case"collapsible":this.option("selectionRequired",!this.option("collapsible"));break;case"itemTitleTemplate":case"height":case"deferRendering":this._invalidate();break;case"multiple":this.option("selectionMode",t.value?"multiple":"single");break;default:this.callBase(t)}},expandItem:function(t){return this._deferredAnimate=new v.Deferred,this.selectItem(t),this._deferredAnimate.promise()},collapseItem:function(t){return this._deferredAnimate=new v.Deferred,this.unselectItem(t),this._deferredAnimate.promise()},updateDimensions:function(){return this._updateItemHeights(!1)}});(0,m.default)("dxAccordion",S),t.exports=S,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(255),r=(i=o)&&i.__esModule?i:{default:i};e.default=new r.default},function(t,e,n){"use strict";var i=n(16).merge,o=n(15),r=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,a={default:{tagsCount:0,startTags:"",endTags:""},thead:{tagsCount:1,startTags:"<table>",endTags:"</table>"},td:{tagsCount:3,startTags:"<table><tbody><tr>",endTags:"</tr></tbody></table>"},col:{tagsCount:2,startTags:"<table><colgroup>",endTags:"</colgroup></table>"},tr:{tagsCount:2,startTags:"<table><tbody>",endTags:"</tbody></table>"}};a.tbody=a.colgroup=a.caption=a.tfoot=a.thead,a.th=a.td;e.parseHTML=function(t){if("string"!==typeof t)return null;var e=o.createDocumentFragment().appendChild(o.createElement("div")),n=r.exec(t),s=n&&n[1].toLowerCase(),l=a[s]||a.default;e.innerHTML=l.startTags+t+l.endTags;for(var u=0;u<l.tagsCount;u++)e=e.lastChild;return i([],e.childNodes)},e.isTablePart=function(t){var e=r.exec(t);return e&&e[1]in a}},function(t,e,n){"use strict";var i=n(10).getWindow();e.sessionStorage=function(){var t;try{t=i.sessionStorage}catch(e){}return t}},function(t,e,n){"use strict";var i=n(18),o=n(0).extend,r=n(5).each,a=n(214),s=function(t){var e=[];return r(t.touches,(function(t,n){e.push(o({pointerId:n.identifier},n))})),{pointers:e,pointerId:t.changedTouches[0].identifier}},l=function(t){return"ios"===i.real().platform&&("dxpointerdown"===t||"dxpointerup"===t)},u=a.inherit({ctor:function(){this.callBase.apply(this,arguments),this._pointerId=0},_handler:function(t){if(l(this._eventName)){var e=t.changedTouches[0];if(this._pointerId===e.identifier&&0!==this._pointerId)return;this._pointerId=e.identifier}return this.callBase.apply(this,arguments)},_fireEvent:function(t){return this.callBase(o(s(t.originalEvent),t))}});u.map={dxpointerdown:"touchstart",dxpointermove:"touchmove",dxpointerup:"touchend",dxpointercancel:"touchcancel",dxpointerover:"",dxpointerout:"",dxpointerenter:"",dxpointerleave:""},u.normalize=s,t.exports=u},function(t,e,n){"use strict";var i=n(5).each,o=n(77),r=n(15),a=function(t,e){o.add((function(){t.split(" ").forEach((function(t){r.listen(r.getDocument(),t,e,!0)}))}))};t.exports=function(t,e,n){n=n||function(){};var o=[],r=function(t){var n=-1;return i(o,(function(i,o){return!e(t,o)||(n=i,!1)})),n},s=function(t){var e=r(t);e>-1&&o.splice(e,1)};a(t.dxpointerdown,(function(t){-1===r(t)&&(n(t),o.push(t))})),a(t.dxpointermove,(function(t){o[r(t)]=t})),a(t.dxpointerup,s),a(t.dxpointercancel,s),this.pointers=function(){return o},this.reset=function(){o=[]}}},function(t,e,n){"use strict";var i,o=n(0).extend,r=n(214),a=n(358),s={dxpointerdown:"mousedown",dxpointermove:"mousemove",dxpointerup:"mouseup",dxpointercancel:"",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},l=function(t){return t.pointerId=1,{pointers:i.pointers(),pointerId:1}},u=!1,c=function(){u||(i=new a(s,(function(){return!0})),u=!0)},d=r.inherit({ctor:function(){this.callBase.apply(this,arguments),c()},_fireEvent:function(t){return this.callBase(o(l(t.originalEvent),t))}});d.map=s,d.normalize=l,d.activate=c,d.resetObserver=function(){i.reset()},t.exports=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.registerTemplateEngine=function(t,e){l[t]=e},e.setTemplateEngine=function(t){if((0,o.isString)(t)){if(!(s=l[t]))throw a.default.Error("E0020",t)}else s=t},e.getCurrentTemplateEngine=function(){return s};var i,o=n(2),r=n(38),a=(i=r)&&i.__esModule?i:{default:i};var s,l={}},function(t,e,n){"use strict";var i=n(61),o=n(4),r=n(2),a=o.getKeyHash,s=n(21),l=n(7).Deferred;t.exports=s.inherit({ctor:function(t){this.options=t,this._setOption("disabledItemKeys",[]),this._clearItemKeys()},_clearItemKeys:function(){this._setOption("addedItemKeys",[]),this._setOption("removedItemKeys",[]),this._setOption("removedItems",[]),this._setOption("addedItems",[])},validate:o.noop,_setOption:function(t,e){this.options[t]=e},onSelectionChanged:function(){var t=this.options.addedItemKeys,e=this.options.removedItemKeys,n=this.options.addedItems,i=this.options.removedItems,r=this.options.selectedItems,a=this.options.selectedItemKeys,s=this.options.onSelectionChanged||o.noop;this._clearItemKeys(),s({selectedItems:r,selectedItemKeys:a,addedItemKeys:t,removedItemKeys:e,addedItems:n,removedItems:i})},equalKeys:function(t,e){return this.options.equalByReference&&r.isObject(t)&&r.isObject(e)?t===e:o.equalByValue(t,e)},getSelectableItems:function(t){return t.filter((function(t){return!t.disabled}))},_clearSelection:function(t,e,n,i){return t=t||[],t=Array.isArray(t)?t:[t],this.validate(),this.selectedItemKeys(t,e,n,i)},_loadFilteredData:function(t,e,n,o){var a=encodeURI(JSON.stringify(t)).length,s=this.options.maxFilterLengthInRequest&&a>this.options.maxFilterLengthInRequest,u=new l,c={filter:s?void 0:t,select:s?this.options.dataFields():n||this.options.dataFields()};return t&&0===t.length?u.resolve([]):this.options.load(c).done((function(n){var a=r.isPlainObject(n)?n.data:n;e&&!o?a=a.filter(e):s&&(a=i(a).filter(t).toArray()),u.resolve(a)})).fail(u.reject.bind(u)),u},updateSelectedItemKeyHash:function(t){for(var e=0;e<t.length;e++){var n=a(t[e]);if(!r.isObject(n))this.options.keyHashIndices[n]=this.options.keyHashIndices[n]||[],this.options.keyHashIndices[n].push(e)}},_isAnyItemSelected:function(t){for(var e=0;e<t.length;e++)if(this.options.isItemSelected(t[e]))return;return!1},_getFullSelectAllState:function(){var t=this.options.plainItems(),e=this.options.filter(),n=this.options.selectedItems;e&&(n=i(n).filter(e).toArray());var o=n.length;return o?o>=this.options.totalCount()-this.options.disabledItemKeys.length||void 0:this._isAnyItemSelected(t)},_getVisibleSelectAllState:function(){for(var t=this.getSelectableItems(this.options.plainItems()),e=!1,n=!1,i=0;i<t.length;i++){var o=t[i],r=this.options.getItemData(o),a=this.options.keyOf(r);this.options.isSelectableItem(o)&&(this.isItemKeySelected(a)?e=!0:n=!0)}return!!e&&(!n||void 0)}})},function(t,e,n){"use strict";var i=n(4).getKeyHash,o=n(4).equalByValue,r=n(2);e.SelectionFilterCreator=function(t,e){var n;this.getLocalFilter=function(t,e,n,i){return e=void 0===e?o:e,a.bind(this,e,t,n,i)},this.getExpr=function(n){var i;if(n)return t.forEach((function(t,o){var a;i=i||[],o>0&&i.push(e?"and":"or"),a=r.isString(n)?s(n,t):function(t,n){for(var i=[],o=0,r=t.length;o<r;o++){var a=t[o],l=n&&n[a],u=s(a,l);if(!u)break;o>0&&i.push(e?"or":"and"),i.push(u)}return i}(n,t),i.push(a)})),i&&1===i.length&&(i=i[0]),i},this.getCombinedFilter=function(t,n){var i=this.getExpr(t),o=i;return e&&n&&(i?((o=[]).push(i),o.push(n)):o=n),o};function a(o,a,s,l,u){var c,d,h=a(u);if(!s&&(c=i(h),!r.isObject(c)))return function(t){if(!n){n={};for(var e=0;e<t.length;e++)n[i(t[e])]=!0}return n}(function(t,e,n){return Array.isArray(n)?t.map((function(t){return e(t)})):t}(t,a,l))[c]?!e:!!e;for(d=0;d<t.length;d++)if(o(t[d],h))return!e;return!!e}function s(t,n){if(void 0!==n)return[t,e?"<>":"=",n]}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.findChanges=void 0;var i=n(2),o=function(t,e){var n=e(t);if((0,i.isObject)(n))try{return JSON.stringify(n)}catch(o){return n}return n},r=function(t,e,n,i){return e[n[o(t,i)]]};e.findChanges=function(t,e,n,i){var a={},s={},l=0,u=0,c=[];t.forEach((function(t,e){var i=o(t,n);a[i]=e})),e.forEach((function(t,e){var i=o(t,n);s[i]=e}));for(var d=Math.max(t.length,e.length),h=0;h<d+l;h++){var f=e[h],p=h-l+u,m=t[p];if(!f||m&&!r(m,e,s,n))m&&(c.push({type:"remove",key:n(m),index:h,oldItem:m}),u++,h--);else{var g=o(f,n),_=a[g],v=t[_];if(v){if(_!==p)return;i(v,f)||c.push({type:"update",data:f,key:n(f),index:h,oldItem:v})}else l++,c.push({type:"insert",data:f,index:h})}}return c}},function(t,e,n){"use strict";var i=n(6);e.on=i.on,e.one=i.one,e.off=i.off,e.trigger=i.trigger,e.triggerHandler=i.triggerHandler,e.Event=i.Event},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(219);function r(t,e){var n={};return{templates:n,options:a(t,n,e)}}function a(t,e,n){for(var i={},o=0,r=Object.keys(t.predefinedOptions);o<r.length;o++){i[g=r[o]]=t.predefinedOptions[g]}for(var l=0,u=Object.keys(t.configs);l<u.length;l++){i[g=u[l]]=a(t.configs[g],e,n)}for(var c=0,d=Object.keys(t.configCollections);c<d.length;c++){i[g=d[c]]=t.configCollections[g].map((function(t){return a(t,e,n)}))}if(!n)for(var h=0,f=Object.keys(t.initialOptions);h<f.length;h++){i[g=f[h]]=t.initialOptions[g]}for(var p=0,m=Object.keys(t.options);p<m.length;p++){var g;i[g=m[p]]=t.options[g]}return s(t,i,e),i}function s(t,e,n){t.templates.map((function(i){if(i.isAnonymous){var r=o.mergeNameParts(t.fullName,i.optionName);e[i.optionName]=r,n[r]=i}else n[i.optionName]=i}))}e.buildConfig=r,e.buildNode=a,e.buildTemplates=s,function(t){t[t.Simple=0]="Simple",t[t.Complex=1]="Complex",t[t.Array=2]="Array"}(i||(i={})),e.ValueType=i,e.findValue=function t(e,n){var s=n.shift();if(!s)return{value:r(e,!0).options,type:i.Complex};var l=o.parseOptionName(s);if(l.isCollectionItem){var u=e.configCollections[l.name];if(!u)return;var c=u[l.index];if(!c)return;return t(c,n)}var d=e.configs[l.name];if(d)return t(d,n);var h=e.configCollections[l.name];if(h){if(0!==n.length)return;return{value:h.map((function(t){return a(t,{},!0)})),type:i.Array}}return l.name in e.options?function t(e,n){if(null===e||void 0===e)return;var o=n.shift();if(!o)return{value:e,type:i.Simple};return t(e[o],n)}(e.options[l.name],n):void 0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=["style","id"];e.elementPropNames=i;e.separateProps=function(t,e,n){var o={},r={},a={},s={};return(n=n||[]).forEach((function(t){s[t.component]=!0,s[t.render]=!0})),Object.keys(t).forEach((function(n){var l,u=e?e[n]:null;"children"===(l=n)||"className"===l||i.indexOf(l)>-1||(u?o[u]=t[n]:s[n]?a[n]=t[n]:r[n]=t[n])})),{options:r,defaults:o,templates:a}},e.getClassName=function(t){return t.className}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(352);!function(t){t[t.Option=0]="Option",t[t.Template=1]="Template",t[t.Unknown=2]="Unknown"}(i||(i={})),e.ElementType=i,e.getElementInfo=function(t,e){var n=t;if(!n||!n.type)return{type:i.Unknown};if(n.type===o.Template)return{type:i.Template,props:n.props};var r=n.type;if(r.OptionName){var a=r.OptionName,s=r.IsCollectionItem,l=e&&e[a];return l&&(s=l.isCollectionItem,l.optionName&&(a=l.optionName)),{type:i.Option,descriptor:{name:a,isCollection:s,templates:r.TemplateProps||[],initialValuesProps:r.DefaultsProps||{},predefinedValuesProps:r.PredefinedProps||{},expectedChildren:r.ExpectedChildren||{}},props:n.props}}return{type:i.Unknown}}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.componentDidMount=function(){var t=this.props.onMounted;t?t(this._createWidget):this._createWidget()},e}(n(259).ComponentBase);e.ExtensionComponent=o},function(t,e,n){"use strict";var i=n(37).fitIntoRange,o=n(370).toFixed,r={thousandsSeparator:",",decimalSeparator:"."};function a(t){return t.toString().split("").reverse().join("")}function s(t){return t.replace(/'.+'/g,"")}function l(t){if(!t)return 0;var e=s(t);return e.length-e.replace(/[#]/g,"").length}function u(t){if(!t)return 0;var e=s(t);return e.length-e.replace(/[0]/g,"").length}function c(t,e,n){if(!t)return"";for(t.length>n&&(t=t.substr(0,n));t.length>e&&"0"===t.slice(-1);)t=t.substr(0,t.length-1);for(;t.length<e;)t+="0";return t}function d(t,e){return t.split("'").map((function(t,n){var i=n%2;return!t&&i?"'":i?t:t.replace(/[,#0]+/,e)})).join("")}function h(t,e,n){var i=(e?.01:1)*parseFloat(t)||0;return n?-i:i}function f(t,e,n,i){var o,r,a,s=t;do{a&&(o=r.length===a.length?"0":"1",t=i?o+t:t+o),r=a||e(h(s,n)),a=e(h(s=i?"1"+s:s+"1",n))}while(r!==a&&(i?r.length===a.length:r.length<=a.length));if(i&&a.length>r.length){var l=-1===e(12345).indexOf("12345");do{t="1"+t}while(l&&h(t,n)<1e5)}return t}function p(t,e,n,i){var o=e(h(t,n,i)),r=t.split("."),a=e(h(r[0]+".3"+r[1].slice(1),n,i)).indexOf("3")-1;return o=o.replace(/(\d)\D(\d)/g,"$1,$2"),a>=0&&(o=o.slice(0,a)+"."+o.slice(a+1)),o=o.replace(/1+/,"1").replace(/1/g,"#"),n||(o=o.replace("%","'%'")),o}e.getFormatter=function(t,e){return e=e||r,function(n){if("number"!==typeof n||isNaN(n))return"";var r=n>0||1/n===1/0,s=function(t){var e=t.split(";");return 1===e.length&&e.push("-"+e[0]),e}(t)[r?0:1];(function(t){return-1!==t.indexOf("%")&&!t.match(/'[^']*%[^']*'/g)})(s)&&(n*=100),r||(n=-n);var h,f=function(t){for(var e=!1,n=0;n<t.length;n++)if("'"===t[n]&&(e=!e),"."===t[n]&&!e)return n;return t.length}(s),p=[s.substr(0,f),s.substr(f+1)],m=u(p[1]),g=m+l(p[1]),_=u(p[0]),v=l(p[0])||e.unlimitedIntegerDigits?void 0:_,y=Math.floor(n).toString().length,b=i(g,0,15-y),w=(h=p[0],h.split(",").slice(1).map((function(t){return t.split("").filter((function(t){return"#"===t||"0"===t})).length}))).reverse(),x=o(n,b<0?0:b).split("."),C=c(a(x[0]),_,v),S=c(x[1],m,g);C=function(t,e,n){if(!e.length)return t;for(var i=[],o=0;t;){var r=e[o];if(!r)break;i.push(t.slice(0,r)),t=t.slice(r),o<e.length-1&&o++}return i.join(n)}(C,w,e.thousandsSeparator);var k=a(d(a(p[0]),C)),I=g?d(p[1],S):"";return k+(I.match(/\d/)?e.decimalSeparator:"")+I}},e.getFormat=function(t){var e=".",n=t(1).indexOf("100")>=0;e=f(e,t,n,!0);var i=p(e=f(e,t,n,!1),t,n,!1),o=p(e,t,n,!0);return o==="-"+i?i:i+";"+o}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.toFixed=void 0;var i=n(37);function o(t,e){var n=Math.pow(10,e);return function(t){return(0,i.sign)(t)*Math.round(Math.abs(t))}(t*(10*n)/10)/n}e.toFixed=function(t,e){var n=e||0,i=n>0?o.apply(void 0,arguments):t;return i.toFixed(n)}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=n(3),r=n(15),a=n(10),s=n(77).add,l=a.getWindow(),u=a.getNavigator(),c=n(6),d=n(47),h=n(33),f=n(187).compare,p=n(106),m=n(0).extend,g=n(16).inArray,_=n(17).getPublicElement,v=p.changeCallback,y=n(372).hideCallback,b=n(90),w=n(37).fitIntoRange,x=n(17),C=n(4).noop,S=n(2),k=n(5).each,I=n(18),T=n(31),E=n(8),O=n(20),M=n(158).keyboard,P=n(91),D=n(101),A=n(11),R=n(28),B=n(220),N=n(98).EmptyTemplate,L=n(7).Deferred,F=n(373),V=n(194),z=["onShowing","onShown","onHiding","onHidden","onPositioning","onPositioned","onResizeStart","onResize","onResizeEnd"],j=[],H={top:{my:"top center",at:"top center"},bottom:{my:"bottom center",at:"bottom center"},right:{my:"right center",at:"right center"},left:{my:"left center",at:"left center"},center:{my:"center",at:"center"},"right bottom":{my:"right bottom",at:"right bottom"},"right top":{my:"right top",at:"right top"},"left bottom":{my:"left bottom",at:"left bottom"},"left top":{my:"left top",at:"left top"}},W=I.real(),U=W.version,G=T.mozilla&&"desktop"===W.deviceType,K="ios"===W.platform,q=T.safari&&"desktop"!==W.deviceType,$="android"===W.platform&&0===f(U,[4,0],2)&&-1===u.userAgent.indexOf("Chrome"),Y=function(t){return t&&o(t.target||t)};s((function(){c.subscribeGlobal(r.getDocument(),R.down,(function(t){for(var e=j.length-1;e>=0;e--)if(!j[e]._proxiedDocumentDownHandler(t))return}))}));var Z=O.inherit({_supportedKeys:function(){var t=function(t,e,n){if(this.option("dragEnabled")){n.preventDefault(),n.stopPropagation();var i=this._allowedOffsets(),o={top:w(t,-i.top,i.bottom),left:w(e,-i.left,i.right)};this._changePosition(o)}};return m(this.callBase(),{escape:function(){this.hide()},upArrow:t.bind(this,-5,0),downArrow:t.bind(this,5,0),leftArrow:t.bind(this,0,-5),rightArrow:t.bind(this,0,5)})},_getDefaultOptions:function(){return m(this.callBase(),{activeStateEnabled:!1,visible:!1,deferRendering:!0,shading:!0,shadingColor:"",position:{my:"center",at:"center"},width:function(){return.8*o(l).width()},minWidth:null,maxWidth:null,height:function(){return.8*o(l).height()},minHeight:null,maxHeight:null,animation:{show:{type:"pop",duration:300,from:{scale:.55}},hide:{type:"pop",duration:300,to:{opacity:0,scale:.55},from:{opacity:1,scale:1}}},closeOnOutsideClick:!1,onShowing:null,onShown:null,onHiding:null,onHidden:null,contentTemplate:"content",dragEnabled:!1,resizeEnabled:!1,onResizeStart:null,onResize:null,onResizeEnd:null,innerOverlay:!1,target:void 0,container:void 0,hideTopOverlayHandler:function(){this.hide()}.bind(this),closeOnTargetScroll:!1,onPositioned:null,boundaryOffset:{h:0,v:0},propagateOutsideClick:!1,ignoreChildEvents:!0,_checkParentVisibility:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){var t=I.real(),e=t.platform,n=t.version;return"android"===e&&f(n,[4,2])<0},options:{animation:{show:{type:"fade",duration:400},hide:{type:"fade",duration:400,to:{opacity:0},from:{opacity:1}}}}},{device:function(){return!a.hasWindow()},options:{width:null,height:null,animation:null,_checkParentVisibility:!1}}])},_setOptionsByReference:function(){this.callBase(),m(this._optionsByReference,{animation:!0})},_wrapper:function(){return this._$wrapper},_container:function(){return this._$content},_eventBindingTarget:function(){return this._$content},_init:function(){this.callBase(),this._initActions(),this._initCloseOnOutsideClickHandler(),this._initTabTerminatorHandler(),this._$wrapper=o("<div>").addClass("dx-overlay-wrapper"),this._$content=o("<div>").addClass("dx-overlay-content"),this._initInnerOverlayClass();var t=this.$element();this._$wrapper.addClass(t.attr("class")),t.addClass("dx-overlay"),this._$wrapper.attr("data-bind","dxControlsDescendantBindings: true"),c.on(this._$wrapper,"MSPointerDown",C),c.on(this._$wrapper,"focusin",(function(t){t.stopPropagation()})),this._toggleViewPortSubscription(!0),this._initHideTopOverlayHandler(this.option("hideTopOverlayHandler"))},_initOptions:function(t){this._initTarget(t.target);var e=void 0===t.container?this.option("container"):t.container;this._initContainer(e),this.callBase(t)},_initInnerOverlayClass:function(){this._$content.toggleClass("dx-inner-overlay",this.option("innerOverlay"))},_initTarget:function(t){if(S.isDefined(t)){var e=this.option();k(["position.of","animation.show.from.position.of","animation.show.to.position.of","animation.hide.from.position.of","animation.hide.to.position.of"],(function(n,i){for(var o=i.split("."),r=e;r;){if(1===o.length){S.isPlainObject(r)&&(r[o.shift()]=t);break}r=r[o.shift()]}}))}},_initContainer:function(t){t=void 0===t?p.value():t;var e=this.$element(),n=e.closest(t);n.length||(n=o(t).first()),this._$container=n.length?n:e.parent()},_initHideTopOverlayHandler:function(t){this._hideTopOverlayHandler=t},_initActions:function(){this._actions={},k(z,function(t,e){this._actions[e]=this._createActionByOption(e,{excludeValidators:["disabled","readOnly"]})||C}.bind(this))},_initCloseOnOutsideClickHandler:function(){var t=this;this._proxiedDocumentDownHandler=function(){return t._documentDownHandler.apply(t,arguments)}},_documentDownHandler:function(t){this._showAnimationProcessing&&this._stopAnimation();var e=this.option("closeOnOutsideClick");S.isFunction(e)&&(e=e(t));var n=this._$content,i=o(l.document).is(t.target)||x.contains(l.document,t.target),r=o(t.target).closest(".dx-inner-overlay").length;return i&&!r&&!(n.is(t.target)||x.contains(n.get(0),t.target))&&e&&this._outsideClickHandler(t),this.option("propagateOutsideClick")},_outsideClickHandler:function(t){this.option("shading")&&t.preventDefault(),this.hide()},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({content:new N}),this.callBase()},_isTopOverlay:function(){for(var t=this._overlayStack(),e=t.length-1;e>=0;e--){var n=t[e]._findTabbableBounds();if(n.first||n.last)return t[e]===this}return!1},_overlayStack:function(){return j},_zIndexInitValue:function(){return Z.baseZIndex()},_toggleViewPortSubscription:function(t){v.remove(this._viewPortChangeHandle),t&&(this._viewPortChangeHandle=this._viewPortChangeHandler.bind(this),v.add(this._viewPortChangeHandle))},_viewPortChangeHandler:function(){this._initContainer(this.option("container")),this._refresh()},_renderVisibilityAnimate:function(t){return this._stopAnimation(),t?this._show():this._hide()},_normalizePosition:function(){var t=this.option("position");this._position="function"===typeof t?t():t},_getAnimationConfig:function(){var t=this.option("animation");return S.isFunction(t)&&(t=t.call(this)),t},_show:function(){var t=this,e=new L;if(this._parentHidden=this._isParentHidden(),e.done((function(){delete t._parentHidden})),this._parentHidden)return this._isHidden=!0,e.resolve();if(this._currentVisible)return(new L).resolve().promise();this._currentVisible=!0,this._isShown=!1,this._normalizePosition();var n=t._getAnimationConfig()||{},i=this._normalizeAnimation(n.show,"to"),o=i&&i.start||C,r=i&&i.complete||C;if(this._isHidingActionCanceled)delete this._isHidingActionCanceled,e.resolve();else{var a=function(){if(this._renderVisibility(!0),this._isShowingActionCanceled)return delete this._isShowingActionCanceled,void e.resolve();this._animate(i,(function(){t.option("focusStateEnabled")&&c.trigger(t._focusTarget(),"focus"),r.apply(this,arguments),t._showAnimationProcessing=!1,t._isShown=!0,t._actions.onShown(),t._toggleSafariScrolling(!1),e.resolve()}),(function(){o.apply(this,arguments),t._showAnimationProcessing=!0}))}.bind(this);this.option("templatesRenderAsynchronously")?(this._stopShowTimer(),this._asyncShowTimeout=setTimeout(a)):a()}return e.promise()},_normalizeAnimation:function(t,e){return t&&(t=m({type:"slide"},t))[e]&&"object"===i(t[e])&&m(t[e],{position:this._position}),t},_hide:function(){if(!this._currentVisible)return(new L).resolve().promise();this._currentVisible=!1;var t=this,e=new L,n=t._getAnimationConfig()||{},i=this._normalizeAnimation(n.hide,"from"),o=i&&i.start||C,r=i&&i.complete||C,a={cancel:!1};return this._isShowingActionCanceled?e.resolve():(this._actions.onHiding(a),t._toggleSafariScrolling(!0),a.cancel?(this._isHidingActionCanceled=!0,this.option("visible",!0),e.resolve()):(this._forceFocusLost(),this._toggleShading(!1),this._toggleSubscriptions(!1),this._stopShowTimer(),this._animate(i,(function(){t._$content.css("pointerEvents",""),t._renderVisibility(!1),r.apply(this,arguments),t._actions.onHidden(),e.resolve()}),(function(){t._$content.css("pointerEvents","none"),o.apply(this,arguments)})))),e.promise()},_forceFocusLost:function(){var t=r.getActiveElement();!!this._$content.find(t).length&&x.resetActiveElement()},_animate:function(t,e,n){t?(n=n||t.start||C,d.animate(this._$content,m({},t,{start:n,complete:e}))):e()},_stopAnimation:function(){d.stop(this._$content,!0)},_renderVisibility:function(t){if(!t||!this._isParentHidden()){if(this._currentVisible=t,this._stopAnimation(),t||x.triggerHidingEvent(this._$content),this._toggleVisibility(t),this._$content.toggleClass("dx-state-invisible",!t),this._updateZIndexStackPosition(t),t){this._renderContent();var e={cancel:!1};if(this._actions.onShowing(e),e.cancel)return this._toggleVisibility(!1),this._$content.toggleClass("dx-state-invisible",!0),this._updateZIndexStackPosition(!1),this._moveFromContainer(),this._isShowingActionCanceled=!0,void this.option("visible",!1);this._moveToContainer(),this._renderGeometry(),x.triggerShownEvent(this._$content),x.triggerResizeEvent(this._$content)}else this._moveFromContainer();this._toggleShading(t),this._toggleSubscriptions(t)}},_updateZIndexStackPosition:function(t){var e=this._overlayStack(),n=g(this,e);t?(-1===n&&(this._zIndex=F.create(this._zIndexInitValue()),e.push(this)),this._$wrapper.css("zIndex",this._zIndex),this._$content.css("zIndex",this._zIndex)):-1!==n&&(e.splice(n,1),F.remove(this._zIndex))},_toggleShading:function(t){this._$wrapper.toggleClass("dx-overlay-modal",this.option("shading")&&!this.option("container")),this._$wrapper.toggleClass("dx-overlay-shader",t&&this.option("shading")),this._$wrapper.css("backgroundColor",this.option("shading")?this.option("shadingColor"):""),this._toggleTabTerminator(t&&this.option("shading"))},_initTabTerminatorHandler:function(){var t=this;this._proxiedTabTerminatorHandler=function(){t._tabKeyHandler.apply(t,arguments)}},_toggleTabTerminator:function(t){var e=A.addNamespace("keydown",this.NAME);t?c.on(r.getDocument(),e,this._proxiedTabTerminatorHandler):c.off(r.getDocument(),e,this._proxiedTabTerminatorHandler)},_findTabbableBounds:function(){for(var t=this._$wrapper.find("*"),e=t.length-1,n={first:null,last:null},i=0;i<=e&&(!n.first&&t.eq(i).is(P.tabbable)&&(n.first=t.eq(i)),!n.last&&t.eq(e-i).is(P.tabbable)&&(n.last=t.eq(e-i)),!n.first||!n.last);i++);return n},_tabKeyHandler:function(t){if("tab"===A.normalizeKeyName(t)&&this._isTopOverlay()){var e=this._findTabbableBounds(),n=e.first,i=e.last,o=!t.shiftKey&&t.target===i.get(0),r=t.shiftKey&&t.target===n.get(0),a=0===e.length,s=!x.contains(this._$wrapper.get(0),t.target);if(o||r||a||s){t.preventDefault();var l=t.shiftKey?i:n;c.trigger(l,"focusin"),c.trigger(l,"focus")}}},_toggleSubscriptions:function(t){a.hasWindow()&&(this._toggleHideTopOverlayCallback(t),this._toggleParentsScrollSubscription(t))},_toggleHideTopOverlayCallback:function(t){this._hideTopOverlayHandler&&(t?y.add(this._hideTopOverlayHandler):y.remove(this._hideTopOverlayHandler))},_toggleParentsScrollSubscription:function(t){if(this._position){var e=this._position.of||o(),n=this.option("closeOnTargetScroll"),i=Y(e).parents(),r=A.addNamespace("scroll",this.NAME);"desktop"===I.real().deviceType&&(i=i.add(l)),this._proxiedTargetParentsScrollHandler=this._proxiedTargetParentsScrollHandler||function(t){this._targetParentsScrollHandler(t)}.bind(this),c.off(o().add(this._$prevTargetParents),r,this._proxiedTargetParentsScrollHandler),t&&n&&(c.on(i,r,this._proxiedTargetParentsScrollHandler),this._$prevTargetParents=i)}},_targetParentsScrollHandler:function(t){var e=!1,n=this.option("closeOnTargetScroll");S.isFunction(n)&&(e=n(t)),e||this._showAnimationProcessing||this.hide()},_render:function(){this.callBase(),this._appendContentToElement(),this._renderVisibilityAnimate(this.option("visible"))},_appendContentToElement:function(){this._$content.parent().is(this.$element())||this._$content.appendTo(this.$element())},_renderContent:function(){var t=!this._currentVisible&&this.option("deferRendering");this.option("visible")&&this._isParentHidden()?this._isHidden=!0:this._contentAlreadyRendered||t||(this._contentAlreadyRendered=!0,this._appendContentToElement(),this.callBase())},_isParentHidden:function(){if(!this.option("_checkParentVisibility"))return!1;if(void 0!==this._parentHidden)return this._parentHidden;var t=this.$element().parent();if(t.is(":visible"))return!1;var e=!1;return t.add(t.parents()).each((function(){if("none"===o(this).css("display"))return e=!0,!1})),e||!r.getBody().contains(t.get(0))},_renderContentImpl:function(){var t=this,e=new L,n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._templateManager.anonymousTemplateName===n;return i&&i.render({container:_(this.$content()),noModel:!0,transclude:o,onRendered:function(){e.resolve()}}),this._renderDrag(),this._renderResize(),this._renderScrollTerminator(),e.done((function(){t.option("visible")&&t._moveToContainer()})),e.promise()},_renderDrag:function(){var t=this._getDragTarget();if(t){var e=A.addNamespace(D.start,this.NAME),n=A.addNamespace(D.move,this.NAME);c.off(t,e),c.off(t,n),this.option("dragEnabled")&&(c.on(t,e,this._dragStartHandler.bind(this)),c.on(t,n,this._dragUpdateHandler.bind(this)))}},_renderResize:function(){this._resizable=this._createComponent(this._$content,B,{handles:this.option("resizeEnabled")?"all":"none",onResizeEnd:this._resizeEndHandler.bind(this),onResize:this._actions.onResize.bind(this),onResizeStart:this._actions.onResizeStart.bind(this),minHeight:100,minWidth:100,area:this._getDragResizeContainer()})},_resizeEndHandler:function(){this._positionChangeHandled=!0;var t=this._resizable.option("width"),e=this._resizable.option("height");t&&this.option("width",t),e&&this.option("height",e),this._actions.onResizeEnd()},_renderScrollTerminator:function(){var t=this._wrapper(),e=A.addNamespace(D.move,this.NAME);c.off(t,e),c.on(t,e,{validate:function(){return!0},getDirection:function(){return"both"},_toggleGestureCover:function(t){t||this._toggleGestureCoverImpl(t)},_clearSelection:C,isNative:!0},(function(t){var e=t.originalEvent.originalEvent;t._cancelPreventDefault=!0,e&&"mousemove"!==e.type&&!1!==t.cancelable&&t.preventDefault()}))},_getDragTarget:function(){return this.$content()},_dragStartHandler:function(t){t.targetElements=[],this._prevOffset={x:0,y:0};var e=this._allowedOffsets();t.maxTopOffset=e.top,t.maxBottomOffset=e.bottom,t.maxLeftOffset=e.left,t.maxRightOffset=e.right},_getDragResizeContainer:function(){return p.originalViewPort().get(0)||this.option("container")?this._$container:o(l)},_deltaSize:function(){var t=this._$content,e=this._getDragResizeContainer(),n=t.outerWidth(),i=t.outerHeight(),a=e.outerWidth(),s=e.outerHeight();if(this._isWindow(e)){var l=r.getDocument();s=Math.max(o(l).outerHeight(),s),a=Math.max(o(l).outerWidth(),a)}return{width:a-n,height:s-i}},_dragUpdateHandler:function(t){var e=t.offset,n=this._prevOffset,i={top:e.y-n.y,left:e.x-n.x};this._changePosition(i),this._prevOffset=e},_changePosition:function(t){var e=h.locate(this._$content);h.move(this._$content,{left:e.left+t.left,top:e.top+t.top}),this._positionChangeHandled=!0},_allowedOffsets:function(){var t=h.locate(this._$content),e=this._deltaSize(),n=e.height>=0&&e.width>=0,i=!this.option("shading")||this.option("container")||this._isWindow(this._getContainer())?{top:0,left:0}:h.locate(this._$wrapper),o=this.option("boundaryOffset");return{top:n?t.top+i.top+o.v:0,bottom:n?-t.top-i.top+e.height-o.v:0,left:n?t.left+i.left+o.h:0,right:n?-t.left-i.left+e.width-o.h:0}},_moveFromContainer:function(){this._$content.appendTo(this.$element()),this._detachWrapperToContainer()},_detachWrapperToContainer:function(){this._$wrapper.detach()},_moveToContainer:function(){this._attachWrapperToContainer(),this._$content.appendTo(this._$wrapper)},_attachWrapperToContainer:function(){var t=this.$element(),e=void 0!==this.option("container")?this._$container:V.getSwatchContainer(t);e&&e[0]===t.parent()[0]&&(e=t),this._$wrapper.appendTo(e)},_fixHeightAfterSafariAddressBarResizing:function(){this._isWindow(this._getContainer())&&q&&this._$wrapper.css("minHeight",l.innerHeight)},_renderGeometry:function(t){this.option("visible")&&a.hasWindow()&&this._renderGeometryImpl(t)},_renderGeometryImpl:function(t){this._stopAnimation(),this._normalizePosition(),this._renderWrapper(),this._fixHeightAfterSafariAddressBarResizing(),this._renderDimensions();var e=this._renderPosition();this._actions.onPositioned({position:e})},_fixWrapperPosition:function(){this._$wrapper.css("position",this._useFixedPosition()?"fixed":"absolute")},_useFixedPosition:function(){var t=this._getContainer();return this._isWindow(t)&&(!K||void 0!==this._bodyScrollTop)},_toggleSafariScrolling:function(t){if(K&&this._useFixedPosition()){var e=r.getBody();t?(o(e).removeClass("dx-prevent-safari-scrolling"),l.scrollTo(0,this._bodyScrollTop),this._bodyScrollTop=void 0):this.option("visible")&&(this._bodyScrollTop=l.pageYOffset,o(e).addClass("dx-prevent-safari-scrolling"))}},_renderWrapper:function(){this._fixWrapperPosition(),this._renderWrapperDimensions(),this._renderWrapperPosition()},_renderWrapperDimensions:function(){var t,e,n=this._getContainer();if(n){var i=this._isWindow(n);t=i?null:n.outerWidth(),e=i?null:n.outerHeight(),this._$wrapper.css({width:t,height:e})}},_isWindow:function(t){return!!t&&S.isWindow(t.get(0))},_renderWrapperPosition:function(){var t=this._getContainer();t&&b.setup(this._$wrapper,{my:"top left",at:"top left",of:t})},_getContainer:function(){var t=this._position,e=this.option("container"),n=null;!e&&t&&(n=!(!t.of||!t.of.preventDefault)?l:t.of||l);return Y(e||n)},_renderDimensions:function(){var t=this._$content.get(0);this._$content.css({minWidth:this._getOptionValue("minWidth",t),maxWidth:this._getOptionValue("maxWidth",t),minHeight:this._getOptionValue("minHeight",t),maxHeight:this._getOptionValue("maxHeight",t),width:this._getOptionValue("width",t),height:this._getOptionValue("height",t)})},_renderPosition:function(){if(!this._positionChangeHandled){this._renderOverlayBoundaryOffset(),h.resetPosition(this._$content);var t=this._transformStringPosition(this._position,H),e=b.setup(this._$content,t);return function(t){if(G&&t.width(),$){var e=t.parents();e.is(".dx-scrollable-native")||(e.css("backfaceVisibility","hidden"),e.css("backfaceVisibility"),e.css("backfaceVisibility","visible"))}}(this._$content),this._actions.onPositioning(),e}var n=this._allowedOffsets();this._changePosition({top:w(0,-n.top,n.bottom),left:w(0,-n.left,n.right)})},_transformStringPosition:function(t,e){return S.isString(t)&&(t=m({},e[t])),t},_renderOverlayBoundaryOffset:function(){var t=this.option("boundaryOffset");this._$content.css("margin",t.v+"px "+t.h+"px")},_focusTarget:function(){return this._$content},_attachKeyboardEvents:function(){var t=this;this._keyboardListenerId=M.on(this._$content,null,(function(e){return t._keyboardHandler(e)}))},_keyboardHandler:function(t){var e=t.originalEvent,n=o(e.target);!n.is(this._$content)&&this.option("ignoreChildEvents")||this.callBase.apply(this,arguments)},_isVisible:function(){return this.option("visible")},_visibilityChanged:function(t){t?this.option("visible")&&this._renderVisibilityAnimate(t):this._renderVisibilityAnimate(t)},_dimensionChanged:function(){this._renderGeometry(!0)},_clean:function(){this._contentAlreadyRendered||this.$content().empty(),this._renderVisibility(!1),this._stopShowTimer(),this._cleanFocusState()},_stopShowTimer:function(){this._asyncShowTimeout&&clearTimeout(this._asyncShowTimeout),this._asyncShowTimeout=null},_dispose:function(){d.stop(this._$content,!1),clearTimeout(this._deferShowTimer),this._toggleViewPortSubscription(!1),this._toggleSubscriptions(!1),this._updateZIndexStackPosition(!1),this._toggleTabTerminator(!1),this._toggleSafariScrolling(!0),this._actions=null,this.callBase(),F.remove(this._zIndex),this._$wrapper.remove(),this._$content.remove()},_toggleDisabledState:function(t){this.callBase.apply(this,arguments),this._$content.toggleClass("dx-state-disabled",Boolean(t))},_toggleRTLDirection:function(t){this._$content.toggleClass("dx-rtl",t)},_optionChanged:function(t){var e=t.value;if(g(t.name,z)>-1)this._initActions();else switch(t.name){case"dragEnabled":this._renderDrag(),this._renderGeometry();break;case"resizeEnabled":this._renderResize(),this._renderGeometry();break;case"shading":case"shadingColor":this._toggleShading(this.option("visible"));break;case"width":case"height":case"minWidth":case"maxWidth":case"minHeight":case"maxHeight":case"boundaryOffset":this._renderGeometry();break;case"position":this._positionChangeHandled=!1,this._renderGeometry();break;case"visible":this._renderVisibilityAnimate(e).done(function(){this._animateDeferred&&this._animateDeferred.resolveWith(this)}.bind(this));break;case"target":this._initTarget(e),this._invalidate();break;case"container":this._initContainer(e),this._invalidate();break;case"innerOverlay":this._initInnerOverlayClass();break;case"deferRendering":case"contentTemplate":this._contentAlreadyRendered=!1,this._clean(),this._invalidate();break;case"hideTopOverlayHandler":this._toggleHideTopOverlayCallback(!1),this._initHideTopOverlayHandler(t.value),this._toggleHideTopOverlayCallback(this.option("visible"));break;case"closeOnTargetScroll":this._toggleParentsScrollSubscription(this.option("visible"));break;case"closeOnOutsideClick":case"animation":case"propagateOutsideClick":break;case"rtlEnabled":this._contentAlreadyRendered=!1,this.callBase(t);break;default:this.callBase(t)}},toggle:function(t){t=void 0===t?!this.option("visible"):t;var e=new L;if(t===this.option("visible"))return e.resolveWith(this,[t]).promise();var n=new L;return this._animateDeferred=n,this.option("visible",t),n.promise().done(function(){delete this._animateDeferred,e.resolveWith(this,[this.option("visible")])}.bind(this)),e.promise()},$content:function(){return this._$content},show:function(){return this.toggle(!0)},hide:function(){return this.toggle(!1)},content:function(){return _(this._$content)},repaint:function(){this._contentAlreadyRendered?(this._renderGeometry(),x.triggerResizeEvent(this._$content)):this.callBase()}});Z.baseZIndex=function(t){return F.base(t)},E("dxOverlay",Z),t.exports=Z},function(t,e,n){"use strict";var i=n(16).inArray,o=function(){var t=[];return{add:function(e){-1===i(e,t)&&t.push(e)},remove:function(e){var n=i(e,t);-1!==n&&t.splice(n,1)},fire:function(){var e=t.pop(),n=!!e;return n&&e(),n},hasCallback:function(){return t.length>0}}}();t.exports=function(){return o.fire()},t.exports.hideCallback=o,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.clearStack=e.remove=e.create=e.base=void 0;var i=n(4),o=1500,r=[];e.base=function(t){return o=(0,i.ensureDefined)(t,o)},e.create=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o,e=r.length,n=(e?r[e-1]:t)+1;return r.push(n),n},e.remove=function(t){var e=r.indexOf(t);e>=0&&r.splice(e,1)},e.clearStack=function(){r=[]}},function(t,e,n){"use strict";var i=_(n(3)),o=_(n(36)),r=_(n(4)),a=n(2),s=_(n(8)),l=n(16),u=n(0),c=n(5),d=n(24),h=_(n(661)),f=_(n(93)),p=n(73),m=_(n(38)),g=_(n(47));function _(t){return t&&t.__esModule?t:{default:t}}var v=h.default.inherit({compactMode:!1,ctor:function(t,e){this._userOptions=e||{},this.callBase(t,e),"height"in this._userOptions&&m.default.log("W0001",this.NAME,"height","20.1","Functionality associated with this option is not intended for the Toolbar widget.")},_getSynchronizableOptionsForCreateComponent:function(){return this.callBase().filter((function(t){return"disabled"!==t}))},_initTemplates:function(){this.callBase();var t=new p.BindableTemplate(function(t,e,n){(0,a.isPlainObject)(e)?(e.text&&t.text(e.text).wrapInner("<div>"),e.html&&t.html(e.html),"dxButton"===e.widget&&(this.option("useFlatButtons")&&(e.options=e.options||{},e.options.stylingMode=e.options.stylingMode||"text"),this.option("useDefaultButtons")&&(e.options=e.options||{},e.options.type=e.options.type||"default"))):t.text(String(e)),this._getTemplate("dx-polymorph-widget").render({container:t,model:n,parent:this})}.bind(this),["text","html","widget","options"],this.option("integrationOptions.watchMethod"));this._templateManager.addDefaultTemplates({item:t,menuItem:t})},_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{renderAs:"topToolbar",grouped:!1,useFlatButtons:!1,useDefaultButtons:!1,multiline:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return o.default.isMaterial()},options:{useFlatButtons:!0}}])},_itemContainer:function(){return this._$toolbarItemsContainer.find([".dx-toolbar-before",".dx-toolbar-center",".dx-toolbar-after"].join(","))},_itemClass:function(){return"dx-toolbar-item"},_itemDataKey:function(){return"dxToolbarItemDataKey"},_buttonClass:function(){return"dx-toolbar-button"},_dimensionChanged:function(){this._arrangeItems(),this._applyCompactMode()},_initMarkup:function(){this._renderToolbar(),this._renderSections(),this.callBase(),this.setAria("role","toolbar")},_waitParentAnimationFinished:function(){var t=this,e=this.$element();return new f.default((function(n){!function o(){clearTimeout(t._waitParentAnimationTimeout),t._waitParentAnimationTimeout=setTimeout((function(){return function(){var t=!0;return e.parents().each((function(e,n){if(g.default.isAnimating((0,i.default)(n)))return t=!1,!1})),t&&n(),t}()||o()}),15)}()}))},_render:function(){this.callBase(),this._renderItemsAsync(),o.default.isMaterial()&&f.default.all([this._waitParentAnimationFinished(),this._checkWebFontForLabelsLoaded()]).then(this._dimensionChanged.bind(this))},_postProcessRenderItems:function(){this._arrangeItems()},_renderToolbar:function(){this.$element().addClass("dx-toolbar").toggleClass("dx-toolbar-bottom","bottomToolbar"===this.option("renderAs")).toggleClass("dx-toolbar-multiline",this.option("multiline")),this._$toolbarItemsContainer=(0,i.default)("<div>").addClass("dx-toolbar-items-container").appendTo(this.$element())},_renderSections:function(){var t=this._$toolbarItemsContainer,e=this;(0,c.each)(["before","center","after"],(function(){var n="dx-toolbar-"+this,o=t.find("."+n);o.length||(e["_$"+this+"Section"]=o=(0,i.default)("<div>").addClass(n).appendTo(t))}))},_checkWebFontForLabelsLoaded:function(){var t=this.$element().find(".dx-toolbar-label"),e=[];return t.each((function(t,n){var r=(0,i.default)(n).text(),a=(0,i.default)(n).css("fontWeight");e.push(o.default.waitWebFont(r,a))})),f.default.all(e)},_arrangeItems:function(t){t=t||this.$element().width(),this._$centerSection.css({margin:"0 auto",float:"none"});var e=(0,d.getBoundingRect)(this._$beforeSection.get(0)),n=(0,d.getBoundingRect)(this._$afterSection.get(0));this._alignCenterSection(e,n,t);var o=this._$toolbarItemsContainer.find(".dx-toolbar-label").eq(0),r=o.parent();if(o.length){var a=e.width?e.width:o.position().left,s=r.hasClass("dx-toolbar-before")?0:a,l=r.hasClass("dx-toolbar-after")?0:n.width,u=0;r.children().not(".dx-toolbar-label").each((function(){u+=(0,i.default)(this).outerWidth()}));var c=t-u,h=Math.max(c-s-l,0);if(r.hasClass("dx-toolbar-before"))this._alignSection(this._$beforeSection,h);else{var f=o.outerWidth()-o.width();o.css("maxWidth",h-f)}}},_alignCenterSection:function(t,e,n){this._alignSection(this._$centerSection,n-t.width-e.width);var i=this.option("rtlEnabled"),o=i?e:t,r=i?t:e,a=(0,d.getBoundingRect)(this._$centerSection.get(0));(o.right>a.left||a.right>r.left)&&this._$centerSection.css({marginLeft:o.width,marginRight:r.width,float:o.width>r.width?"none":"right"})},_alignSection:function(t,e){var n=t.find(".dx-toolbar-label").toArray();e-=this._getCurrentLabelsPaddings(n);var i=this._getCurrentLabelsWidth(n),o=Math.abs(i-e);e<i?(n=n.reverse(),this._alignSectionLabels(n,o,!1)):this._alignSectionLabels(n,o,!0)},_alignSectionLabels:function(t,e,n){for(var o=function(t){return(0,d.getBoundingRect)(t).width},r=0;r<t.length;r++){var a=(0,i.default)(t[r]),s=Math.ceil(o(t[r])),l=void 0;n&&a.css("maxWidth","inherit");var u=Math.ceil(n?o(t[r]):s);if(!(u<e)){l=n?s+e:s-e,a.css("maxWidth",l);break}l=n?u:0,e-=u,a.css("maxWidth",l)}},_applyCompactMode:function(){var t=this.$element();t.removeClass("dx-toolbar-compact"),this.option("compactMode")&&this._getSummaryItemsWidth(this.itemElements(),!0)>t.width()&&t.addClass("dx-toolbar-compact")},_getCurrentLabelsWidth:function(t){var e=0;return t.forEach((function(t,n){e+=(0,i.default)(t).outerWidth()})),e},_getCurrentLabelsPaddings:function(t){var e=0;return t.forEach((function(t,n){e+=(0,i.default)(t).outerWidth()-(0,i.default)(t).width()})),e},_renderItem:function(t,e,n,i){var o=e.location||"center",r=n||this["_$"+o+"Section"],a=!(!e.text&&!e.html),s=this.callBase(t,e,r,i);return s.toggleClass(this._buttonClass(),!a).toggleClass("dx-toolbar-label",a).addClass(e.cssClass),s},_renderGroupedItems:function(){var t=this;(0,c.each)(this.option("items"),(function(e,n){var o=n.items,r=(0,i.default)("<div>").addClass("dx-toolbar-group"),a=n.location||"center";o&&o.length&&((0,c.each)(o,(function(e,n){t._renderItem(e,n,r,null)})),t._$toolbarItemsContainer.find(".dx-toolbar-"+a).append(r))}))},_renderItems:function(t){this.option("grouped")&&t.length&&t[0].items?this._renderGroupedItems():this.callBase(t)},_getToolbarItems:function(){return this.option("items")||[]},_renderContentImpl:function(){var t=this._getToolbarItems();this.$element().toggleClass("dx-toolbar-mini",0===t.length),this._renderedItemsCount?this._renderItems(t.slice(this._renderedItemsCount)):this._renderItems(t),this._applyCompactMode()},_renderEmptyMessage:r.default.noop,_clean:function(){this._$toolbarItemsContainer.children().empty(),this.$element().empty()},_visibilityChanged:function(t){t&&this._arrangeItems()},_isVisible:function(){return this.$element().width()>0&&this.$element().height()>0},_getIndexByItem:function(t){return(0,l.inArray)(t,this._getToolbarItems())},_itemOptionChanged:function(t,e,n){this.callBase.apply(this,[t,e,n]),this._arrangeItems()},_optionChanged:function(t){var e=t.name;switch(e){case"width":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"multiline":this.$element().toggleClass("dx-toolbar-multiline",t.value);break;case"renderAs":case"useFlatButtons":case"useDefaultButtons":this._invalidate();break;case"compactMode":this._applyCompactMode();break;case"grouped":break;default:this.callBase.apply(this,arguments)}},_dispose:function(){this.callBase(),clearTimeout(this._waitParentAnimationTimeout)}});(0,s.default)("dxToolbarBase",v),t.exports=v},function(t,e,n){"use strict";var i=n(8),o=n(666);i("dxTextEditor",o),t.exports=o},function(t,e,n){"use strict";var i=l(n(3)),o=n(2),r=l(n(31)),a=l(n(18)),s=l(n(15));function l(t){return t&&t.__esModule?t:{default:t}}var u=a.default.real(),c=u.ios,d=u.mac,h=r.default.msie||c||d;t.exports=function(t,e){if(t=(0,i.default)(t).get(0),!(0,o.isDefined)(e))return function(t){var e;try{e={start:t.selectionStart,end:t.selectionEnd}}catch(n){e={start:0,end:0}}return e}(t);h&&s.default.getActiveElement()!==t||function(t,e){if(s.default.getBody().contains(t))try{t.selectionStart=e.start,t.selectionEnd=e.end}catch(n){}}(t,e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=l(n(6)),o=n(11),r=l(n(31)),a=n(16),s=n(17);function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var c=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.editor=e,this.DIRECTION={FORWARD:"forward",BACKWARD:"backward"},this.NAME=this._getStrategyName()}var e,n,l;return e=t,(n=[{key:"_getStrategyName",value:function(){return"base"}},{key:"editorOption",value:function(){var t;return(t=this.editor).option.apply(t,arguments)}},{key:"editorInput",value:function(){return this.editor._input()}},{key:"editorCaret",value:function(t){if(!t)return this.editor._caret();this.editor._caret(t)}},{key:"getHandler",value:function(t){return(this["_".concat(t,"Handler")]||function(){}).bind(this)}},{key:"attachEvents",value:function(){var t=this,e=this.editorInput();this.getHandleEventNames().forEach((function(n){var r=(0,o.addNamespace)(n.toLowerCase(),"dxMask");i.default.on(e,r,t.getEventHandler(n))})),this._attachChangeEventHandlers()}},{key:"getHandleEventNames",value:function(){return["focusIn","focusOut","keyDown","input","paste","cut","drop"]}},{key:"getEventHandler",value:function(t){return this["_".concat(t,"Handler")].bind(this)}},{key:"detachEvents",value:function(){i.default.off(this.editorInput(),".".concat("dxMask"))}},{key:"_attachChangeEventHandlers",value:function(){-1!==(0,a.inArray)("change",this.editorOption("valueChangeEvent").split(" "))&&i.default.on(this.editorInput(),(0,o.addNamespace)("blur beforedeactivate","dxMask"),function(t){this._suppressCaretChanging(this._changeHandler,[t]),this._changeHandler(t)}.bind(this.editor))}},{key:"_focusInHandler",value:function(){if(this.editor._showMaskPlaceholder(),this.editor._direction(this.DIRECTION.FORWARD),!this.editor._isValueEmpty()&&this.editorOption("isValid"))this.editor._adjustCaret();else{var t=this.editor._maskRulesChain.first();this._caretTimeout=setTimeout(function(){this._caret({start:t,end:t})}.bind(this.editor),0)}}},{key:"_focusOutHandler",value:function(t){this.editor._changeHandler(t),"onFocus"===this.editorOption("showMaskMode")&&this.editor._isValueEmpty()&&(this.editorOption("text",""),this.editor._renderDisplayText(""))}},{key:"_cutHandler",value:function(t){var e=this.editorCaret(),n=this.editorInput().val().substring(e.start,e.end);this.editor._maskKeyHandler(t,(function(){return(0,s.clipboardText)(t,n)}))}},{key:"_dropHandler",value:function(){this._clearDragTimer(),this._dragTimer=setTimeout(function(){this.option("value",this._convertToValue(this._input().val()))}.bind(this.editor))}},{key:"_clearDragTimer",value:function(){clearTimeout(this._dragTimer)}},{key:"_keyDownHandler",value:function(){this._keyPressHandled=!1}},{key:"_pasteHandler",value:function(t){var e=this.editor;this._keyPressHandled=!0;var n=this.editorCaret();e._maskKeyHandler(t,(function(){var i=(0,s.clipboardText)(t),o=e._maskRulesChain.text().substring(n.end),r=e._handleChain({text:i,start:n.start,length:i.length}),a=n.start+r;e._handleChain({text:o,start:a,length:o.length}),e._caret({start:a,end:a})}))}},{key:"_autoFillHandler",value:function(t){var e=this,n=this.editor,i=this.editorInput().val();this._inputHandlerTimer=setTimeout((function(){e._keyPressHandled=!0,e._isAutoFill()&&(e._keyPressHandled=!0,n._maskKeyHandler(t,(function(){n._handleChain({text:i,start:0,length:i.length})})),n._validateMask())}))}},{key:"_isAutoFill",value:function(){var t=this.editor._input(),e=!1;if(r.default.msie&&r.default.version>11)e=t.hasClass("edge-autofilled");else if(r.default.webkit){var n=t.get(0);e=n&&n.matches(":-webkit-autofill")}return e}},{key:"runWithoutEventProcessing",value:function(t){var e=this._keyPressHandled;this._keyPressHandled=!0,t(),this._keyPressHandled=e}},{key:"_backspaceHandler",value:function(){}},{key:"_delHandler",value:function(t){var e=this.editor;this._keyPressHandled=!0,e._maskKeyHandler(t,(function(){return!e._hasSelection()&&e._handleKey(" ")}))}},{key:"clean",value:function(){this._clearDragTimer(),clearTimeout(this._backspaceHandlerTimeout),clearTimeout(this._caretTimeout),clearTimeout(this._inputHandlerTimer)}}])&&u(e.prototype,n),l&&u(e,l),t}();e.default=c},function(t,e,n){"use strict";var i=c(n(3)),o=n(11),r=n(0),a=c(n(676)),s=n(12),l=c(n(677)),u=c(n(265));function c(t){return t&&t.__esModule?t:{default:t}}var d=u.default.inherit({_supportedKeys:function(){var t=this,e=this,n=this.callBase(),i=function(i,o){var r=t._editStrategy,a=t.option("focusedElement"),s=r.getNormalizedIndex(a);if(!(s===t._getLastItemIndex())||!t._isDataSourceLoading())if(i.shiftKey&&e.option("itemDragging.allowReordering")){var l=s+(o?-1:1),u=r.getItemElement(l);t.reorderItem(a,u),t.scrollToItem(a),i.preventDefault()}else{t._editProvider.handleKeyboardEvents(s,o)||(o?n.upArrow(i):n.downArrow(i))}};return(0,r.extend)({},n,{del:function(t){e.option("allowItemDeleting")&&(t.preventDefault(),e.deleteItem(e.option("focusedElement")))},upArrow:function(t){return i(t,!0)},downArrow:function(t){return i(t)},enter:function(t){this._editProvider.handleEnterPressing()||n.enter.apply(this,arguments)},space:function(t){this._editProvider.handleEnterPressing()||n.space.apply(this,arguments)}})},_updateSelection:function(){this._editProvider.afterItemsRendered(),this.callBase()},_getLastItemIndex:function(){return this._itemElements().length-1},_refreshItemElements:function(){this.callBase();var t=this._editProvider.getExcludedItemSelectors();t.length&&(this._itemElementsCache=this._itemElementsCache.not(t))},_setDeprecatedOptions:function(){this.callBase(),(0,r.extend)(this._deprecatedOptions,{allowItemReordering:{since:"19.2",alias:"itemDragging.allowReordering"}})},_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{showSelectionControls:!1,selectionMode:"none",selectAllMode:"page",onSelectAllValueChanged:null,selectAllText:(0,s.format)("dxList-selectAll"),menuItems:[],menuMode:"context",allowItemDeleting:!1,itemDeleteMode:"static",allowItemReordering:!1,itemDragging:{}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"ios"===t.platform},options:{menuMode:"slide",itemDeleteMode:"slideItem"}},{device:{platform:"android"},options:{itemDeleteMode:"swipe"}}])},_init:function(){this.callBase(),this._initEditProvider()},_initDataSource:function(){this.callBase(),this._isPageSelectAll()||this._dataSource&&this._dataSource.requireTotalCount(!0)},_isPageSelectAll:function(){return"page"===this.option("selectAllMode")},_initEditProvider:function(){this._editProvider=new l.default(this)},_disposeEditProvider:function(){this._editProvider&&this._editProvider.dispose()},_refreshEditProvider:function(){this._disposeEditProvider(),this._initEditProvider()},_initEditStrategy:function(){this.option("grouped")?this._editStrategy=new a.default(this):this.callBase()},_initMarkup:function(){this._refreshEditProvider(),this.callBase()},_renderItems:function(){this.callBase.apply(this,arguments),this._editProvider.afterItemsRendered()},_selectedItemClass:function(){return"dx-list-item-selected"},_itemResponseWaitClass:function(){return"dx-list-item-response-wait"},_itemClickHandler:function(t){var e=(0,i.default)(t.currentTarget);if(!e.is(".dx-state-disabled, .dx-state-disabled *")){var n=this._editProvider.handleClick(e,t);n||this.callBase.apply(this,arguments)}},_shouldFireContextMenuEvent:function(){return this.callBase.apply(this,arguments)||this._editProvider.contextMenuHandlerExists()},_itemHoldHandler:function(t){var e=(0,i.default)(t.currentTarget);if(!e.is(".dx-state-disabled, .dx-state-disabled *")){var n=(0,o.isTouchEvent)(t)&&this._editProvider.handleContextMenu(e,t);n?t.handledByEditProvider=!0:this.callBase.apply(this,arguments)}},_itemContextMenuHandler:function(t){var e=(0,i.default)(t.currentTarget);if(!e.is(".dx-state-disabled, .dx-state-disabled *")){var n=!t.handledByEditProvider&&this._editProvider.handleContextMenu(e,t);n?t.preventDefault():this.callBase.apply(this,arguments)}},_postprocessRenderItem:function(t){this.callBase.apply(this,arguments),this._editProvider.modifyItemElement(t)},_clean:function(){this._disposeEditProvider(),this.callBase()},focusListItem:function(t){var e=this._editStrategy.getItemElement(t);this.option("focusedElement",e),this.focus(),this.scrollToItem(this.option("focusedElement"))},_optionChanged:function(t){switch(t.name){case"selectAllMode":this._initDataSource(),this._dataSource.pageIndex(0),this._dataSource.load();break;case"grouped":this._clearSelectedItems(),delete this._renderingGroupIndex,this._initEditStrategy(),this.callBase(t);break;case"showSelectionControls":case"menuItems":case"menuMode":case"allowItemDeleting":case"itemDeleteMode":case"allowItemReordering":case"itemDragging":case"selectAllText":this._invalidate();break;case"onSelectAllValueChanged":break;default:this.callBase(t)}},selectAll:function(){return this._selection.selectAll(this._isPageSelectAll())},unselectAll:function(){return this._selection.deselectAll(this._isPageSelectAll())},isSelectAll:function(){return this._selection.getSelectAllState(this._isPageSelectAll())},getFlatIndexByItemElement:function(t){return this._itemElements().index(t)},getItemElementByFlatIndex:function(t){var e=this._itemElements();return t<0||t>=e.length?(0,i.default)():e.eq(t)},getItemByIndex:function(t){return this._editStrategy.getItemDataByIndex(t)}});t.exports=d},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4).noop,a=n(161),s=a.abstract,l=n(11),u=n(28),c=n(159),d=l.addNamespace(u.down,"dxListEditDecorator"),h=l.addNamespace(c.active,"dxListEditDecorator"),f=a.inherit({_init:function(){this._$topShield=i("<div>").addClass("dx-list-switchable-delete-top-shield"),this._$bottomShield=i("<div>").addClass("dx-list-switchable-delete-bottom-shield"),this._$itemContentShield=i("<div>").addClass("dx-list-switchable-delete-item-content-shield"),o.on(this._$topShield,d,this._cancelDeleteReadyItem.bind(this)),o.on(this._$bottomShield,d,this._cancelDeleteReadyItem.bind(this)),this._list.$element().append(this._$topShield.toggle(!1)).append(this._$bottomShield.toggle(!1))},handleClick:function(){return this._cancelDeleteReadyItem()},_cancelDeleteReadyItem:function(){return!!this._$readyToDeleteItem&&(this._cancelDelete(this._$readyToDeleteItem),!0)},_cancelDelete:function(t){this._toggleDeleteReady(t,!1)},_toggleDeleteReady:function(t,e){void 0===e&&(e=!this._isReadyToDelete(t)),this._toggleShields(t,e),this._toggleScrolling(e),this._cacheReadyToDeleteItem(t,e),this._animateToggleDelete(t,e)},_isReadyToDelete:function(t){return t.hasClass("dx-list-switchable-delete-ready")},_toggleShields:function(t,e){this._list.$element().toggleClass("dx-list-switchable-menu-shield-positioning",e),this._$topShield.toggle(e),this._$bottomShield.toggle(e),e&&this._updateShieldsHeight(t),this._toggleContentShield(t,e)},_updateShieldsHeight:function(t){var e=this._list.$element(),n=e.offset().top,i=e.outerHeight(),o=t.offset().top-n,r=i-t.outerHeight()-o;this._$topShield.height(Math.max(o,0)),this._$bottomShield.height(Math.max(r,0))},_toggleContentShield:function(t,e){e?t.find(".dx-list-item-content").first().append(this._$itemContentShield):this._$itemContentShield.detach()},_toggleScrolling:function(t){var e=this._list.$element().dxScrollView("instance");t?e.on("start",this._cancelScrolling):e.off("start",this._cancelScrolling)},_cancelScrolling:function(t){t.event.cancel=!0},_cacheReadyToDeleteItem:function(t,e){e?this._$readyToDeleteItem=t:delete this._$readyToDeleteItem},_animateToggleDelete:function(t,e){e?(this._enablePositioning(t),this._prepareDeleteReady(t),this._animatePrepareDeleteReady(t),o.off(t,u.up)):(this._forgetDeleteReady(t),this._animateForgetDeleteReady(t).done(this._disablePositioning.bind(this,t)))},_enablePositioning:function(t){t.addClass("dx-list-switchable-menu-item-shield-positioning"),o.on(t,h,r),o.one(t,u.up,this._disablePositioning.bind(this,t))},_disablePositioning:function(t){t.removeClass("dx-list-switchable-menu-item-shield-positioning"),o.off(t,h)},_prepareDeleteReady:function(t){t.addClass("dx-list-switchable-delete-ready")},_forgetDeleteReady:function(t){t.removeClass("dx-list-switchable-delete-ready")},_animatePrepareDeleteReady:s,_animateForgetDeleteReady:s,_getDeleteButtonContainer:function(t){return(t=t||this._$readyToDeleteItem).children(".dx-list-switchable-delete-button-container")},_deleteItem:function(t){t=t||this._$readyToDeleteItem,this._getDeleteButtonContainer(t).detach(),t.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(t).always(this._cancelDelete.bind(this,t))},_isRtlEnabled:function(){return this._list.option("rtlEnabled")},dispose:function(){this._$topShield&&this._$topShield.remove(),this._$bottomShield&&this._$bottomShield.remove(),this.callBase.apply(this,arguments)}});t.exports=f},function(t,e,n){"use strict";t.exports={_menuEnabled:function(){return!!this._menuItems().length},_menuItems:function(){return this._list.option("menuItems")},_deleteEnabled:function(){return this._list.option("allowItemDeleting")},_fireMenuAction:function(t,e){this._list._itemEventHandlerByHandler(t,e,{},{excludeValidators:["disabled","readOnly"]})}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=g(n(3)),r=g(n(15)),a=g(n(6)),s=g(n(77)),l=g(n(33)),u=g(n(20)),c=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=m();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),d=g(n(4)),h=n(2),f=n(0),p=g(n(28));function m(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return m=function(){return t},t}function g(t){return t&&t.__esModule?t:{default:t}}var _="".concat("dx-scrollable-scrollbar","-active"),v="onScroll",y="onHover",b="always",w="never",x=null,C=u.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{direction:null,visible:!1,activeStateEnabled:!1,visibilityMode:v,containerSize:0,contentSize:0,expandable:!0,scaleRatio:1})},_init:function(){this.callBase(),this._isHovered=!1},_initMarkup:function(){this._renderThumb(),this.callBase()},_render:function(){this.callBase(),this._renderDirection(),this._update(),this._attachPointerDownHandler(),this.option("hoverStateEnabled",this._isHoverMode()),this.$element().toggleClass("dx-scrollbar-hoverable",this.option("hoverStateEnabled"))},_renderThumb:function(){this._$thumb=(0,o.default)("<div>").addClass("dx-scrollable-scroll"),(0,o.default)("<div>").addClass("dx-scrollable-scroll-content").appendTo(this._$thumb),this.$element().addClass("dx-scrollable-scrollbar").append(this._$thumb)},isThumb:function(t){return!!this.$element().find(t).length},_isHoverMode:function(){var t=this.option("visibilityMode");return(t===y||t===b)&&this.option("expandable")},_renderDirection:function(){var t=this.option("direction");this.$element().addClass("dx-scrollbar-"+t),this._dimension="horizontal"===t?"width":"height",this._prop="horizontal"===t?"left":"top"},_attachPointerDownHandler:function(){a.default.on(this._$thumb,c.addNamespace(p.default.down,"dxScrollbar"),this.feedbackOn.bind(this))},feedbackOn:function(){this.$element().addClass(_),x=this},feedbackOff:function(){this.$element().removeClass(_),x=null},cursorEnter:function(){this._isHovered=!0,this._needScrollbar()&&this.option("visible",!0)},cursorLeave:function(){this._isHovered=!1,this.option("visible",!1)},_renderDimensions:function(){this._$thumb.css({width:this.option("width"),height:this.option("height")})},_toggleVisibility:function(t){this.option("visibilityMode")===v&&this._$thumb.css("opacity"),t=this._adjustVisibility(t),this.option().visible=t,this._$thumb.toggleClass("dx-state-invisible",!t)},_adjustVisibility:function(t){if(this._baseContainerToContentRatio&&!this._needScrollbar())return!1;switch(this.option("visibilityMode")){case v:break;case y:t=t||!!this._isHovered;break;case w:t=!1;break;case b:t=!0}return t},moveTo:function(t){if(!this._isHidden()){(0,h.isPlainObject)(t)&&(t=t[this._prop]||0);var e={};e[this._prop]=this._calculateScrollBarPosition(t),l.default.move(this._$thumb,e)}},_calculateScrollBarPosition:function(t){return-t*this._thumbRatio},_update:function(){var t=Math.round(this.option("containerSize")),e=Math.round(this.option("contentSize")),n=Math.round(this.option("baseContainerSize")),i=Math.round(this.option("baseContentSize"));isNaN(n)&&(n=t,i=e),this._baseContainerToContentRatio=i?n/i:n,this._realContainerToContentRatio=e?t/e:t;var o=Math.round(Math.max(Math.round(t*this._realContainerToContentRatio),15));this._thumbRatio=(t-o)/(this.option("scaleRatio")*(e-t)),this.option(this._dimension,o/this.option("scaleRatio")),this.$element().css("display",this._needScrollbar()?"":"none")},_isHidden:function(){return this.option("visibilityMode")===w},_needScrollbar:function(){return!this._isHidden()&&this._baseContainerToContentRatio<1},containerToContentRatio:function(){return this._realContainerToContentRatio},_normalizeSize:function(t){return(0,h.isPlainObject)(t)?t[this._dimension]||0:t},_clean:function(){this.callBase(),this===x&&(x=null),a.default.off(this._$thumb,".dxScrollbar")},_optionChanged:function(t){if(!this._isHidden())switch(t.name){case"containerSize":case"contentSize":this.option()[t.name]=this._normalizeSize(t.value),this._update();break;case"baseContentSize":case"baseContainerSize":this._update();break;case"visibilityMode":case"direction":this._invalidate();break;case"scaleRatio":this._update();break;default:this.callBase.apply(this,arguments)}},update:d.default.deferRenderer((function(){this._adjustVisibility()&&this.option("visible",!0)}))});s.default.add((function(){a.default.subscribeGlobal(r.default.getDocument(),c.addNamespace(p.default.up,"dxScrollbar"),(function(){x&&x.feedbackOff()}))})),t.exports=C},function(t,e,n){"use strict";var i=b(n(3)),o=b(n(15)),r=b(n(6)),a=n(46),s=n(0),l=n(10),u=n(5),c=n(2),d=n(24),h=b(n(33)),f=b(n(21)),p=b(n(383)),m=b(n(18)),g=n(11),_=n(4),v=b(n(381)),y=n(7);function b(t){return t&&t.__esModule?t:{default:t}}var w,x,C="android"===m.default.real.platform,S="horizontal",k=C?.95:.92,I=Math.round(1e3/60),T=(C?300:400)/I,E=(1-Math.pow(k,T))/(1-k),O="pageUp",M="pageDown",P="end",D="home",A="leftArrow",R="upArrow",B="rightArrow",N="downArrow",L="tab",F=p.default.inherit({ctor:function(t){this.callBase(),this.scroller=t},VELOCITY_LIMIT:1,_isFinished:function(){return Math.abs(this.scroller._velocity)<=this.VELOCITY_LIMIT},_step:function(){this.scroller._scrollStep(this.scroller._velocity),this.scroller._velocity*=this._acceleration()},_acceleration:function(){return this.scroller._inBounds()?k:.5},_complete:function(){this.scroller._scrollComplete()},_stop:function(){this.scroller._stopComplete()}}),V=F.inherit({VELOCITY_LIMIT:.2,_isFinished:function(){return this.scroller._crossBoundOnNextStep()||this.callBase()},_acceleration:function(){return k},_complete:function(){this.scroller._move(this.scroller._bounceLocation),this.callBase()}}),z=f.default.inherit({ctor:function(t){this._initOptions(t),this._initAnimators(),this._initScrollbar()},_initOptions:function(t){var e=this;this._location=0,this._topReached=!1,this._bottomReached=!1,this._axis=t.direction===S?"x":"y",this._prop=t.direction===S?"left":"top",this._dimension=t.direction===S?"width":"height",this._scrollProp=t.direction===S?"scrollLeft":"scrollTop",(0,u.each)(t,(function(t,n){e["_"+t]=n}))},_initAnimators:function(){this._inertiaAnimator=new F(this),this._bounceAnimator=new V(this)},_initScrollbar:function(){this._scrollbar=new v.default((0,i.default)("<div>").appendTo(this._$container),{direction:this._direction,visible:this._scrollByThumb,visibilityMode:this._visibilityModeNormalize(this._scrollbarVisible),expandable:this._scrollByThumb}),this._$scrollbar=this._scrollbar.$element()},_visibilityModeNormalize:function(t){return!0===t?"onScroll":!1===t?"never":t},_scrollStep:function(t){var e=this._location;this._location+=t,this._suppressBounce(),this._move(),Math.abs(e-this._location)<1||r.default.triggerHandler(this._$container,{type:"scroll"})},_suppressBounce:function(){this._bounceEnabled||this._inBounds(this._location)||(this._velocity=0,this._location=this._boundLocation())},_boundLocation:function(t){return t=void 0!==t?t:this._location,Math.max(Math.min(t,this._maxOffset),this._minOffset)},_move:function(t){this._location=void 0!==t?t*this._getScaleRatio():this._location,this._moveContent(),this._moveScrollbar()},_moveContent:function(){var t=this._location;this._$container[this._scrollProp](-t/this._getScaleRatio()),this._moveContentByTranslator(t)},_getScaleRatio:function(){if((0,l.hasWindow)()&&!this._scaleRatio){var t=this._$element.get(0),e=this._getRealDimension(t,this._dimension),n=this._getBaseDimension(t,this._dimension);this._scaleRatio=Math.round(e/n*100)/100}return this._scaleRatio||1},_getRealDimension:function(t,e){return Math.round((0,d.getBoundingRect)(t)[e])},_getBaseDimension:function(t,e){return t["offset"+(0,a.titleize)(e)]},_moveContentByTranslator:function(t){var e,n=-this._maxScrollPropValue;if(e=t>0?t:t<=n?t-n:t%1,this._translateOffset!==e){var i={};i[this._prop]=e,this._translateOffset=e,0!==e?h.default.move(this._$content,i):h.default.resetPosition(this._$content)}},_moveScrollbar:function(){this._scrollbar.moveTo(this._location)},_scrollComplete:function(){this._inBounds()&&(this._hideScrollbar(),this._completeDeferred&&this._completeDeferred.resolve()),this._scrollToBounds()},_scrollToBounds:function(){this._inBounds()||(this._bounceAction(),this._setupBounce(),this._bounceAnimator.start())},_setupBounce:function(){var t=(this._bounceLocation=this._boundLocation())-this._location;this._velocity=t/E},_inBounds:function(t){return t=void 0!==t?t:this._location,this._boundLocation(t)===t},_crossBoundOnNextStep:function(){var t=this._location,e=t+this._velocity;return t<this._minOffset&&e>=this._minOffset||t>this._maxOffset&&e<=this._maxOffset},_initHandler:function(t){return this._stopDeferred=new y.Deferred,this._stopScrolling(),this._prepareThumbScrolling(t),this._stopDeferred.promise()},_stopScrolling:(0,_.deferRenderer)((function(){this._hideScrollbar(),this._inertiaAnimator.stop(),this._bounceAnimator.stop()})),_prepareThumbScrolling:function(t){if(!(0,g.isDxMouseWheelEvent)(t.originalEvent)){var e=(0,i.default)(t.originalEvent.target),n=this._isScrollbar(e);n&&this._moveToMouseLocation(t),this._thumbScrolling=n||this._isThumb(e),this._crossThumbScrolling=!this._thumbScrolling&&this._isAnyThumbScrolling(e),this._thumbScrolling&&this._scrollbar.feedbackOn()}},_isThumbScrollingHandler:function(t){return this._isThumb(t)},_moveToMouseLocation:function(t){var e=t["page"+this._axis.toUpperCase()]-this._$element.offset()[this._prop],n=this._location+e/this._containerToContentRatio()-this._$container.height()/2;this._scrollStep(-Math.round(n))},_stopComplete:function(){this._stopDeferred&&this._stopDeferred.resolve()},_startHandler:function(){this._showScrollbar()},_moveHandler:function(t){this._crossThumbScrolling||(this._thumbScrolling&&(t[this._axis]=-Math.round(t[this._axis]/this._containerToContentRatio())),this._scrollBy(t))},_scrollBy:function(t){t=t[this._axis],this._inBounds()||(t*=.5),this._scrollStep(t)},_scrollByHandler:function(t){this._scrollBy(t),this._scrollComplete()},_containerToContentRatio:function(){return this._scrollbar.containerToContentRatio()},_endHandler:function(t){return this._completeDeferred=new y.Deferred,this._velocity=t[this._axis],this._inertiaHandler(),this._resetThumbScrolling(),this._completeDeferred.promise()},_inertiaHandler:function(){this._suppressInertia(),this._inertiaAnimator.start()},_suppressInertia:function(){this._inertiaEnabled&&!this._thumbScrolling||(this._velocity=0)},_resetThumbScrolling:function(){this._thumbScrolling=!1,this._crossThumbScrolling=!1},_stopHandler:function(){this._thumbScrolling&&this._scrollComplete(),this._resetThumbScrolling(),this._scrollToBounds()},_disposeHandler:function(){this._stopScrolling(),this._$scrollbar.remove()},_updateHandler:function(){this._update(),this._moveToBounds()},_update:function(){var t=this;return this._stopScrolling(),(0,_.deferUpdate)((function(){t._resetScaleRatio(),t._updateLocation(),t._updateBounds(),t._updateScrollbar(),(0,_.deferRender)((function(){t._moveScrollbar(),t._scrollbar.update()}))}))},_resetScaleRatio:function(){this._scaleRatio=null},_updateLocation:function(){this._location=(h.default.locate(this._$content)[this._prop]-this._$container[this._scrollProp]())*this._getScaleRatio()},_updateBounds:function(){this._maxOffset=Math.round(this._getMaxOffset()),this._minOffset=Math.round(this._getMinOffset())},_getMaxOffset:function(){return 0},_getMinOffset:function(){return this._maxScrollPropValue=Math.max(this._contentSize()-this._containerSize(),0),-this._maxScrollPropValue},_updateScrollbar:(0,_.deferUpdater)((function(){var t=this,e=this._containerSize(),n=this._contentSize(),i=this._getBaseDimension(this._$container.get(0),this._dimension),o=this._getBaseDimension(this._$content.get(0),this._dimension);(0,_.deferRender)((function(){t._scrollbar.option({containerSize:e,contentSize:n,baseContainerSize:i,baseContentSize:o,scaleRatio:t._getScaleRatio()})}))})),_moveToBounds:(0,_.deferRenderer)((0,_.deferUpdater)((0,_.deferRenderer)((function(){var t=this._boundLocation(),e=t!==this._location;this._location=t,this._move(),e&&this._scrollAction()})))),_createActionsHandler:function(t){this._scrollAction=t.scroll,this._bounceAction=t.bounce},_showScrollbar:function(){this._scrollbar.option("visible",!0)},_hideScrollbar:function(){this._scrollbar.option("visible",!1)},_containerSize:function(){return this._getRealDimension(this._$container.get(0),this._dimension)},_contentSize:function(){var t="hidden"===this._$content.css("overflow"+this._axis.toUpperCase()),e=this._getRealDimension(this._$content.get(0),this._dimension);if(!t){var n=this._$content[0]["scroll"+(0,a.titleize)(this._dimension)]*this._getScaleRatio();e=Math.max(n,e)}return e},_validateEvent:function(t){var e=(0,i.default)(t.originalEvent.target);return this._isThumb(e)||this._isScrollbar(e)||this._isContent(e)},_isThumb:function(t){return this._scrollByThumb&&this._scrollbar.isThumb(t)},_isScrollbar:function(t){return this._scrollByThumb&&t&&t.is(this._$scrollbar)},_isContent:function(t){return this._scrollByContent&&!!t.closest(this._$element).length},_reachedMin:function(){return this._location<=this._minOffset},_reachedMax:function(){return this._location>=this._maxOffset},_cursorEnterHandler:function(){this._resetScaleRatio(),this._updateScrollbar(),this._scrollbar.cursorEnter()},_cursorLeaveHandler:function(){this._scrollbar.cursorLeave()},dispose:_.noop}),j=f.default.inherit({ctor:function(t){this._init(t)},_init:function(t){this._component=t,this._$element=t.$element(),this._$container=t._$container,this._$wrapper=t._$wrapper,this._$content=t._$content,this.option=t.option.bind(t),this._createActionByOption=t._createActionByOption.bind(t),this._isLocked=t._isLocked.bind(t),this._isDirection=t._isDirection.bind(t),this._allowedDirection=t._allowedDirection.bind(t)},render:function(){this._$element.addClass("dx-scrollable-simulated"),this._createScrollers(),this.option("useKeyboard")&&this._$container.prop("tabIndex",0),this._attachKeyboardHandler(),this._attachCursorHandlers()},_createScrollers:function(){this._scrollers={},this._isDirection(S)&&this._createScroller(S),this._isDirection("vertical")&&this._createScroller("vertical"),this._$element.toggleClass("dx-scrollable-scrollbars-alwaysvisible","always"===this.option("showScrollbar")),this._$element.toggleClass("dx-scrollable-scrollbars-hidden",!this.option("showScrollbar"))},_createScroller:function(t){this._scrollers[t]=new z(this._scrollerOptions(t))},_scrollerOptions:function(t){return{direction:t,$content:this._$content,$container:this._$container,$wrapper:this._$wrapper,$element:this._$element,scrollByContent:this.option("scrollByContent"),scrollByThumb:this.option("scrollByThumb"),scrollbarVisible:this.option("showScrollbar"),bounceEnabled:this.option("bounceEnabled"),inertiaEnabled:this.option("inertiaEnabled"),isAnyThumbScrolling:this._isAnyThumbScrolling.bind(this)}},_applyScaleRatio:function(t){for(var e in this._scrollers){var n=this._getPropByDirection(e);if((0,c.isDefined)(t[n])){var i=this._scrollers[e];t[n]*=i._getScaleRatio()}}return t},_isAnyThumbScrolling:function(t){var e=!1;return this._eventHandler("isThumbScrolling",t).done((function(t,n){e=t||n})),e},handleInit:function(t){this._suppressDirections(t),this._eventForUserAction=t,this._eventHandler("init",t).done(this._stopAction)},_suppressDirections:function(t){(0,g.isDxMouseWheelEvent)(t.originalEvent)?this._prepareDirections(!0):(this._prepareDirections(),this._eachScroller((function(e,n){var i=e._validateEvent(t);this._validDirections[n]=i})))},_prepareDirections:function(t){t=t||!1,this._validDirections={},this._validDirections[S]=t,this._validDirections.vertical=t},_eachScroller:function(t){t=t.bind(this),(0,u.each)(this._scrollers,(function(e,n){t(n,e)}))},handleStart:function(t){this._eventForUserAction=t,this._eventHandler("start").done(this._startAction)},_saveActive:function(){x=this},_resetActive:function(){x===this&&(x=null)},handleMove:function(t){if(this._isLocked())return t.cancel=!0,void this._resetActive();this._saveActive(),t.preventDefault&&t.preventDefault(),this._adjustDistance(t,t.delta),this._eventForUserAction=t,this._eventHandler("move",t.delta)},_adjustDistance:function(t,e){e.x*=this._validDirections[S],e.y*=this._validDirections.vertical;var n=this._tryGetDevicePixelRatio();n&&(0,g.isDxMouseWheelEvent)(t.originalEvent)&&(e.x=Math.round(e.x/n*100)/100,e.y=Math.round(e.y/n*100)/100)},_tryGetDevicePixelRatio:function(){if((0,l.hasWindow)())return(0,l.getWindow)().devicePixelRatio},handleEnd:function(t){return this._resetActive(),this._refreshCursorState(t.originalEvent&&t.originalEvent.target),this._adjustDistance(t,t.velocity),this._eventForUserAction=t,this._eventHandler("end",t.velocity).done(this._endAction)},handleCancel:function(t){return this._resetActive(),this._eventForUserAction=t,this._eventHandler("end",{x:0,y:0})},handleStop:function(){this._resetActive(),this._eventHandler("stop")},handleScroll:function(){this._scrollAction()},_attachKeyboardHandler:function(){r.default.off(this._$element,".".concat("dxSimulatedScrollableKeyboard")),!this.option("disabled")&&this.option("useKeyboard")&&r.default.on(this._$element,(0,g.addNamespace)("keydown","dxSimulatedScrollableKeyboard"),this._keyDownHandler.bind(this))},_keyDownHandler:function(t){var e=this;if(clearTimeout(this._updateHandlerTimeout),this._updateHandlerTimeout=setTimeout((function(){(0,g.normalizeKeyName)(t)===L&&e._eachScroller((function(t){t._updateHandler()}))})),this._$container.is(o.default.getActiveElement())){var n=!0;switch((0,g.normalizeKeyName)(t)){case N:this._scrollByLine({y:1});break;case R:this._scrollByLine({y:-1});break;case B:this._scrollByLine({x:1});break;case A:this._scrollByLine({x:-1});break;case M:this._scrollByPage(1);break;case O:this._scrollByPage(-1);break;case D:this._scrollToHome();break;case P:this._scrollToEnd();break;default:n=!1}n&&(t.stopPropagation(),t.preventDefault())}},_scrollByLine:function(t){var e=this._tryGetDevicePixelRatio(),n=40;e&&(n=Math.abs(n/e*100)/100),this.scrollBy({top:(t.y||0)*-n,left:(t.x||0)*-n})},_scrollByPage:function(t){var e=this._wheelProp(),n=this._dimensionByProp(e),i={};i[e]=t*-this._$container[n](),this.scrollBy(i)},_dimensionByProp:function(t){return"left"===t?"width":"height"},_getPropByDirection:function(t){return t===S?"left":"top"},_scrollToHome:function(){var t={};t[this._wheelProp()]=0,this._component.scrollTo(t)},_scrollToEnd:function(){var t=this._wheelProp(),e=this._dimensionByProp(t),n={};n[t]=this._$content[e]()-this._$container[e](),this._component.scrollTo(n)},createActions:function(){this._startAction=this._createActionHandler("onStart"),this._stopAction=this._createActionHandler("onStop"),this._endAction=this._createActionHandler("onEnd"),this._updateAction=this._createActionHandler("onUpdated"),this._createScrollerActions()},_createScrollerActions:function(){this._scrollAction=this._createActionHandler("onScroll"),this._bounceAction=this._createActionHandler("onBounce"),this._eventHandler("createActions",{scroll:this._scrollAction,bounce:this._bounceAction})},_createActionHandler:function(t){var e=arguments,n=this,i=this._createActionByOption(t);return function(){i((0,s.extend)(n._createActionArgs(),e))}},_createActionArgs:function(){var t=this._scrollers[S],e=this._scrollers.vertical,n=this.location();return this._scrollOffset={top:e&&-n.top,left:t&&-n.left},{event:this._eventForUserAction,scrollOffset:this._scrollOffset,reachedLeft:t&&t._reachedMax(),reachedRight:t&&t._reachedMin(),reachedTop:e&&e._reachedMax(),reachedBottom:e&&e._reachedMin()}},_eventHandler:function(t){var e=[].slice.call(arguments).slice(1),n=(0,u.map)(this._scrollers,(function(n){return n["_"+t+"Handler"].apply(n,e)}));return y.when.apply(i.default,n).promise()},location:function(){var t=h.default.locate(this._$content);return t.top-=this._$container.scrollTop(),t.left-=this._$container.scrollLeft(),t},disabledChanged:function(){this._attachCursorHandlers()},_attachCursorHandlers:function(){r.default.off(this._$element,".".concat("dxSimulatedScrollableCursor")),!this.option("disabled")&&this._isHoverMode()&&(r.default.on(this._$element,(0,g.addNamespace)("mouseenter","dxSimulatedScrollableCursor"),this._cursorEnterHandler.bind(this)),r.default.on(this._$element,(0,g.addNamespace)("mouseleave","dxSimulatedScrollableCursor"),this._cursorLeaveHandler.bind(this)))},_isHoverMode:function(){return"onHover"===this.option("showScrollbar")},_cursorEnterHandler:function(t){(t=t||{}).originalEvent=t.originalEvent||{},x||t.originalEvent._hoverHandled||(w&&w._cursorLeaveHandler(),w=this,this._eventHandler("cursorEnter"),t.originalEvent._hoverHandled=!0)},_cursorLeaveHandler:function(t){w===this&&x!==w&&(this._eventHandler("cursorLeave"),w=null,this._refreshCursorState(t&&t.relatedTarget))},_refreshCursorState:function(t){if(this._isHoverMode()||t&&!x){var e=(0,i.default)(t).closest(".".concat("dx-scrollable-simulated",":not(.dx-state-disabled)")),n=e.length&&e.data("dxScrollableStrategy");w&&w!==n&&w._cursorLeaveHandler(),n&&n._cursorEnterHandler()}},update:function(){var t=this,e=this._eventHandler("update").done(this._updateAction);return(0,y.when)(e,(0,_.deferUpdate)((function(){var e=t._allowedDirections();return(0,_.deferRender)((function(){var n=e.vertical?"pan-x":"";n=e.horizontal?"pan-y":n,n=e.vertical&&e.horizontal?"none":n,t._$container.css("touchAction",n)})),(0,y.when)().promise()})))},_allowedDirections:function(){var t=this.option("bounceEnabled"),e=this._scrollers.vertical,n=this._scrollers[S];return{vertical:e&&(e._minOffset<0||t),horizontal:n&&(n._minOffset<0||t)}},updateBounds:function(){this._scrollers[S]&&this._scrollers[S]._updateBounds()},scrollBy:function(t){var e=this._scrollers.vertical,n=this._scrollers[S];e&&(t.top=e._boundLocation(t.top+e._location)-e._location),n&&(t.left=n._boundLocation(t.left+n._location)-n._location),this._prepareDirections(!0),this._startAction(),this._eventHandler("scrollBy",{x:t.left,y:t.top}),this._endAction()},validate:function(t){return!this.option("disabled")&&(!!this.option("bounceEnabled")||((0,g.isDxMouseWheelEvent)(t)?this._validateWheel(t):this._validateMove(t)))},_validateWheel:function(t){var e=this,n=this._scrollers[this._wheelDirection(t)],i=n._reachedMin(),o=n._reachedMax(),r=!i||!o,a=!i&&!o,s=i&&t.delta>0,l=o&&t.delta<0,u=r&&(a||s||l);return(u=u||void 0!==this._validateWheelTimer)&&(clearTimeout(this._validateWheelTimer),this._validateWheelTimer=setTimeout((function(){e._validateWheelTimer=void 0}),500)),u},_validateMove:function(t){return!(!this.option("scrollByContent")&&!(0,i.default)(t.target).closest(".".concat("dx-scrollable-scrollbar")).length)&&this._allowedDirection()},getDirection:function(t){return(0,g.isDxMouseWheelEvent)(t)?this._wheelDirection(t):this._allowedDirection()},_wheelProp:function(){return this._wheelDirection()===S?"left":"top"},_wheelDirection:function(t){switch(this.option("direction")){case S:return S;case"vertical":return"vertical";default:return t&&t.shiftKey?S:"vertical"}},verticalOffset:function(){return 0},dispose:function(){this._resetActive(),w===this&&(w=null),this._eventHandler("dispose"),this._detachEventHandlers(),this._$element.removeClass("dx-scrollable-simulated"),this._eventForUserAction=null,clearTimeout(this._validateWheelTimer),clearTimeout(this._updateHandlerTimeout)},_detachEventHandlers:function(){r.default.off(this._$element,".".concat("dxSimulatedScrollableCursor")),r.default.off(this._$container,".".concat("dxSimulatedScrollableKeyboard"))}});e.SimulatedStrategy=j,e.Scroller=z},function(t,e,n){"use strict";var i=n(4).noop,o=n(21),r=o.abstract,a=n(184),s=o.inherit({ctor:function(){this._finished=!0,this._stopped=!1,this._proxiedStepCore=this._stepCore.bind(this)},start:function(){this._stopped=!1,this._finished=!1,this._stepCore()},stop:function(){this._stopped=!0,a.cancelAnimationFrame(this._stepAnimationFrame)},_stepCore:function(){if(this._isStopped())this._stop();else{if(this._isFinished())return this._finished=!0,void this._complete();this._step(),this._stepAnimationFrame=a.requestAnimationFrame(this._proxiedStepCore)}},_step:r,_isFinished:i,_stop:i,_complete:i,_isStopped:function(){return this._stopped},inProgress:function(){return!(this._stopped||this._finished)}});t.exports=s},function(t,e,n){"use strict";var i=Number;function o(){this.setDomain(arguments[0],arguments[1]).setCodomain(arguments[2],arguments[3])}o.prototype={constructor:o,setDomain:function(t,e){return this._domain1=i(t),this._domain2=i(e),this._domainDelta=this._domain2-this._domain1,this},setCodomain:function(t,e){return this._codomain1=i(t),this._codomain2=i(e),this._codomainDelta=this._codomain2-this._codomain1,this},getDomain:function(){return[this._domain1,this._domain2]},getCodomain:function(){return[this._codomain1,this._codomain2]},getDomainStart:function(){return this._domain1},getDomainEnd:function(){return this._domain2},getCodomainStart:function(){return this._codomain1},getCodomainEnd:function(){return this._codomain2},getDomainRange:function(){return this._domainDelta},getCodomainRange:function(){return this._codomainDelta},translate:function(t){var e=(i(t)-this._domain1)/this._domainDelta;return 0<=e&&e<=1?this._codomain1+e*this._codomainDelta:NaN},adjust:function(t){var e=(i(t)-this._domain1)/this._domainDelta,n=NaN;return e<0?n=this._domain1:e>1?n=this._domain2:0<=e&&e<=1&&(n=i(t)),n}},e.Translator1D=o},function(t,e,n){"use strict";function i(t,e){for(;t.length<e;)t="0"+t;return t}var o={3:"abbreviated",4:"wide",5:"narrow"},r={y:function(t,e,n){var o=t[n?"getUTCFullYear":"getFullYear"]();return 2===e&&(o%=100),i(o.toString(),e)},M:function(t,e,n,r){var a=t[n?"getUTCMonth":"getMonth"](),s=o[e];return s?r.getMonthNames(s,"format")[a]:i((a+1).toString(),Math.min(e,2))},L:function(t,e,n,r){var a=t[n?"getUTCMonth":"getMonth"](),s=o[e];return s?r.getMonthNames(s,"standalone")[a]:i((a+1).toString(),Math.min(e,2))},Q:function(t,e,n,r){var a=t[n?"getUTCMonth":"getMonth"](),s=Math.floor(a/3),l=o[e];return l?r.getQuarterNames(l)[s]:i((s+1).toString(),Math.min(e,2))},E:function(t,e,n,i){var r=t[n?"getUTCDay":"getDay"](),a=o[e<3?3:e];return i.getDayNames(a)[r]},a:function(t,e,n,i){var r=t[n?"getUTCHours":"getHours"]()<12?0:1,a=o[e];return i.getPeriodNames(a)[r]},d:function(t,e,n){return i(t[n?"getUTCDate":"getDate"]().toString(),Math.min(e,2))},H:function(t,e,n){return i(t[n?"getUTCHours":"getHours"]().toString(),Math.min(e,2))},h:function(t,e,n){return i((t[n?"getUTCHours":"getHours"]()%12||12).toString(),Math.min(e,2))},m:function(t,e,n){return i(t[n?"getUTCMinutes":"getMinutes"]().toString(),Math.min(e,2))},s:function(t,e,n){return i(t[n?"getUTCSeconds":"getSeconds"]().toString(),Math.min(e,2))},S:function(t,e,n){return i(t[n?"getUTCMilliseconds":"getMilliseconds"]().toString(),3).substr(0,e)},x:function(t,e,n){var o=n?0:t.getTimezoneOffset(),r=o>0?"-":"+",a=Math.abs(o),s=a%60,l=i(Math.floor(a/60).toString(),2),u=i(s.toString(),2);return r+l+(e>=3?":":"")+(e>1||s?u:"")},X:function(t,e,n){return n||!t.getTimezoneOffset()?"Z":r.x(t,e,n)},Z:function(t,e,n){return r.X(t,e>=5?3:2,n)}};t.exports.getFormatter=function(t,e){return function(n){var i,o,a,s,l=0,u=!1,c="";if(!n)return null;if(!t)return n;var d="Z"===t[t.length-1]||"'Z'"===t.slice(-3);for(i=0;i<t.length;i++)a=t[i],o=r[a],l++,(s=a===t[i+1])||(o&&!u&&(c+=o(n,l,d,e)),l=0),"'"!==a||s?!u&&o||(c+=a):u=!u,"'"===a&&s&&i++;return c}}},function(t,e,n){"use strict";var i,o=n(5),r=(i=o)&&i.__esModule?i:{default:i};var a=["January","February","March","April","May","June","July","August","September","October","November","December"],s=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],l=["AM","PM"],u=["Q1","Q2","Q3","Q4"],c=function(t,e){var n={abbreviated:3,short:2,narrow:1};return r.default.map(t,(function(t){return t.substr(0,n[e])}))};t.exports={getMonthNames:function(t){return c(a,t)},getDayNames:function(t){return c(s,t)},getQuarterNames:function(t){return u},getPeriodNames:function(t){return l}}},function(t,e,n){(function(e,n,i){t.exports=function t(e,n,i){function o(a,s){if(!n[a]){if(!e[a]){if(r)return r(a,!0);var l=new Error("Cannot find module '"+a+"'");throw l.code="MODULE_NOT_FOUND",l}var u=n[a]={exports:{}};e[a][0].call(u.exports,(function(t){return o(e[a][1][t]||t)}),u,u.exports,t,e,n,i)}return n[a].exports}for(var r=!1,a=0;a<i.length;a++)o(i[a]);return o}({1:[function(t,e,n){"use strict";var i=t("./utils"),o=t("./support"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.encode=function(t){for(var e,n,o,a,s,l,u,c=[],d=0,h=t.length,f=h,p="string"!==i.getTypeOf(t);d<t.length;)f=h-d,o=p?(e=t[d++],n=d<h?t[d++]:0,d<h?t[d++]:0):(e=t.charCodeAt(d++),n=d<h?t.charCodeAt(d++):0,d<h?t.charCodeAt(d++):0),a=e>>2,s=(3&e)<<4|n>>4,l=1<f?(15&n)<<2|o>>6:64,u=2<f?63&o:64,c.push(r.charAt(a)+r.charAt(s)+r.charAt(l)+r.charAt(u));return c.join("")},n.decode=function(t){var e,n,i,a,s,l,u=0,c=0,d="data:";if(t.substr(0,d.length)===d)throw new Error("Invalid base64 input, it looks like a data url.");var h,f=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===r.charAt(64)&&f--,t.charAt(t.length-2)===r.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=o.uint8array?new Uint8Array(0|f):new Array(0|f);u<t.length;)e=r.indexOf(t.charAt(u++))<<2|(a=r.indexOf(t.charAt(u++)))>>4,n=(15&a)<<4|(s=r.indexOf(t.charAt(u++)))>>2,i=(3&s)<<6|(l=r.indexOf(t.charAt(u++))),h[c++]=e,64!==s&&(h[c++]=n),64!==l&&(h[c++]=i);return h}},{"./support":30,"./utils":32}],2:[function(t,e,n){"use strict";var i=t("./external"),o=t("./stream/DataWorker"),r=t("./stream/DataLengthProbe"),a=t("./stream/Crc32Probe");function s(t,e,n,i,o){this.compressedSize=t,this.uncompressedSize=e,this.crc32=n,this.compression=i,this.compressedContent=o}r=t("./stream/DataLengthProbe"),s.prototype={getContentWorker:function(){var t=new o(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new r("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new o(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(t,e,n){return t.pipe(new a).pipe(new r("uncompressedSize")).pipe(e.compressWorker(n)).pipe(new r("compressedSize")).withStreamInfo("compression",e)},e.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,n){"use strict";var i=t("./stream/GenericWorker");n.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},n.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,n){"use strict";var i=t("./utils"),o=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,n,i){var r=o,a=0+n;t^=-1;for(var s=0;s<a;s++)t=t>>>8^r[255&(t^e[s])];return-1^t}(0|e,t,t.length):function(t,e,n,i){var r=o,a=0+n;t^=-1;for(var s=0;s<a;s++)t=t>>>8^r[255&(t^e.charCodeAt(s))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,n){"use strict";n.base64=!1,n.binary=!1,n.dir=!1,n.createFolders=!0,n.date=null,n.compression=null,n.compressionOptions=null,n.comment=null,n.unixPermissions=null,n.dosPermissions=null},{}],6:[function(t,e,n){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,o=t("pako"),r=t("./utils"),a=t("./stream/GenericWorker"),s=i?"uint8array":"array";function l(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}n.magic="\b\0",r.inherits(l,a),l.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(r.transformTo(s,t.data),!1)},l.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},n.compressWorker=function(t){return new l("Deflate",t)},n.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,n){"use strict";function i(t,e){var n,i="";for(n=0;n<e;n++)i+=String.fromCharCode(255&t),t>>>=8;return i}function o(t,e,n,o,a,c){var d,h,f=t.file,p=t.compression,m=c!==s.utf8encode,g=r.transformTo("string",c(f.name)),_=r.transformTo("string",s.utf8encode(f.name)),v=f.comment,y=r.transformTo("string",c(v)),b=r.transformTo("string",s.utf8encode(v)),w=_.length!==f.name.length,x=b.length!==v.length,C="",S="",k="",I=f.dir,T=f.date,E={crc32:0,compressedSize:0,uncompressedSize:0};e&&!n||(E.crc32=t.crc32,E.compressedSize=t.compressedSize,E.uncompressedSize=t.uncompressedSize);var O=0;e&&(O|=8),m||!w&&!x||(O|=2048);var M=0,P=0;I&&(M|=16),"UNIX"===a?(P=798,M|=function(t,e){var n=t;return t||(n=e?16893:33204),(65535&n)<<16}(f.unixPermissions,I)):(P=20,M|=function(t){return 63&(t||0)}(f.dosPermissions)),d=T.getUTCHours(),d<<=6,d|=T.getUTCMinutes(),d<<=5,d|=T.getUTCSeconds()/2,h=T.getUTCFullYear()-1980,h<<=4,h|=T.getUTCMonth()+1,h<<=5,h|=T.getUTCDate(),w&&(S=i(1,1)+i(l(g),4)+_,C+="up"+i(S.length,2)+S),x&&(k=i(1,1)+i(l(y),4)+b,C+="uc"+i(k.length,2)+k);var D="";return D+="\n\0",D+=i(O,2),D+=p.magic,D+=i(d,2),D+=i(h,2),D+=i(E.crc32,4),D+=i(E.compressedSize,4),D+=i(E.uncompressedSize,4),D+=i(g.length,2),D+=i(C.length,2),{fileRecord:u.LOCAL_FILE_HEADER+D+g+C,dirRecord:u.CENTRAL_FILE_HEADER+i(P,2)+D+i(y.length,2)+"\0\0\0\0"+i(M,4)+i(o,4)+g+C+y}}var r=t("../utils"),a=t("../stream/GenericWorker"),s=t("../utf8"),l=t("../crc32"),u=t("../signature");function c(t,e,n,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}r.inherits(c,a),c.prototype.push=function(t){var e=t.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:n?(e+100*(n-i-1))/n:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var n=o(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:n.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,n=o(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(n.dirRecord),e)this.push({data:function(t){return u.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:n.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var n=this.bytesWritten-t,o=function(t,e,n,o,a){var s=r.transformTo("string",a(o));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(t,2)+i(t,2)+i(e,4)+i(n,4)+i(s.length,2)+s}(this.dirRecords.length,n,t,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},c.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(t){var e=this._sources;if(!a.prototype.error.call(this,t))return!1;for(var n=0;n<e.length;n++)try{e[n].error(t)}catch(t){}return!0},c.prototype.lock=function(){a.prototype.lock.call(this);for(var t=this._sources,e=0;e<t.length;e++)t[e].lock()},e.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(t,e,n){"use strict";var i=t("../compressions"),o=t("./ZipFileWorker");n.generateWorker=function(t,e,n){var r=new o(e.streamFiles,n,e.platform,e.encodeFileName),a=0;try{t.forEach((function(t,n){a++;var o=function(t,e){var n=t||e,o=i[n];if(!o)throw new Error(n+" is not a valid compression method !");return o}(n.options.compression,e.compression),s=n.options.compressionOptions||e.compressionOptions||{},l=n.dir,u=n.date;n._compressWorker(o,s).withStreamInfo("file",{name:t,dir:l,date:u,comment:n.comment||"",unixPermissions:n.unixPermissions,dosPermissions:n.dosPermissions}).pipe(r)})),r.entriesCount=a}catch(t){r.error(t)}return r}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(t,e,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var t=new i;for(var e in this)"function"!=typeof this[e]&&(t[e]=this[e]);return t}}(i.prototype=t("./object")).loadAsync=t("./load"),i.support=t("./support"),i.defaults=t("./defaults"),i.version="3.5.0",i.loadAsync=function(t,e){return(new i).loadAsync(t,e)},i.external=t("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(t,e,n){"use strict";var i=t("./utils"),o=t("./external"),r=t("./utf8"),a=(i=t("./utils"),t("./zipEntries")),s=t("./stream/Crc32Probe"),l=t("./nodejsUtils");function u(t){return new o.Promise((function(e,n){var i=t.decompressed.getContentWorker().pipe(new s);i.on("error",(function(t){n(t)})).on("end",(function(){i.streamInfo.crc32!==t.decompressed.crc32?n(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}e.exports=function(t,e){var n=this;return e=i.extend(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:r.utf8decode}),l.isNode&&l.isStream(t)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var n=new a(e);return n.load(t),n})).then((function(t){var n=[o.Promise.resolve(t)],i=t.files;if(e.checkCRC32)for(var r=0;r<i.length;r++)n.push(u(i[r]));return o.Promise.all(n)})).then((function(t){for(var i=t.shift(),o=i.files,r=0;r<o.length;r++){var a=o[r];n.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders})}return i.zipComment.length&&(n.comment=i.zipComment),n}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(t,e,n){"use strict";var i=t("../utils"),o=t("../stream/GenericWorker");function r(t,e){o.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(e)}i.inherits(r,o),r.prototype._bindStream=function(t){var e=this;(this._stream=t).pause(),t.on("data",(function(t){e.push({data:t,meta:{percent:0}})})).on("error",(function(t){e.isPaused?this.generatedError=t:e.error(t)})).on("end",(function(){e.isPaused?e._upstreamEnded=!0:e.end()}))},r.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=r},{"../stream/GenericWorker":28,"../utils":32}],13:[function(t,e,n){"use strict";var i=t("readable-stream").Readable;function o(t,e,n){i.call(this,e),this._helper=t;var o=this;t.on("data",(function(t,e){o.push(t)||o._helper.pause(),n&&n(e)})).on("error",(function(t){o.emit("error",t)})).on("end",(function(){o.push(null)}))}t("../utils").inherits(o,i),o.prototype._read=function(){this._helper.resume()},e.exports=o},{"../utils":32,"readable-stream":16}],14:[function(t,n,i){"use strict";n.exports={isNode:"undefined"!=typeof e,newBufferFrom:function(t,n){if(e.from&&e.from!==Uint8Array.from)return e.from(t,n);if("number"==typeof t)throw new Error('The "data" argument must not be a number');return new e(t,n)},allocBuffer:function(t){if(e.alloc)return e.alloc(t);var n=new e(t);return n.fill(0),n},isBuffer:function(t){return e.isBuffer(t)},isStream:function(t){return t&&"function"==typeof t.on&&"function"==typeof t.pause&&"function"==typeof t.resume}}},{}],15:[function(t,e,n){"use strict";function i(t,e,n){var i,o=r.getTypeOf(e),s=r.extend(n||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(t=m(t)),s.createFolders&&(i=p(t))&&g.call(this,i,!0);var d,_="string"===o&&!1===s.binary&&!1===s.base64;n&&void 0!==n.binary||(s.binary=!_),(e instanceof u&&0===e.uncompressedSize||s.dir||!e||0===e.length)&&(s.base64=!1,s.binary=!0,e="",s.compression="STORE",o="string"),d=e instanceof u||e instanceof a?e:h.isNode&&h.isStream(e)?new f(t,e):r.prepareContent(t,e,s.binary,s.optimizedBinaryString,s.base64);var v=new c(t,d,s);this.files[t]=v}var o=t("./utf8"),r=t("./utils"),a=t("./stream/GenericWorker"),s=t("./stream/StreamHelper"),l=t("./defaults"),u=t("./compressedObject"),c=t("./zipObject"),d=t("./generate"),h=t("./nodejsUtils"),f=t("./nodejs/NodejsStreamInputAdapter"),p=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return 0<e?t.substring(0,e):""},m=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},g=function(t,e){return e=void 0!==e?e:l.createFolders,t=m(t),this.files[t]||i.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function _(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(t){var e,n,i;for(e in this.files)this.files.hasOwnProperty(e)&&(i=this.files[e],(n=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(n,i))},filter:function(t){var e=[];return this.forEach((function(n,i){t(n,i)&&e.push(i)})),e},file:function(t,e,n){if(1!==arguments.length)return t=this.root+t,i.call(this,t,e,n),this;if(_(t)){var o=t;return this.filter((function(t,e){return!e.dir&&o.test(t)}))}var r=this.files[this.root+t];return r&&!r.dir?r:null},folder:function(t){if(!t)return this;if(_(t))return this.filter((function(e,n){return n.dir&&t.test(e)}));var e=this.root+t,n=g.call(this,e),i=this.clone();return i.root=n.name,i},remove:function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var n=this.filter((function(e,n){return n.name.slice(0,t.length)===t})),i=0;i<n.length;i++)delete this.files[n[i].name];return this},generate:function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(t){var e,n={};try{if((n=r.extend(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=n.type.toLowerCase(),n.compression=n.compression.toUpperCase(),"binarystring"===n.type&&(n.type="string"),!n.type)throw new Error("No output type specified.");r.checkSupport(n.type),"darwin"!==n.platform&&"freebsd"!==n.platform&&"linux"!==n.platform&&"sunos"!==n.platform||(n.platform="UNIX"),"win32"===n.platform&&(n.platform="DOS");var i=n.comment||this.comment||"";e=d.generateWorker(this,n,i)}catch(t){(e=new a("error")).error(t)}return new s(e,n.type||"string",n.mimeType)},generateAsync:function(t,e){return this.generateInternalStream(t).accumulate(e)},generateNodeStream:function(t,e){return(t=t||{}).type||(t.type="nodebuffer"),this.generateInternalStream(t).toNodejsStream(e)}};e.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(t,e,n){e.exports=t("stream")},{stream:void 0}],17:[function(t,e,n){"use strict";var i=t("./DataReader");function o(t){i.call(this,t);for(var e=0;e<this.data.length;e++)t[e]=255&t[e]}t("../utils").inherits(o,i),o.prototype.byteAt=function(t){return this.data[this.zero+t]},o.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),o=t.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===e&&this.data[r+1]===n&&this.data[r+2]===i&&this.data[r+3]===o)return r-this.zero;return-1},o.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),i=t.charCodeAt(2),o=t.charCodeAt(3),r=this.readData(4);return e===r[0]&&n===r[1]&&i===r[2]&&o===r[3]},o.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./DataReader":18}],18:[function(t,e,n){"use strict";var i=t("../utils");function o(t){this.data=t,this.length=t.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(t){this.checkIndex(this.index+t)},checkIndex:function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},setIndex:function(t){this.checkIndex(t),this.index=t},skip:function(t){this.setIndex(this.index+t)},byteAt:function(t){},readInt:function(t){var e,n=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)n=(n<<8)+this.byteAt(e);return this.index+=t,n},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=o},{"../utils":32}],19:[function(t,e,n){"use strict";var i=t("./Uint8ArrayReader");function o(t){i.call(this,t)}t("../utils").inherits(o,i),o.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,n){"use strict";var i=t("./DataReader");function o(t){i.call(this,t)}t("../utils").inherits(o,i),o.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},o.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},o.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},o.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./DataReader":18}],21:[function(t,e,n){"use strict";var i=t("./ArrayReader");function o(t){i.call(this,t)}t("../utils").inherits(o,i),o.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,n){"use strict";var i=t("../utils"),o=t("../support"),r=t("./ArrayReader"),a=t("./StringReader"),s=t("./NodeBufferReader"),l=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||o.uint8array?"nodebuffer"===e?new s(t):o.uint8array?new l(i.transformTo("uint8array",t)):new r(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,n){"use strict";n.LOCAL_FILE_HEADER="PK\x03\x04",n.CENTRAL_FILE_HEADER="PK\x01\x02",n.CENTRAL_DIRECTORY_END="PK\x05\x06",n.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",n.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",n.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(t,e,n){"use strict";var i=t("./GenericWorker"),o=t("../utils");function r(t){i.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(r,i),r.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},e.exports=r},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,n){"use strict";var i=t("./GenericWorker"),o=t("../crc32");function r(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(r,i),r.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=r},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,n){"use strict";var i=t("../utils"),o=t("./GenericWorker");function r(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(r,o),r.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}o.prototype.processChunk.call(this,t)},e.exports=r},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,n){"use strict";var i=t("../utils"),o=t("./GenericWorker");function r(t){o.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(r,o),r.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},r.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},r.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},r.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=r},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,n){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var n=0;n<this._listeners[t].length;n++)this._listeners[t][n].call(this,e)},pipe:function(t){return t.registerPrevious(this)},registerPrevious:function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var t=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},flush:function(){},processChunk:function(t){this.push(t)},withStreamInfo:function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t}},e.exports=i},{}],29:[function(t,n,i){"use strict";var o=t("../utils"),r=t("./ConvertWorker"),a=t("./GenericWorker"),s=t("../base64"),l=t("../support"),u=t("../external"),c=null;if(l.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function d(t,e,n){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=n,o.checkSupport(i),this._worker=t.pipe(new r(i)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}d.prototype={accumulate:function(t){return function(t,n){return new u.Promise((function(i,r){var a=[],l=t._internalType,u=t._outputType,c=t._mimeType;t.on("data",(function(t,e){a.push(t),n&&n(e)})).on("error",(function(t){a=[],r(t)})).on("end",(function(){try{var t=function(t,e,n){switch(t){case"blob":return o.newBlob(o.transformTo("arraybuffer",e),n);case"base64":return s.encode(e);default:return o.transformTo(t,e)}}(u,function(t,n){var i,o=0,r=null,a=0;for(i=0;i<n.length;i++)a+=n[i].length;switch(t){case"string":return n.join("");case"array":return Array.prototype.concat.apply([],n);case"uint8array":for(r=new Uint8Array(a),i=0;i<n.length;i++)r.set(n[i],o),o+=n[i].length;return r;case"nodebuffer":return e.concat(n);default:throw new Error("concat : unsupported type '"+t+"'")}}(l,a),c);i(t)}catch(t){r(t)}a=[]})).resume()}))}(this,t)},on:function(t,e){var n=this;return"data"===t?this._worker.on(t,(function(t){e.call(n,t.data,t.meta)})):this._worker.on(t,(function(){o.delay(e,arguments,n)})),this},resume:function(){return o.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(t){if(o.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new c(this,{objectMode:"nodebuffer"!==this._outputType},t)}},n.exports=d},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,n,i){"use strict";if(i.base64=!0,i.array=!0,i.string=!0,i.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,i.nodebuffer="undefined"!=typeof e,i.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)i.blob=!1;else{var o=new ArrayBuffer(0);try{i.blob=0===new Blob([o],{type:"application/zip"}).size}catch(t){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(o),i.blob=0===r.getBlob("application/zip").size}catch(t){i.blob=!1}}}try{i.nodestream=!!t("readable-stream").Readable}catch(t){i.nodestream=!1}},{"readable-stream":16}],31:[function(t,e,n){"use strict";for(var i=t("./utils"),o=t("./support"),r=t("./nodejsUtils"),a=t("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){a.call(this,"utf-8 decode"),this.leftOver=null}function c(){a.call(this,"utf-8 encode")}s[254]=s[254]=1,n.utf8encode=function(t){return o.nodebuffer?r.newBufferFrom(t,"utf-8"):function(t){var e,n,i,r,a,s=t.length,l=0;for(r=0;r<s;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=o.uint8array?new Uint8Array(l):new Array(l),r=a=0;a<l;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(i=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(i-56320),r++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e}(t)},n.utf8decode=function(t){return o.nodebuffer?i.transformTo("nodebuffer",t).toString("utf-8"):function(t){var e,n,o,r,a=t.length,l=new Array(2*a);for(e=n=0;e<a;)if((o=t[e++])<128)l[n++]=o;else if(4<(r=s[o]))l[n++]=65533,e+=r-1;else{for(o&=2===r?31:3===r?15:7;1<r&&e<a;)o=o<<6|63&t[e++],r--;1<r?l[n++]=65533:o<65536?l[n++]=o:(o-=65536,l[n++]=55296|o>>10&1023,l[n++]=56320|1023&o)}return l.length!==n&&(l.subarray?l=l.subarray(0,n):l.length=n),i.applyFromCharCode(l)}(t=i.transformTo(o.uint8array?"uint8array":"array",t))},i.inherits(u,a),u.prototype.processChunk=function(t){var e=i.transformTo(o.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var a=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+s[t[n]]>e?n:e}(e),l=e;a!==e.length&&(o.uint8array?(l=e.subarray(0,a),this.leftOver=e.subarray(a,e.length)):(l=e.slice(0,a),this.leftOver=e.slice(a,e.length))),this.push({data:n.utf8decode(l),meta:t.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:n.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},n.Utf8DecodeWorker=u,i.inherits(c,a),c.prototype.processChunk=function(t){this.push({data:n.utf8encode(t.data),meta:t.meta})},n.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,e,n){"use strict";var i=t("./support"),o=t("./base64"),r=t("./nodejsUtils"),a=t("set-immediate-shim"),s=t("./external");function l(t){return t}function u(t,e){for(var n=0;n<t.length;++n)e[n]=255&t.charCodeAt(n);return e}n.newBlob=function(e,i){n.checkSupport("blob");try{return new Blob([e],{type:i})}catch(t){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return o.append(e),o.getBlob(i)}catch(t){throw new Error("Bug : can't construct the Blob.")}}};var c={stringifyByChunk:function(t,e,n){var i=[],o=0,r=t.length;if(r<=n)return String.fromCharCode.apply(null,t);for(;o<r;)"array"===e||"nodebuffer"===e?i.push(String.fromCharCode.apply(null,t.slice(o,Math.min(o+n,r)))):i.push(String.fromCharCode.apply(null,t.subarray(o,Math.min(o+n,r)))),o+=n;return i.join("")},stringifyByChar:function(t){for(var e="",n=0;n<t.length;n++)e+=String.fromCharCode(t[n]);return e},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(t){return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&1===String.fromCharCode.apply(null,r.allocBuffer(1)).length}catch(t){return!1}}()}};function d(t){var e=65536,i=n.getTypeOf(t),o=!0;if("uint8array"===i?o=c.applyCanBeUsed.uint8array:"nodebuffer"===i&&(o=c.applyCanBeUsed.nodebuffer),o)for(;1<e;)try{return c.stringifyByChunk(t,i,e)}catch(t){e=Math.floor(e/2)}return c.stringifyByChar(t)}function h(t,e){for(var n=0;n<t.length;n++)e[n]=t[n];return e}n.applyFromCharCode=d;var f={};f.string={string:l,array:function(t){return u(t,new Array(t.length))},arraybuffer:function(t){return f.string.uint8array(t).buffer},uint8array:function(t){return u(t,new Uint8Array(t.length))},nodebuffer:function(t){return u(t,r.allocBuffer(t.length))}},f.array={string:d,array:l,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(t)}},f.arraybuffer={string:function(t){return d(new Uint8Array(t))},array:function(t){return h(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:l,uint8array:function(t){return new Uint8Array(t)},nodebuffer:function(t){return r.newBufferFrom(new Uint8Array(t))}},f.uint8array={string:d,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:l,nodebuffer:function(t){return r.newBufferFrom(t)}},f.nodebuffer={string:d,array:function(t){return h(t,new Array(t.length))},arraybuffer:function(t){return f.nodebuffer.uint8array(t).buffer},uint8array:function(t){return h(t,new Uint8Array(t.length))},nodebuffer:l},n.transformTo=function(t,e){if(e=e||"",!t)return e;n.checkSupport(t);var i=n.getTypeOf(e);return f[i][t](e)},n.getTypeOf=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":i.nodebuffer&&r.isBuffer(t)?"nodebuffer":i.uint8array&&t instanceof Uint8Array?"uint8array":i.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(t){if(!i[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(t){var e,n,i="";for(n=0;n<(t||"").length;n++)i+="\\x"+((e=t.charCodeAt(n))<16?"0":"")+e.toString(16).toUpperCase();return i},n.delay=function(t,e,n){a((function(){t.apply(n||null,e||[])}))},n.inherits=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n},n.extend=function(){var t,e,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])arguments[t].hasOwnProperty(e)&&void 0===n[e]&&(n[e]=arguments[t][e]);return n},n.prepareContent=function(t,e,r,a,l){return s.Promise.resolve(e).then((function(t){return i.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new s.Promise((function(e,n){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=function(t){n(t.target.error)},i.readAsArrayBuffer(t)})):t})).then((function(e){var c=n.getTypeOf(e);return c?("arraybuffer"===c?e=n.transformTo("uint8array",e):"string"===c&&(l?e=o.decode(e):r&&!0!==a&&(e=function(t){return u(t,i.uint8array?new Uint8Array(t.length):new Array(t.length))}(e))),e):s.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),o=t("./utils"),r=t("./signature"),a=t("./zipEntry"),s=(t("./utf8"),t("./support"));function l(t){this.files=[],this.loadOptions=t}l.prototype={checkSignature:function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(e)+", expected "+o.pretty(t)+")")}},isSignature:function(t,e){var n=this.reader.index;this.reader.setIndex(t);var i=this.reader.readString(4)===e;return this.reader.setIndex(n),i},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=s.uint8array?"uint8array":"array",n=o.transformTo(e,t);this.zipComment=this.loadOptions.decodeFileName(n)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,n,i=this.zip64EndOfCentralSize-44;0<i;)t=this.reader.readInt(2),e=this.reader.readInt(4),n=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:n}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(r.LOCAL_FILE_HEADER),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},readCentralDir:function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(r.CENTRAL_FILE_HEADER);)(t=new a({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var t=this.reader.lastIndexOfSignature(r.CENTRAL_DIRECTORY_END);if(t<0)throw this.isSignature(0,r.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(r.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,r.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(r.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var n=this.centralDirOffset+this.centralDirSize;this.zip64&&(n+=20,n+=12+this.zip64EndOfCentralSize);var i=e-n;if(0<i)this.isSignature(e,r.CENTRAL_FILE_HEADER)||(this.reader.zero=i);else if(i<0)throw new Error("Corrupted zip: missing "+Math.abs(i)+" bytes.")},prepareReader:function(t){this.reader=i(t)},load:function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(t,e,n){"use strict";var i=t("./reader/readerFor"),o=t("./utils"),r=t("./compressedObject"),a=t("./crc32"),s=t("./utf8"),l=t("./compressions"),u=t("./support");function c(t,e){this.options=t,this.loadOptions=e}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(t){var e,n;if(t.skip(22),this.fileNameLength=t.readInt(2),n=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in l)if(l.hasOwnProperty(e)&&l[e].magic===t)return l[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new r(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},readCentralPart:function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==t&&(this.dosPermissions=63&this.externalFileAttributes),3==t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(t){if(this.extraFields[1]){var e=i(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(t){var e,n,i,o=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index+4<o;)e=t.readInt(2),n=t.readInt(2),i=t.readData(n),this.extraFields[e]={id:e,length:n,value:i};t.setIndex(o)},handleUTF8:function(){var t=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var n=o.transformTo(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var r=o.transformTo(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(r)}}},findExtraFieldUnicodePath:function(){var t=this.extraFields[28789];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileName)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null},findExtraFieldUnicodeComment:function(){var t=this.extraFields[25461];if(t){var e=i(t.value);return 1!==e.readInt(1)||a(this.fileComment)!==e.readInt(4)?null:s.utf8decode(e.readData(t.length-5))}return null}},e.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(t,e,n){"use strict";function i(t,e,n){this.name=t,this.dir=n.dir,this.date=n.date,this.comment=n.comment,this.unixPermissions=n.unixPermissions,this.dosPermissions=n.dosPermissions,this._data=e,this._dataBinary=n.binary,this.options={compression:n.compression,compressionOptions:n.compressionOptions}}var o=t("./stream/StreamHelper"),r=t("./stream/DataWorker"),a=t("./utf8"),s=t("./compressedObject"),l=t("./stream/GenericWorker");i.prototype={internalStream:function(t){var e=null,n="string";try{if(!t)throw new Error("No output type specified.");var i="string"===(n=t.toLowerCase())||"text"===n;"binarystring"!==n&&"text"!==n||(n="string"),e=this._decompressWorker();var r=!this._dataBinary;r&&!i&&(e=e.pipe(new a.Utf8EncodeWorker)),!r&&i&&(e=e.pipe(new a.Utf8DecodeWorker))}catch(t){(e=new l("error")).error(t)}return new o(e,n,"")},async:function(t,e){return this.internalStream(t).accumulate(e)},nodeStream:function(t,e){return this.internalStream(t||"nodebuffer").toNodejsStream(e)},_compressWorker:function(t,e){if(this._data instanceof s&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var n=this._decompressWorker();return this._dataBinary||(n=n.pipe(new a.Utf8EncodeWorker)),s.createWorkerFrom(n,t,e)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new r(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)i.prototype[u[d]]=c;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,e,i){(function(t){"use strict";var n,i,o=t.MutationObserver||t.WebKitMutationObserver;if(o){var r=0,a=new o(c),s=t.document.createTextNode("");a.observe(s,{characterData:!0}),n=function(){s.data=r=++r%2}}else if(t.setImmediate||void 0===t.MessageChannel)n="document"in t&&"onreadystatechange"in t.document.createElement("script")?function(){var e=t.document.createElement("script");e.onreadystatechange=function(){c(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},t.document.documentElement.appendChild(e)}:function(){setTimeout(c,0)};else{var l=new t.MessageChannel;l.port1.onmessage=c,n=function(){l.port2.postMessage(0)}}var u=[];function c(){var t,e;i=!0;for(var n=u.length;n;){for(e=u,u=[],t=-1;++t<n;)e[t]();n=u.length}i=!1}e.exports=function(t){1!==u.push(t)||i||n()}}).call(this,"undefined"!=typeof n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(t,e,n){"use strict";var i=t("immediate");function o(){}var r={},a=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(t){if("function"!=typeof t)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,t!==o&&f(this,t)}function c(t,e,n){this.promise=t,"function"==typeof e&&(this.onFulfilled=e,this.callFulfilled=this.otherCallFulfilled),"function"==typeof n&&(this.onRejected=n,this.callRejected=this.otherCallRejected)}function d(t,e,n){i((function(){var i;try{i=e(n)}catch(i){return r.reject(t,i)}i===t?r.reject(t,new TypeError("Cannot resolve promise with itself")):r.resolve(t,i)}))}function h(t){var e=t&&t.then;if(t&&("object"==typeof t||"function"==typeof t)&&"function"==typeof e)return function(){e.apply(t,arguments)}}function f(t,e){var n=!1;function i(e){n||(n=!0,r.reject(t,e))}function o(e){n||(n=!0,r.resolve(t,e))}var a=p((function(){e(o,i)}));"error"===a.status&&i(a.value)}function p(t,e){var n={};try{n.value=t(e),n.status="success"}catch(t){n.status="error",n.value=t}return n}(e.exports=u).prototype.finally=function(t){if("function"!=typeof t)return this;var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){throw n}))}))},u.prototype.catch=function(t){return this.then(null,t)},u.prototype.then=function(t,e){if("function"!=typeof t&&this.state===s||"function"!=typeof e&&this.state===a)return this;var n=new this.constructor(o);return this.state!==l?d(n,this.state===s?t:e,this.outcome):this.queue.push(new c(n,t,e)),n},c.prototype.callFulfilled=function(t){r.resolve(this.promise,t)},c.prototype.otherCallFulfilled=function(t){d(this.promise,this.onFulfilled,t)},c.prototype.callRejected=function(t){r.reject(this.promise,t)},c.prototype.otherCallRejected=function(t){d(this.promise,this.onRejected,t)},r.resolve=function(t,e){var n=p(h,e);if("error"===n.status)return r.reject(t,n.value);var i=n.value;if(i)f(t,i);else{t.state=s,t.outcome=e;for(var o=-1,a=t.queue.length;++o<a;)t.queue[o].callFulfilled(e)}return t},r.reject=function(t,e){t.state=a,t.outcome=e;for(var n=-1,i=t.queue.length;++n<i;)t.queue[n].callRejected(e);return t},u.resolve=function(t){return t instanceof this?t:r.resolve(new this(o),t)},u.reject=function(t){var e=new this(o);return r.reject(e,t)},u.all=function(t){var e=this;if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var n=t.length,i=!1;if(!n)return this.resolve([]);for(var a=new Array(n),s=0,l=-1,u=new this(o);++l<n;)c(t[l],l);return u;function c(t,o){e.resolve(t).then((function(t){a[o]=t,++s!==n||i||(i=!0,r.resolve(u,a))}),(function(t){i||(i=!0,r.reject(u,t))}))}},u.race=function(t){if("[object Array]"!==Object.prototype.toString.call(t))return this.reject(new TypeError("must be an array"));var e=t.length,n=!1;if(!e)return this.resolve([]);for(var i,a=-1,s=new this(o);++a<e;)i=t[a],this.resolve(i).then((function(t){n||(n=!0,r.resolve(s,t))}),(function(t){n||(n=!0,r.reject(s,t))}));return s}},{immediate:36}],38:[function(t,e,n){"use strict";var i={};(0,t("./lib/utils/common").assign)(i,t("./lib/deflate"),t("./lib/inflate"),t("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(t,e,n){"use strict";var i=t("./zlib/deflate"),o=t("./utils/common"),r=t("./utils/strings"),a=t("./zlib/messages"),s=t("./zlib/zstream"),l=Object.prototype.toString;function u(t){if(!(this instanceof u))return new u(t);this.options=o.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&0<e.windowBits?e.windowBits=-e.windowBits:e.gzip&&0<e.windowBits&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var n=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==n)throw new Error(a[n]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?r.string2buf(e.dictionary):"[object ArrayBuffer]"===l.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(n=i.deflateSetDictionary(this.strm,c)))throw new Error(a[n]);this._dict_set=!0}}function c(t,e){var n=new u(e);if(n.push(t,!0),n.err)throw n.msg||a[n.err];return n.result}u.prototype.push=function(t,e){var n,a,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?s.input=r.string2buf(t):"[object ArrayBuffer]"===l.call(t)?s.input=new Uint8Array(t):s.input=t,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new o.Buf8(u),s.next_out=0,s.avail_out=u),1!==(n=i.deflate(s,a))&&0!==n)return this.onEnd(n),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(r.buf2binstring(o.shrinkBuf(s.output,s.next_out))):this.onData(o.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==n);return 4===a?(n=i.deflateEnd(this.strm),this.onEnd(n),this.ended=!0,0===n):2!==a||(this.onEnd(0),!(s.avail_out=0))},u.prototype.onData=function(t){this.chunks.push(t)},u.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Deflate=u,n.deflate=c,n.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},n.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(t,e,n){"use strict";var i=t("./zlib/inflate"),o=t("./utils/common"),r=t("./utils/strings"),a=t("./zlib/constants"),s=t("./zlib/messages"),l=t("./zlib/zstream"),u=t("./zlib/gzheader"),c=Object.prototype.toString;function d(t){if(!(this instanceof d))return new d(t);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},t||{});var e=this.options;e.raw&&0<=e.windowBits&&e.windowBits<16&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15)),!(0<=e.windowBits&&e.windowBits<16)||t&&t.windowBits||(e.windowBits+=32),15<e.windowBits&&e.windowBits<48&&0==(15&e.windowBits)&&(e.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var n=i.inflateInit2(this.strm,e.windowBits);if(n!==a.Z_OK)throw new Error(s[n]);this.header=new u,i.inflateGetHeader(this.strm,this.header)}function h(t,e){var n=new d(e);if(n.push(t,!0),n.err)throw n.msg||s[n.err];return n.result}d.prototype.push=function(t,e){var n,s,l,u,d,h,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,g=!1;if(this.ended)return!1;s=e===~~e?e:!0===e?a.Z_FINISH:a.Z_NO_FLUSH,"string"==typeof t?f.input=r.binstring2buf(t):"[object ArrayBuffer]"===c.call(t)?f.input=new Uint8Array(t):f.input=t,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new o.Buf8(p),f.next_out=0,f.avail_out=p),(n=i.inflate(f,a.Z_NO_FLUSH))===a.Z_NEED_DICT&&m&&(h="string"==typeof m?r.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,n=i.inflateSetDictionary(this.strm,h)),n===a.Z_BUF_ERROR&&!0===g&&(n=a.Z_OK,g=!1),n!==a.Z_STREAM_END&&n!==a.Z_OK)return this.onEnd(n),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&n!==a.Z_STREAM_END&&(0!==f.avail_in||s!==a.Z_FINISH&&s!==a.Z_SYNC_FLUSH)||("string"===this.options.to?(l=r.utf8border(f.output,f.next_out),u=f.next_out-l,d=r.buf2string(f.output,l),f.next_out=u,f.avail_out=p-u,u&&o.arraySet(f.output,f.output,l,u,0),this.onData(d)):this.onData(o.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(g=!0)}while((0<f.avail_in||0===f.avail_out)&&n!==a.Z_STREAM_END);return n===a.Z_STREAM_END&&(s=a.Z_FINISH),s===a.Z_FINISH?(n=i.inflateEnd(this.strm),this.onEnd(n),this.ended=!0,n===a.Z_OK):s!==a.Z_SYNC_FLUSH||(this.onEnd(a.Z_OK),!(f.avail_out=0))},d.prototype.onData=function(t){this.chunks.push(t)},d.prototype.onEnd=function(t){t===a.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},n.Inflate=d,n.inflate=h,n.inflateRaw=function(t,e){return(e=e||{}).raw=!0,h(t,e)},n.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,e,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;n.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}}return t},n.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,i,o){if(e.subarray&&t.subarray)t.set(e.subarray(n,n+i),o);else for(var r=0;r<i;r++)t[o+r]=e[n+r]},flattenChunks:function(t){var e,n,i,o,r,a;for(e=i=0,n=t.length;e<n;e++)i+=t[e].length;for(a=new Uint8Array(i),e=o=0,n=t.length;e<n;e++)r=t[e],a.set(r,o),o+=r.length;return a}},r={arraySet:function(t,e,n,i,o){for(var r=0;r<i;r++)t[o+r]=e[n+r]},flattenChunks:function(t){return[].concat.apply([],t)}};n.setTyped=function(t){t?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,o)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,r))},n.setTyped(i)},{}],42:[function(t,e,n){"use strict";var i=t("./common"),o=!0,r=!0;try{String.fromCharCode.apply(null,[0])}catch(t){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(t){r=!1}for(var a=new i.Buf8(256),s=0;s<256;s++)a[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(t,e){if(e<65537&&(t.subarray&&r||!t.subarray&&o))return String.fromCharCode.apply(null,i.shrinkBuf(t,e));for(var n="",a=0;a<e;a++)n+=String.fromCharCode(t[a]);return n}a[254]=a[254]=1,n.string2buf=function(t){var e,n,o,r,a,s=t.length,l=0;for(r=0;r<s;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(o=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(o-56320),r++),l+=n<128?1:n<2048?2:n<65536?3:4;for(e=new i.Buf8(l),r=a=0;a<l;r++)55296==(64512&(n=t.charCodeAt(r)))&&r+1<s&&56320==(64512&(o=t.charCodeAt(r+1)))&&(n=65536+(n-55296<<10)+(o-56320),r++),n<128?e[a++]=n:(n<2048?e[a++]=192|n>>>6:(n<65536?e[a++]=224|n>>>12:(e[a++]=240|n>>>18,e[a++]=128|n>>>12&63),e[a++]=128|n>>>6&63),e[a++]=128|63&n);return e},n.buf2binstring=function(t){return l(t,t.length)},n.binstring2buf=function(t){for(var e=new i.Buf8(t.length),n=0,o=e.length;n<o;n++)e[n]=t.charCodeAt(n);return e},n.buf2string=function(t,e){var n,i,o,r,s=e||t.length,u=new Array(2*s);for(n=i=0;n<s;)if((o=t[n++])<128)u[i++]=o;else if(4<(r=a[o]))u[i++]=65533,n+=r-1;else{for(o&=2===r?31:3===r?15:7;1<r&&n<s;)o=o<<6|63&t[n++],r--;1<r?u[i++]=65533:o<65536?u[i++]=o:(o-=65536,u[i++]=55296|o>>10&1023,u[i++]=56320|1023&o)}return l(u,i)},n.utf8border=function(t,e){var n;for((e=e||t.length)>t.length&&(e=t.length),n=e-1;0<=n&&128==(192&t[n]);)n--;return n<0||0===n?e:n+a[t[n]]>e?n:e}},{"./common":41}],43:[function(t,e,n){"use strict";e.exports=function(t,e,n,i){for(var o=65535&t|0,r=t>>>16&65535|0,a=0;0!==n;){for(n-=a=2e3<n?2e3:n;r=r+(o=o+e[i++]|0)|0,--a;);o%=65521,r%=65521}return o|r<<16|0}},{}],44:[function(t,e,n){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(t,e,n){"use strict";var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();e.exports=function(t,e,n,o){var r=i,a=o+n;t^=-1;for(var s=o;s<a;s++)t=t>>>8^r[255&(t^e[s])];return-1^t}},{}],46:[function(t,e,n){"use strict";var i,o=t("../utils/common"),r=t("./trees"),a=t("./adler32"),s=t("./crc32"),l=t("./messages"),u=-2,c=258,d=262,h=113;function f(t,e){return t.msg=l[e],e}function p(t){return(t<<1)-(4<t?9:0)}function m(t){for(var e=t.length;0<=--e;)t[e]=0}function g(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(o.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function _(t,e){r._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,g(t.strm)}function v(t,e){t.pending_buf[t.pending++]=e}function y(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function b(t,e){var n,i,o=t.max_chain_length,r=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-d?t.strstart-(t.w_size-d):0,u=t.window,h=t.w_mask,f=t.prev,p=t.strstart+c,m=u[r+a-1],g=u[r+a];t.prev_length>=t.good_match&&(o>>=2),s>t.lookahead&&(s=t.lookahead);do{if(u[(n=e)+a]===g&&u[n+a-1]===m&&u[n]===u[r]&&u[++n]===u[r+1]){r+=2,n++;do{}while(u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&u[++r]===u[++n]&&r<p);if(i=c-(p-r),r=p-c,a<i){if(t.match_start=e,s<=(a=i))break;m=u[r+a-1],g=u[r+a]}}}while((e=f[e&h])>l&&0!=--o);return a<=t.lookahead?a:t.lookahead}function w(t){var e,n,i,r,l,u,c,h,f,p,m=t.w_size;do{if(r=t.window_size-t.lookahead-t.strstart,t.strstart>=m+(m-d)){for(o.arraySet(t.window,t.window,m,m,0),t.match_start-=m,t.strstart-=m,t.block_start-=m,e=n=t.hash_size;i=t.head[--e],t.head[e]=m<=i?i-m:0,--n;);for(e=n=m;i=t.prev[--e],t.prev[e]=m<=i?i-m:0,--n;);r+=m}if(0===t.strm.avail_in)break;if(u=t.strm,c=t.window,h=t.strstart+t.lookahead,p=void 0,(f=r)<(p=u.avail_in)&&(p=f),n=0===p?0:(u.avail_in-=p,o.arraySet(c,u.input,u.next_in,p,h),1===u.state.wrap?u.adler=a(u.adler,c,p,h):2===u.state.wrap&&(u.adler=s(u.adler,c,p,h)),u.next_in+=p,u.total_in+=p,p),t.lookahead+=n,t.lookahead+t.insert>=3)for(l=t.strstart-t.insert,t.ins_h=t.window[l],t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[l+3-1])&t.hash_mask,t.prev[l&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=l,l++,t.insert--,!(t.lookahead+t.insert<3)););}while(t.lookahead<d&&0!==t.strm.avail_in)}function x(t,e){for(var n,i;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-d&&(t.match_length=b(t,n)),t.match_length>=3)if(i=r._tr_tally(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,0!=--t.match_length;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else i=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function C(t,e){for(var n,i,o;;){if(t.lookahead<d){if(w(t),t.lookahead<d&&0===e)return 1;if(0===t.lookahead)break}if(n=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=2,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-d&&(t.match_length=b(t,n),t.match_length<=5&&(1===t.strategy||3===t.match_length&&4096<t.strstart-t.match_start)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){for(o=t.strstart+t.lookahead-3,i=r._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-3),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!=--t.prev_length;);if(t.match_available=0,t.match_length=2,t.strstart++,i&&(_(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((i=r._tr_tally(t,0,t.window[t.strstart-1]))&&_(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=r._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}function S(t,e,n,i,o){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=i,this.func=o}function k(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new o.Buf16(1146),this.dyn_dtree=new o.Buf16(122),this.bl_tree=new o.Buf16(78),m(this.dyn_ltree),m(this.dyn_dtree),m(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(16),this.heap=new o.Buf16(573),m(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(573),m(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function I(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:h,t.adler=2===e.wrap?0:1,e.last_flush=0,r._tr_init(e),0):f(t,u)}function T(t){var e=I(t);return 0===e&&function(t){t.window_size=2*t.w_size,m(t.head),t.max_lazy_match=i[t.level].max_lazy,t.good_match=i[t.level].good_length,t.nice_match=i[t.level].nice_length,t.max_chain_length=i[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0}(t.state),e}function E(t,e,n,i,r,a){if(!t)return u;var s=1;if(-1===e&&(e=6),i<0?(s=0,i=-i):15<i&&(s=2,i-=16),r<1||9<r||8!==n||i<8||15<i||e<0||9<e||a<0||4<a)return f(t,u);8===i&&(i=9);var l=new k;return(t.state=l).strm=t,l.wrap=s,l.gzhead=null,l.w_bits=i,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=r+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new o.Buf8(2*l.w_size),l.head=new o.Buf16(l.hash_size),l.prev=new o.Buf16(l.w_size),l.lit_bufsize=1<<r+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new o.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=e,l.strategy=a,l.method=n,T(t)}i=[new S(0,0,0,0,(function(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(w(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var i=t.block_start+n;if((0===t.strstart||t.strstart>=i)&&(t.lookahead=t.strstart-i,t.strstart=i,_(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-d&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(_(t,!1),t.strm.avail_out),1)})),new S(4,4,8,4,x),new S(4,5,16,8,x),new S(4,6,32,32,x),new S(4,4,16,16,C),new S(8,16,32,32,C),new S(8,16,128,128,C),new S(8,32,128,256,C),new S(32,128,258,1024,C),new S(32,258,258,4096,C)],n.deflateInit=function(t,e){return E(t,e,8,15,8,0)},n.deflateInit2=E,n.deflateReset=T,n.deflateResetKeep=I,n.deflateSetHeader=function(t,e){return t&&t.state?2!==t.state.wrap?u:(t.state.gzhead=e,0):u},n.deflate=function(t,e){var n,o,a,l;if(!t||!t.state||5<e||e<0)return t?f(t,u):u;if(o=t.state,!t.output||!t.input&&0!==t.avail_in||666===o.status&&4!==e)return f(t,0===t.avail_out?-5:u);if(o.strm=t,n=o.last_flush,o.last_flush=e,42===o.status)if(2===o.wrap)t.adler=0,v(o,31),v(o,139),v(o,8),o.gzhead?(v(o,(o.gzhead.text?1:0)+(o.gzhead.hcrc?2:0)+(o.gzhead.extra?4:0)+(o.gzhead.name?8:0)+(o.gzhead.comment?16:0)),v(o,255&o.gzhead.time),v(o,o.gzhead.time>>8&255),v(o,o.gzhead.time>>16&255),v(o,o.gzhead.time>>24&255),v(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),v(o,255&o.gzhead.os),o.gzhead.extra&&o.gzhead.extra.length&&(v(o,255&o.gzhead.extra.length),v(o,o.gzhead.extra.length>>8&255)),o.gzhead.hcrc&&(t.adler=s(t.adler,o.pending_buf,o.pending,0)),o.gzindex=0,o.status=69):(v(o,0),v(o,0),v(o,0),v(o,0),v(o,0),v(o,9===o.level?2:2<=o.strategy||o.level<2?4:0),v(o,3),o.status=h);else{var d=8+(o.w_bits-8<<4)<<8;d|=(2<=o.strategy||o.level<2?0:o.level<6?1:6===o.level?2:3)<<6,0!==o.strstart&&(d|=32),d+=31-d%31,o.status=h,y(o,d),0!==o.strstart&&(y(o,t.adler>>>16),y(o,65535&t.adler)),t.adler=1}if(69===o.status)if(o.gzhead.extra){for(a=o.pending;o.gzindex<(65535&o.gzhead.extra.length)&&(o.pending!==o.pending_buf_size||(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),g(t),a=o.pending,o.pending!==o.pending_buf_size));)v(o,255&o.gzhead.extra[o.gzindex]),o.gzindex++;o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),o.gzindex===o.gzhead.extra.length&&(o.gzindex=0,o.status=73)}else o.status=73;if(73===o.status)if(o.gzhead.name){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),g(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.name.length?255&o.gzhead.name.charCodeAt(o.gzindex++):0,v(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.gzindex=0,o.status=91)}else o.status=91;if(91===o.status)if(o.gzhead.comment){a=o.pending;do{if(o.pending===o.pending_buf_size&&(o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),g(t),a=o.pending,o.pending===o.pending_buf_size)){l=1;break}l=o.gzindex<o.gzhead.comment.length?255&o.gzhead.comment.charCodeAt(o.gzindex++):0,v(o,l)}while(0!==l);o.gzhead.hcrc&&o.pending>a&&(t.adler=s(t.adler,o.pending_buf,o.pending-a,a)),0===l&&(o.status=103)}else o.status=103;if(103===o.status&&(o.gzhead.hcrc?(o.pending+2>o.pending_buf_size&&g(t),o.pending+2<=o.pending_buf_size&&(v(o,255&t.adler),v(o,t.adler>>8&255),t.adler=0,o.status=h)):o.status=h),0!==o.pending){if(g(t),0===t.avail_out)return o.last_flush=-1,0}else if(0===t.avail_in&&p(e)<=p(n)&&4!==e)return f(t,-5);if(666===o.status&&0!==t.avail_in)return f(t,-5);if(0!==t.avail_in||0!==o.lookahead||0!==e&&666!==o.status){var b=2===o.strategy?function(t,e){for(var n;;){if(0===t.lookahead&&(w(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,n=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(o,e):3===o.strategy?function(t,e){for(var n,i,o,a,s=t.window;;){if(t.lookahead<=c){if(w(t),t.lookahead<=c&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&0<t.strstart&&(i=s[o=t.strstart-1])===s[++o]&&i===s[++o]&&i===s[++o]){a=t.strstart+c;do{}while(i===s[++o]&&i===s[++o]&&i===s[++o]&&i===s[++o]&&i===s[++o]&&i===s[++o]&&i===s[++o]&&i===s[++o]&&o<a);t.match_length=c-(a-o),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(n=r._tr_tally(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=r._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(_(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(_(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(_(t,!1),0===t.strm.avail_out)?1:2}(o,e):i[o.level].func(o,e);if(3!==b&&4!==b||(o.status=666),1===b||3===b)return 0===t.avail_out&&(o.last_flush=-1),0;if(2===b&&(1===e?r._tr_align(o):5!==e&&(r._tr_stored_block(o,0,0,!1),3===e&&(m(o.head),0===o.lookahead&&(o.strstart=0,o.block_start=0,o.insert=0))),g(t),0===t.avail_out))return o.last_flush=-1,0}return 4!==e?0:o.wrap<=0?1:(2===o.wrap?(v(o,255&t.adler),v(o,t.adler>>8&255),v(o,t.adler>>16&255),v(o,t.adler>>24&255),v(o,255&t.total_in),v(o,t.total_in>>8&255),v(o,t.total_in>>16&255),v(o,t.total_in>>24&255)):(y(o,t.adler>>>16),y(o,65535&t.adler)),g(t),0<o.wrap&&(o.wrap=-o.wrap),0!==o.pending?0:1)},n.deflateEnd=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&103!==e&&e!==h&&666!==e?f(t,u):(t.state=null,e===h?f(t,-3):0):u},n.deflateSetDictionary=function(t,e){var n,i,r,s,l,c,d,h,f=e.length;if(!t||!t.state)return u;if(2===(s=(n=t.state).wrap)||1===s&&42!==n.status||n.lookahead)return u;for(1===s&&(t.adler=a(t.adler,e,f,0)),n.wrap=0,f>=n.w_size&&(0===s&&(m(n.head),n.strstart=0,n.block_start=0,n.insert=0),h=new o.Buf8(n.w_size),o.arraySet(h,e,f-n.w_size,n.w_size,0),e=h,f=n.w_size),l=t.avail_in,c=t.next_in,d=t.input,t.avail_in=f,t.next_in=0,t.input=e,w(n);n.lookahead>=3;){for(i=n.strstart,r=n.lookahead-2;n.ins_h=(n.ins_h<<n.hash_shift^n.window[i+3-1])&n.hash_mask,n.prev[i&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=i,i++,--r;);n.strstart=i,n.lookahead=2,w(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=2,n.match_available=0,t.next_in=c,t.input=d,t.avail_in=l,n.wrap=s,0},n.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(t,e,n){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(t,e,n){"use strict";e.exports=function(t,e){var n,i,o,r,a,s,l,u,c,d,h,f,p,m,g,_,v,y,b,w,x,C,S,k,I;n=t.state,i=t.next_in,k=t.input,o=i+(t.avail_in-5),r=t.next_out,I=t.output,a=r-(e-t.avail_out),s=r+(t.avail_out-257),l=n.dmax,u=n.wsize,c=n.whave,d=n.wnext,h=n.window,f=n.hold,p=n.bits,m=n.lencode,g=n.distcode,_=(1<<n.lenbits)-1,v=(1<<n.distbits)-1;t:do{p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),y=m[f&_];e:for(;;){if(f>>>=b=y>>>24,p-=b,0===(b=y>>>16&255))I[r++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(f&(1<<b)-1)];continue e}if(32&b){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&y,(b&=15)&&(p<b&&(f+=k[i++]<<p,p+=8),w+=f&(1<<b)-1,f>>>=b,p-=b),p<15&&(f+=k[i++]<<p,p+=8,f+=k[i++]<<p,p+=8),y=g[f&v];n:for(;;){if(f>>>=b=y>>>24,p-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(f&(1<<b)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&y,p<(b&=15)&&(f+=k[i++]<<p,(p+=8)<b&&(f+=k[i++]<<p,p+=8)),l<(x+=f&(1<<b)-1)){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=b,p-=b,(b=r-a)<x){if(c<(b=x-b)&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(S=h,(C=0)===d){if(C+=u-b,b<w){for(w-=b;I[r++]=h[C++],--b;);C=r-x,S=I}}else if(d<b){if(C+=u+d-b,(b-=d)<w){for(w-=b;I[r++]=h[C++],--b;);if(C=0,d<w){for(w-=b=d;I[r++]=h[C++],--b;);C=r-x,S=I}}}else if(C+=d-b,b<w){for(w-=b;I[r++]=h[C++],--b;);C=r-x,S=I}for(;2<w;)I[r++]=S[C++],I[r++]=S[C++],I[r++]=S[C++],w-=3;w&&(I[r++]=S[C++],1<w&&(I[r++]=S[C++]))}else{for(C=r-x;I[r++]=I[C++],I[r++]=I[C++],I[r++]=I[C++],2<(w-=3););w&&(I[r++]=I[C++],1<w&&(I[r++]=I[C++]))}break}}break}}while(i<o&&r<s);i-=w=p>>3,f&=(1<<(p-=w<<3))-1,t.next_in=i,t.next_out=r,t.avail_in=i<o?o-i+5:5-(i-o),t.avail_out=r<s?s-r+257:257-(r-s),n.hold=f,n.bits=p}},{}],49:[function(t,e,n){"use strict";var i=t("../utils/common"),o=t("./adler32"),r=t("./crc32"),a=t("./inffast"),s=t("./inftrees"),l=-2;function u(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function c(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function d(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new i.Buf32(852),e.distcode=e.distdyn=new i.Buf32(592),e.sane=1,e.back=-1,0):l}function h(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,d(t)):l}function f(t,e){var n,i;return t&&t.state?(i=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||15<e)?l:(null!==i.window&&i.wbits!==e&&(i.window=null),i.wrap=n,i.wbits=e,h(t))):l}function p(t,e){var n,i;return t?(i=new c,(t.state=i).window=null,0!==(n=f(t,e))&&(t.state=null),n):l}var m,g,_=!0;function v(t){if(_){var e;for(m=new i.Buf32(512),g=new i.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(s(1,t.lens,0,288,m,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;s(2,t.lens,0,32,g,0,t.work,{bits:5}),_=!1}t.lencode=m,t.lenbits=9,t.distcode=g,t.distbits=5}function y(t,e,n,o){var r,a=t.state;return null===a.window&&(a.wsize=1<<a.wbits,a.wnext=0,a.whave=0,a.window=new i.Buf8(a.wsize)),o>=a.wsize?(i.arraySet(a.window,e,n-a.wsize,a.wsize,0),a.wnext=0,a.whave=a.wsize):(o<(r=a.wsize-a.wnext)&&(r=o),i.arraySet(a.window,e,n-o,r,a.wnext),(o-=r)?(i.arraySet(a.window,e,n-o,o,0),a.wnext=o,a.whave=a.wsize):(a.wnext+=r,a.wnext===a.wsize&&(a.wnext=0),a.whave<a.wsize&&(a.whave+=r))),0}n.inflateReset=h,n.inflateReset2=f,n.inflateResetKeep=d,n.inflateInit=function(t){return p(t,15)},n.inflateInit2=p,n.inflate=function(t,e){var n,c,d,h,f,p,m,g,_,b,w,x,C,S,k,I,T,E,O,M,P,D,A,R,B=0,N=new i.Buf8(4),L=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return l;12===(n=t.state).mode&&(n.mode=13),f=t.next_out,d=t.output,m=t.avail_out,h=t.next_in,c=t.input,p=t.avail_in,g=n.hold,_=n.bits,b=p,w=m,D=0;t:for(;;)switch(n.mode){case 1:if(0===n.wrap){n.mode=13;break}for(;_<16;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(2&n.wrap&&35615===g){N[n.check=0]=255&g,N[1]=g>>>8&255,n.check=r(n.check,N,2,0),_=g=0,n.mode=2;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&g)<<8)+(g>>8))%31){t.msg="incorrect header check",n.mode=30;break}if(8!=(15&g)){t.msg="unknown compression method",n.mode=30;break}if(_-=4,P=8+(15&(g>>>=4)),0===n.wbits)n.wbits=P;else if(P>n.wbits){t.msg="invalid window size",n.mode=30;break}n.dmax=1<<P,t.adler=n.check=1,n.mode=512&g?10:12,_=g=0;break;case 2:for(;_<16;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(n.flags=g,8!=(255&n.flags)){t.msg="unknown compression method",n.mode=30;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=30;break}n.head&&(n.head.text=g>>8&1),512&n.flags&&(N[0]=255&g,N[1]=g>>>8&255,n.check=r(n.check,N,2,0)),_=g=0,n.mode=3;case 3:for(;_<32;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.head&&(n.head.time=g),512&n.flags&&(N[0]=255&g,N[1]=g>>>8&255,N[2]=g>>>16&255,N[3]=g>>>24&255,n.check=r(n.check,N,4,0)),_=g=0,n.mode=4;case 4:for(;_<16;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.head&&(n.head.xflags=255&g,n.head.os=g>>8),512&n.flags&&(N[0]=255&g,N[1]=g>>>8&255,n.check=r(n.check,N,2,0)),_=g=0,n.mode=5;case 5:if(1024&n.flags){for(;_<16;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.length=g,n.head&&(n.head.extra_len=g),512&n.flags&&(N[0]=255&g,N[1]=g>>>8&255,n.check=r(n.check,N,2,0)),_=g=0}else n.head&&(n.head.extra=null);n.mode=6;case 6:if(1024&n.flags&&(p<(x=n.length)&&(x=p),x&&(n.head&&(P=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),i.arraySet(n.head.extra,c,h,x,P)),512&n.flags&&(n.check=r(n.check,c,x,h)),p-=x,h+=x,n.length-=x),n.length))break t;n.length=0,n.mode=7;case 7:if(2048&n.flags){if(0===p)break t;for(x=0;P=c[h+x++],n.head&&P&&n.length<65536&&(n.head.name+=String.fromCharCode(P)),P&&x<p;);if(512&n.flags&&(n.check=r(n.check,c,x,h)),p-=x,h+=x,P)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=8;case 8:if(4096&n.flags){if(0===p)break t;for(x=0;P=c[h+x++],n.head&&P&&n.length<65536&&(n.head.comment+=String.fromCharCode(P)),P&&x<p;);if(512&n.flags&&(n.check=r(n.check,c,x,h)),p-=x,h+=x,P)break t}else n.head&&(n.head.comment=null);n.mode=9;case 9:if(512&n.flags){for(;_<16;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(g!==(65535&n.check)){t.msg="header crc mismatch",n.mode=30;break}_=g=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=12;break;case 10:for(;_<32;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}t.adler=n.check=u(g),_=g=0,n.mode=11;case 11:if(0===n.havedict)return t.next_out=f,t.avail_out=m,t.next_in=h,t.avail_in=p,n.hold=g,n.bits=_,2;t.adler=n.check=1,n.mode=12;case 12:if(5===e||6===e)break t;case 13:if(n.last){g>>>=7&_,_-=7&_,n.mode=27;break}for(;_<3;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}switch(n.last=1&g,_-=1,3&(g>>>=1)){case 0:n.mode=14;break;case 1:if(v(n),n.mode=20,6!==e)break;g>>>=2,_-=2;break t;case 2:n.mode=17;break;case 3:t.msg="invalid block type",n.mode=30}g>>>=2,_-=2;break;case 14:for(g>>>=7&_,_-=7&_;_<32;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if((65535&g)!=(g>>>16^65535)){t.msg="invalid stored block lengths",n.mode=30;break}if(n.length=65535&g,_=g=0,n.mode=15,6===e)break t;case 15:n.mode=16;case 16:if(x=n.length){if(p<x&&(x=p),m<x&&(x=m),0===x)break t;i.arraySet(d,c,h,x,f),p-=x,h+=x,m-=x,f+=x,n.length-=x;break}n.mode=12;break;case 17:for(;_<14;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(n.nlen=257+(31&g),g>>>=5,_-=5,n.ndist=1+(31&g),g>>>=5,_-=5,n.ncode=4+(15&g),g>>>=4,_-=4,286<n.nlen||30<n.ndist){t.msg="too many length or distance symbols",n.mode=30;break}n.have=0,n.mode=18;case 18:for(;n.have<n.ncode;){for(;_<3;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.lens[L[n.have++]]=7&g,g>>>=3,_-=3}for(;n.have<19;)n.lens[L[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,A={bits:n.lenbits},D=s(0,n.lens,0,19,n.lencode,0,n.work,A),n.lenbits=A.bits,D){t.msg="invalid code lengths set",n.mode=30;break}n.have=0,n.mode=19;case 19:for(;n.have<n.nlen+n.ndist;){for(;I=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((k=B>>>24)<=_);){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(T<16)g>>>=k,_-=k,n.lens[n.have++]=T;else{if(16===T){for(R=k+2;_<R;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(g>>>=k,_-=k,0===n.have){t.msg="invalid bit length repeat",n.mode=30;break}P=n.lens[n.have-1],x=3+(3&g),g>>>=2,_-=2}else if(17===T){for(R=k+3;_<R;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}_-=k,P=0,x=3+(7&(g>>>=k)),g>>>=3,_-=3}else{for(R=k+7;_<R;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}_-=k,P=0,x=11+(127&(g>>>=k)),g>>>=7,_-=7}if(n.have+x>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=30;break}for(;x--;)n.lens[n.have++]=P}}if(30===n.mode)break;if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=30;break}if(n.lenbits=9,A={bits:n.lenbits},D=s(1,n.lens,0,n.nlen,n.lencode,0,n.work,A),n.lenbits=A.bits,D){t.msg="invalid literal/lengths set",n.mode=30;break}if(n.distbits=6,n.distcode=n.distdyn,A={bits:n.distbits},D=s(2,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,A),n.distbits=A.bits,D){t.msg="invalid distances set",n.mode=30;break}if(n.mode=20,6===e)break t;case 20:n.mode=21;case 21:if(6<=p&&258<=m){t.next_out=f,t.avail_out=m,t.next_in=h,t.avail_in=p,n.hold=g,n.bits=_,a(t,w),f=t.next_out,d=t.output,m=t.avail_out,h=t.next_in,c=t.input,p=t.avail_in,g=n.hold,_=n.bits,12===n.mode&&(n.back=-1);break}for(n.back=0;I=(B=n.lencode[g&(1<<n.lenbits)-1])>>>16&255,T=65535&B,!((k=B>>>24)<=_);){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(I&&0==(240&I)){for(E=k,O=I,M=T;I=(B=n.lencode[M+((g&(1<<E+O)-1)>>E)])>>>16&255,T=65535&B,!(E+(k=B>>>24)<=_);){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}g>>>=E,_-=E,n.back+=E}if(g>>>=k,_-=k,n.back+=k,n.length=T,0===I){n.mode=26;break}if(32&I){n.back=-1,n.mode=12;break}if(64&I){t.msg="invalid literal/length code",n.mode=30;break}n.extra=15&I,n.mode=22;case 22:if(n.extra){for(R=n.extra;_<R;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.length+=g&(1<<n.extra)-1,g>>>=n.extra,_-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=23;case 23:for(;I=(B=n.distcode[g&(1<<n.distbits)-1])>>>16&255,T=65535&B,!((k=B>>>24)<=_);){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(0==(240&I)){for(E=k,O=I,M=T;I=(B=n.distcode[M+((g&(1<<E+O)-1)>>E)])>>>16&255,T=65535&B,!(E+(k=B>>>24)<=_);){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}g>>>=E,_-=E,n.back+=E}if(g>>>=k,_-=k,n.back+=k,64&I){t.msg="invalid distance code",n.mode=30;break}n.offset=T,n.extra=15&I,n.mode=24;case 24:if(n.extra){for(R=n.extra;_<R;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}n.offset+=g&(1<<n.extra)-1,g>>>=n.extra,_-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=30;break}n.mode=25;case 25:if(0===m)break t;if(x=w-m,n.offset>x){if((x=n.offset-x)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=30;break}C=x>n.wnext?(x-=n.wnext,n.wsize-x):n.wnext-x,x>n.length&&(x=n.length),S=n.window}else S=d,C=f-n.offset,x=n.length;for(m<x&&(x=m),m-=x,n.length-=x;d[f++]=S[C++],--x;);0===n.length&&(n.mode=21);break;case 26:if(0===m)break t;d[f++]=n.length,m--,n.mode=21;break;case 27:if(n.wrap){for(;_<32;){if(0===p)break t;p--,g|=c[h++]<<_,_+=8}if(w-=m,t.total_out+=w,n.total+=w,w&&(t.adler=n.check=n.flags?r(n.check,d,w,f-w):o(n.check,d,w,f-w)),w=m,(n.flags?g:u(g))!==n.check){t.msg="incorrect data check",n.mode=30;break}_=g=0}n.mode=28;case 28:if(n.wrap&&n.flags){for(;_<32;){if(0===p)break t;p--,g+=c[h++]<<_,_+=8}if(g!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=30;break}_=g=0}n.mode=29;case 29:D=1;break t;case 30:D=-3;break t;case 31:return-4;case 32:default:return l}return t.next_out=f,t.avail_out=m,t.next_in=h,t.avail_in=p,n.hold=g,n.bits=_,(n.wsize||w!==t.avail_out&&n.mode<30&&(n.mode<27||4!==e))&&y(t,t.output,t.next_out,w-t.avail_out)?(n.mode=31,-4):(b-=t.avail_in,w-=t.avail_out,t.total_in+=b,t.total_out+=w,n.total+=w,n.wrap&&w&&(t.adler=n.check=n.flags?r(n.check,d,w,t.next_out-w):o(n.check,d,w,t.next_out-w)),t.data_type=n.bits+(n.last?64:0)+(12===n.mode?128:0)+(20===n.mode||15===n.mode?256:0),(0==b&&0===w||4===e)&&0===D&&(D=-5),D)},n.inflateEnd=function(t){if(!t||!t.state)return l;var e=t.state;return e.window&&(e.window=null),t.state=null,0},n.inflateGetHeader=function(t,e){var n;return t&&t.state?0==(2&(n=t.state).wrap)?l:((n.head=e).done=!1,0):l},n.inflateSetDictionary=function(t,e){var n,i=e.length;return t&&t.state?0!==(n=t.state).wrap&&11!==n.mode?l:11===n.mode&&o(1,e,i,0)!==n.check?-3:y(t,e,i,i)?(n.mode=31,-4):(n.havedict=1,0):l},n.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(t,e,n){"use strict";var i=t("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],r=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],a=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(t,e,n,l,u,c,d,h){var f,p,m,g,_,v,y,b,w,x=h.bits,C=0,S=0,k=0,I=0,T=0,E=0,O=0,M=0,P=0,D=0,A=null,R=0,B=new i.Buf16(16),N=new i.Buf16(16),L=null,F=0;for(C=0;C<=15;C++)B[C]=0;for(S=0;S<l;S++)B[e[n+S]]++;for(T=x,I=15;1<=I&&0===B[I];I--);if(I<T&&(T=I),0===I)return u[c++]=20971520,u[c++]=20971520,h.bits=1,0;for(k=1;k<I&&0===B[k];k++);for(T<k&&(T=k),C=M=1;C<=15;C++)if(M<<=1,(M-=B[C])<0)return-1;if(0<M&&(0===t||1!==I))return-1;for(N[1]=0,C=1;C<15;C++)N[C+1]=N[C]+B[C];for(S=0;S<l;S++)0!==e[n+S]&&(d[N[e[n+S]]++]=S);if(v=0===t?(A=L=d,19):1===t?(A=o,R-=257,L=r,F-=257,256):(A=a,L=s,-1),C=k,_=c,O=S=D=0,m=-1,g=(P=1<<(E=T))-1,1===t&&852<P||2===t&&592<P)return 1;for(;;){for(y=C-O,w=d[S]<v?(b=0,d[S]):d[S]>v?(b=L[F+d[S]],A[R+d[S]]):(b=96,0),f=1<<C-O,k=p=1<<E;u[_+(D>>O)+(p-=f)]=y<<24|b<<16|w|0,0!==p;);for(f=1<<C-1;D&f;)f>>=1;if(0!==f?(D&=f-1,D+=f):D=0,S++,0==--B[C]){if(C===I)break;C=e[n+d[S]]}if(T<C&&(D&g)!==m){for(0===O&&(O=T),_+=k,M=1<<(E=C-O);E+O<I&&!((M-=B[E+O])<=0);)E++,M<<=1;if(P+=1<<E,1===t&&852<P||2===t&&592<P)return 1;u[m=D&g]=T<<24|E<<16|_-c|0}}return 0!==D&&(u[_+D]=C-O<<24|64<<16|0),h.bits=T,0}},{"../utils/common":41}],51:[function(t,e,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(t,e,n){"use strict";var i=t("../utils/common");function o(t){for(var e=t.length;0<=--e;)t[e]=0}var r=256,a=286,s=30,l=15,u=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],c=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],d=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],h=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],f=new Array(576);o(f);var p=new Array(60);o(p);var m=new Array(512);o(m);var g=new Array(256);o(g);var _=new Array(29);o(_);var v,y,b,w=new Array(s);function x(t,e,n,i,o){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=i,this.max_length=o,this.has_stree=t&&t.length}function C(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function S(t){return t<256?m[t]:m[256+(t>>>7)]}function k(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function I(t,e,n){t.bi_valid>16-n?(t.bi_buf|=e<<t.bi_valid&65535,k(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=n-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function T(t,e,n){I(t,n[2*e],n[2*e+1])}function E(t,e){for(var n=0;n|=1&t,t>>>=1,n<<=1,0<--e;);return n>>>1}function O(t,e,n){var i,o,r=new Array(16),a=0;for(i=1;i<=l;i++)r[i]=a=a+n[i-1]<<1;for(o=0;o<=e;o++){var s=t[2*o+1];0!==s&&(t[2*o]=E(r[s]++,s))}}function M(t){var e;for(e=0;e<a;e++)t.dyn_ltree[2*e]=0;for(e=0;e<s;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function P(t){8<t.bi_valid?k(t,t.bi_buf):0<t.bi_valid&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function D(t,e,n,i){var o=2*e,r=2*n;return t[o]<t[r]||t[o]===t[r]&&i[e]<=i[n]}function A(t,e,n){for(var i=t.heap[n],o=n<<1;o<=t.heap_len&&(o<t.heap_len&&D(e,t.heap[o+1],t.heap[o],t.depth)&&o++,!D(e,i,t.heap[o],t.depth));)t.heap[n]=t.heap[o],n=o,o<<=1;t.heap[n]=i}function R(t,e,n){var i,o,a,s,l=0;if(0!==t.last_lit)for(;i=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],o=t.pending_buf[t.l_buf+l],l++,0===i?T(t,o,e):(T(t,(a=g[o])+r+1,e),0!==(s=u[a])&&I(t,o-=_[a],s),T(t,a=S(--i),n),0!==(s=c[a])&&I(t,i-=w[a],s)),l<t.last_lit;);T(t,256,e)}function B(t,e){var n,i,o,r=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=573,n=0;n<u;n++)0!==r[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):r[2*n+1]=0;for(;t.heap_len<2;)r[2*(o=t.heap[++t.heap_len]=c<2?++c:0)]=1,t.depth[o]=0,t.opt_len--,s&&(t.static_len-=a[2*o+1]);for(e.max_code=c,n=t.heap_len>>1;1<=n;n--)A(t,r,n);for(o=u;n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],A(t,r,1),i=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=i,r[2*o]=r[2*n]+r[2*i],t.depth[o]=(t.depth[n]>=t.depth[i]?t.depth[n]:t.depth[i])+1,r[2*n+1]=r[2*i+1]=o,t.heap[1]=o++,A(t,r,1),2<=t.heap_len;);t.heap[--t.heap_max]=t.heap[1],function(t,e){var n,i,o,r,a,s,u=e.dyn_tree,c=e.max_code,d=e.stat_desc.static_tree,h=e.stat_desc.has_stree,f=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,m=e.stat_desc.max_length,g=0;for(r=0;r<=l;r++)t.bl_count[r]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)m<(r=u[2*u[2*(i=t.heap[n])+1]+1]+1)&&(r=m,g++),u[2*i+1]=r,c<i||(t.bl_count[r]++,a=0,p<=i&&(a=f[i-p]),s=u[2*i],t.opt_len+=s*(r+a),h&&(t.static_len+=s*(d[2*i+1]+a)));if(0!==g){do{for(r=m-1;0===t.bl_count[r];)r--;t.bl_count[r]--,t.bl_count[r+1]+=2,t.bl_count[m]--,g-=2}while(0<g);for(r=m;0!==r;r--)for(i=t.bl_count[r];0!==i;)c<(o=t.heap[--n])||(u[2*o+1]!==r&&(t.opt_len+=(r-u[2*o+1])*u[2*o],u[2*o+1]=r),i--)}}(t,e),O(r,c,t.bl_count)}function N(t,e,n){var i,o,r=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),e[2*(n+1)+1]=65535,i=0;i<=n;i++)o=a,a=e[2*(i+1)+1],++s<l&&o===a||(s<u?t.bl_tree[2*o]+=s:0!==o?(o!==r&&t.bl_tree[2*o]++,t.bl_tree[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,r=o,u=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4))}function L(t,e,n){var i,o,r=-1,a=e[1],s=0,l=7,u=4;for(0===a&&(l=138,u=3),i=0;i<=n;i++)if(o=a,a=e[2*(i+1)+1],!(++s<l&&o===a)){if(s<u)for(;T(t,o,t.bl_tree),0!=--s;);else 0!==o?(o!==r&&(T(t,o,t.bl_tree),s--),T(t,16,t.bl_tree),I(t,s-3,2)):s<=10?(T(t,17,t.bl_tree),I(t,s-3,3)):(T(t,18,t.bl_tree),I(t,s-11,7));r=o,u=(s=0)===a?(l=138,3):o===a?(l=6,3):(l=7,4)}}o(w);var F=!1;function V(t,e,n,o){I(t,0+(o?1:0),3),function(t,e,n,o){P(t),k(t,n),k(t,~n),i.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}(t,e,n)}n._tr_init=function(t){F||(function(){var t,e,n,i,o,r=new Array(16);for(i=n=0;i<28;i++)for(_[i]=n,t=0;t<1<<u[i];t++)g[n++]=i;for(g[n-1]=i,i=o=0;i<16;i++)for(w[i]=o,t=0;t<1<<c[i];t++)m[o++]=i;for(o>>=7;i<s;i++)for(w[i]=o<<7,t=0;t<1<<c[i]-7;t++)m[256+o++]=i;for(e=0;e<=l;e++)r[e]=0;for(t=0;t<=143;)f[2*t+1]=8,t++,r[8]++;for(;t<=255;)f[2*t+1]=9,t++,r[9]++;for(;t<=279;)f[2*t+1]=7,t++,r[7]++;for(;t<=287;)f[2*t+1]=8,t++,r[8]++;for(O(f,287,r),t=0;t<s;t++)p[2*t+1]=5,p[2*t]=E(t,5);v=new x(f,u,257,a,l),y=new x(p,c,0,s,l),b=new x(new Array(0),d,0,19,7)}(),F=!0),t.l_desc=new C(t.dyn_ltree,v),t.d_desc=new C(t.dyn_dtree,y),t.bl_desc=new C(t.bl_tree,b),t.bi_buf=0,t.bi_valid=0,M(t)},n._tr_stored_block=V,n._tr_flush_block=function(t,e,n,i){var o,a,s=0;0<t.level?(2===t.strm.data_type&&(t.strm.data_type=function(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<r;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),B(t,t.l_desc),B(t,t.d_desc),s=function(t){var e;for(N(t,t.dyn_ltree,t.l_desc.max_code),N(t,t.dyn_dtree,t.d_desc.max_code),B(t,t.bl_desc),e=18;3<=e&&0===t.bl_tree[2*h[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),o=t.opt_len+3+7>>>3,(a=t.static_len+3+7>>>3)<=o&&(o=a)):o=a=n+5,n+4<=o&&-1!==e?V(t,e,n,i):4===t.strategy||a===o?(I(t,2+(i?1:0),3),R(t,f,p)):(I(t,4+(i?1:0),3),function(t,e,n,i){var o;for(I(t,e-257,5),I(t,n-1,5),I(t,i-4,4),o=0;o<i;o++)I(t,t.bl_tree[2*h[o]+1],3);L(t,t.dyn_ltree,e-1),L(t,t.dyn_dtree,n-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),R(t,t.dyn_ltree,t.dyn_dtree)),M(t),i&&P(t)},n._tr_tally=function(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(g[n]+r+1)]++,t.dyn_dtree[2*S(e)]++),t.last_lit===t.lit_bufsize-1},n._tr_align=function(t){I(t,2,3),T(t,256,f),function(t){16===t.bi_valid?(k(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}},{"../utils/common":41}],53:[function(t,e,n){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,e,n){"use strict";e.exports="function"==typeof i?i:function(){var t=[].slice.apply(arguments);t.splice(1,0,0),setTimeout.apply(null,t)}},{}]},{},[10])(10)}).call(this,n(52).Buffer,n(56),n(389).setImmediate)},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){var i="undefined"!==typeof t&&t||"undefined"!==typeof self&&self||window,o=Function.prototype.apply;function r(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(714),e.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(56))},function(t,e,n){"use strict";var i=u(n(55)),o=u(n(74)),r=u(n(43)),a=n(2),s=n(276),l=n(391);function u(t){return t&&t.__esModule?t:{default:t}}n(261);var c={thousands:"#,##0{0},"K"",millions:"#,##0{0},,"M"",billions:"#,##0{0},,,"B"",trillions:"#,##0{0},,,,"T"",percent:"0{0}%",decimal:"#{0}",fixedpoint:"#,##0{0}",exponential:"0{0}E+00",currency:" "},d=/a+/g,h=/E/g,f=/dE+/g,p=/L/g,m=/h/g,g=/\//g,_=/\[/g,v=/]/g,y=/./g,b=t.exports={_applyPrecision:function(t,e){var n,i;if(e>0){for(n="decimal"!==t?".":"",i=0;i<e;i++)n+="0";return n}return""},_hasArabicDigits:function(t){for(var e,n=0;n<t.length;n++)if((e=t.charCodeAt(n))>=1632&&e<1642)return!0;return!1},_convertDateFormatToOpenXml:function(t){return t.replace(g,"\\/").split("'").map((function(t,e){return e%2===0?t.replace(d,"AM/PM").replace(f,"d").replace(h,"d").replace(p,"M").replace(m,"H").replace(_,"\\[").replace(v,"\\]"):t?t.replace(y,"\\$&"):"'"})).join("")},_convertDateFormat:function(t){var e=(r.default.format(new Date(2009,8,8,6,5,4),t)||"").toString(),n=(0,s.getFormat)((function(e){return r.default.format(e,t)}));return n&&(n=this._convertDateFormatToOpenXml(n),n=this._getLanguageInfo(e)+n),n},_getLanguageInfo:function(t){var e=(0,l.getLanguageId)(),n=e?e.toString(16):"",i="";if(this._hasArabicDigits(t)){for(;n.length<3;)n="0"+n;i="[$-2010"+n+"]"}else n&&(i="[$-"+n+"]");return i},_convertNumberFormat:function(t,e,n){var r,a;return(a="currency"===t?o.default.getOpenXmlCurrencyFormat(n):c[t.toLowerCase()])&&(r=i.default.format(a,this._applyPrecision(t,e))),r},convertFormat:function(t,e,n,i){if((0,a.isDefined)(t)){if("date"===n)return b._convertDateFormat(t);if((0,a.isString)(t)&&c[t.toLowerCase()])return b._convertNumberFormat(t,e,i)}}}},function(t,e,n){"use strict";var i=n(193).locale,o={ar:1,bg:2,ca:3,"zh-Hans":4,cs:5,da:6,de:7,el:8,en:9,es:10,fi:11,fr:12,he:13,hu:14,is:15,it:16,ja:17,ko:18,nl:19,no:20,pl:21,pt:22,rm:23,ro:24,ru:25,hr:26,sk:27,sq:28,sv:29,th:30,tr:31,ur:32,id:33,uk:34,be:35,sl:36,et:37,lv:38,lt:39,tg:40,fa:41,vi:42,hy:43,az:44,eu:45,hsb:46,mk:47,tn:50,xh:52,zu:53,af:54,ka:55,fo:56,hi:57,mt:58,se:59,ga:60,ms:62,kk:63,ky:64,sw:65,tk:66,uz:67,tt:68,bn:69,pa:70,gu:71,or:72,ta:73,te:74,kn:75,ml:76,as:77,mr:78,sa:79,mn:80,bo:81,cy:82,km:83,lo:84,gl:86,kok:87,syr:90,si:91,iu:93,am:94,tzm:95,ne:97,fy:98,ps:99,fil:100,dv:101,ha:104,yo:106,quz:107,nso:108,ba:109,lb:110,kl:111,ig:112,ii:120,arn:122,moh:124,br:126,ug:128,mi:129,oc:130,co:131,gsw:132,sah:133,qut:134,rw:135,wo:136,prs:140,gd:145,"ar-SA":1025,"bg-BG":1026,"ca-ES":1027,"zh-TW":1028,"cs-CZ":1029,"da-DK":1030,"de-DE":1031,"el-GR":1032,"en-US":1033,"fi-FI":1035,"fr-FR":1036,"he-IL":1037,"hu-HU":1038,"is-IS":1039,"it-IT":1040,"ja-JP":1041,"ko-KR":1042,"nl-NL":1043,"nb-NO":1044,"pl-PL":1045,"pt-BR":1046,"rm-CH":1047,"ro-RO":1048,"ru-RU":1049,"hr-HR":1050,"sk-SK":1051,"sq-AL":1052,"sv-SE":1053,"th-TH":1054,"tr-TR":1055,"ur-PK":1056,"id-ID":1057,"uk-UA":1058,"be-BY":1059,"sl-SI":1060,"et-EE":1061,"lv-LV":1062,"lt-LT":1063,"tg-Cyrl-TJ":1064,"fa-IR":1065,"vi-VN":1066,"hy-AM":1067,"az-Latn-AZ":1068,"eu-ES":1069,"hsb-DE":1070,"mk-MK":1071,"tn-ZA":1074,"xh-ZA":1076,"zu-ZA":1077,"af-ZA":1078,"ka-GE":1079,"fo-FO":1080,"hi-IN":1081,"mt-MT":1082,"se-NO":1083,"ms-MY":1086,"kk-KZ":1087,"ky-KG":1088,"sw-KE":1089,"tk-TM":1090,"uz-Latn-UZ":1091,"tt-RU":1092,"bn-IN":1093,"pa-IN":1094,"gu-IN":1095,"or-IN":1096,"ta-IN":1097,"te-IN":1098,"kn-IN":1099,"ml-IN":1100,"as-IN":1101,"mr-IN":1102,"sa-IN":1103,"mn-MN":1104,"bo-CN":1105,"cy-GB":1106,"km-KH":1107,"lo-LA":1108,"gl-ES":1110,"kok-IN":1111,"syr-SY":1114,"si-LK":1115,"iu-Cans-CA":1117,"am-ET":1118,"ne-NP":1121,"fy-NL":1122,"ps-AF":1123,"fil-PH":1124,"dv-MV":1125,"ha-Latn-NG":1128,"yo-NG":1130,"quz-BO":1131,"nso-ZA":1132,"ba-RU":1133,"lb-LU":1134,"kl-GL":1135,"ig-NG":1136,"ii-CN":1144,"arn-CL":1146,"moh-CA":1148,"br-FR":1150,"ug-CN":1152,"mi-NZ":1153,"oc-FR":1154,"co-FR":1155,"gsw-FR":1156,"sah-RU":1157,"qut-GT":1158,"rw-RW":1159,"wo-SN":1160,"prs-AF":1164,"gd-GB":1169,"ar-IQ":2049,"zh-CN":2052,"de-CH":2055,"en-GB":2057,"es-MX":2058,"fr-BE":2060,"it-CH":2064,"nl-BE":2067,"nn-NO":2068,"pt-PT":2070,"sr-Latn-CS":2074,"sv-FI":2077,"az-Cyrl-AZ":2092,"dsb-DE":2094,"se-SE":2107,"ga-IE":2108,"ms-BN":2110,"uz-Cyrl-UZ":2115,"bn-BD":2117,"mn-Mong-CN":2128,"iu-Latn-CA":2141,"tzm-Latn-DZ":2143,"quz-EC":2155,"ar-EG":3073,"zh-HK":3076,"de-AT":3079,"en-AU":3081,"es-ES":3082,"fr-CA":3084,"sr-Cyrl-CS":3098,"se-FI":3131,"quz-PE":3179,"ar-LY":4097,"zh-SG":4100,"de-LU":4103,"en-CA":4105,"es-GT":4106,"fr-CH":4108,"hr-BA":4122,"smj-NO":4155,"ar-DZ":5121,"zh-MO":5124,"de-LI":5127,"en-NZ":5129,"es-CR":5130,"fr-LU":5132,"bs-Latn-BA":5146,"smj-SE":5179,"ar-MA":6145,"en-IE":6153,"es-PA":6154,"fr-MC":6156,"sr-Latn-BA":6170,"sma-NO":6203,"ar-TN":7169,"en-ZA":7177,"es-DO":7178,"sr-Cyrl-BA":7194,"sma-SE":7227,"ar-OM":8193,"en-JM":8201,"es-VE":8202,"bs-Cyrl-BA":8218,"sms-FI":8251,"ar-YE":9217,"en-029":9225,"es-CO":9226,"sr-Latn-RS":9242,"smn-FI":9275,"ar-SY":10241,"en-BZ":10249,"es-PE":10250,"sr-Cyrl-RS":10266,"ar-JO":11265,"en-TT":11273,"es-AR":11274,"sr-Latn-ME":11290,"ar-LB":12289,"en-ZW":12297,"es-EC":12298,"sr-Cyrl-ME":12314,"ar-KW":13313,"en-PH":13321,"es-CL":13322,"ar-AE":14337,"es-UY":14346,"ar-BH":15361,"es-PY":15370,"ar-QA":16385,"en-IN":16393,"es-BO":16394,"en-MY":17417,"es-SV":17418,"en-SG":18441,"es-HN":18442,"es-NI":19466,"es-PR":20490,"es-US":21514,"bs-Cyrl":25626,"bs-Latn":26650,"sr-Cyrl":27674,"sr-Latn":28698,smn:28731,"az-Cyrl":29740,sms:29755,zh:30724,nn:30740,bs:30746,"az-Latn":30764,sma:30779,"uz-Cyrl":30787,"mn-Cyrl":30800,"iu-Cans":30813,"zh-Hant":31748,nb:31764,sr:31770,"tg-Cyrl":31784,dsb:31790,smj:31803,"uz-Latn":31811,"mn-Mong":31824,"iu-Latn":31837,"tzm-Latn":31839,"ha-Latn":31848};e.getLanguageId=function(){return o[i()]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=a(n(120)),r=a(n(718));function a(t){return t&&t.__esModule?t:{default:t}}var s={tryCreateTag:function(t){var e=null;return(0,i.isDefined)(t)&&(e={patternFill:r.default.tryCreateTag(t.patternFill)},s.isEmpty(e)&&(e=null)),e},tryCreateFillFromSimpleFormat:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.backgroundColor,n=t.fillPatternType,o=t.fillPatternColor;return!(0,i.isDefined)(e)||(0,i.isDefined)(n)&&(0,i.isDefined)(o)?(0,i.isDefined)(n)&&(0,i.isDefined)(o)?{patternFill:{patternType:n,foregroundColor:{rgb:o},backgroundColor:{rgb:e}}}:void 0:{patternFill:{patternType:"solid",foregroundColor:{rgb:e}}}},copySimpleFormat:function(t,e){void 0!==t.backgroundColor&&(e.backgroundColor=t.backgroundColor),void 0!==t.fillPatternType&&(e.fillPatternType=t.fillPatternType),void 0!==t.fillPatternColor&&(e.fillPatternColor=t.fillPatternColor)},copy:function(t){var e=null;return(0,i.isDefined)(t)&&(e={},void 0!==t.patternFill&&(e.patternFill=r.default.copy(t.patternFill))),e},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,i.isDefined)(t)&&(0,i.isDefined)(e)&&r.default.areEqual(t.patternFill,e.patternFill)},isEmpty:function(t){return!(0,i.isDefined)(t)||r.default.isEmpty(t.patternFill)},toXml:function(t){return o.default.toXml("fill",{},r.default.toXml(t.patternFill))}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(120),a=(i=r)&&i.__esModule?i:{default:i};var s={_tryConvertColor:function(t){if("string"!==typeof t)return t;var e;if(t.length>0&&"#"===t[0]){var n=t.substr(1,t.length);e=6===n.length?"FF"+n:8===n.length?n[6]+n[7]+n.substr(0,6):n}else e=t;return e},tryCreateTag:function(t){var e=null;return(0,o.isDefined)(t)&&(e="string"===typeof t?{rgb:this._tryConvertColor(t)}:{rgb:this._tryConvertColor(t.rgb),theme:t.theme},s.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,o.isDefined)(t)&&("string"===typeof t?e=t:(e={},void 0!==t.rgb&&(e.rgb=t.rgb),void 0!==t.theme&&(e.theme=t.theme))),e},isEmpty:function(t){return!(0,o.isDefined)(t)||!(0,o.isDefined)(t.rgb)&&!(0,o.isDefined)(t.theme)},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,o.isDefined)(t)&&(0,o.isDefined)(e)&&t.rgb===e.rgb&&t.theme===e.theme},toXml:function(t,e){return a.default.toXml(t,{rgb:e.rgb,theme:e.theme})}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=a(n(120)),r=a(n(393));function a(t){return t&&t.__esModule?t:{default:t}}var s={tryCreateTag:function(t){var e=null;return(0,i.isDefined)(t)&&(e={size:t.size,name:t.name,family:t.family,scheme:t.scheme,bold:t.bold,italic:t.italic,underline:t.underline,color:r.default.tryCreateTag(t.color)},s.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,i.isDefined)(t)&&(e={},void 0!==t.size&&(e.size=t.size),void 0!==t.name&&(e.name=t.name),void 0!==t.family&&(e.family=t.family),void 0!==t.scheme&&(e.scheme=t.scheme),void 0!==t.bold&&(e.bold=t.bold),void 0!==t.italic&&(e.italic=t.italic),void 0!==t.underline&&(e.underline=t.underline),void 0!==t.color&&(e.color=r.default.copy(t.color))),e},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,i.isDefined)(t)&&(0,i.isDefined)(e)&&t.size===e.size&&t.name===e.name&&t.family===e.family&&t.scheme===e.scheme&&(t.bold===e.bold||!t.bold===!e.bold)&&(t.italic===e.italic||!t.italic===!e.italic)&&t.underline===e.underline&&r.default.areEqual(t.color,e.color)},isEmpty:function(t){return!(0,i.isDefined)(t)||!(0,i.isDefined)(t.size)&&!(0,i.isDefined)(t.name)&&!(0,i.isDefined)(t.family)&&!(0,i.isDefined)(t.scheme)&&(!(0,i.isDefined)(t.bold)||!t.bold)&&(!(0,i.isDefined)(t.italic)||!t.italic)&&!(0,i.isDefined)(t.underline)&&r.default.isEmpty(t.color)},toXml:function(t){var e=[(0,i.isDefined)(t.bold)&&t.bold?o.default.toXml("b",{}):"",(0,i.isDefined)(t.size)?o.default.toXml("sz",{val:t.size}):"",(0,i.isDefined)(t.color)?r.default.toXml("color",t.color):"",(0,i.isDefined)(t.name)?o.default.toXml("name",{val:t.name}):"",(0,i.isDefined)(t.family)?o.default.toXml("family",{val:t.family}):"",(0,i.isDefined)(t.scheme)?o.default.toXml("scheme",{val:t.scheme}):"",(0,i.isDefined)(t.italic)&&t.italic?o.default.toXml("i",{}):"",(0,i.isDefined)(t.underline)?o.default.toXml("u",{val:t.underline}):""].join("");return o.default.toXml("font",{},e)}};e.default=s},function(t,e,n){"use strict";var i=p(n(3)),o=p(n(117)),r=n(2),a=p(n(275)),s=n(5),l=n(0),u=p(n(15)),c=p(n(17)),d=p(n(10)),h=n(46),f=n(7);function p(t){return t&&t.__esModule?t:{default:t}}var m,g=d.default.getWindow(),_=Math,v=_.PI,y=_.min,b=_.abs,w=_.sqrt,x=_.pow,C=_.atan2,S=_.cos,k=_.sin,I=Number;function T(t,e,n){var o=(0,i.default)("<canvas>")[0];return o.width=t+2*n,o.height=e+2*n,o.hidden=!0,o}function E(t,e,n,i,o,r,a,s){var l=(t+n)/2,u=(e+i)/2,c=C(e-i,t-n),d=r?1:-1;c+=v/180*90*(a?1:-1);var h=w(x(n-t,2)+x(i-e,2))/2,f=w(b(x(o,2)-x(h,2))),p=l+d*(f*S(c)),m=u+d*(f*k(c)),g=C(e-m,t-p),_=C(i-m,n-p);s.arc(p,m,o,g,_,!a)}function O(t,e){var n,i=m(t.attributes||{}),o=(0,l.extend)({},i,{text:t.textContent.replace(/\s+/g," "),textAlign:"middle"===i["text-anchor"]?"center":i["text-anchor"]}),a=i.transform;return a&&((n=a.match(/translate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.translateX=I(n[0]),o.translateY=n[1]?I(n[1]):0),(n=a.match(/rotate\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.rotationAngle=I(n[0]),o.rotationX=n[1]&&I(n[1]),o.rotationY=n[2]&&I(n[2])),(n=a.match(/scale\(-*\d+([.]\d+)*(,*\s*-*\d+([.]\d+)*)*/))&&(n=n[0].match(/-*\d+([.]\d+)*/g),o.scaleX=I(n[0]),n.length>1?o.scaleY=I(n[1]):o.scaleY=o.scaleX)),function(t,e,n){var i,o=t.style||{};for(i in o)""!==o[i]&&(e[(0,h.camelize)(i)]=o[i]);n&&u.default.isElementNode(t)&&(o=g.getComputedStyle(t),["fill","stroke","stroke-width","font-family","font-size","font-style","font-weight"].forEach((function(t){t in o&&""!==o[t]&&(e[(0,h.camelize)(t)]=o[t])})),["opacity","fill-opacity","stroke-opacity"].forEach((function(t){t in o&&""!==o[t]&&"1"!==o[t]&&(e[t]=I(o[t]))})));e.textDecoration=e.textDecoration||e.textDecorationLine,e.globalAlpha=(0,r.isDefined)(e.opacity)?e.opacity:e.globalAlpha}(t,o,e),o}function M(t){var e=t&&t.match(/url\(.*#(.*?)["']?\)/i);return e&&e[1]}function P(t,e){var n=[];e.fontSize=e.fontSize||"10px",e.fontFamily,e.fill=e.fill||"#000",e.fontStyle&&n.push(e.fontStyle),e.fontWeight&&n.push(e.fontWeight),n.push(e.fontSize),n.push(e.fontFamily),t.font=n.join(" "),t.textAlign=e.textAlign,t.fillStyle=e.fill,t.globalAlpha=e.globalAlpha}function D(t,e,n){P(t,e),B(t,e,n),e.text&&t.fillText(e.text,e.x||0,e.y||0),z(t,e,!0),function(t,e,n){if(!e.textDecoration||"none"===e.textDecoration)return;var i=e.x,o=t.measureText(e.text).width,r=parseInt(e.fontSize,10),a=.05*r<1?1:.05*r,s=e.y;switch(e.textDecoration){case"line-through":s-=r/3+a/2;break;case"overline":s-=r-a;break;case"underline":s+=a}t.rect(i,s,o,a),j(t,e,n),z(t,e)}(t,e,n)}function A(t){for(var e=t.childNodes,n=0;n<e.length;n++)if("tspan"===e[n].tagName)return!0;return!1}function R(t,e,n,i){var o=t.tagName,r="text"===o||"tspan"===o||void 0===o,a="image"===o,s=(0,l.extend)({},n,O(t,i.rootAppended));if("hidden"!==s.visibility&&!s["hidden-for-export"]){var u;switch(e.save(),!a&&N(e,s),L(e,s,i),function(t){t.strokeOpacity=void 0!==t["stroke-opacity"]?t["stroke-opacity"]:1,t.fillOpacity=void 0!==t["fill-opacity"]?t["fill-opacity"]:1,void 0!==t.opacity&&(t.strokeOpacity*=t.opacity,t.fillOpacity*=t.opacity)}(s),e.beginPath(),t.tagName){case void 0:D(e,s,i);break;case"text":case"tspan":!function t(e,n,i,o){for(var r,a=[],s=0,u=0;u<e.length;u++){var c=e[u];if(void 0===c.tagName)R(c,n,i,o);else if("tspan"===c.tagName||"text"===c.tagName){var d=O(c,o.rootAppended),h=(0,l.extend)({},i,d);if("tspan"===c.tagName&&A(c)){t(c.childNodes,n,h,o);continue}h.textAlign="start",r&&void 0===d.x||(r={elements:[],options:[],widths:[],offsets:[]},a.push(r)),void 0!==d.y&&(s=0),void 0!==d.dy&&(s+=parseFloat(d.dy)),r.elements.push(c),r.options.push(h),r.offsets.push(s),P(n,h),r.widths.push(n.measureText(h.text).width)}}a.forEach((function(e){var r=e.widths.reduce((function(t,e){return t+e}),0),a=0,s=0;"center"===i.textAlign&&(a=r/2),"end"===i.textAlign&&(a=r),e.options.forEach((function(t,n){var i=e.widths[n];t.x=t.x-a+s,t.y+=e.offsets[n],s+=i})),e.elements.forEach((function(i,r){t(i.childNodes,n,e.options[r],o)}))}))}(t.childNodes,e,s,i);break;case"image":u=function(t,e,n){var i=new f.Deferred,o=new g.Image;return o.onload=function(){t.save(),t.globalAlpha=e.globalAlpha,N(t,e),L(t,e,n),t.drawImage(o,e.x,e.y,e.width,e.height),t.restore(),i.resolve()},o.onerror=function(){i.resolve()},o.setAttribute("crossOrigin","anonymous"),o.src=e.href||e["xlink:href"],i}(e,s,i);break;case"path":!function(t,e){var n,i,o,r=e.replace(/,/g," ").split(/([A-Z])/i).filter((function(t){return""!==t.trim()})),a=0;do{switch(n=(r[a+1]||"").trim().split(" "),r[a]){case"M":t.moveTo(I(n[0]),I(n[1])),a+=2;break;case"L":for(var s=0;s<n.length/2;s++)t.lineTo(I(n[2*s]),I(n[2*s+1]));a+=2;break;case"C":t.bezierCurveTo(I(n[0]),I(n[1]),I(n[2]),I(n[3]),I(n[4]),I(n[5])),a+=2;break;case"a":o=(i=r[a-1].trim().split(" ")).length-1,E(I(i[o-1]),I(i[o]),I(i[o-1])+I(n[5]),I(i[o])+I(n[6]),I(n[0]),I(n[3]),I(n[4]),t),a+=2;break;case"A":o=(i=r[a-1].trim().split(" ")).length-1,E(I(i[o-1]),I(i[o]),I(n[5]),I(n[6]),I(n[0]),I(n[3]),I(n[4]),t),a+=2;break;case"Z":t.closePath(),a+=1;break;default:a++}}while(a<r.length)}(e,s.d);break;case"rect":!function(t,e){var n=e.x,i=e.y,o=e.width,r=e.height,a=e.rx;a?(a=y(a,o/2,r/2),t.save(),t.translate(n,i),t.moveTo(o/2,0),t.arcTo(o,0,o,r,a),t.arcTo(o,r,0,r,a),t.arcTo(0,r,0,0,a),t.arcTo(0,0,a,0,a),t.lineTo(o/2,0),t.restore()):t.rect(n,i,o,r)}(e,s),e.closePath();break;case"circle":e.arc(s.cx,s.cy,s.r,0,2*v,1)}return r||(B(e,s,i),j(e,s,i),z(e,s)),function(t,e,n,i){var o=n.gradients;if(0===o.length)return;var r=M(e.fill);if(r&&o[r]){var a=i.getBBox(),s=t.createLinearGradient(a.x,0,a.x+a.width,0);o[r].forEach((function(t){var e=parseInt(t.offset.replace(/%/,""));s.addColorStop(e/100,t.stopColor)})),t.globalAlpha=e.opacity,t.fillStyle=s,t.fill()}}(e,s,i,t),e.restore(),u}}function B(t,e,n){var i,o=M(e.filter);o&&((i=n.filters[o])||(i={offsetX:0,offsetY:0,blur:0,color:"#000"}),t.shadowOffsetX=i.offsetX,t.shadowOffsetY=i.offsetY,t.shadowColor=i.color,t.shadowBlur=i.blur)}function N(t,e){t.translate(e.translateX||0,e.translateY||0),e.translateX=void 0,e.translateY=void 0,e.rotationAngle&&(t.translate(e.rotationX||0,e.rotationY||0),t.rotate(e.rotationAngle*v/180),t.translate(-(e.rotationX||0),-(e.rotationY||0)),e.rotationAngle=void 0,e.rotationX=void 0,e.rotationY=void 0),isFinite(e.scaleX)&&(t.scale(e.scaleX,e.scaleY),e.scaleX=void 0,e.scaleY=void 0)}function L(t,e,n){e["clip-path"]&&(R(n.clipPaths[M(e["clip-path"])],t,{},n),t.clip(),e["clip-path"]=void 0)}function F(t){var e,n,i={};return(0,s.each)(t.childNodes,(function(t,r){var a=r.attributes;if(a.result)switch(a.result.value){case"gaussianBlurResult":i.blur=I(a.stdDeviation.value);break;case"offsetResult":i.offsetX=I(a.dx.value),i.offsetY=I(a.dy.value);break;case"floodResult":e=a["flood-color"]?a["flood-color"].value:"#000",n=a["flood-opacity"]?a["flood-opacity"].value:1,i.color=function(t,e){var n=new o.default(t);return"rgba("+n.r+","+n.g+","+n.b+","+e+")"}(e,n)}})),i}function V(t,e,n,i){return function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new f.Deferred;if(0===e.length)return i.resolve();var o=n(e[0]);function a(){t(Array.prototype.slice.call(e,1),n,i)}return(0,r.isPromise)(o)?o.then(a):a(),i}(t,(function(t){switch(t.tagName&&t.tagName.toLowerCase()){case"g":case"svg":var o=(0,l.extend)({},n,O(t,i.rootAppended));e.save(),N(e,o),L(e,o,i);var a=function(){e.restore()},u=V(t.childNodes,e,o,i);return(0,r.isPromise)(u)?u.then(a):a(),u;case"defs":return V(t.childNodes,e,{},i);case"clippath":i.clipPaths[t.attributes.id.textContent]=t.childNodes[0];break;case"pattern":i.patterns[t.attributes.id.textContent]=t;break;case"filter":i.filters[t.id]=F(t);break;case"lineargradient":i.gradients[t.attributes.id.textContent]=function(t){var e=[];return(0,s.each)(t.childNodes,(function(t,n){var i=n.attributes;e.push({offset:i.offset.value,stopColor:i["stop-color"].value})})),e}(t);break;default:return R(t,e,n,i)}}))}function z(t,e,n){var i=e.stroke;i&&"none"!==i&&0!==e["stroke-width"]&&(!function(t,e){var n=e["stroke-dasharray"]&&e["stroke-dasharray"].match(/(\d+)/g);n&&n.length&&(n=(0,s.map)(n,(function(t){return I(t)})),t.setLineDash(n))}(t,e),t.lineJoin=e["stroke-linejoin"],t.lineWidth=e["stroke-width"],t.globalAlpha=e.strokeOpacity,t.strokeStyle=i,n?t.strokeText(e.text,e.x,e.y):t.stroke(),t.globalAlpha=1)}function j(t,e,n){var i=e.fill;if(i&&"none"!==i){if(-1===i.search(/url/))t.fillStyle=i;else{var o=n.patterns[M(i)];if(!o)return;t.fillStyle=function(t,e,n){var i=O(e,n.rootAppended),o=T(i.width,i.height,0),r=o.getContext("2d");return V(e.childNodes,r,i,n),t.createPattern(o,"repeat")}(t,o,n)}t.globalAlpha=e.fillOpacity,t.fill(),t.globalAlpha=1}}function H(t,e,n,i,o){t.fillStyle=i||"#ffffff",t.fillRect(-o,-o,e+2*o,n+2*o)}function W(){var t=u.default.createElement("div");return t.style.left="-9999px",t.style.position="absolute",t}function U(t,e,n){return V(t.childNodes,e.getContext("2d"),{},{clipPaths:{},patterns:{},filters:{},gradients:{},rootAppended:n})}m=function(t){var e,n={};return(0,s.each)(t,(function(t,i){e=i.textContent,isFinite(e)&&(e=I(e)),n[i.name.toLowerCase()]=e})),n},e.imageCreator={getImageData:function(t,e){var n="image/"+e.format,i=e.width,o=e.height,s=e.backgroundColor;return(0,r.isFunction)(e.__parseAttributesFn)&&(m=e.__parseAttributesFn),function(t,e,n,i,o){var r,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:U,l=T(e,n,o),d=l.getContext("2d"),h=a.default.getSvgElement(t),p=u.default.isElementNode(t);return d.translate(o,o),u.default.getBody().appendChild(l),p||((r=W()).appendChild(h),u.default.getBody().appendChild(r)),h.attributes.direction&&(l.dir=h.attributes.direction.textContent),H(d,e,n,i,o),(0,f.fromPromise)(s(h,l,p&&c.default.contains(u.default.getBody(),t))).then((function(){return l})).always((function(){r&&u.default.getBody().removeChild(r),u.default.getBody().removeChild(l)}))}(t,i,o,s,e.margin,e.svgToCanvas).then((function(t){return function(t,e){var n=t.toDataURL(e,1);return g.atob(n.substring(("data:"+e+";base64,").length))}(t,n)}))},getData:function(t,n){var i=this;return e.imageCreator.getImageData(t,n).then((function(t){var e="image/"+n.format;return(0,r.isFunction)(g.Blob)&&!n.forceProxy?i._getBlob(t,e):i._getBase64(t)}))},_getBlob:function(t,e){var n,i=new Uint8Array(t.length);for(n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return new g.Blob([i.buffer],{type:e})},_getBase64:function(t){return g.btoa(t)}},e.getData=function(t,n){return e.imageCreator.getData(t,n)},e.testFormats=function(t){var e=T(100,100,0);return t.reduce((function(t,n){var i=("image/"+n).toLowerCase();return-1!==e.toDataURL(i).indexOf(i)?t.supported.push(n):t.unsupported.push(n),t}),{supported:[],unsupported:[]})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Plaque=void 0;var i=n(0),o=n(2);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=Math,l=s.round,u=s.max,c=s.min,d=s.sin,h=s.cos,f=s.asin,p=s.PI,m=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.join("")};function g(t,e,n){return"a ".concat(t," ").concat(t," 0 0 1 ").concat(e*t," ").concat(n*t)}function _(t,e,n){return"A ".concat(t," ").concat(t," 0 0 1 ").concat(e," ").concat(n)}function v(t,e,n,i,o){return(t-i)*l(h(n))+(e-o)*l(d(n))+i}function y(t,e,n,i,o){return-(t-i)*l(d(n))+(e-o)*l(h(n))+o}function b(t,e,n,i,o){var r=t.width/2,a=t.height/2,s=Math.ceil(e+r),l=Math.floor(e-r),u=Math.floor(n-a),c=Math.ceil(n+a);return i<l&&o<u||i>=l&&i<=s&&o<u?270:i>s&&o>c||i>=l&&i<=s&&o>c?90:i<l&&o>c||i<l&&o>=u&&o<=c?180:0}function w(t,e,n,i,o,r,a){var s,l=t.width,v=t.height,y=r.arrowWidth,b=r.cornerRadius,w=void 0===b?0:b,x=y/2,C=l/2,S=v/2,k=Math.ceil(e+C),I=Math.floor(e-C),T=Math.floor(n-S),E=Math.ceil(n+S),O=[I,T],M=[k,T],P=[k,E],D=[I,E],A=i<=I?I:k<=i?k:i,R=o<=T?T:E<=o?E:o,B=c(R+x,E),N=u(R-x,T),L=u(A-x,I);if(w=Math.min(l/2,v/2,w),O[1]+=w,M[0]-=w,P[1]-=w,D[0]+=w,!a||I<=i&&i<=k&&T<=o&&o<=E)s=m(O,g(w,1,-1),"L",M,g(w,1,1),"L",P,g(w,-1,1),"L",D,g(w,-1,-1));else if(i>k&&o<T){var F=y/w||0,V=p/4+F/2,z=p/4-F/2,j=M[0]+h(z)*w,H=M[1]+(1-d(z))*w,W=m("L",M,g(w,h(V),1-d(V)),"L",[i,o,j,H],_(w,M[0]+w,M[1]+w));Math.abs(V)>p/2&&(W=m("L",[L,T,i,o,k,B])),s=m(O,g(w,1,-1),W,"L",P,g(w,-1,1),"L",D,g(w,-1,-1))}else if(i>k&&o>=T&&o<=E){var U;if(N>=M[1]+w&&B<=P[1])U=m(g(w,1,1),"L",[k,N,i,o,k,B],"L",P,g(w,-1,1));else if(N<M[1]+w&&B>=M[1]+w&&B<=P[1]){var G=(M[1]+w-N)/w,K=M[0]+h(G)*w,q=M[1]+(1-d(G))*w;U=m(g(w,h(G),1-d(G)),"L",[K,q,i,o,k,B],"L",P,g(w,-1,1))}else if(N<M[1]+w&&B<M[1]+w){var $=(M[1]+w-N)/w,Y=M[0]+h($)*w,Z=M[1]+(1-d($))*w,X=Math.sin((M[1]+w-B)/w),J=M[0]+w*h(X),Q=M[1]+w*(1-d(X));U=m(g(w,h($),1-d($)),"L",[Y,Z,i,o,J,Q],_(w,M[0]+w,M[1]+w),"L",P,g(w,-1,1))}else if(N<=M[1]+w&&B>=P[1]){var tt=f((M[1]+w-N)/w),et=M[0]+w*h(tt),nt=M[1]+w*(1-d(tt)),it=f((B-P[1])/w),ot=P[0]+w*(h(it)-1),rt=P[1]+w*d(it);U=m(g(w,h(tt),1-d(tt)),"L",[et,nt,i,o,ot,rt],_(w,P[0]-w,P[1]+w))}else if(N>M[1]+w&&N<=P[1]&&B>P[1]){var at=f((B-P[1])/w),st=P[0]+w*(h(at)-1),lt=P[1]+w*d(at);U=m(g(w,1,1),"L",[k,N,i,o,st,lt],_(w,P[0]-w,P[1]+w))}else if(N>M[1]+w&&B>P[1]){var ut=f((B-P[1])/w),ct=P[0]+w*(h(ut)-1),dt=P[1]+w*d(ut),ht=f((N-P[1])/w),ft=P[0]+w*(h(ht)-1),pt=P[1]+w*d(ht);U=m(g(w,1,1),"L",P,g(w,h(ht)-1,d(ht)),"L",[ft,pt,i,o,ct,dt],_(w,P[0]-w,P[1]+w))}s=m(O,g(w,1,-1),"L",M,U,"L",D,g(w,-1,-1))}return m("M",s,"Z")}e.Plaque=function(){function t(e,n,i,o){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:function(t,e){return e.getBBox()},l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:function(t,e,n,i){return e.move(n,i)};r(this,t),this.widget=n,this.options=e,this.root=i,this.contentTemplate=o,this.bonded=a,this.measureContent=s,this.moveContentGroup=l}var e,n,s;return e=t,(n=[{key:"draw",value:function(t){var e=this,n=t.x,r=t.y,a=t.canvas,s=void 0===a?{}:a,d=t.offsetX,h=t.offsetY,f=t.offset,p=void 0===f?0:f,m=this.options,g=m.x,_=m.y,v=s.left,y=s.width-s.right,b=s.width-s.right-s.left,w=s.top,x=s.height-s.bottom,C=s.height-s.bottom-s.top;if(((0,o.isDefined)(n)&&(0,o.isDefined)(r)||(0,o.isDefined)(g)&&(0,o.isDefined)(_))&&(!(0,o.isDefined)(n)||!(n<v||y<n||r<w||x<r))){this._root||this._draw();var S=(0,i.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},m.shadow),k=m.width>0?m.width:null,I=m.height>0?m.height:null,T=function(){var t,i=e._contentBBox=e.measureContent(e.widget,e._contentGroup),a=e._size={width:u(k,i.width)+2*m.paddingLeftRight,height:u(I,i.height)+2*m.paddingTopBottom,offset:p},s=S.offsetX,f=S.offsetY,T=2*S.blur+1,E=u(T-s,0),O=u(T+s,0),M=u(T-f,0),P=u(T+f,0);if(e.margins={lm:E,rm:O,tm:M,bm:P},(0,o.isDefined)(g)?(g+=d||0,(0,o.isDefined)(n)||(n=g)):g=(0,o.isDefined)(d)?n+d:b<a.width?l(v+b/2):c(u(n,Math.ceil(v+a.width/2+E)),Math.floor(y-a.width/2-O)),(0,o.isDefined)(_))_+=h||0,(0,o.isDefined)(r)||(r=_+a.height/2);else if((0,o.isDefined)(h))_=r+h;else{var D=r-m.arrowLength-a.height/2-p,A=r+m.arrowLength+a.height/2+p;C<a.height+m.arrowLength?_=l(w+a.height/2):D-a.height/2-M<w?A+a.height/2+P<x?(_=A,r+=p):_=l(w+a.height/2):(_=D,r-=p)}e.anchorX=n,e.anchorY=r,e.move(g,_),null===(t=e._root)||void 0===t||t.append(e.root)};this.contentTemplate.render?this.contentTemplate.render({model:m,container:this._contentGroup.element,onRendered:T}):(this.contentTemplate(this.widget,this._contentGroup),T())}}},{key:"_draw",value:function(){var t=this.widget._renderer,e=this.options,n=(0,i.extend)({x:"-50%",y:"-50%",width:"200%",height:"200%"},e.shadow),o=this._shadow=t.shadowFilter().attr(n),r={opacity:e.opacity,"stroke-width":0,fill:e.color},a=e.border||{};a.visible&&(0,i.extend)(r,{"stroke-width":a.width,stroke:a.color,"stroke-opacity":a.opacity,dashStyle:a.dashStyle});var s=this._root=t.g().append(this.root);e.type&&s.attr({class:"dxc-".concat(e.type,"-annotation")});var l=t.g().attr({filter:o.id}).append(s);this._cloud=t.path([],"area").attr(r).sharp().append(l),this._contentGroup=t.g().append(s)}},{key:"getBBox",value:function(){var t=this._size||{},e=this.margins||{},n=b(t,this.x,this.y,this.anchorX,this.anchorY);return{x:Math.floor(this.x-t.width/2-e.lm),y:Math.floor(this.y-t.height/2-e.tm-(270===n?this.options.arrowLength:0)),width:t.width+e.lm+e.rm,height:t.height+e.tm+e.bm+(90===n||270===n?this.options.arrowLength:0)}}},{key:"clear",value:function(){return this._root&&(this._root.remove(),this._shadow.remove(),this._root=null),this}},{key:"customizeCloud",value:function(t){this._cloud&&this._cloud.attr(t)}},{key:"moveRoot",value:function(t,e){this._root&&this._root.move(t,e)}},{key:"move",value:function(t,e){t=l(t),e=l(e),this.x=t,this.y=e;var n,i,o=b(this._size,t,e,this.anchorX,this.anchorY),r=o*p/180;this._cloud.attr({d:w((n=this._size,i=o,i%90===0&&i%180!==0?{width:n.height,height:n.width}:n),t,e,v(this.anchorX,this.anchorY,r,t,e),y(this.anchorX,this.anchorY,r,t,e),this.options,this.bonded)}).rotate(o,t,e),this.moveContentGroup(this.widget,this._contentGroup,t-this._contentBBox.x-this._contentBBox.width/2,e-this._contentBBox.y-this._contentBBox.height/2)}},{key:"hitTest",value:function(t,e){var n=this._size||{},i=n.width,o=n.height;return Math.abs(t-this.x)<=i/2&&Math.abs(e-this.y)<=o/2}}])&&a(e.prototype,n),s&&a(e,s),t}()},function(t,e,n){"use strict";var i=isFinite,o=n(8),r=n(54),a=n(0).extend,s=n(5).each,l=n(162).dxBaseGauge,u=n(225).dxGauge,c=n(13),d=c.normalizeAngle,h=c.getCosAndSin,f=n(730),p=n(225).createIndicatorCreator,m=n(731),g=Math.abs,_=Math.max,v=Math.min,y=Math.round,b=s,w=Math.PI;var x=u.inherit({_rootClass:"dxg-circular-gauge",_factoryMethods:{rangeContainer:"createCircularRangeContainer",indicator:"createCircularIndicator"},_gridSpacingFactor:17,_scaleTypes:{type:"polarAxes",drawingType:"circular"},_getThemeManagerOptions:function(){var t=this.callBase.apply(this,arguments);return t.subTheme="_circular",t},_updateScaleTickIndent:function(t){var e=t.label.indentFromTick,n=t.tick.visible?t.tick.length:0,i=this._scale.measureLabels(a({},this._canvas)),o=n;"inside"===t.orientation?o=0:"center"===t.orientation&&(o=.5*n),t.label.indentFromAxis=e>=0?e+o:e-o-_(i.width,i.height),this._scale.updateOptions(t)},_setupCodomain:function(){var t,e=this.option("geometry")||{},n=e.startAngle,o=e.endAngle;n=i(n)?d(n):225,o=i(o)?d(o):-45,g(n-o)<1?(o-=360,t={left:-1,up:-1,right:1,down:1}):(n<o&&(o-=360),t=function(t,e){var n=h(t),i=h(e),o=n.cos,r=n.sin,a=i.cos,s=i.sin;return{left:r<=0&&s>=0||r<=0&&s<=0&&o<=a||r>=0&&s>=0&&o>=a?-1:v(o,a,0),right:r>=0&&s<=0||r>=0&&s>=0&&o>=a||r<=0&&s<=0&&o<=a?1:_(o,a,0),up:o<=0&&a>=0||o<=0&&a<=0&&r>=s||o>=0&&a>=0&&r<=s?-1:-_(r,s,0),down:o>=0&&a<=0||o>=0&&a>=0&&r<=s||o<=0&&a<=0&&r>=s?1:-v(r,s,0)}}(n,o)),this._area={x:0,y:0,radius:100,startCoord:n,endCoord:o,sides:t},this._translator.setCodomain(n,o)},_shiftScale:function(t){var e=this._scale,n=e.getCanvas();n.width=n.height=2*t.radius,e.draw(n);var i=e.getCenter();e.shift({right:t.x-i.x,bottom:t.y-i.y})},_getScaleLayoutValue:function(){return this._area.radius},_getTicksOrientation:function(t){return t.orientation},_getTicksCoefficients:function(t){var e={inner:0,outer:1};return"inside"===t.orientation?(e.inner=1,e.outer=0):"center"===t.orientation&&(e.inner=e.outer=.5),e},_correctScaleIndents:function(t,e,n){e>=0?(t.horizontalOffset=e+n.width,t.verticalOffset=e+n.height):(t.horizontalOffset=t.verticalOffset=0,t.min-=-e+_(n.width,n.height)),t.inverseHorizontalOffset=n.width/2,t.inverseVerticalOffset=n.height/2},_measureMainElements:function(t,e){var n=this._area.radius,i=0,o=1/0,r=0,a=0,s=0,l=0,u=this._scale;return b(t.concat(u),(function(t,u){var c=u.measure?u.measure({radius:n-u.getOffset()}):e;c.min>0&&(o=v(o,c.min)),c.max>0&&(i=_(i,c.max)),c.horizontalOffset>0&&(r=_(r,c.max+c.horizontalOffset)),c.verticalOffset>0&&(a=_(a,c.max+c.verticalOffset)),c.inverseHorizontalOffset>0&&(s=_(s,c.inverseHorizontalOffset)),c.inverseVerticalOffset>0&&(l=_(l,c.inverseVerticalOffset))})),r=_(r-i,0),a=_(a-i,0),{minRadius:o,maxRadius:i,horizontalMargin:r,verticalMargin:a,inverseHorizontalMargin:s,inverseVerticalMargin:l}},_applyMainLayout:function(t,e){var n=this._measureMainElements(t,e),i=this._area,o=i.sides,r={left:(o.left<-.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,right:(o.right>.1?n.horizontalMargin:n.inverseHorizontalMargin)||0,top:(o.up<-.1?n.verticalMargin:n.inverseVerticalMargin)||0,bottom:(o.down>.1?n.verticalMargin:n.inverseVerticalMargin)||0},s=function(t,e,n){var i,o=a({},t),r=0,s=0;n=n||{},e>0&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,C(o)>0&&S(o)>0?((i=S(o)/C(o))>1?e<i?r=C(o):s=S(o):e>i?s=S(o):r=C(o),r>0||(r=s/e),s>0||(s=r*e),r=(C(o)-r)/2,s=(S(o)-s)/2,o.left+=r,o.right-=r,o.top+=s,o.bottom-=s):(o.left=o.right=(o.left+o.right)/2,o.top=o.bottom=(o.top+o.bottom)/2));return o}(this._innerRect,(o.down-o.up)/(o.right-o.left),r),l=v(C(s)/(o.right-o.left),S(s)/(o.down-o.up));l=l-n.maxRadius+i.radius;var u=s.left-C(s)*o.left/(o.right-o.left),c=s.top-S(s)*o.up/(o.down-o.up);i.x=y(u),i.y=y(c),i.radius=l,s.left-=r.left,s.right+=r.right,s.top-=r.top,s.bottom+=r.bottom,this._innerRect=s},_getElementLayout:function(t){return{x:this._area.x,y:this._area.y,radius:y(this._area.radius-t)}},_getApproximateScreenRange:function(){var t=this._area,e=v(this._canvas.width/(t.sides.right-t.sides.left),this._canvas.height/(t.sides.down-t.sides.up));return e>t.totalRadius&&(e=t.totalRadius),e*=.8,-this._translator.getCodomainRange()*e*w/180},_getDefaultSize:function(){return{width:300,height:300}},_factory:r.clone(l.prototype._factory)});function C(t){return t.right-t.left}function S(t){return t.bottom-t.top}var k=x.prototype._factory.indicators={};x.prototype._factory.createIndicator=p(k),k._default=f._default,k.rectangleneedle=f.rectangleneedle,k.triangleneedle=f.triangleneedle,k.twocolorneedle=f.twocolorneedle,k.trianglemarker=f.trianglemarker,k.textcloud=f.textcloud,k.rangebar=f.rangebar,x.prototype._factory.RangeContainer=m,o("dxCircularGauge",x),t.exports=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.smartFormatter=w,e.formatRange=function(t,e,n,a){var s=a.dataType,l=a.type,c=a.logarithmBase;if("discrete"===l)return"";if("datetime"===s)return function(t,e,n){var o=p(t,e),a=r.default.getDateFormatByTickInterval(n),s=b(i.default.getDateFormatByDifferences(o,a)),l=[];if(n in o){var c=function(t,e){var n=!1;for(var o in t)n?t[o]=!1:o===e?n=!0:t[o]=!0;return b(i.default.getDateFormatByDifferences(t))}(p(t,e),n),d=u(t,c);d&&l.push(d)}else{var h=function(t){var e=!1;for(var n in t)!0===t[n]||"hour"===n||e?(t[n]=!1,e=!0):!1===t[n]&&(t[n]=!0);return b(i.default.getDateFormatByDifferences(t))}(p(t,e)),f=u(t,h);f&&l.push(f),l.push("".concat(u(t,s)," - ").concat(u(e,s)))}return l.join(", ")}(t,e,function(t){if((0,o.isObject)(t)){var e=Object.keys(t);if(1===e.reduce((function(e,n){return t[n]+e}),0)){var n=e.filter((function(e){return 1===t[e]}))[0];return n.slice(0,n.length-1)}}return t}(n));var d={ticks:[],type:l,dataType:s,tickInterval:n,logarithmBase:c,labelOptions:{}};return"".concat(w(t,d)," - ").concat(w(e,d))};var i=l(n(94)),o=n(2),r=l(n(26)),a=n(37),s=n(13);function l(t){return t&&t.__esModule?t:{default:t}}var u=i.default.format,c=Math.abs,d=Math.floor,h=["fixedPoint","thousands","millions","billions","trillions","exponential"],f=["millisecond","second","minute","hour","day","month","year"];function p(t,e,n,i){var o,a,s,l,u,c=f.length;"week"===i?i="day":"quarter"===i?i="month":"shorttime"===i?i="hour":"longtime"===i&&(i="second");var d=f.indexOf(i);if(n){if(a=r.default.getDatesDifferences(e,n),o=r.default.getDatesDifferences(e,t),a[i])for(l=c-1;l>=d;l--)if(s=f[l],l===d)_(a,d+(a.millisecond?2:1));else if(a[s]){g(a,l);break}}else for(o=r.default.getDatesDifferences(t,e),l=c-1;l>=d;l--)if(o[s=f[l]]){if(l-d>1){for(u=d+1;u>=0;u--)g(o,u);break}if(m(e,s)){for(u=l-1;u>0;u--)g(o,u);break}}return n?a:o}function m(t,e){var n,i=[t.getMilliseconds(),t.getSeconds(),t.getMinutes(),t.getHours(),t.getDate(),t.getMonth()],o=f.indexOf(e);for(n=0;n<o;n++)if(4===n&&1!==i[n]||4!==n&&0!==i[n])return!1;return!0}function g(t,e){var n=f[e];t[n]&&(t[n]=!1,t.count--)}function _(t,e){var n=f[e];!1===t[n]&&(t[n]=!0,t.count++)}function v(t,e){var n,i,o,r=0;for(o=c(e-t[0]),n=1;n<t.length;n++)(i=c(e-t[n]))<o&&(o=i,r=n);return r}function y(t){return t.toString().split(".")}function b(t){var e;return(0,o.isFunction)(t)&&(e=t,t=null),{type:t,formatter:e}}function w(t,e){var n,l,f,m,g,_,w,x,C,S,k=e.tickInterval,I=c(t).toString(),T=0,E=0,O=0,M=-1,P=e.labelOptions.format,D=e.ticks,A="logarithmic"===e.type;return 1!==D.length||0!==D.indexOf(t)||(0,o.isDefined)(k)||(k=c(t)>=1?1:(0,a.adjust)(1-c(t),t)),(0,o.isDefined)(P)||"discrete"===e.type||!t||10!==e.logarithmBase&&A||("datetime"!==e.dataType&&(0,o.isDefined)(k)?(D.length&&-1===D.indexOf(t)&&(M=v(D,t),k=(0,a.adjust)(c(t-D[M]),t)),(g=y(k))<2&&(g=y(t)),A?(w=(0,s.getAdjustedLog10)(c(t)))>0?m=h[d(w/3)]||"exponential":w<-4?m="exponential":T=void 0:g.length>1&&!(0,o.isExponential)(k)?(T=g[1].length,m=h[O]):(0,o.isExponential)(k)&&(-1!==I.indexOf(".")||(0,o.isExponential)(t))?(m="exponential",T=(0,o.isExponential)(t)?Math.max(c((0,a.getExponent)(t)-(0,a.getExponent)(k)),c((0,a.getPrecision)(t)-(0,a.getPrecision)(k))):c((S=I.split(".")[1]).length-parseInt(S).toString().length-(0,a.getExponent)(k)+1)):(n=d((0,s.getAdjustedLog10)(k)),f=l=d((0,s.getAdjustedLog10)(c(t))),l-n>=2&&(f=n),E=3*(O=d(f/3)),O<5?(n-E===2&&l>=3&&(E=3*++O),m=h[O]):m=h[h.length-1],E>0&&(g=y(k/Math.pow(10,E)))[1]&&(T=g[1].length)),void 0===m&&void 0===T||(P={type:m,precision:T})):"datetime"===e.dataType&&(m=r.default.getDateFormatByTickInterval(k),e.showTransition&&D.length&&(M=D.map(Number).indexOf(+t),1===D.length&&0===M?m=i.default.getDateFormatByTicks(D):(-1===M?x=v(D,t):(x=0===M?D.length-1:M-1,C=0===M?1:-1),_=p(D[x],t,D[C],m),m=i.default.getDateFormatByDifferences(_,m))),P=b(m))),u(t,P)}},function(t,e,n){"use strict";var i,o=n(13),r=n(26),a=(i=r)&&i.__esModule?i:{default:i},s=n(2),l=n(37),u=n(0);function c(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var h=a.default.convertDateUnitToMilliseconds,f=a.default.dateToMilliseconds,p=Math,m=p.abs,g=p.floor,_=p.ceil,v=p.pow,y=[1,2,2.5,5],b=[1,2,3,5],w={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2],week:[1,2],month:[1,2,3,6]},x=(0,u.extend)({},w,{day:[1]}),C={millisecond:[1,2,5,10,25,50,100,250,500],second:[1,2,3,5,10,15,20,30],minute:[1,2,3,5,10,15,20,30],hour:[1,2,3,4,6,8,12],day:[1,2,3,7,14],month:[1,2,3,6]},S=[2,4,5,8,10];var k=function(t){return t},I=function(t,e,n){return function(i){return(0,o.getLogExt)(i,t,e,n)}},T=function(t,e,n){return function(i,o){return(0,l.adjust)(t(e((0,l.adjust)(n(i)/o))*o))}};function E(t,e,n,i){return(0,s.isDefined)(i)?i?t:e:function(i,o,r,a){var l=t(i,o);return i-l===0||!(0,s.isDefined)(r)||n(i,l,o,r)||a?l:e(i,o)}}function O(t,e,n,i){var r=n-m(e-t),a=p.max(_(i.businessDelta/n),2),s=i.screenDelta/(a*n),l=p.round(s*r),u=(0,o.getLogExt)(s*n/i.axisDivisionFactor,2)+1,c=(i.isSpacedMargin?2:1)*u,d=p.round(3*c);return i.businessDelta>i.interval&&l>=d}function M(t){return function(e,n,i,r){return O((0,o.getLogExt)(e,t),(0,o.getLogExt)(n,t),i,r)}}function P(t,e,n,i){return O(t.valueOf(),e.valueOf(),f(n),i)}function D(t,e){var n=0;return e&&(n=e.reduce((function(t,e){return t+(e.to-e.from)}),0)),m(t.max-t.min-n)}function A(t,e,n,i){var o=e/n-(i||0);return t/(o=o<1?1:o)}function R(t,e){return v(10,g((0,o.getLogExt)(t,10))+(e||0))}function B(t,e,n,i,o,r,a,s,l,u){var c=A(t,e,o,s),d=1,h=!1===a;return i&&n||((c>=1||!h&&c>0)&&(d=N(c,r,h)),(!n||!i&&n<d)&&(n=d)),!i&&u&&(u=N(u,r,h))>n&&(n=u),n}function N(t,e,n){var i=R(t,-1),o=1;return e=e||y,t>0&&(t/=i,o=e.concat(10*e[0]).map((function(t){return 10*t})).reduce((function(e,o){return.1===i&&n&&25===o?e:e<t?o:e}),0),o=(0,l.adjust)(o*i,i)),o}function L(t,e,n,i){var o=A(t,e,i);return n||S.reduce((function(e,n){var i=t/n;return i>=o?i:e}),0)}function F(t){return function(e,n){var i=R(e);return!t&&i<1&&(i=1),(n=n||b).concat(10*n[0]).reduce((function(t,n){return t<e?n*i:t}),0)}}function V(t,e){return function(n,i){return!n&&t<=h(e,i)&&((n={})[e+"s"]=i),n}}function z(t,e){return function(n,i){var o=e*i;return!n&&t<=h("year",o)&&2.5!==o&&(n={years:o}),n}}function j(t,e,n,i,o,r,a,s,l,u){if(!i||!n){var c=H(A(t,e,o),r,null,l);(!n||!i&&f(n)<=f(c))&&(n=c)}return!i&&u&&(u=H(u,r,null,l),f(u)>f(n)&&(n=u)),n}function H(t,e,n,i){var o;for(var r in e=e||function(t){return t&&t>2?x:w}(i))if(o=e[r].reduce(V(t,r),o))break;if(!o)for(var a=1;!(o=y.reduce(z(t,a),o));a*=10);return o}function W(t,e,n,i){return j(t,e,n,!0,i,C)}function U(t,e){return function(n){return n&&e(m((0,l.adjust)(t(n[1])-t(n[0]))))||void 0}}function G(t,e,n){return a.default.addInterval(t,e,n)}function K(t,e,n){return G(t,e,n)}function q(t,e,n){return e=e.filter((function(t){return!t.gapSize})),function(i,o,r){var a;return i=t(i,o,r),e.every((function(e){return i>=t(e.from,o)&&t(i,o)<e.to&&(a=e.to-e.from-2*(t(e.from,o)-e.from)),!a}))||(i=n(t(i,a),o)),i}}function $(t,e,n,i){return function(o,r,a,l,u,c,d,h,f){var p,m=function(t,e){return function(n){var i;return e.every((function(t){return n>=t.from&&n<t.to&&(i=t.gapSize),!i}))||(n=t(n,i)),n}}(t,l),g=o.min,_=o.max,v={screenDelta:d,businessDelta:c,axisDivisionFactor:h,isSpacedMargin:o.isSpacedMargin,interval:r},y=e(g,r,v),b=[];for((null===u||void 0===u?void 0:u.length)&&(t=q(t,u,e)),y>_&&(y=e(g,n(c/2),v))>_&&(y=e(g,r,v,a=!0)),y=m(y);y<_&&y!==p||f&&y<=_;)b.push(y),p=y,y=m(t(y,r));return(a||y-_===0||!(0,s.isDefined)(a)&&i(_,y,r,v))&&b.push(y),b}}function Y(t,e,n,i,o){return function(r,a,s,l,u,c,d){var h=u/l,f=s[s.length-1],p=s[0],m=d-1;if((null===c||void 0===c?void 0:c.length)&&(e=q(e,c,n)),0===(l=t(l,p,p,h)))return[];var g=i(n(r,u,r),l);l=t(l,p,g,h);for(var _=[];g<p&&(!m||m>0);)g>=r&&_.push(g),m--,g=e(g,l);var v=s.reduce((function(n,o){if(m=d-1,null===n.prevTick)return n.prevTick=o,n;l=t(l,o,n.prevTick,h);for(var r=i(n.prevTick,l);r<o&&(!m||m>0);)r!==n.prevTick&&n.minors.push(r),m--,r=e(r,l);return n.prevTick=o,n}),{prevTick:null,minors:[]});_=_.concat(v.minors);var y,b=o(a,u,r);for(l=t(l,b,b,h),g=i(f,l);g<a&&g!==y;)_.push(g),y=g,g=e(g,l);return f-a!==0&&g-a===0&&_.push(g),_}}function Z(t,e){if(e.length){var n=e.reduce((function(e,n){var i,o=[];for(i=e[1];i<t.length;i++){var r=t[i];if(r<n.from&&o.push(r),r>=n.to)break}return[e[0].concat(o),i]}),[[],0]);return n[0].concat(t.slice(n[1]))}return t}function X(t,e,n,i,o,r,a,s,l,u){function c(e,n,i){return e&&n/a(e)>=i+1&&(t.incidentOccurred("W2003"),e=void 0),e}return function(d,h,f,p,m,g,_,v){m=m||{};var y=e(d,v),b=function(t){return{tickInterval:o(t.majors),ticks:t.majors||[],minorTickInterval:r(t.minors),minorTicks:t.minors||[]}}(m);return isNaN(y)||(0!==y||m.majors?(b=function(e,i,o,r,a,l,d,h){if(d.majors)return e.breaks=h,e;var f,p=h.filter((function(t){return t.gapSize}));return a=t.skipCalculationLimits?a:c(a,o,r),a=n(o,r,a,l,t.axisDivisionFactor,t.numberMultipliers,t.allowDecimals,h.length,p[0]&&p[0].gapSize.days,t.minTickInterval),t.skipTickGeneration||(f=Z(f=s(i,a,t.endOnTick,p,h,o,r,t.axisDivisionFactor,t.generateExtraTick),h=u(h,f,a)),e.breaks=h,e.ticks=e.ticks.concat(f)),e.tickInterval=a,e}(b,d,y,h,f,p,m,v||[]),!t.skipTickGeneration&&y>0&&(b=function(e,n,o,s,u,d,h){if(!t.calculateMinors)return e;if(h.minors)return e;var f=a(e.tickInterval),p=s*f/o,m=e.breaks;return!u&&d?u=r([f/(d+1),f/(d+1)*2]):d=void 0,u=c(u,f,p),u=i(f,p,u,t.minorAxisDivisionFactor),e.minorTicks=Z(e.minorTicks.concat(l(n.min,n.max,e.ticks,u,e.tickInterval,m,d)),m),e.minorTickInterval=u,e}(b,d,y,h,g,_,m))):b.ticks=[d.min]),b}}function J(t,e,n,i){var o=c(e,2),r=o[0],a=o[1];return(!(0,s.isDefined)(r)||m(i(t)-i(r))/n>.25)&&((0,s.isDefined)(a)?r=a:(0,s.isDefined)(r)||(r=t)),r}function Q(t,e,n){return function(i,o,r){var a=t(r),s=.5*a;return i.reduce((function(t,i){var r=o.filter((function(t){return t<=i.from})),l=n(J(i.from,[].concat(r[r.length-1],o[r.length]),a,e),s);r=o.filter((function(t){return t>=i.to}));var u=n(J(i.to,[].concat(r[0],o[o.length-r.length-1]),a,e),-s);return e(u)-e(l)<a&&!i.gapSize?t:i.gapSize?t.concat([i]):t.concat([{from:l,to:u,cumulativeWidth:i.cumulativeWidth}])}),[])}}var tt=function(t,e,n){return function(i,o){return(0,l.sign)(i)*(0,l.adjust)(t(e(i)((0,l.adjust)(n(i)/o))*o))}};function et(t){var e,n=t.logBase,i=function(t,e,n){return function(i){return(0,o.raiseToExt)(i,t,e,n)}}(n,t.allowNegatives,t.linearThreshold),r=I(n,t.allowNegatives,t.linearThreshold),a=function(t){return function(e){return 0===e?0:(0,o.getLog)(m(e),t)}}(n),s=function(t){return function(e){return(0,o.raiseTo)(e,t)}}(n),l=tt(s,(function(t){return t<0?_:g}),a),u=tt(s,(function(t){return t<0?g:_}),a),c=T(k,_,k);return X(t,function(t,e,n){var i=I(t,e,n);return function(t,e){var n=0;return e&&(n=e.reduce((function(t,e){return t+m(i(e.to/e.from))}),0)),_(m(i(t.max)-i(t.min))-n)}}(n,t.allowNegatives,t.linearThreshold),(e=t.skipCalculationLimits,function(t,n,i,o,r,a,s,l,u,c){var d=A(t,n,r),h=0,f=F(e);return o&&i||(d>0&&(h=f(d,a)),(!i||!o&&i<h)&&(i=h)),!o&&c&&(c=f(c,a))>i&&(i=c),i}),L,U(r,k),U(k,k),k,$(function(t,e){return function(n,i,o){return e(G(t(n),i,o))}}(r,i),E(l,u,M(n),t.endOnTick),F(t.skipCalculationLimits),M(n)),Y((function(t,e,n,i){return Math.max(Math.abs(e),Math.abs(n))/i}),G,l,c,u),Q(k,r,(function(t,e){return i(r(t)+e)})))}e.tickGenerator=function(t){return t.rangeIsEmpty?function(t){return function(e,n,i,o){var r=g(n/t.axisDivisionFactor),a=n/(r=r<1?1:r);return{ticks:a>0?Array.apply(null,new Array(r+1)).map((function(t,e){return a*e})):[],tickInterval:a}}}(t):"discrete"===t.axisType?function(t){return function(e,n,i,r){var a=(0,o.getCategoriesInfo)(e.categories,e.min,e.max).categories;return{ticks:a,tickInterval:_(a.length*t.axisDivisionFactor/n)}}}(t):"logarithmic"===t.axisType?et(t):"datetime"===t.dataType?function(t){function e(e,n){var i=T(k,g,k),o=(0,s.isString)(n)?a.default.getDateIntervalByString(n.toLowerCase()):n,r=f(n);(o.days%7===0||n.quarters)&&(o=H(r));var l=function(e){return a.default.correctDateWithUnitBeginning(e,o,null,t.firstDayOfWeek)},u=function(t){return new Date(g((t.getTime()-6e4*t.getTimezoneOffset())/r)*r+6e4*t.getTimezoneOffset())};return e=l(e),"years"in o?e.setFullYear(i(e.getFullYear(),o.years,0)):"quarters"in o?e=l(u(e)):"months"in o?e.setMonth(i(e.getMonth(),o.months,0)):"weeks"in o||"days"in o?e=l(u(e)):"hours"in o?e.setHours(i(e.getHours(),o.hours,0)):"minutes"in o?e.setMinutes(i(e.getMinutes(),o.minutes,0)):"seconds"in o?e.setSeconds(i(e.getSeconds(),o.seconds,0)):"milliseconds"in o&&(e=u(e)),e}var n=U(k,a.default.convertMillisecondsToDateUnits);return X(t,D,j,W,n,n,f,$(K,E(e,(function(t,n){for(var i=e(t,n);t-i>0;)i=K(i,n);return i}),P,t.endOnTick),H,P),Y(k,K,e,K,k),Q(f,k,(function(t,e){return new Date(t.getTime()+e)})))}(t):function(t){var e=T(k,g,k),n=T(k,_,k),i=U(k,k);return X(t,D,B,L,i,i,k,$(G,E(e,n,O,t.endOnTick),N,O),Y(k,G,e,G,k),Q(k,k,(function(t,e){return t+e})))}(t)}},function(t,e,n){"use strict";var i=n(2).isDefined,o=n(0).extend;function r(t){return{stroke:t.color,"stroke-width":t.width,"stroke-opacity":t.opacity,opacity:1}}e.tick=function(t,e,n,a,s,l,u){var c=u||t._tickOffset,d=t._axisLineGroup,h=t._axisElementsGroup,f=r(n),p=r(a),m=/^\s+$/,g=t.getOptions().label,_=t._textOptions;function v(e,n){var o=t.formatHint(e.value,g,n);i(o)&&""!==o&&e.label.setTitle(o)}return function(r){var u={value:r,updateValue:function(t){this.value=r=t},initCoords:function(){this.coords=t._getTranslatedValue(r,c),this.labelCoords=t._getTranslatedValue(r)},saveCoords:function(){this._lastStoredCoordinates={coords:this._storedCoords,labelCoords:this._storedLabelsCoords},this._storedCoords=this.coords,this._storedLabelsCoords=this.labelCoords},resetCoordinates:function(){this._storedCoords=this._lastStoredCoordinates.coords,this._storedLabelsCoords=this._lastStoredCoordinates.labelCoords},drawMark:function(e){n.visible&&s!==r&&(t.areCoordsOutsideAxis(this.coords)||(this.mark?(this.mark.append(d),t.sharp(this.mark,t.getSharpDirectionByCoords(this.coords)),this.updateTickPosition(e)):(this.mark=t._createPathElement([],f,t.getSharpDirectionByCoords(this.coords)).append(d),this.updateTickPosition(e))))},setSkippedCategory:function(t){s=t},_updateLine:function(e,n,i,o,r){e&&(null!==n.points&&null!==n.r?(o&&i&&null!==i.points?(n.opacity=1,e.attr(i),e.animate(n)):(n.opacity=o?0:1,e.attr(n),o&&e.animate({opacity:1},{delay:.5,partitionDuration:.5})),this.coords.angle&&t._rotateTick(e,this.coords,r)):e.remove())},updateTickPosition:function(e,i){this._updateLine(this.mark,{points:t._getTickMarkPoints(u.coords,n.length,e)},this._storedCoords&&{points:t._getTickMarkPoints(u._storedCoords,n.length,e)},i,!1)},drawLabel:function(n){if(g.visible&&!l&&!t.getTranslator().getBusinessRange().isEmpty()&&!t.areCoordsOutsideAxis(this.labelCoords)){var a=t.formatLabel(r,g,n);if(this.label)return this.label.attr({text:a,rotate:0}).append(h),v(this,n),void this.updateLabelPosition();i(a)&&""!==a&&!m.test(a)&&(this.label=e.text(a).css(function(e){var n=t._textFontStyles,i=g.customizeColor;return i&&i.call&&(n=o({},t._textFontStyles,{fill:i.call(e,e)})),n}(this)).attr(_).data("chart-data-argument",this.value).append(h),this.updateLabelPosition(),v(this,n))}else this.label&&this.label.remove()},fadeOutElements:function(){var e={opacity:1},n={opacity:0},i={partitionDuration:.5};this.label&&this._fadeOutLabel(),this.grid&&this.grid.append(t._axisGridGroup).attr(e).animate(n,i),this.mark&&this.mark.append(t._axisLineGroup).attr(e).animate(n,i)},_fadeInLabel:function(){var e=t._renderer.g().attr({opacity:0}).append(t._axisElementsGroup).animate({opacity:1},{delay:.5,partitionDuration:.5});this.label.append(e)},_fadeOutLabel:function(){var e=t._renderer.g().attr({opacity:1}).animate({opacity:0},{partitionDuration:.5}).append(t._axisElementsGroup);this.label.append(e)},updateLabelPosition:function(t){this.label&&(t&&this._storedLabelsCoords?(this.label.attr({x:this._storedLabelsCoords.x,y:this._storedLabelsCoords.y}),this.label.animate({x:this.labelCoords.x,y:this.labelCoords.y})):(this.label.attr({x:this.labelCoords.x,y:this.labelCoords.y}),t&&this._fadeInLabel()))},updateMultilineTextAlignment:function(){this.label&&this.label.attr({textsAlignment:this.labelAlignment||t.getOptions().label.alignment})},drawGrid:function(e){a.visible&&s!==this.value&&(this.grid?(this.grid.append(t._axisGridGroup),t.sharp(this.grid,t.getSharpDirectionByCoords(this.coords)),this.updateGridPosition()):(this.grid=e(this,p),this.grid&&this.grid.append(t._axisGridGroup)))},updateGridPosition:function(e){this._updateLine(this.grid,t._getGridPoints(u.coords),this._storedCoords&&t._getGridPoints(this._storedCoords),e,!0)},removeLabel:function(){this.label.remove(),this.label=null}};return u}}},function(t,e,n){"use strict";var i=h(n(123)),o=n(94),r=h(n(26)),a=n(0),s=n(726),l=n(4),u=h(n(13)),c=n(2),d=h(n(280));function h(t){return t&&t.__esModule?t:{default:t}}var f=r.default.getNextDateUnit,p=r.default.correctDateWithUnitBeginning,m=Math,g=m.max,_=d.default.top,v=d.default.bottom,y=d.default.left,b=d.default.right,w=d.default.center,x={left:-1,top:-1,right:0,bottom:0,center:-.5};function C(t){return t.sort((function(t,e){return t.from-e.from}))}function S(t,e,n,i){var a=i,s=e&&r.default.getDatesDifferences(e,t);return e&&"year"!==n&&(!function(t,e){var n,i;if("week"===e&&(e="day"),"quarter"===e&&(e="month"),t[e])for(i=0;i<r.default.dateUnitIntervals.length&&(t[n=r.default.dateUnitIntervals[i]]&&(t[n]=!1,t.count--),n!==e);i++);}(s,n),a=(0,o.getDateFormatByDifferences)(s)),a}function k(t,e){return e.reduce((function(e,n){return g(e,t(n))}),0)}function I(t,e,n){return t.some((function(t){return t.label.verticalAlignment===e}))&&n||0}function T(t){return m.abs(t.x)||0}function E(t){return m.abs(t.width-m.abs(t.x))||0}function O(t,e,n,i,o,r,a){var s=a?"bezier":"line",l=t.g().append(e);return function(e,u){t.path(n(function(t,e,n,i,o){if(!o)return[t,e+i,n,e+i];var r,a=(e+=i)+0,s=e+2,l=e+4,u=[[t,s]];for(r=t;r<n+24;r+=24)u.push([r+6,a,r+6,a,r+12,s,r+18,l,r+18,l,r+24,s]);return[].concat.apply([],u)}(i,o,r,e,a)),s).attr(u).append(l)}}function M(t){var e,n=[];for(e=0;e<t.length;e+=2)n.push(t[e+1]),n.push(t[e]);return n}t.exports={linear:{_getStep:function(t,e){var n=this._options.label.minSpacing,i=k(this._isHorizontal?function(t){return t.width+n}:function(t){return t.height},t);return e&&(i=function(t,e){var n=(e=(e=m.abs(e))%180>=90?90-e%90:e%90)*(m.PI/180);return n>=m.atan(t.height/t.width)?t.height/m.abs(m.sin(n)):t.width}({width:i,height:this._getMaxLabelHeight(t,0)},e)),d.default.getTicksCountInRange(this._majorTicks,this._isHorizontal?"x":"y",i)},_getMaxLabelHeight:function(t,e){return k((function(t){return t.height}),t)+e},_validateOverlappingMode:function(t,e){return this._isHorizontal&&("rotate"===e||"stagger"===e)||!this._isHorizontal?d.default.validateOverlappingMode(t):t},_validateDisplayMode:function(t){return this._isHorizontal?t:"standard"},getMarkerTrackers:function(){return this._markerTrackers},_getSharpParam:function(t){return this._isHorizontal^t?"h":"v"},_createAxisElement:function(){return this._renderer.path([],"line")},_updateAxisElementPosition:function(){var t=this._axisPosition,e=this._getCanvasStartEnd();this._axisElement.attr({points:this._isHorizontal?[e.start,t,e.end,t]:[t,e.start,t,e.end]})},_getTranslatedCoord:function(t,e){return this._translator.translate(t,e)},_initAxisPositions:function(){this.customPositionIsAvailable()&&!(0,c.isDefined)(this._customBoundaryPosition)&&(this._customBoundaryPosition=this.getCustomBoundaryPosition()),!this.customPositionIsAvailable()||this.customPositionIsBoundary()?this._axisPosition=this.getPredefinedPosition(this.getResolvedBoundaryPosition()):this._axisPosition=this.getCustomPosition()},_getTickMarkPoints:function(t,e,n){var i,o=this._isHorizontal,r=this._options.tickOrientation,a=this._options.label.position;if((0,c.isDefined)(r))i=x[r]*e;else{var s=n.shift||0;(!o&&a===y||o&&a!==v)&&(s=-s),i=s+this.getTickStartPositionShift(e)}return[t.x+(o?0:i),t.y+(o?i:0),t.x+(o?0:i+e),t.y+(o?i+e:0)]},getTickStartPositionShift:function(t){var e=this._options.width,n=this.getResolvedBoundaryPosition();return t%2===1?(e%2!==0||n!==y&&n!==_)&&(e%2!==1||n!==b&&n!==v||this.hasCustomPosition())?-Math.floor(t/2):Math.floor(-t/2):-t/2+(e%2===0?0:n===v||n===b?-1:1)},_getTitleCoords:function(){var t=this._isHorizontal,e=this._axisPosition,n=this._axisPosition,i=this._options.title.alignment,o=this._getCanvasStartEnd(),r=t||this._options.position===y,a=r?o.start:o.end,s=r?o.end:o.start,l=i===y?a:i===b?s:o.start+(o.end-o.start)/2;return t?e=l:n=l,{x:e,y:n}},_drawTitleText:function(t,e){var n=this._options,i=n.title,o={opacity:i.opacity,align:i.alignment,class:i.cssClass};if(i.text&&t){e=e||this._getTitleCoords(),this._isHorizontal||(o.rotate=n.position===y?270:90);var r=this._renderer.text(i.text,e.x,e.y).css(u.default.patchFontOptions(i.font)).attr(o).append(t);return this._checkTitleOverflow(r),r}},_updateTitleCoords:function(){this._title&&this._title.element.attr(this._getTitleCoords())},_drawTitle:function(){var t=this._drawTitleText(this._axisTitleGroup);t&&(this._title={element:t})},_measureTitle:function(){this._title&&(this._title.bBox&&!this._title.originalSize&&(this._title.originalSize=this._title.bBox),this._title.bBox=this._title.element.getBBox())},_drawDateMarker:function(t,e,n){var i,o=this._options.marker,r=this._translator.getBusinessRange().invert,a=o.width+o.textLeftIndent;if(null!==e.x){e.withoutStick||(i=this._renderer.path([e.x,e.y,e.x,e.y+o.separatorHeight],"line").attr({"stroke-width":o.width,stroke:o.color,"stroke-opacity":o.opacity,sharp:"h"}).append(this._axisElementsGroup));var s=String(this.formatLabel(t,e.labelOptions,n));return{date:t,x:e.x,y:e.y,cropped:e.withoutStick,label:this._renderer.text(s,e.x,e.y).css(u.default.patchFontOptions(o.label.font)).append(this._axisElementsGroup),line:i,getEnd:function(){return this.x+(r?-1:1)*(a+this.labelBBox.width)},setTitle:function(){this.title=s},hideLabel:function(){this.label.dispose(),this.label=null,this.title=s},hide:function(){i&&(i.dispose(),i=null),this.label.dispose(),this.label=null,this.hidden=!0}}}},_drawDateMarkers:function(){var t,e=this,n=e._options,i=e._translator,o=e._getViewportRange(),a=o.minVisible,s=[];function l(t,n,r){return e._drawDateMarker(t,{x:i.translate(t),y:u,labelOptions:e._getLabelFormatOptions(n),withoutStick:r},o)}if(o.isEmpty()||!n.marker.visible||"datetime"!==n.argumentType||"discrete"===n.type||e._majorTicks.length<=1)return[];var u=e._axisPosition+n.marker.topIndent,c=r.default.getDateUnitInterval(this._tickInterval),d=function(t){var e=f(t);return"quarter"===e&&(e=f(e)),e}(c),h=function(t,e,n){var i,o=t;return t=p(t,n),e=p(e,n),(i=r.default.getSequenceByInterval(t,e,n)).length&&o>i[0]&&(i=i.slice(1)),i}(a,o.maxVisible,d);return(h.length>1||1===h.length&&a<h[0])&&(s=h.reduce((function(t,e,n,i){var o=l(e,S(e,i[n-1]||a<e&&a,c,d));return o&&t.push(o),t}),[]),a<h[0]&&(t=l(a,S(a,h[0],c,d),!0))&&s.unshift(t)),s},_adjustDateMarkers:function(t){t=t||0;var e,n=this,i=this._options.marker,o=i.width+i.textLeftIndent,r=this._translator.getBusinessRange().invert,a=n._getCanvasStartEnd(),s=this._dateMarkers;return s.length?(s[0].cropped&&(this._checkMarkersPosition(r,s[1],s[0])||s[0].hideLabel()),s.forEach((function(t,i,o){t.cropped||((r?t.getEnd()<a.end:t.getEnd()>a.end)?t.hideLabel():n._checkMarkersPosition(r,t,e)?e=t:t.hide())})),this._dateMarkers.forEach((function(e){if(e.label){var n=e.labelBBox,a=e.y+i.textTopIndent-n.y;e.label.attr({translateX:r?e.x-o-n.x-n.width:e.x+o-n.x,translateY:a+t})}e.line&&e.line.attr({translateY:t})})),n._initializeMarkersTrackers(t),t+i.topIndent+i.separatorHeight):t},_checkMarkersPosition:function(t,e,n){return void 0===n||(t?e.x<n.getEnd():e.x>n.getEnd())},_initializeMarkersTrackers:function(t){var e=this._options.marker.separatorHeight,n=this._renderer,i=this._translator.getBusinessRange(),o=this._getCanvasStartEnd(),r=this._axisElementsGroup;this._markerTrackers=this._dateMarkers.filter((function(t){return!t.hidden})).map((function(a,s,l){var u=l[s+1]||{x:o.end,date:i.max},c=a.x,d=a.y+t,h=n.path([c,d,c,d+e,u.x,d+e,u.x,d,c,d],"area").attr({"stroke-width":1,stroke:"grey",fill:"grey",opacity:1e-4}).append(r);return h.data("range",{startValue:a.date,endValue:u.date}),a.title&&h.setTitle(a.title),h}))},_getLabelFormatOptions:function(t){var e=this._markerLabelOptions;return e||(this._markerLabelOptions=e=(0,a.extend)(!0,{},this._options.marker.label)),(0,c.isDefined)(this._options.marker.label.format)||(e.format=t),e},_adjustConstantLineLabels:function(t){var e=this,n=e._options.position,i=e.getCanvas(),o=i.left,r=i.width-i.right,a=i.top,s=i.height-i.bottom,l=a+(s-a)/2,u=o+(r-o)/2,c=0;return t.forEach((function(t){var i,d,h=e._isHorizontal,f=t.options,p=f.paddingTopBottom,m=f.paddingLeftRight,_=f.label,x=_.verticalAlignment,C=_.horizontalAlignment,S="inside"===_.position,k=t.label,I=t.labelBBox;if(null!==k&&!I.isEmpty){if(h)if(S)switch(i=C===y?t.coord-m-I.x-I.width:t.coord+m-I.x,x){case w:d=l-I.y-I.height/2;break;case v:d=s-p-I.y-I.height;break;default:d=a+p-I.y}else n===x&&(c=g(c,I.height+p)),i=t.coord-I.x-I.width/2,d=x===v?s+p-I.y:a-p-I.y-I.height;else if(S)switch(d=x===v?t.coord+p-I.y:t.coord-p-I.y-I.height,C){case w:i=u-I.x-I.width/2;break;case b:i=r-m-I.x-I.width;break;default:i=o+m-I.x}else n===C&&(c=g(c,I.width+m)),d=t.coord-I.y-I.height/2,i=C===b?r+m-I.x:o-m-I.x-I.width;k.attr({translateX:i,translateY:d})}})),c},_drawConstantLinesForEstimating:function(t){var e=this,n=this._renderer,i=n.g();return t.forEach((function(t){e._drawConstantLineLabelText(t.label.text,0,0,t.label,i).attr({align:"center"})})),i.append(n.root)},_estimateLabelHeight:function(t,e){var n=t.height,i=e.drawingType;if("stagger"!==this._validateDisplayMode(i)&&"stagger"!==this._validateOverlappingMode(e.overlappingBehavior,i)||(n=2*n+e.staggeringSpacing),"rotate"===this._validateDisplayMode(i)||"rotate"===this._validateOverlappingMode(e.overlappingBehavior,i)){var o=u.default.getCosAndSin(e.rotationAngle);n=n*o.cos+t.width*o.sin}return n&&(n+e.indentFromAxis||0)||0},estimateMargins:function(t){this.updateCanvas(t);var e=this._getViewportRange(),n=this._createTicksAndLabelFormat(e),i=n.ticks,o=n.tickInterval,r=this._options,a=this._outsideConstantLines.filter((function(t){return t.labelOptions.visible})).map((function(t){return t.options})),s=this._renderer.root,l=r.label.visible&&!e.isEmpty()&&i.length,u=l&&this.formatLabel(i[i.length-1],r.label,void 0,void 0,o,i),c=l&&this._renderer.text(u,0,0).css(this._textFontStyles).attr(this._textOptions).append(s),d=this._drawTitleText(s,{x:0,y:0}),h=this._drawConstantLinesForEstimating(a),f=c&&c.getBBox()||{x:0,y:0,width:0,height:0},p=d&&d.getBBox()||{x:0,y:0,width:0,height:0},m=h.getBBox(),_=p.height?p.height+r.title.margin:0,v=this._estimateLabelHeight(f,r.label),y=m.height?m.height+a.reduce((function(t,e){return g(t,e.paddingTopBottom)}),0):0,b=v+_,w={left:g(T(f),T(m)),right:g(E(f),E(m)),top:("top"===r.position?b:0)+I(a,"top",y),bottom:("top"!==r.position?b:0)+I(a,"bottom",y)};return c&&c.remove(),d&&d.remove(),h&&h.remove(),w},_checkAlignmentConstantLineLabels:function(t){var e=t.position,n=(t.verticalAlignment||"").toLowerCase(),i=(t.horizontalAlignment||"").toLowerCase();this._isHorizontal?"outside"===e?(n=n===v?v:_,i=w):(n=n===w?w:n===v?v:_,i=i===y?y:b):"outside"===e?(n=w,i=i===y?y:b):(n=n===v?v:_,i=i===b?b:i===w?w:y),t.verticalAlignment=n,t.horizontalAlignment=i},_getConstantLineLabelsCoords:function(t,e){var n=t,i=t;return this._isHorizontal?i=this._orthogonalPositions["top"===e.verticalAlignment?"start":"end"]:n=this._orthogonalPositions["right"===e.horizontalAlignment?"end":"start"],{x:n,y:i}},_getAdjustedStripLabelCoords:function(t){var e=t.options,n=e.paddingTopBottom,i=e.paddingLeftRight,o=e.label.horizontalAlignment,r=e.label.verticalAlignment,a=t.labelBBox,s=a.height,l=a.width,u=t.labelCoords,c=u.y-a.y,d=u.x-a.x;return r===_?c+=n:r===w?c-=s/2:r===v&&(c-=n+s),o===y?d+=i:o===w?d-=l/2:o===b&&(d-=i+l),{translateX:d,translateY:c}},_adjustTitle:function(t){if(t=t||0,this._title){var e=this._options,n=e.position,i=e.title.margin,o=this._title,r=o.bBox,a=r.x,s=r.y,l=r.width,u=r.height,c=this._axisPosition,d=c-i-t,h=c+i+t,f={};this._isHorizontal?f.translateY=n===_?d-(s+u):h-s:f.translateX=n===y?d-(a+l):h-a,o.element.attr(f)}},_checkTitleOverflow:function(t){if(this._title||t){var e=this._getScreenDelta(),n=t?{bBox:t.getBBox(),element:t}:this._title,i=this._options.title,o=n.bBox;if((this._isHorizontal?o.width:o.height)>e)n.element.setMaxSize(e,void 0,{wordWrap:i.wordWrap||"none",textOverflow:i.textOverflow||"ellipsis"}),this._wrapped=i.wordWrap&&"none"!==i.wordWrap;else{var r=n.originalSize&&e>(this._isHorizontal?n.originalSize.width:n.originalSize.height);!this._wrapped&&r&&n.element.restoreText()}}},coordsIn:function(t,e){var n=this.getCanvas(),i=this._options.isHorizontal,o=this._options.position,r=i?e:t;return!(i&&(t<n.left||t>n.width-n.right)||!i&&(e<n.top||e>n.height-n.bottom))&&(i&&o===d.default.top||!i&&o===d.default.left?r<n[o]:r>n[i?"height":"width"]-n[o])},_boundaryTicksVisibility:{min:!0,max:!0},adjust:function(t){var e=this._seriesData,n={min:e.min,max:e.max};t||(n=this._series.filter((function(t){return t.isVisible()})).reduce((function(t,e){var n=e.getViewport();return t.min=(0,c.isDefined)(n.min)?t.min<n.min?t.min:n.min:t.min,t.max=(0,c.isDefined)(n.max)?t.max>n.max?t.max:n.max:t.max,e.showZero&&(t=new i.default.Range(t)).correctValueZeroLevel(),t}),{})),(0,c.isDefined)(n.min)&&(0,c.isDefined)(n.max)&&(e.minVisible=n.min,e.maxVisible=n.max),e.breaks=this._initialBreaks=this._getScaleBreaks(this._options,{minVisible:e.minVisible,maxVisible:e.maxVisible},this._series,this.isArgumentAxis),this._translator.updateBusinessRange(this._getViewportRange())},hasWrap:function(){return this._wrapped},getAxisPosition:function(){return this._axisPosition},_getStick:function(){return!this._options.valueMarginsEnabled},_getStripLabelCoords:function(t,e,n){var i,o,r=this._orthogonalPositions,a=this._isHorizontal,s=n.horizontalAlignment,l=n.verticalAlignment;return a?(s===w?i=t+(e-t)/2:s===y?i=t:s===b&&(i=e),o=r[function(t){var e="start";return"center"===t&&(e="center"),"bottom"===t&&(e="end"),e}(l)]):(i=r[function(t){var e="start";return"center"===t&&(e="center"),"right"===t&&(e="end"),e}(s)],l===_?o=t:l===w?o=e+(t-e)/2:l===v&&(o=e)),{x:i,y:o}},_getTranslatedValue:function(t,e){var n=this._translator.translate(t,e,"semidiscrete"===this._options.type&&this._options.tickInterval),i=this._axisPosition,o=this._isHorizontal;return{x:o?n:i,y:o?i:n}},areCoordsOutsideAxis:function(t){var e=this._isHorizontal?t.x:t.y,n=this.getVisibleArea();return e<n[0]||e>n[1]},_getSkippedCategory:function(t){var e;return this._options.type===d.default.discrete&&this._tickOffset&&0!==t.length&&(e=t[t.length-1]),e},_getScaleBreaks:function(t,e,n,i){var o=this,a=(t.breaks||[]).map((function(t){return{from:o.parser(t.startValue),to:o.parser(t.endValue)}}));return"discrete"!==t.type&&"datetime"===t.dataType&&t.workdaysOnly&&(a=a.concat((0,s.generateDateBreaks)(e.minVisible,e.maxVisible,t.workWeek,t.singleWorkdays,t.holidays))),!i&&"discrete"!==t.type&&"datetime"!==t.dataType&&t.autoBreaksEnabled&&0!==t.maxAutoBreakCount&&(a=a.concat(function(t,e,n){for(var i=t.logarithmBase,o=t.type,r=t.maxAutoBreakCount,a=[],s="logarithmic"===o?function(t,e){return u.default.getLog(e/t,i)}:function(t,e){return e-t},l=s(n.minVisible,n.maxVisible),d=e.reduce((function(t,e){var n=e.getPointsInViewPort();return t[0]=t[0].concat(n[0]),t[1]=t[1].concat(n[1]),t}),[[],[]]),h=.3*l,f=function(t,e,n){var i,o,r,a,s,l=null,u=[];for(i=1,o=t.length;i<o;i++)s=n(r=t[i],a=t[i-1]),e.indexOf(r)>=0?(!l||s>l.length)&&(l={start:r,end:a,length:s}):(l&&s<l.length?u.push(l):u.push({start:r,end:a,length:s}),l=null);return l&&u.push(l),u}(d[0].concat(d[1]).sort((function(t,e){return e-t})),d[1].filter((function(t){return d[0].indexOf(t)<0})),s).sort((function(t,e){return e.length-t.length})),p=m.min.apply(null,f.map((function(t){return t.length})))/1e3,g=(0,c.isDefined)(r)?m.min(r,f.length):f.length,_=0;_<g&&f[_].length>=h&&!(l<=f[_].length);_++)((l-=f[_].length)>p||l<-p)&&(a.push({from:f[_].start,to:f[_].end}),h=.3*l);return C(a),a}(t,n,e))),function(t,e,n){var i=e.minVisible,o=e.maxVisible,a=n?n.width:0;return t.reduce((function(t,e){var n,s=e.from,l=e.to,u=t[t.length-1];if(!(0,c.isDefined)(s)||!(0,c.isDefined)(l))return t;if(s>l&&(l=[s,s=l][0]),t.length&&s<u.to)l>u.to&&(u.to=l>o?o:l,u.gapSize&&(u.gapSize=void 0,u.cumulativeWidth+=a));else if((s>=i&&s<o||l<=o&&l>i)&&l-s<o-i){var d,h;if(n={from:s=s>=i?s:i,to:l=l<=o?l:o,cumulativeWidth:(null!==(d=null===u||void 0===u?void 0:u.cumulativeWidth)&&void 0!==d?d:0)+a},e.gapSize)n.gapSize=r.default.convertMillisecondsToDateUnits(l-s),n.cumulativeWidth=null!==(h=null===u||void 0===u?void 0:u.cumulativeWidth)&&void 0!==h?h:0;t.push(n)}return t}),[])}(C(a),e,t.breakStyle)},_drawBreak:function(t,e,n,i,o,r){var a=t-(this._translator.isInverted()?0:i+1),s={"stroke-width":1,stroke:o.borderColor,sharp:o.isWaved?void 0:o.isHorizontal?"h":"v"},l={stroke:o.color,"stroke-width":i},u=this._isHorizontal?M:function(t){return t},c=O(this._renderer,r,u,e,a,n,o.isWaved);c(i/2,l),c(0,s),c(i,s)},_createBreakClipRect:function(t,e){var n,i=this._canvas,o=e-t;return n=this._isHorizontal?this._renderer.clipRect(i.left,t,i.width,o):this._renderer.clipRect(t,i.top,o,i.height),this._breaksElements=this._breaksElements||[],this._breaksElements.push(n),n.id},_createBreaksGroup:function(t,e){var n=this._renderer.g().attr({class:this._axisCssPrefix+"breaks","clip-path":this._createBreakClipRect(t,e)}).append(this._scaleBreaksGroup);return this._breaksElements=this._breaksElements||[],this._breaksElements.push(n),n},_disposeBreaksGroup:function(){(this._breaksElements||[]).forEach((function(t){t.dispose()})),this._breaksElements=null},drawScaleBreaks:function(t){var e,n,i,o,r,a=this,s=a._options,l=s.breakStyle,u=s.position,c=a._translator.getBusinessRange().breaks||[];if(a._disposeBreaksGroup(),c&&c.length){var d={color:a._options.containerColor,borderColor:l.color,isHorizontal:a._isHorizontal,isWaved:"straight"!==l.line.toLowerCase()};t?(e=t.start,n=t.end):(e=a._orthogonalPositions.start-(!s.visible||a._axisShift||u!==y&&u!==_?0:3),n=a._orthogonalPositions.end+(!s.visible||u!==b&&u!==v?0:3));var h=a._createBreaksGroup(e,n);a._axisShift&&s.visible&&(o=a._axisPosition-a._axisShift-3,r=o+6,i=a._createBreaksGroup(o,r)),c.forEach((function(t){if(!t.gapSize){var u=a._getTranslatedCoord(t.to);a._drawBreak(u,e,n,l.width,d,h),a._axisShift&&s.visible&&a._drawBreak(u,o,r,l.width,d,i)}}))}},_getSpiderCategoryOption:l.noop,shift:function(t){var e=this._options,n=e.isHorizontal,i=this.getMultipleAxesSpacing(),o=this._axisConstantLineGroups;function r(e,o){var r={translateX:0,translateY:0},a=t[e]?t[e]+i:0;return r[n?"translateY":"translateX"]=(e===y||e===_?-1:1)*a,(o[e]||o).attr(r),a}this._axisShift=r(e.position,this._axisGroup),(n?[_,v]:[y,b]).forEach((function(t){r(t,o.above),r(t,o.under)}))},getCustomPosition:function(t){var e,n=this.getOrthogonalAxis(),i=null!==t&&void 0!==t?t:this.getResolvedPositionOption(),o=this.getOptions().offset,r=n.getTranslator(),a=n.getOptions().type,s=n.validateUnit(i);return"discrete"===a&&(!r._categories||r._categories.indexOf(s)<0)&&(s=void 0),e=this.positionIsBoundary(i)?this.getPredefinedPosition(i):(0,c.isDefined)(s)?r.to(s,-1):this.getPredefinedPosition(this.getOptions().position),isFinite(e)&&isFinite(o)&&(e+=o),e},getCustomBoundaryPosition:function(t){var e=this.getOrthogonalAxis(),n=null!==t&&void 0!==t?t:this.getResolvedPositionOption(),i=e.getTranslator(),o=i.getCanvasVisibleArea();if((0,c.isDefined)(e._orthogonalPositions)&&0!==i.canvasLength){var r=this.getCustomPosition(n);return(0,c.isDefined)(r)?r<=o.min?this._isHorizontal?_:y:r>=o.max?this._isHorizontal?v:b:r:this.getResolvedBoundaryPosition()}},getResolvedPositionOption:function(){var t,e=this.getOptions();return null!==(t=e.customPosition)&&void 0!==t?t:e.position},customPositionIsAvailable:function(){var t=this.getOptions();return(0,c.isDefined)(this.getOrthogonalAxis())&&((0,c.isDefined)(t.customPosition)||isFinite(t.offset))},hasCustomPosition:function(){return this.customPositionIsAvailable()&&!this.customPositionIsBoundary()},getResolvedBoundaryPosition:function(){return this.customPositionIsBoundary()?this._customBoundaryPosition:this.getOptions().position},customPositionEqualsToPredefined:function(){return this.customPositionIsBoundary()&&this._customBoundaryPosition===this.getOptions().position},customPositionIsBoundary:function(){return this.positionIsBoundary(this._customBoundaryPosition)},positionIsBoundary:function(t){return[_,y,v,b].indexOf(t)>=0},getPredefinedPosition:function(t){var e;return null===(e=this._orthogonalPositions)||void 0===e?void 0:e[t===_||t===y?"start":"end"]},resolveOverlappingForCustomPositioning:function(t){var e=this;if(e.hasCustomPosition()||e.customPositionIsBoundary()||t.some((function(t){return t.hasCustomPosition()}))){var n={axes:[],ticks:[]};t.filter((function(t){return t.pane===e.pane})).forEach((function(t){for(var i=0;i<e._majorTicks.length;i++){var o=e._majorTicks[i],r=o.label;if(r){n.axes.indexOf(t)<0&&e._detectElementsOverlapping(r,t._axisElement)&&(n.axes.push(t),e._shiftThroughOrthogonalAxisOverlappedTick(r,t));for(var a=0;a<t._majorTicks.length;a++){var s=t._majorTicks[a].label;if(s&&e._detectElementsOverlapping(r,s)){n.ticks.push(o),e._shiftThroughAxisOverlappedTick(o),i=e._majorTicks.length;break}}}o.mark&&n.ticks.indexOf(o)<0&&(e._isHorizontal&&o.mark.attr("translateY")?o.mark.attr({translateY:0}):!e._isHorizontal&&o.mark.attr("translateX")&&o.mark.attr({translateX:0}))}}))}},_shiftThroughOrthogonalAxisOverlappedTick:function(t,e){var n=t.getBBox(),i=e.getAxisPosition(),o=e.getOptions().label,r=o.position,a=o.indentFromAxis/2,s=this._isHorizontal?"translateX":"translateY",l=this._isHorizontal?y:_,u=t.attr(s),c=(this._isHorizontal?n.x:n.y)+u,d=i-c,h=c+(this._isHorizontal?n.width:n.height)-i,f={};f[s]=u,d>0&&h>0&&(h-d>1?f[s]+=d+a:d-h>1?f[s]-=h+a:f[s]+=r===l?d+a:-(h+a),t.attr(f))},_shiftThroughAxisOverlappedTick:function(t){var e,n=t.label;if(n){var i=n.getBBox(),o=null===(e=t.mark)||void 0===e?void 0:e.getBBox(),r=this.getAxisPosition(),a=this.getOptions().label,s=a.indentFromAxis,l=a.position,u=this._isHorizontal?_:y,c=this._isHorizontal?"translateY":"translateX",d=n.attr(c),h=(this._isHorizontal?i.y:i.x)+d,f=this._isHorizontal?i.height:i.width,p={};if(p[c]=d+(l===u?r-h+s:-(h-r+f+s)),n.attr(p),t.mark){var m=this._isHorizontal?o.y:o.x,g=this._isHorizontal?o.height:o.width;p[c]=2*(r-m)-g+1,t.mark.attr(p)}}},_detectElementsOverlapping:function(t,e){if(!t||!e)return!1;var n=t.getBBox(),i=n.x+t.attr("translateX"),o=n.y+t.attr("translateY"),r=e.getBBox(),a=r.x+e.attr("translateX"),s=r.y+e.attr("translateY");return(a>=i&&a<=i+n.width||i>=a&&i<=a+r.width)&&(s>=o&&s<=o+n.height||o>=s&&o<=s+r.height)}}}},function(t,e,n){"use strict";var i=n(5),o=n(283).BaseElement,r=Number,a=Math.abs,s=n(2).isString,l=Array.isArray,u=isFinite,c=i.each,d=o.inherit({_init:function(){this._root=this._renderer.g().attr({class:"dxg-range-container"}).linkOn(this._container,"range-container")},_dispose:function(){this._root.linkOff()},clean:function(){return this._root.linkRemove().clear(),this._options=this.enabled=null,this},_getRanges:function(){var t,e=this._options,n=this._translator,i=n.getDomain()[0],o=n.getDomain()[1],d=o-i,g=d>=0?p:m,_=d>=0?h:f,v=[],y=[{start:i,end:o}],b=a(d)/1e4,w=s(e.backgroundColor)?e.backgroundColor:"none",x=e.width||{},C=r(x>0?x:x.start),S=r(x>0?x:x.end),k=S-C;if(void 0!==e.ranges&&!l(e.ranges))return null;if(!(C>=0&&S>=0&&C+S>0))return null;t=(l(e.ranges)?e.ranges:[]).reduce((function(t,e,i){e=e||{};var o=n.adjust(e.startValue),r=n.adjust(e.endValue);return u(o)&&u(r)&&g(o,r,b)&&t.push({start:o,end:r,color:e.color,classIndex:i}),t}),[]);var I=this._themeManager.createPalette(e.palette,{type:"indicatingSet",extensionMode:e.paletteExtensionMode,keepLastColorInEnd:!0,count:t.length});return c(t,(function(t,e){var n=I.getNextColor();e.color=s(e.color)&&e.color||n||"none",e.className="dxg-range dxg-range-"+e.classIndex,delete e.classIndex})),c(t,(function(t,e){var n,i,o,r,a,s=[],l=[];for(n=0,i=v.length;n<i;++n)a=v[n],(o=(r=_(a.start,a.end,e.start,e.end))[0])&&(o.color=a.color)&&(o.className=a.className)&&s.push(o),(o=r[1])&&(o.color=a.color)&&(o.className=a.className)&&s.push(o);for(s.push(e),v=s,n=0,i=y.length;n<i;++n)a=y[n],(o=(r=_(a.start,a.end,e.start,e.end))[0])&&l.push(o),(o=r[1])&&l.push(o);y=l})),c(y,(function(t,e){e.color=w,e.className="dxg-range dxg-background-range",v.push(e)})),c(v,(function(t,e){e.startWidth=(e.start-i)/d*k+C,e.endWidth=(e.end-i)/d*k+C})),v},render:function(t){return this._options=t,this._processOptions(),this._ranges=this._getRanges(),this._ranges&&(this.enabled=!0,this._root.linkAppend()),this},resize:function(t){var e=this;return e._root.clear(),e._isVisible(t)&&c(e._ranges,(function(n,i){e._createRange(i,t).attr({fill:i.color,class:i.className}).append(e._root)})),e},_processOptions:null,_isVisible:null,_createRange:null,getColorForValue:function(t){var e=null;return c(this._ranges,(function(n,i){if(i.start<=t&&t<=i.end||i.start>=t&&t>=i.end)return e=i.color,!1})),e}});function h(t,e,n,i){var o;return n>t&&i<e?o=[{start:t,end:n},{start:i,end:e}]:n>=e||i<=t?o=[{start:t,end:e}]:n<=t&&i>=e?o=[]:n>t?o=[{start:t,end:n}]:i<e&&(o=[{start:i,end:e}]),o}function f(t,e,n,i){var o;return n<t&&i>e?o=[{start:t,end:n},{start:i,end:e}]:n<=e||i>=t?o=[{start:t,end:e}]:n>=t&&i<=e?o=[]:n<t?o=[{start:t,end:n}]:i>e&&(o=[{start:i,end:e}]),o}function p(t,e,n){return e-t>=n}function m(t,e,n){return t-e>=n}t.exports=d},function(t,e,n){"use strict";var i,o=n(6),r=n(15),a=n(2).isFunction,s=n(118),l=n(0).extend,u=n(11).addNamespace,c=n(28),d=n(13).pointInCanvas,h="sparkline-tooltip",f=u([c.down,c.move],h),p=n(282),m=l,g=Math.floor,_=n(4).noop;function v(t){var e=t.data.widget;e._enableOutHandler(),e._showTooltip()}function y(t,e,n){var i=function(t,e){var n=t.lineSpacing,i=(void 0!==n&&null!==n?n:2)+t.size;return function(t){for(var n="",o=t.valueText,r=0;r<o.length;r+=2)n+="<tr><td>"+o[r]+"</td><td style='width: 15px'></td><td style='text-align: "+(e?"left":"right")+"'>"+o[r+1]+"</td></tr>";return{html:"<table style='border-spacing:0px; line-height: "+i+"px'>"+n+"</table>"}}}(e,n);return a(t)?function(e){var n=t.call(e,e);return"html"in n||"text"in n||m(n,i.call(e,e)),n}:i}function b(t){var e=new p.Translator2D({},{},{shiftZeroValue:!t,isHorizontal:!!t});return{getTranslator:function(){return e},update:function(t,n,i){e.update(t,n,i)},getVisibleArea:function(){var t=e.getCanvasVisibleArea();return[t.min,t.max]},visualRange:_,calculateInterval:_,getMarginOptions:function(){return{}}}}var w=s.inherit({_getLayoutItems:_,_useLinks:!1,_themeDependentChanges:["OPTIONS"],_initCore:function(){this._tooltipTracker=this._renderer.root,this._tooltipTracker.attr({"pointer-events":"visible"}),this._createHtmlElements(),this._initTooltipEvents(),this._argumentAxis=b(!0),this._valueAxis=b()},_getDefaultSize:function(){return this._defaultSize},_disposeCore:function(){this._disposeWidgetElements(),this._disposeTooltipEvents(),this._ranges=null},_optionChangesOrder:["OPTIONS"],_change_OPTIONS:function(){this._prepareOptions(),this._change(["UPDATE"])},_customChangesOrder:["UPDATE"],_change_UPDATE:function(){this._update()},_update:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide()),this._cleanWidgetElements(),this._updateWidgetElements(),this._drawWidgetElements()},_updateWidgetElements:function(){var t=this._getCorrectCanvas();this._updateRange(),this._argumentAxis.update(this._ranges.arg,t,this._getStick()),this._valueAxis.update(this._ranges.val,t)},_getStick:function(){},_applySize:function(t){this._allOptions.size={width:t[2]-t[0],height:t[3]-t[1]},this._change(["UPDATE"])},_setupResizeHandler:_,_prepareOptions:function(){return m(!0,{},this._themeManager.theme(),this.option())},_getTooltipCoords:function(){var t=this._canvas,e=this._renderer.getRootOffset();return{x:t.width/2+e.left,y:t.height/2+e.top}},_initTooltipEvents:function(){var t={widget:this};this._renderer.root.off("."+h).on(f,t,v)},_showTooltip:function(){this._tooltipShown||(this._tooltipShown=!0,this._getTooltip().isEnabled()&&this._tooltip.show(this._getTooltipData(),this._getTooltipCoords(),{}))},_hideTooltip:function(){this._tooltipShown&&(this._tooltipShown=!1,this._tooltip.hide())},_stopCurrentHandling:function(){this._hideTooltip()},_enableOutHandler:function(){var t=this;if(!t._outHandler){var e=function(e){var n=e.pageX,i=e.pageY,o=t._renderer.getRootOffset(),r=o.left,a=o.top,s=g(n-r),l=g(i-a);(function(t,e,n){var i=t.left,o=t.top,r=t.bottom,a=t.right,s=t.width,l=t.height;return d({left:i,top:o,right:s-a,bottom:l-r,width:s,height:l},e,n)})(t._canvas,s,l)||(t._hideTooltip(),t._disableOutHandler())};o.on(r.getDocument(),f,e),this._outHandler=e}},_disableOutHandler:function(){this._outHandler&&o.off(r.getDocument(),f,this._outHandler),this._outHandler=null},_disposeTooltipEvents:function(){this._tooltipTracker.off(),this._disableOutHandler(),this._renderer.root.off("."+h)},_getTooltip:function(){var t=this;return t._tooltip||(i.apply(this,arguments),t._setTooltipRendererOptions(t._tooltipRendererOptions),t._tooltipRendererOptions=null,t._setTooltipOptions()),t._tooltip}});t.exports=w,w.addPlugin(n(122).plugin),i=w.prototype._initTooltip,w.prototype._initTooltip=_;var x=w.prototype._disposeTooltip;w.prototype._disposeTooltip=function(){this._tooltip&&x.apply(this,arguments)},w.prototype._setTooltipRendererOptions=function(){var t=this._getRendererOptions();this._tooltip?this._tooltip.setRendererOptions(t):this._tooltipRendererOptions=t},w.prototype._setTooltipOptions=function(){var t=this._tooltip,e=t&&this._getOption("tooltip");t&&t.update(m({},e,{customizeTooltip:y(e.customizeTooltip,e.font,this.option("rtlEnabled")),enabled:e.enabled&&this._isTooltipEnabled()}))};var C=l(!0,{},n(119).plugin,{init:_,dispose:_,customize:null,members:{_getExportMenuOptions:null}});w.addPlugin(C)},function(t,e,n){"use strict";var i=n(0).extend,o=n(141),r=i,a=Math.round,s=Math.sqrt,l=Math.acos,u=180/Math.PI,c=Math.abs,d=n(13),h=d.normalizeAngle,f=d.getCosAndSin,p=n(2).isDefined,m=d.getVerticallyShiftedAngularCoords,g=n(140).radialLabelIndent;t.exports=r({},o,{_updateData:function(t,e){o._updateData.call(this,t),!e&&p(this._visible)||(this._visible=!0),this.minValue=this.initialMinValue=this.originalMinValue=p(t.minValue)?t.minValue:0},animate:function(t,e,n){this.graphic.animate({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},{delay:n,partitionDuration:e},t)},correctPosition:function(t){this.correctRadius(t),this.correctLabelRadius(t.radiusOuter+g),this.centerX=t.centerX,this.centerY=t.centerY},correctRadius:function(t){this.radiusInner=t.radiusInner,this.radiusOuter=t.radiusOuter},correctLabelRadius:function(t){this.radiusLabels=t},correctValue:function(t,e,n){this.value=(n||this.normalInitialValue)+t,this.minValue=t,this.percent=e,this._label.setDataField("percent",e)},_updateLabelData:function(){this._label.setData(this._getLabelFormatObject())},_getShiftLabelCoords:function(){var t=this._label.getBoundingRect(),e=this._getLabelCoords(this._label),n=this._getVisibleArea();return this._isLabelDrawingWithoutPoints?this._checkLabelPosition(e,t,n):this._getLabelExtraCoord(e,this._checkVerticalLabelPosition(e,t,n),t)},_getLabelPosition:function(t){return t.position},_getLabelCoords:function(t){var e,n,i=t.getBoundingRect(),o=t.getLayoutOptions(),r=f(this.middleAngle),s=this._getLabelPosition(o),l=this.radiusInner,u=this.radiusOuter,c=this.radiusLabels,d="columns"===s;return"inside"===s?(e=l+(u-l)/2+o.radialOffset,n=this.centerX+e*r.cos-i.width/2):(e=c+o.radialOffset,n=r.cos>.1||d&&r.cos>=0?this.centerX+e*r.cos:r.cos<-.1||d&&r.cos<0?this.centerX+e*r.cos-i.width:this.centerX+e*r.cos-i.width/2),{x:n,y:a(this.centerY-e*r.sin-i.height/2)}},_correctLabelCoord:function(t,e){var n=this._label,i=n.getBoundingRect().width,o=n.getLayoutOptions(),r=this._getVisibleArea(),a=r.maxX-i,s=r.minX,l=h(this.middleAngle),u=this.centerX,c=o.connectorOffset,d=t.x;return"columns"===o.position?(d=l<=90||l>=270?a:s,t.x=d):"inside"!==o.position&&e&&(l<=90||l>=270?d-c<u&&(d=u+c):d+i+c>u&&(d=u-i-c),t.x=d),t},drawLabel:function(){this.translate(),this._isLabelDrawingWithoutPoints=!0,this._drawLabel(),this._isLabelDrawingWithoutPoints=!1},updateLabelCoord:function(t){var e=this._label.getBoundingRect(),n=this._correctLabelCoord(e,t);n=this._checkHorizontalLabelPosition(n,e,this._getVisibleArea()),this._label.shift(a(n.x),a(e.y))},_checkVerticalLabelPosition:function(t,e,n){var i=t.x,o=t.y;return t.y+e.height>n.maxY?o=n.maxY-e.height:t.y<n.minY&&(o=n.minY),{x:i,y:o}},_getLabelExtraCoord:function(t,e,n){return t.y!==e.y?m({x:t.x,y:t.y,width:n.width,height:n.height},e.y-t.y,{x:this.centerX,y:this.centerY}):t},_checkHorizontalLabelPosition:function(t,e,n){var i=t.x,o=t.y;return t.x+e.width>n.maxX?i=n.maxX-e.width:t.x<n.minX&&(i=n.minX),{x:i,y:o}},applyWordWrap:function(t){var e=this._label,n=e.getBoundingRect(),i=this._getVisibleArea(),o=e.getLayoutOptions().position,r=n.width,a=!1;return"columns"===o&&this.series.index>0?r=i.maxX-this.centerX-this.radiusLabels:"inside"===o?r>i.maxX-i.minX&&(r=i.maxX-i.minX):t&&n.x<this.centerX&&n.width+n.x>this.centerX?r=Math.floor((i.maxX-i.minX)/2):n.x+r>i.maxX?r=i.maxX-n.x:n.x<i.minX&&(r=n.x+r-i.minX),r<n.width&&(a=e.fit(r)),a},setLabelTrackerData:function(){this._label.setTrackerData(this)},_checkLabelPosition:function(t,e,n){return t=this._checkHorizontalLabelPosition(t,e,n),this._checkVerticalLabelPosition(t,e,n)},_getLabelConnector:function(){var t=this.radiusOuter,e=this._options.styles.normal,n=e["stroke-width"]/2,i=this.series.getOptions().containerBackgroundColor===e.stroke?a(n):a(-n),o=f(a(this.middleAngle));return{x:a(this.centerX+(t-i)*o.cos),y:a(this.centerY-(t-i)*o.sin),angle:this.middleAngle}},_drawMarker:function(t,e,n,i){var o=this.radiusOuter,r=this.radiusInner,a=this.fromAngle,s=this.toAngle;n&&(r=o=0,i||(a=s=this.shiftedAngle)),this.graphic=t.arc(this.centerX,this.centerY,r,o,s,a).attr({"stroke-linejoin":"round"}).smartAttr(this._getStyle()).data({"chart-data-point":this}).sharp().append(e)},getTooltipParams:function(){var t=f(this.middleAngle),e=this.radiusInner,n=this.radiusOuter;return{x:this.centerX+(e+(n-e)/2)*t.cos,y:this.centerY-(e+(n-e)/2)*t.sin,offset:0}},_translate:function(){var t=this.shiftedAngle||0,e=this.value,n=this.minValue,i=this._getValTranslator();this.fromAngle=i.translate(n)+t,this.toAngle=i.translate(e)+t,this.middleAngle=i.translate((e-n)/2+n)+t,this.isVisible()||(this.middleAngle=this.toAngle=this.fromAngle=this.fromAngle||t)},getMarkerVisibility:function(){return!0},_updateMarker:function(t,e,n,i){t||(e=r({x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.radiusInner,startAngle:this.toAngle,endAngle:this.fromAngle},e)),this.graphic.smartAttr(e).sharp(),i&&i()},getLegendStyles:function(){return this._styles.legendStyles},isInVisibleArea:function(){return!0},hide:function(){this._visible&&(this._visible=!1,this.hideTooltip(),this._options.visibilityChanged())},show:function(){this._visible||(this._visible=!0,this._options.visibilityChanged())},setInvisibility:function(){this._label.draw(!1)},isVisible:function(){return this._visible},_getFormatObject:function(t){var e=o._getFormatObject.call(this,t),n=this.percent;return e.percent=n,e.percentText=t.formatValue(n,"percent"),e},getColor:function(){return this._styles.normal.fill},coordsIn:function(t,e){var n,i=t-this.centerX,o=e-this.centerY,r=s(i*i+o*o),a=this.fromAngle%360,d=this.toAngle%360;return!(r<this.radiusInner||r>this.radiusOuter||0===r)&&((n=l(i/r)*u*(o>0?-1:1))<0&&(n+=360),a===d&&c(this.toAngle-this.fromAngle)>1e-4||(a>=d?n<=a&&n>=d:!(n>=a&&n<=d)))}})},function(t,e,n){"use strict";var i=n(5).each,o=n(0).extend,r=n(4).noop,a=n(289),s=n(141),l=o,u=n(2).isDefined,c=Math,d=c.abs,h=c.min,f=c.max,p=c.round;t.exports=l({},s,{deleteLabel:function(){this._topLabel.dispose(),this._topLabel=null,this._bottomLabel.dispose(),this._bottomLabel=null},hideMarker:function(t){var e=this.graphic,n=e&&e[t+"Marker"],i=this["_"+t+"Label"];n&&"hidden"!==n.attr("visibility")&&n.attr({visibility:"hidden"}),i.draw(!1)},setInvisibility:function(){this.hideMarker("top"),this.hideMarker("bottom")},clearVisibility:function(){var t=this.graphic,e=t&&t.topMarker,n=t&&t.bottomMarker;e&&e.attr("visibility")&&e.attr({visibility:null}),n&&n.attr("visibility")&&n.attr({visibility:null})},clearMarker:function(){var t=this.graphic,e=t&&t.topMarker,n=t&&t.bottomMarker,i=this._emptySettings;e&&e.attr(i),n&&n.attr(i)},_getLabelPosition:function(t){var e="inside"===this._options.label.position;return this._options.rotated?"top"===t^e?"right":"left":"top"===t^e?"top":"bottom"},_getLabelMinFormatObject:function(){return{index:0,argument:this.initialArgument,value:this.initialMinValue,seriesName:this.series.name,originalValue:this.originalMinValue,originalArgument:this.originalArgument,point:this}},_updateLabelData:function(){var t=this._getLabelFormatObject();t.index=1,this._topLabel.setData(t),this._bottomLabel.setData(this._getLabelMinFormatObject())},_updateLabelOptions:function(){var t=this._options.label;(!this._topLabel||!this._bottomLabel)&&this._createLabel(),this._topLabel.setOptions(t),this._bottomLabel.setOptions(t)},_createLabel:function(){var t={renderer:this.series._renderer,labelsGroup:this.series._labelsGroup,point:this};this._topLabel=new a.Label(t),this._bottomLabel=new a.Label(t)},_getGraphicBBox:function(t){var e=this._options,n=this._getImage(e.image),i="top"===t?this._checkImage(n.top):this._checkImage(n.bottom),o=this._getPositionFromLocation(t);return e.visible?i?this._getImageBBox(o.x,o.y):this._getSymbolBBox(o.x,o.y,e.styles.normal.r):{x:o.x,y:o.y,width:0,height:0}},_getPositionFromLocation:function(t){var e,n,i="top"===t;return this._options.rotated?(e=i?f(this.x,this.minX):h(this.x,this.minX),n=this.y):(e=this.x,n=i?h(this.y,this.minY):f(this.y,this.minY)),{x:e,y:n}},_checkOverlay:function(t,e,n){return t<e+n},_getOverlayCorrections:function(t,e){var n=this._options.rotated,i=n?"x":"y",o=n?"width":"height",r=this.series.getValueAxis().getVisibleArea(),a=r[0],s=r[1],l=p((t[i]+t[o]-e[i])/2),u=t[i]-l,c=e[i]+l;return u<a?(u+=l=a-u,c+=l):c+e[o]>s&&(u+=l=s-c-e[o],c+=l),{coord1:u,coord2:c}},_checkLabelsOverlay:function(t){var e=this._topLabel.getBoundingRect(),n=this._bottomLabel.getBoundingRect(),i={};this._options.rotated?"top"===t?this._checkOverlay(e.x,n.x,n.width)&&(i=this._getOverlayCorrections(n,e),this._topLabel.shift(i.coord2,e.y),this._bottomLabel.shift(i.coord1,n.y)):this._checkOverlay(n.x,e.x,e.width)&&(i=this._getOverlayCorrections(e,n),this._topLabel.shift(i.coord1,e.y),this._bottomLabel.shift(i.coord2,n.y)):"top"===t?this._checkOverlay(n.y,e.y,e.height)&&(i=this._getOverlayCorrections(e,n),this._topLabel.shift(e.x,i.coord1),this._bottomLabel.shift(n.x,i.coord2)):this._checkOverlay(e.y,n.y,n.height)&&(i=this._getOverlayCorrections(n,e),this._topLabel.shift(e.x,i.coord2),this._bottomLabel.shift(n.x,i.coord1))},_drawLabel:function(){var t=[],e=this._options.rotated?this.x>=this.minX:this.y<this.minY,n=this._getCustomLabelVisibility(),o=this._topLabel,r=this._bottomLabel;o.pointPosition=e?"top":"bottom",r.pointPosition=e?"bottom":"top",(this.series.getLabelVisibility()||n)&&this.hasValue()&&!1!==n?(!1!==this.visibleTopMarker&&t.push(o),!1!==this.visibleBottomMarker&&t.push(r),i(t,(function(t,e){e.draw(!0)})),this._checkLabelsOverlay(this._topLabel.pointPosition)):(o.draw(!1),r.draw(!1))},_getImage:function(t){var e={};return u(t)&&("string"===typeof t?e.top=e.bottom=t:(e.top={url:"string"===typeof t.url?t.url:t.url&&t.url.rangeMaxPoint,width:"number"===typeof t.width?t.width:t.width&&t.width.rangeMaxPoint,height:"number"===typeof t.height?t.height:t.height&&t.height.rangeMaxPoint},e.bottom={url:"string"===typeof t.url?t.url:t.url&&t.url.rangeMinPoint,width:"number"===typeof t.width?t.width:t.width&&t.width.rangeMinPoint,height:"number"===typeof t.height?t.height:t.height&&t.height.rangeMinPoint})),e},_checkSymbol:function(t,e){var n=t.symbol,i=e.symbol,o="circle"===n&&"circle"!==i||"circle"!==n&&"circle"===i,r=this._getImage(t.image),a=this._getImage(e.image),s=this._checkImage(r.top)!==this._checkImage(a.top),l=this._checkImage(r.bottom)!==this._checkImage(a.bottom);return o||s||l},_getSettingsForTwoMarkers:function(t){var e=this._options,n={},i=e.rotated?h(this.x,this.minX):this.x,o=e.rotated?this.y:h(this.y,this.minY),r=t.r,a=this._populatePointShape(e.symbol,r);return n.top=l({translateX:i+this.width,translateY:o,r:r},t),n.bottom=l({translateX:i,translateY:o+this.height,r:r},t),a&&(n.top.points=n.bottom.points=a),n},_hasGraphic:function(){return this.graphic&&this.graphic.topMarker&&this.graphic.bottomMarker},_drawOneMarker:function(t,e,n,i){var o=this.graphic;o[e]?this._updateOneMarker(e,i):o[e]=this._createMarker(t,o,n,i)},_drawMarker:function(t,e,n,i,o){var r=this._getSettingsForTwoMarkers(o||this._getStyle()),a=this._getImage(this._options.image);this._checkImage(a.top)&&(r.top=this._getImageSettings(r.top,a.top)),this._checkImage(a.bottom)&&(r.bottom=this._getImageSettings(r.bottom,a.bottom)),this.graphic=this.graphic||t.g().append(e),this.visibleTopMarker&&this._drawOneMarker(t,"topMarker",a.top,r.top),this.visibleBottomMarker&&this._drawOneMarker(t,"bottomMarker",a.bottom,r.bottom)},_getSettingsForTracker:function(t){var e=this._options.rotated;return{translateX:e?h(this.x,this.minX)-t:this.x-t,translateY:e?this.y-t:h(this.y,this.minY)-t,width:this.width+2*t,height:this.height+2*t}},isInVisibleArea:function(){var t,e=this._options.rotated,n=e?this.y:this.x,i=e?f(this.minX,this.x):f(this.minY,this.y),o=e?h(this.minX,this.x):h(this.minY,this.y),r=!0,a=!0,s=!0,l=this.series.getArgumentAxis().getVisibleArea(),u=this.series.getValueAxis().getVisibleArea(),c=l[1]<n||l[0]>n,d=u[0]>o&&u[0]>i||u[1]<o&&u[1]<i;return c||d?r=a=s=!1:(r=u[0]<=o&&u[1]>o,a=u[0]<i&&u[1]>=i,e&&(t=r,r=a,a=t)),this.visibleTopMarker=r,this.visibleBottomMarker=a,s},getTooltipParams:function(){var t,e,n=this._options.rotated,i=n?h(this.x,this.minX):h(this.y,this.minY),o=n?"width":"height",r=this._getVisibleArea(),a=n?r.minX:r.minY,s=n?r.maxX:r.maxY,l=f(a,i),u=h(s,i+this[o]);return n?(e=this.y,t=l+(u-l)/2):(t=this.x,e=l+(u-l)/2),{x:t,y:e,offset:0}},_translate:function(){var t=this._options.rotated;s._translate.call(this),this.height=t?0:d(this.minY-this.y),this.width=t?d(this.x-this.minX):0},hasCoords:function(){return s.hasCoords.call(this)&&!(null===this.minX||null===this.minY)},_updateData:function(t){s._updateData.call(this,t),this.minValue=this.initialMinValue=this.originalMinValue=t.minValue},_getImageSettings:function(t,e){return{href:e.url||e.toString(),width:e.width||20,height:e.height||20,translateX:t.translateX,translateY:t.translateY}},getCrosshairData:function(t,e){var n=this._options.rotated,i=this.minX,o=this.minY,r=this.vx,a=this.vy,s=this.value,l=this.minValue,u=this.argument,c={axis:this.series.axis,x:r,y:a,yValue:s,xValue:u};return n?(c.yValue=u,d(r-t)<d(i-t)?c.xValue=s:(c.x=i,c.xValue=l)):d(a-e)>=d(o-e)&&(c.y=o,c.yValue=l),c},_updateOneMarker:function(t,e){this.graphic&&this.graphic[t]&&this.graphic[t].attr(e)},_updateMarker:function(t,e){this._drawMarker(void 0,void 0,!1,!1,e)},_getFormatObject:function(t){var e=this.initialMinValue,n=this.initialValue,i=this.initialArgument,o=t.formatValue(e),r=t.formatValue(n);return{argument:i,argumentText:t.formatValue(i,"argument"),valueText:o+" - "+r,rangeValue1Text:o,rangeValue2Text:r,rangeValue1:e,rangeValue2:n,seriesName:this.series.name,point:this,originalMinValue:this.originalMinValue,originalValue:this.originalValue,originalArgument:this.originalArgument}},getLabel:function(){return[this._topLabel,this._bottomLabel]},getLabels:function(){return[this._topLabel,this._bottomLabel]},getBoundingRect:r,coordsIn:function(t,e){var n=this._storeTrackerR(),i=t>=this.x-n&&t<=this.x+n,o=e>=this.y-n&&e<=this.y+n;return this._options.rotated?o&&(i||t>=this.minX-n&&t<=this.minX+n):i&&(o||e>=this.minY-n&&e<=this.minY+n)},getMaxValue:function(){return"discrete"!==this.series.valueAxisType&&this.minValue>this.value?this.minValue:this.value},getMinValue:function(){return"discrete"!==this.series.valueAxisType?this.minValue<this.value?this.minValue:this.value:this.minValue}})},function(t,e,n){"use strict";var i=n(0).extend,o=n(141),r=n(229),a=Math,s=a.abs,l=a.min,u=a.max,c=a.round;t.exports=i({},r,{_getContinuousPoints:function(t,e){var n=this.x,i=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]},o=this.width,r=this.highY,a=s(r-t)<s(r-e)?t:e,l=a===e?t:e;return l===a?[].concat(i(n,this.highY)).concat(i(n,this.lowY)).concat(i(n,this.closeY)).concat(i(n-o/2,this.closeY)).concat(i(n+o/2,this.closeY)).concat(i(n,this.closeY)):[].concat(i(n,this.highY)).concat(i(n,a)).concat(i(n+o/2,a)).concat(i(n+o/2,l)).concat(i(n,l)).concat(i(n,this.lowY)).concat(i(n,l)).concat(i(n-o/2,l)).concat(i(n-o/2,a)).concat(i(n,a))},_getCrockPoints:function(t){var e=this.x,n=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]};return[].concat(n(e,this.highY)).concat(n(e,this.lowY)).concat(n(e,t)).concat(n(e-this.width/2,t)).concat(n(e+this.width/2,t)).concat(n(e,t))},_getPoints:function(){var t=this.closeY,e=this.openY;return null!==t&&null!==e?this._getContinuousPoints(e,t):e===t?[this.x,this.highY,this.x,this.lowY]:this._getCrockPoints(null!==e?e:t)},getColor:function(){return this._isReduction?this._options.reduction.color:this._styles.normal.stroke||this.series.getColor()},_drawMarkerInGroup:function(t,e,n){this.graphic=n.path(this._getPoints(),"area").attr({"stroke-linecap":"square"}).attr(e).data({"chart-data-point":this}).sharp().append(t)},_fillStyle:function(){var t=this._options.styles;this._isReduction&&this._isPositive?this._styles=t.reductionPositive:this._isReduction?this._styles=t.reduction:this._isPositive?this._styles=t.positive:this._styles=t},_getMinTrackerWidth:function(){return 2+2*this._styles.normal["stroke-width"]},correctCoordinates:function(t){var e=this._getMinTrackerWidth(),n=t.width;n=n<e?e:n>10?10:n,this.width=n+n%2,this.xCorrection=t.offset},_getMarkerGroup:function(t){return this._isReduction&&this._isPositive?t.reductionPositiveMarkersGroup:this._isReduction?t.reductionMarkersGroup:this._isPositive?t.defaultPositiveMarkersGroup:t.defaultMarkersGroup},_drawMarker:function(t,e){this._drawMarkerInGroup(this._getMarkerGroup(e),this._getStyle(),t)},_getSettingsForTracker:function(){var t,e,n,i,o=this.highY,r=this.lowY,a=this._options.rotated;return o===r&&(o=a?o+2:o-2,r=a?r-2:r+2),a?(t=l(r,o),e=this.x-this.width/2,n=s(r-o),i=this.width):(t=this.x-this.width/2,e=l(r,o),n=this.width,i=s(r-o)),{x:t,y:e,width:n,height:i}},_getGraphicBBox:function(t){var e=this._options.rotated,n=this.x,i=this.width,o=this.lowY,r=this.highY;if(t){var a=this.series.getValueAxis().getVisibleArea();r=this._truncateCoord(r,a),o=this._truncateCoord(o,a)}var s={x:e?o:n-c(i/2),y:e?n-c(i/2):r,width:e?r-o:i,height:e?i:o-r};if(t){var l="top"===t;this._options.rotated?(s.x=l?s.x+s.width:s.x,s.width=0):(s.y=l?s.y:s.y+s.height,s.height=0)}return s},getTooltipParams:function(t){if(this.graphic){var e=l(this.lowY,this.highY),n=u(this.lowY,this.highY),i=this._getVisibleArea(),o=this._options.rotated,r=o?i.minX:i.minY,a=o?i.maxX:i.maxY,s=u(r,e),c=l(a,n),d=this.getCenterCoord();return"edge"===t&&(d[o?"x":"y"]=o?c:s),d.offset=0,d}},getCenterCoord:function(){if(this.graphic){var t,e,n=l(this.lowY,this.highY),i=u(this.lowY,this.highY),o=this._getVisibleArea(),r=this._options.rotated,a=r?o.minX:o.minY,s=r?o.maxX:o.maxY,c=u(a,n),d=c+(l(s,i)-c)/2;return r?(e=this.x,t=d):(t=this.x,e=d),{x:t,y:e}}},hasValue:function(){return null!==this.highValue&&null!==this.lowValue},hasCoords:function(){return null!==this.x&&null!==this.lowY&&null!==this.highY},_translate:function(){var t=this._options.rotated,e=this._getValTranslator(),n=this._getArgTranslator().translate(this.argument);this.vx=this.vy=this.x=null===n?n:n+(this.xCorrection||0),this.openY=null!==this.openValue?e.translate(this.openValue):null,this.highY=e.translate(this.highValue),this.lowY=e.translate(this.lowValue),this.closeY=null!==this.closeValue?e.translate(this.closeValue):null;var i=l(this.lowY,this.highY)+s(this.lowY-this.highY)/2;this._calculateVisibility(t?i:this.x,t?this.x:i)},getCrosshairData:function(t,e){var n,i,o=this._options.rotated,r=o?t:e,a=this.argument,l="low";return s(this.lowY-r)<s(this.closeY-r)?n=this.lowY:(n=this.closeY,l="close"),s(n-r)>=s(this.openY-r)&&(n=this.openY,l="open"),s(n-r)>=s(this.highY-r)&&(n=this.highY,l="high"),(i=o?{y:this.vy,x:n,xValue:this[l+"Value"],yValue:a}:{x:this.vx,y:n,xValue:a,yValue:this[l+"Value"]}).axis=this.series.axis,i},_updateData:function(t){var e=this._label,n=this._options.reduction.color;this.value=this.initialValue=t.reductionValue,this.originalValue=t.value,this.lowValue=this.originalLowValue=t.lowValue,this.highValue=this.originalHighValue=t.highValue,this.openValue=this.originalOpenValue=t.openValue,this.closeValue=this.originalCloseValue=t.closeValue,this._isPositive=t.openValue<t.closeValue,this._isReduction=t.isReduction,this._isReduction&&e.setColor(n)},_updateMarker:function(t,e,n){var i=this.graphic;i.attr({points:this._getPoints()}).smartAttr(e).sharp(),n&&i.append(this._getMarkerGroup(n))},_getLabelFormatObject:function(){return{openValue:this.openValue,highValue:this.highValue,lowValue:this.lowValue,closeValue:this.closeValue,reductionValue:this.initialValue,argument:this.initialArgument,value:this.initialValue,seriesName:this.series.name,originalOpenValue:this.originalOpenValue,originalCloseValue:this.originalCloseValue,originalLowValue:this.originalLowValue,originalHighValue:this.originalHighValue,originalArgument:this.originalArgument,point:this}},_getFormatObject:function(t){var e=t.formatValue(this.highValue),n=t.formatValue(this.openValue),r=t.formatValue(this.closeValue),a=t.formatValue(this.lowValue),s=o._getFormatObject.call(this,t);return i({},s,{valueText:"h: "+e+(""!==n?" o: "+n:"")+(""!==r?" c: "+r:"")+" l: "+a,highValueText:e,openValueText:n,closeValueText:r,lowValueText:a})},getMaxValue:function(){return this.highValue},getMinValue:function(){return this.lowValue}})},function(t,e,n){"use strict";var i=n(4).noop,o=n(2),r=n(0).extend,a=n(273).BaseThemeManager,s=o.isString,l=o.isDefined,u=n(13).normalizeEnum,c=a.inherit(function(){var t=function(t){return t?((t=r(!0,{},t)).title=(e=t.title,s(e)?{text:e}:e),("logarithmic"===t.type&&t.logarithmBase<=0||t.logarithmBase&&!o.isNumeric(t.logarithmBase))&&(t.logarithmBase=void 0,t.logarithmBaseError=!0),t.label&&t.label.alignment&&(t.label.userAlignment=!0),t):{};var e},e=function(e,n,i){var o=this._theme,a=i^"valueAxis"===e?"verticalAxis":"horizontalAxis",s=t(n),u=t(this._userOptions.commonAxisSettings),c=r(!0,{},o.commonAxisSettings,o[a],o[e],u,s);return c.workWeek=s.workWeek||o[e].workWeek,c.forceUserTickInterval|=l(s.tickInterval)&&!l(s.axisDivisionFactor),c},n=function(t,e){e=e||this._userOptions[t];var n=this._theme[t],i=this._mergedSettings[t];return i||(i=o.isPlainObject(n)&&o.isPlainObject(e)?r(!0,{},n,e):l(e)?e:n,this._mergedSettings[t]=i,i)},a={base:n,argumentAxis:e,valueAxisRangeSelector:function(){return n.call(this,"valueAxis")},valueAxis:e,series:function(t,e,n){var i,o,s=this,c=s._theme,d=s._userOptions.commonSeriesSettings||{},h=c.commonSeriesSettings,f=s._themeSection.split(".").slice(-1)[0],p=u(e.type||d.type||h.type||"pie"===f&&c.type),m=s.palette,g=~p.indexOf("bar"),_=~p.indexOf("line"),v=~p.indexOf("area"),y="bubble"===p,b=s.getOptions("resolveLabelsOverlapping"),w=s.getOptions("containerBackgroundColor"),x=a.seriesTemplate.call(this);(g||y)&&(o=(e=r(!0,{},d,d[p],e)).visible,d={type:{}},r(!0,e,e.point),e.visible=o);var C,S,k=r(!0,{aggregation:{}},h,h[p],d,d[p],e);return k.aggregation.enabled="chart"===f&&(C=k.aggregation,S=s.getOptions("useAggregation"),!!(l(C.enabled)?C.enabled:S)),k.type=p,k.widgetType=f,k.containerBackgroundColor=w,i="pie"!==f?k.color||m.getNextColor(n):function(t,e,n){var i="".concat(t,"-").concat(e);return s._multiPieColors[i]||(s._multiPieColors[i]=m.getNextColor(n)),s._multiPieColors[i]},k.mainSeriesColor=i,k.resolveLabelsOverlapping=b,k.label&&(_||v&&"rangearea"!==p||"scatter"===p)&&(k.label.position="outside"),x&&(k.nameField=x.nameField),k},animation:function(t){var e=this._userOptions[t];return e=o.isPlainObject(e)?e:l(e)?{enabled:!!e}:{},n.call(this,t,e)},seriesTemplate:function(){var t=n.call(this,"seriesTemplate");return t&&(t.nameField=t.nameField||"series"),t},zoomAndPan:function(){function t(t){var e="pan"===(t=u(t))||"both"===t,n="zoom"===t||"both"===t;return{pan:e,zoom:n,none:!e&&!n}}var e=this._userOptions.zoomAndPan;if(!l(e)){var i=u(this.getOptions("zoomingMode")),o=u(this.getOptions("scrollingMode")),r=-1!==["all","mouse","touch"].indexOf(i),a=-1!==["all","mouse","touch"].indexOf(o);e={argumentAxis:r&&a?"both":r?"zoom":a?"pan":"none",allowMouseWheel:"all"===i||"mouse"===i,allowTouchGestures:"all"===i||"touch"===i||"all"===o||"touch"===o}}var s=n.call(this,"zoomAndPan",e);return{valueAxis:t(s.valueAxis),argumentAxis:t(s.argumentAxis),dragToZoom:!!s.dragToZoom,dragBoxStyle:{class:"dxc-shutter",fill:s.dragBoxStyle.color,opacity:s.dragBoxStyle.opacity},panKey:s.panKey,allowMouseWheel:!!s.allowMouseWheel,allowTouchGestures:!!s.allowTouchGestures}}};return{_themeSection:"chart",ctor:function(t){var e=this;e.callBase.apply(e,arguments);var n=t.options||{};e._userOptions=n,e._mergeAxisTitleOptions=[],e._multiPieColors={},e._callback=i},dispose:function(){var t=this;return t.palette&&t.palette.dispose(),t.palette=t._userOptions=t._mergedSettings=t._multiPieColors=null,t.callBase.apply(t,arguments)},resetPalette:function(){this.palette.reset(),this._multiPieColors={}},getOptions:function(t){return(a[t]||a.base).apply(this,arguments)},refresh:function(){return this._mergedSettings={},this.callBase.apply(this,arguments)},_initializeTheme:function(){var t=this;t.callBase.apply(t,arguments),t.updatePalette()},resetOptions:function(t){this._mergedSettings[t]=null},update:function(t){this._userOptions=t},updatePalette:function(){this.palette=this.createPalette(this.getOptions("palette"),{useHighlight:!0,extensionMode:this.getOptions("paletteExtensionMode")})}}}());e.ThemeManager=c},function(t,e,n){"use strict";var i=n(2),o=a(n(140)),r=a(n(279));function a(t){return t&&t.__esModule?t:{default:t}}var s=Math.floor,l=Math.sqrt,u=Math.min,c=Math.max,d=o.default.radialLabelIndent;function h(t,e,n){return n<t?t:e<n?e:n}function f(t){if(t._label.isVisible()&&"inside"!==t._label.getLayoutOptions().position)return t._label.getBoundingRect()}function p(t,e,n,i,o){return t.some((function(t){return t.getVisiblePoints().reduce((function(t,r){var a=f(r);if(a){var s=h(a.x,a.x+a.width,e),p=h(a.y,a.y+a.height,n);i=u(c(function(t,e,n,i){return l((t-n)*(t-n)+(e-i)*(e-i))}(s,p,e,n)-d,o),i),t=!0}return t}),!1)})),i}function m(t){return t.reduce((function(t,e){var n=e.getVisiblePoints().reduce((function(t,e){var n=f(e);return n&&n.width>t&&(t=n.width),t}),0),i=n;return n&&(t.outerLabelsCount++,t.outerLabelsCount>1&&(n+=o.default.pieLabelSpacing),i+=o.default.pieLabelSpacing),t.sizes.push(n),t.rSizes.push(i),t.common+=n,t}),{sizes:[],rSizes:[],common:0,outerLabelsCount:0})}function g(t,e,n,i,o,r){var a,l,u=0,c=t.sizes,d=t.rSizes;for(l=0;l<n.length;l++)0!==c[l]?(a=s(a?a+d[l-1]:e),n[l].correctLabelRadius(a),u+=o||c[l],d[l]=o||d[l],n[l].setVisibleArea({left:s(r-e-u),right:s(i.width-(r+e+u)),top:i.top,bottom:i.bottom,width:i.width,height:i.height})):a&&(a+=d[l-1])}function _(t){var e;return e="pie"===t.type?0:(e=(e=(0,i.isNumeric)(t.innerRadius)?Number(t.innerRadius):.5)<.2?.2:e)>.8?.8:e}function v(){}function y(t,e,n,i){return(t-e-d-n.left)/i.outerLabelsCount}function b(t,e,n,i,o,r){var a,s=m(n),l=function(t,e,n){return t-e.left-(n.outerLabelsCount>0?n.common+d:0)}(o,e,s);return l<i?a=y(o,t=i,e,s):t=u(p(n,o,r,t,i),l),g(s,t+d,n,e,a,o),t}function w(t){return new r.default.WrapperLayoutElement(null,{x:t.left,y:t.top,width:t.width-t.left-t.right,height:t.height-t.top-t.bottom})}v.prototype={constructor:v,setOptions:function(t){this._options=t},applyPieChartSeriesLayout:function(t,e,n){var o,r,a=t.height-t.top-t.bottom,l=t.width-t.left-t.right,c=l/2+t.left,d=a/2+t.top,h=this._options.piePercentage;return(0,i.isNumeric)(h)?o=r=h*u(t.height,t.width)/2:(o=u(l,a)/2,r=this._options.minPiePercentage*o),n||(o=b(o,t,e,r,c,d)),{centerX:s(c),centerY:s(d),radiusInner:s(o*_(e[0])),radiusOuter:s(o)}},applyEqualPieChartLayout:function(t,e){var n=e.radius;return{centerX:s(e.x),centerY:s(e.y),radiusInner:s(n*_(t[0])),radiusOuter:s(n)}},correctPieLabelRadius:function(t,e,n){var i,o=m(t),r=e.radiusOuter+d,a=e.centerX-n.left-r;o.common+d>a&&(i=y(e.centerX,e.radiusOuter,n,o)),g(o,r,t,n,i,e.centerX)},needMoreSpaceForPanesCanvas:function(t,e,n){var o=this._options,r=o.width,a=o.height,s=o.piePercentage,l=(0,i.isNumeric)(s),d=0,h=0;return t.forEach((function(t){var i=t.canvas,o=l?u(i.width,i.height)*s:void 0,f=n?n(t):{width:!1,height:!1},p=f.width?0:(l?o:r)-(i.width-i.left-i.right),m=f.height?0:(l?o:a)-(i.height-i.top-i.bottom);e?(d+=p>0?p:0,h=c(m>0?m:0,h)):(d=c(p>0?p:0,d),h+=m>0?m:0)})),(d>0||h>0)&&{width:d,height:h}},layoutInsideLegend:function(t,e){var n=t.getLayoutOptions();if(n){var i=n.position,o=n.cutSide,r={horizontal:i.horizontal,vertical:i.vertical};e[n.cutLayoutSide]+="horizontal"===n.cutSide?n.width:n.height,r[o]={left:"right",right:"left",top:"bottom",bottom:"top",center:"center"}[r[o]],t.position({of:w(e),my:r,at:i})}}},e.LayoutManager=v},function(t,e,n){"use strict";var i=n(0),o=n(16),r=n(5),a=m(n(123)),s=m(n(226)),l=m(n(410)),u=n(286),c=m(n(411)),d=n(230),h=n(2),f=n(4),p=n(13);function m(t){return t&&t.__esModule?t:{default:t}}var g=Array.isArray;function _(t){return g(t)?0===t.length?[{}]:t:[t]}function v(t,e,n,i){var o,r,a,s,l;if(n){r=t.value,o={skipEventRising:!0};var u=t.fullName.split("."),c=u[u.length-1];"endValue"!==c&&"startValue"!==c||(o={allowPartialUpdate:!0},a={},s=c,l=t.value,s in a?Object.defineProperty(a,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):a[s]=l,r=a)}else r=((0,h.isDefined)(i)?t.value[i]:t.value).visualRange;e.visualRange(r,o)}var y=u.BaseChart.inherit({_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,i.extend)(this._deprecatedOptions,{barWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.barPadding' or 'series.barPadding' option instead"},equalBarWidth:{since:"18.1",message:"Use the 'commonSeriesSettings.ignoreEmptyPoints' or 'series.ignoreEmptyPoints' option instead"}})},_fontFields:["commonAxisSettings.label.font","commonAxisSettings.title.font"],_partialOptionChangesMap:{visualRange:"VISUAL_RANGE",_customVisualRange:"VISUAL_RANGE",strips:"REFRESH_AXES",constantLines:"REFRESH_AXES"},_partialOptionChangesPath:{argumentAxis:["strips","constantLines","visualRange","_customVisualRange"],valueAxis:["strips","constantLines","visualRange","_customVisualRange"]},_initCore:function(){this._panesClipRects={},this.callBase()},_disposeCore:function(){var t=this._disposeObjectsInArray,e=this._panesClipRects;this.callBase(),t.call(e,"fixed"),t.call(e,"base"),t.call(e,"wide"),this._panesClipRects=null},_dispose:function(){var t=this._disposeObjectsInArray;this.callBase(),this.panes=null,this._legend&&(this._legend.dispose(),this._legend=null),t.call(this,"panesBackground"),t.call(this,"seriesFamilies"),this._disposeAxes()},_createPanes:function(){this._cleanPanesClipRects("fixed"),this._cleanPanesClipRects("base"),this._cleanPanesClipRects("wide")},_cleanPanesClipRects:function(t){(this._panesClipRects[t]||[]).forEach((function(t){return t&&t.dispose()})),this._panesClipRects[t]=[]},_getElementsClipRectID:function(t){var e=this._panesClipRects.fixed[this._getPaneIndex(t)];return e&&e.id},_getPaneIndex:function(t){var e,n=t||"default";return(0,r.each)(this.panes,(function(t,i){if(i.name===n)return e=t,!1})),e},_updateSize:function(){this.callBase(),(0,p.setCanvasValues)(this._canvas)},_reinitAxes:function(){this.panes=this._createPanes(),this._populateAxes(),this._axesReinitialized=!0},_getCrosshairMargins:function(){var t=this._getCrosshairOptions()||{},e=t.enabled,n=c.default.getMargins();return{x:e&&t.horizontalLine.visible?n.x:0,y:e&&t.verticalLine.visible?n.y:0}},_populateAxes:function(){var t,e,n=this,i=n.panes,a=n._isRotated(),s=_(n.option("argumentAxis")||{})[0],l=n.option("valueAxis"),u=_(l||{}),c=[],d=[],h=0,f=n._getCrosshairMargins();e=a?"right"===s.position?i[i.length-1].name:i[0].name:"top"===s.position?i[0].name:i[i.length-1].name,t=(0,p.map)(i,(function(t){var i=t.name!==e;return n._populateAxesOptions("argumentAxis",s,{pane:t.name,name:null,optionPath:"argumentAxis",crosshairMargin:a?f.x:f.y},a,i)})),(0,r.each)(u,(function(t,e){var i,s=[],u=e.name;u&&-1!==(0,o.inArray)(u,d)?n._incidentOccurred("E2102"):(u&&d.push(u),e.pane&&s.push(e.pane),(null===(i=e.panes)||void 0===i?void 0:i.length)&&(s=s.concat(e.panes.slice(0))),(s=(0,p.unique)(s)).length||s.push(void 0),(0,r.each)(s,(function(i,o){var r=g(l)?"valueAxis[".concat(t,"]"):"valueAxis";c.push(n._populateAxesOptions("valueAxis",e,{name:u||"defaultAxisName"+h++,pane:o,priority:t,optionPath:r,crosshairMargin:a?f.y:f.x},a))})))})),n._redesignAxes(t,!0,e),n._redesignAxes(c,!1)},_redesignAxes:function(t,e,n){var i=this,o=[],a=e?i._argumentAxes:i._valueAxes;(0,r.each)(t,(function(t,n){var s=a&&a.filter((function(t){return t.name===n.name&&(!(0,h.isDefined)(n.pane)&&i.panes.some((function(e){return e.name===t.pane}))||t.pane===n.pane)}));s&&s.length>0?(0,r.each)(s,(function(t,r){var a=function(t,e,n){if(n)return{argumentAxisType:t.argumentAxisType,argumentType:t.argumentType};var i=t.groups.filter((function(t){return t.valueAxis===e}))[0];return{valueAxisType:i.valueAxisType,valueType:i.valueType}}(i._groupsData,r,e);r.updateOptions(n),e?r.setTypes(a.argumentAxisType,a.argumentType,"argumentType"):r.setTypes(a.valueAxisType,a.valueType,"valueType"),r.validate(),o.push({axis:r})})):o.push({options:n})})),a?(0,r.reverseEach)(a,(function(t,n){o.some((function(t){return t.axis&&t.axis===n}))||i._disposeAxis(t,e)})):a=e?i._argumentAxes=[]:i._valueAxes=[],(0,r.each)(o,(function(t,o){var r=o.axis;o.axis&&e?o.axis.isVirtual=o.axis.pane!==n:o.options&&(r=i._createAxis(e,o.options,e?o.options.pane!==n:void 0),a.push(r)),r.applyVisualRangeSetter(i._getVisualRangeSetter())}))},_disposeAxis:function(t,e){var n=e?this._argumentAxes:this._valueAxes,i=n[t];i&&(i.dispose(),n.splice(t,1))},_disposeAxes:function(){var t=this._disposeObjectsInArray;t.call(this,"_argumentAxes"),t.call(this,"_valueAxes")},_appendAdditionalSeriesGroups:function(){this._crosshairCursorGroup.linkAppend(),this._scrollBar&&this._scrollBarGroup.linkAppend()},_getLegendTargets:function(){var t=this;return(this.series||[]).map((function(e){var n=t._getLegendOptions(e);return n.legendData.series=e,e.getOptions().showInLegend||(n.legendData.visible=!1),n}))},_legendItemTextField:"name",_seriesPopulatedHandlerCore:function(){this._processSeriesFamilies(),this._processValueAxisFormat()},_renderTrackers:function(){var t;for(t=0;t<this.series.length;++t)this.series[t].drawTrackers()},_specialProcessSeries:function(){this._processSeriesFamilies()},_processSeriesFamilies:function(){var t,e,n=this,i=[],a=[],s=n._themeManager,u=s.getOptions("negativesAsZeroes"),c=s.getOptions("negativesAsZeros"),d={equalBarWidth:s.getOptions("equalBarWidth"),minBubbleSize:s.getOptions("minBubbleSize"),maxBubbleSize:s.getOptions("maxBubbleSize"),barWidth:s.getOptions("barWidth"),barGroupPadding:s.getOptions("barGroupPadding"),barGroupWidth:s.getOptions("barGroupWidth"),negativesAsZeroes:(0,h.isDefined)(u)?u:c};(null===(t=n.seriesFamilies)||void 0===t?void 0:t.length)?(0,r.each)(n.seriesFamilies,(function(t,e){e.updateOptions(d),e.adjustSeriesValues()})):((0,r.each)(n.series,(function(t,e){-1===(0,o.inArray)(e.type,i)&&i.push(e.type)})),(0,r.each)(n._getLayoutTargets(),(function(t,o){e=n._getSeriesForPane(o.name),(0,r.each)(i,(function(t,i){var r=new l.default.SeriesFamily({type:i,pane:o.name,equalBarWidth:d.equalBarWidth,minBubbleSize:d.minBubbleSize,maxBubbleSize:d.maxBubbleSize,barWidth:d.barWidth,barGroupPadding:d.barGroupPadding,barGroupWidth:d.barGroupWidth,negativesAsZeroes:d.negativesAsZeroes,rotated:n._isRotated()});r.add(e),r.adjustSeriesValues(),a.push(r)}))})),n.seriesFamilies=a)},_updateSeriesDimensions:function(){var t,e=this.seriesFamilies||[];for(t=0;t<e.length;t++){var n=e[t];n.updateSeriesValues(),n.adjustSeriesDimensions()}},_getLegendCallBack:function(t){return this._legend&&this._legend.getActionCallback(t)},_appendAxesGroups:function(){this._stripsGroup.linkAppend(),this._gridGroup.linkAppend(),this._axesGroup.linkAppend(),this._constantLinesGroup.linkAppend(),this._labelAxesGroup.linkAppend(),this._scaleBreaksGroup.linkAppend()},_populateMarginOptions:function(){var t=this,e=function(t,e,n,i){var o=i?t.width/e:t.width,r=i?t.height:t.height/e;return Math.min(o,r)*n}(t.getSize(),t.panes.length,t._themeManager.getOptions("maxBubbleSize"),t._isRotated()),n={};t._valueAxes.forEach((function(i){var o=t.series.filter((function(t){return t.getValueAxis()===i})),r={};o.forEach((function(t){if(t.isVisible()){var i=function(t,e){return t.processBubbleSize&&(t.size=e),t}(t.getMarginOptions(),e);r=(0,p.mergeMarginOptions)(r,i),n=(0,p.mergeMarginOptions)(n,i)}})),i.setMarginOptions(r)})),t._argumentAxes.forEach((function(t){return t.setMarginOptions(n)}))},_populateBusinessRange:function(t,e){var n=this,i=n._isRotated(),o=new a.default.Range({rotated:!!i}),r=n._getVisibleSeries();n._valueAxes.forEach((function(s){var l=new a.default.Range({rotated:!!i,pane:s.pane,axis:s.name}),u=r.filter((function(t){return t.getValueAxis()===s}));u.forEach((function(t){var e=t.getRangeData();l.addRange(e.val),o.addRange(e.arg)})),(!t||t&&u.length&&s===t)&&(s.setGroupSeries(u),s.setBusinessRange(l,n._axesReinitialized||e,n._argumentAxes[0]._lastVisualRangeUpdateMode))})),(!t||t&&r.length)&&n._argumentAxes.forEach((function(t){return t.setBusinessRange(o,n._axesReinitialized,void 0,n._groupsData.categories)})),n._populateMarginOptions()},getArgumentAxis:function(){return(this._argumentAxes||[]).filter((function(t){return!t.isVirtual}))[0]},getValueAxis:function(t){var e=this;return(this._valueAxes||[]).filter((0,h.isDefined)(t)?function(e){return e.name===t}:function(t){return t.pane===e.defaultPane})[0]},_getGroupsData:function(){var t=this,e=[];return t._valueAxes.forEach((function(n){e.push({series:t.series.filter((function(t){return t.getValueAxis()===n})),valueAxis:n,valueOptions:n.getOptions()})})),{groups:e,argumentAxes:t._argumentAxes,argumentOptions:t._argumentAxes[0].getOptions()}},_groupSeries:function(){this._correctValueAxes(!1),this._groupsData=this._getGroupsData()},_processValueAxisFormat:function(){var t=[];this.series.forEach((function(e){var n=e.getValueAxis();e.isFullStackedSeries()&&(n.setPercentLabelFormat(),t.push(n))})),this._valueAxes.forEach((function(e){-1===t.indexOf(e)&&e.resetAutoLabelFormat()}))},_populateAxesOptions:function(t,e,n,o,r){var a=this._prepareStripsAndConstantLines(t,e,o),s=(0,i.extend)(!0,{},a,n,this._prepareAxisOptions(t,a,o));return r&&(s.visible=s.tick.visible=s.minorTick.visible=s.label.visible=!1,s.title={}),s},_getValFilter:function(t){return(0,d.getViewPortFilter)(t.getValueAxis().visualRange()||{})},_createAxis:function(t,e,n){var o=t?"argumentAxis":"valueAxis",r=(0,i.extend)({renderer:this._renderer,incidentOccurred:this._incidentOccurred,eventTrigger:this._eventTrigger,axisClass:t?"arg":"val",widgetClass:"dxc",stripsGroup:this._stripsGroup,labelAxesGroup:this._labelAxesGroup,constantLinesGroup:this._constantLinesGroup,scaleBreaksGroup:this._scaleBreaksGroup,axesContainerGroup:this._axesGroup,gridGroup:this._gridGroup,isArgumentAxis:t},this._getAxisRenderingOptions(o)),a=new s.default.Axis(r);return a.updateOptions(e),a.isVirtual=n,a},_applyVisualRangeByVirtualAxes:function(t,e){return!1},_applyCustomVisualRangeOption:function(t,e){t.getOptions().optionPath&&this._parseVisualRangeOption("".concat(t.getOptions().optionPath,".visualRange"),e)},_getVisualRangeSetter:function(){var t=this;return function(e,n){var i=n.skipEventRising,o=n.range;t._applyCustomVisualRangeOption(e,o),e.setCustomVisualRange(o),e.skipEventRising=i,t._applyVisualRangeByVirtualAxes(e,o)||(t._applyingChanges?t._change_VISUAL_RANGE():t._requestChange(["VISUAL_RANGE"]))}},_getTrackerSettings:function(){return(0,i.extend)(this.callBase(),{argumentAxis:this.getArgumentAxis()})},_prepareStripsAndConstantLines:function(t,e,n){return(e=this._themeManager.getOptions(t,e,n)).strips&&(0,r.each)(e.strips,(function(t){e.strips[t]=(0,i.extend)(!0,{},e.stripStyle,e.strips[t])})),e.constantLines&&(0,r.each)(e.constantLines,(function(t,n){e.constantLines[t]=(0,i.extend)(!0,{},e.constantLineStyle,n)})),e},refresh:function(){this._disposeAxes(),this.callBase()},_layoutAxes:function(t){var e=t(),n=this.checkForMoreSpaceForPanesCanvas();if(n){var i=this._layout.backward(this._rect,this._rect,[n.width,n.height]);n.width=Math.max(0,i[0]),n.height=Math.max(0,i[1]),this._canvas=this._createCanvasFromRect(this._rect),t(n,e)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),this._isRotated())},_parseVisualRangeOption:function(t,e){var n=this,i=t.split(/[.[]/)[0],o=t.match(/\d+/g);o=(0,h.isDefined)(o)?parseInt(o[0]):o,t.indexOf("visualRange")>0?n._setCustomVisualRange(i,o,e):("object"===(0,h.type)(e)||g(e))&&i.indexOf("Axis")>0&&JSON.stringify(e).indexOf("visualRange")>0&&((0,h.isDefined)(e.visualRange)?n._setCustomVisualRange(i,o,e.visualRange):g(e)&&e.forEach((function(t,e){return(0,h.isDefined)(t.visualRange)&&n._setCustomVisualRange(i,e,t.visualRange)})))},_setCustomVisualRange:function(t,e,n){var i=this._options.silent(t);i&&((0,h.isDefined)(e)?i[e]._customVisualRange=n:i._customVisualRange=n,this._axesReinitialized=!0)},_raiseZoomEndHandlers:function(){this._valueAxes.forEach((function(t){return t.handleZoomEnd()}))},_setOptionsByReference:function(){this.callBase(),(0,i.extend)(this._optionsByReference,{"valueAxis.visualRange":!0})},_notifyOptionChanged:function(t,e,n){this.callBase.apply(this,arguments),this._optionChangedLocker||this._parseVisualRangeOption(t,e)},_notifyVisualRange:function(){var t=this;t._valueAxes.forEach((function(e){if(e.getOptions().optionPath){var n="".concat(e.getOptions().optionPath,".visualRange"),i=(0,p.convertVisualRangeObject)(e.visualRange(),!g(t.option(n)));e.skipEventRising&&(0,p.rangesAreEqual)(i,t.option(n))?e.skipEventRising=null:t.option(n,i)}}))},_notify:function(){this.callBase(),this._axesReinitialized=!1,!0!==this.option("disableTwoWayBinding")&&this._notifyVisualRange()},_getAxesForScaling:function(){return this._valueAxes},_getAxesByOptionPath:function(t,e,n){var i,o=this._getAxesForScaling(),r=[];e?(t.fullName&&(i=t.fullName.slice(0,t.fullName.indexOf("."))),r=o.filter((function(t){return t.getOptions().optionPath===i}))):"object"===(0,h.type)(t.value)?r=o.filter((function(e){return e.getOptions().optionPath===t.name})):g(t.value)&&t.value.forEach((function(e,i){var a=o.filter((function(e){return e.getOptions().optionPath==="".concat(t.name,"[").concat(i,"]")}))[0];(0,h.isDefined)(e[n])&&(0,h.isDefined)(a)&&(r[i]=a)}));return r},_optionChanged:function(t){if(!this._optionChangedLocker){var e,n=t.fullName.indexOf("visualRange")>0||!(this.getPartialChangeOptionsName(t).indexOf("visualRange")>-1)&&void 0;(0,h.isDefined)(n)&&(e=this._getAxesByOptionPath(t,n,"visualRange"))&&(e.length>1||g(t.value)?e.forEach((function(e,i){return v(t,e,n,i)})):1===e.length&&v(t,e[0],n))}this.callBase(t)},_change_VISUAL_RANGE:function(){if(this._recreateSizeDependentObjects(!1),!this._changes.has("FULL_RENDER")){var t=this.option("resizePanesOnZoom");this._doRender({force:!0,drawTitle:!1,drawLegend:!1,adjustAxes:null!==t&&void 0!==t?t:this.option("adjustAxesOnZoom")||!1,animate:!1}),this._raiseZoomEndHandlers()}},resetVisualRange:function(){var t=this;t._valueAxes.forEach((function(e){e.resetVisualRange(!1),t._applyCustomVisualRangeOption(e)})),t._requestChange(["VISUAL_RANGE"])},_legendDataField:"series",_adjustSeriesLabels:f.noop,_correctValueAxes:f.noop});e.AdvancedChart=y},function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(5),a=n(37),s=n(4),l=n(13),u=Math.round,c=Math.abs,d=Math.pow,h=Math.sqrt,f=Math.min;function p(t,e,n,o,a,s,l){t.forEach((function(t){var u,c=l(e.indexOf(o),e.length),d=t.getPointsByArg(n,!0),h=function(t){return t<0||t>1?void 0:t}(t.getOptions().barPadding),f=t.getOptions().barWidth,p=_(c,a),m=a.width;-1!==c&&(((0,i.isDefined)(h)||(0,i.isDefined)(f))&&(m=(u=g(s,e.length,1-h,f)).width,p=_(c,u)),function(t,e,n){(0,r.each)(t,(function(t,i){i.correctCoordinates({width:e,offset:n})}))}(d,m,p))}))}function m(t,e,n){var i,o=[],r=[],a={},s=e.barWidth,l=e.barGroupWidth,u=t[0]&&t[0].getArgumentAxis().getTranslator().getInterval(),c=l?u>l?l:u:u*(1-((i=e.barGroupPadding)<0||i>1?.3:i));t.forEach((function(t,e){var n,i=t.getStackName()||t.getBarOverlapGroup()||e.toString();for(n in t.pointsByArgument)-1===r.indexOf(n.valueOf())&&r.push(n.valueOf());-1===o.indexOf(i)&&(o.push(i),a[i]=[]),a[i].push(t)})),r.forEach((function(t){var i=o.reduce((function(n,i){return function(t,e,n){return t.some((function(t){return n&&!t.getOptions().ignoreEmptyPoints||t.getPointsByArg(e,!0).some((function(t){return t.hasValue()}))}))}(a[i],t,e.equalBarWidth)&&n.push(i),n}),[]),r=g(c,i.length,s);o.forEach((function(e){p(a[e],i,t,e,r,c,n)}))}))}function g(t,e,n,o){var r,a;return o?(a=f(o,u(t/e)),r=e>1?u((t-a*e)/(e-1)):0):(0,i.isDefined)(n)?(a=u(t*n/e),r=u(e>1?(t-t*n)/(e-1):0)):(r=u(t/e*.2),a=u((t-r*(e-1))/e)),{width:a>1?a:1,spacing:r,middleIndex:e/2}}function _(t,e){return(t-e.middleIndex+.5)*e.width-(e.middleIndex-t-.5)*e.spacing}function v(t){return t.series.filter((function(t){return t.isVisible()}))}function y(t,e,n){return((t.positive[e]||{})[n]||0)+(-(t.negative[e]||{})[n]||0)}function b(t){return t?function(t,e){return e-t-1}:function(t){return t}}function w(t){return t[0]&&t[0].getArgumentAxis().getTranslator().isInverted()}function x(){var t=v(this);m(t,this._options,b(w(t)))}function C(){var t=this._options.negativesAsZeroes,e=v(this),n={positive:{},negative:{}},i={left:{},right:{}},r={},s={};e.forEach((function(e){var l=e.getStackName()||e.getBarOverlapGroup(),u=!1,d=function(t){for(var e,n=t.getPoints(),i=0;i<n.length;i++){var o=n[i];if(e=o.initialValue&&o.initialValue.valueOf(),c(e)>0)break}return(0,a.sign)(e)}(e)<0?s:r;e._prevSeries=d[l],d[l]=e,e.holes=(0,o.extend)(!0,{},i),e.getPoints().forEach((function(o,r,a){var s=o.initialValue&&o.initialValue.valueOf(),c=o.argument.valueOf(),d=s>=0?n.positive:n.negative,h="bar"!==e.type;t&&s<0&&(d=n.positive,s=0,o.resetValue()),d[l]=d[l]||{};var f=d[l];if(f[c]?(h&&o.correctValue(f[c]),f[c]+=s):(f[c]=s,h&&o.resetCorrection()),o.hasValue())u&&(u=!1,i.left[c]=(i.left[c]||0)+(o.value.valueOf()-(isFinite(o.minValue)?o.minValue.valueOf():0)),o._skipSetLeftHole=!0);else{var p=a[r-1];!u&&p&&p.hasValue()&&(c=p.argument.valueOf(),p._skipSetRightHole=!0,i.right[c]=(i.right[c]||0)+(p.value.valueOf()-(isFinite(p.minValue)?p.minValue.valueOf():0))),u=!0}}))})),e.forEach((function(t){var e=t.holes;t.getPoints().forEach((function(t){var n=t.argument.valueOf();t.resetHoles(),!t._skipSetLeftHole&&t.setHole(e.left[n]||i.left[n]&&0,"left"),!t._skipSetRightHole&&t.setHole(e.right[n]||i.right[n]&&0,"right"),t._skipSetLeftHole=null,t._skipSetRightHole=null}))})),this._stackKeepers=n,e.forEach((function(t){t.getPoints().forEach((function(e){var o=e.argument.valueOf(),r=t.getStackName()||t.getBarOverlapGroup(),a=y(n,r,o),s=function(t,e,n){return((t.positive[e]||{})[n]||0)+((t.negative[e]||{})[n]||0)}(n,r,o);e.setPercentValue(a,s,i.left[o],i.right[o])}))}))}function S(){var t=this,e=v(t),n=t._stackKeepers,o={positive:{},negative:{}};(0,r.each)(e,(function(e,i){var a=i.getOptions().minBarSize,s=i.getValueAxis().getTranslator(),l=a&&s.getMinBarSize(a),u=i.getStackName();(0,r.each)(i.getPoints(),(function(e,i){if(i.hasValue()){var r=i.initialValue&&i.initialValue.valueOf(),a=i.argument.valueOf();t.fullStacked&&(r=r/y(n,u,a)||0);var c=s.checkMinBarSize(r,l,i.value),d=function(t){return t>=0?"positive":"negative"}(c),h=o[d][u]=o[d][u]||{};h[a]?(i.minValue=h[a],h[a]+=c):h[a]=c,i.value=h[a]}}))})),t.fullStacked&&function(t,e){(0,r.each)(t,(function(t,n){var o=n.getStackName?n.getStackName():"default";(0,r.each)(n.getPoints(),(function(t,n){var r=y(e,o,n.argument.valueOf());n.value=n.value/r,(0,i.isNumeric)(n.minValue)&&(n.minValue=n.minValue/r)}))}))}(e,o)}function k(){(0,r.each)(this.series,(function(t,e){var n=e.getOptions().minBarSize,i=e.getValueAxis().getTranslator(),o=n&&i.getMinBarSize(n);o&&(0,r.each)(e.getPoints(),(function(t,e){e.hasValue()&&(e.value=i.checkMinBarSize(e.initialValue,o))}))}))}function I(){var t=v(this);m(t,{barWidth:null,equalBarWidth:!0,barGroupPadding:.3},b(w(t)))}function T(){var t=v(this);if(t.length){var e,n,i=this._options,o=t[0].getArgumentAxis().getVisibleArea(),a=t[0].getValueAxis().getVisibleArea(),s=f(o[1]-o[0],a[1]-a[0]),l=d(i.minBubbleSize,2),p=d(s*i.maxBubbleSize,2),m=(s*i.maxBubbleSize+i.minBubbleSize)/2,g=1/0,_=-1/0;(0,r.each)(t,(function(t,e){(0,r.each)(e.getPoints(),(function(t,e){_=_>e.size?_:e.size,g=g<e.size?g:e.size}))}));var y=_-g,b=c(p-l);(0,r.each)(t,(function(t,i){(0,r.each)(i.getPoints(),(function(t,i){_===g?e=u(m):(n=c(i.size-g)/y,e=u(h(b*n+l))),i.correctCoordinates(e)}))}))}}function E(t){switch(this.type=(0,l.normalizeEnum)(t.type),this.pane=t.pane,this.series=[],this.updateOptions(t),this.type){case"bar":this.adjustSeriesDimensions=x,this.updateSeriesValues=k,this.adjustSeriesValues=C;break;case"rangebar":this.adjustSeriesDimensions=x;break;case"fullstackedbar":this.fullStacked=!0,this.adjustSeriesDimensions=x,this.adjustSeriesValues=C,this.updateSeriesValues=S;break;case"stackedbar":this.adjustSeriesDimensions=x,this.adjustSeriesValues=C,this.updateSeriesValues=S;break;case"fullstackedarea":case"fullstackedline":case"fullstackedspline":case"fullstackedsplinearea":this.fullStacked=!0,this.adjustSeriesValues=C;break;case"stackedarea":case"stackedsplinearea":case"stackedline":case"stackedspline":this.adjustSeriesValues=C;break;case"candlestick":case"stock":this.adjustSeriesDimensions=I;break;case"bubble":this.adjustSeriesDimensions=T}}e.SeriesFamily=E,E.prototype={constructor:E,adjustSeriesDimensions:s.noop,adjustSeriesValues:s.noop,updateSeriesValues:s.noop,updateOptions:function(t){this._options=t},dispose:function(){this.series=null},add:function(t){var e=this.type;this.series=(0,l.map)(t,(function(t){return t.type===e?t:null}))}}},function(t,e,n){"use strict";var i=n(13),o=n(0),r=Math,a=r.abs,s=r.min,l=r.max,u=r.floor;function c(t){return{x:t.x-8,y:t.y-4,width:t.width+16,height:t.height+8}}function d(t,e,n,i){var o=n?["x","width","y","height",e,0]:["y","height","x","width",t,1];return function(t,e,r){var a={x:r.x,y:r.y},s=c(t),l=n?r.y-t.y-t.height/2:r.y-t.y;return a.y=n||!n&&"bottom"===e?r.y+l:r.y,s[o[0]]<0?a[o[0]]-=s[o[0]]:s[o[0]]+s[o[1]]+l*o[5]>i[o[1]]&&(a[o[0]]-=s[o[0]]+s[o[1]]+l*o[5]-i[o[1]]),o[4]-s[o[3]]/2<0?a[o[2]]-=o[4]-s[o[3]]/2:o[4]+s[o[3]]/2>i[o[3]]&&(a[o[2]]-=o[4]+s[o[3]]/2-i[o[3]]),a}}function h(t,e,n,i){this._renderer=t,this._crosshairGroup=i,this._options={},this.update(e,n)}e.getMargins=function(){return{x:8,y:4}},h.prototype={constructor:h,update:function(t,e){var n=e.canvas;this._canvas={top:n.top,bottom:n.height-n.bottom,left:n.left,right:n.width-n.right,width:n.width,height:n.height},this._axes=e.axes,this._panes=e.panes,this._prepareOptions(t,"horizontal"),this._prepareOptions(t,"vertical")},dispose:function(){this._renderer=this._crosshairGroup=this._options=this._axes=this._canvas=this._horizontalGroup=this._verticalGroup=this._horizontal=this._vertical=this._circle=this._panes=null},_prepareOptions:function(t,e){var n=t[e+"Line"];this._options[e]={visible:n.visible,line:{stroke:n.color||t.color,"stroke-width":n.width||t.width,dashStyle:n.dashStyle||t.dashStyle,opacity:n.opacity||t.opacity,"stroke-linecap":"butt"},label:(0,o.extend)(!0,{},t.label,n.label)}},_createLines:function(t,e,n){for(var i=[],o=this._canvas,r=[o.left,o.top,o.left,o.top],a=0;a<2;a++)i.push(this._renderer.path(r,"line").attr(t).sharp(e).append(n));return i},render:function(){var t=this._renderer,e=this._options,n=e.vertical,i=e.horizontal,o=i.visible?i.line:n.line,r={stroke:o.stroke,"stroke-width":o["stroke-width"],dashStyle:o.dashStyle,opacity:o.opacity},a=this._canvas;this._horizontal={},this._vertical={},this._circle=t.circle(a.left,a.top,0).attr(r).append(this._crosshairGroup),this._horizontalGroup=t.g().append(this._crosshairGroup),this._verticalGroup=t.g().append(this._crosshairGroup),n.visible&&(this._vertical.lines=this._createLines(n.line,"h",this._verticalGroup),this._vertical.labels=this._createLabels(this._axes[0],n,!1,this._verticalGroup)),i.visible&&(this._horizontal.lines=this._createLines(i.line,"v",this._horizontalGroup),this._horizontal.labels=this._createLabels(this._axes[1],i,!0,this._horizontalGroup)),this.hide()},_createLabels:function(t,e,n,o){var r,a,s,l,u,c=this._canvas,d=this._renderer,h=[],f=e.label;return f.visible&&t.forEach((function(t){var p=t.getOptions().position;if(!t.getTranslator().getBusinessRange().isEmpty()){u=t.getLabelsPosition(),n?(a=c.top,r=u):(r=c.left,a=u);var m="top"===p||"bottom"===p?"center":"right"===p?"left":"right";l=d.rect(0,0,0,0).attr({fill:f.backgroundColor||e.line.stroke}).append(o),s=d.text("0",0,0).css((0,i.patchFontOptions)(e.label.font)).attr({align:m,class:f.cssClass}).append(o),h.push({text:s,background:l,axis:t,options:f,pos:{coord:u,side:p},startXY:{x:r,y:a}})}})),h},_updateText:function(t,e,n,i,o){var r=this;n.forEach((function(n){var a=n.axis,s=n.startXY,l=n.text,u=n.background,d="";a.name&&a.name!==e||(d=a.getFormattedValue(t,n.options,i)),d?(l.attr({text:d,x:s.x,y:s.y}),l.attr(o(l.getBBox(),n.pos.side,s)),r._updateLinesCanvas(n),u.attr(c(l.getBBox()))):(l.attr({text:""}),u.attr({x:0,y:0,width:0,height:0}))}))},hide:function(){this._crosshairGroup.attr({visibility:"hidden"})},_updateLinesCanvas:function(t){var e=t.pos.side,n=t.pos.coord,i=this._linesCanvas,o=this._canvas;i[e]=i[e]!==o[e]&&a(i[e]-o[e])<a(n-o[e])?i[e]:n},_updateLines:function(t,e,n,i,o){for(var r=this._linesCanvas,a=this._canvas,u=o?[[s(e-i,r.left),a.top,e-i,a.top],[e+i,a.top,l(r.right,e+i),a.top]]:[[a.left,s(r.top,n-i),a.left,n-i],[a.left,n+i,a.left,l(r.bottom,n+i)]],c=0;c<2;c++)t[c].attr({points:u[c]}).sharp(o?"v":"h",o?n===a.bottom?-1:1:e===a.right?-1:1)},_resetLinesCanvas:function(){var t=this._canvas;this._linesCanvas={left:t.left,right:t.right,top:t.top,bottom:t.bottom}},_getClipRectForPane:function(t,e){var n,i,o=this._panes;for(n=0;n<o.length;n++)if((i=o[n].coords).left<=t&&i.right>=t&&i.top<=e&&i.bottom>=e)return o[n].clipRect;return{id:null}},show:function(t){var e=t.point,n=e.getCrosshairData(t.x,t.y),i=e.getPointRadius(),o=this._horizontal,r=this._vertical,a=i?i+3:0,s=this._canvas,l=u(n.x),c=u(n.y);l>=s.left&&l<=s.right&&c>=s.top&&c<=s.bottom?(this._crosshairGroup.attr({visibility:"visible"}),this._resetLinesCanvas(),this._circle.attr({cx:l,cy:c,r:a,"clip-path":this._getClipRectForPane(l,c).id}),o.lines&&(this._updateText(n.yValue,n.axis,o.labels,e,d(l,c,!0,s)),this._updateLines(o.lines,l,c,a,!0),this._horizontalGroup.attr({translateY:c-s.top})),r.lines&&(this._updateText(n.xValue,n.axis,r.labels,e,d(l,c,!1,s)),this._updateLines(r.lines,l,c,a,!1),this._verticalGroup.attr({translateX:l-s.left}))):this.hide()}},e.Crosshair=h},function(t,e,n){"use strict";t.exports=n(765),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(33),a=n(0).extend,s=n(117),l=n(12),u=n(18),c=n(8),d=n(62),h=n(142),f=n(102),p=n(223),m=n(25),g="dx-colorview-palette-gradient",_="dx-colorview-palette-gradient-white",v="dx-colorview-palette-gradient-black",y="dx-colorview-color-preview",b="dx-colorview-color-preview-color-current",w="dx-colorview-color-preview-color-new",x=d.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),e=this,n=function(t){var n=100/e._paletteWidth;return t.shiftKey&&(n*=e.option("keyStep")),n=n>1?n:1,Math.round(n)},i=function(t){var n=e._currentColor.hsv.s+t;n>100?n=100:n<0&&(n=0),e._currentColor.hsv.s=n,l()},o=function(t){var n=100/e._paletteHeight;return t.shiftKey&&(n*=e.option("keyStep")),n=n>1?n:1,Math.round(n)},s=function(t){var n=e._currentColor.hsv.v+t;n>100?n=100:n<0&&(n=0),e._currentColor.hsv.v=n,l()};function l(){e._placePaletteHandle(),e._updateColorFromHsv(e._currentColor.hsv.h,e._currentColor.hsv.s,e._currentColor.hsv.v)}var u=function(t){var n=360/(e._hueScaleWrapperHeight-e._hueScaleHandleHeight);return t.shiftKey&&(n*=e.option("keyStep")),n=n>1?n:1},c=function(t){e._currentColor.hsv.h+=t,e._placeHueScaleHandle();var n=r.locate(e._$hueScaleHandle);e._updateColorHue(n.top+e._hueScaleHandleHeight/2)},d=function(n){var i=1/e._alphaChannelScaleWorkWidth;return n.shiftKey&&(i*=e.option("keyStep")),i=i>.01?i:.01,i=t?-i:i},h=function(t){e._currentColor.a+=t,e._placeAlphaChannelHandle();var n=r.locate(e._$alphaChannelHandle);e._calculateColorTransparencyByScaleWidth(n.left+e._alphaChannelHandleWidth/2)};return a(this.callBase(),{upArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?this._currentColor.hsv.h<=360&&!this._isTopColorHue&&c(u(t)):this._currentColor.hsv.v<100&&s(o(t))},downArrow:function(t){t.preventDefault(),t.stopPropagation(),t.ctrlKey?this._currentColor.hsv.h>=0&&(this._isTopColorHue&&(this._currentColor.hsv.h=360),c(-u(t))):this._currentColor.hsv.v>0&&s(-o(t))},rightArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?(t?this._currentColor.a<1:this._currentColor.a>0&&this.option("editAlphaChannel"))&&h(-d(e)):this._currentColor.hsv.s<100&&i(n(e))},leftArrow:function(e){e.preventDefault(),e.stopPropagation(),e.ctrlKey?(t?this._currentColor.a>0:this._currentColor.a<1&&this.option("editAlphaChannel"))&&h(d(e)):this._currentColor.hsv.s>0&&i(-n(e))},enter:function(t){this._fireEnterKeyPressed(t)}})},_getDefaultOptions:function(){return a(this.callBase(),{value:null,matchValue:null,onEnterKeyPressed:void 0,editAlphaChannel:!1,keyStep:1,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initColorAndOpacity(),this._initEnterKeyPressedAction()},_initEnterKeyPressedAction:function(){this._onEnterKeyPressedAction=this._createActionByOption("onEnterKeyPressed")},_fireEnterKeyPressed:function(t){this._onEnterKeyPressedAction&&this._onEnterKeyPressedAction({event:t})},_initColorAndOpacity:function(){this._setCurrentColor(this.option("value"))},_setCurrentColor:function(t){var e=new s(t=t||"#000000");e.colorIsInvalid?this.option("value",this._currentColor.baseColor):this._currentColor&&this._makeRgba(this._currentColor)===this._makeRgba(e)||(this._currentColor=e,this._$currentColor&&this._makeTransparentBackground(this._$currentColor,e))},_setBaseColor:function(t){var e=new s(t||"#000000");e.colorIsInvalid||this._makeRgba(this.option("matchValue")!==this._makeRgba(e))&&this._$baseColor&&this._makeTransparentBackground(this._$baseColor,e)},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-colorview"),this._renderColorPickerContainer()},_render:function(){this.callBase(),this._renderPalette(),this._renderHueScale(),this._renderControlsContainer(),this._renderControls(),this._renderAlphaChannelElements()},_makeTransparentBackground:function(t,e){e instanceof s||(e=new s(e)),t.css("backgroundColor",this._makeRgba(e))},_makeRgba:function(t){return t instanceof s||(t=new s(t)),"rgba("+[t.r,t.g,t.b,t.a].join(", ")+")"},_renderValue:function(){this.callBase(this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this.option("value"))},_renderColorPickerContainer:function(){var t=this.$element();this._$colorPickerContainer=i("<div>").addClass("dx-colorview-container").appendTo(t),this._renderHtmlRows()},_renderHtmlRows:function(t){var e=this._$colorPickerContainer.find(".dx-colorview-container-row"),n=e.length,o=n-(this.option("editAlphaChannel")?2:1);if(o>0&&e.eq(-1).remove(),o<0){o=Math.abs(o);var r,a=[];for(r=0;r<o;r++)a.push(i("<div>").addClass("dx-colorview-container-row"));if(n)for(r=0;r<a.length;r++)e.eq(0).after(a[r]);else this._$colorPickerContainer.append(a)}},_renderHtmlCellInsideRow:function(t,e,n){return i("<div>").addClass("dx-colorview-container-cell").addClass(n).appendTo(e.find(".dx-colorview-container-row").eq(t))},_renderPalette:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-palette-cell"),e=i("<div>").addClass([g,_].join(" ")),n=i("<div>").addClass([g,v].join(" "));this._$palette=i("<div>").addClass("dx-colorview-palette").css("backgroundColor",this._currentColor.getPureColor().toHex()).appendTo(t),this._paletteHeight=this._$palette.height(),this._paletteWidth=this._$palette.width(),this._renderPaletteHandle(),this._$palette.append([e,n])},_renderPaletteHandle:function(){this._$paletteHandle=i("<div>").addClass("dx-colorview-palette-handle").appendTo(this._$palette),this._createComponent(this._$paletteHandle,p,{contentTemplate:null,boundary:this._$palette,allowMoveByClick:!0,boundOffset:function(){return-this._paletteHandleHeight/2}.bind(this),onDragMove:function(){var t=r.locate(this._$paletteHandle);this._updateByDrag=!0,this._updateColorFromHsv(this._currentColor.hsv.h,this._calculateColorSaturation(t),this._calculateColorValue(t))}.bind(this)}),this._paletteHandleWidth=this._$paletteHandle.width(),this._paletteHandleHeight=this._$paletteHandle.height(),this._placePaletteHandle()},_placePaletteHandle:function(){r.move(this._$paletteHandle,{left:Math.round(this._paletteWidth*this._currentColor.hsv.s/100-this._paletteHandleWidth/2),top:Math.round(this._paletteHeight-this._paletteHeight*this._currentColor.hsv.v/100-this._paletteHandleHeight/2)})},_calculateColorValue:function(t){var e=Math.floor(t.top+this._paletteHandleHeight/2);return 100-Math.round(100*e/this._paletteHeight)},_calculateColorSaturation:function(t){var e=Math.floor(t.left+this._paletteHandleWidth/2);return Math.round(100*e/this._paletteWidth)},_updateColorFromHsv:function(t,e,n){var i=this._currentColor.a;this._currentColor=new s("hsv("+[t,e,n].join(",")+")"),this._currentColor.a=i,this._updateColorParamsAndColorPreview(),this.applyColor()},_renderHueScale:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer,"dx-colorview-hue-scale-cell");this._$hueScaleWrapper=i("<div>").addClass("dx-colorview-hue-scale-wrapper").appendTo(t),this._$hueScale=i("<div>").addClass("dx-colorview-hue-scale").appendTo(this._$hueScaleWrapper),this._hueScaleHeight=this._$hueScale.height(),this._hueScaleWrapperHeight=this._$hueScaleWrapper.outerHeight(),this._renderHueScaleHandle()},_renderHueScaleHandle:function(){this._$hueScaleHandle=i("<div>").addClass("dx-colorview-hue-scale-handle").appendTo(this._$hueScaleWrapper),this._createComponent(this._$hueScaleHandle,p,{contentTemplate:null,boundary:this._$hueScaleWrapper,allowMoveByClick:!0,dragDirection:"vertical",onDragMove:function(){this._updateByDrag=!0,this._updateColorHue(r.locate(this._$hueScaleHandle).top+this._hueScaleHandleHeight/2)}.bind(this)}),this._hueScaleHandleHeight=this._$hueScaleHandle.height(),this._placeHueScaleHandle()},_placeHueScaleHandle:function(){var t=this._hueScaleWrapperHeight,e=this._hueScaleHandleHeight,n=(t-e)*(360-this._currentColor.hsv.h)/360;t<n+e&&(n=t-e),n<0&&(n=0),r.move(this._$hueScaleHandle,{top:Math.round(n)})},_updateColorHue:function(t){var e=360-Math.round(360*(t-this._hueScaleHandleHeight/2)/(this._hueScaleWrapperHeight-this._hueScaleHandleHeight)),n=this._currentColor.hsv.s,i=this._currentColor.hsv.v;this._isTopColorHue=!1,(e=e<0?0:e)>=360&&(this._isTopColorHue=!0,e=0),this._updateColorFromHsv(e,n,i),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex())},_renderControlsContainer:function(){var t=this._renderHtmlCellInsideRow(0,this._$colorPickerContainer);this._$controlsContainer=i("<div>").addClass("dx-colorview-controls-container").appendTo(t)},_renderControls:function(){this._renderColorsPreview(),this._renderRgbInputs(),this._renderHexInput()},_renderColorsPreview:function(){var t=i("<div>").addClass("dx-colorview-color-preview-container").appendTo(this._$controlsContainer),e=i("<div>").addClass("dx-colorview-color-preview-container-inner").appendTo(t);this._$currentColor=i("<div>").addClass([y,w].join(" ")),this._$baseColor=i("<div>").addClass([y,b].join(" ")),this._makeTransparentBackground(this._$baseColor,this.option("matchValue")),this._makeTransparentBackground(this._$currentColor,this._currentColor),e.append([this._$baseColor,this._$currentColor])},_renderAlphaChannelElements:function(){this.option("editAlphaChannel")&&(this._$colorPickerContainer.find(".dx-colorview-container-row").eq(1).addClass("dx-colorview-alpha-channel-row"),this._renderAlphaChannelScale(),this._renderAlphaChannelInput())},_renderRgbInputs:function(){this._rgbInputsWithLabels=[this._renderEditorWithLabel({editorType:h,value:this._currentColor.r,onValueChanged:this._updateColor.bind(this,!1),labelText:"R",labelAriaText:l.format("dxColorView-ariaRed"),labelClass:"dx-colorview-label-red"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.g,onValueChanged:this._updateColor.bind(this,!1),labelText:"G",labelAriaText:l.format("dxColorView-ariaGreen"),labelClass:"dx-colorview-label-green"}),this._renderEditorWithLabel({editorType:h,value:this._currentColor.b,onValueChanged:this._updateColor.bind(this,!1),labelText:"B",labelAriaText:l.format("dxColorView-ariaBlue"),labelClass:"dx-colorview-label-blue"})],this._$controlsContainer.append(this._rgbInputsWithLabels),this._rgbInputs=[this._rgbInputsWithLabels[0].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[1].find(".dx-numberbox").dxNumberBox("instance"),this._rgbInputsWithLabels[2].find(".dx-numberbox").dxNumberBox("instance")]},_renderEditorWithLabel:function(t){var e=this,n=i("<div>"),r=i("<label>").addClass(t.labelClass).text(t.labelText+":").append(n);o.off(r,m.name),o.on(r,m.name,(function(t){t.preventDefault()}));var s=t.editorType,l=a({value:t.value,onValueChanged:t.onValueChanged,onKeyboardHandled:function(t){return e._keyboardHandler(t)}},{stylingMode:this.option("stylingMode")});return s===h&&(l.min=t.min||0,l.max=t.max||255,l.step=t.step||1),new s(n,l).registerKeyHandler("enter",function(t){this._fireEnterKeyPressed(t)}.bind(this)),this.setAria("label",t.labelAriaText,n),r},hexInputOptions:function(){return{editorType:f,value:this._currentColor.toHex().replace("#",""),onValueChanged:this._updateColor.bind(this,!0),labelClass:"dx-colorview-label-hex",labelText:"#",labelAriaText:l.format("dxColorView-ariaHex")}},_renderHexInput:function(){this._hexInput=f.getInstance(this._renderEditorWithLabel(this.hexInputOptions()).appendTo(this._$controlsContainer).find(".dx-textbox"))},_renderAlphaChannelScale:function(){var t=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer,"dx-colorview-alpha-channel-cell"),e=i("<div>").addClass("dx-colorview-alpha-channel-border").appendTo(t),n=i("<div>").addClass("dx-colorview-alpha-channel-wrapper").appendTo(e);this._$alphaChannelScale=i("<div>").addClass("dx-colorview-alpha-channel-scale").appendTo(n),this._makeCSSLinearGradient(this._$alphaChannelScale),this._renderAlphaChannelHandle(t)},_makeCSSLinearGradient:function(t){var e=this._currentColor,n=[e.r,e.g,e.b].join(","),i=e.toHex().replace("#","");t.attr("style",function(t,e){var n=this.option("rtlEnabled"),i="rgba("+t+", "+(n?"1":"0")+")",o="rgba("+t+", "+(n?"0":"1")+")";return["background-image: -webkit-linear-gradient(180deg, "+i+", "+o+")","background-image: -moz-linear-gradient(-90deg, "+i+", "+o+")","background-image: -o-linear-gradient(-90deg, "+i+", "+o+")","background-image: linear-gradient(-90deg, "+i+", "+o+")","filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr="+("'#"+(n?"00":"")+e+"'")+", endColorstr="+("'#"+(n?"":"00")+e+"'")+")"].join(";")}.call(this,n,i))},_renderAlphaChannelInput:function(){var t=this,e=this._renderHtmlCellInsideRow(1,this._$colorPickerContainer);t._alphaChannelInput=this._renderEditorWithLabel({editorType:h,value:this._currentColor.a,max:1,step:.1,onValueChanged:function(e){var n=e.value;n=t._currentColor.isValidAlpha(n)?n:t._currentColor.a,t._updateColorTransparency(n),t._placeAlphaChannelHandle()},labelClass:"dx-colorview-alpha-channel-label",labelText:"Alpha",labelAriaText:l.format("dxColorView-ariaAlpha")}).appendTo(e).find(".dx-numberbox").dxNumberBox("instance")},_updateColorTransparency:function(t){this._currentColor.a=t,this.applyColor()},_renderAlphaChannelHandle:function(t){this._$alphaChannelHandle=i("<div>").addClass("dx-colorview-alpha-channel-handle").appendTo(t),this._createComponent(this._$alphaChannelHandle,p,{contentTemplate:null,boundary:t,allowMoveByClick:!0,dragDirection:"horizontal",onDragMove:function(){this._updateByDrag=!0;var t=this._$alphaChannelHandle,e=r.locate(t).left+this._alphaChannelHandleWidth/2;this._calculateColorTransparencyByScaleWidth(e)}.bind(this)}),this._alphaChannelHandleWidth=this._$alphaChannelHandle.width(),this._alphaChannelScaleWorkWidth=t.width()-this._alphaChannelHandleWidth,this._placeAlphaChannelHandle()},_calculateColorTransparencyByScaleWidth:function(t){var e=(t-this._alphaChannelHandleWidth/2)/this._alphaChannelScaleWorkWidth,n=this.option("rtlEnabled");e=n?e:1-e,t>=this._alphaChannelScaleWorkWidth+this._alphaChannelHandleWidth/2?e=n?1:0:e<1&&(e=e.toFixed(2)),e=Math.max(e,0),e=Math.min(e,1),this._alphaChannelInput.option("value",e)},_placeAlphaChannelHandle:function(){var t=this._alphaChannelScaleWorkWidth*(1-this._currentColor.a);t<0&&(t=0),this._alphaChannelScaleWorkWidth<t&&(t=this._alphaChannelScaleWorkWidth),r.move(this._$alphaChannelHandle,{left:this.option("rtlEnabled")?this._alphaChannelScaleWorkWidth-t:t})},applyColor:function(){var t=this.option("editAlphaChannel")?this._makeRgba(this._currentColor):this._currentColor.toHex();this._makeTransparentBackground(this._$currentColor,this._currentColor),this.option("value",t)},cancelColor:function(){this._initColorAndOpacity(),this._refreshMarkup()},_updateColor:function(t,e){var n,i;t?i=this._validateHex("#"+this._hexInput.option("value")):(n=this._validateRgb(),this._alphaChannelInput?(n.push(this._alphaChannelInput.option("value")),i="rgba("+n.join(", ")+")"):i="rgb("+n.join(", ")+")"),this._suppressEditorsValueUpdating||(this._currentColor=new s(i),this.applyColor(),this._refreshMarkup())},_validateHex:function(t){return this._currentColor.isValidHex(t)?t:this._currentColor.toHex()},_validateRgb:function(){var t=this._rgbInputs[0].option("value"),e=this._rgbInputs[1].option("value"),n=this._rgbInputs[2].option("value");return this._currentColor.isValidRGB(t,e,n)||(t=this._currentColor.r,e=this._currentColor.g,n=this._currentColor.b),[t,e,n]},_refreshMarkup:function(){this._placeHueScaleHandle(),this._placePaletteHandle(),this._updateColorParamsAndColorPreview(),this._$palette.css("backgroundColor",this._currentColor.getPureColor().toHex()),this._$alphaChannelHandle&&(this._updateColorTransparency(this._currentColor.a),this._placeAlphaChannelHandle())},_updateColorParamsAndColorPreview:function(){this._suppressEditorsValueUpdating=!0,this._hexInput.option("value",this._currentColor.toHex().replace("#","")),this._rgbInputs[0].option("value",this._currentColor.r),this._rgbInputs[1].option("value",this._currentColor.g),this._rgbInputs[2].option("value",this._currentColor.b),this._suppressEditorsValueUpdating=!1,this.option("editAlphaChannel")&&(this._makeCSSLinearGradient.call(this,this._$alphaChannelScale),this._alphaChannelInput.option("value",this._currentColor.a))},_optionChanged:function(t){var e=t.value;switch(t.name){case"value":this._setCurrentColor(e),this._updateByDrag||this._refreshMarkup(),this._updateByDrag=!1,this.callBase(t);break;case"matchValue":this._setBaseColor(e);break;case"onEnterKeyPressed":this._initEnterKeyPressedAction();break;case"editAlphaChannel":this._$colorPickerContainer&&(this._renderHtmlRows("editAlphaChannel"),this._renderAlphaChannelElements());break;case"keyStep":break;case"stylingMode":this._renderControls();break;default:this.callBase(t)}}});c("dxColorView",x),t.exports=x},function(t,e,n){"use strict";var i=x(n(3)),o=x(n(15)),r=x(n(6)),a=x(n(45)),s=x(n(8)),l=n(4),u=n(2),c=n(17),d=n(5),h=n(16),f=n(0),p=n(10),m=x(n(47)),g=n(90),_=x(n(18)),v=n(11),y=x(n(80)),b=x(n(415)),w=n(7);function x(t){return t&&t.__esModule?t:{default:t}}function C(t){return(C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function I(t,e,n){return(I="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=M(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=M(t);if(e){var o=M(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==C(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function M(t){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=["onShowing","onShown","onSubmenuCreated","onHiding","onHidden","onPositioning","onLeftFirstItem","onLeftLastItem","onCloseRootSubmenu","onExpandLastSubmenu"],D=["up","down","first","last"],A=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(x,t);var e,n,s,b=E(x);function x(){return S(this,x),b.apply(this,arguments)}return e=x,(n=[{key:"getShowEvent",value:function(t){var e=null;return(0,u.isObject)(t)?null!==t.name&&(e=t.name||"dxcontextmenu"):e=t,e}},{key:"getShowDelay",value:function(t){return(0,u.isObject)(t)&&t.delay}},{key:"_getDefaultOptions",value:function(){return(0,f.extend)(I(M(x.prototype),"_getDefaultOptions",this).call(this),{showEvent:"dxcontextmenu",closeOnOutsideClick:!0,position:{at:"top left",my:"top left"},onShowing:null,onShown:null,onSubmenuCreated:null,onHiding:null,onHidden:null,onPositioning:null,submenuDirection:"auto",visible:!1,target:void 0,onLeftFirstItem:null,onLeftLastItem:null,onCloseRootSubmenu:null,onExpandLastSubmenu:null})}},{key:"_defaultOptionsRules",value:function(){return I(M(x.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return!(0,p.hasWindow)()},options:{animation:null}}])}},{key:"_initActions",value:function(){var t=this;this._actions={},(0,d.each)(P,(function(e,n){t._actions[n]=t._createActionByOption(n)||l.noop}))}},{key:"_setOptionsByReference",value:function(){I(M(x.prototype),"_setOptionsByReference",this).call(this),(0,f.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})}},{key:"_focusInHandler",value:function(){}},{key:"_itemContainer",value:function(){return this._overlay?this._overlay.$content():(0,i.default)()}},{key:"_eventBindingTarget",value:function(){return this._itemContainer()}},{key:"itemsContainer",value:function(){return this._overlay?this._overlay.$content():void 0}},{key:"_supportedKeys",value:function(){var t=this;return(0,f.extend)(I(M(x.prototype),"_supportedKeys",this).call(this),{space:function(){var e=(0,i.default)(t.option("focusedElement"));t.hide(),e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},esc:this.hide})}},{key:"_getActiveItem",value:function(){var t=this._getAvailableItems(),e=t.filter(".".concat("dx-state-focused")),n=t.filter(".".concat("dx-state-hover"));return n.closest(".".concat("dx-menu-items-container")).find(".".concat("dx-menu-item")).index(e)>=0?e:n.length?n:I(M(x.prototype),"_getActiveItem",this).call(this)}},{key:"_moveFocus",value:function(t){var e,n=this._getItemsByLocation(t),o=this._getActiveItem(!0),r=this.itemsContainer().find(".".concat("dx-state-hover")),a=!(!(0,i.default)(this.option("focusedElement")).length&&!r.length);switch(t){case"up":e=a?this._prevItem(n):o,o.is(n.first())&&this._actions.onLeftFirstItem(o);break;case"down":e=a?this._nextItem(n):o,o.is(n.last())&&this._actions.onLeftLastItem(o);break;case"right":e=this.option("rtlEnabled")?this._hideSubmenuHandler():this._expandSubmenuHandler(n,t);break;case"left":e=this.option("rtlEnabled")?this._expandSubmenuHandler(n,t):this._hideSubmenuHandler();break;case"first":e=n.first();break;case"last":e=n.last();break;default:return I(M(x.prototype),"_moveFocus",this).call(this,t)}0!==e.length&&this.option("focusedElement",(0,c.getPublicElement)(e))}},{key:"_getItemsByLocation",value:function(t){var e,n=this._getActiveItem(!0);return(0,h.inArray)(t,D)>=0&&(e=n.closest(".".concat("dx-menu-items-container")).children().children()),e=this._getAvailableItems(e)}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_refreshActiveDescendant",value:function(){if((0,u.isDefined)(this._overlay)){var t=this._overlay.$content();I(M(x.prototype),"_refreshActiveDescendant",this).call(this,t)}}},{key:"_hideSubmenuHandler",value:function(){var t=this._getActiveItem(!0),e=t.parents(".".concat("dx-menu-item-expanded")).first();return e.length?(this._hideSubmenusOnSameLevel(e),this._hideSubmenu(t.closest(".".concat("dx-submenu"))),e):(this._actions.onCloseRootSubmenu(t),t)}},{key:"_expandSubmenuHandler",value:function(t,e){var n=this._getActiveItem(!0),i=this._getItemData(n),o=this._dataAdapter.getNodeByItem(i),r=this._hasSubmenu(o),a=n.children(".".concat("dx-submenu"));return r&&!n.hasClass("dx-state-disabled")?(a.length&&"hidden"!==a.css("visibility")||this._showSubmenu(n),this._nextItem(this._getItemsByLocation(e))):(this._actions.onExpandLastSubmenu(n),n)}},{key:"_clean",value:function(){this._overlay&&(this._overlay.$element().remove(),this._overlay=null),this._detachShowContextMenuEvents(this._getTarget()),I(M(x.prototype),"_clean",this).call(this)}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-has-context-menu"),I(M(x.prototype),"_initMarkup",this).call(this)}},{key:"_render",value:function(){I(M(x.prototype),"_render",this).call(this),this._renderVisibility(this.option("visible")),this._addWidgetClass()}},{key:"_renderContentImpl",value:function(){this._detachShowContextMenuEvents(this._getTarget()),this._attachShowContextMenuEvents()}},{key:"_attachKeyboardEvents",value:function(){!this._keyboardListenerId&&this._focusTarget().length&&I(M(x.prototype),"_attachKeyboardEvents",this).call(this)}},{key:"_renderContextMenuOverlay",value:function(){if(!this._overlay){var t=this._getOverlayOptions();this._overlay=this._createComponent((0,i.default)("<div>").appendTo(this._$element),y.default,t);var e=this._overlay.$content();e.addClass("dx-context-menu"),this._addCustomCssClass(e),this._addPlatformDependentClass(e),this._attachContextMenuEvent()}}},{key:"_itemContextMenuHandler",value:function(t){I(M(x.prototype),"_itemContextMenuHandler",this).call(this,t),t.stopPropagation()}},{key:"_addPlatformDependentClass",value:function(t){_.default.current().phone&&t.addClass("dx-menu-phone-overlay")}},{key:"_detachShowContextMenuEvents",value:function(t){var e=this.getShowEvent(this.option("showEvent"));if(e){var n=(0,v.addNamespace)(e,this.NAME);this._showContextMenuEventHandler?r.default.off(o.default.getDocument(),n,t,this._showContextMenuEventHandler):r.default.off((0,i.default)(t),n)}}},{key:"_attachShowContextMenuEvents",value:function(){var t=this,e=this._getTarget(),n=this.getShowEvent(this.option("showEvent"));if(n){var a=(0,v.addNamespace)(n,this.NAME),s=this._createAction((function(e){var n=t.getShowDelay(t.option("showEvent"));n?setTimeout((function(){return t._show(e.event)}),n):t._show(e.event)}),{validatingTargetName:"target"}),l=function(t){return s({event:t,target:(0,i.default)(t.currentTarget)})};s=this._createAction(s),(0,u.isRenderer)(e)||e.nodeType||(0,u.isWindow)(e)?(this._showContextMenuEventHandler=void 0,r.default.on(e,a,l)):(this._showContextMenuEventHandler=l,r.default.on(o.default.getDocument(),a,e,this._showContextMenuEventHandler))}}},{key:"_hoverEndHandler",value:function(t){I(M(x.prototype),"_hoverEndHandler",this).call(this,t),t.stopPropagation()}},{key:"_renderDimensions",value:function(){}},{key:"_renderContainer",value:function(t,e){var n=e||this._itemContainer();(t=(0,i.default)("<div>")).appendTo(n).addClass("dx-submenu").css("visibility",e?"hidden":"visible");var o=I(M(x.prototype),"_renderContainer",this).call(this,t);return e?o:this.option("width")?o.css("minWidth",this.option("width")):this.option("height")?o.css("minHeight",this.option("height")):o}},{key:"_renderSubmenuItems",value:function(t,e){this._renderItems(this._getChildNodes(t),e),this._actions.onSubmenuCreated({itemElement:(0,c.getPublicElement)(e),itemData:t.internalFields.item,submenuElement:(0,c.getPublicElement)(e.children(".".concat("dx-submenu")))})}},{key:"_getOverlayOptions",value:function(){var t=this.option("position");return{focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),innerOverlay:!0,closeOnOutsideClick:this._closeOnOutsideClickHandler.bind(this),propagateOutsideClick:!0,closeOnTargetScroll:!0,deferRendering:!1,position:{at:t.at,my:t.my,of:this._getTarget(),collision:"flipfit"},shading:!1,showTitle:!1,height:"auto",width:"auto",onShown:this._overlayShownActionHandler.bind(this),onHiding:this._overlayHidingActionHandler.bind(this),onHidden:this._overlayHiddenActionHandler.bind(this)}}},{key:"_overlayShownActionHandler",value:function(t){this._actions.onShown(t)}},{key:"_overlayHidingActionHandler",value:function(t){this._actions.onHiding(t),t.cancel||(this._hideAllShownSubmenus(),this._setOptionWithoutOptionChange("visible",!1))}},{key:"_overlayHiddenActionHandler",value:function(t){this._actions.onHidden(t)}},{key:"_closeOnOutsideClickHandler",value:function(t){var e=this.option("closeOnOutsideClick");if((0,u.isFunction)(e))return e(t);if(!e)return!1;if(o.default.isDocument(t.target))return!0;var n=this._getActiveItemsContainer(t.target),i=this._getItemsContainers(),r=this._searchActiveItem(t.target),a=this.$element().parents(".".concat("dx-menu-item")),s=r[0]===a[0]&&r.length&&a.length;return!(this._isIncludeOverlay(n,i)&&r.length)&&!s||("onClick"===this._getShowSubmenuMode()&&this._hideAllShownChildSubmenus(r),!1)}},{key:"_getActiveItemsContainer",value:function(t){return(0,i.default)(t).closest(".".concat("dx-menu-items-container"))}},{key:"_getItemsContainers",value:function(){return this._overlay._$content.find(".".concat("dx-menu-items-container"))}},{key:"_searchActiveItem",value:function(t){return(0,i.default)(t).closest(".".concat("dx-menu-item")).eq(0)}},{key:"_isIncludeOverlay",value:function(t,e){var n=!1;return(0,d.each)(e,(function(e,i){t.is(i)&&!n&&(n=!0)})),n}},{key:"_hideAllShownChildSubmenus",value:function(t){var e=this,n=t.find(".".concat("dx-submenu")),i=(0,f.extend)([],this._shownSubmenus);n.length>0&&(0,d.each)(i,(function(n,i){var o=e._searchActiveItem(i.context).parent();o.parent().is(t.parent().parent())&&!o.is(t.parent())&&e._hideSubmenu(i)}))}},{key:"_showSubmenu",value:function(t){var e=this._dataAdapter.getNodeByItem(this._getItemData(t));if(this._hideSubmenusOnSameLevel(t),this._hasSubmenu(e)){var n=t.children(".".concat("dx-submenu")),i=n.length;I(M(x.prototype),"_showSubmenu",this).call(this,t),i||this._renderSubmenuItems(e,t),this._isSubmenuVisible(n)||this._drawSubmenu(t)}}},{key:"_hideSubmenusOnSameLevel",value:function(t){var e=t.parent(".".concat("dx-menu-item-wrapper")).siblings().find(".".concat("dx-menu-item-expanded"));e.length&&(e.removeClass("dx-menu-item-expanded"),this._hideSubmenu(e.find(".".concat("dx-submenu"))))}},{key:"_hideSubmenuGroup",value:function(t){this._isSubmenuVisible(t)&&this._hideSubmenuCore(t)}},{key:"_isSubmenuVisible",value:function(t){return"visible"===t.css("visibility")}},{key:"_drawSubmenu",value:function(t){var e=this.option("animation")?this.option("animation").show:{},n=t.children(".".concat("dx-submenu")),i=this._getSubmenuPosition(t);this._overlay&&this._overlay.option("visible")&&((0,u.isDefined)(this._shownSubmenus)||(this._shownSubmenus=[]),(0,h.inArray)(n,this._shownSubmenus)&&this._shownSubmenus.push(n),e&&m.default.stop(n),(0,g.setup)(n,i),e&&((0,u.isPlainObject)(e.to)&&(e.to.position=i),this._animate(n,e)),n.css("visibility","visible"))}},{key:"_animate",value:function(t,e){m.default.animate(t,e)}},{key:"_getSubmenuPosition",value:function(t){var e=this.option("submenuDirection").toLowerCase(),n={collision:"flip",of:t.parent(".".concat("dx-menu-item-wrapper")),offset:{h:0,v:-1}};switch(e){case"left":n.at="left top",n.my="right top";break;case"right":n.at="right top",n.my="left top";break;default:this.option("rtlEnabled")?(n.at="left top",n.my="right top"):(n.at="right top",n.my="left top")}return n}},{key:"_updateSubmenuVisibilityOnClick",value:function(t){if(t.args.length){var e=t.args[0].itemData,n=this._dataAdapter.getNodeByItem(e);if(n){var o=(0,i.default)(t.args[0].itemElement),r=o.find(".".concat("dx-submenu"));if(this._hasSubmenu(n)&&!r.length&&(this._renderSubmenuItems(n,o),r=o.find(".".concat("dx-submenu"))),o.context!==r.context||"visible"!==r.css("visibility")){var a=e&&!1===e.closeMenuOnClick;if(e&&!e.disabled&&!a)if(this._updateSelectedItemOnClick(t),0===r.length){var s=(0,i.default)(o.parents(".".concat("dx-submenu"))[0]);this._hideSubmenu(s),!t.canceled&&this._overlay&&this._overlay.option("visible")&&this.option("visible",!1)}else this._shownSubmenus&&this._shownSubmenus.length>0&&this._shownSubmenus[0].is(r)&&this._hideSubmenu(r),this._showSubmenu(o)}}}}},{key:"_hideSubmenu",value:function(t){var e=this,n=(0,f.extend)([],this._shownSubmenus);(0,d.each)(n,(function(n,i){(t.is(i)||(0,c.contains)(t[0],i[0]))&&(i.parent().removeClass("dx-menu-item-expanded"),e._hideSubmenuCore(i))}))}},{key:"_hideSubmenuCore",value:function(t){var e=(0,h.inArray)(t,this._shownSubmenus),n=this.option("animation")?this.option("animation").hide:null;e>=0&&this._shownSubmenus.splice(e,1),this._stopAnimate(t),n&&this._animate(t,n),t.css("visibility","hidden")}},{key:"_stopAnimate",value:function(t){m.default.stop(t,!0)}},{key:"_hideAllShownSubmenus",value:function(){var t=this,e=(0,f.extend)([],this._shownSubmenus);this._overlay.$content().find(".".concat("dx-menu-item-expanded")).removeClass("dx-menu-item-expanded"),(0,d.each)(e,(function(e,n){t._hideSubmenu(n)}))}},{key:"_visibilityChanged",value:function(t){t&&this._renderContentImpl()}},{key:"_optionChanged",value:function(t){if((0,h.inArray)(t.name,P)>-1)this._initActions();else switch(t.name){case"visible":this._renderVisibility(t.value);break;case"showEvent":case"position":case"submenuDirection":this._invalidate();break;case"target":t.previousValue&&this._detachShowContextMenuEvents(t.previousValue),this._invalidate();break;case"closeOnOutsideClick":break;default:I(M(x.prototype),"_optionChanged",this).call(this,t)}}},{key:"_renderVisibility",value:function(t){return t?this._show():this._hide()}},{key:"_toggleVisibility",value:function(){}},{key:"_show",value:function(t){var e={jQEvent:t},n=(new w.Deferred).reject().promise();if(this._actions.onShowing(e),e.cancel)return n;var i=this._positionContextMenu(t);return i&&(this._overlay||(this._renderContextMenuOverlay(),this._overlay.$content().addClass(this._widgetClass()),this._renderFocusState(),this._attachHoverEvents(),this._attachClickEvent(),this._renderItems(this._dataAdapter.getRootNodes())),this._setOptionWithoutOptionChange("visible",!0),this._overlay.option("position",i),n=this._overlay.show(),t&&t.stopPropagation(),this._setAriaAttributes()),n}},{key:"_setAriaAttributes",value:function(){this._overlayContentId="dx-".concat(new a.default),this.setAria("owns",this._overlayContentId),this.setAria({id:this._overlayContentId,role:"menu"},this._overlay.$content())}},{key:"_cleanAriaAttributes",value:function(){this._overlay&&this.setAria("id",null,this._overlay.$content()),this.setAria("owns",void 0)}},{key:"_getTarget",value:function(){return this.option("target")||this.option("position").of||(0,i.default)(o.default.getDocument())}},{key:"_getContextMenuPosition",value:function(){return(0,f.extend)({},this.option("position"),{of:this._getTarget()})}},{key:"_positionContextMenu",value:function(t){var e=this._getContextMenuPosition(),n=this._isInitialOptionValue("position"),i=this._createActionByOption("onPositioning",o);t&&t.preventDefault&&n&&(e.of=t);var o={position:e,event:t};return i(o),o.cancel?e=null:o.event&&(o.event.cancel=!0,t.preventDefault()),e}},{key:"_refresh",value:function(){if((0,p.hasWindow)())if(this._overlay){var t=this._overlay.option("position");I(M(x.prototype),"_refresh",this).call(this),this._overlay&&this._overlay.option("position",t)}else I(M(x.prototype),"_refresh",this).call(this);else I(M(x.prototype),"_refresh",this).call(this)}},{key:"_hide",value:function(){var t;return this._overlay&&(t=this._overlay.hide(),this._setOptionWithoutOptionChange("visible",!1)),this._cleanAriaAttributes(),this.option("focusedElement",null),t||(new w.Deferred).reject().promise()}},{key:"toggle",value:function(t){var e=this.option("visible");return t=void 0===t?!e:t,this._renderVisibility(t)}},{key:"show",value:function(){return this.toggle(!0)}},{key:"hide",value:function(){return this.toggle(!1)}}])&&k(e.prototype,n),s&&k(e,s),x}(b.default);(0,s.default)("dxContextMenu",A),t.exports=A},function(t,e,n){"use strict";var i=f(n(3)),o=n(4),r=n(2),a=n(5),s=n(0),l=n(79),u=f(n(416)),c=f(n(775)),d=f(n(18)),h=f(n(160));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e,n){return(_="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x="dx-menu-item",C={show:50,hide:300},S=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(f,t);var e,n,u,h=y(f);function f(){return m(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_getDefaultOptions",value:function(){return(0,s.extend)(_(w(f.prototype),"_getDefaultOptions",this).call(this),{items:[],cssClass:"",activeStateEnabled:!0,showSubmenuMode:{name:"onHover",delay:{show:50,hide:300}},animation:{show:{type:"fade",from:0,to:1,duration:100},hide:{type:"fade",from:1,to:0,duration:100}},selectByClick:!1,focusOnSelectedItem:!1,keyExpr:null,_itemAttributes:{role:"menuitem"},useInkRipple:!1})}},{key:"_itemDataKey",value:function(){return"dxMenuItemDataKey"}},{key:"_itemClass",value:function(){return x}},{key:"_setAriaSelected",value:function(){}},{key:"_selectedItemClass",value:function(){return"dx-menu-item-selected"}},{key:"_widgetClass",value:function(){return"dx-menu-base"}},{key:"_focusTarget",value:function(){return this._itemContainer()}},{key:"_clean",value:function(){this.option("focusedElement",null),_(w(f.prototype),"_clean",this).call(this)}},{key:"_supportedKeys",value:function(){var t=this;return(0,s.extend)(_(w(f.prototype),"_supportedKeys",this).call(this),{space:function(){var e=(0,i.default)(t.option("focusedElement"));e.length&&t._isSelectionEnabled()&&t.selectItem(e[0])},pageUp:o.noop,pageDown:o.noop})}},{key:"_isSelectionEnabled",value:function(){return"single"===this.option("selectionMode")}},{key:"_init",value:function(){this._activeStateUnit=".".concat(x),_(w(f.prototype),"_init",this).call(this),this._renderSelectedItem(),this._initActions()}},{key:"_getTextContainer",value:function(t){var e=t.text,n=(0,i.default)("<span>").addClass("dx-menu-item-text"),o=(0,r.isPlainObject)(t)?e:String(t);return e&&n.text(o)}},{key:"_getPopoutContainer",value:function(t){var e,n=t.items;if(n&&n.length){var o=(0,i.default)("<div>").addClass("dx-menu-item-popout");e=(0,i.default)("<span>").addClass("dx-menu-item-popout-container").append(o)}return e}},{key:"_getDataAdapterOptions",value:function(){return{rootValue:0,multipleSelection:!1,recursiveSelection:!1,recursiveExpansion:!1,searchValue:""}}},{key:"_selectByItem",value:function(t){if(t){var e=this._dataAdapter.getNodeByItem(t);this._dataAdapter.toggleSelection(e.internalFields.key,!0)}}},{key:"_renderSelectedItem",value:function(){var t=this._dataAdapter.getSelectedNodesKeys(),e=t.length&&t[0],n=this.option("selectedItem");if(e){var i=this._dataAdapter.getNodeByKey(e);!1!==i.selectable&&(n?n!==i.internalFields.item&&(this._dataAdapter.toggleSelection(e,!1),this._selectByItem(n)):this.option("selectedItem",i.internalFields.item))}else this._selectByItem(n)}},{key:"_initActions",value:function(){}},{key:"_initMarkup",value:function(){_(w(f.prototype),"_initMarkup",this).call(this),this._addCustomCssClass(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()}},{key:"_renderInkRipple",value:function(){this._inkRipple=(0,l.render)()}},{key:"_toggleActiveState",value:function(t,e,n){if(_(w(f.prototype),"_toggleActiveState",this).apply(this,arguments),this._inkRipple){var i={element:t,event:n};e?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}}},{key:"_getShowSubmenuMode",value:function(){var t=this.option("showSubmenuMode");return t=(0,r.isObject)(t)?t.name:t,this._isDesktopDevice()?t:"onClick"}},{key:"_initSelectedItems",value:function(){}},{key:"_isDesktopDevice",value:function(){return"desktop"===d.default.real().deviceType}},{key:"_initEditStrategy",value:function(){var t=c.default;this._editStrategy=new t(this)}},{key:"_addCustomCssClass",value:function(t){t.addClass(this.option("cssClass"))}},{key:"_itemWrapperSelector",value:function(){return".".concat("dx-menu-item-wrapper")}},{key:"_hoverStartHandler",value:function(t){var e=this._getItemElementByEventArgs(t);e&&!this._isItemDisabled(e)&&(t.stopPropagation(),"onHover"===this._getShowSubmenuMode()&&(clearTimeout(this._showSubmenusTimeout),this._showSubmenusTimeout=setTimeout(this._showSubmenu.bind(this,e),this._getSubmenuDelay("show"))))}},{key:"_getAvailableItems",value:function(t){return _(w(f.prototype),"_getAvailableItems",this).call(this,t).filter((function(){return"hidden"!==(0,i.default)(this).css("visibility")}))}},{key:"_isItemDisabled",value:function(t){return this._disabledGetter(t.data(this._itemDataKey()))}},{key:"_showSubmenu",value:function(t){this._addExpandedClass(t)}},{key:"_addExpandedClass",value:function(t){(0,i.default)(t).addClass("dx-menu-item-expanded")}},{key:"_getSubmenuDelay",value:function(t){var e=this.option("showSubmenuMode").delay;return(0,r.isDefined)(e)?(0,r.isObject)(e)?e[t]:e:C[t]}},{key:"_getItemElementByEventArgs",value:function(t){var e=(0,i.default)(t.target);if(e.hasClass(this._itemClass())||e.get(0)===t.currentTarget)return e;for(;!e.hasClass(this._itemClass());)if((e=e.parent()).hasClass("dx-submenu"))return null;return e}},{key:"_hoverEndHandler",value:function(){clearTimeout(this._showSubmenusTimeout)}},{key:"_hasSubmenu",value:function(t){return t&&t.internalFields.childrenKeys.length}},{key:"_renderContentImpl",value:function(){this._renderItems(this._dataAdapter.getRootNodes())}},{key:"_renderItems",value:function(t,e){var n=this;if(t.length){this.hasIcons=!1;var i=this._renderContainer(this.$element(),e),o=-1,r=-1;(0,a.each)(t,(function(t,e){var a=!1!==e.visible;a&&o<0&&(o=t),o<t&&(e.beginGroup||t===r)&&(r=a?t:t+1),t===r&&o<t&&n._renderSeparator(i),n._renderItem(t,e,i)})),this.hasIcons||i.addClass("dx-menu-no-icons")}}},{key:"_renderContainer",value:function(t){return(0,i.default)("<ul>").appendTo(t).addClass("dx-menu-items-container")}},{key:"_createDOMElement",value:function(t){return(0,i.default)("<li>").appendTo(t).addClass("dx-menu-item-wrapper")}},{key:"_renderItem",value:function(t,e,n,i){var o=this.option("items"),r=i||this._createDOMElement(n);o[t+1]&&o[t+1].beginGroup&&r.addClass("dx-menu-last-group-item");var a=_(w(f.prototype),"_renderItem",this).call(this,t,e.internalFields.item,r);e.internalFields.item===this.option("selectedItem")&&a.addClass("dx-menu-item-selected"),a.attr("tabIndex",-1),this._hasSubmenu(e)&&this.setAria("haspopup","true",a)}},{key:"_renderItemFrame",value:function(t,e,n){var i=n.children(".".concat(x));return i.length?i:_(w(f.prototype),"_renderItemFrame",this).apply(this,arguments)}},{key:"_refreshItem",value:function(t,e){var n=this._dataAdapter.getNodeByItem(e),i=t.data(this._itemIndexKey()),o=t.closest("ul"),r=t.closest("li");this._renderItem(i,n,o,r)}},{key:"_addContentClasses",value:function(t,e){var n=!!t.text&&!!t.text.length,i=!!t.icon,o=!!t.items&&!!t.items.length;e.toggleClass("dx-menu-item-has-text",n),e.toggleClass("dx-menu-item-has-icon",i),this.hasIcons||(this.hasIcons=i),e.toggleClass("dx-menu-item-has-submenu",o)}},{key:"_getItemContent",value:function(t){var e=_(w(f.prototype),"_getItemContent",this).call(this,t);return e.length||(e=t.children(".".concat("dx-menu-item-content"))),e}},{key:"_postprocessRenderItem",value:function(t){var e=(0,i.default)(t.itemElement),n=this._dataAdapter.getSelectedNodesKeys();n.length&&this._selectedGetter(t.itemData)&&this._isItemSelectable(t.itemData)&&this._dataAdapter.getNodeByItem(t.itemData).internalFields.key===n[0]?(e.addClass(this._selectedItemClass()),this._setAriaSelected(e,"true")):this._setAriaSelected(e,"false")}},{key:"_isItemSelectable",value:function(t){return!1!==t.selectable}},{key:"_renderSeparator",value:function(t){(0,i.default)("<li>").appendTo(t).addClass("dx-menu-separator")}},{key:"_itemClickHandler",value:function(t){if(!t._skipHandling){var e=this._createAction(this._updateSubmenuVisibilityOnClick.bind(this));this._itemDXEventHandler(t,"onItemClick",{},{afterExecute:e.bind(this)}),t._skipHandling=!0}}},{key:"_updateSubmenuVisibilityOnClick",value:function(t){this._updateSelectedItemOnClick(t),"onClick"===this._getShowSubmenuMode()&&this._addExpandedClass(t.args[0].itemElement)}},{key:"_updateSelectedItemOnClick",value:function(t){var e=t.args?t.args[0]:t;if(this._isItemSelectionAllowed(e.itemData)){var n=this._dataAdapter.getSelectedNodesKeys(),i=n.length&&this._dataAdapter.getNodeByKey(n[0]);i&&this._toggleItemSelection(i,!1),i&&i.internalFields.item===e.itemData?(this._fireSelectionChangeEvent(null,this.option("selectedItem")),this._setOptionWithoutOptionChange("selectedItem",null)):this.selectItem(e.itemData)}}},{key:"_isItemSelectionAllowed",value:function(t){var e=this._isSelectionEnabled()&&this.option("selectByClick");return!this._isContainerEmpty()&&e&&this._isItemSelectable(t)&&!this._itemsGetter(t)}},{key:"_isContainerEmpty",value:function(){return this._itemContainer().is(":empty")}},{key:"_syncSelectionOptions",value:function(){return(0,o.asyncNoop)()}},{key:"_optionChanged",value:function(t){switch(t.name){case"showSubmenuMode":break;case"selectedItem":var e=this._dataAdapter.getNodeByItem(t.value),n=this._dataAdapter.getSelectedNodesKeys()[0];if(e&&e.internalFields.key!==n){if(!1===e.selectable)break;n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(e,!0),this._updateSelectedItems()}break;case"cssClass":case"position":case"selectByClick":case"animation":case"useInkRipple":this._invalidate();break;default:_(w(f.prototype),"_optionChanged",this).call(this,t)}}},{key:"_toggleItemSelection",value:function(t,e){var n=this._getElementByItem(t.internalFields.item);n&&(0,i.default)(n).toggleClass("dx-menu-item-selected"),this._dataAdapter.toggleSelection(t.internalFields.key,e)}},{key:"_getElementByItem",value:function(t){var e,n=this;return(0,a.each)(this._itemElements(),(function(o,r){return(0,i.default)(r).data(n._itemDataKey())!==t||(e=r,!1)})),e}},{key:"_updateSelectedItems",value:function(t,e){(t||e)&&this._fireSelectionChangeEvent(e,t)}},{key:"_fireSelectionChangeEvent",value:function(t,e){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})({addedItems:[t],removedItems:[e]})}},{key:"selectItem",value:function(t){var e=t.nodeType?this._getItemData(t):t,n=this._dataAdapter.getSelectedNodesKeys()[0],i=this.option("selectedItem"),o=this._dataAdapter.getNodeByItem(e);o.internalFields.key!==n&&(n&&this._toggleItemSelection(this._dataAdapter.getNodeByKey(n),!1),this._toggleItemSelection(o,!0),this._updateSelectedItems(i,e),this._setOptionWithoutOptionChange("selectedItem",e))}},{key:"unselectItem",value:function(t){var e=t.nodeType?this._getItemData(t):t,n=this._dataAdapter.getNodeByItem(e),i=this.option("selectedItem");n.internalFields.selected&&(this._toggleItemSelection(n,!1),this._updateSelectedItems(i,null),this._setOptionWithoutOptionChange("selectedItem",null))}}])&&g(e.prototype,n),u&&g(e,u),f}(u.default);S.ItemClass=h.default,t.exports=S},function(t,e,n){"use strict";var i=p(n(3)),o=n(29),r=n(0),a=n(5),s=p(n(18)),l=p(n(70)),u=p(n(773)),c=p(n(69)),d=n(73),h=n(2),f=n(4);function p(t){return t&&t.__esModule?t:{default:t}}var m=c.default.inherit({_getDefaultOptions:function(){return(0,r.extend)(this.callBase(),{keyExpr:"id",displayExpr:"text",selectedExpr:"selected",disabledExpr:"disabled",itemsExpr:"items",hoverStateEnabled:!0,parentIdExpr:"parentId",expandedExpr:"expanded"})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.default.real().deviceType&&!s.default.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this._initAccessors(),this._initDataAdapter(),this._initDynamicTemplates()},_initDataSource:function(){this.callBase(),this._dataSource&&this._dataSource.paginate(!1)},_initDataAdapter:function(){var t=this._createDataAdapterAccessors();this._dataAdapter=new u.default((0,r.extend)({dataAccessors:{getters:t.getters,setters:t.setters},items:this.option("items")},this._getDataAdapterOptions()))},_getDataAdapterOptions:f.noop,_initDynamicTemplates:function(){var t=this;this._templateManager.addDefaultTemplates({item:new d.BindableTemplate(function(e,n){e.html(n.html).append(this._getIconContainer(n)).append(this._getTextContainer(n)).append(this._getPopoutContainer(n)),t._addContentClasses(n,e.parent())}.bind(this),["text","html","items","icon"],this.option("integrationOptions.watchMethod"),{text:this._displayGetter,items:this._itemsGetter})})},_getIconContainer:function(t){return t.icon?l.default.getImageContainer(t.icon):void 0},_getTextContainer:function(t){return(0,i.default)("<span>").text(t.text)},_getPopoutContainer:f.noop,_addContentClasses:f.noop,_initAccessors:function(){var t=this;(0,a.each)(this._getAccessors(),(function(e,n){t._compileAccessor(n)})),this._compileDisplayGetter()},_getAccessors:function(){return["key","selected","items","disabled","parentId","expanded"]},_getChildNodes:function(t){var e=this,n=[];return(0,a.each)(t.internalFields.childrenKeys,(function(t,i){var o=e._dataAdapter.getNodeByKey(i);n.push(o)})),n},_hasChildren:function(t){return t&&t.internalFields.childrenKeys.length},_compileAccessor:function(t){var e="_"+t+"Getter",n="_"+t+"Setter",i=this.option(t+"Expr");return i?(0,h.isFunction)(i)?(this[n]=function(t,e){t[i()]=e},void(this[e]=function(t){return t[i()]})):(this[e]=(0,o.compileGetter)(i),void(this[n]=(0,o.compileSetter)(i))):(this[e]=f.noop,void(this[n]=f.noop))},_createDataAdapterAccessors:function(){var t=this,e={getters:{},setters:{}};return(0,a.each)(this._getAccessors(),(function(n,i){var o="_"+i+"Getter",r="_"+i+"Setter",a="parentId"===i?"parentKey":i;e.getters[a]=t[o],e.setters[a]=t[r]})),e.getters.display=this._displayGetter?this._displayGetter:function(t){return t.text},e},_initMarkup:function(){this.callBase(),this._addWidgetClass()},_addWidgetClass:function(){this._focusTarget().addClass(this._widgetClass())},_widgetClass:f.noop,_renderItemFrame:function(t,e){var n=this.callBase.apply(this,arguments);return n.toggleClass("dx-state-disabled",!!this._disabledGetter(e)),n},_optionChanged:function(t){switch(t.name){case"displayExpr":case"keyExpr":this._initAccessors(),this._initDynamicTemplates(),this.repaint();break;case"itemsExpr":case"selectedExpr":case"disabledExpr":case"expandedExpr":case"parentIdExpr":this._initAccessors(),this._initDataAdapter(),this.repaint();break;case"items":this._initDataAdapter(),this.callBase(t);break;default:this.callBase(t)}}});t.exports=m},function(t,e,n){"use strict";var i,o=n(778),r=(i=o)&&i.__esModule?i:{default:i};n(791),n(792),n(793),n(795),n(798),n(799),n(818),n(819),n(820),n(822),n(823),n(827),n(828),n(829),n(830),n(832),n(833),n(834),n(836),n(837),n(838),n(839),n(840),n(841),t.exports=r.default},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(6)),r=d(n(198)),a=d(n(12)),s=n(2),l=n(5),u=n(0),c=n(290);function d(t){return t&&t.__esModule?t:{default:t}}t.exports={defaultOptions:function(){return{showColumnHeaders:!0,cellHintEnabled:!0}},views:{columnHeadersView:r.default.ColumnsView.inherit(function(){var t=function(t,n,o){var r=(0,i.default)("<div>").addClass(t.addWidgetPrefix("text-content"));t.setAria("role","presentation",r),e(t,n,o.column,r);var a=t.option("showColumnLines"),s=t.getController("columns").getHeaderContentAlignment(o.column.alignment);return r[a||"right"===s?"appendTo":"prependTo"](n)};function e(t,e,n,i){var o=t._getIndicatorElements(e,!0),r=t._getIndicatorElements(e),a=o&&o.length,s=t._getColumnAlignment(n.alignment),l=".".concat(t._getIndicatorClassName("sort")),u=".".concat(t._getIndicatorClassName("sortIndex")),c=r.filter(l),d=r.children().filter(u);(i=i||e.children("."+t.addWidgetPrefix("text-content"))).toggleClass("dx-text-content-alignment-"+s,a>0).toggleClass("dx-text-content-alignment-"+("left"===s?"right":"left"),a>0&&"center"===n.alignment).toggleClass("dx-sort-indicator",!!c.length).toggleClass("dx-sort-index-indicator",!!d.length).toggleClass("dx-header-filter-indicator",!!r.filter("."+t._getIndicatorClassName("headerFilter")).length)}return{_createTable:function(){var t=this.callBase.apply(this,arguments);return o.default.on(t,"mousedown selectstart",this.createAction((function(t){var e=t.event;e.shiftKey&&e.preventDefault()}))),t},_isLegacyKeyboardNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDefaultTemplate:function(e){var n=this;return function(i,o){var r=e.command?i:t(n,i,o),a="expand"!==e.command&&e.caption;a?r.text(a):e.command&&i.html(" ")}},_getHeaderTemplate:function(t){return t.headerCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(t)}},_processTemplate:function(e,n){var i=this,o=n.column,r=i.callBase(e);return"header"===n.rowType&&r&&o.headerCellTemplate&&!o.command?{render:function(e){var n=t(i,e.container,e.model);r.render((0,u.extend)({},e,{container:n}))}}:r},_handleDataChanged:function(t){"refresh"===t.changeType&&(this._isGroupingChanged||this._requireReady)&&(this._isGroupingChanged=!1,this.render())},_renderCell:function(t,e){var n=this.callBase(t,e);return"header"===e.row.rowType&&(n.addClass("dx-cell-focus-disabled"),this._isLegacyKeyboardNavigation()||e.column&&!e.column.type&&n.attr("tabindex",this.option("tabindex")||0)),n},_setCellAriaAttributes:function(t,e){this.callBase(t,e),"header"===e.rowType&&(this.setAria("role","columnheader",t),!e.column||e.column.command||e.column.isBand||(t.attr("id",e.column.headerId),this.setAria("label",a.default.format("dxDataGrid-ariaColumn")+" "+e.column.caption,t)))},_createRow:function(t){var e=this.callBase(t).toggleClass("dx-column-lines",this.option("showColumnLines"));return"header"===t.rowType&&(e.addClass("dx-header-row"),this._isLegacyKeyboardNavigation()||(0,c.registerKeyboardAction)("columnHeaders",this,e,"td",this._handleActionKeyDown.bind(this))),e},_handleActionKeyDown:function(t){var e=t.event,n=(0,i.default)(e.target);if(this._lastActionElement=e.target,n.is(".dx-header-filter")){var o=this.getController("headerFilter"),r=n.closest("td"),a=this.getColumnIndexByElement(r);a>=0&&o.showHeaderFilterMenu(a,!1)}else{var s=n.closest(".dx-row");this._processHeaderAction(e,s)}e.preventDefault()},_renderCore:function(){var t=this,e=t.element();(!t._tableElement||t._dataController.isLoaded()||t._hasRowElements)&&(e.addClass(t.addWidgetPrefix("headers")).toggleClass(t.addWidgetPrefix("nowrap"),!t.option("wordWrapEnabled")).empty(),t.setAria("role","presentation",e),t._updateContent(t._renderTable()),t.getRowCount()>1&&e.addClass("dx-header-multi-row"),t.callBase.apply(t,arguments))},_renderRows:function(){var t=this;(t._dataController.isLoaded()||t._hasRowElements)&&(t.callBase.apply(t,arguments),t._hasRowElements=!0)},_getRowVisibleColumns:function(t){return this._columnsController.getVisibleColumns(t)},_renderRow:function(t,e){e.columns=this._getRowVisibleColumns(e.row.rowIndex),this.callBase(t,e)},_createCell:function(t){var e=t.column,n=this.callBase.apply(this,arguments);return e.rowspan>1&&"header"===t.rowType&&n.attr("rowSpan",e.rowspan),n},_getRows:function(){var t=[],e=this.getRowCount();if(this.option("showColumnHeaders"))for(var n=0;n<e;n++)t.push({rowType:"header",rowIndex:n});return t},_getCellTemplate:function(t){if("header"===t.rowType)return this._getHeaderTemplate(t.column)},_columnOptionChanged:function(t){var e=t.changeTypes,n=t.optionNames;e.grouping?this._isGroupingChanged=!0:(this.callBase(t),(n.width||n.visible)&&this.resizeCompleted.fire())},_isElementVisible:function(t){return t&&t.visible},_alignCaptionByCenter:function(t){var e=this._getIndicatorContainer(t,!0);e&&e.length&&(e.filter(".dx-visibility-hidden").remove(),(e=this._getIndicatorContainer(t)).clone().addClass("dx-visibility-hidden").css("float","").insertBefore(t.children("."+this.addWidgetPrefix("text-content"))))},_updateCell:function(t,e){"header"===e.rowType&&"center"===e.column.alignment&&this._alignCaptionByCenter(t),this.callBase.apply(this,arguments)},_updateIndicator:function(t,n,i){var o=this.callBase.apply(this,arguments);return"center"===n.alignment&&this._alignCaptionByCenter(t),e(this,t,n),o},_getIndicatorContainer:function(t,e){var n=this.callBase(t);return e?n:n.filter(":not(.dx-visibility-hidden)")},_isSortableElement:function(){return!0},getHeadersRowHeight:function(){var t=this._getTableElement(),e=t&&t.find(".dx-header-row");return e&&e.toArray().reduce((function(t,e){return t+(0,i.default)(e).height()}),0)||0},getHeaderElement:function(t){var e=this.getColumnElements();return e&&e.eq(t)},getColumnElements:function(t,e){var n,o=this,r=o._columnsController,a=o.getRowCount();if(o.option("showColumnHeaders")){if(a>1&&(!(0,s.isDefined)(t)||(0,s.isDefined)(e))){var u=[],c=(0,s.isDefined)(e)?r.getChildrenByBandColumn(e,!0):r.getVisibleColumns();return(0,l.each)(c,(function(e,i){var a=(0,s.isDefined)(t)?t:r.getRowIndex(i.index);(n=o._getCellElement(a,r.getVisibleIndex(i.index,a)))&&u.push(n.get(0))})),(0,i.default)(u)}if(!t||t<a)return o.getCellElements(t||0)}},getColumnIndexByElement:function(t){var e=this.getCellIndex(t),n=t.closest(".dx-row")[0].rowIndex,i=this.getColumns(n)[e];return i?i.index:-1},getVisibleColumnIndex:function(t,e){var n=this.getColumns()[t];return n?this._columnsController.getVisibleIndex(n.index,e):-1},getColumnWidths:function(){var t=this.getColumnElements();return t&&t.length?this._getWidths(t):this.callBase.apply(this,arguments)},allowDragging:function(t,e,n){var i,o=0,r=t&&this._columnsController.getRowIndex(t.index),a=this.getColumns(0===r?0:null),s=(null===t||void 0===t?void 0:t.allowHiding)&&a.length>1,l=function(t){return t.allowReordering||t.allowGrouping||t.allowHiding};for(i=0;i<a.length;i++)l(a[i])&&o++;if(o<=1&&!s)return!1;if(!n)return(this.option("allowColumnReordering")||this._columnsController.isColumnOptionUsed("allowReordering"))&&t&&t.allowReordering;for(i=0;i<n.length;i++){var u=n[i];if(u&&u.allowDragging(t,e))return!0}return!1},getBoundingRect:function(){var t=this.getColumnElements();return t&&t.length?{top:this._getTableElement().offset().top}:null},getName:function(){return"headers"},getColumnCount:function(){var t=this.getColumnElements();return t?t.length:0},isVisible:function(){return this.option("showColumnHeaders")},optionChanged:function(t){switch(t.name){case"showColumnHeaders":case"wordWrapEnabled":case"showColumnLines":this._invalidate(!0,!0),t.handled=!0;break;default:this.callBase(t)}},getHeight:function(){return this.getElementHeight()},getContextMenuItems:function(t){var e=this,n=t.column;if(t.row&&("header"===t.row.rowType||"detailAdaptive"===t.row.rowType)){var i=e.option("sorting");if(i&&"none"!==i.mode&&n&&n.allowSorting){var o=function(t){setTimeout((function(){e._columnsController.changeSortOrder(n.index,t.itemData.value)}))};return[{text:i.ascendingText,value:"asc",disabled:"asc"===n.sortOrder,icon:"context-menu-sort-asc",onItemClick:o},{text:i.descendingText,value:"desc",disabled:"desc"===n.sortOrder,icon:"context-menu-sort-desc",onItemClick:o},{text:i.clearText,value:"none",disabled:!n.sortOrder,icon:"context-menu-sort-none",onItemClick:o}]}}},getRowCount:function(){return this._columnsController&&this._columnsController.getRowCount()},setRowsOpacity:function(t,e,n){var i,o,r=this,a=r.getRowCount(),u=r._columnsController.getColumns(),c=u&&u[t],d=c&&c.isBand&&c.index,h=function(t,n){n.ownerBand===d&&(o.eq(t).css({opacity:e}),n.isBand&&r.setRowsOpacity(n.index,e,i+1))};if((0,s.isDefined)(d))for(i=n=n||0;i<a;i++)o=r.getCellElements(i),(0,l.each)(r.getColumns(i),h)}}}())}}},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(4),s=n(0),l=n(24);t.exports={_applyColumnState:function(t){var e,n=this.option("rtlEnabled"),i=this._getColumnAlignment(t.column.alignment,n),o=(0,s.extend)(!0,{columnAlignment:i},t),a=o.rootElement.hasClass("dx-group-panel-item"),l=this._createIndicatorContainer(o,a),u=(0,r.default)("<span>").addClass(this._getIndicatorClassName(t.name)),c=null===(e=this.component)||void 0===e?void 0:e.getController("columns"),d=(null===c||void 0===c?void 0:c.getHeaderContentAlignment(i))||i;return o.container=l,o.indicator=u,this._renderIndicator(o),l[!a&&t.showColumnLines||"left"!==d?"prependTo":"appendTo"](t.rootElement),u},_getIndicatorClassName:a.noop,_getColumnAlignment:function(t,e){return e=e||this.option("rtlEnabled"),t&&"center"!==t?t:(0,l.getDefaultAlignment)(e)},_createIndicatorContainer:function(t,e){var n=this._getIndicatorContainer(t.rootElement),i="left"===t.columnAlignment?"right":"left";return n.length||(n=(0,r.default)("<div>").addClass("dx-column-indicators")),this.setAria("role","presentation",n),n.css("float",t.showColumnLines&&!e?i:null)},_getIndicatorContainer:function(t){return t&&t.find(".dx-column-indicators")},_getIndicatorElements:function(t){var e=this._getIndicatorContainer(t);return e&&e.children()},_renderIndicator:function(t){var e=t.container,n=t.indicator;e&&n&&e.append(n)},_updateIndicators:function(t){var e,n=this.getColumns(),i=this.getColumnElements();if(i&&n.length===i.length)for(var o=0;o<n.length;o++){e=i.eq(o),this._updateIndicator(e,n[o],t);var r=e.parent().data("options");r&&r.cells&&(r.cells[e.index()].column=n[o])}},_updateIndicator:function(t,e,n){if(!e.command)return this._applyColumnState({name:n,rootElement:t,column:e,showColumnLines:this.option("showColumnLines")})}}},function(t,e,n){"use strict";var i=E(n(3)),o=E(n(39)),r=n(129),a=E(n(29)),s=n(4),l=n(2),u=E(n(5)),c=n(24),d=n(0),h=n(16),f=E(n(51)),p=n(54),m=E(n(23)),g=E(n(44)),_=n(40),v=E(n(46)),y=E(n(67)),b=E(n(74)),w=E(n(43)),x=E(n(12)),C=n(7),S=E(n(192)),k=n(92),I=n(100),T=E(n(197));function E(t){return t&&t.__esModule?t:{default:t}}var O=["filterValues","filterType","fixed","fixedPosition"],M=["visibleIndex","dataField","name","dataType","width","visible","sortOrder","lastSortOrder","sortIndex","groupIndex","filterValue","selectedFilterOperation","added"].concat(O),P={visibleWidth:!0,bestFitWidth:!0,bufferedFilterValue:!0},D=Number.MAX_SAFE_INTEGER||9007199254740991,A=/columns\[(\d+)\]\.?/gi,R=1;t.exports={defaultOptions:function(){return{commonColumnSettings:{allowFiltering:!0,allowHiding:!0,allowSorting:!0,allowEditing:!0,encodeHtml:!0,trueText:x.default.format("dxDataGrid-trueText"),falseText:x.default.format("dxDataGrid-falseText")},allowColumnReordering:!1,allowColumnResizing:!1,columnResizingMode:"nextColumn",columnMinWidth:void 0,columnWidth:void 0,adaptColumnWidthByRatio:!0,columns:void 0,regenerateColumnsByVisibleItems:!1,customizeColumns:null,dateSerializationFormat:void 0}},controllers:{columns:g.default.Controller.inherit(function(){var t={visible:!0,showInColumnChooser:!0},e={number:["=","<>","<",">","<=",">=","between"],string:["contains","notcontains","startswith","endswith","=","<>"],date:["=","<>","<",">","<=",">=","between"],datetime:["=","<>","<",">","<=",">=","between"]},n={visibleIndex:!0,groupIndex:!0,grouped:!0,sortIndex:!0,sortOrder:!0},g=function(t){t.filterOperations=t.defaultFilterOperations},x=function(e,n,i,o){var r={};if(n){(0,l.isString)(n)&&(n={dataField:n});var a={};if(n.command)a=(0,p.deepExtendArraySafe)(r,n);else{r=e.getCommonSettings(n),i&&i.name&&i.dataField&&(n=(0,d.extend)({},n,{dataField:i.dataField}));var s=e._createCalculatedColumnOptions(n,o);n.type||(a={headerId:"dx-col-".concat(R++)}),a=(0,p.deepExtendArraySafe)(a,t),(0,p.deepExtendArraySafe)(a,r),(0,p.deepExtendArraySafe)(a,s),(0,p.deepExtendArraySafe)(a,n),(0,p.deepExtendArraySafe)(a,{selector:null})}return n.filterOperations===n.defaultFilterOperations&&g(a),a}},E=function t(e,n,i){var o=[];return n&&u.default.each(n,(function(n,r){var a=e._columnsUserState&&K(r,e._columnsUserState[n])&&e._columnsUserState[n],s=x(e,r,a,i);s&&(i&&(s.ownerBand=i),o.push(s),s.columns&&(o=o.concat(t(e,s.columns,s)),delete s.columns,s.hasColumns=!0))})),o},B=function(t,e){for(var n=[],i=e[t];i;)n.unshift(i),i=e[t=i.index];return n},N=function(t,e){var n,i=[],o=t.getBandColumnsCache(),r=function(t){return t.ownerBand===e.ownerBand};if(o.isPlain){var a=t._columns.indexOf(e);a>=0&&(i=["columns[".concat(a,"]")])}else for(n=t._columns.filter(r);n.length&&-1!==n.indexOf(e);)i.unshift("columns[".concat(n.indexOf(e),"]")),n=(e=o.columnParentByIndex[e.index])?t._columns.filter(r):[];return i.join(".")},L=function t(e,n){var i=0,o=e.getChildrenByBandColumn(n,!0);return u.default.each(o,(function(n,o){o.isBand?(o.colspan=o.colspan||t(e,o.index),i+=o.colspan||1):i+=1})),i},F=function(t){var e=(0,l.type)(t);return"string"!==e&&"boolean"!==e&&"number"!==e&&"date"!==e&&"object"!==e&&(e=void 0),e},V=function(t,e){switch(t){case"date":case"datetime":return y.default.getDateSerializationFormat(e);case"number":if((0,l.isString)(e))return"string";if((0,l.isNumeric)(e))return null}},z=function(t,e){t.deserializeValue||((0,_.isDateType)(e)&&(t.deserializeValue=function(t){return y.default.deserializeDate(t)},t.serializeValue=function(t){return(0,l.isString)(t)?t:y.default.serializeDate(t,this.serializationFormat)}),"number"===e&&(t.deserializeValue=function(t){var e=parseFloat(t);return isNaN(e)?t:e},t.serializeValue=function(t,e){return"filter"===e?t:(0,l.isDefined)(t)&&"string"===this.serializationFormat?t.toString():t}))},j=function(t){return!0===t.value?this.trueText||"true":!1===t.value?this.falseText||"false":t.valueText||""},H=function(t){if("boolean"===t)return j},W=function(t){u.default.each(t._columns,(function(t,e){e.index=t})),u.default.each(t._columns,(function(t,e){(0,l.isObject)(e.ownerBand)&&(e.ownerBand=e.ownerBand.index)})),u.default.each(t._commandColumns,(function(t,e){e.index=-(t+1)}))},U=function(t,e){(0,h.normalizeIndexes)(t._columns,"groupIndex",e,(function(t){var e=t.grouped;return delete t.grouped,e}))},G=function(t,e,n){var i,o=(0,l.isObject)(e)?e.rowIndex:null,r="group"===n?t.getGroupColumns():"columnChooser"===n?t.getChooserColumns():t.getVisibleColumns(o);return e=(0,l.isObject)(e)?e.columnIndex:e,(i=r[e])&&"groupExpand"===i.type&&(i=t._columns.filter((function(t){return i.type===t.type}))[0]||i),i&&(0,l.isDefined)(i.index)?i.index:-1};function K(t,e){return t&&e&&e.name===t.name&&(e.dataField===t.dataField||t.name)}var q=function(t){var e,n,i,o=t._columnsUserState,r=t._ignoreColumnOptionNames||[],a=t._columns,s={},u=[],c=!0,d=[];function f(t,e){if(e)for(var n=0;n<M.length;n++){var i=M[n];(0,h.inArray)(i,r)>=0||("dataType"===i?t[i]=t[i]||e[i]:(0,h.inArray)(i,O)>=0?i in e&&(t[i]=e[i]):("selectedFilterOperation"===i&&e[i]&&(t.defaultSelectedFilterOperation=t[i]||null),t[i]=e[i]))}}function p(t,e){for(var n=e.name||e.dataField,i=s[n]||0,o=0;o<t.length;o++)if(K(e,t[o])){if(!i)return s[n]=s[n]||0,s[n]++,o;i--}return-1}if(o){for(i=0;i<a.length;i++)n=p(o,a[i]),c=c&&n>=0,d.push(n);for(i=0;i<a.length;i++)e=a[i],n=d[i],(t._hasUserState||c)&&f(e,o[n]),n>=0&&(0,l.isDefined)(o[n].initialIndex)?u[n]=e:u.push(e);var m=!1;for(i=0;i<o.length;i++){var g=o[i];g.added&&p(a,g)<0&&(f(e=x(t,g.added),g),u.push(e),g.added.columns&&(m=!0))}m&&(W(t),u=E(t,u)),Z(t,u)}},$=function(t,e){W(t),U(t,e),function(t,e){u.default.each(t._columns,(function(t,e){(0,l.isDefined)(e.sortIndex)&&!nt(e.sortOrder)&&delete e.sortIndex})),(0,h.normalizeIndexes)(t._columns,"sortIndex",e,(function(t){return!(0,l.isDefined)(t.groupIndex)&&nt(t.sortOrder)}))}(t,e),ct(t),function(t,e){for(var n,i,o={},r=[],a=t.getBandColumnsCache(),s=t._columns.filter((function(t){return!t.command})),l=0;l<s.length;l++){i=s[l];var u=B(l,a.columnParentByIndex);if(u.length){var c=u[u.length-1].index;o[c]=o[c]||[],o[c].push(i)}else r.push(i)}for(n in o)(0,h.normalizeIndexes)(o[n],"visibleIndex",e);(0,h.normalizeIndexes)(r,"visibleIndex",e)}(t,e)},Y=function(t){t.resetColumnsCache()};function Z(t,e){t._columns=e,Y(t),t.updateColumnDataTypes()}var X=function(t,e,n,i){var o=t._columnChanges||{optionNames:{length:0},changeTypes:{length:0},columnIndex:i};n=(n=n||"all").split(".")[0];var r=o.changeTypes;e&&!r[e]&&(r[e]=!0,r.length++);var a=o.optionNames;n&&!a[n]&&(a[n]=!0,a.length++),void 0!==i&&i===o.columnIndex||delete o.columnIndex,t._columnChanges=o,Y(t)},J=function(t){var e,n=t.option("onColumnsChanging"),i=t._columnChanges,o=["dataField","lookup","dataType","columns"];t.isInitialized()&&!t._updateLockCount&&i&&(n&&(t._updateLockCount++,n((0,d.extend)({component:t.component},i)),t._updateLockCount--),t._columnChanges=void 0,(e=i.optionNames)&&o.some((function(t){return e[t]}))?t.reinit():t.columnsChanged.fire(i))},Q=function(t,e,n){e>=0?n>=0||(t.lastSortOrder=t.sortOrder):t.sortOrder=t.lastSortOrder},tt=function(t,e){var n=e.value,i=e.optionName,o=e.prevValue,r=e.fullOptionName,a="".concat(r,".").concat(i);P[i]||t._skipProcessingColumnsChange===a||(t._skipProcessingColumnsChange=a,t.component._notifyOptionChanged(a,n,o),t._skipProcessingColumnsChange=!1)},et=function(t,e,i,o,r){var s,u,c,d=a.default.compileGetter(i),f=e.index;if(3===arguments.length)return d(e,{functionsAsIs:!0});var p=d(e,{functionsAsIs:!0});if(p!==o){"groupIndex"===i||"calculateGroupValue"===i?(u="grouping",Q(e,o,p)):u="sortIndex"===i||"sortOrder"===i||"calculateSortValue"===i?"sorting":"columns";var m=a.default.compileSetter(i);m(e,o,{functionsAsIs:!0});var g=N(t,e);n[i]&&($(t,e),o=d(e)),g&&tt(t,{fullOptionName:g,optionName:i,value:o,prevValue:p}),(0,l.isDefined)(p)||(0,l.isDefined)(o)||0===i.indexOf("buffer")||(r=!0),r?Y(t):((0,h.inArray)(i,M)<0&&"visibleWidth"!==i&&(s=t.option("columns"),c=t.getColumnByPath(g,s),(0,l.isString)(c)&&(c=s[f]={dataField:c}),c&&K(c,e)&&m(c,o,{functionsAsIs:!0})),X(t,u,i,f))}};function nt(t){return"asc"===t||"desc"===t}var it=function(t,e){var n=this.dataField.split("."),i=n.length-1;this.serializeValue&&(e=this.serializeValue(e));for(var o=0;o<i;o++){var r=n[o];t=t[r]=t[r]||{}}t[n[i]]=e},ot=function(t,e){return!!t._columns.filter((function(t){return t.type===e.type})).length},rt=function(t,e){var n=t.option("rtlEnabled");return e.command&&!ot(t,e)||!e.fixedPosition?n?"right":"left":e.fixedPosition},at=function(t,e,n,i){var o,r=this.getRowCount(),a=t[i]&&t[i].rowspan,s=e.filter((function(t){return t.type===n}));return t.forEach((function(e,i){e.type===n&&(o=i,a=t[i+1]?t[i+1].rowspan:r)})),a>1&&(s=u.default.map(s,(function(t){return(0,d.extend)({},t,{rowspan:a})}))),s.unshift.apply(s,(0,l.isDefined)(o)?[o,1]:[i,0]),t.splice.apply(t,s),a||1},st=function(t,e){for(var n=t?t.toString():"0";n.length<e;)n="0"+n;return n},lt=function(t,e,n,i){for(var o,r,a=e.slice().map((function(t){return(0,d.extend)({},t)})),s=t._isColumnFixing(),l=n.slice().map((function(t){return(0,d.extend)({fixed:s},t)})),u=function(t){return n.reduce((function(e,n,o){var r=i&&"groupExpand"===t.type?"expand":t.type;return n.type===r||n.command===t.command?o:e}),-1)},c=function(t){return t.command!==n[r].command},h=0;h<e.length;h++)if(o=e[h],(r=o&&(o.type||o.command)?u(o):-1)>=0)if(i)a[h]=(0,d.extend)({fixed:s},n[r],o),"groupExpand"!==o.type&&(l=l.filter(c));else{var f={visibleIndex:o.visibleIndex,index:o.index,headerId:o.headerId,allowFixing:0===o.groupIndex,allowReordering:0===o.groupIndex,groupIndex:o.groupIndex};a[h]=(0,d.extend)({},o,n[r],"groupExpand"===o.type&&f)}return e.length&&i&&l.length&&(a=a.concat(l)),a},ut=function(t,e){return(0,l.isDefined)(e.fixed)||!e.type?e.fixed:t._isColumnFixing()},ct=function(t){t._bandColumnsCache=void 0},dt=function(t,e){var n,i=(0,l.isString)(e)&&e.substr(0,e.indexOf(":"));if(void 0!==e)return i&&(e=e.substr(i.length+1)),i?n=t.filter((function(t){return""+t[i]===e}))[0]:["index","name","dataField","caption"].some((function(i){return!!(n=t.filter((function(t){return t[i]===e}))[0])})),n};return{_getExpandColumnOptions:function(){return{type:"expand",command:"expand",width:"auto",cssClass:"dx-command-expand",allowEditing:!1,allowGrouping:!1,allowSorting:!1,allowResizing:!1,allowReordering:!1,allowHiding:!1}},_getFirstItems:function(t){var e,n=[];return t&&t.items().length>0&&(e=(0,_.normalizeSortingInfo)(t.group()).length,n=function t(e,n){if(!e||!n)return e;for(var i=0;i<e.length;i++){var o=t(e[i].items||e[i].collapsedItems,n-1);if(o&&o.length)return o}}(t.items(),e)||[]),n},_endUpdateCore:function(){!this._skipProcessingColumnsChange&&J(this)},init:function(){var t=this.option("columns");this._commandColumns=this._commandColumns||[],this._columns=this._columns||[],this._isColumnsFromOptions=!!t,this._isColumnsFromOptions?(Z(this,t?E(this,t):[]),q(this)):Z(this,this._columnsUserState?E(this,this._columnsUserState):this._columns),function(t){var e=t._getExpandColumnOptions();t.addCommandColumn(e)}(this),this._dataSourceApplied?this.applyDataSource(this._dataSource,!0):$(this)},callbackNames:function(){return["columnsChanged"]},getColumnByPath:function(t,e){var n,i=[];return t.replace(A,(function(t,e){return i.push(parseInt(e)),""})),i.length&&(n=e?i.reduce((function(t,e){return t&&t.columns&&t.columns[e]}),{columns:e}):function(t,e){var n,i,o=function(t){var e=n?n.index:void 0;return t.ownerBand===e};if(t.getBandColumnsCache().isPlain)n=t._columns[e[0]];else{i=t._columns.filter(o);for(var r=0;r<e.length;r++)(n=i[e[r]])&&(i=t._columns.filter(o))}return n}(this,i)),n},optionChanged:function(t){var e;switch(t.name){case"adaptColumnWidthByRatio":t.handled=!0;break;case"dataSource":t.value===t.previousValue||this.option("columns")||Array.isArray(t.value)&&Array.isArray(t.previousValue)||(this._columns=[]);break;case"columns":e=this._skipProcessingColumnsChange,t.handled=!0,this._skipProcessingColumnsChange||(t.name===t.fullName?(this._columnsUserState=null,this._ignoreColumnOptionNames=null,this.init()):(this._columnOptionChanged(t),e=!0)),e&&this._updateRequireResize(t);break;case"commonColumnSettings":case"columnAutoWidth":case"allowColumnResizing":case"allowColumnReordering":case"columnFixing":case"grouping":case"groupPanel":case"regenerateColumnsByVisibleItems":case"customizeColumns":case"editing":case"columnHidingEnabled":case"dateSerializationFormat":case"columnResizingMode":case"columnMinWidth":case"columnWidth":t.handled=!0;var n="columnWidth"===t.fullName&&["width"],i=t.fullName&&0===t.fullName.indexOf("editing.popup"),o=t.fullName&&0===t.fullName.indexOf("editing.form");i||o||this.reinit(n);break;case"rtlEnabled":this.reinit();break;default:this.callBase(t)}},_columnOptionChanged:function(t){var e={},n=this.getColumnByPath(t.fullName),i=t.fullName.replace(A,"");n&&(i?e[i]=t.value:e=t.value,this._skipProcessingColumnsChange=t.fullName,this.columnOption(n.index,e),this._skipProcessingColumnsChange=!1)},_updateRequireResize:function(t){var e=this.component;"width"===t.fullName.replace(A,"")&&e._updateLockCount&&(e._requireResize=!0)},publicMethods:function(){return["addColumn","deleteColumn","columnOption","columnCount","clearSorting","clearGrouping","getVisibleColumns","getVisibleColumnIndex"]},applyDataSource:function(t,e){var n=t&&t.isLoaded();if(this._dataSource=t,!this._dataSourceApplied||0===this._dataSourceColumnsCount||e||this.option("regenerateColumnsByVisibleItems")){if(n){if(!this._isColumnsFromOptions){var i=function(t,e){for(var n,i=t._getFirstItems(e),o={},a=[],s=0;s<i.length;s++)if(i[s])for(n in i[s])(0,l.isFunction)(i[s][n])&&!(0,r.isWrapped)(i[s][n])||(o[n]=!0);for(n in o)if(0!==n.indexOf("__")){var u=x(t,n);a.push(u)}return a}(this,t);i.length&&(Z(this,i),this._dataSourceColumnsCount=this._columns.length,q(this))}return this.updateColumns(t,e)}this._dataSourceApplied=!1}else if(n&&!this.isAllDataTypesDefined(!0)&&this.updateColumnDataTypes(t))return X(this,"columns"),J(this),(new C.Deferred).reject().promise()},reset:function(){this._dataSourceApplied=!1,this._dataSourceColumnsCount=void 0,this.reinit()},resetColumnsCache:function(){this._visibleColumns=void 0,this._fixedColumns=void 0,this._rowCount=void 0,ct(this)},reinit:function(t){this._columnsUserState=this.getUserState(),this._ignoreColumnOptionNames=t||null,this.init(),t&&(this._ignoreColumnOptionNames=null)},isInitialized:function(){return!!this._columns.length||!!this.option("columns")},isDataSourceApplied:function(){return this._dataSourceApplied},getCommonSettings:function(t){var e=(!t||!t.type)&&this.option("commonColumnSettings")||{},n=this.option("grouping")||{},i=this.option("groupPanel")||{};return(0,d.extend)({allowFixing:this.option("columnFixing.enabled"),allowResizing:this.option("allowColumnResizing")||void 0,allowReordering:this.option("allowColumnReordering"),minWidth:this.option("columnMinWidth"),width:this.option("columnWidth"),autoExpandGroup:n.autoExpandAll,allowCollapsing:n.allowCollapsing,allowGrouping:i.allowColumnDragging&&i.visible||n.contextMenuEnabled},e)},isColumnOptionUsed:function(t){for(var e=0;e<this._columns.length;e++)if(this._columns[e][t])return!0},isAllDataTypesDefined:function(t){var e=this._columns;if(!e.length)return!1;for(var n=0;n<e.length;n++)if((e[n].dataField||e[n].calculateCellValue!==e[n].defaultCalculateCellValue)&&(!e[n].dataType||t&&e[n].deserializeValue&&void 0===e[n].serializationFormat))return!1;return!0},getColumns:function(){return this._columns},isBandColumnsUsed:function(){return this.getColumns().some((function(t){return t.isBand}))},getGroupColumns:function(){var t=[];return u.default.each(this._columns,(function(){(0,l.isDefined)(this.groupIndex)&&(t[this.groupIndex]=this)})),t},getVisibleColumns:function(t){return this._visibleColumns=this._visibleColumns||this._getVisibleColumnsCore(),t=(0,l.isDefined)(t)?t:this._visibleColumns.length-1,this._visibleColumns[t]||[]},getFixedColumns:function(t){return this._fixedColumns=this._fixedColumns||this._getFixedColumnsCore(),t=(0,l.isDefined)(t)?t:this._fixedColumns.length-1,this._fixedColumns[t]||[]},getFilteringColumns:function(){return this.getColumns().filter((function(t){return(t.dataField||t.name)&&(t.allowFiltering||t.allowHeaderFiltering)})).map((function(t){var e=(0,d.extend)(!0,{},t);return(0,l.isDefined)(e.dataField)||(e.dataField=e.name),e.filterOperations=t.filterOperations!==t.defaultFilterOperations?e.filterOperations:null,e}))},_getFixedColumnsCore:function(){var t,e,n,i=[],o=this.getRowCount(),r={command:"transparent"},a=0;if(this._isColumnFixing())for(var s=0;s<=o;s++){t=0,n=null,e=null;for(var u=this.getVisibleColumns(s,!0),c=0;c<u.length;c++){var d=u[c-1],h=u[c];h.fixed?d&&d.fixed&&rt(this,d)!==rt(this,h)?(0,l.isDefined)(e)||(e=c):n=h.fixedPosition:(0===s&&(h.isBand&&h.colspan?a+=h.colspan:a++),t++,(0,l.isDefined)(e)||(e=c))}if(0===s&&(0===t||t>=u.length))return[];(0,l.isDefined)(e)||(e="right"===n?0:u.length),i[s]=u.slice(0),r.colspan||(r.colspan=a),i[s].splice(e,t,r)}return i},_isColumnFixing:function(){var t=this.option("columnFixing.enabled");return!t&&u.default.each(this._columns,(function(e,n){if(n.fixed)return t=!0,!1})),t},_getExpandColumnsCore:function(){return this.getGroupColumns()},getExpandColumns:function(){var t,e=this._getExpandColumnsCore(),n=e.filter((function(t){return 0===t.groupIndex}))[0],i=n&&n.fixed,o=this._isColumnFixing();return e.length&&(t=this.columnOption("command:expand")),e=u.default.map(e,(function(e){return(0,d.extend)({},e,{visibleWidth:null,minWidth:null,cellTemplate:(0,l.isDefined)(e.groupIndex)?null:e.cellTemplate,headerCellTemplate:null,fixed:!(!(0,l.isDefined)(e.groupIndex)||!i)||o},t,{index:e.index,type:e.type||"groupExpand"})}))},getBandColumnsCache:function(){if(!this._bandColumnsCache){var t=this._columns,e={},n={},i=!0;t.forEach((function(o){var r=o.ownerBand,a=t[r];o.hasColumns&&(i=!1),o.colspan&&(o.colspan=void 0),o.rowspan&&(o.rowspan=void 0),a?n[o.index]=a:r=-1,e[r]=e[r]||[],e[r].push(o)})),this._bandColumnsCache={isPlain:i,columnChildrenByIndex:e,columnParentByIndex:n}}return this._bandColumnsCache},_isColumnVisible:function(t){return t.visible&&this.isParentColumnVisible(t.index)},_getVisibleColumnsCore:function(){var t,e,n=this,i=[],o=0,r=0,a=n.getRowCount(),s=[],c=[],d=0,h=n.option("rtlEnabled"),f=n.getBandColumnsCache(),m=lt(n,n.getExpandColumns(),n._columns),g=lt(n,n._columns,n._commandColumns,!0),_=function(t){var e;for(e=0;t>1;e++)t/=10;return e}(g.length);for(function(t,e,n){for(var i,o=0;o<e.length;o++){var r=e[o];(r.visible||r.command)&&(r.isBand&&(r.colspan=r.colspan||L(t,r.index)),r.isBand&&r.colspan||(i=t.getRowCount(),r.command||(0,l.isDefined)(r.groupIndex)&&!r.showWhenGrouped||(i-=B(r.index,n.columnParentByIndex).length),i>1&&(r.rowspan=i)))}}(n,g,f),t=0;t<a;t++)i[t]=[],c[t]=[{}],s[t]=[{},{},{}];return u.default.each(g,(function(){var i,o=this.visibleIndex,r=B(this.index,f.columnParentByIndex);if(n._isColumnVisible(this)&&(!(0,l.isDefined)(this.groupIndex)||this.showWhenGrouped)){var a=r.length;if(o<0?(o=-o,i=c[a]):(this.fixed=r.length?r[0].fixed:this.fixed,this.fixedPosition=r.length?r[0].fixedPosition:this.fixedPosition,this.fixed?(e="right"===this.fixedPosition,!h||this.command&&!ot(n,this)||(e=!e),i=e?s[a][2]:s[a][0]):i=s[a][1]),r.length)for(o=st(o,_),t=r.length-1;t>=0;t--)o=st(r[t].visibleIndex,_)+o;i[o]=i[o]||[],i[o].push(this),d++}})),u.default.each(i,(function(t){(0,p.orderEach)(c[t],(function(e,n){i[t].unshift.apply(i[t],n)}));var e=i[t].length;u.default.each(s[t],(function(e,n){(0,p.orderEach)(n,(function(e,n){i[t].push.apply(i[t],n)}))})),r<t+1&&(r+=at.call(n,i[t],m,"detailExpand",e)),o<t+1&&(o+=at.call(n,i[t],m,"groupExpand",e))})),i.push(function t(e,n,i){var o=[];return e[n=n||0]&&u.default.each(e[n],(function(r,a){a.ownerBand!==i&&"groupExpand"!==a.type||(a.isBand&&a.colspan?o.push.apply(o,t(e,n+1,a.index)):(!a.command||n<1)&&o.push(a))})),o}(i)),!d&&n._columns.length&&i[a].push({command:"empty"}),i},getInvisibleColumns:function(t,e){var n,i=this,o=[];return t=t||i._columns,u.default.each(t,(function(t,r){r.ownerBand===e&&(r.isBand?(n=r.visible?i.getInvisibleColumns(i.getChildrenByBandColumn(r.index),r.index):i.getChildrenByBandColumn(r.index)).length&&(o.push(r),o=o.concat(n)):r.visible||o.push(r))})),o},getChooserColumns:function(t){var e=t?this.getColumns():this.getInvisibleColumns();return(0,s.grep)(e,(function(t){return t.showInColumnChooser}))},allowMoveColumn:function(t,e,n,i){var o=G(this,t,n),r=this._columns[o];return!(!r||!(r.allowReordering||r.allowGrouping||r.allowHiding))&&(n===i?"columnChooser"!==n&&((t=(0,l.isObject)(t)?t.columnIndex:t)!==(e=(0,l.isObject)(e)?e.columnIndex:e)&&t+1!==e):"group"===n&&"columnChooser"!==i||"group"===i?r&&r.allowGrouping:"columnChooser"!==n&&"columnChooser"!==i||r&&r.allowHiding)},moveColumn:function(t,e,n,i){var o,r,a={},s=G(this,t,n),u=G(this,e,i);if(s>=0){var c=this._columns[s];if(e=(0,l.isObject)(e)?e.columnIndex:e,r=u>=0?this._columns[u].groupIndex:-1,(0,l.isDefined)(c.groupIndex)&&"group"===n&&(r>c.groupIndex&&r--,"group"!==i?a.groupIndex=void 0:(o=c.groupIndex,delete c.groupIndex,U(this))),"group"===i)a.groupIndex=function(t,e,n){var i,o=t.getGroupColumns();if(n>=0)for(i=0;i<o.length;i++)o[i].groupIndex>=n&&o[i].groupIndex++;else for(n=0,i=0;i<o.length;i++)n=Math.max(n,o[i].groupIndex+1);return n}(this,0,r),c.groupIndex=o;else if(e>=0){var d=this._columns[u];d&&c.ownerBand===d.ownerBand?ut(this,c)^ut(this,d)?a.visibleIndex=D:a.visibleIndex=d.visibleIndex:a.visibleIndex=D}var h="columnChooser"!==i;c.visible!==h&&(a.visible=h),this.columnOption(c.index,a)}},changeSortOrder:function(t,e){var n={},i=this.option("sorting"),o=i&&i.mode,r="single"===o||!e,a="single"===o||"multiple"===o,s=this._columns[t];a&&s&&s.allowSorting&&(r&&!(0,l.isDefined)(s.groupIndex)&&u.default.each(this._columns,(function(e){e!==t&&this.sortOrder&&!(0,l.isDefined)(this.groupIndex)&&(delete this.sortOrder,delete this.sortIndex)})),nt(e)?s.sortOrder!==e&&(n.sortOrder=e):"none"===e?s.sortOrder&&(n.sortIndex=void 0,n.sortOrder=void 0):function(t){if("ctrl"===e){if(!("sortOrder"in t)||!("sortIndex"in t))return!1;n.sortOrder=void 0,n.sortIndex=void 0}else(0,l.isDefined)(t.groupIndex)||(0,l.isDefined)(t.sortIndex)?n.sortOrder="desc"===t.sortOrder?"asc":"desc":n.sortOrder="asc"}(s)),this.columnOption(s.index,n)},getSortDataSourceParameters:function(t){var e=[],n=[];return u.default.each(this._columns,(function(){(this.dataField||this.selector||this.calculateCellValue)&&(0,l.isDefined)(this.sortIndex)&&!(0,l.isDefined)(this.groupIndex)&&(e[this.sortIndex]=this)})),u.default.each(e,(function(){if(nt(this&&this.sortOrder)){var e={selector:this.calculateSortValue||this.displayField||this.calculateDisplayValue||t&&this.selector||this.dataField||this.calculateCellValue,desc:"desc"===this.sortOrder};this.sortingMethod&&(e.compare=this.sortingMethod.bind(this)),n.push(e)}})),n.length>0?n:null},getGroupDataSourceParameters:function(t){var e=[];return u.default.each(this.getGroupColumns(),(function(){var n=this.calculateGroupValue||this.displayField||this.calculateDisplayValue||t&&this.selector||this.dataField||this.calculateCellValue;if(n){var i={selector:n,desc:"desc"===this.sortOrder,isExpanded:!!this.autoExpandGroup};this.sortingMethod&&(i.compare=this.sortingMethod.bind(this)),e.push(i)}})),e.length>0?e:null},refresh:function(t){var e=[];return u.default.each(this._columns,(function(){var n=this.lookup;if(n&&!this.calculateDisplayValue){if(t&&n.valueMap)return;n.update&&e.push(n.update())}})),C.when.apply(i.default,e).done(Y.bind(null,this))},_updateColumnOptions:function(t,n){t.selector=t.selector||function(e){return t.calculateCellValue(e)},u.default.each(["calculateSortValue","calculateGroupValue","calculateDisplayValue"],(function(e,i){var o=t[i];(0,l.isFunction)(o)&&!o.originalCallback&&(t[i]=function(e){return o.call(t,e)},t[i].originalCallback=o,t[i].columnIndex=n)})),(0,l.isString)(t.calculateDisplayValue)&&(t.displayField=t.calculateDisplayValue,t.calculateDisplayValue=a.default.compileGetter(t.displayField)),t.calculateDisplayValue&&(t.displayValueMap=t.displayValueMap||{}),z(t,t.dataType);var i=t.lookup;i&&z(i,i.dataType);var o=i?i.dataType:t.dataType;o&&(t.alignment=t.alignment||function(t,e){switch(t){case"number":return"right";case"boolean":return"center";default:return(0,c.getDefaultAlignment)(e)}}(o,this.option("rtlEnabled")),t.format=t.format||(0,_.getFormatByDataType)(o),t.customizeText=t.customizeText||H(o),t.defaultFilterOperations=t.defaultFilterOperations||!i&&e[o]||[],(0,l.isDefined)(t.filterOperations)||g(t),t.defaultFilterOperation=t.filterOperations&&t.filterOperations[0]||"=",t.showEditorAlways=(0,l.isDefined)(t.showEditorAlways)?t.showEditorAlways:"boolean"===o&&!t.cellTemplate)},updateColumnDataTypes:function(t){var e=this,n=e.option("dateSerializationFormat"),i=e._getFirstItems(t),o=!1;return u.default.each(e._columns,(function(t,r){var a,s,l,u,c,d=r.lookup;if((0,_.isDateType)(r.dataType)&&void 0===r.serializationFormat&&(r.serializationFormat=n),d&&(0,_.isDateType)(d.dataType)&&void 0===r.serializationFormat&&(d.serializationFormat=n),r.calculateCellValue&&i.length){if(!r.dataType||d&&!d.dataType){for(a=0;a<i.length;a++)s=r.calculateCellValue(i[a]),r.dataType||(c=F(s),(l=l||c)&&c&&l!==c&&(l="string")),d&&!d.dataType&&(c=F((0,_.getDisplayValue)(r,s,i[a])),(u=u||c)&&c&&u!==c&&(u="string"));(l||u)&&(l&&(r.dataType=l),d&&u&&(d.dataType=u),o=!0)}if(void 0===r.serializationFormat||d&&void 0===d.serializationFormat)for(a=0;a<i.length;a++)s=r.calculateCellValue(i[a],!0),void 0===r.serializationFormat&&(r.serializationFormat=V(r.dataType,s)),d&&void 0===d.serializationFormat&&(d.serializationFormat=V(d.dataType,d.calculateCellValue(s,!0)))}e._updateColumnOptions(r,t)})),o},_customizeColumns:function(t){var e=this.option("customizeColumns");e&&(t.some((function(t){return(0,l.isObject)(t.ownerBand)}))&&$(this),e(t),Z(this,E(this,t)))},updateColumns:function(t,e){var n=this;if(e||this.updateSortingGrouping(t),!t||t.isLoaded()){var i=t?t.sort()||[]:this.getSortDataSourceParameters(),o=t?t.group()||[]:this.getGroupDataSourceParameters(),r=null===t||void 0===t?void 0:t.lastLoadOptions().filter;this._customizeColumns(this._columns),$(this);var a=this._columns;return(0,C.when)(this.refresh(!0)).always((function(){n._columns===a&&(n._updateChanges(t,{sorting:i,grouping:o,filtering:r}),J(n))}))}},_updateChanges:function(t,e){t&&(this.updateColumnDataTypes(t),this._dataSourceApplied=!0),(0,_.equalSortParameters)(e.sorting,this.getSortDataSourceParameters())||X(this,"sorting"),(0,_.equalSortParameters)(e.grouping,this.getGroupDataSourceParameters())||X(this,"grouping");var n=this.getController("data");n&&!(0,_.equalFilterParameters)(e.filtering,n.getCombinedFilter())&&X(this,"filtering"),X(this,"columns")},updateSortingGrouping:function(t,e){var n,i,o=this,r=function(t,e,n){u.default.each(t,(function(t,i){if(delete i[n],e)for(var o=0;o<e.length;o++){var r=e[o].selector,a=e[o].isExpanded;if(r===i.dataField||r===i.name||r===i.selector||r===i.calculateCellValue||r===i.calculateGroupValue){i.sortOrder=i.sortOrder||(e[o].desc?"desc":"asc"),void 0!==a&&(i.autoExpandGroup=a),i[n]=o;break}}}))};if(t){n=(0,_.normalizeSortingInfo)(t.sort());var a=(0,_.normalizeSortingInfo)(t.group()),s=o.getGroupDataSourceParameters(),l=o.getSortDataSourceParameters();o._columns.length||(u.default.each(a,(function(t,e){o._columns.push(e.selector)})),u.default.each(n,(function(t,e){o._columns.push(e.selector)})),Z(o,E(o,o._columns))),!e&&(s||o._hasUserState)||(0,_.equalSortParameters)(a,s)||(r(o._columns,a,"groupIndex"),e&&(X(o,"grouping"),i=!0)),!e&&(l||o._hasUserState)||(0,_.equalSortParameters)(n,l)||(r(o._columns,n,"sortIndex"),e&&(X(o,"sorting"),i=!0)),i&&J(o)}},updateFilter:function(t,e,n,i){if(!Array.isArray(t))return t;if(n=void 0!==(t=(0,d.extend)([],t)).columnIndex?t.columnIndex:n,i=void 0!==t.filterValue?t.filterValue:i,(0,l.isString)(t[0])&&"!"!==t[0]){var o=this.columnOption(t[0]);e?(0,f.default)().forceIsoDateParsing&&o&&o.serializeValue&&t.length>1&&(t[t.length-1]=o.serializeValue(t[t.length-1],"filter")):o&&o.selector&&(t[0]=o.selector,t[0].columnIndex=o.index)}else(0,l.isFunction)(t[0])&&(t[0].columnIndex=n,t[0].filterValue=i);for(var r=0;r<t.length;r++)t[r]=this.updateFilter(t[r],e,n,i);return t},columnCount:function(){return this._columns?this._columns.length:0},columnOption:function(t,e,n,i){var o=this,r=o._columns.concat(o._commandColumns),a=dt(r,t);if(a){if(1===arguments.length)return(0,d.extend)({},a);if((0,l.isString)(e)){if(2===arguments.length)return et(o,a,e);et(o,a,e,n,i)}else(0,l.isObject)(e)&&u.default.each(e,(function(t,e){et(o,a,t,e,i)}));J(o)}},clearSorting:function(){var t=this.columnCount();this.beginUpdate();for(var e=0;e<t;e++)this.columnOption(e,"sortOrder",void 0);this.endUpdate()},clearGrouping:function(){var t=this.columnCount();this.beginUpdate();for(var e=0;e<t;e++)this.columnOption(e,"groupIndex",void 0);this.endUpdate()},getVisibleIndex:function(t,e){for(var n=this.getVisibleColumns(e),i=n.length-1;i>=0;i--)if(n[i].index===t)return i;return-1},getVisibleColumnIndex:function(t,e){var n=this.columnOption(t,"index");return this.getVisibleIndex(n,e)},addColumn:function(t){var e=x(this,t),n=this._columns.length;this._columns.push(e),e.isBand&&(this._columns=E(this,this._columns),e=this._columns[n]),e.added=t,$(this,e),this.updateColumns(this._dataSource)},deleteColumn:function(t){var e,n=this.columnOption(t);if(n&&n.index>=0){if((e=this._columns).forEach((function(t){(0,l.isDefined)(t.ownerBand)&&(t.ownerBand=e[t.ownerBand])})),this._columns.splice(n.index,1),n.isBand){var i=this.getChildrenByBandColumn(n.index).map((function(t){return t.index}));this._columns=this._columns.filter((function(t){return i.indexOf(t.index)<0}))}$(this),this.updateColumns(this._dataSource)}},addCommandColumn:function(t){var e=this._commandColumns.filter((function(e){return e.command===t.command}))[0];e||(e=t,this._commandColumns.push(e))},getUserState:function(){var t,e=this._columns,n=[];function i(i,o){void 0!==e[t][o]&&(n[t][o]=e[t][o])}for(t=0;t<e.length;t++)n[t]={},u.default.each(M,i);return n},setUserState:function(t){var e=this._dataSource,n=this.option("stateStoring.ignoreColumnOptionNames");if(!n){n=[];var i=this.getCommonSettings();this.option("columnChooser.enabled")||n.push("visible"),"none"===this.option("sorting.mode")&&n.push("sortIndex","sortOrder"),i.allowGrouping||n.push("groupIndex"),i.allowFixing||n.push("fixed","fixedPosition"),i.allowResizing||n.push("width","visibleWidth");var o=!this.option("filterPanel.visible");!this.option("filterRow.visible")&&o&&n.push("filterValue","selectedFilterOperation"),!this.option("headerFilter.visible")&&o&&n.push("filterValues","filterType")}this._columnsUserState=t,this._ignoreColumnOptionNames=n,this._hasUserState=!!t,X(this,"filtering"),this.init(),e&&(e.sort(this.getSortDataSourceParameters()),e.group(this.getGroupDataSourceParameters()))},_createCalculatedColumnOptions:function(t,e){var n={},i=t.dataField;if((Array.isArray(t.columns)&&t.columns.length||t.isBand)&&(n.isBand=!0,i=null),i){if((0,l.isString)(i)){var s=a.default.compileGetter(i);n={caption:v.default.captionize(i),calculateCellValue:function(t,e){var n=s(t);return this.deserializeValue&&!e?this.deserializeValue(n):n},setCellValue:it,parseValue:function(t){var e,n;return"number"===this.dataType?(0,l.isString)(t)&&this.format?(n=b.default.parse(t),(0,l.isNumeric)(n)&&(e=n)):(0,l.isDefined)(t)&&(0,l.isNumeric)(t)&&(e=Number(t)):"boolean"===this.dataType?t===this.trueText?e=!0:t===this.falseText&&(e=!1):(0,_.isDateType)(this.dataType)?(n=w.default.parse(t,this.format))&&(e=n):e=t,e}}}n.allowFiltering=!0}else n.allowFiltering=!!t.calculateFilterExpression;return n.calculateFilterExpression=function(){return T.default.defaultCalculateFilterExpression.apply(this,arguments)},n.createFilterExpression=function(t){var e;return this.calculateFilterExpression&&(e=this.calculateFilterExpression.apply(this,arguments)),(0,l.isFunction)(e)&&(e=[e,"=",!0]),e&&(e.columnIndex=this.index,e.filterValue=t),e},i&&(0,l.isString)(i)||(0,d.extend)(!0,n,{allowSorting:!1,allowGrouping:!1,calculateCellValue:function(){return null}}),e&&(n.allowFixing=!1),t.dataType&&(n.userDataType=t.dataType),t.selectedFilterOperation&&!("defaultSelectedFilterOperation"in n)&&(n.defaultSelectedFilterOperation=t.selectedFilterOperation),t.lookup&&(n.lookup={calculateCellValue:function(t,e){return this.valueExpr&&(t=this.valueMap&&this.valueMap[t]),this.deserializeValue&&!e?this.deserializeValue(t):t},updateValueMap:function(){if(this.valueMap={},this.items)for(var t=a.default.compileGetter(this.valueExpr),e=a.default.compileGetter(this.displayExpr),n=0;n<this.items.length;n++){var i=this.items[n],o=e(i);this.valueMap[t(i)]=o,this.dataType=this.dataType||F(o)}},update:function(){var t=this,e=t.dataSource;if(e)if((0,l.isFunction)(e)&&!(0,r.isWrapped)(e)&&(e=e({})),(0,l.isPlainObject)(e)||e instanceof S.default||Array.isArray(e)){if(t.valueExpr){var n=(0,I.normalizeDataSourceOptions)(e);return n.paginate=!1,(e=new k.DataSource(n)).load().done((function(e){t.items=e,t.updateValueMap&&t.updateValueMap()}))}}else m.default.log("E1016");else t.updateValueMap&&t.updateValueMap()}}),n.resizedCallbacks=(0,o.default)(),t.resized&&n.resizedCallbacks.add(t.resized.bind(t)),u.default.each(n,(function(t){if((0,l.isFunction)(n[t])&&0!==t.indexOf("default")){var e="default"+t.charAt(0).toUpperCase()+t.substr(1);n[e]=n[t]}})),n},getRowCount:function(){return this._rowCount=this._rowCount||function(t){var e=1,n=t.getBandColumnsCache().columnParentByIndex;return t._columns.forEach((function(t){var i=B(t.index,n),o=i.filter((function(t){return!t.visible}));t.visible&&!o.length&&(e=Math.max(e,i.length+1))})),e}(this),this._rowCount},getRowIndex:function(t,e){var n=this._columns[t],i=this.getBandColumnsCache();return n&&(e||n.visible&&!n.command&&!(0,l.isDefined)(n.groupIndex))?B(t,i.columnParentByIndex).length:0},getChildrenByBandColumn:function(t,e){var n=function t(e,n,i){var o=[],r=n[e];if(r)for(var a=0;a<r.length;a++){var s=r[a];(0,l.isDefined)(s.groupIndex)&&!s.showWhenGrouped||(o.push(s),i&&s.isBand&&(o=o.concat(t(s.index,n,i))))}return o}(t,this.getBandColumnsCache().columnChildrenByIndex,!e);return e?n.filter((function(t){return t.visible&&!t.command})).sort((function(t,e){return t.visibleIndex-e.visibleIndex})):n},isParentBandColumn:function(t,e){var n=!1,i=this._columns[t],o=this.getBandColumnsCache(),r=i&&B(t,o.columnParentByIndex);return r&&u.default.each(r,(function(t,i){if(i.index===e)return n=!0,!1})),n},isParentColumnVisible:function(t){var e=!0,n=this.getBandColumnsCache(),i=t>=0&&B(t,n.columnParentByIndex);return i&&u.default.each(i,(function(t,n){return e=e&&n.visible})),e},getColumnId:function(t){return t.command&&"groupExpand"===t.type?ot(this,t)?"type:"+t.type:"command:"+t.command:t.index},getCustomizeTextByDataType:H,getHeaderContentAlignment:function(t){return this.option("rtlEnabled")?"left"===t?"right":"left":t}}}())}}},function(t,e,n){"use strict";var i=h(n(39)),o=h(n(27)),r=n(4),a=h(n(2)),s=n(5),l=n(0),u=h(n(107)),c=h(n(190)),d=n(7);function h(t){return t&&t.__esModule?t:{default:t}}t.exports=o.default.Controller.inherit(function(){function t(e,n){if(e&&(e=e.slice(0),n))for(var i=0;i<e.length;i++)e[i]=(0,l.extend)({key:e[i].key},e[i]),e[i].items=t(e[i].items,n-1);return e}function e(t,e,n){var i={reload:!0,fullReload:!0};return e&&((i={sorting:!o.default.equalSortParameters(t.sort,e.sort),grouping:!o.default.equalSortParameters(t.group,e.group,!0),groupExpanding:!o.default.equalSortParameters(t.group,e.group)||e.groupExpand,filtering:!o.default.equalFilterParameters(t.filter,e.filter),pageIndex:t.pageIndex!==e.pageIndex,skip:t.skip!==e.skip,take:t.take!==e.take,fullReload:n}).reload=n||i.sorting||i.grouping||i.filtering,i.paging=i.pageIndex||i.take),i}function n(t){return t.cachedPagesData.pages[t.pageIndex]}return{init:function(t,e){var n=this;n._dataSource=t,n._remoteOperations=e||{},n._isLastPage=!t.isLastPage(),n._hasLastPage=!1,n._currentTotalCount=0,n._cachedPagesData={pages:{}},n._lastOperationTypes={},n._eventsStrategy=t._eventsStrategy,n._skipCorrection=0,n._isLoadingAll=!1,n.changed=(0,i.default)(),n.loadingChanged=(0,i.default)(),n.loadError=(0,i.default)(),n.customizeStoreLoadOptions=(0,i.default)(),n.changing=(0,i.default)(),n._dataChangedHandler=n._handleDataChanged.bind(n),n._dataLoadingHandler=n._handleDataLoading.bind(n),n._dataLoadedHandler=n._handleDataLoaded.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._loadErrorHandler=n._handleLoadError.bind(n),n._pushHandler=n._handlePush.bind(n),n._changingHandler=n._handleChanging.bind(n),t.on("changed",n._dataChangedHandler),t.on("customizeStoreLoadOptions",n._dataLoadingHandler),t.on("customizeLoadResult",n._dataLoadedHandler),t.on("loadingChanged",n._loadingChangedHandler),t.on("loadError",n._loadErrorHandler),t.on("changing",n._changingHandler),t.store().on("push",n._pushHandler),(0,s.each)(t,(function(t,e){!n[t]&&a.default.isFunction(e)&&(n[t]=function(){return this._dataSource[t].apply(this._dataSource,arguments)})}))},remoteOperations:function(){return this._remoteOperations},dispose:function(t){var e=this._dataSource,n=e.store();e.off("changed",this._dataChangedHandler),e.off("customizeStoreLoadOptions",this._dataLoadingHandler),e.off("customizeLoadResult",this._dataLoadedHandler),e.off("loadingChanged",this._loadingChangedHandler),e.off("loadError",this._loadErrorHandler),e.off("changing",this._changingHandler),n&&n.off("push",this._pushHandler),t||e.dispose()},refresh:function(t,e){var n=this._dataSource;e.reload&&(this._currentTotalCount=0,this._skipCorrection=0,this._isLastPage=!n.paginate(),this._hasLastPage=this._isLastPage)},resetCache:function(){this._cachedStoreData=void 0,this._cachedPagingData=void 0},resetPagesCache:function(){this._cachedPagesData={pages:{}}},_needClearStoreDataCache:function(){var t=this.remoteOperations(),n=e(this._lastLoadOptions||{},{});return!Object.keys(t).every((function(e){return!n[e]||!t[e]}))},push:function(t,e){var n=this.store();this._needClearStoreDataCache()&&(this._cachedStoreData=void 0),this._cachedPagingData=void 0,this.resetPagesCache(!0),this._cachedStoreData&&c.default.applyBatch(n,this._cachedStoreData,t),e||this._applyBatch(t)},getDataIndexGetter:function(){var t=this;if(!this._dataIndexGetter){var e,n,i=this.store();this._dataIndexGetter=function(o){var a=n&&n!==t._cachedStoreData;if(!e||a){n=t._cachedStoreData||[],e={};for(var s=0;s<n.length;s++)e[(0,r.getKeyHash)(i.keyOf(n[s]))]=s}return e[(0,r.getKeyHash)(i.keyOf(o))]}}return this._dataIndexGetter},_getKeyInfo:function(){return this.store()},_applyBatch:function(t){var e=this,n=this._getKeyInfo(),i=this._dataSource,r=o.default.normalizeSortingInfo(this.group()).length;t=t.filter((function(t){return!i.paginate()||"insert"!==t.type||void 0!==t.index}));var a=function(){return r?e.itemsCount():e._items.length},s=a();c.default.applyBatch(n,this._items,t,r,!0),c.default.applyBatch(n,i.items(),t,r,!0),this._currentTotalCount>0&&(this._skipCorrection+=a()-s),t.splice(0,t.length)},_handlePush:function(t){this.push(t,!0)},_handleChanging:function(t){this.changing.fire(t),this._applyBatch(t.changes)},_needCleanCacheByOperation:function(t,e){var n=["filtering","sorting","paging"],i=n.indexOf(t);return(i>=0?n.slice(i):[t]).some((function(t){return e[t]}))},_customizeRemoteOperations:function(t,e){var n=this,i=n._cachedStoreData,o=n._cachedPagingData,r=n._cachedPagesData;(t.storeLoadOptions.filter&&!t.remoteOperations.filtering||t.storeLoadOptions.sort&&!t.remoteOperations.sorting)&&(t.remoteOperations={filtering:t.remoteOperations.filtering}),e.fullReload?(i=void 0,o=void 0,r={pages:{}}):(e.reload?(o=void 0,r={pages:{}}):(e.take||e.groupExpanding)&&(r={pages:{}}),(0,s.each)(e,(function(e,r){r&&n._needCleanCacheByOperation(e,t.remoteOperations)&&(i=void 0,o=void 0)}))),o&&(t.remoteOperations.paging=!1),t.cachedStoreData=i,t.cachedPagingData=o,t.cachedPagesData=r,t.isCustomLoading||(n._cachedStoreData=i,n._cachedPagingData=o,n._cachedPagesData=r)},_handleDataLoading:function(t){var n=this,i=n._dataSource,o=n._lastLoadOptions;n.customizeStoreLoadOptions.fire(t),t.delay=this.option("loadingTimeout"),t.originalStoreLoadOptions=t.storeLoadOptions,t.remoteOperations=(0,l.extend)({},this.remoteOperations());var r=!n.isLoaded()&&!n._isRefreshing;n.option("integrationOptions.renderedOnServer")&&!n.isLoaded()&&(t.delay=void 0);var a=(0,l.extend)({pageIndex:n.pageIndex()},t.storeLoadOptions),s=e(a,o,r);if(n._customizeRemoteOperations(t,s),!t.isCustomLoading){var u=n._isRefreshing;t.pageIndex=i.pageIndex(),t.lastLoadOptions=a,t.operationTypes=s,n._loadingOperationTypes=s,n._isRefreshing=!0,(0,d.when)(u||n._isRefreshed||n.refresh(t,s)).done((function(){n._lastOperationId===t.operationId&&(n._isRefreshed=!0,n.load().always((function(){n._isRefreshed=!1})))})).fail((function(){i.cancel(t.operationId)})).always((function(){n._isRefreshing=!1})),i.cancel(n._lastOperationId),n._lastOperationId=t.operationId,n._isRefreshing&&i.cancel(n._lastOperationId)}this._handleDataLoadingCore(t)},_handleDataLoadingCore:function(t){var e=t.remoteOperations;t.loadOptions={};var i=t.cachedPagesData.extra,o={filter:!e.filtering,sort:!e.sorting,group:!e.grouping,summary:!e.summary,skip:!e.paging,take:!e.paging,requireTotalCount:i&&"totalCount"in i||!e.paging};(0,s.each)(t.storeLoadOptions,(function(e,n){o[e]&&(t.loadOptions[e]=n,delete t.storeLoadOptions[e])})),i&&(t.extra=i),t.data=n(t)||t.cachedStoreData},_handleDataLoaded:function(e){var i=this,r=e.loadOptions,s=e.remoteOperations&&!e.remoteOperations.paging,c=e.cachedPagesData,h=e.storeLoadOptions,f=!1!==this.option("cacheEnabled")&&h,p=f&&!e.isCustomLoading&&c&&(!s||h.group)&&!this.option("legacyRendering"),m=f&&s,g=m&&!e.isCustomLoading;if(r){e.lastLoadOptions&&(this._lastLoadOptions=e.lastLoadOptions,Object.keys(e.operationTypes).forEach((function(t){i._lastOperationTypes[t]=i._lastOperationTypes[t]||e.operationTypes[t]}))),s&&(e.skip=r.skip,e.take=r.take,delete r.skip,delete r.take),r.group&&(r.group=e.group||r.group);var _=o.default.normalizeSortingInfo(h.group||r.group).length;p&&n(e)||(m&&e.cachedPagingData?e.data=t(e.cachedPagingData,_):(g&&(this._cachedStoreData?e.mergeStoreLoadData&&(e.data=this._cachedStoreData=this._cachedStoreData.concat(e.data)):this._cachedStoreData=t(e.data,o.default.normalizeSortingInfo(h.group).length)),new u.default(e.data).load(r).done((function(n){e.data=n,g&&(i._cachedPagingData=t(e.data,_))})).fail((function(t){e.data=(new d.Deferred).reject(t)}))),r.requireTotalCount&&s&&(e.extra=a.default.isPlainObject(e.extra)?e.extra:{},e.extra.totalCount=e.data.length),e.extra&&e.extra.totalCount>=0&&(!1===h.requireTotalCount||!1===r.requireTotalCount)&&(e.extra.totalCount=-1),this._handleDataLoadedCore(e),p&&(c.extra=c.extra||(0,l.extend)({},e.extra),(0,d.when)(e.data).done((function(n){!function(t,e){var n=t.pageIndex;void 0!==n&&(t.cachedPagesData.pages[n]=e)}(e,t(n,_))})))),e.storeLoadOptions=e.originalStoreLoadOptions}else this._dataSource.cancel(e.operationId)},_handleDataLoadedCore:function(t){t.remoteOperations&&!t.remoteOperations.paging&&Array.isArray(t.data)&&(void 0!==t.skip&&(t.data=t.data.slice(t.skip)),void 0!==t.take&&(t.data=t.data.slice(0,t.take)))},_handleLoadingChanged:function(t){this.loadingChanged.fire(t)},_handleLoadError:function(t){this.loadError.fire(t),this.changed.fire({changeType:"loadError",error:t})},_handleDataChanged:function(t){var e,n=this._dataSource,i=!1,o=this.itemsCount();this._isLastPage=!o||!this.pageSize()||o<this.pageSize(),this._isLastPage&&(this._hasLastPage=!0),n.totalCount()>=0?n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),this.pageIndex(n.pageIndex()),this.resetPagesCache(),n.load(),i=!0):(e=n.pageIndex()*this.pageSize()+o,this._currentTotalCount=Math.max(this._currentTotalCount,e),0===o&&n.pageIndex()>=this.pageCount()&&(n.pageIndex(this.pageCount()-1),"infinite"!==this.option("scrolling.mode")&&(n.load(),i=!0))),i||(this._operationTypes=this._lastOperationTypes,this._lastOperationTypes={},this.component._optionCache={},this.changed.fire(t),this.component._optionCache=void 0)},_scheduleCustomLoadCallbacks:function(t){var e=this;e._isCustomLoading=!0,t.always((function(){e._isCustomLoading=!1}))},loadingOperationTypes:function(){return this._loadingOperationTypes},operationTypes:function(){return this._operationTypes},lastLoadOptions:function(){return this._lastLoadOptions||{}},isLastPage:function(){return this._isLastPage},totalCount:function(){return parseInt(this._currentTotalCount+this._skipCorrection||this._dataSource.totalCount())},itemsCount:function(){return this._dataSource.items().length},totalItemsCount:function(){return this.totalCount()},pageSize:function(){var t=this._dataSource;return arguments.length||t.paginate()?t.pageSize.apply(t,arguments):0},pageCount:function(){var t=this.totalItemsCount(),e=this.pageSize();return e&&t>0?Math.max(1,Math.ceil(t/e)):1},hasKnownLastPage:function(){return this._hasLastPage||this._dataSource.totalCount()>=0},loadFromStore:function(t,e){var n=this._dataSource,i=new d.Deferred;if(n)return(e=e||n.store()).load(t).done((function(t,e){t&&!Array.isArray(t)&&Array.isArray(t.data)&&(e=t,t=t.data),i.resolve(t,e)})).fail(i.reject),i},isCustomLoading:function(){return!!this._isCustomLoading},load:function(t){var e,n,i=this,o=this,l=o._dataSource,u=new d.Deferred;if(t){var c=l.store(),h=l.loadOptions(),f={storeLoadOptions:t,isCustomLoading:!0};return(0,s.each)(c._customLoadOptions()||[],(function(t,e){e in f.storeLoadOptions||(f.storeLoadOptions[e]=h[e])})),this._isLoadingAll=t.isLoadingAll,o._scheduleCustomLoadCallbacks(u),l._scheduleLoadCallbacks(u),o._handleDataLoading(f),e=function(){if(!l.store())return u.reject("canceled");(0,d.when)(f.data||o.loadFromStore(f.storeLoadOptions)).done((function(e,n){f.data=e,f.extra=n||{},o._handleDataLoaded(f),t.requireTotalCount&&void 0===f.extra.totalCount&&(f.extra.totalCount=c.totalCount(f.storeLoadOptions)),(0,d.when)(f.data,f.extra.totalCount).done((function(t,e){f.extra.totalCount=e,u.resolve(t,f.extra)})).fail(u.reject)})).fail(u.reject)},n=o.option("loadingTimeout"),a.default.isDefined(n)?(0,r.executeAsync)(e,n):e(),u.fail((function(){o._eventsStrategy.fireEvent("loadError",arguments)})).always((function(){i._isLoadingAll=!1})).promise()}return l.load()},reload:function(t){return t?this._dataSource.reload():this._dataSource.load()},getCachedStoreData:function(){return this._cachedStoreData}}}())},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(44)),r=g(n(40)),a=g(n(107)),s=g(n(191)),l=g(n(23)),u=n(4),c=n(5),d=g(n(2)),h=n(0),f=g(n(99)),p=n(7),m=n(363);function g(t){return t&&t.__esModule?t:{default:t}}t.exports={defaultOptions:function(){return{loadingTimeout:0,dataSource:null,cacheEnabled:!0,repaintChangesOnly:!1,highlightChanges:!1,onDataErrorOccurred:null,remoteOperations:"auto",paging:{enabled:!0,pageSize:void 0,pageIndex:void 0}}},controllers:{data:o.default.Controller.inherit({}).include(f.default).inherit(function(){var t=function(t,e,n){var i=t._dataSource;return i?void 0!==n?i[e]()!==n?("pageSize"===e&&i.pageIndex(0),i[e](n),t._skipProcessingPagingChange=!0,t.option("paging."+e,n),t._skipProcessingPagingChange=!1,i["pageIndex"===e?"load":"reload"]().done(t.pageChanged.fire.bind(t.pageChanged))):(0,p.Deferred)().resolve().promise():i[e]():0},e={init:function(){var t=this,e=this;e._items=[],e._columnsController=e.getController("columns"),e._currentOperationTypes=null,e._dataChangedHandler=function(n){e._currentOperationTypes=t._dataSource.operationTypes(),e._handleDataChanged(n),e._currentOperationTypes=null},e._columnsChangedHandler=e._handleColumnsChanged.bind(e),e._loadingChangedHandler=e._handleLoadingChanged.bind(e),e._loadErrorHandler=e._handleLoadError.bind(e),e._customizeStoreLoadOptionsHandler=e._handleCustomizeStoreLoadOptions.bind(e),e._changingHandler=e._handleChanging.bind(e),e._columnsController.columnsChanged.add(e._columnsChangedHandler),e._isLoading=!1,e._isCustomLoading=!1,e._repaintChangesOnly=void 0,e._changes=[],e.createAction("onDataErrorOccurred"),e.dataErrorOccurred.add((function(t){return e.executeAction("onDataErrorOccurred",{error:t})})),e._refreshDataSource()},callbackNames:function(){return["changed","loadingChanged","dataErrorOccurred","pageChanged","dataSourceChanged"]},callbackFlags:function(t){if("dataErrorOccurred"===t)return{stopOnFalse:!0}},publicMethods:function(){return["beginCustomLoading","endCustomLoading","refresh","filter","clearFilter","getCombinedFilter","keyOf","byKey","getDataByKeys","pageIndex","pageSize","pageCount","totalCount","_disposeDataSource","getKeyByRowIndex","getRowIndexByKey","getDataSource","getVisibleRows","repaintRows"]},reset:function(){this._columnsController.reset(),this._items=[],this._refreshDataSource()},optionChanged:function(t){var e;function n(){t.handled=!0}if("dataSource"===t.name&&t.name===t.fullName&&(t.value===t.previousValue||this.option("columns")&&Array.isArray(t.value)&&Array.isArray(t.previousValue))){if(t.value!==t.previousValue){var i=this.store();i&&(i._array=t.value)}return n(),void this.refresh(this.option("repaintChangesOnly"))}switch(t.name){case"cacheEnabled":case"repaintChangesOnly":case"highlightChanges":case"loadingTimeout":n();break;case"remoteOperations":case"keyExpr":case"dataSource":case"scrolling":n(),this.reset();break;case"paging":(e=this.dataSource())&&this._setPagingOptions(e)&&e.load().done(this.pageChanged.fire.bind(this.pageChanged)),n();break;case"rtlEnabled":this.reset();break;case"columns":(e=this.dataSource())&&e.isLoading()&&t.name===t.fullName&&(this._useSortingGroupingFromColumns=!0,e.load());break;default:this.callBase(t)}},isReady:function(){return!this._isLoading},getDataSource:function(){return this._dataSource&&this._dataSource._dataSource},getCombinedFilter:function(t){return this.combinedFilter(void 0,t)},combinedFilter:function(t,e){var n=this._dataSource,i=this._columnsController;if(n){void 0===t&&(t=n.filter());var o=this._calculateAdditionalFilter();o&&(i.isDataSourceApplied()||i.isAllDataTypesDefined())&&(t=r.default.combineFilters([o,t])),t=i.updateFilter(t,e||n.remoteOperations().filtering)}return t},waitReady:function(){return this._updateLockCount?(this._readyDeferred=new p.Deferred,this._readyDeferred):(0,p.when)()},_endUpdateCore:function(){var t=this._changes;if(t.length){this._changes=[];var e=t.every((function(t){return t.repaintChangesOnly}));this.updateItems(1===t.length?t[0]:{repaintChangesOnly:e})}this._readyDeferred&&(this._readyDeferred.resolve(),this._readyDeferred=null)},_handleCustomizeStoreLoadOptions:function(t){var e=this._columnsController,n=this._dataSource,i=t.storeLoadOptions;t.isCustomLoading&&!i.isLoadingAll||(i.filter=this.combinedFilter(i.filter),e.isDataSourceApplied()||e.updateColumnDataTypes(n),this._columnsUpdating=!0,e.updateSortingGrouping(n,!this._useSortingGroupingFromColumns),this._columnsUpdating=!1,i.sort=e.getSortDataSourceParameters(),i.group=e.getGroupDataSourceParameters(),n.sort(i.sort),n.group(i.group),i.sort=e.getSortDataSourceParameters(!n.remoteOperations().sorting),t.group=e.getGroupDataSourceParameters(!n.remoteOperations().grouping))},_handleColumnsChanged:function(t){var e,n,i,o=this,a=t.changeTypes,s=t.optionNames;if(a.sorting||a.grouping)o._dataSource&&!o._columnsUpdating&&(o._dataSource.group(o._columnsController.getGroupDataSourceParameters()),o._dataSource.sort(o._columnsController.getSortDataSourceParameters()),o.reload());else if(a.columns&&((s.filterValues||s.filterValue||s.selectedFilterOperation)&&(e=o._columnsController.columnOption(t.columnIndex,"filterValue"),n=o._columnsController.columnOption(t.columnIndex,"filterValues"),(Array.isArray(n)||void 0===t.columnIndex||d.default.isDefined(e)||!s.selectedFilterOperation||s.filterValue)&&(o._applyFilter(),i=!0)),o._needApplyFilter||r.default.checkChanges(s,["width","visibleWidth","filterValue","bufferedFilterValue","selectedFilterOperation","filterValues","filterType"])||o._columnsController.columnsChanged.add((function t(){o._columnsController.columnsChanged.remove(t),o.updateItems()})),d.default.isDefined(s.visible))){var l=o._columnsController.columnOption(t.columnIndex);l&&(d.default.isDefined(l.filterValue)||d.default.isDefined(l.filterValues))&&(o._applyFilter(),i=!0)}!i&&a.filtering&&o.reload()},_handleDataChanged:function(t){var e=this,n=e._dataSource,i=e._columnsController,o=!1;this._useSortingGroupingFromColumns=!1,n&&!e._isDataSourceApplying&&(e._isDataSourceApplying=!0,(0,p.when)(e._columnsController.applyDataSource(n)).done((function(){e._isLoading&&e._handleLoadingChanged(!1),o&&t&&t.isDelayed&&(t.isDelayed=!1),e._isDataSourceApplying=!1;var n=e._needApplyFilter;e._needApplyFilter=!1,n&&!e._isAllDataTypesDefined&&function(){var t=e._calculateAdditionalFilter();return t&&t.length}()?(l.default.log("W1005",e.component.NAME),e._applyFilter()):e.updateItems(t,!0)})).fail((function(){e._isDataSourceApplying=!1})),e._isDataSourceApplying&&(o=!0,e._handleLoadingChanged(!0)),e._needApplyFilter=!e._columnsController.isDataSourceApplied(),e._isAllDataTypesDefined=i.isAllDataTypesDefined())},_handleLoadingChanged:function(t){this._isLoading=t,this._fireLoadingChanged()},_handleLoadError:function(t){this.dataErrorOccurred.fire(t)},fireError:function(){this.dataErrorOccurred.fire(l.default.Error.apply(l.default,arguments))},_setPagingOptions:function(t){var e=this.option("paging.pageIndex"),n=this.option("paging.pageSize"),i=this.option("paging.enabled"),o=this.option("scrolling.mode"),r="infinite"===o,a=i||"virtual"===o||r,s=!1;return t.requireTotalCount(!r),void 0!==i&&t.paginate()!==a&&(t.paginate(a),s=!0),void 0!==n&&t.pageSize()!==n&&(t.pageSize(n),s=!0),void 0!==e&&t.pageIndex()!==e&&(t.pageIndex(e),s=!0),s},_getSpecificDataSourceOption:function(){var t=this.option("dataSource");return Array.isArray(t)?{store:{type:"array",data:t,key:this.option("keyExpr")}}:t},_initDataSource:function(){var t=this.option("dataSource"),e=this._dataSource;this.callBase(),t=this._dataSource,this._useSortingGroupingFromColumns=!0,t?(this._setPagingOptions(t),this.setDataSource(t)):e&&this.updateItems()},_loadDataSource:function(){var t=this._dataSource,e=new p.Deferred;return(0,p.when)(this._columnsController.refresh(!0)).always((function(){t?t.load().done(e.resolve).fail(e.reject):e.resolve()})),e.promise()},_beforeProcessItems:function(t){return t.slice(0)},getRowIndexDelta:function(){return 0},_processItems:function(t,e){var n=this,i=n.getRowIndexDelta(),o=e.changeType,r=n._columnsController.getVisibleColumns(null,"loadingAll"===o),a=n._items,s={visibleColumns:r,dataIndex:"append"===o&&a.length>0?a[a.length-1].dataIndex+1:0},l=[];return(0,c.each)(t,(function(t,e){d.default.isDefined(e)&&(s.rowIndex=t-i,e=n._processItem(e,s),l.push(e))})),l},_processItem:function(t,e){return t=this._generateDataItem(t,e),(t=this._processDataItem(t,e)).dataIndex=e.dataIndex++,t},_generateDataItem:function(t){return{rowType:"data",data:t,key:this.keyOf(t)}},_processDataItem:function(t,e){return t.values=this.generateDataValues(t.data,e.visibleColumns),t},generateDataValues:function(t,e,n){for(var i,o=[],r=0;r<e.length;r++){var a=e[r];i=n?void 0:null,a.command||(a.calculateCellValue?i=a.calculateCellValue(t):a.dataField&&(i=t[a.dataField])),o.push(i)}return o},_applyChange:function(t){"update"===t.changeType?this._applyChangeUpdate(t):this.items().length&&t.repaintChangesOnly&&"refresh"===t.changeType?this._applyChangesOnly(t):"refresh"===t.changeType&&this._applyChangeFull(t)},_applyChangeFull:function(t){this._items=t.items.slice(0)},_getRowIndices:function(t){var e=t.rowIndices.slice(0),n=this.getRowIndexDelta();e.sort((function(t,e){return t-e}));for(var i=0;i<e.length;i++){var o=e[i];t.allowInvisibleRowIndices&&(o+=n),o<0&&(e.splice(i,1),i--)}return e},_applyChangeUpdate:function(t){var e,n=this,i=t.items,o=n._getRowIndices(t),r=n.getRowIndexDelta(),a=n.option("repaintChangesOnly"),s=-1,l=0;t.items=[],t.rowIndices=[],t.columnIndices=[],t.changeTypes=[];var d=function(t,e,n){var i=t&&e&&(0,u.equalByValue)(t.key,e.key);return i&&n&&(i=t.rowType===e.rowType&&("detail"!==e.rowType||t.isEditing===e.isEditing)),i};(0,c.each)(o,(function(o,u){var c;if(s!==(u+=l+r)){s=u;var h=n._items[u],f=n._items[u+1],p=i[u],m=i[u+1],g=d(h,f)||d(p,m);if(p&&(p.rowIndex=u,t.items.push(p)),h&&p&&d(h,p,g))e="update",n._items[u]=p,h.visible!==p.visible?t.items.splice(-1,1,{visible:p.visible}):a&&!t.isFullUpdate&&(c=n._partialUpdateRow(h,p,u-r));else if(p&&!h||m&&d(h,m,g))e="insert",n._items.splice(u,0,p),l++;else if(h&&!p||f&&d(p,f,g))e="remove",n._items.splice(u,1),l--,s=-1;else{if(!p)return;e="update",n._items[u]=p}t.rowIndices.push(u-r),t.changeTypes.push(e),t.columnIndices.push(c)}}))},_isCellChanged:function(t,e,n,i,o){if(JSON.stringify(t.values[i])!==JSON.stringify(e.values[i]))return!0;function r(t,e){return!!t.modifiedValues&&void 0!==t.modifiedValues[e]}return r(t,i)!==r(e,i)},_getChangedColumnIndices:function(t,e,n,i){if(t.rowType===e.rowType&&"group"!==e.rowType&&"groupFooter"!==e.rowType){var o=[];if("detail"!==e.rowType)for(var r=0;r<t.values.length;r++)this._isCellChanged(t,e,n,r,i)&&o.push(r);return o}},_partialUpdateRow:function(t,e,n,i){var o=this._getChangedColumnIndices(t,e,n,i);return o&&(t.cells&&t.cells.forEach((function(t,n){!(o.indexOf(n)>=0)&&t&&t.update&&t.update(e)})),e.update=t.update,e.watch=t.watch,e.cells=t.cells,i&&(e.oldValues=t.values),t.update&&t.update(e)),o},_isItemEquals:function(t,e){if(JSON.stringify(t.values)!==JSON.stringify(e.values))return!1;if(["modified","isNewRow","removed","isEditing"].some((function(n){return t[n]!==e[n]})))return!1;if("group"===t.rowType||"groupFooter"===t.rowType){var n,i,o,r,a=t.isExpanded===e.isExpanded,s=JSON.stringify(t.summaryCells)===JSON.stringify(e.summaryCells),l=(null===(n=t.data)||void 0===n?void 0:n.isContinuation)===(null===(i=e.data)||void 0===i?void 0:i.isContinuation)&&(null===(o=t.data)||void 0===o?void 0:o.isContinuationOnNextPage)===(null===(r=e.data)||void 0===r?void 0:r.isContinuationOnNextPage);if(!a||!s||!l)return!1}return!0},_applyChangesOnly:function(t){var e=this,n=[],i=[],o=[],r=[],a={};function s(t){if(t)return t.rowType+","+JSON.stringify(t.key)}var l=this._items.slice();t.items.forEach((function(t,e){var n=s(t);a[n]=e,t.rowIndex=e}));var u=(0,m.findChanges)(l,t.items,s,(function(t,n){return!!e._isItemEquals(t,n)&&(t.cells&&(t.update&&t.update(n),t.cells.forEach((function(t){t&&t.update&&t.update(n)}))),!0)}));u?(u.forEach((function(t){switch(t.type){case"update":var a=t.index,s=t.data,l=t.oldItem,u=e._partialUpdateRow(l,s,a,!0);n.push(a),o.push("update"),r.push(s),e._items[a]=s,i.push(u);break;case"insert":n.push(t.index),o.push("insert"),r.push(t.data),i.push(void 0),e._items.splice(t.index,0,t.data);break;case"remove":n.push(t.index),o.push("remove"),e._items.splice(t.index,1),r.push(t.oldItem),i.push(void 0)}})),t.repaintChangesOnly=!0,t.changeType="update",t.rowIndices=n,t.columnIndices=i,t.changeTypes=o,t.items=r,l.length&&(t.isLiveUpdate=!0),this._correctRowIndices((function(t){var e=s(l[t]),n=a[e];return n>=0?n-t:0}))):this._applyChangeFull(t)},_correctRowIndices:u.noop,_updateItemsCore:function(t){var e,n=this._dataSource,i=t.changeType||"refresh";if(t.changeType=i,n){e=t.items||n.items(),e=this._beforeProcessItems(e),e=this._processItems(e,t),t.items=e;var o=this._items.length===e.length&&this._items;this._applyChange(t);var r=this.getRowIndexDelta();(0,c.each)(this._items,(function(t,e){e.rowIndex=t-r,o&&(e.cells=o[t].cells||[])}))}else this._items=[]},_handleChanging:function(t){var e=this.getVisibleRows();this.dataSource()&&t.changes.forEach((function(t){if("insert"===t.type&&t.index>=0){for(var n=0,i=0;i<t.index;i++){var o=e[i];!o||"data"!==o.rowType&&"group"!==o.rowType||n++}t.index=n}}))},updateItems:function(t,e){t=t||{};if(void 0!==this._repaintChangesOnly)t.repaintChangesOnly=this._repaintChangesOnly;else if(t.changes)t.repaintChangesOnly=this.option("repaintChangesOnly");else if(e){var n=this.dataSource().operationTypes();t.repaintChangesOnly=n&&!n.grouping&&!n.filtering&&this.option("repaintChangesOnly"),t.isDataChanged=!0,n&&(n.reload||n.paging||n.groupExpanding)&&(t.needUpdateDimensions=!0)}this._updateLockCount?this._changes.push(t):(this._updateItemsCore(t),t.cancel||this._fireChanged(t))},loadingOperationTypes:function(){var t=this.dataSource();return t&&t.loadingOperationTypes()||{}},_fireChanged:function(t){var e=this;this._currentOperationTypes&&(t.operationTypes=this._currentOperationTypes,this._currentOperationTypes=null),(0,u.deferRender)((function(){e.changed.fire(t)}))},isLoading:function(){return this._isLoading||this._isCustomLoading},_fireLoadingChanged:function(){this.loadingChanged.fire(this.isLoading(),this._loadingText)},_calculateAdditionalFilter:function(){return null},_applyFilter:function(){var t=this._dataSource;if(t)return t.pageIndex(0),this.reload().done(this.pageChanged.fire.bind(this.pageChanged))},filter:function(t){var e=this._dataSource,n=e&&e.filter();if(0===arguments.length)return n;t=arguments.length>1?Array.prototype.slice.call(arguments,0):t,r.default.equalFilterParameters(n,t)||(e&&e.filter(t),this._applyFilter())},clearFilter:function(t){var e=this,n=e._columnsController,i=function(t){for(var e=n.columnCount(),i=0;i<e;i++)n.columnOption(i,t,void 0)};if(e.component.beginUpdate(),arguments.length>0)switch(t){case"dataSource":e.filter(null);break;case"search":e.searchByText("");break;case"header":i("filterValues");break;case"row":i("filterValue")}else e.filter(null),e.searchByText(""),i("filterValue"),i("bufferedFilterValue"),i("filterValues");e.component.endUpdate()},_fireDataSourceChanged:function(){var t=this;t.changed.add((function e(){t.changed.remove(e),t.dataSourceChanged.fire()}))},_getDataSourceAdapter:u.noop,_createDataSourceAdapterCore:function(t,e){var n=this._getDataSourceAdapter().create(this.component);return n.init(t,e),n},isLocalStore:function(t){return(t=t||this.store())instanceof a.default},isCustomStore:function(t){return(t=t||this.store())instanceof s.default},_createDataSourceAdapter:function(t){var e=this.option("remoteOperations"),n=t.store(),i={filtering:!0,sorting:!0,paging:!0,grouping:!0,summary:!0};return e&&e.groupPaging&&(e=(0,h.extend)({},i,e)),"auto"===e&&(e=this.isLocalStore(n)||this.isCustomStore(n)?{}:{filtering:!0,sorting:!0,paging:!0}),!0===e&&(e=i),this._createDataSourceAdapterCore(t,e)},setDataSource:function(t){var e=this._dataSource;!t&&e&&(e.cancelAll(),e.changed.remove(this._dataChangedHandler),e.loadingChanged.remove(this._loadingChangedHandler),e.loadError.remove(this._loadErrorHandler),e.customizeStoreLoadOptions.remove(this._customizeStoreLoadOptionsHandler),e.changing.remove(this._changingHandler),e.dispose(this._isSharedDataSource)),t&&(t=this._createDataSourceAdapter(t)),this._dataSource=t,t&&(this._fireDataSourceChanged(),this._isLoading=!t.isLoaded(),this._needApplyFilter=!0,this._isAllDataTypesDefined=this._columnsController.isAllDataTypesDefined(),t.changed.add(this._dataChangedHandler),t.loadingChanged.add(this._loadingChangedHandler),t.loadError.add(this._loadErrorHandler),t.customizeStoreLoadOptions.add(this._customizeStoreLoadOptionsHandler),t.changing.add(this._changingHandler))},items:function(){return this._items},isEmpty:function(){return!this.items().length},pageCount:function(){return this._dataSource?this._dataSource.pageCount():1},dataSource:function(){return this._dataSource},store:function(){var t=this._dataSource;return t&&t.store()},loadAll:function(t){var e=this,n=new p.Deferred,i=e._dataSource;if(i)if(t){var o={data:t,isCustomLoading:!0,storeLoadOptions:{isLoadingAll:!0},loadOptions:{filter:e.getCombinedFilter(),group:i.group(),sort:i.sort()}};i._handleDataLoaded(o),(0,p.when)(o.data).done((function(t){t=e._beforeProcessItems(t),n.resolve(e._processItems(t,{changeType:"loadingAll"}),o.extra&&o.extra.summary)})).fail(n.reject)}else if(i.isLoading())n.reject();else{var r=(0,h.extend)({},i.loadOptions(),{isLoadingAll:!0,requireTotalCount:!1});i.load(r).done((function(t,i){t=e._beforeProcessItems(t),t=e._processItems(t,{changeType:"loadingAll"}),n.resolve(t,i&&i.summary)})).fail(n.reject)}else n.resolve([]);return n},getKeyByRowIndex:function(t){var e=this.items()[t];if(e)return e.key},getRowIndexByKey:function(t){return r.default.getIndexByKey(t,this.items())},keyOf:function(t){var e=this.store();if(e)return e.keyOf(t)},byKey:function(t){var e,n=this.store(),i=this.getRowIndexByKey(t);if(n)return i>=0&&(e=(new p.Deferred).resolve(this.items()[i].data)),e||n.byKey(t)},key:function(){var t=this.store();if(t)return t.key()},getRowIndexOffset:function(){return 0},getDataByKeys:function(t){var e=this,n=new p.Deferred,o=[],r=[];return(0,c.each)(t,(function(t,n){o.push(e.byKey(n).done((function(e){r[t]=e})))})),p.when.apply(i.default,o).always((function(){n.resolve(r)})),n},pageIndex:function(e){return t(this,"pageIndex",e)},pageSize:function(e){return t(this,"pageSize",e)},beginCustomLoading:function(t){this._isCustomLoading=!0,this._loadingText=t||"",this._fireLoadingChanged()},endCustomLoading:function(){this._isCustomLoading=!1,this._loadingText=void 0,this._fireLoadingChanged()},refresh:function(t){!0===t?t={reload:!0,changesOnly:!0}:t||(t={lookup:!0,selection:!0,reload:!0});var e=this,n=e.getDataSource(),i=t.changesOnly,o=new p.Deferred,r=function(){e._repaintChangesOnly=!!i};return(0,p.when)(!t.lookup||e._columnsController.refresh()).always((function(){t.load||t.reload?(n&&n.on("customizeLoadResult",r),(0,p.when)(e.reload(t.reload,i)).always((function(){n&&n.off("customizeLoadResult",r),e._repaintChangesOnly=void 0})).done(o.resolve).fail(o.reject)):(e.updateItems({repaintChangesOnly:t.changesOnly}),o.resolve())})),o.promise()},getVisibleRows:function(){return this.items()},_disposeDataSource:function(){this.setDataSource(null)},dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},repaintRows:function(t,e){((t=Array.isArray(t)?t:[t]).length>1||d.default.isDefined(t[0]))&&this.updateItems({changeType:"update",rowIndices:t,isFullUpdate:!e})},skipProcessingPagingChange:function(t){return this._skipProcessingPagingChange&&("paging.pageIndex"===t||"paging.pageSize"===t)},getUserState:function(){return{searchText:this.option("searchPanel.text"),pageIndex:this.pageIndex(),pageSize:this.pageSize()}},getCachedStoreData:function(){return this._dataSource&&this._dataSource.getCachedStoreData()}};return r.default.proxyMethod(e,"load"),r.default.proxyMethod(e,"reload"),r.default.proxyMethod(e,"push"),r.default.proxyMethod(e,"itemsCount",0),r.default.proxyMethod(e,"totalItemsCount",0),r.default.proxyMethod(e,"hasKnownLastPage",!0),r.default.proxyMethod(e,"isLoaded",!0),r.default.proxyMethod(e,"totalCount",0),e}())}}},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(6)),r=d(n(25)),a=n(2),s=n(0),l=d(n(424)),u=d(n(12)),c=n(11);function d(t){return t&&t.__esModule?t:{default:t}}var h=(0,s.extend)({},l.default,{_createRow:function(t){var e=this,n=this.callBase(t);return"header"===t.rowType&&o.default.on(n,(0,c.addNamespace)(r.default.name,"dxDataGridColumnHeadersView"),"td",this.createAction((function(t){e._processHeaderAction(t.event,n)}))),n},_processHeaderAction:function(t,e){if((0,i.default)(t.currentTarget).parent().get(0)===e.get(0)){var n=this,o=null,r=(0,i.default)(t.currentTarget),s=r.parent().index(),l=-1;[].slice.call(n.getCellElements(s)).some((function(t,e){if(t===r.get(0))return l=e,!0}));var u=n._columnsController.getVisibleColumns(s)[l],c=n.getController("editing"),d=n.option("editing.mode");!(c&&c.isEditing()&&("batch"===d||"cell"===d))&&n._isSortableElement((0,i.default)(t.target))&&(!u||(0,a.isDefined)(u.groupIndex)||u.command||(t.shiftKey?o="shift":t.ctrlKey&&(o="ctrl"),setTimeout((function(){n._columnsController.changeSortOrder(u.index,o)}))))}},_renderCellContent:function(t,e){var n=e.column;n.command||"header"!==e.rowType||this._applyColumnState({name:"sort",rootElement:t,column:n,showColumnLines:this.option("showColumnLines")}),this.callBase(t,e)},_columnOptionChanged:function(t){var e=t.changeTypes;1===e.length&&e.sorting?this._updateIndicators("sort"):this.callBase(t)},optionChanged:function(t){switch(t.name){case"sorting":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}}}),f=(0,s.extend)({},l.default,{_createGroupPanelItem:function(t,e){var n=this,i=n.callBase.apply(n,arguments);return o.default.on(i,(0,c.addNamespace)(r.default.name,"dxDataGridHeaderPanel"),n.createAction((function(){n._processGroupItemAction(e.index)}))),n._applyColumnState({name:"sort",rootElement:i,column:{alignment:n.option("rtlEnabled")?"right":"left",allowSorting:e.allowSorting,sortOrder:"desc"===e.sortOrder?"desc":"asc"},showColumnLines:!0}),i},_processGroupItemAction:function(t){var e=this;setTimeout((function(){return e.getController("columns").changeSortOrder(t)}))},optionChanged:function(t){switch(t.name){case"sorting":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}}});t.exports={defaultOptions:function(){return{sorting:{mode:"single",ascendingText:u.default.format("dxDataGrid-sortingAscendingText"),descendingText:u.default.format("dxDataGrid-sortingDescendingText"),clearText:u.default.format("dxDataGrid-sortingClearText"),showSortIndexes:!0}}},extenders:{views:{columnHeadersView:h,headerPanel:f}}}},function(t,e,n){"use strict";var i,o=n(2),r=n(3),a=(i=r)&&i.__esModule?i:{default:i};t.exports={_applyColumnState:function(t){var e,n,i=this.option("sorting.mode"),r=t.rootElement,s=t.column,l=this._getIndicatorContainer(r);if("sort"===t.name){r.find(".dx-sort").remove(),!l.children().length&&l.remove();var u=("single"===i||"multiple"===i)&&s.allowSorting;if(!(0,o.isDefined)(s.groupIndex)&&(u||(0,o.isDefined)(s.sortOrder)))e="asc"===s.sortOrder?"ascending":"descending",n=this.callBase(t).toggleClass("dx-sort-up","asc"===s.sortOrder).toggleClass("dx-sort-down","desc"===s.sortOrder),this.getController&&!!this.getController("columns").columnOption("sortIndex:1")&&this.option("sorting.showSortIndexes")&&s.sortIndex>=0&&((0,a.default)("<span>").addClass("dx-sort-index-icon").text(s.sortIndex+1).appendTo(n),n.addClass("dx-sort-index")),t.rootElement.addClass(this.addWidgetPrefix("action"));return(0,o.isDefined)(s.sortOrder)?this.setAria("sort",e,r):this.setAria("sort","none",r),n}return this.callBase(t)},_getIndicatorClassName:function(t){return"sort"===t?"dx-sort":"sortIndex"===t?"dx-sort-index-icon":this.callBase(t)},_renderIndicator:function(t){var e=t.column,n=t.container,i=t.indicator;if("sort"===t.name){var r=this.option("rtlEnabled");if((0,o.isDefined)(e.sortOrder)||i&&i.addClass("dx-sort-none"),n.children().length&&(!r&&"left"===t.columnAlignment||r&&"right"===t.columnAlignment))return void n.prepend(i)}this.callBase(t)},_updateIndicator:function(t,e,n){if("sort"!==n||!(0,o.isDefined)(e.groupIndex))return this.callBase.apply(this,arguments)},_getIndicatorElements:function(t,e){var n=this.callBase(t);return e?n:n&&n.not(".dx-sort-none")}}},function(t,e,n){"use strict";var i=b(n(3)),o=n(10),r=b(n(6)),a=n(4),s=b(n(130)),l=n(2),u=n(5),c=n(0),d=n(24),h=n(55),f=n(29),p=n(40),m=b(n(198)),g=b(n(103)),_=b(n(185)),v=b(n(12)),y=b(n(31));function b(t){return t&&t.__esModule?t:{default:t}}t.exports={defaultOptions:function(){return{hoverStateEnabled:!1,scrolling:{useNative:"auto"},loadPanel:{enabled:"auto",text:v.default.format("Loading"),width:200,height:90,showIndicator:!0,indicatorSrc:"",showPane:!0},rowTemplate:null,columnAutoWidth:!1,noDataText:v.default.format("dxDataGrid-noDataText"),wordWrapEnabled:!1,showColumnLines:!0,showRowLines:!1,rowAlternationEnabled:!1,activeStateEnabled:!1,twoWayBindingEnabled:!0}},views:{rowsView:m.default.ColumnsView.inherit(function(){var t=function(t,e){var n=(0,h.isEmpty)(e.text)&&"data"===e.rowType,i=e.text,o=t.get(0);n?(0,p.setEmptyText)(t):e.column.encodeHtml?o.textContent=i:o.innerHTML=i};return{_getDefaultTemplate:function(e){switch(e.command){case"empty":return function(t){t.html(" ")};default:return t}},_getDefaultGroupTemplate:function(t){var e=this.option("summary.texts");return function(n,i){var o=i.data,r=i.column.caption+": "+i.text,a=n.get(0);i.summaryItems&&i.summaryItems.length&&(r+=" "+(0,p.getGroupRowSummaryText)(i.summaryItems,e)),o&&(i.groupContinuedMessage&&i.groupContinuesMessage?r+=" ("+i.groupContinuedMessage+". "+i.groupContinuesMessage+")":i.groupContinuesMessage?r+=" ("+i.groupContinuesMessage+")":i.groupContinuedMessage&&(r+=" ("+i.groupContinuedMessage+")")),n.addClass("dx-group-cell"),t.encodeHtml?a.textContent=r:a.innerHTML=r}},_update:function(){},_getCellTemplate:function(t){var e=t.column;return"group"!==t.rowType||!(0,l.isDefined)(e.groupIndex)||e.showWhenGrouped||e.command?("data"===t.rowType||e.command)&&e.cellTemplate?e.cellTemplate:{allowRenderToDetachedContainer:!0,render:this._getDefaultTemplate(e)}:e.groupCellTemplate||{allowRenderToDetachedContainer:!0,render:this._getDefaultGroupTemplate(e)}},_createRow:function(t){var e=this.callBase(t);if(t){var n="group"===t.rowType,i="data"===t.rowType;if(i&&e.addClass("dx-data-row"),i&&this.option("showRowLines")&&e.addClass("dx-row-lines"),this.option("showColumnLines")&&e.addClass("dx-column-lines"),!1===t.visible&&e.hide(),n){e.addClass("dx-group-row");var o=t.isExpanded;this.setAria("role","row",e),this.setAria("expanded",(0,l.isDefined)(o)&&o.toString(),e)}}return e},_rowPrepared:function(t,e,n){var i=this;"data"===e.rowType&&(this.option("rowAlternationEnabled")&&(this._isAltRow(n)&&t.addClass("dx-row-alt"),e.watch&&e.watch((function(){return i._isAltRow(n)}),(function(e){t.toggleClass("dx-row-alt",e)}))),this._setAriaRowIndex(e,t),e.watch&&e.watch((function(){return e.rowIndex}),(function(){return i._setAriaRowIndex(e,t)}))),this.callBase.apply(this,arguments)},_setAriaRowIndex:function(t,e){var n=this.component,i="standard"===n.option("scrolling.mode")&&"virtual"!==n.option("scrolling.rowRenderingMode"),o=t.rowIndex+1;i?o=n.pageIndex()*n.pageSize()+o:o+=this._dataController.getRowIndexOffset(),this.setAria("rowindex",o,e)},_afterRowPrepared:function(t){var e=this,n=t.args[0],i=this._dataController,o=i.getVisibleRows()[n.rowIndex],a=this.option("integrationOptions.watchMethod");if(n.data&&"data"===n.rowType&&!n.isNewRow&&this.option("twoWayBindingEnabled")&&a&&o){var s=a((function(){return i.generateDataValues(n.data,n.columns)}),(function(){i.repaintRows([o.rowIndex],e.option("repaintChangesOnly"))}),{deep:!0,skipImmediate:!0});r.default.on(n.rowElement,_.default,s)}},_renderScrollable:function(t){var e=this.element();if(e.children().length||e.append("<div>"),!t&&this._loadPanel||this._renderLoadPanel(e,e.parent(),this._dataController.isLocalStore()),(t||!this.getScrollable())&&this._dataController.isLoaded()){for(var n=this.getColumns(),i=!0,o=0;o<n.length;o++)if(!n[o].width&&!n[o].minWidth){i=!1;break}(this.option("columnAutoWidth")||this._hasHeight||i||this._columnsController._isColumnFixing())&&this._renderScrollableCore(e)}},_handleScroll:function(t){this._isScrollByEvent=!!t.event,this._scrollTop=t.scrollOffset.top,this._scrollLeft=t.scrollOffset.left,this.scrollChanged.fire(t.scrollOffset,this.name)},_renderScrollableCore:function(t){var e=this._createScrollableOptions(),n=this._handleScroll.bind(this);e.onScroll=n,e.onStop=n,this._scrollable=this._createComponent(t,g.default,e),this._scrollableContainer=this._scrollable&&this._scrollable._$container},_renderLoadPanel:p.renderLoadPanel,_renderContent:function(t,e){return t.empty().append(e),this._findContentElement()},_updateContent:function(t,e){var n=this,i=n._getTableElement(),o=n._findContentElement(),r=e&&e.changeType,a=[],s=this.option("highlightChanges"),c=this.addWidgetPrefix("row-inserted-animation");switch(r){case"update":(0,u.each)(e.rowIndices,(function(o,r){var u=n._getRowElements(t).eq(o),d=e.changeTypes&&e.changeTypes[o],h=e.items&&e.items[o];a.push((function(){var t=n._getRowElements(),a=t.eq(r);switch(d){case"update":if(h){var f=e.columnIndices&&e.columnIndices[o];(0,l.isDefined)(h.visible)&&h.visible!==a.is(":visible")?a.toggle(h.visible):f?n._updateCells(a,u,f):a.replaceWith(u)}break;case"insert":t.length?a.length?u.insertBefore(a):u.insertAfter(t.last()):u.prependTo(i.children("tbody")),s&&e.isLiveUpdate&&u.addClass(c);break;case"remove":a.remove()}}))})),(0,u.each)(a,(function(){this()})),t.remove();break;default:n._setTableElement(t),o.addClass(n.addWidgetPrefix("content")),n._renderContent(o,t)}},_createEmptyRow:function(t,e,n){var i,o=this._createRow(),r=e?this.getFixedColumns():this.getColumns();o.addClass(t).toggleClass("dx-column-lines",this.option("showColumnLines"));for(var a=0;a<r.length;a++)i=this._createCell({column:r[a],rowType:"freeSpace",columnIndex:a,columns:r}),(0,l.isNumeric)(n)&&i.css("height",n),o.append(i);return this.setAria("role","presentation",o),o},_appendEmptyRow:function(t,e,n){var i=this._getBodies(t),o=!i.length||e.is("tbody"),r=o?t:i;if("top"===n){if(r.first().prepend(e),o){var a=r.children("colgroup");r.prepend(a)}}else r.last().append(e)},_renderFreeSpaceRow:function(t){var e=this._createEmptyRow("dx-freespace-row");e=this._wrapRowIfNeed(t,e),this._appendEmptyRow(t,e)},_checkRowKeys:function(t){var e=this,n=e._getRows(t),i=e._dataController.store()&&e._dataController.store().key();i&&n.some((function(t){if("data"===t.rowType&&void 0===t.key)return e._dataController.fireError("E1046",i),!0}))},_needUpdateRowHeight:function(t){return t>0&&!this._rowHeight},_getRowsHeight:function(t){return t.children("tbody").children().not(".dx-virtual-row").not(".dx-freespace-row").toArray().reduce((function(t,e){return t+(0,d.getBoundingRect)(e).height}),0)},_updateRowHeight:function(){var t=this._getTableElement(),e=this._dataController.items().length;if(t&&this._needUpdateRowHeight(e)){var n=this._getRowsHeight(t);this._rowHeight=n/e}},_findContentElement:function(){var t=this.element(),e=this.getScrollable();if(t)return e&&(t=e.$content()),t.children().first()},_getRowElements:function(t){var e=this.callBase(t);return e&&e.not(".dx-freespace-row")},_getFreeSpaceRowElements:function(t){var e=t||this.getTableElements();return e&&e.children("tbody").children(".dx-freespace-row")},_getNoDataText:function(){return this.option("noDataText")},_rowClick:function(t){var e=this._dataController.items()[t.rowIndex]||{};this.executeAction("onRowClick",(0,c.extend)({evaluate:function(t){return(0,f.compileGetter)(t)(e.data)}},t,e))},_rowDblClick:function(t){var e=this._dataController.items()[t.rowIndex]||{};this.executeAction("onRowDblClick",(0,c.extend)({},t,e))},_getColumnsCountBeforeGroups:function(t){for(var e=0;e<t.length;e++)if("groupExpand"===t[e].type)return e;return 0},_getGroupCellOptions:function(t){var e=this._getColumnsCountBeforeGroups(t.columns),n=(t.row.groupIndex||0)+e;return{columnIndex:n,colspan:t.columns.length-n-1}},_renderCells:function(t,e){"group"===e.row.rowType?this._renderGroupedCells(t,e):e.row.values&&this.callBase(t,e)},_renderGroupedCells:function(t,e){for(var n,i,o=e.row,r=e.columns,a=o.rowIndex,s=this._getGroupCellOptions(e),l=0;l<=s.columnIndex;l++)l===s.columnIndex&&r[l].allowCollapsing&&"infinite"!==e.scrollingMode?(i=!!o.isExpanded,n=r[l]):(i=null,n={command:"expand",cssClass:r[l].cssClass}),this._renderCell(t,{value:i,row:o,rowIndex:a,column:n,columnIndex:l});var u=(0,d.getDefaultAlignment)(this.option("rtlEnabled")),h=(0,c.extend)({},r[s.columnIndex],{command:null,cssClass:null,width:null,showWhenGrouped:!1,alignment:u});s.colspan>1&&(h.colspan=s.colspan),this._renderCell(t,{value:o.values[o.groupIndex],row:o,rowIndex:a,column:h,columnIndex:s.columnIndex})},_renderRows:function(t,e){var n=this.option("scrolling.mode");this.callBase(t,(0,c.extend)({scrollingMode:n},e)),this._checkRowKeys(e.change),this._renderFreeSpaceRow(t),this._hasHeight||this.updateFreeSpaceRowHeight(t)},_renderRow:function(t,e){var n=e.row,i=this.option("rowTemplate");"data"!==n.rowType&&"group"!==n.rowType||(0,l.isDefined)(n.groupIndex)||!i?this.callBase(t,e):this.renderTemplate(t,i,(0,c.extend)({columns:e.columns},n),!0)},_renderTable:function(t){var e=this,n=e.callBase(t);return(0,l.isDefined)(e._getTableElement())?e._renderScrollable():(e._setTableElement(n),e._renderScrollable(!0),e.resizeCompleted.add((function t(){var n=e.getScrollable();n&&e.element().closest((0,o.getWindow)().document).length&&(e.resizeCompleted.remove(t),n._visibilityChanged(!0))}))),n},_createTable:function(){var t=this.callBase.apply(this,arguments);return this.option("rowTemplate")&&t.appendTo(this.component.$element()),t},_renderCore:function(t){var e=this.element();e.addClass(this.addWidgetPrefix("rowsview")).toggleClass(this.addWidgetPrefix("nowrap"),!this.option("wordWrapEnabled")),e.toggleClass("dx-empty",0===this._dataController.items().length),this.setAria("role","presentation",e);var n=this._renderTable({change:t});this._updateContent(n,t),this.callBase(t),this._lastColumnWidths=null},_getRows:function(t){return t&&t.items||this._dataController.items()},_getCellOptions:function(t){var e=t.column,n=t.row,i=n.data,o=n&&n.summaryCells,r=t.value,a=(0,p.getDisplayValue)(e,r,i,n.rowType),s=this.callBase(t);if(s.value=r,s.oldValue=t.oldValue,s.displayValue=a,s.row=n,s.key=n.key,s.data=i,s.rowType=n.rowType,s.values=n.values,s.text=e.command?"":(0,p.formatValue)(a,e),s.rowIndex=n.rowIndex,s.summaryItems=o&&o[t.columnIndex],s.resized=e.resizedCallbacks,(0,l.isDefined)(e.groupIndex)&&!e.command){var u=this.option("grouping.texts"),c=this.option("scrolling.mode");"virtual"!==c&&"infinite"!==c&&(s.groupContinuesMessage=i&&i.isContinuationOnNextPage&&u&&u.groupContinuesMessage,s.groupContinuedMessage=i&&i.isContinuation&&u&&u.groupContinuedMessage)}return s},_setRowsOpacityCore:function(t,e,n,o){var r=this._columnsController,a=r.getColumns(),s=a&&a[n],c=s&&s.isBand&&s.index;(0,u.each)(t,(function(a,s){if(!(0,i.default)(s).hasClass("dx-group-row"))for(var u=0;u<e.length&&(!((0,l.isNumeric)(c)&&r.isParentBandColumn(e[u].index,c)||e[u].index===n)||(t.eq(a).children().eq(u).css({opacity:o}),(0,l.isNumeric)(c)));u++);}))},_getDevicePixelRatio:function(){return(0,o.getWindow)().devicePixelRatio},renderNoDataText:p.renderNoDataText,getCellOptions:function(t,e){var n,i,o=this._dataController.items()[t];return o&&(i=(0,l.isString)(e)?this._columnsController.columnOption(e):this._columnsController.getVisibleColumns()[e])&&(n=this._getCellOptions({value:i.calculateCellValue(o.data),rowIndex:o.rowIndex,row:o,column:i})),n},getRow:function(t){if(t>=0){var e=this._getRowElements();if(e.length>t)return(0,i.default)(e[t])}},updateFreeSpaceRowHeight:function(t){var e=this,n=this._dataController,i=n.items(!0).length,o=this._findContentElement(),r=this._getFreeSpaceRowElements(t);if(r&&o&&n.totalCount()>=0){var l=!1;if(i>0)if(this._hasHeight)r.hide(),(0,a.deferUpdate)((function(){var n=e.getScrollbarWidth(!0),i=e.element().height()-n,s=i-o.outerHeight()>0,u=e._getRowsHeight(o.children().first()),c=t||e.getTableElements(),d=i-u-Math.ceil(parseFloat(c.css("borderTopWidth")))-e._getHeightCorrection();s&&(0,a.deferRender)((function(){r.css("height",d),l=!0,r.show()})),(0,a.deferRender)((function(){return e._updateLastRowBorder(l)}))}));else{var u=n.pageSize()-i,c=this.option("scrolling.mode");u>0&&n.pageCount()>1&&"virtual"!==c&&"infinite"!==c&&(s.default.setHeight(r,u*this._rowHeight),l=!0),!l&&t?s.default.setHeight(r,0):r.toggle(l),this._updateLastRowBorder(l)}else r.css("height",0),r.show(),this._updateLastRowBorder(!0)}},_getHeightCorrection:function(){var t=y.default.webkit&&this._getDevicePixelRatio()>=2,e=y.default.mozilla&&y.default.version>=70&&!this.option("showRowLines");return t||e?1:0},_columnOptionChanged:function(t){var e=t.optionNames;t.changeTypes.grouping||(e.width||e.visibleWidth)&&(this.callBase(t),this._fireColumnResizedCallbacks())},getScrollable:function(){return this._scrollable},init:function(){var t=this,e=t.getController("data");t.callBase(),t._editorFactoryController=t.getController("editorFactory"),t._rowHeight=0,t._scrollTop=0,t._scrollLeft=-1,t._hasHeight=!1,e.loadingChanged.add((function(e,n){t.setLoading(e,n)})),e.dataSourceChanged.add((function(){t._scrollLeft>=0&&t._handleScroll({scrollOffset:{top:t._scrollTop,left:t._scrollLeft}})}))},_handleDataChanged:function(t){switch(t.changeType){case"refresh":case"prepend":case"append":case"update":this.render(null,t);break;default:this._update(t)}},publicMethods:function(){return["isScrollbarVisible","getTopVisibleRowData","getScrollbarWidth","getCellElement","getRowElement","getScrollable"]},contentWidth:function(){return this.element().width()-this.getScrollbarWidth()},getScrollbarWidth:function(t){var e=this._scrollableContainer&&this._scrollableContainer.get(0),n=0;return e&&(t?(n=e.clientHeight?e.offsetHeight-e.clientHeight:0,n+=function(t){var e=t.getScrollable();return e?Math.ceil(parseFloat(e.$content().css("paddingBottom"))):0}(this)):n=e.clientWidth?e.offsetWidth-e.clientWidth:0),n>0?n:0},_fireColumnResizedCallbacks:function(){for(var t=this._lastColumnWidths||[],e=[],n=this.getColumns(),i=0;i<n.length;i++)e[i]=n[i].visibleWidth,n[i].resizedCallbacks&&!(0,l.isDefined)(n[i].groupIndex)&&t[i]!==e[i]&&n[i].resizedCallbacks.fire(e[i]);this._lastColumnWidths=e},_updateLastRowBorder:function(t){this.option("showBorders")&&this.option("showRowLines")&&!t?this.element().addClass("dx-last-row-border"):this.element().removeClass("dx-last-row-border")},_updateScrollable:function(){var t=g.default.getInstance(this.element());t&&(t.update(),this._updateHorizontalScrollPosition())},_updateHorizontalScrollPosition:function(){var t=this.getScrollable(),e=t&&t.scrollOffset().left;this._scrollLeft>=0&&e!==this._scrollLeft&&t.scrollTo({x:this._scrollLeft})},_resizeCore:function(){var t=this;t._fireColumnResizedCallbacks(),t._updateRowHeight(),(0,a.deferRender)((function(){t._renderScrollable(),t.renderNoDataText(),t.updateFreeSpaceRowHeight(),(0,a.deferUpdate)((function(){t._updateScrollable()}))}))},scrollTo:function(t){var e=this.element(),n=e&&g.default.getInstance(e);n&&n.scrollTo(t)},height:function(t,e){var n=this,i=this.element();if(0===arguments.length)return i?i.outerHeight(!0):0;n._hasHeight=void 0===e?"auto"!==t:e,(0,l.isDefined)(t)&&i&&s.default.setHeight(i,t)},setLoading:function(t,e){var n=this._loadPanel,i=this._dataController,r=this.option("loadPanel")||{},a=i.isLoaded()?r.animation:null,s=this.element();if((0,o.hasWindow)()&&(!n&&void 0!==e&&i.isLocalStore()&&"auto"===r.enabled&&s&&(this._renderLoadPanel(s,s.parent()),n=this._loadPanel),n)){var l={message:e||r.text,animation:a,visible:t};clearTimeout(this._hideLoadingTimeoutID),n.option("visible")&&!t?this._hideLoadingTimeoutID=setTimeout((function(){n.option(l)}),200):n.option(l)}},setRowsOpacity:function(t,e){var n=this._getRowElements().not(".dx-group-row")||[];this._setRowsOpacityCore(n,this.getColumns(),t,e)},_getCellElementsCore:function(t){var e=this.callBase(t);if(e){var n=e.filter(".dx-group-cell").index();if(n>=0&&e.length>n+1)return e.slice(0,n+1)}return e},getTopVisibleItemIndex:function(t){var e=0,n=0,i=0,o=this._scrollTop,r=this._findContentElement(),a=r&&r.offset().top,s=this._dataController.items(),l=this._getTableElement();if(s.length&&l){var u=this._getRowElements(l).filter(":visible");for(e=0;e<s.length;e++){n=i;var c=u.eq(e);if(c.length&&(i=c.offset().top-a)>o){e&&(t||2*o<Math.round(i+n))&&e--;break}}e&&e===s.length&&e--}return e},getTopVisibleRowData:function(){var t=this.getTopVisibleItemIndex(),e=this._dataController.items();if(e[t])return e[t].data},_scrollToElement:function(t,e){var n=this.getScrollable();n&&n.scrollToElement(t,e)},optionChanged:function(t){switch(this.callBase(t),t.name){case"wordWrapEnabled":case"showColumnLines":case"showRowLines":case"rowAlternationEnabled":case"rowTemplate":case"twoWayBindingEnabled":this._invalidate(!0,!0),t.handled=!0;break;case"scrolling":this._rowHeight=null,this._tableElement=null,t.handled=!0;break;case"rtlEnabled":this._rowHeight=null,this._tableElement=null;break;case"loadPanel":this._tableElement=null,this._invalidate(!0,"loadPanel.enabled"!==t.fullName),t.handled=!0;break;case"noDataText":this.renderNoDataText(),t.handled=!0}},dispose:function(){clearTimeout(this._hideLoadingTimeoutID),this._scrollable&&this._scrollable.dispose()},setScrollerSpacing:function(){}}}())}}},function(t,e,n){"use strict";var i=u(n(3)),o=n(17),r=n(4),a=n(5),s=u(n(44)),l=u(n(109));function u(t){return t&&t.__esModule?t:{default:t}}var c={columnHeadersView:"header",rowsView:"content",footerView:"footer",headerPanel:"headerPanel"},d=["columnHeadersView","rowsView","footerView","headerPanel"],h=s.default.ViewController.inherit({init:function(){this.createAction("onContextMenuPreparing")},getContextMenuItems:function(t){if(!t)return!1;var e,n,r,s,l=this,u=(0,i.default)(t.target);return(0,a.each)(d,(function(){var i=l.getView(this);if((e=i&&i.element())&&(e.is(u)||e.find(u).length)){r=u.closest(".dx-row > td, .dx-row > tr"),n=r.parent();var a=i.getRowIndex(n),d=r[0]&&r[0].cellIndex,h=n.data("options"),f={event:t,targetElement:(0,o.getPublicElement)(u),target:c[this],rowIndex:a,row:i._getRows()[a],columnIndex:d,column:h&&h.cells[d].column};if(f.items=i.getContextMenuItems&&i.getContextMenuItems(f),l.executeAction("onContextMenuPreparing",f),l._contextMenuPrepared(f),s=f.items)return!1}})),s},_contextMenuPrepared:r.noop}),f=s.default.View.inherit({_renderCore:function(){var t=this,e=t.element().addClass("dx-context-menu");this.setAria("role","presentation",e),this._createComponent(e,l.default,{onPositioning:function(e){var n=e.event,i=e.component,o=t.getController("contextMenu").getContextMenuItems(n);o?(i.option("items",o),n.stopPropagation()):e.cancel=!0},onItemClick:function(t){t.itemData.onItemClick&&t.itemData.onItemClick(t)},cssClass:t.getWidgetContainerClass(),target:t.component.$element()})}});t.exports={defaultOptions:function(){return{onContextMenuPreparing:null}},controllers:{contextMenu:h},views:{contextMenuView:f}}},function(t,e,n){"use strict";var i=l(n(3)),o=l(n(6)),r=l(n(25)),a=n(5),s=l(n(44));function l(t){return t&&t.__esModule?t:{default:t}}var u=s.default.ViewController.inherit({init:function(){this._columnHeadersView=this.getView("columnHeadersView"),this._rowsView=this.getView("rowsView")},_createErrorRow:function(t,e){var n,s,l=this,u=this._renderErrorMessage(t);return e?(n=(0,i.default)("<tr>").addClass("dx-error-row"),s=(0,i.default)("<div>").addClass("dx-closebutton").addClass(l.addWidgetPrefix("action")),o.default.on(s,r.default.name,l.createAction((function(t){var n,o=t.event,r=(0,i.default)(o.currentTarget).closest(".dx-error-row").index();o.stopPropagation(),(0,a.each)(e,(function(t,e){n=(0,i.default)(e).children("tbody").children("tr").eq(r),l.removeErrorRow(n)})),l.getController("resizing")&&l.getController("resizing").fireContentReadyAction()}))),(0,i.default)("<td>").attr({colSpan:l.getController("columns").getVisibleColumns().length,role:"presentation"}).prepend(s).append(u).appendTo(n),n):u},_renderErrorMessage:function(t){var e=t.url?t.message.replace(t.url,""):t.message||t,n=(0,i.default)("<div>").addClass("dx-error-message").text(e);return t.url&&(0,i.default)("<a>").attr("href",t.url).text(t.url).appendTo(n),n},renderErrorRow:function(t,e,n){var o,r,s=this;if(n)return n.find(".dx-error-message").remove(),o=s._createErrorRow(t),n.prepend(o),o;var l=e>=0||!s._columnHeadersView.isVisible()?s._rowsView:s._columnHeadersView,u=n||l.getTableElements();if((0,a.each)(u,(function(n,a){if(o=s._createErrorRow(t,u),r=r||o,e>=0){var c=l._getRowElements((0,i.default)(a)).eq(e);s.removeErrorRow(c.next()),o.insertAfter(c)}else{var d=(0,i.default)(a).children("tbody"),h=d.children("tr");s._columnHeadersView.isVisible()?(s.removeErrorRow(h.last()),(0,i.default)(a).append(o)):(s.removeErrorRow(h.first()),d.first().prepend(o))}})),!n){var c=s.getController("resizing");c&&c.fireContentReadyAction()}return r},removeErrorRow:function(t){if(!t){var e=this._columnHeadersView&&this._columnHeadersView.element();if(!(t=e&&e.find(".dx-error-row"))||!t.length){var n=this._rowsView.element();t=n&&n.find(".dx-error-row")}}t&&t.hasClass("dx-error-row")&&t.remove()},optionChanged:function(t){switch(t.name){case"errorRowEnabled":t.handled=!0;break;default:this.callBase(t)}}});t.exports={defaultOptions:function(){return{errorRowEnabled:!0}},controllers:{errorHandling:u},extenders:{controllers:{data:{init:function(){var t=this,e=t.getController("errorHandling");t.callBase(),t.dataErrorOccurred.add((function(n,i){t.option("errorRowEnabled")&&e.renderErrorRow(n,void 0,i)})),t.changed.add((function(e){if(!e||"loadError"!==e.changeType){var n=t.getController("errorHandling"),i=t.getController("editing");i&&!i.hasChanges()&&n&&n.removeErrorRow()}}))}}}}}},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(44)),r=g(n(4)),a=g(n(10)),s=n(5),l=g(n(2)),u=n(24),c=g(n(40)),d=g(n(12)),h=n(7),f=g(n(15)),p=g(n(31)),m=g(n(125));function g(t){return t&&t.__esModule?t:{default:t}}var _=["columnsSeparatorView","blockSeparatorView","trackerView","headerPanel","columnHeadersView","rowsView","footerView","columnChooserView","filterPanelView","pagerView","draggingHeaderView","contextMenuView","errorView","headerFilterView","filterBuilderView"],v=function(t){return l.default.isString(t)&&"%"===t.slice(-1)},y=function(t,e){var n=[];if(t&&e&&t.length&&t.length===e.length)for(var i=0;i<t.length;i++)n.push(t[i]>e[i]?t[i]:e[i]);else t&&t.length?n=t:e&&(n=e);return n},b=function(t,e){var n=t._rowsView.contentWidth();return n-t._getTotalWidth(e,n)},w=function(t,e,n,i){return b(t,i.map((function(t,i){return i===e?n:t})))},x=function(t,e){m.default.hiddenFocus(t),c.default.setSelectionRange(t,e)},C=o.default.ViewController.inherit({_initPostRenderHandlers:function(){var t=this,e=t._dataController;t._refreshSizesHandler||(t._refreshSizesHandler=function(n){var i;e.changed.remove(t._refreshSizesHandler);var o=n&&n.changeType,a=n&&n.isDelayed,s=e.items();n&&"refresh"!==o&&"prepend"!==o&&"append"!==o?"update"===o&&n.changeTypes&&(!(s.length>1||"insert"!==n.changeTypes[0])||0===s.length&&"remove"===n.changeTypes[0]||n.needUpdateDimensions?i=t.resize():r.default.deferUpdate((function(){t._rowsView.resize()}))):a||(i=t.resize()),o&&"updateSelection"!==o&&"updateFocusedRow"!==o&&!a&&(0,h.when)(i).done((function(){t._setAriaRowColCount(),t.fireContentReadyAction()}))},t._dataController.changed.add((function(){t._dataController.changed.add(t._refreshSizesHandler)})))},fireContentReadyAction:function(){this.component._fireContentReadyAction()},_setAriaRowColCount:function(){var t=this.component;t.setAria({rowCount:this._dataController.totalItemsCount(),colCount:t.columnCount()},t.$element().children(".dx-gridbase-container"))},_getBestFitWidths:function(){if(!this.option("legacyRendering"))return this._rowsView.getColumnWidths();var t=this._rowsView.getColumnWidths(),e=this._columnHeadersView&&this._columnHeadersView.getColumnWidths(),n=this._footerView&&this._footerView.getColumnWidths(),i=y(t,e);return i=y(i,n)},_setVisibleWidths:function(t,e){var n=this._columnsController;n.beginUpdate(),(0,s.each)(t,(function(t,i){var o=n.getColumnId(i);n.columnOption(o,"visibleWidth",e[t])})),n.endUpdate()},_toggleBestFitModeForView:function(t,e,n){var o=this;if(t&&t.isVisible()){var r=this._rowsView.getTableElements(),a=t.getTableElements();(0,s.each)(r,(function(t,r){var s,l=(0,i.default)(r),u=a.eq(t);u&&u.length&&((s=n?u.children("tbody").appendTo(l):l.children("."+e).appendTo(u)).toggleClass(e,n),s.toggleClass(o.addWidgetPrefix("best-fit"),n))}))}},_toggleBestFitMode:function(t){var e=this.component.$element();if(this.option("legacyRendering"))e.find("."+this.addWidgetPrefix("table")).toggleClass(this.addWidgetPrefix("table-fixed"),!t),e.find("input:not([type='hidden'])").toggleClass("dx-hidden",t),e.find(".dx-group-cell").toggleClass("dx-hidden",t),e.find(".dx-header-row ."+this.addWidgetPrefix("text-content")).css("maxWidth","");else{var n=this._rowsView._getTableElement(),i=this._rowsView.getTableElements().eq(1);if(!n)return;n.css("tableLayout",t?"auto":"fixed"),n.children("colgroup").css("display",t?"none":""),i.toggleClass(this.addWidgetPrefix("table-fixed"),!t),this._toggleBestFitModeForView(this._columnHeadersView,"dx-header",t),this._toggleBestFitModeForView(this._footerView,"dx-footer",t),this._needStretch()&&(n.get(0).style.width=t?"auto":""),p.default.msie&&11===parseInt(p.default.version)&&n.find("."+this.addWidgetPrefix("table-fixed")).each((function(){this.style.width=t?"10px":""}))}},_synchronizeColumns:function(){var t,e,n,i=this,o=i._columnsController,a=o.getVisibleColumns(),d=i.option("columnAutoWidth"),h=i.option("legacyRendering"),m=i._needBestFit(),g=!1,_=!1,v=[];!m&&(0,s.each)(a,(function(t,e){if("auto"===e.width||h&&e.fixed)return m=!0,!1})),(0,s.each)(a,(function(t,e){if(e.minWidth)return g=!0,!1})),i._setVisibleWidths(a,[]),m&&(e=f.default.getActiveElement(),n=c.default.getSelectionRange(e),i._toggleBestFitMode(!0),t=!0),r.default.deferUpdate((function(){(m?(v=i._getBestFitWidths(),(0,s.each)(a,(function(t,e){var n=o.getColumnId(e);o.columnOption(n,"bestFitWidth",v[t],!0)}))):g&&(v=i._getBestFitWidths()),(0,s.each)(a,(function(t){var e=this.width;"auto"!==e&&(l.default.isDefined(e)?v[t]=l.default.isNumeric(e)||function(t){return l.default.isString(t)&&"px"===t.slice(-2)}(e)?parseFloat(e):e:d||(v[t]=void 0))})),t)&&(i._toggleBestFitMode(!1),t=!1,e&&e!==f.default.getActiveElement()&&((0,u.getBoundingRect)(e).bottom<0||(p.default.msie?setTimeout((function(){x(e,n)})):x(e,n))));_=i._correctColumnWidths(v,a),d&&(!function(){var t;(0,s.each)(a,(function(e,n){"groupExpand"===n.type&&(t=v[e])})),(0,s.each)(a,(function(e,n){"groupExpand"===n.type&&t&&(v[e]=t)}))}(),i._needStretch()&&i._processStretch(v,a)),r.default.deferRender((function(){(m||_)&&i._setVisibleWidths(a,v)}))}))},_needBestFit:function(){return this.option("columnAutoWidth")},_needStretch:function(){return this.option("legacyRendering")||this._columnsController.getVisibleColumns().some((function(t){return"auto"===t.width&&!t.command}))},_getAverageColumnsWidth:function(t){return b(this,t)/t.filter((function(t){return void 0===t})).length},_correctColumnWidths:function(t,e){var n,i=!1,o=!1,r=!1,a=this.component.$element(),s=this._hasWidth;for(n=0;n<e.length;n++){var u=n,d=e[u],h="adaptiveHidden"===t[u],f=t[u],p=d.minWidth;if(p)if(void 0===f)f=this._getAverageColumnsWidth(t);else if(v(f))w(this,u,p,t)<0&&(f=-1);p&&this._getRealColumnWidth(f)<p&&!h&&(t[u]=p,r=!0,n=-1),l.default.isDefined(d.width)||(o=!0),v(d.width)&&(i=!0)}if(a&&this._maxWidth&&(delete this._maxWidth,a.css("maxWidth","")),!o&&t.length){var m=this._rowsView.contentWidth(),g=this._rowsView.getScrollbarWidth(),_=this._getTotalWidth(t,m);if(_<m){var y=c.default.getLastResizableColumnIndex(e,t);y>=0&&(t[y]="auto",r=!0,!1!==s||i||(this._maxWidth=_+g+(this.option("showBorders")?2:0),a.css("maxWidth",this._maxWidth)))}}return r},_processStretch:function(t,e){var n=this._rowsView.contentWidth(),i=this._getTotalWidth(t,n),o={length:0};if(t.length){(0,s.each)(e,(function(e){(this.width||"adaptiveHidden"===t[e])&&(o[e]=!0,o.length++)}));var r=n-i,a=Math.floor(r/(t.length-o.length)),l=r-a*(t.length-o.length);if(r>=0)for(var u=0;u<t.length;u++)o[u]||(t[u]+=a,l>0&&(l<1?(t[u]+=l,l=0):(t[u]++,l--)))}},_getRealColumnWidth:function(t,e){return v(t)?(e=e||this._rowsView.contentWidth(),parseFloat(t)*e/100):parseFloat(t)},_getTotalWidth:function(t,e){for(var n=0,i=0;i<t.length;i++){var o=t[i];o&&"adaptiveHidden"!==o&&(n+=this._getRealColumnWidth(o,e))}return n},updateSize:function(t){var e,n,i,o=this.addWidgetPrefix("important-margin");void 0===this._hasHeight&&t&&t.is(":visible")&&t.width()&&((e=t.children("."+this.getWidgetContainerClass())).length&&e.detach(),this._hasHeight=!!((i=t).get(0).clientHeight-parseFloat(i.css("paddingTop"))-parseFloat(i.css("paddingBottom"))),n=t.width(),t.addClass(o),this._hasWidth=t.width()===n,t.removeClass(o),e.length&&e.appendTo(t))},publicMethods:function(){return["resize","updateDimensions"]},resize:function(){return!this.component._requireResize&&this.updateDimensions()},updateDimensions:function(t){var e=this;if(e._initPostRenderHandlers(),e._checkSize(t)){var n=e._resizeDeferred,i=e._resizeDeferred=new h.Deferred;return(0,h.when)(n).always((function(){r.default.deferRender((function(){e._dataController.isLoaded()&&e._synchronizeColumns(),e._resetGroupElementHeight(),r.default.deferUpdate((function(){r.default.deferRender((function(){r.default.deferUpdate((function(){e._updateDimensionsCore()}))}))}))})).done(i.resolve).fail(i.reject)})),i.promise()}},_resetGroupElementHeight:function(){var t=this.component.$element().children().get(0),e=this._rowsView.getScrollable();!t||!t.style.height||e&&e.scrollTop()||(t.style.height="")},_checkSize:function(t){var e=this.component.$element();return!(t&&(this._lastWidth===e.width()&&this._lastHeight===e.height()||!e.is(":visible")))},_setScrollerSpacingCore:function(t){var e=this,n=t?e._rowsView.getScrollbarWidth():0,i=e._rowsView.getScrollbarWidth(!0);r.default.deferRender((function(){e._columnHeadersView&&e._columnHeadersView.setScrollerSpacing(n),e._footerView&&e._footerView.setScrollerSpacing(n),e._rowsView.setScrollerSpacing(n,i)}))},_setScrollerSpacing:function(t){var e=this;!0===this.option("scrolling.useNative")?r.default.deferRender((function(){r.default.deferUpdate((function(){e._setScrollerSpacingCore(t)}))})):this._setScrollerSpacingCore(t)},_updateDimensionsCore:function(){var t,e=this,n=e._dataController,o=e._rowsView,a=e.component.$element(),l=a.children().get(0),u=a&&(a.get(0).clientHeight||a.height()),c=parseInt(a.css("maxHeight")),d=c&&u>=c,h=e.option("height")||a.get(0).style.height,f=e.getController("editorFactory"),p=d&&l.scrollHeight===l.offsetHeight;e.updateSize(a);var m=e._hasHeight||d;h&&e._hasHeight^"auto"!==h&&(t=(0,i.default)("<div>").height(h).appendTo(a),e._hasHeight=!!t.height(),t.remove()),r.default.deferRender((function(){o.height(null,m),d&&!p&&(0,i.default)(l).css("height",c),n.isLoaded()?r.default.deferUpdate((function(){e._updateLastSizes(a),e._setScrollerSpacing(m),(0,s.each)(_,(function(t,n){var i=e.getView(n);i&&i.resize()})),f&&f.resize()})):o.setLoading(n.isLoading())}))},_updateLastSizes:function(t){this._lastWidth=t.width(),this._lastHeight=t.height()},optionChanged:function(t){switch(t.name){case"width":case"height":this.component._renderDimensions(),this.resize();case"legacyRendering":case"renderAsync":return void(t.handled=!0);default:this.callBase(t)}},init:function(){this._dataController=this.getController("data"),this._columnsController=this.getController("columns"),this._columnHeadersView=this.getView("columnHeadersView"),this._footerView=this.getView("footerView"),this._rowsView=this.getView("rowsView")}}),S=o.default.ViewController.inherit({_scrollChangedHandler:function(t,e,n){for(var i=0;i<t.length;i++)t[i]&&t[i].name!==n&&t[i].scrollTo({left:e.left,top:e.top})},init:function(){for(var t=[this.getView("columnHeadersView"),this.getView("footerView"),this.getView("rowsView")],e=0;e<t.length;e++){var n=t[e];n&&n.scrollChanged.add(this._scrollChangedHandler.bind(this,t))}}}),k=o.default.View.inherit({_endUpdateCore:function(){this.component._requireResize&&(this.component._requireResize=!1,this._resizingController.resize())},_getWidgetAriaLabel:function(){return"dxDataGrid-ariaDataGrid"},init:function(){this._resizingController=this.getController("resizing"),this._dataController=this.getController("data")},getView:function(t){return this.component._views[t]},element:function(){return this._groupElement},optionChanged:function(t){l.default.isDefined(this._groupElement)&&"showBorders"===t.name?(this._groupElement.toggleClass(this.addWidgetPrefix("borders"),!!t.value),t.handled=!0):this.callBase(t)},_renderViews:function(t){var e=this;(0,s.each)(_,(function(n,i){var o=e.getView(i);o&&o.render(t)}))},_getTableRoleName:function(){return"grid"},render:function(t){var e=!this._groupElement,n=this._groupElement||(0,i.default)("<div>").addClass(this.getWidgetContainerClass());n.addClass("dx-gridbase-container"),n.toggleClass(this.addWidgetPrefix("borders"),!!this.option("showBorders")),this.setAria("role","presentation",t),this.component.setAria({role:this._getTableRoleName(),label:d.default.format(this._getWidgetAriaLabel())},n),this._rootElement=t||this._rootElement,e&&(this._groupElement=n,a.default.hasWindow()&&this.getController("resizing").updateSize(t),n.appendTo(t)),this._renderViews(n)},update:function(){var t=this._rootElement,e=this._groupElement,n=this.getController("resizing");t&&e&&(n.resize(),this._dataController.isLoaded()&&this._resizingController.fireContentReadyAction())}});t.exports={defaultOptions:function(){return{showBorders:!1,renderAsync:!1,legacyRendering:!1}},controllers:{resizing:C,synchronizeScrolling:S},views:{gridView:k}}},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(167)),r=u(n(198)),a=n(4),s=n(2),l=n(17);function u(t){return t&&t.__esModule?t:{default:t}}n(291);var c=r.default.ColumnsView.inherit({_getToolbarItems:function(){return[]},_getButtonContainer:function(){return(0,i.default)("<div>").addClass(this.addWidgetPrefix("toolbar-button"))},_getToolbarButtonClass:function(t){var e=t?" "+t:"";return this.addWidgetPrefix("toolbar-button")+e},_getToolbarOptions:function(){var t={toolbarOptions:{items:this._getToolbarItems(),onItemRendered:function(t){var e=t.itemData.onItemRendered;e&&e(t)}}};if(this.executeAction("onToolbarPreparing",t),t.toolbarOptions&&!(0,s.isDefined)(t.toolbarOptions.visible)){var e=t.toolbarOptions.items;t.toolbarOptions.visible=!(!e||!e.length)}return t.toolbarOptions},_renderCore:function(){this._toolbar?this._toolbar.option(this._toolbarOptions):(this.element().addClass(this.addWidgetPrefix("header-panel")),this._toolbar=this._createComponent((0,i.default)("<div>").appendTo(this.element()),o.default,this._toolbarOptions))},_columnOptionChanged:a.noop,_handleDataChanged:function(){this._requireReady&&this.render()},init:function(){this.callBase(),this.createAction("onToolbarPreparing",{excludeValidators:["disabled","readOnly"]})},render:function(){this._toolbarOptions=this._getToolbarOptions(),this.callBase.apply(this,arguments)},setToolbarItemDisabled:function(t,e){var n=this._toolbar;if(n){var i=n.option("items")||[],o=i.indexOf(i.filter((function(e){return e.name===t}))[0]);if(o>=0){var r="items["+o+"]";n.option(r+".options")?n.option(r+".options.disabled",e):n.option(r+".disabled",e)}}},updateToolbarDimensions:function(){this._toolbar&&(0,l.triggerResizeEvent)(this.getHeaderPanel())},getHeaderPanel:function(){return this.element()},getHeight:function(){return this.getElementHeight()},optionChanged:function(t){"onToolbarPreparing"===t.name&&(this._invalidate(),t.handled=!0),this.callBase(t)},isVisible:function(){return this._toolbarOptions&&this._toolbarOptions.visible},allowDragging:a.noop});t.exports={defaultOptions:function(){return{}},views:{headerPanel:c},extenders:{controllers:{resizing:{_updateDimensionsCore:function(){this.callBase.apply(this,arguments),this.getView("headerPanel").updateToolbarDimensions()}}}}}},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(5).each,a=n(38),s=n(29).compileGetter,l=n(21),u=n(42),c=l.abstract,d=l.inherit({ctor:function(t){this._toolbar=t},render:function(){this._renderMenuButton(),this._renderWidget()},_widgetOptions:function(){var t=this._toolbar._createActionByOption("onItemClick");return{itemTemplate:this._getMenuItemTemplate.bind(this),onItemClick:function(e){this._toggleMenu(!1,!0),t(e)}.bind(this)}},_getMenuItemTemplate:function(){return this._toolbar._getTemplateByOption("menuItemTemplate")},_renderWidget:function(){var t=i("<div>").appendTo(this._menuContainer());this._menu=this._toolbar._createComponent(t,this._menuWidgetClass(),this._widgetOptions()),this.renderMenuItems()},_menuContainer:c,_menuWidgetClass:c,_hasVisibleMenuItems:function(t){var e=t||this._toolbar.option("items"),n=!1,i=s("visible"),o=s("locateInMenu"),l=!1;return r(e,(function(t,e){var r=i(e,{functionsAsIs:!0}),a=o(e,{functionsAsIs:!0});"menu"===e.location&&(l=!0),!1===r||"auto"!==a&&"always"!==a&&"menu"!==e.location||(n=!0)})),l&&a.log("W0001","dxToolbar - 'location' item field","menu","16.1","Use 'locateInMenu' item field instead."),n},_getMenuItems:function(){return this._toolbar._getMenuItems()},_updateMenuVisibility:o,_renderMenuButton:function(){var t=this._menuButtonOptions();this._renderMenuButtonContainer(),this._$button=i("<div>").appendTo(this._$menuButtonContainer).addClass("dx-toolbar-menu-button"),this._toolbar._createComponent(this._$button,u,t)},_menuButtonOptions:function(){return{onClick:this._menuButtonClickHandler.bind(this)}},_menuButtonClickHandler:function(){this._toggleMenu(!this._menuShown,!0)},_renderMenuButtonContainer:function(){var t=this._toolbar._$afterSection;this._$menuButtonContainer=i("<div>").appendTo(t).addClass(this._toolbar._buttonClass()).addClass("dx-toolbar-menu-container")},renderMenuItems:function(){this._menu&&this._menu.option("items",this._getMenuItems())},toggleMenuVisibility:function(t,e){this._menu&&this._toggleMenu(t,e)},_toggleMenu:function(t){this._menuShown=t},getMenuWidget:function(){return this._menu},widgetOption:function(t,e){this._menu&&this._menu.option(t,e)},handleToolbarVisibilityChange:o});t.exports=d},function(t,e,n){"use strict";var i,o=n(4),r=n(2),a=n(0),s=n(432),l=(i=s)&&i.__esModule?i:{default:i},u=n(7);var c=function(t){var e=t.getController("columns"),n=t.getController("selection"),i=t.getController("export"),o=t.getController("data");e&&e.columnsChanged.add((function(){t.updateState({columns:e.getUserState()})})),n&&n.selectionChanged.add((function(e){t.updateState({selectedRowKeys:e.selectedRowKeys,selectionFilter:e.selectionFilter})})),o&&(t._initialPageSize=t.option("paging.pageSize"),t._initialFilterValue=t.option("filterValue"),o.changed.add((function(){var e=function(t){var e=t.getView("pagerView"),n=t.getController("data"),i={allowedPageSizes:e?e.getPageSizes():void 0,filterPanel:{filterEnabled:t.option("filterPanel.filterEnabled")},filterValue:t.option("filterValue"),focusedRowKey:t.option("focusedRowEnabled")?t.option("focusedRowKey"):void 0};return(0,a.extend)(i,n.getUserState())}(t);t.updateState(e)}))),i&&i.selectionOnlyChanged.add((function(){t.updateState({exportSelectionOnly:i.selectionOnly()})}))};t.exports={defaultOptions:function(){return{stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3}}},controllers:{stateStoring:l.default.StateStoringController},extenders:{views:{rowsView:{init:function(){var t=this,e=t.getController("data");t.callBase(),e.stateLoaded.add((function(){if(e.isLoaded()&&!e.getDataSource()){t.setLoading(!1),t.renderNoDataText();var n=t.component.getView("columnHeadersView");n&&n.render(),t.component._fireContentReadyAction()}}))}}},controllers:{stateStoring:{init:function(){this.callBase.apply(this,arguments),c(this)},isLoading:function(){return this.callBase()||this.getController("data").isStateLoading()},state:function(t){var e=this.callBase.apply(this,arguments);return void 0!==t&&this.applyState((0,a.extend)({},t)),e},updateState:function(t){if(this.isEnabled()){var e=this.state(),n=(0,a.extend)({},e,t),i=(0,o.getKeyHash)(e),r=(0,o.getKeyHash)(n);(0,o.equalByValue)(i,r)||((0,a.extend)(this._state,t),this.save())}else(0,a.extend)(this._state,t)},applyState:function(t){var e=t.allowedPageSizes,n=t.searchText,i=t.selectedRowKeys,o=t.selectionFilter,a=this.getController("export"),s=this.getController("columns"),l=this.getController("data"),u=this.option("scrolling.mode"),c="virtual"===u||"infinite"===u,d=!0===this.option("pager.visible")&&this.option("pager.showPageSizeSelector");this.component.beginUpdate(),s&&s.setUserState(t.columns),a&&a.selectionOnly(t.exportSelectionOnly),i&&this.option("selectedRowKeys",i),this.option("selectionFilter",o),e&&"auto"===this.option("pager.allowedPageSizes")&&(this.option("pager").allowedPageSizes=e),this.option("focusedRowEnabled")&&this.option("focusedRowKey",t.focusedRowKey),this.component.endUpdate(),n&&this.option("searchPanel.text",n),this.option("filterValue",function(t,e){var n=t.getController("filterSync"),i=t.getController("columns"),o=e.columns||void 0!==e.filterValue;return n?o?e.filterValue||n.getFilterValueFromColumns(e.columns):t._initialFilterValue||n.getFilterValueFromColumns(i.getColumns()):null}(this,t)),this.option("filterPanel.filterEnabled",!t.filterPanel||t.filterPanel.filterEnabled),this.option("paging.pageSize",c&&!d||!(0,r.isDefined)(t.pageSize)?this._initialPageSize:t.pageSize),this.option("paging.pageIndex",t.pageIndex||0),l&&l.reset()}},columns:{getVisibleColumns:function(){var t=this.callBase.apply(this,arguments),e=this.getController("stateStoring");return e.isEnabled()&&!e.isLoaded()?[]:t}},data:{callbackNames:function(){return this.callBase().concat(["stateLoaded"])},_refreshDataSource:function(){var t=this,e=this.callBase,n=this.getController("stateStoring");if(n.isEnabled()&&!n.isLoaded()){clearTimeout(this._restoreStateTimeoutID);var i=new u.Deferred;return this._restoreStateTimeoutID=setTimeout((function(){n.load().always((function(){t._restoreStateTimeoutID=null})).done((function(){e.call(t),t.stateLoaded.fire(),i.resolve()})).fail((function(e){t.stateLoaded.fire(),t._handleLoadError(e||"Unknown error"),i.reject()}))})),i.promise()}this.isStateLoading()||e.call(this)},isLoading:function(){var t=this.getController("stateStoring");return this.callBase()||t.isLoading()},isStateLoading:function(){return(0,r.isDefined)(this._restoreStateTimeoutID)},isLoaded:function(){return this.callBase()&&!this.isStateLoading()},dispose:function(){clearTimeout(this._restoreStateTimeoutID),this.callBase()}},selection:{_fireSelectionChanged:function(t){var e=this.getController("stateStoring"),n=this.option("selection.deferred");e.isLoading()&&n||this.callBase.apply(this,arguments)}}}}}},function(t,e,n){"use strict";var i=f(n(6)),o=n(10),r=f(n(44)),a=f(n(23)),s=f(n(31)),l=n(356),u=n(0),c=n(5),d=n(2),h=n(7);function f(t){return t&&t.__esModule?t:{default:t}}var p=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/,m=function t(e){e&&(0,c.each)(e,(function(n,i){if((0,d.isPlainObject)(i)||Array.isArray(i))t(i);else if("string"===typeof i){var o=p.exec(i);o&&(e[n]=new Date(Date.UTC(+o[1],+o[2]-1,+o[3],+o[4],+o[5],+o[6])))}}))};e.StateStoringController=r.default.ViewController.inherit(function(){var t=function(t){var e="sessionStorage"===t.type?(0,l.sessionStorage)():(0,o.getWindow)().localStorage;if(!e)throw"file:"===(0,o.getWindow)().location.protocol&&s.default.msie?new Error("E1038"):new Error("E1007");return e},e=function(t){return(0,d.isDefined)(t.storageKey)?t.storageKey:"storage"};return{_loadState:function(){var n=this.option("stateStoring");if("custom"===n.type)return n.customLoad&&n.customLoad();try{return JSON.parse(t(n).getItem(e(n)))}catch(i){a.default.log(i.message)}},_saveState:function(n){var i=this.option("stateStoring");if("custom"!==i.type)try{t(i).setItem(e(i),JSON.stringify(n))}catch(o){a.default.log(o.message)}else i.customSave&&i.customSave(n)},publicMethods:function(){return["state"]},isEnabled:function(){return this.option("stateStoring.enabled")},init:function(){var t=this;return t._state={},t._isLoaded=!1,t._isLoading=!1,t._windowUnloadHandler=function(){void 0!==t._savingTimeoutID&&t._saveState(t.state())},i.default.on((0,o.getWindow)(),"unload",t._windowUnloadHandler),t},isLoaded:function(){return this._isLoaded},isLoading:function(){return this._isLoading},load:function(){var t=this;this._isLoading=!0;var e=(0,h.fromPromise)(this._loadState());return e.always((function(){t._isLoaded=!0,t._isLoading=!1})).done((function(e){t.state(e)})),e},state:function(t){var e=this;if(!arguments.length)return(0,u.extend)(!0,{},e._state);e._state=(0,u.extend)({},t),m(e._state)},save:function(){var t=this;clearTimeout(t._savingTimeoutID),t._savingTimeoutID=setTimeout((function(){t._saveState(t.state()),t._savingTimeoutID=void 0}),t.option("stateStoring.savingTimeout"))},optionChanged:function(t){switch(t.name){case"stateStoring":this.isEnabled()&&!this.isLoading()&&this.load(),t.handled=!0;break;default:this.callBase(t)}},dispose:function(){clearTimeout(this._savingTimeoutID),i.default.off((0,o.getWindow)(),"unload",this._windowUnloadHandler)}}}())},function(t,e,n){"use strict";var i=_(n(3)),o=_(n(6)),r=_(n(27)),a=n(40),s=n(2),l=n(5),u=n(0),c=_(n(58)),d=_(n(25)),h=_(n(12)),f=n(11),p=_(n(135)),m=_(n(258)),g=n(7);function _(t){return t&&t.__esModule?t:{default:t}}var v="selection.showCheckBoxesMode",y=function(t,e){var n=t.getController("selection"),o=t.getView("rowsView"),r=(0,i.default)(e.target).closest(".dx-data-row"),a=o.getRowIndex(r);a<0||("onLongTap"===t.option(v)?n.isSelectionWithCheckboxes()?n.stopSelectionWithCheckboxes():n.startSelectionWithCheckboxes():("onClick"===t.option(v)&&n.startSelectionWithCheckboxes(),"always"!==t.option(v)&&n.changeItemSelection(a,{control:!0})))};e.SelectionController=r.default.Controller.inherit(function(){var t=function(t,e){var n=e.component,o=n.getView("rowsView");n.option("renderAsync")&&!n.option("selection.deferred")&&(e.value=n.isRowSelected(e.row.key)),o.renderSelectCheckBoxContainer((0,i.default)(t),e)},e=function(t,e){var n=e.column,o=(0,i.default)(t),r=e.component.getView("columnHeadersView");o.addClass("dx-editor-cell"),r._renderSelectAllCheckBox(o,n),r._attachSelectAllCheckBoxClickEvent(o)};return{init:function(){this._dataController=this.getController("data"),this._selectionMode=this.option("selection.mode"),this._isSelectionWithCheckboxes=!1,this._selection=this._createSelection(),this._updateSelectColumn(),this.createAction("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})},_getSelectionConfig:function(){var t=this._dataController,e=this.option("selection")||{};return{selectedKeys:this.option("selectedRowKeys"),mode:this._selectionMode,deferred:e.deferred,maxFilterLengthInRequest:e.maxFilterLengthInRequest,selectionFilter:this.option("selectionFilter"),key:function(){return t&&t.key()},keyOf:function(e){return t&&t.keyOf(e)},dataFields:function(){return t.dataSource()&&t.dataSource().select()},load:function(e){return t.dataSource()&&t.dataSource().load(e)||(new g.Deferred).resolve([])},plainItems:function(){return t.items(!0)},isItemSelected:function(t){return t.selected},isSelectableItem:function(t){return t&&"data"===t.rowType&&!t.isNewRow},getItemData:function(t){return t&&(t.oldData||t.data||t)},filter:function(){return t.getCombinedFilter()},totalCount:function(){return t.totalCount()},onSelectionChanged:this._updateSelectedItems.bind(this)}},_updateSelectColumn:function(){var n=this.getController("columns"),i=this.isSelectColumnVisible();n.addCommandColumn({type:"selection",command:"select",visible:i,visibleIndex:-1,dataType:"boolean",alignment:"center",cssClass:"dx-command-select",width:"auto",cellTemplate:t,headerCellTemplate:e}),n.columnOption("command:select","visible",i)},_createSelection:function(){var t=this._getSelectionConfig();return new m.default(t)},_fireSelectionChanged:function(t){t&&this.executeAction("onSelectionChanged",t);var e=this.option("selection.deferred")?{selectionFilter:this.option("selectionFilter")}:{selectedRowKeys:this.option("selectedRowKeys")};this.selectionChanged.fire(e)},_updateCheckboxesState:function(t){var e=t.isDeferredMode,n=t.selectionFilter,i=t.selectedItemKeys,o=t.removedItemKeys;"onClick"===this.option(v)&&((e?n&&function(t,e){var n=0,i=t._dataController.store(),o=i&&i.key(),r=Array.isArray(o);if(!e.length)return!1;if(r&&Array.isArray(e[0])&&"and"===e[1]){for(var a=0;a<e.length;a++)if(Array.isArray(e[a])){if(e[a][0]!==o[n]||"="!==e[a][1])return!0;n++}return!1}return o!==e[0]}(this,n):i.length>1)?this.startSelectionWithCheckboxes():(e?n&&!n.length:0===i.length&&o.length)&&this.stopSelectionWithCheckboxes())},_updateSelectedItems:function(t){var e,n=this.option("selection.deferred"),i=this._selection.selectionFilter(),o=this._dataController,r=o.items();if(r){var a=this.isSelectionWithCheckboxes(),s=this.getChangedItemIndexes(r);this._updateCheckboxesState({selectedItemKeys:t.selectedItemKeys,removedItemKeys:t.removedItemKeys,selectionFilter:i,isDeferredMode:n}),(s.length||a!==this.isSelectionWithCheckboxes())&&o.updateItems({changeType:"updateSelection",itemIndexes:s}),n?(this.option("selectionFilter",i),e={}):(t.addedItemKeys.length||t.removedItemKeys.length)&&(this._selectedItemsInternalChange=!0,this.option("selectedRowKeys",t.selectedItemKeys.slice(0)),this._selectedItemsInternalChange=!1,e={selectedRowsData:t.selectedItems.slice(0),selectedRowKeys:t.selectedItemKeys.slice(0),currentSelectedRowKeys:t.addedItemKeys.slice(0),currentDeselectedRowKeys:t.removedItemKeys.slice(0)}),this._fireSelectionChanged(e)}},getChangedItemIndexes:function(t){for(var e=[],n=this.option("selection.deferred"),i=0,o=t.length;i<o;i++){var r=t[i],a=this.isRowSelected(n?r.data:r.key);this._selection.isDataItem(r)&&r.isSelected!==a&&e.push(i)}return e},callbackNames:function(){return["selectionChanged"]},optionChanged:function(t){var e=this;switch(e.callBase(t),t.name){case"selection":var n=e._selectionMode;e.init();var i=e._selectionMode,o=e.option("selectedRowKeys");n!==i&&("single"===i?o.length>1&&(o=[o[0]]):"multiple"!==i&&(o=[])),e.selectRows(o).always((function(){e._fireSelectionChanged()})),e.getController("columns").updateColumns(),t.handled=!0;break;case"selectionFilter":this._selection.selectionFilter(t.value),t.handled=!0;break;case"selectedRowKeys":var r=t.value||[];!Array.isArray(r)||e._selectedItemsInternalChange||!e.component.getDataSource()&&r.length||e.selectRows(r),t.handled=!0}},publicMethods:function(){return["selectRows","deselectRows","selectRowsByIndexes","getSelectedRowKeys","getSelectedRowsData","clearSelection","selectAll","deselectAll","startSelectionWithCheckboxes","stopSelectionWithCheckboxes","isRowSelected"]},isRowSelected:function(t){return this._selection.isItemSelected(t)},isSelectColumnVisible:function(){return"multiple"===this.option("selection.mode")&&("always"===this.option(v)||"onClick"===this.option(v)||this._isSelectionWithCheckboxes)},_isOnePageSelectAll:function(){return"page"===this.option("selection.selectAllMode")},isSelectAll:function(){return this._selection.getSelectAllState(this._isOnePageSelectAll())},selectAll:function(){return"onClick"===this.option(v)&&this.startSelectionWithCheckboxes(),this._selection.selectAll(this._isOnePageSelectAll())},deselectAll:function(){return this._selection.deselectAll(this._isOnePageSelectAll())},clearSelection:function(){return this.selectedItemKeys([])},refresh:function(){var t=this.option("selectedRowKeys")||[];return!this.option("selection.deferred")&&t.length?this.selectedItemKeys(t):(new g.Deferred).resolve().promise()},selectedItemKeys:function(t,e,n,i){return this._selection.selectedItemKeys(t,e,n,i)},getSelectedRowKeys:function(){return this._selection.getSelectedItemKeys()},selectRows:function(t,e){return this.selectedItemKeys(t,e)},deselectRows:function(t){return this.selectedItemKeys(t,!0,!0)},selectRowsByIndexes:function(t){var e=this._dataController.items(),n=[];return Array.isArray(t)||(t=Array.prototype.slice.call(arguments,0)),(0,l.each)(t,(function(){var t=e[this];t&&"data"===t.rowType&&n.push(t.key)})),this.selectRows(n)},getSelectedRowsData:function(){return this._selection.getSelectedItems()},changeItemSelection:function(t,e){return e=e||{},this.isSelectionWithCheckboxes()&&(e.control=!0),this._selection.changeItemSelection(this._dataController.getRowIndexDelta()+t,e)},focusedItemIndex:function(t){if(!(0,s.isDefined)(t))return this._selection._focusedItemIndex;this._selection._focusedItemIndex=t},isSelectionWithCheckboxes:function(){return"multiple"===this.option("selection.mode")&&("always"===this.option(v)||this._isSelectionWithCheckboxes)},startSelectionWithCheckboxes:function(){return"multiple"===this.option("selection.mode")&&!this.isSelectionWithCheckboxes()&&(this._isSelectionWithCheckboxes=!0,this._updateSelectColumn(),!0)},stopSelectionWithCheckboxes:function(){return!!this._isSelectionWithCheckboxes&&(this._isSelectionWithCheckboxes=!1,this._updateSelectColumn(),!0)}}}()),t.exports={defaultOptions:function(){return{selection:{mode:"none",showCheckBoxesMode:"onClick",allowSelectAll:!0,selectAllMode:"allPages",maxFilterLengthInRequest:1500,deferred:!1},selectionFilter:[],selectedRowKeys:[]}},controllers:{selection:e.SelectionController},extenders:{controllers:{data:{init:function(){var t=this.getController("selection"),e=this.option("selection.deferred");this.callBase.apply(this,arguments),e&&t._updateCheckboxesState({isDeferredMode:!0,selectionFilter:this.option("selectionFilter")})},_loadDataSource:function(){var t=this;return t.callBase().done((function(){t.getController("selection").refresh()}))},_processDataItem:function(t,e){var n=this,i=n.getController("selection"),o=i.isSelectColumnVisible(),r=e.isDeferredSelection=void 0===e.isDeferredSelection?this.option("selection.deferred"):e.isDeferredSelection,a=this.callBase.apply(this,arguments);if(a.isSelected=i.isRowSelected(r?a.data:a.key),o&&a.values)for(var s=0;s<e.visibleColumns.length;s++)if("select"===e.visibleColumns[s].command){a.values[s]=a.isSelected;break}return a},refresh:function(t){var e=this,n=new g.Deferred;return this.callBase.apply(this,arguments).done((function(){!t||t.selection?e.getController("selection").refresh().done(n.resolve).fail(n.reject):n.resolve()})).fail(n.reject),n.promise()},_handleDataChanged:function(t){this.callBase.apply(this,arguments),t&&"refresh"!==t.changeType||this._repaintChangesOnly||this.getController("selection").focusedItemIndex(-1)},_applyChange:function(t){var e=this;if(!t||"updateSelection"!==t.changeType)return this.callBase.apply(this,arguments);t.items.forEach((function(t,n){var i=e._items[n];i&&(i.isSelected=t.isSelected,i.values=t.values)}))},_endUpdateCore:function(){var t=this._changes,e=t.length>1&&t.every((function(t){return"updateSelection"===t.changeType}));if(e){var n=t.map((function(t){return t.itemIndexes||[]})).reduce((function(t,e){return t.concat(e)}));this._changes=[{changeType:"updateSelection",itemIndexes:n}]}this.callBase.apply(this,arguments)},push:function(t){this.callBase.apply(this,arguments);var e=t.filter((function(t){return"remove"===t.type})).map((function(t){return t.key}));e.length&&this.getController("selection").deselectRows(e)}},contextMenu:{_contextMenuPrepared:function(t){var e=t.event;e.originalEvent&&"dxhold"!==e.originalEvent.type||t.items&&t.items.length>0||y(this,e)}}},views:{columnHeadersView:{init:function(){this.callBase(),this.getController("selection").selectionChanged.add(this._updateSelectAllValue.bind(this))},_updateSelectAllValue:function(){var t=this.element(),e=t&&t.find(".dx-select-checkbox");t&&e.length&&"multiple"===this.option("selection.mode")&&e.dxCheckBox("instance").option("value",this.getController("selection").isSelectAll())},_handleDataChanged:function(t){this.callBase(t),t&&"refresh"!==t.changeType||this._updateSelectAllValue()},_renderSelectAllCheckBox:function(t,e){var n=this,o=n.getController("selection"),r=(0,i.default)("<div>").appendTo(t).addClass("dx-select-checkbox");return n.setAria("label",h.default.format("dxDataGrid-ariaSelectAll"),t),n.getController("editorFactory").createEditor(r,(0,u.extend)({},e,{parentType:"headerRow",dataType:"boolean",value:o.isSelectAll(),editorOptions:{visible:n.option("selection.allowSelectAll")||!1!==o.isSelectAll()},tabIndex:n.option("useLegacyKeyboardNavigation")?-1:n.option("tabIndex")||0,setValue:function(t,e){var i=n.option("selection.allowSelectAll");e.component.option("visible",i||!1!==e.component.option("value")),e.event&&o.isSelectAll()!==t&&(e.value&&!i?e.component.option("value",!1):e.value?o.selectAll():o.deselectAll(),e.event.preventDefault())}})),r},_attachSelectAllCheckBoxClickEvent:function(t){o.default.on(t,d.default.name,this.createAction((function(t){var e=t.event;(0,i.default)(e.target).closest(".dx-select-checkbox").length||o.default.trigger((0,i.default)(e.currentTarget).children(".dx-select-checkbox"),d.default.name),e.preventDefault()})))}},rowsView:{renderSelectCheckBoxContainer:function(t,e){"data"!==e.rowType||e.row.isNewRow?(0,a.setEmptyText)(t):(t.addClass("dx-editor-cell"),this._attachCheckBoxClickEvent(t),this.setAria("label",h.default.format("dxDataGrid-ariaSelectRow"),t),this._renderSelectCheckBox(t,e))},_renderSelectCheckBox:function(t,e){var n=(0,i.default)("<div>").addClass("dx-select-checkbox").appendTo(t);return this.getController("editorFactory").createEditor(n,(0,u.extend)({},e.column,{parentType:"dataRow",dataType:"boolean",lookup:null,value:e.value,setValue:function(e,n){n&&n.event&&"keydown"===n.event.type&&o.default.trigger(t,d.default.name,n)},row:e.row})),n},_attachCheckBoxClickEvent:function(t){o.default.on(t,d.default.name,this.createAction((function(t){var e=this.getController("selection"),n=t.event,o=this.getRowIndex((0,i.default)(n.currentTarget).closest(".dx-row"));o>=0&&(e.startSelectionWithCheckboxes(),e.changeItemSelection(o,{shift:n.shiftKey}),(0,i.default)(n.target).closest(".dx-select-checkbox").length&&this.getController("data").updateItems({changeType:"updateSelection",itemIndexes:[o]}))})))},_update:function(t){var e=this,n=e.getTableElements();"updateSelection"===t.changeType?n.length>0&&((0,l.each)(n,(function(n,o){(0,l.each)(t.itemIndexes||[],(function(n,r){var a;if(t.items[r]&&(a=e._getRowElements((0,i.default)(o)).eq(r)).length){var s=t.items[r].isSelected;a.toggleClass("dx-selection",void 0!==s&&s).find(".dx-select-checkbox").dxCheckBox("option","value",s),e.setAria("selected",s,a)}}))})),e._updateCheckboxesClass()):e.callBase(t)},_createTable:function(){var t=this,e=t.option("selection.mode"),n=t.callBase.apply(t,arguments);return"none"!==e&&("onLongTap"!==t.option(v)&&c.default.touch||o.default.on(n,(0,f.addNamespace)(p.default.name,"dxDataGridRowsView"),".dx-data-row",t.createAction((function(e){y(t.component,e.event),e.event.stopPropagation()}))),o.default.on(n,"mousedown selectstart",t.createAction((function(t){var e=t.event;e.shiftKey&&e.preventDefault()})))),n},_createRow:function(t){var e=this.callBase(t);if(t){var n=!!t.isSelected;n&&e.addClass("dx-selection"),this.setAria("selected",n,e)}return e},_rowClick:function(t){var e=t.event,n=(0,i.default)(e.target).closest(".dx-selection-disabled").length;this.isClickableElement((0,i.default)(e.target))||(n||"multiple"===this.option("selection.mode")&&"always"===this.option(v)||this.getController("selection").changeItemSelection(t.rowIndex,{control:e.ctrlKey||e.metaKey,shift:e.shiftKey})&&(e.preventDefault(),t.handled=!0),this.callBase(t))},isClickableElement:function(t){return!!t.closest(".dx-command-select").length},_renderCore:function(t){this.callBase(t),this._updateCheckboxesClass()},_updateCheckboxesClass:function(){var t=this.getTableElements(),e=this.getController("selection"),n=e.isSelectColumnVisible()&&!e.isSelectionWithCheckboxes();(0,l.each)(t,(function(t,e){(0,i.default)(e).toggleClass("dx-select-checkboxes-hidden",n)}))}}}}}},function(t,e,n){"use strict";var i=g(n(3)),o=n(4),r=g(n(44)),a=g(n(198)),s=g(n(12)),l=g(n(36)),u=g(n(42)),c=g(n(168)),d=g(n(18)),h=g(n(48)),f=n(2),p=n(0),m=n(5);function g(t){return t&&t.__esModule?t:{default:t}}var _=function(t,e){var n=[],i="select"===t.option("columnChooser.mode");return e.length&&(0,m.each)(e,(function(t,e){var o={text:e.caption,cssClass:e.cssClass,allowHiding:e.allowHiding,expanded:!0,id:e.index,disabled:!1,disableCheckBox:!1===e.allowHiding,parentId:(0,f.isDefined)(e.ownerBand)?e.ownerBand:null};i&&(o.selected=e.visible),n.push(o)})),n},v=r.default.ViewController.inherit({renderShowColumnChooserButton:function(t){var e,n=this,o=n.addWidgetPrefix("column-chooser-button"),r=n.option("columnChooser.enabled"),a=t.find("."+o);r?a.length?a.show():(e=(0,i.default)("<div>").addClass(o).appendTo(t),n._createComponent(e,u.default,{icon:"column-chooser",onClick:function(){n.getView("columnChooserView").showColumnChooser()},hint:n.option("columnChooser.title"),integrationOptions:{}})):a.hide()},getPosition:function(){var t=this.getView("rowsView");return{my:"right bottom",at:"right bottom",of:t&&t.element(),collision:"fit",offset:"-2 -2",boundaryOffset:"2 2"}}}),y=a.default.ColumnsView.inherit({_resizeCore:o.noop,_isWinDevice:function(){return!!d.default.real().win},_updateList:function(t){var e,n=this._popupContainer.$content(),i="select"===this.option("columnChooser.mode"),o=this._columnChooserList,r=this._columnsController.getChooserColumns(i);if(i&&o&&t&&"selection"===t.changeType){e=_(this,r);for(var a=0;a<e.length;a++){var s=e[a].selected,l=e[a].id;l===t.columnIndex&&(s?o.selectItem(l,s):o.unselectItem(l,s))}}else i&&o&&"full"!==t||(this._popupContainer._wrapper().toggleClass(this.addWidgetPrefix("column-chooser-mode-drag"),!i).toggleClass(this.addWidgetPrefix("column-chooser-mode-select"),i),e=_(this,r),this._renderTreeView(n,e))},_initializePopupContainer:function(){var t=this,e=t.element().addClass(t.addWidgetPrefix("column-chooser")),n=t.option("columnChooser"),o=l.default.current(),r=l.default.isGeneric(o),a=l.default.isMaterial(o),s={visible:!1,shading:!1,showCloseButton:!1,dragEnabled:!0,resizeEnabled:!0,toolbarItems:[{text:n.title,toolbar:"top",location:r||a?"before":"center"}],position:t.getController("columnChooser").getPosition(),width:n.width,height:n.height,rtlEnabled:t.option("rtlEnabled"),onHidden:function(){t._isWinDevice()&&(0,i.default)("body").removeClass(t.addWidgetPrefix("notouch-action"))},container:n.container};r||a?(0,p.extend)(s,{showCloseButton:!0}):s.toolbarItems[s.toolbarItems.length]={shortcut:"cancel"},(0,f.isDefined)(this._popupContainer)?this._popupContainer.option(s):(t._popupContainer=t._createComponent(e,h.default,s),t._popupContainer.on("optionChanged",(function(e){"visible"===e.name&&t.renderCompleted.fire()})))},_renderCore:function(t){this._popupContainer&&this._updateList(t)},_renderTreeView:function(t,e){var n=this,r=this.option("columnChooser"),a="select"===r.mode,s={items:e,dataStructure:"plain",activeStateEnabled:!0,focusStateEnabled:!0,hoverStateEnabled:!0,itemTemplate:"item",showCheckBoxesMode:"none",rootValue:null,searchEnabled:r.allowSearch,searchTimeout:r.searchTimeout,onItemRendered:function(t){if(t.itemData.disableCheckBox){var e,n=(0,i.default)(t.itemElement).closest(".dx-treeview-node");if(n.length&&(e=n.find(".dx-checkbox")).length){var o=e.data("dxCheckBox");o&&o.option("disabled",!0)}}}},l=t.find(".dx-scrollable").data("dxScrollable"),u=l&&l.scrollTop();a&&!this._columnsController.isBandColumnsUsed()&&t.addClass(this.addWidgetPrefix("column-chooser-plain")),s.onContentReady=function(t){(0,o.deferUpdate)((function(){if(u){var e=(0,i.default)(t.element).find(".dx-scrollable").data("dxScrollable");e&&e.scrollTo({y:u})}n.renderCompleted.fire()}))},this._isWinDevice()&&(s.useNativeScrolling=!1),(0,p.extend)(s,a?this._prepareSelectModeConfig():this._prepareDragModeConfig()),this._columnChooserList?(s.searchEnabled||(s.searchValue=""),this._columnChooserList.option(s)):(this._columnChooserList=this._createComponent(t,c.default,s),t.addClass(this.addWidgetPrefix("column-chooser-list")))},_prepareDragModeConfig:function(){return{noDataText:this.option("columnChooser").emptyPanelText,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,itemTemplate:function(t,e,n){(0,i.default)(n).text(t.text).parent().addClass(t.cssClass).addClass("dx-column-chooser-item")}}},_prepareSelectModeConfig:function(){var t=this;return{selectNodesRecursive:!1,showCheckBoxesMode:"normal",onItemSelectionChanged:function(e){1===t._columnsController.getVisibleColumns().filter((function(t){return!t.command})).length&&!e.itemData.selected?e.component.selectItem(e.itemElement):setTimeout((function(){t._columnsController.columnOption(e.itemData.id,"visible",e.itemData.selected)}),300)}}},_columnOptionChanged:function(t){var e=t.changeTypes,n=t.optionNames,i="select"===this.option("columnChooser.mode");if(this.callBase(t),i){var o=n.visible&&1===n.length&&void 0!==t.columnIndex,r=n.showInColumnChooser||n.caption||n.visible||e.columns&&n.all;o?this.render(null,{changeType:"selection",columnIndex:t.columnIndex}):r&&this.render(null,"full")}},optionChanged:function(t){switch(t.name){case"columnChooser":this._initializePopupContainer(),this.render(null,"full");break;default:this.callBase(t)}},getColumnElements:function(){var t,e=[],n="select"===this.option("columnChooser.mode"),o=this._columnsController.getChooserColumns(n),r=this._popupContainer&&this._popupContainer.$content(),a=r&&r.find(".dx-treeview-node");return a&&o.forEach((function(n){var i=(t=a.filter("[data-item-id = '"+n.index+"']")).length?t.children(".dx-column-chooser-item").get(0):null;e.push(i)})),(0,i.default)(e)},getName:function(){return"columnChooser"},getColumns:function(){return this._columnsController.getChooserColumns()},allowDragging:function(t,e){var n=t&&t.allowHiding&&("columnChooser"!==e||!t.visible&&this._columnsController.isParentColumnVisible(t.index));return this.isColumnChooserVisible()&&n},getBoundingRect:function(){var t=this._popupContainer&&this._popupContainer._container();if(t&&t.is(":visible")){var e=t.offset();return{left:e.left,top:e.top,right:e.left+t.outerWidth(),bottom:e.top+t.outerHeight()}}return null},showColumnChooser:function(){this._popupContainer||(this._initializePopupContainer(),this.render()),this._popupContainer.show(),this._isWinDevice()&&(0,i.default)("body").addClass(this.addWidgetPrefix("notouch-action"))},hideColumnChooser:function(){this._popupContainer&&this._popupContainer.hide()},isColumnChooserVisible:function(){var t=this._popupContainer;return t&&t.option("visible")},publicMethods:function(){return["showColumnChooser","hideColumnChooser"]}});t.exports={defaultOptions:function(){return{columnChooser:{enabled:!1,allowSearch:!1,searchTimeout:500,mode:"dragAndDrop",width:250,height:260,title:s.default.format("dxDataGrid-columnChooserTitle"),emptyPanelText:s.default.format("dxDataGrid-columnChooserEmptyText"),container:void 0}}},controllers:{columnChooser:v},views:{columnChooserView:y},extenders:{views:{headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this._appendColumnChooserItem(t)},_appendColumnChooserItem:function(t){var e=this;if(e.option("columnChooser.enabled")){var n=e.option("columnChooser.title"),o={widget:"dxButton",options:{icon:"column-chooser",onClick:function(){e.component.getView("columnChooserView").showColumnChooser()},hint:n,text:n,onInitialized:function(t){(0,i.default)(t.element).addClass(e._getToolbarButtonClass(e.addWidgetPrefix("column-chooser-button")))}},showText:"inMenu",location:"after",name:"columnChooserButton",locateInMenu:"auto",sortIndex:40};t.push(o)}return t},optionChanged:function(t){switch(t.name){case"columnChooser":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}},isVisible:function(){var t=this.option("columnChooser.enabled");return this.callBase()||t}}},controllers:{columns:{allowMoveColumn:function(t,e,n,i){return!("select"===this.option("columnChooser.mode")&&"columnChooser"===i)&&this.callBase(t,e,n,i)}}}}}},function(t,e,n){"use strict";var i=l(n(3)),o=l(n(8)),r=l(n(271)),a=n(0),s=l(n(794));function l(t){return t&&t.__esModule?t:{default:t}}var u="".concat("dx-treeview","-node-container"),c=s.default.inherit(r.default).inherit({_addWidgetPrefix:function(t){return"".concat("dx-treeview","-").concat(t)},_optionChanged:function(t){switch(t.name){case"searchValue":this._showCheckboxes()&&this._isRecursiveSelection()&&this._removeSelection(),this._initDataAdapter(),this._updateSearch(),this._repaintContainer();break;case"searchExpr":this._initDataAdapter(),this.repaint();break;case"searchMode":this.option("expandNodesRecursive")?this._updateDataAdapter():this._initDataAdapter(),this.repaint();break;default:this.callBase(t)}},_updateDataAdapter:function(){this._setOptionWithoutOptionChange("expandNodesRecursive",!1),this._initDataAdapter(),this._setOptionWithoutOptionChange("expandNodesRecursive",!0)},_getDataAdapterOptions:function(){return(0,a.extend)(this.callBase(),{searchValue:this.option("searchValue"),searchMode:this.option("searchMode")||"contains",searchExpr:this.option("searchExpr")})},_updateSearch:function(){if(this._searchEditor){var t=this._getSearchEditorOptions();this._searchEditor.option(t)}},_repaintContainer:function(){var t,e=this.$element().find(".".concat(u)).first();e.length&&(e.empty(),t=this._dataAdapter.getRootNodes(),this._renderEmptyMessage(t),this._renderItems(e,t),this._fireContentReadyAction())},_itemContainer:function(t){return this._scrollableContainer&&t?(0,i.default)(this._scrollableContainer.content()):this.callBase()},_addWidgetClass:function(){this.$element().addClass(this._widgetClass())},_clean:function(){this.callBase(),this._removeSearchBox()}});(0,o.default)("dxTreeView",c),t.exports=c},function(t,e,n){"use strict";var i=l(n(3)),o=l(n(21)),r=l(n(27)),a=n(60),s=n(7);function l(t){return t&&t.__esModule?t:{default:t}}e.createOffsetFilter=function(t,e){for(var n=(0,a.normalizeSortingInfo)(e.group),i=[],o=0;o<t.length;o++){for(var s=[],l=0;l<=o;l++){var u=n[l].selector;if(o!==l||null!==t[l]&&!1!==t[l]&&!0!==t[l]){var c=[u,o===l?n[l].desc?">":"<":"=",t[l]];"<"===c[1]?s.push([c,"or",[u,"=",null]]):s.push(c)}else!1===t[l]?s.push([u,"=",!!n[l].desc||null]):(t[l]?!n[l].desc:n[l].desc)?s.push([u,"<>",t[l]]):(s.push([u,"<>",null]),s.push([u,"=",null]))}i.push(r.default.combineFilters(s))}return i=r.default.combineFilters(i,"or"),r.default.combineFilters([i,e.filter])},e.GroupingHelper=o.default.inherit(function(){var t=function(t,e){var n=t.hash;return n&&n[JSON.stringify(e)]},e=function(t,e){var n,i=0,o=t.length-1;if(!t.length)return 0;do{var r=o+i>>1;t[r].offset>e?o=r:i=r}while(o-i>1);for(n=i;n<=o&&!(t[n].offset>e);n++);return n};return{ctor:function(t){this._dataSource=t,this.reset()},reset:function(){this._groupsInfo=[],this._totalCountCorrection=0},totalCountCorrection:function(){return this._totalCountCorrection},updateTotalItemsCount:function(t){this._totalCountCorrection=t||0},isGroupItemCountable:function(t){return!this._isVirtualPaging()||!t.isContinuation},_isVirtualPaging:function(){var t=this._dataSource.option("scrolling.mode");return"virtual"===t||"infinite"===t},itemsCount:function(){var t=this._dataSource._dataSource,e=r.default.normalizeSortingInfo(t.group()||[]).length,n=function t(e,n,i){var o=0;if(n)if(i)for(var r=0;r<n.length;r++)e.isGroupItemCountable(n[r])&&o++,o+=t(e,n[r].items,i-1);else o=n.length;return o}(this,t.items(),e);return n},foreachGroups:function(t,e,n,o,r){var a=this;return function t(e,l,u,c){var d=[];function h(t,e,n,i){var o=e&&t(e,n);return o&&i.push(o),o}for(var f=0;f<e.length;f++){if(c.push(e[f].data),!u&&!1===h(l,e[f].data,c,d))return!1;if(!e[f].data||e[f].data.isExpanded||n){var p=e[f].children,m=p.length&&t(p,l,u,c);if(m&&d.push(m),!1===m)return!1}if(u&&!1===h(l,e[f].data,c,d))return!1;e[f].data&&e[f].data.offset===e[f].offset||(o=!0),c.pop()}var g=r&&c.slice(0);return o&&s.when.apply(i.default,d).always((function(){a._updateGroupInfoOffsets(e,g)}))}(a._groupsInfo,t,e,[])},_updateGroupInfoOffsets:function(t,e){e=e||[];for(var n=0;n<t.length;n++){var i=t[n];if(i.data&&i.data.offset!==i.offset){i.offset=i.data.offset;for(var o=0;o<e.length;o++)e[o].offset=i.offset}}t.sort((function(t,e){return t.offset-e.offset}))},findGroupInfo:function(e){for(var n,i=this._groupsInfo,o=0;i&&o<e.length;o++)i=(n=t(i,e[o]))&&n.children;return n&&n.data},addGroupInfo:function(n){for(var i,o=n.path,r=this._groupsInfo,a=0;a<o.length;a++){if(!(i=t(r,o[a]))){i={key:o[a],offset:n.offset,data:{offset:n.offset,isExpanded:!0,path:o.slice(0,a+1)},children:[]};var s=e(r,n.offset);r.splice(s,0,i),r.hash=r.hash||{},r.hash[JSON.stringify(i.key)]=i}a===o.length-1&&(i.data=n,i.offset!==n.offset&&this._updateGroupInfoOffsets(r)),r=i.children}},allowCollapseAll:function(){return!0},refresh:function(t){var e=t.storeLoadOptions,n=(0,a.normalizeSortingInfo)(e.group||[]),i="_group"in this?(0,a.normalizeSortingInfo)(this._group||[]):n,o=Math.min(i.length,n.length);this._group=e.group;for(var r=0;r<o;r++)if(i[r].selector!==n[r].selector){o=r;break}o?function t(e,n,i){for(var o=0;o<e.length;o++)n+1>=i?e[o].children=[]:t(e[o].children,n+1,i)}(this._groupsInfo,0,o):this.reset()},handleDataLoading:function(){},handleDataLoaded:function(t,e){e(t)},handleDataLoadedCore:function(t,e){e(t)}}}())},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(40)),r=n(4),a=n(5),s=n(2),l=n(7);function u(t){return t&&t.__esModule?t:{default:t}}t.exports={defaultOptions:function(){return{masterDetail:{enabled:!1,autoExpandAll:!1,template:null}}},extenders:{controllers:{columns:{_getExpandColumnsCore:function(){var t=this.callBase();return this.option("masterDetail.enabled")&&t.push({type:"detailExpand",cellTemplate:o.default.getExpandCellTemplate()}),t}},data:function(){var t=function(t){t._expandedItems=[],t._isExpandAll=t.option("masterDetail.autoExpandAll")};return{init:function(){t(this),this.callBase()},expandAll:function(t){var e=this;t<0?(e._isExpandAll=!0,e._expandedItems=[],e.updateItems()):e.callBase.apply(e,arguments)},collapseAll:function(t){var e=this;t<0?(e._isExpandAll=!1,e._expandedItems=[],e.updateItems()):e.callBase.apply(e,arguments)},isRowExpanded:function(t){var e=this,n=o.default.getIndexByKey(t,e._expandedItems);return Array.isArray(t)?e.callBase.apply(e,arguments):!!(e._isExpandAll^(n>=0&&e._expandedItems[n].visible))},_getRowIndicesForExpand:function(t){var e=this.getRowIndexByKey(t);return[e,e+1]},_changeRowExpandCore:function(t){var e,n=this;if(Array.isArray(t))e=n.callBase.apply(n,arguments);else{var i=o.default.getIndexByKey(t,n._expandedItems);if(i>=0){var r=n._expandedItems[i].visible;n._expandedItems[i].visible=!r}else{n._expandedItems.push({key:t,visible:!0});var a=n.getController("editing");a&&a.correctEditRowIndexAfterExpand(t)}n.updateItems({changeType:"update",rowIndices:n._getRowIndicesForExpand(t)}),e=(new l.Deferred).resolve()}return e},_processDataItem:function(t,e){var n=this,i=n.callBase.apply(n,arguments);return i.isExpanded=n.isRowExpanded(i.key),void 0===e.detailColumnIndex&&(e.detailColumnIndex=-1,(0,a.each)(e.visibleColumns,(function(t,n){if("expand"===n.command&&!(0,s.isDefined)(n.groupIndex))return e.detailColumnIndex=t,!1}))),e.detailColumnIndex>=0&&(i.values[e.detailColumnIndex]=i.isExpanded),i},_processItems:function(t,e){var n=this,i=e.changeType,s=[];return t=n.callBase.apply(n,arguments),"loadingAll"===i?t:("refresh"===i&&(n._expandedItems=(0,r.grep)(n._expandedItems,(function(t){return t.visible}))),(0,a.each)(t,(function(t,e){s.push(e);var i=o.default.getIndexByKey(e.key,n._expandedItems);"data"===e.rowType&&(e.isExpanded||i>=0)&&!e.isNewRow&&s.push({visible:e.isExpanded,rowType:"detail",key:e.key,data:e.data,values:[]})})),s)},optionChanged:function(e){var n,i;if("masterDetail"===e.name){switch(e.name="dataSource",e.fullName){case"masterDetail":var o=e.value||{},r=e.previousValue||{};n=o.enabled!==r.enabled,i=o.autoExpandAll!==r.autoExpandAll;break;case"masterDetail.enabled":n=!0;break;case"masterDetail.autoExpandAll":i=!0}(n||i)&&t(this)}this.callBase(e)}}}(),resizing:{fireContentReadyAction:function(){this.callBase.apply(this,arguments),this._updateParentDataGrids(this.component.$element())},_updateParentDataGrids:function(t){var e=this,n=t.closest(".dx-master-detail-row");n.length&&(0,l.when)(this._updateMasterDataGrid(n,t)).done((function(){e._updateParentDataGrids(n.parent())}))},_updateMasterDataGrid:function(t,e){var n=(0,i.default)(t).data("options"),o=(0,i.default)(t).closest("."+this.getWidgetContainerClass()).parent().data("dxDataGrid");if(n&&o){if(!o.getView("rowsView").isFixedColumns()){var r=o.getScrollable();return r&&r.update()}this._updateFixedMasterDetailGrids(o,n.rowIndex,e)}},_updateFixedMasterDetailGrids:function(t,e,n){var o=this,r=(0,i.default)(t.getRowElement(e));if(r&&2===r.length&&r.eq(0).height()!==r.eq(1).height()){var a=n.width();return t.updateDimensions().done((function(){var e=o.option("columnAutoWidth")&&!0===t.option("scrolling.useNative"),i=e&&a!==n.width();e&&i&&o.updateDimensions()}))}}}},views:{rowsView:{_getCellTemplate:function(t){var e=this,n=t.column,i=e.getController("editing"),o=i&&i.isEditRow(t.rowIndex);return"detail"!==n.command||o?e.callBase.apply(e,arguments):e.option("masterDetail.template")||{allowRenderToDetachedContainer:!1,render:e._getDefaultTemplate(n)}},_isDetailRow:function(t){return t&&t.rowType&&0===t.rowType.indexOf("detail")},_createRow:function(t){var e=this.callBase(t);return t&&this._isDetailRow(t)&&(this.option("showRowLines")&&e.addClass("dx-row-lines"),e.addClass("dx-master-detail-row"),(0,s.isDefined)(t.visible)&&e.toggle(t.visible)),e},_renderCells:function(t,e){var n=e.row,i=this._columnsController.getVisibleColumns();n.rowType&&this._isDetailRow(n)?this._needRenderCell(0,e.columnIndices)&&this._renderCell(t,{value:null,row:n,rowIndex:n.rowIndex,column:{command:"detail"},columnIndex:0}).addClass("dx-cell-focus-disabled").addClass("dx-master-detail-cell").attr("colSpan",i.length):this.callBase.apply(this,arguments)}}}}}},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(15)),r=g(n(6)),a=g(n(44)),s=g(n(25)),l=g(n(28)),u=g(n(90)),c=n(11),d=g(n(31)),h=n(0),f=n(24),p=g(n(439)),m=n(40);function g(t){return t&&t.__esModule?t:{default:t}}var _=(0,c.addNamespace)([l.default.down,"focusin",s.default.name].join(" "),"dxDataGridEditorFactory"),v=a.default.ViewController.inherit({_getFocusedElement:function(t){var e=this.option("focusedRowEnabled")?"tr[tabindex]:focus":"tr[tabindex]:not(.dx-data-row):focus",n="td[tabindex]:focus, ".concat(e,", input:focus, textarea:focus, .dx-lookup-field:focus, .dx-checkbox:focus, .dx-switch:focus");return t.find(n)},_getFocusCellSelector:function(){return".dx-row > td"},_updateFocusCore:function(){var t,e,n=this._$focusedElement,i=this.component&&this.component.$element();i&&(n=this._getFocusedElement(i)).length&&(n.hasClass("dx-cell-focus-disabled")||n.hasClass("dx-row")||(e=(t=n.closest(this._getFocusCellSelector()+", .dx-cell-focus-disabled")).get(0)!==n.get(0)&&t.hasClass("dx-editor-inline-block"),n=t),n.length&&!n.hasClass("dx-cell-focus-disabled"))?this.focus(n,e):this.loseFocus()},_updateFocus:function(t){var e=this,n=t&&t.event&&(0,i.default)(t.event.target).hasClass(e.addWidgetPrefix("focus-overlay"));e._isFocusOverlay=e._isFocusOverlay||n,clearTimeout(e._updateFocusTimeoutID),e._updateFocusTimeoutID=setTimeout((function(){delete e._updateFocusTimeoutID,e._isFocusOverlay||e._updateFocusCore(),e._isFocusOverlay=!1}))},_updateFocusOverlaySize:function(t,e){t.hide();var n=u.default.calculate(t,(0,h.extend)({collision:"fit"},e));n.h.oversize>0&&t.outerWidth(t.outerWidth()-n.h.oversize),n.v.oversize>0&&t.outerHeight(t.outerHeight()-n.v.oversize),t.show()},callbackNames:function(){return["focused"]},focus:function(t,e){var n=this;if(void 0===t)return n._$focusedElement;t&&(t.is(n._$focusedElement)||n._$focusedElement&&n._$focusedElement.removeClass("dx-focused"),n._$focusedElement=t,clearTimeout(n._focusTimeoutID),n._focusTimeoutID=setTimeout((function(){delete n._focusTimeoutID,n.renderFocusOverlay(t,e),t.addClass("dx-focused"),n.focused.fire(t)})))},refocus:function(){var t=this.focus();this.focus(t)},renderFocusOverlay:function(t,e){if((0,m.isElementInCurrentGrid)(this,t))if(this._$focusOverlay||(this._$focusOverlay=(0,i.default)("<div>").addClass(this.addWidgetPrefix("focus-overlay")+" dx-pointer-events-target")),e)this._$focusOverlay.addClass("dx-hidden");else if(t.length){var n=d.default.msie?"left bottom":d.default.mozilla?"right bottom":"left top",o=t.closest("."+this.addWidgetPrefix("content")),r=(0,f.getBoundingRect)(t.get(0));this._$focusOverlay.removeClass("dx-hidden").appendTo(o).outerWidth(r.right-r.left+1).outerHeight(r.bottom-r.top+1);var a={precise:!0,my:n,at:n,of:t,boundary:o.length&&o};this._updateFocusOverlaySize(this._$focusOverlay,a),u.default.setup(this._$focusOverlay,a),this._$focusOverlay.css("visibility","visible")}},resize:function(){var t=this._$focusedElement;t&&this.focus(t)},loseFocus:function(){this._$focusedElement&&this._$focusedElement.removeClass("dx-focused"),this._$focusedElement=null,this._$focusOverlay&&this._$focusOverlay.addClass("dx-hidden")},init:function(){this.createAction("onEditorPreparing",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this.createAction("onEditorPrepared",{excludeValidators:["disabled","readOnly"],category:"rendering"}),this._updateFocusHandler=this._updateFocusHandler||this.createAction(this._updateFocus.bind(this)),r.default.on(o.default.getDocument(),_,this._updateFocusHandler),this._attachContainerEventHandlers()},_attachContainerEventHandlers:function(){var t=this,e=t.component&&t.component.$element();e&&r.default.on(e,(0,c.addNamespace)("keydown","dxDataGridEditorFactory"),(function(e){"tab"===(0,c.normalizeKeyName)(e)&&t._updateFocusHandler(e)}))},_focusOverlayEventProxy:function(t){var e=(0,i.default)(t.target),n=(0,i.default)(t.currentTarget);if((e.hasClass("dx-pointer-events-target")||e.hasClass("dx-pointer-events-none"))&&!n.hasClass("dx-hidden")){n.addClass("dx-hidden");var o=e.get(0).ownerDocument.elementFromPoint(t.clientX,t.clientY);(0,c.fireEvent)({originalEvent:t,target:o}),t.stopPropagation(),n.removeClass("dx-hidden"),t.type===s.default.name&&"INPUT"===o.tagName&&r.default.trigger((0,i.default)(o),"focus")}},dispose:function(){clearTimeout(this._focusTimeoutID),clearTimeout(this._updateFocusTimeoutID),r.default.off(o.default.getDocument(),_,this._updateFocusHandler)}}).include(p.default);t.exports={defaultOptions:function(){return{}},controllers:{editorFactory:v}}},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(6),a=n(2),s=n(129).isWrapped,l=n(29).compileGetter,u=n(31),c=n(0).extend,d=n(18),h=n(17).getPublicElement,f=n(100).normalizeDataSourceOptions,p=n(11).normalizeKeyName;n(102),n(142),n(138),n(110),n(234);var m=function(){var t=function(t,e){return c(t,{readOnly:e.readOnly,placeholder:e.placeholder,inputAttr:{id:e.id},tabIndex:e.tabIndex},e.editorOptions)},e=function(){return u.msie||u.mozilla||d.real().ios},n=function(n){var o={},s=e(),l=n.sharedData||o;return t({placeholder:n.placeholder,width:n.width,value:n.value,onValueChanged:function(t){var e="filterRow"===n.parentType||"searchPanel"===n.parentType,i=t.event&&("input"===t.event.type||"keyup"===t.event.type),r=function(t,e){n&&n.setValue(t.value,e)};clearTimeout(o.valueChangeTimeout),i&&e?l.valueChangeTimeout=o.valueChangeTimeout=setTimeout((function(){r(t,o.valueChangeTimeout!==l.valueChangeTimeout)}),a.isDefined(n.updateValueTimeout)?n.updateValueTimeout:0):r(t)},onKeyDown:function(t){s&&"enter"===p(t.event)&&r.trigger(i(t.component._input()),"change")},valueChangeEvent:"change"+("filterRow"===n.parentType?" keyup input":"")},n)},m=function(e){"filterRow"===e.parentType||"filterBuilder"===e.parentType?g(c(e,{lookup:{displayExpr:function(t){return!0===t?e.trueText||"true":!1===t?e.falseText||"false":void 0},dataSource:[!0,!1]}})):function(e){e.editorName="dxCheckBox",e.editorOptions=t({value:a.isDefined(e.value)?e.value:void 0,hoverStateEnabled:!e.readOnly,focusStateEnabled:!e.readOnly,activeStateEnabled:!1,onValueChanged:function(t){e.setValue&&e.setValue(t.value,t)}},e)}(e)};function g(e){var n,i,o,r=e.lookup,u="filterRow"===e.parentType;if(r){n=l(r.displayExpr),i=r.dataSource,a.isFunction(i)&&!s(i)&&(i=i(e.row||{}),function(t){if(t.row&&t.row.watch&&"dataRow"===t.parentType){var e,n=t.editorOptions||{};t.editorOptions=n;var i,o=n.onInitialized;n.onInitialized=function(t){o&&o.apply(this,arguments),(e=t.component).on("disposing",r)};var r=t.row.watch((function(){return(i=t.lookup.dataSource(t.row))&&i.filter}),(function(){e.option("dataSource",i)}),(function(e){t.row=e}))}}(e)),(a.isObject(i)||Array.isArray(i))&&(i=f(i),u&&(o=i.postProcess,i.postProcess=function(t){return 0===this.pageIndex()&&(t=t.slice(0)).unshift(null),o?o.call(this,t):t}));var c=Boolean(r.allowClearing&&!u);e.editorName="dxSelectBox",e.editorOptions=t({searchEnabled:!0,value:e.value,valueExpr:e.lookup.valueExpr,searchExpr:e.lookup.searchExpr||e.lookup.displayExpr,allowClearing:c,showClearButton:c,displayExpr:function(t){return null===t?e.showAllText:n(t)},dataSource:i,onValueChanged:function(t){var n=[t.value];!u&&n.push(t.component.option("text")),e.setValue.apply(this,n)}},e)}}return{createEditor:function(r,s){if(s.cancel=!1,s.editorElement=h(r),a.isDefined(s.tabIndex)||(s.tabIndex=this.option("tabIndex")),s.lookup)g(s);else switch(s.dataType){case"date":case"datetime":!function(n){n.editorName="dxDateBox",n.editorOptions=t({value:n.value,onValueChanged:function(t){n.setValue(t.value)},onKeyDown:function(t){e()&&"enter"===p(t.event)&&(t.component.blur(),t.component.focus())},displayFormat:n.format,type:n.dataType,dateSerializationFormat:null,width:"filterBuilder"===n.parentType?void 0:"auto"},n)}(s);break;case"boolean":m(s);break;case"number":!function(t){var e=n(t);e.value=a.isDefined(t.value)?t.value:null,t.editorName="dxNumberBox",t.editorOptions=e}(s);break;default:!function(t){var e,i=n(t),o="searchPanel"===t.parentType;t.editorType&&"dxTextBox"!==t.editorType?i.value=t.value:i.value=(e=t.value,a.isDefined(e)?e.toString():""),i.valueChangeEvent+=o?" keyup input search":"",i.mode=i.mode||(o?"search":"text"),t.editorName="dxTextBox",t.editorOptions=i}(s)}var l=s.editorName;this.executeAction("onEditorPreparing",s),s.cancel||("dataRow"===s.parentType&&s.editorType&&l===s.editorName&&(s.editorName=s.editorType),"dataRow"!==s.parentType||s.isOnForm||a.isDefined(s.editorOptions.showValidationMark)||(s.editorOptions.showValidationMark=!1),function(t,e){var n=i(e.editorElement);e.editorName&&e.editorOptions&&n[e.editorName]&&("dxCheckBox"!==e.editorName&&"dxSwitch"!==e.editorName||e.isOnForm||(n.addClass(t.addWidgetPrefix("checkbox-size")),n.parent().addClass("dx-editor-inline-block")),t._createComponent(n,e.editorName,e.editorOptions),"dxTextBox"===e.editorName&&n.dxTextBox("instance").registerKeyHandler("enter",o),"dxDateBox"===e.editorName&&n.dxDateBox("instance").registerKeyHandler("enter",(function(){return!0})),"dxTextArea"===e.editorName&&n.dxTextArea("instance").registerKeyHandler("enter",(function(t){"enter"!==p(t)||t.ctrlKey||t.shiftKey||t.stopPropagation()})))}(this,s),this.executeAction("onEditorPrepared",s))}}}();t.exports=m},function(t,e,n){"use strict";var i=n(285),o=n(235),r=n(26),a=n(4),s=n(2),l=n(0).extend,u=n(12),c=o.inherit({NAME:"Calendar",supportedKeys:function(){var t=function(t){return!!this.option("opened")&&(t.preventDefault(),!0)};return{rightArrow:function(){if(this.option("opened"))return!0},leftArrow:function(){if(this.option("opened"))return!0},enter:function(t){if(this.dateBox.option("opened")){if(t.preventDefault(),this._widget.option("zoomLevel")!==this._widget.option("maxZoomLevel"))return!0;var e=this._widget._view.option("contouredDate"),n=this._lastActionElement;e&&"calendar"===n&&this.dateBoxValue(e,t),this.dateBox.close(),this.dateBox._valueChangeEventHandler(t)}else this.dateBox._valueChangeEventHandler(t)}.bind(this),home:t,end:t}},getDisplayFormat:function(t){return t||"shortdate"},_getWidgetName:function(){return i},getKeyboardListener:function(){return this._widget},_getWidgetOptions:function(){var t=this.dateBox.option("disabledDates");return l(this.dateBox.option("calendarOptions"),{value:this.dateBoxValue()||null,dateSerializationFormat:null,min:this.dateBox.dateOption("min"),max:this.dateBox.dateOption("max"),onValueChanged:this._valueChangedHandler.bind(this),onCellClick:this._cellClickHandler.bind(this),tabIndex:null,disabledDates:s.isFunction(t)?this._injectComponent(t.bind(this.dateBox)):t,onContouredChanged:this._refreshActiveDescendant.bind(this),hasFocus:function(){return!0}})},_injectComponent:function(t){var e=this;return function(n){return l(n,{component:e.dateBox}),t(n)}},_refreshActiveDescendant:function(t){this._lastActionElement="calendar",this.dateBox.setAria("activedescendant",t.actionValue)},popupConfig:function(t){var e=t.toolbarItems,n=this.dateBox.option("buttonsLocation"),i=[];return i="default"!==n?a.splitPair(n):["bottom","center"],"useButtons"===this.dateBox.option("applyValueMode")&&this._isCalendarVisible()&&e.unshift({widget:"dxButton",toolbar:i[0],location:"after"===i[1]?"before":i[1],options:{onInitialized:function(t){t.component.registerKeyHandler("escape",this._escapeHandler.bind(this))}.bind(this),onClick:function(){this._widget._toTodayView()}.bind(this),text:u.format("dxCalendar-todayButtonText"),type:"today"}}),l(!0,t,{toolbarItems:e,position:{collision:"flipfit flip"}})},_isCalendarVisible:function(){return s.isEmptyObject(this.dateBox.option("calendarOptions"))||!1!==this.dateBox.option("calendarOptions.visible")},_escapeHandler:function(){this.dateBox.close(),this.dateBox.focus()},_valueChangedHandler:function(t){var e=this.dateBox,n=t.value,i=t.previousValue;r.sameDate(n,i)||"instantly"===e.option("applyValueMode")&&this.dateBoxValue(this.getValue(),t.event)},_updateValue:function(){this._widget&&this._widget.option("value",this.dateBoxValue())},textChangedHandler:function(){this._lastActionElement="input",this.dateBox.option("opened")&&this._widget&&this._updateValue(!0)},_cellClickHandler:function(t){var e=this.dateBox;"instantly"===e.option("applyValueMode")&&(e.option("opened",!1),this.dateBoxValue(this.getValue(),t.event))}});t.exports=c},function(t,e,n){"use strict";var i=M(n(3)),o=M(n(15)),r=n(10),a=M(n(6)),s=M(n(45)),l=M(n(2)),u=n(5),c=n(0),d=M(n(44)),h=M(n(25)),f=M(n(199)),p=M(n(28)),m=n(40),g=n(11),_=M(n(442)),v=M(n(12)),y=M(n(42)),b=M(n(48)),w=M(n(23)),x=M(n(18)),C=M(n(169)),S=M(n(135)),k=n(7),I=M(k),T=M(n(4)),E=M(n(70)),O=M(n(103));function M(t){return t&&t.__esModule?t:{default:t}}function P(t){return function(t){if(Array.isArray(t))return D(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return D(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function D(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var A="__DX_INSERT_INDEX__",R=["batch","row","cell","form","popup"],B=["row","form","popup"],N=["batch","cell"],L=["form","popup"],F=["row","form"],V={save:"dx-link-save",cancel:"dx-link-cancel",edit:"dx-link-edit",undelete:"dx-link-undelete",delete:"dx-link-delete",add:"dx-link-add"},z={save:"save",cancel:"revert",edit:"edit",undelete:"revert",delete:"trash",add:"add"},j={edit:"editRow",delete:"deleteRow",undelete:"undeleteRow",save:"saveEditData",cancel:"cancelEditData",add:"addRowByRowIndex"},H={add:"allowAdding",edit:"allowUpdating",delete:"allowDeleting"},W=["edit","save","cancel","delete","undelete"],U=function(t){return function(e){var n=e instanceof Error?e:new Error(e&&String(e)||"Unknown error");t.reject(n)}},G=function(t){var e=t.option("editing.mode");return-1!==R.indexOf(e)?e:"row"},K=function(t){var e=G(t);return-1!==B.indexOf(e)},q=d.default.ViewController.inherit(function(){var t=function(t){return function(e,n){var o=(0,i.default)("<div>").appendTo(e);t.getController("editorFactory").createEditor(o,(0,c.extend)({},n.column,{value:n.value,setValue:n.setValue,row:n.row,parentType:"dataRow",width:null,readOnly:!n.setValue,isOnForm:n.isOnForm,id:n.id}))}},e=function(t,e){var i=-1;return t.some((function(t,o){if(n(t)===e)return i=o,!0})),i};function n(t){return l.default.isObject(t)?t.name:t}return{init:function(){var t,e=this;(e._editRowIndex=-1,e._editData=[],e._editColumnIndex=-1,e._columnsController=e.getController("columns"),e._dataController=e.getController("data"),e._rowsView=e.getView("rowsView"),e._editForm=null,e._updateEditFormDeferred=null,e._lastOperation=null,e._deferreds&&e._deferreds.forEach((function(t){return t.reject("cancel")})),e._deferreds=[],e._dataChangedHandler||(e._dataChangedHandler=e._handleDataChanged.bind(e),e._dataController.changed.add(e._dataChangedHandler)),e._saveEditorHandler)||(e.createAction("onInitNewRow",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserting",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowInserted",{excludeValidators:["disabled","readOnly"]}),e.createAction("onEditingStart",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdating",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowUpdated",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoving",{excludeValidators:["disabled","readOnly"]}),e.createAction("onRowRemoved",{excludeValidators:["disabled","readOnly"]}),e._pointerDownEditorHandler=function(e){return t=(0,i.default)(e.target)},e._saveEditorHandler=e.createAction((function(n){var o=n.event,a=(0,i.default)(o.target),s=o.targetComponent;if((!t||!t.is("input")||t.is(a))&&!K(e)&&!e._editCellInProgress){var l=p(a)||p(null===s||void 0===s?void 0:s.$element()),u=!!a.closest((0,r.getWindow)().document).length,c=s&&!s._disposed&&s!==e.component,d=!!a.closest(".".concat(e.addWidgetPrefix("addrow-button"))).length,h=a.hasClass(e.addWidgetPrefix("focus-overlay")),f="cell"===G(e);l||h||d&&f&&e.isEditing()||!u&&!c||e._closeEditItem.bind(e)(a)}function p(t){return t&&!!t.closest(".".concat("dx-dropdowneditor-overlay")).length}})),a.default.on(o.default.getDocument(),p.default.down,e._pointerDownEditorHandler),a.default.on(o.default.getDocument(),h.default.name,e._saveEditorHandler));e._updateEditColumn(),e._updateEditButtons()},getUpdatedData:function(t){var e=this._dataController.keyOf(t),n=this._editData,i=(0,m.getIndexByKey)(e,n);return n[i]?(0,m.createObjectWithChanges)(t,n[i].data):t},getInsertedData:function(){return this._editData.filter((function(t){return t.data&&"insert"===t.type})).map((function(t){return t.data}))},getRemovedData:function(){return this._editData.filter((function(t){return t.oldData&&"remove"===t.type})).map((function(t){return t.oldData}))},_fireDataErrorOccurred:function(t){if("cancel"!==t){var e=this.getPopupContent();this._dataController.dataErrorOccurred.fire(t,e)}},_needToCloseEditableCell:function(t){var e=this.component.$element(),n=this.isEditing();if((!e||!!t.closest(e).length)&&t.closest(".dx-data-row").length){var i=this.getView("rowsView"),o=t.closest(".dx-row> td"),r=i.getRowIndex(o.parent()),a=i.getCellElements(r).index(o),s=this._columnsController.getVisibleColumns(),l=s[a]&&s[a].allowEditing;n=n&&!l&&!this.isEditCell(r,a)}return n},_closeEditItem:function(t){this._needToCloseEditableCell(t)&&this.closeEditCell()},_handleDataChanged:function(t){var e=this._editForm;"standard"===this.option("scrolling.mode")&&this.resetRowAndPageIndices(),"prepend"===t.changeType&&(0,u.each)(this._editData,(function(e,n){n.rowIndex+=t.items.length})),"refresh"===t.changeType&&"popup"===G(this)&&e&&e.option("visible")&&this._repaintEditPopup()},_isDefaultButtonVisible:function(t,e){var n=!0,i=K(this),o=e.row&&e.row.rowIndex===this._getVisibleEditRowIndex()&&i;switch(t.name){case"edit":n=!o&&this.allowUpdating(e)&&i;break;case"save":case"cancel":n=o;break;case"delete":n=!o&&this.allowDeleting(e)&&!e.row.removed;break;case"undelete":n=this.allowDeleting(e)&&e.row.removed}return n},_isButtonVisible:function(t,e){var n=t.visible;return l.default.isDefined(n)?l.default.isFunction(n)?n.call(t,{component:e.component,row:e.row,column:e.column}):n:this._isDefaultButtonVisible(t,e)},_getButtonConfig:function(t,e){var i=this,o=l.default.isObject(t)?t:{},r=n(t),a=function(t){var e=t.component.option("editing.texts")||{};return{save:e.saveRowChanges,cancel:e.cancelRowChanges,edit:e.editRow,undelete:e.undeleteRow,delete:e.deleteRow,add:e.addRowToNode}}(e),s=j[r],u=this.option("editing"),d=H[r],h=!d||u[d];return(0,c.extend)({name:r,text:a[r],cssClass:V[r],onClick:function(t){var n=t.event;n.stopPropagation(),n.preventDefault(),setTimeout((function(){e.row&&h&&i[s]&&i[s](e.row.rowIndex)}))}},o)},_getEditingButtons:function(t){var n,i=this,o=!!t.column.buttons,r=(t.column.buttons||[]).slice();return o?((n=e(r,"edit"))>=0&&(e(r,"save")<0&&r.splice(n+1,0,"save"),e(r,"cancel")<0&&r.splice(e(r,"save")+1,0,"cancel")),(n=e(r,"delete"))>=0&&e(r,"undelete")<0&&r.splice(n+1,0,"undelete")):r=W.slice(),r.map((function(e){return i._getButtonConfig(e,t)}))},_renderEditingButtons:function(t,e,n){var i=this;e.forEach((function(e){i._isButtonVisible(e,n)&&i._createButton(t,e,n)}))},_getEditCommandCellTemplate:function(){var t=this;return function(e,n){var o=(0,i.default)(e);if("data"===n.rowType){var r=t._getEditingButtons(n);t._renderEditingButtons(o,r,n),n.watch&&n.watch((function(){return r.map((function(e){return t._isButtonVisible(e,n)}))}),(function(){o.empty(),t._renderEditingButtons(o,r,n)}))}else(0,m.setEmptyText)(o)}},correctEditRowIndexAfterExpand:function(t){this._editRowIndex>this._dataController.getRowIndexByKey(t)&&this._editRowIndex++},correctEditRowIndex:function(t){this._editRowIndex+=t(this._getVisibleEditRowIndex())},isRowEditMode:function(){return K(this)},isFormEditMode:function(){var t=G(this);return-1!==L.indexOf(t)},isCellOrBatchEditMode:function(){var t=this.getEditMode();return"batch"===t||"cell"===t},getEditMode:function(){return G(this)},getFirstEditableColumnIndex:function(){var t,e=this.getController("columns"),n=this._firstFormItem;if("form"===G(this)&&n){var i=this._rowsView.getCellElements(this._editRowIndex);t=this._rowsView._getEditFormEditorVisibleIndex(i,n.column)}else{var o=e.getVisibleColumns();(0,u.each)(o,(function(e,n){if(n.allowEditing)return t=e,!1}))}return t},getFirstEditableCellInRow:function(t){var e=this.getView("rowsView");return e&&e._getCellElement(t||0,this.getFirstEditableColumnIndex())},getFocusedCellInRow:function(t){return this.getFirstEditableCellInRow(t)},getIndexByKey:function(t,e){return(0,m.getIndexByKey)(t,e)},hasChanges:function(t){for(var e=!1,n=0;n<this._editData.length;n++)if(this._editData[n].type&&(!l.default.isDefined(t)||this._dataController.getRowIndexByKey(this._editData[n].key)===t)){e=!0;break}return e},dispose:function(){this.callBase(),clearTimeout(this._inputFocusTimeoutID),a.default.off(o.default.getDocument(),p.default.down,this._pointerDownEditorHandler),a.default.off(o.default.getDocument(),h.default.name,this._saveEditorHandler)},optionChanged:function(t){if("editing"===t.name){var e=t.fullName,n=this._editPopup;if(e&&0===e.indexOf("editing.popup")){if(n){var i=e.slice("editing.popup".length+1);i?n.option(i,t.value):n.option(t.value)}}else n&&n.option("visible")&&0===e.indexOf("editing.form")?this._repaintEditPopup():this.init();t.handled=!0}else this.callBase(t)},publicMethods:function(){return["insertRow","addRow","removeRow","deleteRow","undeleteRow","editRow","editCell","closeEditCell","saveEditData","cancelEditData","hasEditData"]},refresh:function(t){var e=G(this),n="batch"===e||t&&"virtual"!==this.option("scrolling.mode");"batch"!==e&&"cell"!==e?this.init():n&&(this._editRowIndex=-1,this._editColumnIndex=-1)},isEditing:function(){return this._editRowIndex>-1},isEditRow:function(t){var e=G(this);return this._getVisibleEditRowIndex()===t&&-1!==B.indexOf(e)},getEditRowKey:function(){var t=this._dataController.items()[this._getVisibleEditRowIndex()];return t&&t.key},getEditRowIndex:function(){return this._getVisibleEditRowIndex()},getEditFormRowIndex:function(){var t=G(this);return"form"===t||"popup"===t?this._getVisibleEditRowIndex():-1},isEditCell:function(t,e){return!(!Array.isArray(this._editData)||!this._editData.length)&&this._getVisibleEditRowIndex()===t&&this._editColumnIndex===e},getPopupContent:function(){var t=G(this),e=this._editPopup&&this._editPopup.option("visible");if("popup"===t&&e)return this._$popupContent},getEditForm:function(){return this._editForm},_needInsertItem:function(t,e){var n=this._dataController.dataSource(),i=this.option("scrolling.mode"),o=n.pageIndex(),r=n.beginPageIndex?n.beginPageIndex():o,a=n.endPageIndex?n.endPageIndex():o;if("standard"!==i)switch(e){case"append":return t.key.pageIndex===a;case"prepend":return t.key.pageIndex===r;case"refresh":t.key.rowIndex=0,t.key.dataRowIndex=0,t.key.pageIndex=0;break;default:return t.key.pageIndex>=r&&t.key.pageIndex<=a}return t.key.pageIndex===o},_generateNewItem:function(t){var e={key:t};return t&&t[A]&&(e[A]=t[A]),e},processItems:function(t,e){var n=e.changeType,i=this._dataController,o=-1;this.update(n);for(var r=this._editData,a=0;a<r.length;a++){var s=r[a].key;if(s){var l=i.getRowIndexOffset();o=s.dataRowIndex-l+i.getRowIndexDelta(),"append"===n&&(o-=i.items(!0).length,e.removeCount&&(o+=e.removeCount));var u=this._generateNewItem(s);o>=0&&"insert"===r[a].type&&this._needInsertItem(r[a],n,t,u)&&t.splice(s.dataRowIndex?o:0,0,u)}}return t},processDataItem:function(t,e,n){var i,o=e.visibleColumns,r=t.data[A]?t.data.key:t.key,a=(0,m.getIndexByKey)(r,this._editData);if(t.isEditing=!1,a>=0){var s=G(this),l=this._editData[a];switch(i=l.data,l.type){case"insert":"popup"===s&&(t.visible=!1),t.isNewRow=!0,t.key=r,t.data=i;break;case"update":t.modified=!0,t.oldData=t.data,t.data=(0,m.createObjectWithChanges)(t.data,i),t.modifiedValues=n(i,o,!0);break;case"remove":"batch"===s&&(t.data=(0,m.createObjectWithChanges)(t.data,i)),t.removed=!0}}},insertRow:function(){return w.default.log("W0002","dxDataGrid","insertRow","15.2","Use the 'addRow' method instead"),this.addRow()},_initNewRow:function(t){var e=this;if(this.executeAction("onInitNewRow",t),t.promise){var n=new k.Deferred;return(0,k.when)((0,k.fromPromise)(t.promise)).done(n.resolve).fail(U(n)).fail((function(t){return e._fireDataErrorOccurred(t)})),n}},_getInsertKey:function(t){var e=this._dataController,n=e.items(),i=G(this),o={parentKey:t,pageIndex:e.pageIndex(),rowIndex:this._getInsertRowIndex(t)},r=n[o.rowIndex];return r&&(!r.isEditing&&"detail"===r.rowType||"detailAdaptive"===r.rowType)&&o.rowIndex++,o.dataRowIndex=e.getRowIndexOffset()+n.filter((function(t,e){return e<o.rowIndex&&("data"===t.rowType||"group"===t.rowType||t.isNewRow)})).length,"batch"!==i&&(this._editRowIndex=o.rowIndex+this._dataController.getRowIndexOffset()),o[A]=this._getInsertIndex(),o},_getInsertRowIndex:function(t){var e=this.getView("rowsView"),n=this._dataController.getRowIndexByKey(t);return n>=0?n+1:e?e.getTopVisibleItemIndex(!0):0},_getInsertIndex:function(){var t=0;return this._editData.forEach((function(e){"insert"===e.type&&e.key[A]>t&&(t=e.key[A])})),t+1},addRow:function(t){var e=this,n=e._dataController,i=n.store(),o=i&&i.key(),r={data:{}},a=G(e),l=e._getVisibleEditRowIndex(),u=new k.Deferred;return i?"cell"===a&&e.hasChanges()?(e.saveEditData().done((function(){e.hasChanges()?u.reject("cancel"):e.addRow(t).done(u.resolve).fail(u.reject)})),u.promise()):(e.refresh(),e._allowRowAdding()?(o||(r.data.__KEY__=String(new s.default)),(0,k.when)(e._initNewRow(r,t)).done((function(){e._allowRowAdding()?(e._addRowCore(r.data,t,l),u.resolve()):u.reject("cancel")})).fail(u.reject),u.promise()):u.reject("cancel")):(n.fireError("E1052",this.component.NAME),u.reject())},_allowRowAdding:function(){var t=G(this),e=this._getInsertIndex();return!("batch"!==t&&e>1)},_addRowCore:function(t,e,n){var i=this._getVisibleEditRowIndex(),o=this._getInsertKey(e),r=G(this);this._addEditData({key:o,data:t,type:"insert"}),this._dataController.updateItems({changeType:"update",rowIndices:[n,i,o.rowIndex]}),"popup"===r?this._showEditPopup(o.rowIndex):this._focusFirstEditableCellInRow(o.rowIndex),this._afterInsertRow({key:o,data:t})},_focusFirstEditableCellInRow:function(t){var e=this,n=e.getFirstEditableCellInRow(t);e._editCellInProgress=!0,e._delayedInputFocus(n,(function(){e._editCellInProgress=!1;var n=e.getFirstEditableCellInRow(t),i="dblClick"===e.option("editing.startEditAction")?f.default.name:h.default.name;n&&a.default.trigger(n,i)}))},_isEditingStart:function(t){return this.executeAction("onEditingStart",t),t.cancel},_beforeEditCell:function(t,e,n){var i=this;if("cell"===G(i)&&!n.isNewRow&&i.hasChanges()){var o=new k.Deferred;return i.saveEditData().always((function(){o.resolve(i.hasChanges())})),o}},_beforeUpdateItems:function(){},_getVisibleEditRowIndex:function(){return this._editRowIndex>=0?this._editRowIndex-this._dataController.getRowIndexOffset():-1},editRow:function(t){var e,n=this,i=n._dataController,o=i.items(),r=o[t],a={data:r&&r.data,cancel:!1},s=n._getVisibleEditRowIndex();if(r){if(t===s)return!0;if(r.isNewRow||(a.key=r.key),!n._isEditingStart(a)){n.init(),n._pageIndex=i.pageIndex(),n._editRowIndex=(o[0].isNewRow?t-1:t)+n._dataController.getRowIndexOffset(),n._addEditData({data:{},key:r.key,oldData:r.data});var l=[s,t],u=G(n);n._beforeUpdateItems(l,t,s),"popup"===u?n._showEditPopup(t):i.updateItems({changeType:"update",rowIndices:l}),-1!==F.indexOf(u)&&(e=n.getFocusedCellInRow(n._getVisibleEditRowIndex()),n._delayedInputFocus(e,(function(){e&&n.component.focus(e)})))}}},_showEditPopup:function(t,e){var n=this,o="desktop"!==x.default.current().deviceType,r=(0,c.extend)({showTitle:!1,fullScreen:o,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getSaveButtonConfig()},{toolbar:"bottom",location:"after",widget:"dxButton",options:n._getCancelButtonConfig()}],contentTemplate:n._getPopupEditFormTemplate(t)},n.option("editing.popup"));if(!n._editPopup){var s=(0,i.default)("<div>").appendTo(n.component.$element()).addClass(n.addWidgetPrefix("edit-popup"));n._editPopup=n._createComponent(s,b.default,{}),n._editPopup.on("hiding",n._getEditPopupHiddenHandler()),n._editPopup.on("shown",(function(t){a.default.trigger(t.component.$content().find("[tabindex], input:not([type='hidden'])").not(".dx-scrollable-container").first(),"focus"),e&&n._editForm&&n._editForm.repaint()}))}n._editPopup.option(r),n._editPopup.show()},_repaintEditPopup:function(){var t=this._getVisibleEditRowIndex();if(this._editPopup&&this._editPopup.option("visible")&&t>=0){var e=this._editPopup.option("animation");this._editPopup.option("animation",null),this._showEditPopup(t,!0),this._editPopup.option("animation",e)}},_getEditPopupHiddenHandler:function(){var t=this;return function(e){t.isEditing()&&t.cancelEditData()}},_getPopupEditFormTemplate:function(t){var e=this,n=e.component.getVisibleRows()[t],o={row:n,rowType:n.rowType,key:n.key};return function(t){var n=e.getEditFormTemplate(),r=e._createComponent((0,i.default)("<div>").appendTo(t),O.default);e._$popupContent=r.$content(),n(e._$popupContent,o,!0)}},_getSaveButtonConfig:function(){return{text:this.option("editing.texts.saveRowChanges"),onClick:this.saveEditData.bind(this)}},_getCancelButtonConfig:function(){return{text:this.option("editing.texts.cancelRowChanges"),onClick:this.cancelEditData.bind(this)}},_removeEditDataItem:function(t){t>=0&&this._editData.splice(t,1)},executeOperation:function(t,e){var n=this;this._lastOperation&&this._lastOperation.reject(),this._lastOperation=t,this.waitForDeferredOperations().done((function(){"rejected"!==t.state()&&(e(),n._lastOperation=null)})).fail((function(){t.reject(),n._lastOperation=null}))},waitForDeferredOperations:function(){return k.when.apply(void 0,P(this._deferreds))},editCell:function(t,e){var n,i=this,o=new k.Deferred;return this.executeOperation(o,(function(){n=i._editCellCore(t,e),(0,k.when)(n).done(o.resolve).fail(o.reject)})),void 0!==n?n:o.promise()},_editCellCore:function(t,e){var n=this,i=n._columnsController,o=n._dataController,r=o.items()[t],a={data:r&&r.data,cancel:!1},s=n._getVisibleEditRowIndex(),u=i.getVisibleColumns(),c=u[n._editColumnIndex];l.default.isString(e)&&(e=i.columnOption(e,"index"),e=i.getVisibleIndex(e));var d=a.column=u[e];if(d&&r&&("data"===r.rowType||"detailAdaptive"===r.rowType)&&!r.removed&&!K(n)){if(n.isEditCell(t,e))return!0;var h=t+o.getRowIndexOffset();return(0,k.when)(n._beforeEditCell(t,e,r)).done((function(t){t||(n._prepareEditCell(a,r,e,h)?T.default.deferRender((function(){n._repaintEditCell(d,c,s)})):n._processCanceledEditingCell())}))}return!1},_processCanceledEditingCell:function(){},_prepareEditCell:function(t,e,n,i){return e.isNewRow||(t.key=e.key),!this._isEditingStart(t)&&(this._editRowIndex=i,this._editColumnIndex=n,this._pageIndex=this._dataController.pageIndex(),this._addEditData({data:{},key:e.key,oldData:e.data}),!0)},_repaintEditCell:function(t,e,n){var i=this,o=i._rowsView;t&&t.showEditorAlways&&(!e||e.showEditorAlways)||(i._editCellInProgress=!0,i.getController("editorFactory").loseFocus(),i._dataController.updateItems({changeType:"update",rowIndices:[n,i._getVisibleEditRowIndex()]}));var r=o&&o._getCellElement(i._getVisibleEditRowIndex(),i._editColumnIndex);r&&!r.find(":focus").length?i._focusEditingCell((function(){i._editCellInProgress=!1}),r,!0):i._editCellInProgress=!1},_delayedInputFocus:function(t,e,n){var i=this;function o(){if(e&&e(),t){var n=t.find("[tabindex], input:not([type='hidden'])").first();(0,m.focusAndSelectElement)(i,n)}i._beforeFocusCallback=null}x.default.real().ios||x.default.real().android?o():(i._beforeFocusCallback&&i._beforeFocusCallback(),clearTimeout(i._inputFocusTimeoutID),n&&(i._beforeFocusCallback=e),i._inputFocusTimeoutID=setTimeout(o))},_focusEditingCell:function(t,e,n){var i=this.getView("rowsView");e=e||i&&i._getCellElement(this._getVisibleEditRowIndex(),this._editColumnIndex),this._delayedInputFocus(e,t,n)},removeRow:function(t){return w.default.log("W0002","dxDataGrid","removeRow","15.2","Use the 'deleteRow' method instead"),this.deleteRow(t)},deleteRow:function(t){var e=this;if("cell"===this.option("editing.mode")&&this.isEditing()){var n=this._dataController.items()[t].isNewRow;this.closeEditCell(null,n).always((function(){e._checkAndDeleteRow(t)}))}else this._checkAndDeleteRow(t)},_checkAndDeleteRow:function(t){var e=this,n=e.option("editing"),i=n&&n.texts,o=n&&"batch"===n.mode,r=n&&n.confirmDelete,a=i&&i.confirmDeleteMessage,s=e._dataController.items()[t],u=o||!e.isEditing()||s.isNewRow;if(s&&u)if(!o&&r&&a){var c=i&&i.confirmDeleteTitle,d=l.default.isDefined(c)&&c.length>0;_.default.confirm(a,c,d).done((function(n){n&&e._deleteRowCore(t)}))}else e._deleteRowCore(t)},_deleteRowCore:function(t){var e=this._dataController,n=e.items()[t],i=n&&n.key,o=this._getVisibleEditRowIndex(),r="batch"===this.option("editing.mode");this.refresh();var a=(0,m.getIndexByKey)(i,this._editData);a>=0?"insert"===this._editData[a].type?this._removeEditDataItem(a):this._addEditData({key:i,type:"remove"}):this._addEditData({key:i,oldData:n.data,type:"remove"}),r?e.updateItems({changeType:"update",rowIndices:[o,t]}):this.saveEditData()},undeleteRow:function(t){var e=this._dataController,n=e.items()[t],i=this._getVisibleEditRowIndex(),o=n&&n.key;if(n){var r=(0,m.getIndexByKey)(o,this._editData);if(r>=0){var a=this._editData[r];l.default.isEmptyObject(a.data)?this._removeEditDataItem(r):this._addEditData({key:o,type:"update"}),e.updateItems({changeType:"update",rowIndices:[i,t]})}}},_saveEditDataCore:function(t,e,n){var i=this,o=i._dataController.store(),r=!0;function a(t,e,n){var o=new k.Deferred;return i.executeAction(t,e),(0,k.when)((0,k.fromPromise)(e.cancel)).done((function(t){t?setTimeout((function(){o.resolve("cancel")})):n(e).done(o.resolve).fail(U(o))})).fail(U(o)),o}return(0,u.each)(i._editData,(function(s,u){var c,d,h=u.data,f=u.oldData,p=u.type;if(!i._beforeSaveEditData(u,s)){switch(p){case"remove":c=a("onRowRemoving",d={data:f,key:u.key,cancel:!1},(function(){return o.remove(u.key).done((function(t){n.push({type:"remove",key:t})}))}));break;case"insert":c=a("onRowInserting",d={data:h,cancel:!1},(function(){return o.insert(d.data).done((function(t,e){l.default.isDefined(e)&&(u.key=e),t&&l.default.isObject(t)&&t!==d.data&&(u.data=t),n.push({type:"insert",data:t,index:0})}))}));break;case"update":c=a("onRowUpdating",d={newData:h,oldData:f,key:u.key,cancel:!1},(function(){return o.update(u.key,d.newData).done((function(t,e){t&&l.default.isObject(t)&&t!==d.newData&&(u.data=t),n.push({type:"update",key:e,data:t})}))}))}if(c){var m=new k.Deferred;c.always((function(t){r="cancel"!==t,e.push({key:u.key,result:t})})).always(m.resolve),t.push(m.promise())}}})),r},_processSaveEditDataResult:function(t){for(var e=!1,n=G(this),i=0;i<t.length;i++){var o=t[i].result,r="cancel"===o,a=(0,m.getIndexByKey)(t[i].key,this._editData),s=this._editData[a];if(o&&o instanceof Error){if(s&&(s.error=o),this._fireDataErrorOccurred(o),"batch"!==n){s&&"remove"===s.type&&this._removeEditDataItem(a);break}}else r&&s&&("batch"===n||"remove"!==s.type)||(this._removeEditDataItem(a),e=!r)}return e},_fireSaveEditDataEvents:function(t){var e=this;(0,u.each)(t,(function(t,n){var i=n.data,o=n.key,r=n.type,a={key:o,data:i};switch(n.error&&(a.error=n.error),r){case"remove":e.executeAction("onRowRemoved",(0,c.extend)({},a,{data:n.oldData}));break;case"insert":e.executeAction("onRowInserted",a);break;case"update":e.executeAction("onRowUpdated",a)}}))},saveEditData:function(){var t=this,e=new k.Deferred,n=function(n){(0,k.when)(t._afterSaveEditData(n)).done((function(){e.resolve()}))};return this.waitForDeferredOperations().done((function(){t._saving?n():(0,k.when)(t._beforeSaveEditData()).done((function(i){i?n(i):t._saveEditDataInner().done(e.resolve).fail(e.reject)})).fail(e.reject)})).fail(e.reject),e.promise()},_saveEditDataInner:function(){var t=this,e=[],n=[],o=[],r=this._dataController,a=r.dataSource(),s=G(this),l=new k.Deferred,u=function(){"cell"!==s&&(t._editColumnIndex=-1,t._editRowIndex=-1)},c=function(e){(0,k.when)(t._afterSaveEditData()).done((function(){l.resolve(e)}))},d=this._editData.slice(0);return this._saveEditDataCore(n,e,o)||"cell"!==s||this._focusEditingCell(),n.length?(this._saving=!0,a&&a.beginLoading(),k.when.apply(i.default,n).done((function(){if(t._processSaveEditDataResult(e)){u(),"popup"===s&&t._editPopup&&t._editPopup.hide(),a&&a.endLoading();var n=t.option("editing.refreshMode"),i="reshape"!==n&&"repaint"!==n;i||r.push(o),(0,k.when)(r.refresh({selection:i,reload:i,load:"reshape"===n,changesOnly:t.option("repaintChangesOnly")})).always((function(){t._fireSaveEditDataEvents(d)})).done((function(){c()})).fail((function(t){c(t)}))}else a&&a.endLoading(),l.resolve()})).fail((function(t){a&&a.endLoading(),l.resolve(t)})),l.always((function(){t._focusEditingCell(),t._saving=!1})).promise()):(K(this)?this.hasChanges()||this.cancelEditData():-1!==N.indexOf(s)?(u(),r.updateItems()):this._focusEditingCell(),c(),l.promise())},isSaving:function(){return this._saving},_updateEditColumn:function(){var t=this._isEditColumnVisible(),e="dx-command-edit"+(this.option("editing.useIcons")?" dx-command-edit-with-icons":"");this._columnsController.addCommandColumn({type:"buttons",command:"edit",visible:t,cssClass:e,width:"auto",alignment:"center",cellTemplate:this._getEditCommandCellTemplate(),fixedPosition:"right"}),this._columnsController.columnOption("command:edit",{visible:t,cssClass:e})},_isEditColumnVisible:function(){var t=this.option("editing");if(t){var e=!1;switch(G(this)){case"row":e=t.allowUpdating||t.allowAdding;break;case"form":case"popup":e=t.allowUpdating}return t.allowDeleting||e}},_updateEditButtons:function(){var t=this.getView("headerPanel"),e=this.hasChanges();t&&(t.setToolbarItemDisabled("saveButton",!e),t.setToolbarItemDisabled("revertButton",!e))},_applyModified:function(t){t&&t.addClass("dx-cell-modified")},_beforeCloseEditCellInBatchMode:function(){},cancelEditData:function(){var t=G(this),e=this._getVisibleEditRowIndex(),n=this._dataController;this._beforeCancelEditData(),this.init(),-1!==B.indexOf(t)&&e>=0?n.updateItems({changeType:"update",rowIndices:[e,e+1]}):n.updateItems({repaintChangesOnly:this.option("repaintChangesOnly")}),"popup"===t&&this._hideEditPopup()},_hideEditPopup:function(){this._editPopup&&this._editPopup.option("visible",!1)},hasEditData:function(){return this.hasChanges()},closeEditCell:function(t,e){var n=this,i=I.default.when(),o=this._getVisibleEditRowIndex();return K(this)||(i=I.default.Deferred(),this.executeOperation(i,(function(){n._closeEditCellCore(t,o,e),i.resolve()}))),i.promise()},_closeEditCellCore:function(t,e,n){var i=this,o=G(i),r=i._dataController;if("cell"===o&&i.hasChanges())n||i.saveEditData().done((function(t){i.hasChanges()||i.closeEditCell(!!t)}));else if(e>=0){var a=[e];i._editRowIndex=-1,i._editColumnIndex=-1,i._beforeCloseEditCellInBatchMode(a),t||r.updateItems({changeType:"update",rowIndices:a})}},update:function(t){var e=this._dataController;e&&this._pageIndex!==e.pageIndex()&&("refresh"===t&&this.refresh(!0),this._pageIndex=e.pageIndex()),this._updateEditButtons()},_getRowIndicesForCascadeUpdating:function(t,e){return e?[]:[t.rowIndex]},addDeferred:function(t){var e=this;this._deferreds.indexOf(t)<0&&(this._deferreds.push(t),t.always((function(){var n=e._deferreds.indexOf(t);n>=0&&e._deferreds.splice(n,1)})))},_prepareEditDataParams:function(t,e,n){var o,r=this,a={},s=null===(o=t.row)||void 0===o?void 0:o.data,u=t.key,d=(0,i.default)(t.cellElement),h=G(r),f=new k.Deferred;void 0!==u&&("batch"===h&&r._applyModified(d,t),t.value=e,(0,k.fromPromise)(t.column.setCellValue(a,e,(0,c.extend)(!0,{},s),n)).done((function(){f.resolve({data:a,key:u,oldData:s,type:"update"})})).fail(U(f)).fail((function(t){return r._fireDataErrorOccurred(t)})),l.default.isDefined(n)&&t.column.displayValueMap&&(t.column.displayValueMap[e]=n),t.values&&(t.values[t.columnIndex]=e),r.addDeferred(f));return f},updateFieldValue:function(t,e,n,i){var o=this,r=t.key,a=new k.Deferred;return void 0===r&&this._dataController.fireError("E1043"),t.column.setCellValue?this._prepareEditDataParams(t,e,n).done((function(e){(0,k.when)(o._applyEditDataParams(t,e,i)).always((function(){a.resolve()}))})):a.resolve(),a.promise()},_focusPreviousEditingCellIfNeed:function(t){if(this.hasEditData()&&!this.isEditCell(t.rowIndex,t.columnIndex))return this._focusEditingCell(),this._updateEditRow(t.row,!0),!0},_needUpdateRow:function(t){var e=this._columnsController.getVisibleColumns();t||(t=e[this._editColumnIndex]);var n=t&&t.setCellValue!==t.defaultSetCellValue,i=e.some((function(t){return t.calculateCellValue!==t.defaultCalculateCellValue}));return n||i},_applyEditDataParams:function(t,e,n){var i=G(this),o=t.column.setCellValue!==t.column.defaultSetCellValue,r=t.column.showEditorAlways,a="cell"===i&&t.row&&!t.row.isNewRow;if(r&&!n&&a&&this.hasEditData()&&!this.isEditCell(t.rowIndex,t.columnIndex))return this._focusEditingCell(),void this._updateEditRow(t.row,!0,o);if(this._addEditData(e,t.row),this._updateEditButtons(),r&&!n){if(a)return this._editRowIndex=t.row.rowIndex+this._dataController.getRowIndexOffset(),this._editColumnIndex=t.columnIndex,this.saveEditData();"batch"===i&&(n=this._needUpdateRow(t.column))}var s=t.row;s&&(n||o?this._updateEditRow(s,n,o):s.update&&s.update())},_updateEditRowCore:function(t,e,n){var i=this._editForm;"popup"===G(this)?this.option("repaintChangesOnly")?t.update&&t.update(t):i&&(this._updateEditFormDeferred=(new k.Deferred).done((function(){return i.repaint()})),this._updateLockCount||this._updateEditFormDeferred.resolve()):this._dataController.updateItems({changeType:"update",rowIndices:this._getRowIndicesForCascadeUpdating(t,e)}),n&&this._editForm&&!t.isNewRow&&this._editForm.validate()},_endUpdateCore:function(){this._updateEditFormDeferred&&this._updateEditFormDeferred.resolve()},_updateEditRow:function(t,e,n){var r=this;if(e||!K(r))r._updateEditRowCore(t,!e,n),e||r._focusEditingCell();else{var a=new k.Deferred;r.addDeferred(a),setTimeout((function(){var e=(0,i.default)(o.default.getActiveElement()),s=r._rowsView.getCellIndex(e,t.rowIndex),l=e.get(0),u=(0,m.getSelectionRange)(l);if(r._updateEditRowCore(t,!1,n),s>=0){var c=r._rowsView._getCellElement(t.rowIndex,s);r._delayedInputFocus(c,(function(){setTimeout((function(){l=o.default.getActiveElement(),u.selectionStart>=0&&(0,m.setSelectionRange)(l,u)}))}))}a.resolve()}))}},_addEditData:function(t,e){var n=(0,m.getIndexByKey)(t.key,this._editData);return n<0&&(n=this._editData.length,this._editData.push(t)),this._editData[n]&&(t.data&&(this._editData[n].data=(0,m.createObjectWithChanges)(this._editData[n].data,t.data)),this._editData[n].type&&t.data||!t.type||(this._editData[n].type=t.type),e&&(e.oldData=this._editData[n].oldData,e.data=(0,m.createObjectWithChanges)(e.data,t.data))),n},_getFormEditItemTemplate:function(e,n){return n.editCellTemplate||t(this)},renderFormEditTemplate:function(t,e,n,o,a){var s=this,l=(0,i.default)(o),u=e.column,d=function(t){var e=t.column;return t.isCustomEditorType?t.editorType:e.formItem&&e.formItem.editorType}(e),h=null===t||void 0===t?void 0:t.row.data,f=(0,c.extend)({},t,{data:h,cellElement:null,isOnForm:!0,item:e,column:(0,c.extend)({},u,{editorType:d,editorOptions:e.editorOptions}),id:n.getItemID(e.name||e.dataField),columnIndex:u.index,setValue:!a&&u.allowEditing&&function(t){s.updateFieldValue(f,t)}});f.value=u.calculateCellValue(h);var p=s._getFormEditItemTemplate.bind(s)(f,u);return s._rowsView.renderTemplate(l,p,f,!!l.closest((0,r.getWindow)().document).length).done((function(){s._rowsView._updateCell(l,f)})),f},getFormEditorTemplate:function(t,e){var n=this,o=this.component.columnOption(e.dataField);return function(r,a){var s=(0,i.default)(a);t.row.watch&&t.row.watch((function(){return o.selector(t.row.data)}),(function(){var i,o=s.find(".dx-widget").first(),a=o.data("dxValidator"),l=null===(i=a)||void 0===i?void 0:i.option();s.contents().remove(),t=n.renderFormEditTemplate.bind(n)(t,e,r.component,s),a=(o=s.find(".dx-widget").first()).data("dxValidator"),l&&!a&&o.dxValidator({validationRules:l.validationRules,validationGroup:l.validationGroup,dataGetter:l.dataGetter})})),t=n.renderFormEditTemplate.bind(n)(t,e,r.component,s)}},getEditFormTemplate:function(){var t=this;return function(e,n,o){var r=t.option("editing.form"),a=t.option("editing.form.items"),d=t.option("editing.form.customizeItem"),h=t._editData[(0,m.getIndexByKey)(n.key,t._editData)],f=t.addWidgetPrefix("edit-form-item"),p={};if(a)!function t(e,n){e.forEach((function(e){e.items||e.tabs?t(e.items||e.tabs,n):n(e)}))}(a,(function(t){var e=(null===t||void 0===t?void 0:t.name)||(null===t||void 0===t?void 0:t.dataField);e&&(p[e]=!!t.editorType)}));else{var g=t.getController("columns").getColumns();a=[],(0,u.each)(g,(function(t,e){e.isBand||e.type||a.push({column:e,name:e.name,dataField:e.dataField})}))}if(t._firstFormItem=void 0,t._editForm=t._createComponent((0,i.default)("<div>").appendTo(e),C.default,(0,c.extend)({},r,{items:a,formID:"dx-"+new s.default,validationGroup:h,customizeItem:function(e){var i,o=e.name||e.dataField;if((e.column||o)&&(i=e.column||t._columnsController.columnOption(e.name?"name:"+e.name:"dataField:"+e.dataField)),i){e.label=e.label||{},e.label.text=e.label.text||i.caption,e.template=e.template||t.getFormEditorTemplate(n,e),e.column=i,e.isCustomEditorType=p[o],i.formItem&&(0,c.extend)(e,i.formItem),void 0===e.isRequired&&i.validationRules&&(e.isRequired=i.validationRules.some((function(t){return"required"===t.type})),e.validationRules=[]);var r=!l.default.isDefined(e.visible)||e.visible;!t._firstFormItem&&r&&(t._firstFormItem=e)}d&&d.call(this,e),e.cssClass=l.default.isString(e.cssClass)?e.cssClass+" "+f:f}})),!o){var _=(0,i.default)("<div>").addClass(t.addWidgetPrefix("form-buttons-container")).appendTo(e);t._createComponent((0,i.default)("<div>").appendTo(_),y.default,t._getSaveButtonConfig()),t._createComponent((0,i.default)("<div>").appendTo(_),y.default,t._getCancelButtonConfig())}t._editForm.on("contentReady",(function(){t._editPopup&&t._editPopup.repaint()}))}},getColumnTemplate:function(e){var n,i,o=this,r=e.column,a=e.row&&e.row.rowIndex,s=K(o),l=o.isEditRow(a),u=o.isEditCell(a,e.columnIndex);!(r.showEditorAlways||r.setCellValue&&(l&&r.allowEditing||u))||"data"!==e.rowType&&"detailAdaptive"!==e.rowType||r.command?"detail"===r.command&&"detail"===e.rowType&&l&&(n=o.getEditFormTemplate(e)):(((o.allowUpdating(e)||l)&&r.allowEditing||u)&&(s&&l||!s)&&(r.showEditorAlways&&!s&&(i={cancel:!1,key:e.row.isNewRow?void 0:e.row.key,data:e.row.data,column:r},o._isEditingStart(i)),i&&i.cancel||(e.setValue=function(t,n){o.updateFieldValue(e,t,n)})),n=r.editCellTemplate||t(o));return n},_createButton:function(t,e,n){var o=z[e.name],r=this.option("editing.useIcons"),s=(0,i.default)("<a>").attr("href","#").addClass("dx-link").addClass(e.cssClass);if(e.template)this._rowsView.renderTemplate(t,e.template,n,!0);else{if(r&&o||e.icon){o=e.icon||o;var u=E.default.getImageSourceType(o);"image"===u||"svg"===u?s=E.default.getImageContainer(o).addClass(e.cssClass):s.addClass("dx-icon"+("dxIcon"===u?"-":" ")+o).attr("title",e.text),s.addClass("dx-link-icon"),t.addClass("dx-command-edit-with-icons");var d=this.getButtonLocalizationNames()[e.name];d&&s.attr("aria-label",v.default.format(d))}else s.text(e.text);l.default.isDefined(e.hint)&&s.attr("title",e.hint),a.default.on(s,(0,g.addNamespace)("click","dxDataGridEditing"),this.createAction((function(t){e.onClick.call(e,(0,c.extend)({},t,{row:n.row,column:n.column})),t.event.preventDefault(),t.event.stopPropagation()}))),t.append(s," ")}},getButtonLocalizationNames:function(){return{edit:"dxDataGrid-editingEditRow",save:"dxDataGrid-editingSaveRowChanges",delete:"dxDataGrid-editingDeleteRow",undelete:"dxDataGrid-editingUndeleteRow",cancel:"dxDataGrid-editingCancelRowChanges"}},prepareEditButtons:function(t){var e=this,n=e.option("editing")||{},o=e.option("editing.texts")||{},r={revert:o.cancelAllChanges,save:o.saveAllChanges,addRow:o.addRow},a={revert:"cancel",save:"save",addRow:"addrow"},s=[],l=function(n,o,s){var l=a[n],u=r[n],c=("save"===l||"cancel"===l)&&!e.hasChanges();return{widget:"dxButton",options:{onInitialized:function(n){(0,i.default)(n.element).addClass(t._getToolbarButtonClass("dx-edit-button "+e.addWidgetPrefix(l)+"-button"))},icon:"edit-button-"+l,disabled:c,onClick:function(){setTimeout((function(){e[o]()}))},text:u,hint:u},showText:"inMenu",name:n+"Button",location:"after",locateInMenu:"auto",sortIndex:s}};return n.allowAdding&&s.push(l("addRow","addRow",20)),(n.allowUpdating||n.allowAdding||n.allowDeleting)&&"batch"===G(e)&&(s.push(l("save","saveEditData",21)),s.push(l("revert","cancelEditData",22))),s},showHighlighting:function(t){var e=t.find(".dx-highlight-outline");"TD"!==t.get(0).tagName||e.length||t.wrapInner((0,i.default)("<div>").addClass("dx-highlight-outline dx-pointer-events-target"))},highlightDataCell:function(t,e){var n=e.setValue;this.isCellModified(e)&&e.column.setCellValue?(this.showHighlighting(t),t.addClass("dx-cell-modified")):n&&this.showHighlighting(t)},resetRowAndPageIndices:function(){var t=this;(0,u.each)(t._editData,(function(e,n){n.pageIndex!==t._pageIndex&&(delete n.pageIndex,delete n.rowIndex)}))},_afterInsertRow:function(){},_beforeSaveEditData:function(t){if(t&&!l.default.isDefined(t.key)&&l.default.isDefined(t.type))return!0},_afterSaveEditData:function(){},_beforeCancelEditData:function(){},_allowEditAction:function(t,e){var n=this.option("editing."+t);return l.default.isFunction(n)&&(n=n({component:this.component,row:e.row})),n},allowUpdating:function(t,e){var n=this.option("editing.startEditAction")||"click",i=!(arguments.length>1)||(n===e||"down"===e);return i&&this._allowEditAction("allowUpdating",t)},allowDeleting:function(t){return this._allowEditAction("allowDeleting",t)},isCellModified:function(t){var e=t.columnIndex,n=t.row&&(t.row.isNewRow?t.row.values:t.row.modifiedValues);return!!n&&void 0!==n[e]}}}());t.exports={defaultOptions:function(){return{editing:{mode:"row",refreshMode:"full",allowAdding:!1,allowUpdating:!1,allowDeleting:!1,useIcons:!1,selectTextOnEditStart:!1,confirmDelete:!0,texts:{editRow:v.default.format("dxDataGrid-editingEditRow"),saveAllChanges:v.default.format("dxDataGrid-editingSaveAllChanges"),saveRowChanges:v.default.format("dxDataGrid-editingSaveRowChanges"),cancelAllChanges:v.default.format("dxDataGrid-editingCancelAllChanges"),cancelRowChanges:v.default.format("dxDataGrid-editingCancelRowChanges"),addRow:v.default.format("dxDataGrid-editingAddRow"),deleteRow:v.default.format("dxDataGrid-editingDeleteRow"),undeleteRow:v.default.format("dxDataGrid-editingUndeleteRow"),confirmDeleteMessage:v.default.format("dxDataGrid-editingConfirmDeleteMessage"),confirmDeleteTitle:""},form:{colCount:2},popup:{},startEditAction:"click"}}},controllers:{editing:q},extenders:{controllers:{data:{init:function(){this._editingController=this.getController("editing"),this.callBase()},reload:function(t,e){return!e&&this._editingController.refresh(),this.callBase.apply(this,arguments)},repaintRows:function(){if(!this.getController("editing").isSaving())return this.callBase.apply(this,arguments)},_updateEditRow:function(t){var e=this._editingController,n=t[e.getEditRowIndex()];n&&(n.isEditing=!0,"form"===e.getEditMode()&&(n.rowType="detail"))},_updateItemsCore:function(t){this.callBase(t),this._updateEditRow(this.items())},_applyChangeUpdate:function(t){this._updateEditRow(t.items),this.callBase(t)},_applyChangesOnly:function(t){this._updateEditRow(t.items),this.callBase(t)},_processItems:function(t,e){return t=this._editingController.processItems(t,e),this.callBase(t,e)},_processDataItem:function(t,e){return this._editingController.processDataItem(t,e,this.generateDataValues),this.callBase(t,e)},_processItem:function(t,e){return(t=this.callBase(t,e)).isNewRow&&(e.dataIndex--,delete t.dataIndex),t},_correctRowIndices:function(t){this.callBase.apply(this,arguments),this._editingController.correctEditRowIndex(t)},_getChangedColumnIndices:function(t,e,n,i){var o=this.getController("editing"),r=o.isRowEditMode();if(!(t.isNewRow!==e.isNewRow||t.removed!==e.removed||r&&t.isEditing!==e.isEditing))return t.rowType===e.rowType&&r&&o.isEditRow(n)&&i?[]:this.callBase.apply(this,arguments)},_isCellChanged:function(t,e,n,i,o){var r=this.getController("editing"),a=t.cells&&t.cells[i],s=r&&r.isEditCell(n,i);return(!o||!s)&&(!(!a||!a.column||a.column.showEditorAlways||a.isEditing===s)||this.callBase.apply(this,arguments))}}},views:{rowsView:{init:function(){this.callBase(),this._editingController=this.getController("editing")},getCellElements:function(t){var e=this.callBase(t),n=this._editingController,i=n.getEditForm();return n.getEditFormRowIndex()===t&&e&&i?i.$element().find("."+this.addWidgetPrefix("edit-form-item")+", .dx-button"):e},getCellIndex:function(t,e){if(!t.is("td")&&e>=0){var n=this.getCellElements(e),o=-1;return(0,u.each)(n,(function(e,n){(0,i.default)(n).find(t).length&&(o=e)})),o}return this.callBase.apply(this,arguments)},_getVisibleColumnIndex:function(t,e,n){var i=this._editingController.getEditFormRowIndex();if(i===e&&l.default.isString(n)){var o=this._columnsController.columnOption(n);return this._getEditFormEditorVisibleIndex(t,o)}return this.callBase.apply(this,arguments)},_getEditFormEditorVisibleIndex:function(t,e){var n=-1;return(0,u.each)(t,(function(t,o){var r=(0,i.default)(o).find(".dx-field-item-content").data("dx-form-item");if(r&&r.column&&e&&r.column.index===e.index)return n=t,!1})),n},publicMethods:function(){return this.callBase().concat(["cellValue"])},_getCellTemplate:function(t){return this._editingController.getColumnTemplate(t)||this.callBase(t)},_isNativeClick:function(){return(x.default.real().ios||x.default.real().android)&&this.option("editing.allowUpdating")},_createTable:function(){var t=this,e=t.callBase.apply(t,arguments);return!K(t)&&t.option("editing.allowUpdating")&&a.default.on(e,(0,g.addNamespace)(S.default.name,"dxDataGridRowsView"),"td:not(.dx-editor-cell)",t.createAction((function(){var e=t._editingController;e.isEditing()&&e.closeEditCell()}))),e},_createRow:function(t){var e=this.callBase(t);if(t){var n=this._editingController.isEditRow(t.rowIndex),i=!!t.removed,o=!!t.isNewRow,r=!!t.modified;"batch"===G(this)?i&&e.addClass("dx-row-removed"):n&&e.addClass("dx-edit-row"),o&&e.addClass("dx-row-inserted"),r&&e.addClass("dx-row-modified"),(n||o||i)&&e.removeClass("dx-selection"),n&&"detail"===t.rowType&&e.addClass(this.addWidgetPrefix("edit-form"))}return e},_getColumnIndexByElement:function(t){for(var e=t.closest("table"),n=this.getTableElements();e.length&&!n.filter(e).length;)t=e.closest("td"),e=t.closest("table");return this._getColumnIndexByElementCore(t)},_getColumnIndexByElementCore:function(t){var e=t.closest(".dx-row> td:not(.dx-master-detail-cell)");return this.getCellIndex(e)},_editCellByClick:function(t,e){var n=this._editingController,o=(0,i.default)(t.event.target),r=this._getColumnIndexByElement(o),a=this._dataController.items()[t.rowIndex],s=n.allowUpdating({row:a},e)||a&&a.isNewRow,l=this._columnsController.getVisibleColumns()[r],u=s&&l&&(l.allowEditing||n.isEditCell(t.rowIndex,r)),c=this.option("editing.startEditAction")||"click";return"down"===e?l&&l.showEditorAlways&&u&&n.editCell(t.rowIndex,r):("click"!==e||"dblClick"!==c||n.isEditCell(t.rowIndex,r)||n.closeEditCell(),u&&e===c?n.editCell(t.rowIndex,r)||n.isEditRow(t.rowIndex):void 0)},_rowPointerDown:function(t){var e=this;this._pointerDownTimeout=setTimeout((function(){e._editCellByClick(t,"down")}))},_rowClick:function(t){var e=(0,i.default)(t.rowElement).hasClass(this.addWidgetPrefix("edit-form"));t.event.targetComponent=this.component,this._editCellByClick(t,"click")||e||this.callBase.apply(this,arguments)},_rowDblClick:function(t){this._editCellByClick(t,"dblClick")||this.callBase.apply(this,arguments)},_cellPrepared:function(t,e){var n=this._editingController,i=!!e.column.command,o=e.setValue,r=e.isEditing||n.isEditRow(e.rowIndex)&&e.column.allowEditing;if("data"===e.rowType&&!e.column.command&&(r||e.column.showEditorAlways)){var a=e.column.alignment;t.addClass("dx-editor-cell").toggleClass(this.addWidgetPrefix("readonly"),!o).toggleClass("dx-cell-focus-disabled",!o),a&&t.find("input:not([type='hidden'])").first().css("textAlign",a)}r&&this._editCellPrepared(t),e.column&&!i&&n.highlightDataCell(t,e),this.callBase.apply(this,arguments)},_editCellPrepared:function(t){},_formItemPrepared:function(){},_isFormItem:function(t){var e="detail"===t.rowType||"detailAdaptive"===t.rowType,n="data"===t.rowType&&"popup"===G(this);return(e||n)&&t.item},_updateCell:function(t,e){this._isFormItem(e)?this._formItemPrepared(e,t):this.callBase(t,e)},_update:function(t){this.callBase(t),"updateSelection"===t.changeType&&this.getTableElements().children("tbody").children(".dx-edit-row").removeClass("dx-selection")},_getCellOptions:function(t){var e=this.callBase(t);return e.isEditing=this._editingController.isEditCell(e.rowIndex,e.columnIndex),e},_renderCellContent:function(t,e){"data"===e.rowType&&"popup"===G(this)&&!1===e.row.visible||this.callBase.apply(this,arguments)},cellValue:function(t,e,n,i){var o=this.getCellOptions(t,e);if(o){if(void 0===n)return o.value;this._editingController.updateFieldValue(o,n,i,!0)}},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._pointerDownTimeout)}},headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this.getController("editing").prepareEditButtons(this).concat(t)},optionChanged:function(t){var e=t.fullName;switch(t.name){case"editing":e&&0===e.indexOf("editing.popup")||this._invalidate(),this.callBase(t);break;default:this.callBase(t)}},isVisible:function(){var t=this.getController("editing").option("editing");return this.callBase()||t&&(t.allowAdding||(t.allowUpdating||t.allowDeleting)&&"batch"===t.mode)}}}}}},function(t,e,n){"use strict";var i=b(n(3)),o=b(n(189)),r=b(n(155)),a=b(n(18)),s=b(n(51)),l=n(17),u=n(7),c=n(2),d=n(5),h=n(0),f=n(10),p=n(6),m=n(106),g=b(n(12)),_=b(n(23)),v=b(n(48)),y=n(4);function b(t){return t&&t.__esModule?t:{default:t}}var w=(0,f.getWindow)(),x={text:"OK",onClick:function(){return!0}},C="".concat("dx-dialog","-wrapper"),S="".concat("dx-dialog","-root"),k="".concat("dx-dialog","-content"),I="".concat("dx-dialog","-message"),T="".concat("dx-dialog","-buttons"),E="".concat("dx-dialog","-button"),O=o.default.inherit({ctor:function(t,e){this.callBase(e)},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{width:276}},{device:{platform:"android"},options:{lWidth:"60%",pWidth:"80%"}}])}});e.FakeDialogComponent=O,e.title="",e.custom=function(t){var n=new u.Deferred,o=(new O).option();t=(0,h.extend)(o,t);var f=(0,i.default)("<div>").addClass("dx-dialog").appendTo((0,m.value)()),g="messageHtml"in t;"message"in t&&_.default.log("W1013");var b=String(g?t.messageHtml:t.message),M=(0,i.default)("<div>").addClass(I).html(b),P=[],D=t.toolbarItems;D?_.default.log("W0001","DevExpress.ui.dialog","toolbarItems","16.2","Use the 'buttons' option instead"):D=t.buttons,(0,d.each)(D||[x],(function(){var t=new r.default(this.onClick,{context:A});P.push({toolbar:"bottom",location:a.default.current().android?"after":"center",widget:"dxButton",options:(0,h.extend)({},this,{onClick:function(){var e=t.execute.apply(t,arguments);R(e)}})})}));var A=new v.default(f,(0,h.extend)({title:t.title||e.title,showTitle:(0,y.ensureDefined)(t.showTitle,!0),dragEnabled:(0,y.ensureDefined)(t.dragEnabled,!0),height:"auto",width:function(){var e=((0,i.default)(w).height()>(0,i.default)(w).width()?"p":"l")+"Width",n=Object.prototype.hasOwnProperty.call(t,e)?t[e]:t.width;return(0,c.isFunction)(n)?n():n},showCloseButton:t.showCloseButton||!1,ignoreChildEvents:!1,onContentReady:function(t){t.component.$content().addClass(k).append(M)},onShowing:function(t){t.component.bottomToolbar().addClass(T).find(".".concat("dx-button")).addClass(E),(0,l.resetActiveElement)()},onShown:function(t){var e=t.component.bottomToolbar().find(".".concat("dx-button")).first();(0,p.trigger)(e,"focus")},onHiding:function(){n.reject()},toolbarItems:P,animation:{show:{type:"pop",duration:400},hide:{type:"pop",duration:400,to:{opacity:0,scale:0},from:{opacity:1,scale:1}}},rtlEnabled:(0,s.default)().rtlEnabled,boundaryOffset:{h:10,v:0}},t.popupOptions));function R(t){n.resolve(t),A.hide().done((function(){A.$element().remove()}))}return A._wrapper().addClass(C),t.position&&A.option("position",t.position),A._wrapper().addClass(S),{show:function(){return A.show(),n.promise()},hide:R}},e.alert=function(t,n,i){var o=(0,c.isPlainObject)(t)?t:{title:n,messageHtml:t,showTitle:i,dragEnabled:i};return e.custom(o).show()},e.confirm=function(t,n,i){var o=(0,c.isPlainObject)(t)?t:{title:n,messageHtml:t,showTitle:i,buttons:[{text:g.default.format("Yes"),onClick:function(){return!0}},{text:g.default.format("No"),onClick:function(){return!1}}],dragEnabled:i};return e.custom(o).show()}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=n(45),r=(i=o)&&i.__esModule?i:{default:i},a=n(5),s=n(0),l=n(2);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var c=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._map={}}var e,n,i;return e=t,(n=[{key:"_findWidgetInstance",value:function(t){var e;return(0,a.each)(this._map,(function(n,i){var o=i.widgetInstance,r=i.item;if(t(r))return e=o,!1})),e}},{key:"_findFieldByCondition",value:function(t,e){var n;return(0,a.each)(this._map,(function(i,o){if(t(o))return n="guid"===e?i:o[e],!1})),n}},{key:"clear",value:function(){this._map={}}},{key:"removeItemsByItems",value:function(t){var e=this;(0,a.each)(t.getItems(),(function(t){return e.removeItemByKey(t)}))}},{key:"removeItemByKey",value:function(t){delete this._map[t]}},{key:"add",value:function(t){var e=t.guid||new r.default;return this._map[e]=t,e}},{key:"addItemsOrExtendFrom",value:function(t){var e=this;t.each((function(t,n){e._map[t]?(n.widgetInstance&&(e._map[t].widgetInstance=n.widgetInstance),e._map[t].$itemContainer=n.$itemContainer):e.add({item:n.item,widgetInstance:n.widgetInstance,guid:t,$itemContainer:n.$itemContainer})}))}},{key:"extendRunTimeItemInfoByKey",value:function(t,e){this._map[t]&&(this._map[t]=(0,s.extend)(this._map[t],e))}},{key:"findWidgetInstanceByItem",value:function(t){return this._findWidgetInstance((function(e){return e===t}))}},{key:"getGroupOrTabLayoutManagerByPath",value:function(t){return this._findFieldByCondition((function(e){return e.path===t}),"layoutManager")}},{key:"getKeyByPath",value:function(t){return this._findFieldByCondition((function(e){return e.path===t}),"guid")}},{key:"getPathFromItem",value:function(t){return this._findFieldByCondition((function(e){return e.item===t}),"path")}},{key:"findWidgetInstanceByName",value:function(t){return this._findWidgetInstance((function(e){return t===e.name}))}},{key:"findWidgetInstanceByDataField",value:function(t){return this._findWidgetInstance((function(e){return t===((0,l.isString)(e)?e:e.dataField)}))}},{key:"findItemContainerByItem",value:function(t){for(var e in this._map)if(this._map[e].item===t)return this._map[e].$itemContainer;return null}},{key:"findItemIndexByItem",value:function(t){return this._findFieldByCondition((function(e){return e.item===t}),"itemIndex")}},{key:"getItems",value:function(){return this._map}},{key:"each",value:function(t){(0,a.each)(this._map,(function(e,n){t(e,n)}))}},{key:"removeItemsByPathStartWith",value:function(t){var e=this;Object.keys(this._map).filter((function(n){return e._map[n].path.indexOf(t,0)>-1})).forEach((function(t){return e.removeItemByKey(t)}))}}])&&u(e.prototype,n),i&&u(e,i),t}();e.default=c},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4),a=n(2),s=n(23),l=n(10),u=l.getWindow(),c=n(5),d=n(0).extend,h=n(8),f=n(228),p=n(69),m=p.inherit({_getDefaultOptions:function(){return d(this.callBase(),{rows:[],cols:[],screenByWidth:null,singleColumnScreen:"",height:"100%",width:"100%",activeStateEnabled:!1,focusStateEnabled:!1,onItemStateChanged:void 0,onLayoutChanged:null,currentScreenFactor:void 0,_layoutStrategy:void 0})},_init:function(){this.option("screenByWidth")||this._options.silent("screenByWidth",l.defaultScreenFactorFunc),this.callBase(),this._initLayoutChangedAction()},_initLayoutChangedAction:function(){this._layoutChangedAction=this._createActionByOption("onLayoutChanged",{excludeValidators:["disabled","readonly"]})},_itemClass:function(){return"dx-box-item"},_itemDataKey:function(){return"dxBoxItemData"},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-responsivebox"),this._updateRootBox()},_updateRootBox:function(){clearTimeout(this._updateTimer),this._updateTimer=setTimeout(function(){this._$root&&o.triggerHandler(this._$root,"dxupdate")}.bind(this))},_renderItems:function(){this._setScreenSize(),this._screenItems=this._itemsByScreen(),this._prepareGrid(),this._spreadItems(),this._layoutItems(),this._linkNodeToItem()},_itemOptionChanged:function(t){var e=this._findItemElementByItem(t);e.length&&(this._refreshItem(e,t),this._clearItemNodeTemplates(),this._update())},_setScreenSize:function(){var t=this._getCurrentScreen();this._removeScreenSizeClass(),this.$element().addClass("dx-responsivebox-screen-"+t),this.option("currentScreenFactor",t)},_removeScreenSizeClass:function(){var t=this.option("currentScreenFactor");t&&this.$element().removeClass("dx-responsivebox-screen-"+t)},_prepareGrid:function(){var t=this._grid=[];this._prepareRowsAndCols(),c.each(this._rows,function(){var e=[];t.push(e),c.each(this._cols,function(){e.push(this._createEmptyCell())}.bind(this))}.bind(this))},getSingleColumnRows:function(){var t=this.option("rows"),e=this._screenItems.length;if(t.length){for(var n=this._filterByScreen(t),i=[],o=0;o<e;o++){var r=this._defaultSizeConfig();o<n.length&&a.isDefined(n[o].shrink)&&(r.shrink=n[o].shrink),i.push(r)}return i}return this._defaultSizeConfig(e)},_prepareRowsAndCols:function(){this._isSingleColumnScreen()?(this._prepareSingleColumnScreenItems(),this._rows=this.getSingleColumnRows(),this._cols=this._defaultSizeConfig(1)):(this._rows=this._sizesByScreen(this.option("rows")),this._cols=this._sizesByScreen(this.option("cols")))},_isSingleColumnScreen:function(){return this._screenRegExp().test(this.option("singleColumnScreen"))||!this.option("rows").length||!this.option("cols").length},_prepareSingleColumnScreenItems:function(){this._screenItems.sort((function(t,e){return t.location.row-e.location.row||t.location.col-e.location.col})),c.each(this._screenItems,(function(t,e){d(e.location,{row:t,col:0,rowspan:1,colspan:1})}))},_sizesByScreen:function(t){return c.map(this._filterByScreen(t),function(t){return d(this._defaultSizeConfig(),t)}.bind(this))},_createDefaultSizeConfig:function(){return{ratio:1,baseSize:0,minSize:0,maxSize:0}},_defaultSizeConfig:function(t){var e=this._createDefaultSizeConfig();if(!arguments.length)return e;for(var n=[],i=0;i<t;i++)n.push(e);return n},_filterByScreen:function(t){var e=this._screenRegExp();return r.grep(t,(function(t){return!t.screen||e.test(t.screen)}))},_screenRegExp:function(){var t=this._getCurrentScreen();return new RegExp("(^|\\s)"+t+"($|\\s)","i")},_getCurrentScreen:function(){var t=this._screenWidth();return this.option("screenByWidth")(t)},_screenWidth:function(){return l.hasWindow()?i(u).width():1920},_createEmptyCell:function(){return{item:{},location:{colspan:1,rowspan:1}}},_spreadItems:function(){c.each(this._screenItems,function(t,e){var n=e.location||{},i=n.col,o=n.row,r=this._grid[o],a=r&&r[i];this._occupyCells(a,e)}.bind(this))},_itemsByScreen:function(){var t=this;return this.option("items").reduce((function(e,n){var i=n.location||{};return i=a.isPlainObject(i)?[i]:i,t._filterByScreen(i).forEach((function(t){e.push({item:n,location:d({rowspan:1,colspan:1},t)})})),e}),[])},_occupyCells:function(t,e){t&&!this._isItemCellOccupied(t,e)&&(d(t,e),this._markSpanningCell(t))},_isItemCellOccupied:function(t,e){if(!a.isEmptyObject(t.item))return!0;var n=!1;return this._loopOverSpanning(e.location,(function(t){n=n||!a.isEmptyObject(t.item)})),n},_loopOverSpanning:function(t,e){var n=t.row+t.rowspan-1,i=t.col+t.colspan-1,o=Math.min(n,this._rows.length-1),r=Math.min(i,this._cols.length-1);t.rowspan-=n-o,t.colspan-=i-r;for(var a=t.row;a<=o;a++)for(var s=t.col;s<=r;s++)a===t.row&&s===t.col||e(this._grid[a][s])},_markSpanningCell:function(t){this._loopOverSpanning(t.location,(function(e){d(e,{item:t.item,spanningCell:t})}))},_linkNodeToItem:function(){c.each(this._itemElements(),(function(t,e){var n=i(e),o=n.data("dxBoxItemData");o.box||(o.node=n.children())}))},_layoutItems:function(){var t=this._grid.length,e=t&&this._grid[0].length;if(t||e){var n=this._layoutBlock({direction:"col",row:{start:0,end:t-1},col:{start:0,end:e-1}}),o=this._prepareBoxConfig(n.box||{direction:"row",items:[d(n,{ratio:1})]});d(o,this._rootBoxConfig(o.items)),this._$root=i("<div>").appendTo(this._itemContainer()),this._createComponent(this._$root,f,o)}},_rootBoxConfig:function(t){var e=c.each(t,function(t,e){this._needApplyAutoBaseSize(e)&&d(e,{baseSize:"auto"})}.bind(this));return d({width:"100%",height:"100%",items:e,itemTemplate:this._getTemplateByOption("itemTemplate"),itemHoldTimeout:this.option("itemHoldTimeout"),onItemHold:this._createActionByOption("onItemHold"),onItemClick:this._createActionByOption("onItemClick"),onItemContextMenu:this._createActionByOption("onItemContextMenu"),onItemRendered:this._createActionByOption("onItemRendered")},{_layoutStrategy:this.option("_layoutStrategy")})},_needApplyAutoBaseSize:function(t){return!t.baseSize&&(!t.minSize||"auto"===t.minSize)&&(!t.maxSize||"auto"===t.maxSize)},_prepareBoxConfig:function(t){return d(t||{},{crossAlign:"stretch",onItemStateChanged:this.option("onItemStateChanged")})},_layoutBlock:function(t){return this._isSingleItem(t)?this._itemByCell(t.row.start,t.col.start):this._layoutDirection(t)},_isSingleItem:function(t){var e=this._grid[t.row.start][t.col.start].location,n=t.row.end-t.row.start===e.rowspan-1,i=t.col.end-t.col.start===e.colspan-1;return n&&i},_itemByCell:function(t,e){var n=this._grid[t][e];return n.spanningCell?null:n.item},_layoutDirection:function(t){for(var e,n=[],i=t.direction,o=this._crossDirection(i);e=this._nextBlock(t);){if(this._isBlockIndivisible(t.prevBlockOptions,e))throw s.Error("E1025");var r=this._layoutBlock({direction:o,row:e.row,col:e.col,prevBlockOptions:t});r&&(d(r,this._blockSize(e,o)),n.push(r)),t[o].start=e[o].end+1}return{box:this._prepareBoxConfig({direction:i,items:n})}},_isBlockIndivisible:function(t,e){return t&&t.col.start===e.col.start&&t.col.end===e.col.end&&t.row.start===e.row.start&&t.row.end===e.row.end},_crossDirection:function(t){return"col"===t?"row":"col"},_nextBlock:function(t){var e=t.direction,n=this._crossDirection(e),i=t[e].start,o=t[e].end,r=t[n].start;if(r>t[n].end)return null;for(var a=1,s=r;s<r+a;s++){for(var l=1,u=i;u<=o;u++){var c=this._cellByDirection(e,u,s);l=Math.max(l,c.location[n+"span"])}var d=s+l,h=r+a;d>h&&(a+=d-h)}var f={};return f[e]={start:i,end:o},f[n]={start:r,end:r+a-1},f},_cellByDirection:function(t,e,n){return"col"===t?this._grid[n][e]:this._grid[e][n]},_blockSize:function(t,e){for(var n="row"===e?"auto":0,i="row"===e?this._rows:this._cols,o=d(this._createDefaultSizeConfig(),{ratio:0}),r=t[e].start;r<=t[e].end;r++){var s=i[r];o.ratio+=s.ratio,o.baseSize+=s.baseSize,o.minSize+=s.minSize,o.maxSize+=s.maxSize,a.isDefined(s.shrink)&&(o.shrink=s.shrink)}return o.minSize=o.minSize?o.minSize:n,o.maxSize=o.maxSize?o.maxSize:"auto",this._isSingleColumnScreen()&&(o.baseSize="auto"),o},_update:function(){var t=this._$root;this._renderItems(),t&&t.detach(),this._saveAssistantRoot(t),this._layoutChangedAction(),this._updateRootBox()},_saveAssistantRoot:function(t){this._assistantRoots=this._assistantRoots||[],this._assistantRoots.push(t)},_dispose:function(){clearTimeout(this._updateTimer),this._clearItemNodeTemplates(),this._cleanUnusedRoots(),this.callBase.apply(this,arguments)},_cleanUnusedRoots:function(){this._assistantRoots&&c.each(this._assistantRoots,(function(t,e){i(e).remove()}))},_clearItemNodeTemplates:function(){c.each(this.option("items"),(function(){delete this.node}))},_toggleVisibility:function(t){this.callBase(t),t&&this._updateRootBox()},_attachClickEvent:r.noop,_optionChanged:function(t){switch(t.name){case"rows":case"cols":case"screenByWidth":case"_layoutStrategy":case"singleColumnScreen":this._clearItemNodeTemplates(),this._invalidate();break;case"width":case"height":this.callBase(t),this._update();break;case"onLayoutChanged":this._initLayoutChangedAction();break;case"itemTemplate":this._clearItemNodeTemplates(),this.callBase(t);break;case"currentScreenFactor":break;default:this.callBase(t)}},_dimensionChanged:function(){this._getCurrentScreen()!==this.option("currentScreenFactor")&&this._update()},repaint:function(){this._update()}});h("dxResponsiveBox",m),t.exports=m,t.exports.default=t.exports},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(47)),r=g(n(33)),a=g(n(37)),s=n(0),l=n(4),u=n(17),c=n(2),d=g(n(18)),h=g(n(8)),f=g(n(215)),p=g(n(164)),m=n(7);function g(t){return t&&t.__esModule?t:{default:t}}var _=function(t){return+t},v=function(t,e){r.default.move(t,{left:e})},y=function(t,e,n,i){o.default.animate(t,{type:"slide",to:{left:e},duration:n,complete:i})},b=function(t){o.default.stop(t,!0)},w=f.default.inherit({_activeStateUnit:".dx-multiview-item",_supportedKeys:function(){return(0,s.extend)(this.callBase(),{pageUp:l.noop,pageDown:l.noop})},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{selectedIndex:0,swipeEnabled:!0,animationEnabled:!0,loop:!1,deferRendering:!0,_itemAttributes:{role:"tabpanel"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===d.default.real().deviceType&&!d.default.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return"dx-multiview-item"},_itemDataKey:function(){return"dxMultiViewItemData"},_itemContainer:function(){return this._$itemContainer},_itemElements:function(){return this._itemContainer().children(this._itemSelector())},_itemWidth:function(){return this._itemWidthValue||(this._itemWidthValue=this._$wrapper.width()),this._itemWidthValue},_clearItemWidthCache:function(){delete this._itemWidthValue},_itemsCount:function(){return this.option("items").length},_normalizeIndex:function(t){var e=this._itemsCount();return t<0&&(t+=e),t>=e&&(t-=e),t},_getRTLSignCorrection:function(){return this.option("rtlEnabled")?-1:1},_init:function(){this.callBase.apply(this,arguments);var t=this.$element();t.addClass("dx-multiview"),this._$wrapper=(0,i.default)("<div>").addClass("dx-multiview-wrapper"),this._$wrapper.appendTo(t),this._$itemContainer=(0,i.default)("<div>").addClass("dx-multiview-item-container"),this._$itemContainer.appendTo(this._$wrapper),this.option("loopItemFocus",this.option("loop")),this._initSwipeable()},_initMarkup:function(){this._deferredItems=[],this.callBase();var t=this._getSelectedItemIndices();this._updateItemsVisibility(t[0])},_afterItemElementDeleted:function(t,e){this.callBase(t,e),this._deferredItems&&this._deferredItems.splice(e.itemIndex,1)},_beforeItemElementInserted:function(t){this.callBase.apply(this,arguments),this._deferredItems&&this._deferredItems.splice(t.index,0,null)},_executeItemRenderAction:function(t,e,n){t=(this.option("items")||[]).indexOf(e),this.callBase(t,e,n)},_renderItemContent:function(t){var e=new m.Deferred,n=this,i=this.callBase,o=new m.Deferred;return o.done((function(){var o=i.call(n,t);e.resolve(o)})),this._deferredItems[t.index]=o,this.option("deferRendering")||o.resolve(),e.promise()},_render:function(){var t=this;this.callBase(),(0,l.deferRender)((function(){var e=t._getSelectedItemIndices();t._updateItems(e[0])}))},_updateItems:function(t,e){this._updateItemsPosition(t,e),this._updateItemsVisibility(t,e)},_modifyByChanges:function(){this.callBase.apply(this,arguments);var t=this._getSelectedItemIndices();this._updateItemsVisibility(t[0])},_updateItemsPosition:function(t,e){var n=this._itemElements(),i=(0,c.isDefined)(e)?-this._animationDirection(e,t):void 0,o=n.eq(t);v(o,0),(0,c.isDefined)(e)&&v(n.eq(e),100*i+"%")},_updateItemsVisibility:function(t,e){this._itemElements().each(function(n,o){var r=(0,i.default)(o),a=n!==t&&n!==e;a||this._renderSpecificItem(n),r.toggleClass("dx-multiview-item-hidden",a),this.setAria("hidden",a||void 0,r)}.bind(this))},_renderSpecificItem:function(t){var e=this._itemElements().eq(t),n=e.find(this._itemContentClass()).length>0;(0,c.isDefined)(t)&&!n&&(this._deferredItems[t].resolve(),(0,u.triggerResizeEvent)(e))},_refreshItem:function(t,e){this.callBase(t,e),this._updateItemsVisibility(this.option("selectedIndex"))},_setAriaSelected:l.noop,_updateSelection:function(t,e){var n=t[0],i=e[0];b(this._$itemContainer),this._updateItems(i,n);var o=this._animationDirection(n,i);this._animateItemContainer(o*this._itemWidth(),function(){v(this._$itemContainer,0),this._updateItems(n),this._$itemContainer.width()}.bind(this))},_animateItemContainer:function(t,e){var n=this.option("animationEnabled")?200:0;y(this._$itemContainer,t,n,e)},_animationDirection:function(t,e){var n,i=(n=this._$itemContainer,r.default.locate(n).left),o=(e-t)*this._getRTLSignCorrection()*this._getItemFocusLoopSignCorrection(),s=0!==i?i:o;return a.default.sign(s)},_getSwipeDisabledState:function(){return!this.option("swipeEnabled")||this._itemsCount()<=1},_initSwipeable:function(){var t=this;this._createComponent(this.$element(),p.default,{disabled:this._getSwipeDisabledState(),elastic:!1,itemSizeFunc:this._itemWidth.bind(this),onStart:function(e){return t._swipeStartHandler(e.event)},onUpdated:function(e){return t._swipeUpdateHandler(e.event)},onEnd:function(e){return t._swipeEndHandler(e.event)}})},_swipeStartHandler:function(t){b(this._$itemContainer);var e=this.option("selectedIndex"),n=this.option("loop"),i=this._itemsCount()-1,o=this.option("rtlEnabled");t.maxLeftOffset=_(n||(o?e>0:e<i)),t.maxRightOffset=_(n||(o?e<i:e>0)),this._swipeDirection=null},_swipeUpdateHandler:function(t){var e=t.offset,n=a.default.sign(e)*this._getRTLSignCorrection();if(v(this._$itemContainer,e*this._itemWidth()),n!==this._swipeDirection){this._swipeDirection=n;var i=this.option("selectedIndex"),o=this._normalizeIndex(i-n);this._updateItems(i,o)}},_swipeEndHandler:function(t){var e=t.targetOffset*this._getRTLSignCorrection();if(e){this.option("selectedIndex",this._normalizeIndex(this.option("selectedIndex")-e));var n=this.itemElements().filter(".dx-item-selected");this.option("focusStateEnabled")&&this.option("focusedElement",(0,u.getPublicElement)(n))}else this._animateItemContainer(0,l.noop)},_getItemFocusLoopSignCorrection:function(){return this._itemFocusLooped?-1:1},_moveFocus:function(){this.callBase.apply(this,arguments),this._itemFocusLooped=!1},_prevItem:function(t){var e=this.callBase.apply(this,arguments);return this._itemFocusLooped=e.is(t.last()),e},_nextItem:function(t){var e=this.callBase.apply(this,arguments);return this._itemFocusLooped=e.is(t.first()),e},_dimensionChanged:function(){this._clearItemWidthCache()},_visibilityChanged:function(t){t&&this._dimensionChanged()},_updateSwipeDisabledState:function(){var t=this._getSwipeDisabledState();p.default.getInstance(this.$element()).option("disabled",t)},_optionChanged:function(t){var e=t.value;switch(t.name){case"loop":this.option("loopItemFocus",e);break;case"animationEnabled":break;case"swipeEnabled":this._updateSwipeDisabledState();break;case"deferRendering":this._invalidate();break;case"items":this._updateSwipeDisabledState(),this.callBase(t);break;default:this.callBase(t)}}});(0,h.default)("dxMultiView",w),t.exports=w,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(160),r=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this))},_renderBadge:function(t){if(this._$element.children(".dx-badge").remove(),t){var e=i("<div>").addClass("dx-tabs-item-badge").addClass("dx-badge").text(t);this._$element.append(e)}}});t.exports=r},function(t,e,n){"use strict";var i=n(2);function o(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var a=function(t){return t?t.replace(/\s/g,""):void 0},s=function(t){return t.indexOf("tabs")>-1};e.getOptionNameFromFullName=function(t){var e=t.split(".");return e[e.length-1].replace(/\[\d+]/,"")},e.getFullOptionName=function(t,e){return"".concat(t,".").concat(e)},e.getTextWithoutSpaces=a,e.isExpectedItem=function(t,e){return t&&(t.dataField===e||t.name===e||a(t.title)===e||"group"===t.itemType&&a(t.caption)===e)},e.createItemPathByIndex=function(t,e){return"".concat(e?"tabs":"items","[").concat(t,"]")},e.concatPaths=function(t,e){return(0,i.isDefined)(t)&&(0,i.isDefined)(e)?"".concat(t,".").concat(e):t||e},e.tryGetTabPath=function(t){for(var e=t.split("."),n=o(e),i=e.length-1;i>=0;i--){if(s(e[i]))return n.join(".");n.splice(i,1)}return""},e.isFullPathContainsTabs=s},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(8)),r=u(n(97)),a=u(n(294)),s=u(n(136)),l=u(n(236));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(u,t);var e,n,o,r=m(u);function u(){return d(this,u),r.apply(this,arguments)}return e=u,(n=[{key:"_getDefaultOptions",value:function(){return f(_(u.prototype),"_getDefaultOptions",this).call(this)}},{key:"_init",value:function(){f(_(u.prototype),"_init",this).call(this),s.default.addGroup(this)}},{key:"_initMarkup",value:function(){var t=this.$element();t.addClass("dx-validationgroup"),t.find(".".concat("dx-validator")).each((function(t,e){l.default.getInstance((0,i.default)(e))._initGroupRegistration()})),t.find(".".concat("dx-validationsummary")).each((function(t,e){a.default.getInstance((0,i.default)(e))._initGroupRegistration()})),f(_(u.prototype),"_initMarkup",this).call(this)}},{key:"validate",value:function(){return s.default.validateGroup(this)}},{key:"reset",value:function(){return s.default.resetGroup(this)}},{key:"_dispose",value:function(){s.default.removeGroup(this),this.$element().removeClass("dx-validationgroup"),f(_(u.prototype),"_dispose",this).call(this)}},{key:"_useTemplates",value:function(){return!1}}])&&h(e.prototype,n),o&&h(e,o),u}(r.default);(0,o.default)("dxValidationGroup",v),t.exports=v,t.exports.default=t.exports},function(t,e,n){"use strict";var i=S(n(3)),o=S(n(6)),r=S(n(44)),a=n(40),s=n(4),l=n(5),u=n(2),c=n(0),d=n(91),h=S(n(12)),f=S(n(42)),p=S(n(28)),m=S(n(136)),g=S(n(236)),_=S(n(200)),v=S(n(80)),y=S(n(36)),b=S(n(23)),w=n(7),x=S(n(81)),C=n(55);function S(t){return t&&t.__esModule?t:{default:t}}function k(t){return function(t){if(Array.isArray(t))return I(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var T=["popup","form"],E="valid",O="invalid",M="pending",P=function(t){return(0,u.isDefined)(t)&&"cancel"!==t},D=function(t,e){return void 0!==t||void 0===t&&e&&!e.isNewRow},A=function(t){return!!t&&!!t.validated},R=r.default.Controller.inherit({init:function(){this._editingController=this.getController("editing"),this.createAction("onRowValidating")},_getBrokenRules:function(t,e){return e?e.brokenRules||e.brokenRule&&[e.brokenRule]:t.brokenRules||[]},_rowValidating:function(t,e){var n=new w.Deferred,i=this._getBrokenRules(t,e),o={brokenRules:i,isValid:e?e.isValid:t.isValid,key:t.key,newData:t.data,oldData:t.oldData,promise:null,errorText:this.getHiddenValidatorsErrorText(i)};return this.executeAction("onRowValidating",o),(0,w.when)(o.promise).always((function(){t.isValid=o.isValid,t.errorText=o.errorText,n.resolve(o)})),n.promise()},getHiddenValidatorsErrorText:function(t){var e=[];return(0,l.each)(t,(function(t,n){var i=n.column,o=i&&void 0!==i.groupIndex&&!i.showWhenGrouped,r=i&&i.visible;n.validator.$element().parent().length||r&&!o||e.push(n.message)})),e.join(", ")},validate:function(t){var e=this,n=!0,i=this._editingController,o=new w.Deferred,r=[],a=i.getEditMode();if(t=t||"row"===a,this._isValidationInProgress)return o.resolve(!1).promise();if(this._isValidationInProgress=!0,t)i.addDeferred(o),(0,l.each)(i._editData,(function(t,i){if(i.type&&"remove"!==i.type){var o=e.validateGroup(i);r.push(o),o.done((function(t){i.validated=!0,n=n&&t.isValid}))}}));else if(this._currentCellValidator){var s=this.validateGroup(this._currentCellValidator._findGroup());r.push(s),s.done((function(t){n=t.isValid}))}return w.when.apply(void 0,r).done((function(){e._isValidationInProgress=!1,o.resolve(n)})),o.promise()},validateGroup:function(t){var e,n=this,i=new w.Deferred,o=m.default.getGroupConfig(t);return o&&o.validators.length&&(this.resetRowValidationResults(t),e=m.default.validateGroup(t)),(0,w.when)(e&&e.complete||e).done((function(e){(0,w.when)(n._rowValidating(t,e)).done(i.resolve)})),i.promise()},isRowDataModified:function(t){return!(0,u.isEmptyObject)(t.data)},updateEditData:function(t){var e=this._editingController.getEditMode();if(-1===T.indexOf(e)){if("insert"===t.type&&!this.isRowDataModified(t))return void(t.isValid=!0);if(this.setDisableApplyValidationResults(!0),m.default.getGroupConfig(t)){var n=m.default.validateGroup(t);(0,w.when)(n.complete||n).done((function(e){t.isValid=e.isValid,t.brokenRules=e.brokenRules}))}else t.brokenRules&&t.brokenRules.length||(t.isValid=!0);this.setDisableApplyValidationResults(!1)}else t.isValid=!0},setValidator:function(t){this._currentCellValidator=t},renderCellPendingIndicator:function(t){var e=t.find(".dx-pending-indicator");if(!e.length){var n=t.find(".dx-highlight-outline");n.length||(n=t),e=(0,i.default)("<div>").appendTo(n).addClass("dx-pending-indicator"),this._createComponent(e,x.default),t.addClass("dx-validation-pending")}},disposeCellPendingIndicator:function(t){var e=t.find(".dx-pending-indicator");if(e.length){var n=x.default.getInstance(e);n&&(n.dispose(),n.$element().remove()),t.removeClass("dx-validation-pending")}},validationStatusChanged:function(t){var e=t.validator,n=e.option("validationGroup"),i=e.option("dataGetter")().column;this.updateCellValidationResult({rowKey:n.key,columnIndex:i.index,validationResult:t})},validatorInitialized:function(t){t.component.on("validating",this.validationStatusChanged.bind(this)),t.component.on("validated",this.validationStatusChanged.bind(this))},validatorDisposing:function(t){var e=t.component,n=e.option("validationGroup"),i=e.option("dataGetter")().column,o=this.getCellValidationResult({rowKey:n.key,columnIndex:i.index});P(o)&&o.status===M&&this.cancelCellValidationResult({editData:n,columnIndex:i.index})},applyValidationResult:function(t,e){var n=e.validator,i=n.option("validationGroup"),r=n.option("dataGetter")().column;if(e.brokenRules&&e.brokenRules.forEach((function(t){t.columnIndex=r.index,t.column=r})),t){var a=this.getCellValidationResult({rowKey:i.key,columnIndex:r.index}),s=P(a)&&a.disabledPendingId===e.id;if(this._disableApplyValidationResults||s)return;if(e.status===O){var l=t.find(":focus");this._editingController.showHighlighting(t,!0),(0,d.focused)(l)||(o.default.trigger(l,"focus"),o.default.trigger(l,p.default.down))}var u=!r.editCellTemplate&&this.getController("editorFactory").getEditorInstance(t);e.status===M?(this._editingController.showHighlighting(t,!0),u?u.option("validationStatus",M):this.renderCellPendingIndicator(t)):u?u.option("validationStatus",E):this.disposeCellPendingIndicator(t),t.toggleClass(this.addWidgetPrefix("invalid"),e.status===O)}},createValidator:function(t,e){var n,o,r=this,s=this._editingController,l=t.column,d=function(){var e=l.calculateCellValue(n.data||{});return void 0!==e?e:t.value},h=l.showEditorAlways;if(!(0,u.isDefined)(l.command)&&l.validationRules&&Array.isArray(l.validationRules)&&l.validationRules.length){if((o=s.getIndexByKey(t.key,s._editData))<0){if(!h){var f=this.getController("columns");h=(f&&f.getVisibleColumns()||[]).some((function(t){return t.showEditorAlways}))}h&&s.isCellOrBatchEditMode()&&s.allowUpdating({row:t.row})&&(o=s._addEditData({key:t.key,oldData:t.data}))}if(o>=0){if(e&&!e.length)return void b.default.log("E1050");n=s._editData[o];var p=e&&e.hasClass("dx-widget");e&&e.addClass(this.addWidgetPrefix("validator"));var m=new g.default(e||(0,i.default)("<div>"),{name:l.caption,validationRules:(0,c.extend)(!0,[],l.validationRules),validationGroup:n,adapter:p?null:{getValue:d,applyValidationResults:function(t){r.applyValidationResult(e,t)}},dataGetter:function(){return{data:(0,a.createObjectWithChanges)(n.oldData,n.data),column:l}},onInitialized:this.validatorInitialized.bind(this),onDisposing:this.validatorDisposing.bind(this)});if(p){var _=m.option("adapter");_&&(_.getValue=d,_.validationRequestsCallbacks.empty())}return m}}},setDisableApplyValidationResults:function(t){this._disableApplyValidationResults=t},getDisableApplyValidationResults:function(){return this._disableApplyValidationResults},isCurrentValidatorProcessing:function(t){var e=t.rowKey,n=t.columnIndex;return this._currentCellValidator&&this._currentCellValidator.option("validationGroup").key===e&&this._currentCellValidator.option("dataGetter")().column.index===n},validateCell:function(t){var e={rowKey:t.option("validationGroup").key,columnIndex:t.option("dataGetter")().column.index},n=this.getCellValidationResult(e),i=P(n);i||(n=t.validate());var o=new w.Deferred,r=t.option("adapter");return i&&n.status===M&&(this.updateCellValidationResult(e),r.applyValidationResults(n)),(0,w.when)(n.complete||n).done((function(t){i&&r.applyValidationResults(t),o.resolve(t)})),o.promise()},updateCellValidationResult:function(t){var e=t.rowKey,n=t.columnIndex,i=t.validationResult,o=this._editingController.getEditDataByKey(e);if(o){var r;if(o.validationResults||(o.validationResults={}),i){if(r=(0,c.extend)({},i),o.validationResults[n]=r,i.status===M&&("cell"===this._editingController.getEditMode()&&(r.deferred=new w.Deferred,r.complete.always((function(){r.deferred.resolve()})),this._editingController.addDeferred(r.deferred)),this._disableApplyValidationResults))return void(r.disabledPendingId=i.id)}else r=o.validationResults[n];r&&r.disabledPendingId&&delete r.disabledPendingId}},getCellValidationResult:function(t){var e=t.rowKey,n=t.columnIndex,i=this._editingController.getEditDataByKey(e);return i&&i.validationResults&&i.validationResults[n]},removeCellValidationResult:function(t){var e=t.editData,n=t.columnIndex;e&&e.validationResults&&(this.cancelCellValidationResult({editData:e,columnIndex:n}),delete e.validationResults[n])},cancelCellValidationResult:function(t){var e=t.editData,n=t.columnIndex;if(e&&e.validationResults){var i=e.validationResults[n];i&&(i.deferred&&i.deferred.reject("cancel"),e.validationResults[n]="cancel")}},resetRowValidationResults:function(t){t&&(t.validationResults&&delete t.validationResults,delete t.validated)},isInvalidCell:function(t){var e=t.rowKey,n=t.columnIndex,i=this.getCellValidationResult({rowKey:e,columnIndex:n});return P(i)&&i.status===O},getCellValidator:function(t){var e=t.rowKey,n=t.columnIndex,i=this._editingController.getEditDataByKey(e),o=i&&m.default.getGroupConfig(i),r=o&&o.validators;return r&&r.filter((function(t){var e=t.option("dataGetter")().column;return!!e&&e.index===n}))[0]},setCellValidationStatus:function(t){var e=this.getCellValidationResult({rowKey:t.key,columnIndex:t.column.index});(0,u.isDefined)(e)?t.validationStatus="cancel"!==e?e.status:"cancel":delete t.validationStatus}});t.exports={defaultOptions:function(){return{editing:{texts:{validationCancelChanges:h.default.format("dxDataGrid-validationCancelChanges")}}}},controllers:{validating:R},extenders:{controllers:{editing:{_addEditData:function(t,e){var n=this.getController("validating"),i=this.callBase(t,e);if(i>=0){var o=this._editData[i];n.updateEditData(o)}return i},_updateRowAndPageIndices:function(){var t=this,e=t.getView("rowsView").getTopVisibleItemIndex(),n=e;(0,l.each)(t._editData,(function(i,o){o.isValid||o.pageIndex===t._pageIndex||(o.pageIndex=t._pageIndex,"insert"===o.type?o.rowIndex=e:o.rowIndex=n,n++)}))},_needInsertItem:function(t){var e=this.callBase.apply(this,arguments);return e&&!t.isValid&&(e=t.key.pageIndex===this._pageIndex),e},processItems:function(t,e){var n,i=this._editData,o=this.getController("data"),r=(t=this.callBase(t,e)).length,a=function(e){var n={key:e.key};if(!(function(t,e){var n=-1,i="insert"===t.type,r=t.key;return(0,l.each)(e,(function(t,e){if((0,s.equalByValue)(r,i?e:o.keyOf(e)))return n=t,!1})),n}(e,t)>=0)){e.rowIndex=e.rowIndex>r?e.rowIndex%r:e.rowIndex;var i=e.rowIndex;n.__DX_INSERT_INDEX__=1,t.splice(i,0,n)}};if("batch"===this.getEditMode()&&"prepend"!==e&&"append"!==e)for(n=0;n<i.length;n++)i[n].type&&i[n].pageIndex===this._pageIndex&&i[n].key.pageIndex!==this._pageIndex&&a(i[n]);return t},processDataItem:function(t){var e=this,n=t.data.__DX_INSERT_INDEX__,i=n?t.data.key:t.key,o=e.getEditMode();if("batch"===o&&n&&i){var r=(0,a.getIndexByKey)(i,e._editData);if(r>=0){var s=e._editData[r];"insert"!==s.type&&(t.data=(0,c.extend)(!0,{},s.oldData,s.data),t.key=i)}}e.callBase.apply(e,arguments)},_getInvisibleColumns:function(t){var e,n=this,i=this.getController("columns"),o=i.getInvisibleColumns();return this.isCellOrBatchEditMode()&&(e=t.some((function(t){return n._dataController.getRowIndexByKey(t.key)<0}))),e?i.getColumns():o},_createInvisibleColumnValidators:function(t){var e=this.getController("validating"),n=this.getController("columns"),i=this._getInvisibleColumns(t).filter((function(t){return!t.isBand})),o=n.getGroupColumns().filter((function(t){return!t.showWhenGrouped&&-1===i.indexOf(t)})),r=[];return i.push.apply(i,k(o)),-1===T.indexOf(this.getEditMode())&&(0,l.each)(i,(function(n,i){t.forEach((function(t){var n;if("insert"===t.type?n=t.data:"update"===t.type&&(n=(0,a.createObjectWithChanges)(t.oldData,t.data)),n){var o=e.createValidator({column:i,key:t.key,value:i.calculateCellValue(n)});o&&r.push(o)}}))})),function(){r.forEach((function(t){t.dispose()}))}},_beforeSaveEditData:function(t,e){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("validating");if(t){var r="remove"===t.type||t.isValid;i=i||!r}else{var a=this._createInvisibleColumnValidators(this._editData);i=new w.Deferred,this.executeOperation(i,(function(){o.validate(!0).done((function(t){switch(a(),n._updateRowAndPageIndices(),n.getEditMode()){case"cell":t||n._focusEditingCell();break;case"batch":t||(n._editRowIndex=-1,n._editColumnIndex=-1,n.getController("data").updateItems())}i.resolve(!t)}))}))}return i.promise?i.promise():i},_beforeEditCell:function(t,e,n){var i=this.callBase(t,e,n);if("cell"===this.getEditMode()){var o=this._rowsView._getCellElement(t,e),r=o&&o.data("dxValidator"),a=o&&o.closest(".dx-row").data("options"),s=r&&r.option("adapter").getValue();if(r&&D(s,a)){var l=this.getController("validating"),u=new w.Deferred;return(0,w.when)(l.validateCell(r),i).done((function(t,e){u.resolve(t.status===E&&e)})),u.promise()}if(!r)return i}},_afterSaveEditData:function(t){var e,n=this;if((0,l.each)(this._editData,(function(t,i){var o=n._showErrorRow(i);e=e||o})),e){var i=this._rowsView.getScrollable();i&&(i.update(),i.scrollToElement(e))}if(t&&"cell"===this.getEditMode()&&this._needUpdateRow()){var o=this.getEditRowIndex();this._dataController.updateItems({changeType:"update",rowIndices:[o]}),this._focusEditingCell()}},_showErrorRow:function(t){var e,n=this.getController("errorHandling"),i=this.getController("data").items(),o=this.getIndexByKey(t.key,i);if(!t.isValid&&t.errorText&&o>=0)return e=this.getPopupContent(),n&&n.renderErrorRow(t.errorText,o,e)},updateFieldValue:function(t){var e=this,n=this.getController("validating"),i=new w.Deferred;return n.removeCellValidationResult({editData:this.getEditDataByKey(t.key),columnIndex:t.column.index}),this.callBase.apply(this,arguments).done((function(){var o=n.getCellValidator({rowKey:t.key,columnIndex:t.column.index});(0,w.when)(o&&n.validateCell(o)).done((function(t){e.getController("editorFactory").refocus(),i.resolve(t)}))})),i.promise()},showHighlighting:function(t,e){var n=this,i=!0,o=this.callBase,r=new w.Deferred;if(!e){var a=t.data("dxValidator");if(a)return(0,w.when)(this.getController("validating").validateCell(a)).done((function(e){(i=e.status===E)&&o.call(n,t),r.resolve()})),r.promise()}return i&&o.call(this,t),r.resolve().promise()},highlightDataCell:function(t,e){var n=!!e.setValue,i=this.isCellModified(e),o=this.getController("validating");if(i||!n)this.callBase.apply(this,arguments);else{o.setCellValidationStatus(e);var r=(0,u.isDefined)(e.validationStatus),a=e.row.isNewRow||!r;(0,w.when)(this.showHighlighting(t,a)).done((function(){o.setCellValidationStatus(e)}))}},getEditDataByKey:function(t){return this._editData[(0,a.getIndexByKey)(t,this._editData)]},isCellModified:function(t){var e=this.callBase(t),n=this.getEditDataByKey(t.key),i=!!t.row&&this.getController("validating").isInvalidCell({rowKey:t.key,columnIndex:t.column.index});return e||A(n)&&i}},editorFactory:{_showRevertButton:function(t,e){var n=this;if(e&&e.length){var o=t.find("."+this.addWidgetPrefix("revert-tooltip"));o&&o.remove(),o=(0,i.default)("<div>").addClass(this.addWidgetPrefix("revert-tooltip")).appendTo(t);var r={animation:null,visible:!0,target:e,container:t,closeOnOutsideClick:!1,closeOnTargetScroll:!1,contentTemplate:function(){var t=(0,i.default)("<div>").addClass("dx-revert-button"),e={icon:"revert",hint:n.option("editing.texts.validationCancelChanges"),onClick:function(){n._editingController.cancelEditData()}};return new f.default(t,e).$element()},position:{my:"left top",at:"right top",of:e,offset:"1 0",collision:"flip",boundary:this._rowsView.element()},onPositioned:this._positionedHandler.bind(this)};return new _.default(o,r)}},_hideFixedGroupCell:function(t,e){var n,o,r=this._rowsView.isFixedColumns(),a=this._editingController.isFormEditMode();if(r&&!a){var s=t.closest(".dx-row").next().data("options");s&&"group"===s.rowType&&(n=(0,i.default)(this._rowsView.getRowElement(s.rowIndex)).last(),(o=n.find(".dx-group-cell")).length&&"hidden"!==o.get(0).style.visibility&&(o.css("visibility","hidden"),e.onDisposing=function(){o.css("visibility","")}))}},_positionedHandler:function(t,e){if(!t.component.__skipPositionProcessing){var n=(0,i.default)(t.element).hasClass(this.addWidgetPrefix("revert-tooltip")),o=!n&&this._rowsView.updateFreeSpaceRowHeight(),r=this._normalizeValidationMessagePositionAndMaxWidth(t,n,e);t.component.__skipPositionProcessing=!(!o&&!r),r?t.component.option(r):o&&t.component.repaint()}},_showValidationMessage:function(t,e,n,o){var r=this,a=t.find(".dx-highlight-outline"),s=y.default.isMaterial(),l=a.length&&!s?a:t,u=t.find(".dx-dropdowneditor-overlay").data("dxPopup"),c=u&&u.option("visible"),d=c?"top right":"top "+n,h=c?"top left":"bottom "+n,f="";e&&e.forEach((function(t){f+=(f.length?"<br/>":"")+(0,C.encodeHtml)(t)}));var p=(0,i.default)("<div>").addClass("dx-invalid-message").addClass("dx-invalid-message-always").addClass(this.addWidgetPrefix("invalid-message")).html(f).appendTo(t),m={target:l,container:t,shading:!1,width:"auto",height:"auto",visible:!0,animation:!1,propagateOutsideClick:!0,closeOnOutsideClick:!1,closeOnTargetScroll:!1,position:{collision:"flip",boundary:this._rowsView.element(),boundaryOffset:"0 0",my:d,at:h},onPositioned:function(e){r._positionedHandler(e,c),r._shiftValidationMessageIfNeed(e.component.$content(),o&&o.$content(),t)}};this._hideFixedGroupCell(t,m),new v.default(p,m)},_normalizeValidationMessagePositionAndMaxWidth:function(t,e,n){var o=this._columnsController.getFixedColumns();if(o&&o.length){var r,a=!e&&function(t,e){var n=(0,i.default)(e).closest("tr").index(),o=(0,i.default)(t._rowsView.getRowElement(n)).first().children().filter(":not(.dx-hidden-cell)");return t._rowsView._getWidths(o).reduce((function(t,e){return t+e}),0)}(this,t.element),s=(e?t.component.overlayContent():t.component.$content()).outerWidth(!0),l=!e&&s>a,u=this._rowsView.getCellIndex((0,i.default)(t.element).closest("td")),c=function(t){var e,n;return t.some((function(i,o){if("transparent"===i.command)return e=0===o?-1:o,n=o===t.length-1?-1:o+i.colspan-1,!0})),{startColumnIndex:e,endColumnIndex:n}}(o);return e||u!==c.startColumnIndex&&!l?u===c.endColumnIndex&&(r={collision:"none flip",my:"top right",at:e||n?"top left":"bottom right"},e&&(r.offset="-1 0")):r={collision:"none flip",my:"top left",at:n?"top right":"bottom left"},r&&{position:r,maxWidth:l?a-2:void 0}}},_shiftValidationMessageIfNeed:function(t,e,n){if(e){var i=t.offset(),o=e.offset();if(i.top===o.top&&i.left+t.width()>o.left){var r=e.width()+2;t.css("left",o.left<n.offset().left?-r:r)}}},_getTooltipsSelector:function(){var t=this.addWidgetPrefix("invalid-message");return".dx-editor-cell ."+this.addWidgetPrefix("revert-tooltip")+", .dx-editor-cell ."+t+", .dx-cell-modified ."+t},init:function(){this.callBase(),this._editingController=this.getController("editing"),this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView")},loseFocus:function(t){t||this.getController("validating").setValidator(null),this.callBase()},updateCellState:function(t,e,n){var i,o=t&&t.closest(this._getFocusCellSelector()),r=o&&o.is("td")?o:null,a=o&&o.closest(".dx-row").data("options"),s=a?this.getController("editing").getEditDataByKey(a.key):null,l=r&&this.getController("columns").getVisibleColumns()[r.index()];if((e&&e.status===O||s&&"update"===s.type&&!this._editingController.isSaving())&&"cell"===this._editingController.getEditMode()&&(i=this._showRevertButton(o,r?o.find(".dx-highlight-outline").first():o)),e&&e.status===O&&r&&l&&e&&e.brokenRules){var u=[];e.brokenRules.forEach((function(t){u.push(t.message)})),this._showValidationMessage(o,u,l.alignment||"left",i)}!n&&this._rowsView.element()&&this._rowsView.updateFreeSpaceRowHeight()},focus:function(t,e){var n,i=this,o=t&&t.closest(this._getFocusCellSelector()),r=this.callBase,a=o&&(o.data("dxValidator")||t.find("."+this.addWidgetPrefix("validator")).eq(0).data("dxValidator")),s=o&&o.closest(".dx-row").data("options"),l=this.getController("editing"),u=s?l.getEditDataByKey(s.key):null,c=o&&o.closest("."+this.addWidgetPrefix("rowsview")).find(this._getTooltipsSelector()),d=o&&o.is("td")?o:null,h=d&&this.getController("columns").getVisibleColumns()[d.index()],f=this.getController("validating");if(!arguments.length)return this.callBase();if(c&&c.remove(),a){f.setValidator(a);var p=a.option("adapter").getValue();if(D(p,s)||A(u))return l.waitForDeferredOperations().done((function(){(0,w.when)(f.validateCell(a)).done((function(o){n=o,u&&h&&!f.isCurrentValidatorProcessing({rowKey:u.key,columnIndex:h.index})||(n.status===O&&(e=!0),i.updateCellState(t,n,e),r.call(i,t,e))}))})),this.callBase(t,e)}return this.updateCellState(t,n,e),this.callBase(t,e)},getEditorInstance:function(t){var e=t.find(".dx-texteditor").eq(0);return(0,a.getWidgetInstance)(e)}},data:{_isCellChanged:function(t,e,n,i,o){var r=t.cells[i],a=r&&r.validationStatus,s=this.getController("validating"),l=s.getCellValidationResult({rowKey:t.key,columnIndex:i}),u=P(l)?l.status:l,c=JSON.stringify(e.modifiedValues)!==JSON.stringify(t.modifiedValues);return!(a===u||!c)||this.callBase.apply(this,arguments)}}},views:{rowsView:{updateFreeSpaceRowHeight:function(t){var e,n,i,o=this.element(),r=o&&o.find("."+this.addWidgetPrefix("invalid-message")+" .dx-overlay-content");if(this.callBase(t),r&&r.length&&(e=this._getRowElements(),(n=(i=this._getFreeSpaceRowElements(t)).first())&&1===e.length&&(!n.is(":visible")||r.outerHeight()>n.outerHeight())))return i.show(),i.height(r.outerHeight()),!0},_formItemPrepared:function(t,e){var n=this;this.callBase.apply(this,arguments),(0,s.deferUpdate)((function(){var i=e.find(".dx-widget").first();i.length&&!i.children().length||n.getController("validating").createValidator(t,i)}))},_cellPrepared:function(t,e){this.getController("editing").isFormEditMode()||this.getController("validating").createValidator(e,t),this.callBase.apply(this,arguments)}}}}}},function(t,e,n){"use strict";var i=n(3),o=n(45),r=n(8),a=n(0).extend,s=n(137),l=n(2).isWindow,u=s.inherit({_getDefaultOptions:function(){return a(this.callBase(),{toolbarItems:[],showCloseButton:!1,showTitle:!1,title:null,titleTemplate:null,onTitleRendered:null,bottomTemplate:null,propagateOutsideClick:!0})},_render:function(){this.$element().addClass("dx-tooltip"),this._wrapper().addClass("dx-tooltip-wrapper"),this.callBase()},_renderContent:function(){this.callBase(),this._contentId="dx-"+new o,this._$content.attr({id:this._contentId,role:"tooltip"}),this._toggleAriaDescription(!0)},_toggleAriaDescription:function(t){var e=i(this.option("target")),n=t?this._contentId:void 0;l(e.get(0))||this.setAria("describedby",n,e)}});r("dxTooltip",u),t.exports=u},function(t,e,n){"use strict";var i=p(n(3)),o=n(10),r=n(4),a=p(n(452)),s=p(n(40)),l=n(5),u=n(7),c=p(n(33)),d=p(n(81)),h=p(n(31)),f=n(24);function p(t){return t&&t.__esModule?t:{default:t}}var m=function(t){return"virtual"===t.option("scrolling.mode")},g=function(t){return"infinite"===t.option("scrolling.mode")},_=function(t){var e=t.option("scrolling.rowRenderingMode");return"virtual"===e||"standard"!==e&&void 0},v=function(t,e,n,i){for(var o=n?0:1,r=0;r<e+o;r++){var a=t[n?t.length-1-r:r];a&&!i(a,r===e)&&e++}return e},y=function(){var t=function(t){var e=t._virtualScrollController.beginPageIndex(-1);m(t)&&(e<0||t.viewportSize()>=0&&t.getViewportItemIndex()>=0&&(e*t.pageSize()>t.getViewportItemIndex()||e*t.pageSize()+t.itemsCount()<t.getViewportItemIndex()+t.viewportSize())&&t._dataSource.isLoading()?t._isLoading||(t._isLoading=!0,t.loadingChanged.fire(!0)):t._isLoading&&(t._isLoading=!1,t.loadingChanged.fire(!1)))},e={init:function(e){var n=this;n.callBase.apply(n,arguments),n._items=[],n._isLoaded=!0,n._virtualScrollController=new a.default.VirtualScrollController(n.component,{pageSize:function(){return n.pageSize()},totalItemsCount:function(){return n.totalItemsCount()},hasKnownLastPage:function(){return n.hasKnownLastPage()},pageIndex:function(t){return e.pageIndex(t)},isLoading:function(){return e.isLoading()&&!n.isCustomLoading()},pageCount:function(){return n.pageCount()},load:function(){return e.load()},updateLoading:function(){t(n)},itemsCount:function(){return n.itemsCount(!0)},items:function(){return e.items()},viewportItems:function(t){return t&&(n._items=t),n._items},onChanged:function(t){n.changed.fire(t)},changingDuration:function(t){return n.isLoading()?300:n._renderTime||0}})},_handleLoadingChanged:function(t){m(this)&&!this._isLoadingAll||(this._isLoading=t,this.callBase.apply(this,arguments)),this._startLoadTime=t?new Date:void 0},_handleLoadError:function(){var t=this;t._isLoading=!1,t.loadingChanged.fire(!1),t.callBase.apply(t,arguments)},_handleDataChanged:function(t){var e=this.callBase.bind(this);this._virtualScrollController.handleDataChanged(e,t)},_customizeRemoteOperations:function(t,e){var n=this;!n.option("legacyRendering")&&m(n)&&!e.reload&&e.skip&&n._renderTime<n.option("scrolling.renderingThreshold")&&(t.delay=void 0),n.callBase.apply(n,arguments)},items:function(){return this._items},itemsCount:function(t){return t?this.callBase():this._virtualScrollController.itemsCount()},load:function(t){return t?this.callBase(t):this._virtualScrollController.load()},isLoading:function(){return this._isLoading},isLoaded:function(){return this._dataSource.isLoaded()&&this._isLoaded},resetPagesCache:function(t){t||this._virtualScrollController.reset(!0),this.callBase.apply(this,arguments)},_changeRowExpandCore:function(){var e=this.callBase.apply(this,arguments);return this.resetPagesCache(),t(this),e},reload:function(){this._dataSource.pageIndex(this.pageIndex());var t=this._virtualScrollController;if(t){var e=new u.Deferred;return this.callBase.apply(this,arguments).done((function(n){var i=t._delayDeferred;i?i.done(e.resolve).fail(e.reject):e.resolve(n)})).fail(e.reject),e}return this.callBase.apply(this,arguments)},refresh:function(e,n){var i=this,o=e.storeLoadOptions,r=i._dataSource;return n.reload?(i._virtualScrollController.reset(),r.items().length=0,i._isLoaded=!1,t(i),i._isLoaded=!0,g(i)?(i.pageIndex(0),r.pageIndex(0),o.pageIndex=0,e.pageIndex=0,o.skip=0):(r.pageIndex(i.pageIndex()),r.paginate()&&(e.pageIndex=i.pageIndex(),o.skip=i.pageIndex()*i.pageSize()))):g(i)&&o.skip&&(o.skip+=i._skipCorrection),i.callBase.apply(i,arguments)},dispose:function(){this._virtualScrollController.dispose(),this.callBase.apply(this,arguments)}};return["virtualItemsCount","getContentOffset","getVirtualContentSize","setContentSize","setViewportPosition","getViewportItemIndex","setViewportItemIndex","getItemIndexByPosition","viewportSize","viewportItemSize","getItemSize","getItemSizes","pageIndex","beginPageIndex","endPageIndex","loadIfNeed"].forEach((function(t){e[t]=function(){var e=this._virtualScrollController;return e[t].apply(e,arguments)}})),e}(),b=function(){var t=function(t,e){var n=t.toArray().map((function(t){return(0,i.default)(t).parent("."+e).get(0)})).filter((function(t){return t}));n.length&&(t=(0,i.default)(n));for(var o="dx-freespace-row"===e?t.length-1:t.length,r=0;r<o;r++)t.eq(r).remove()};return{init:function(){var t,e=this,n=this.getController("data");this.callBase(),n.pageChanged.add((function(){e.scrollToPage(n.pageIndex())})),null===(t=n.stateLoaded)||void 0===t||t.add((function(){e._scrollToCurrentPageOnResize()})),this._scrollToCurrentPageOnResize()},_scrollToCurrentPageOnResize:function(){var t=this,e=this.getController("data");if(!this.option("legacyRendering")&&e.pageIndex()>0){this.resizeCompleted.add((function n(){t.resizeCompleted.remove(n),t.scrollToPage(e.pageIndex())}))}},scrollToPage:function(t){var e,n=this._dataController,i=n?n.pageSize():0;if(m(this)||g(this)){var o=n.getItemSize(),r=n.getItemSizes(),a=t*i;for(var s in e=a*o,r)s<=a&&(e+=r[s]-o)}else e=0;this.scrollTo({y:e,x:this._scrollLeft})},renderDelayedTemplates:function(t){this._updateContentPosition(!0),this.callBase.apply(this,arguments)},_renderCore:function(t){var e=this,n=new Date;e.callBase.apply(e,arguments);var i=e._dataController._dataSource;if(i&&t){var o=t.items?t.items.length:20,r=e._dataController.viewportSize()||20;_(e)?i._renderTime=(new Date-n)*r/o:i._renderTime=new Date-n}},_getRowElements:function(t){var e=this.callBase(t);return e&&e.not(".dx-virtual-row")},_renderContent:function(t,e){var n=this,i=n._dataController.virtualItemsCount();return i&&n.option("legacyRendering")?((0,o.hasWindow)()&&e.addClass(n.addWidgetPrefix("table-content")),t.children().length?t.children().first().replaceWith(e):t.append(e),1===t.children("table").length&&(t.append(n._createTable()),n._contentHeight=0),t):n.callBase.apply(n,arguments)},_removeRowsElements:function(t,e,n){var o=this._getRowElements(t).toArray();o="append"===n?o.slice(0,e):o.slice(-e);var r=this.getController("errorHandling");o.map((function(t){var e=(0,i.default)(t);r&&r.removeErrorRow(e.next()),e.remove()}))},_restoreErrorRow:function(t){var e=this.getController("editing");e&&e.hasChanges()&&this._getRowElements(t).each((function(t,n){var o=(0,i.default)(n).data("options");if(o){var r=e.getEditDataByKey(o.key);r&&e._showErrorRow(r)}}))},_updateContent:function(e,n){var i,o=this,r=o._findContentElement(),a=n&&n.changeType;if("append"===a||"prepend"===a){var s=r.children().first(),l=o._getBodies(e);o.option("legacyRendering")||1!==l.length?l["append"===a?"appendTo":"prependTo"](s):o._getBodies(s)["append"===a?"append":"prepend"](l.children()),e.remove(),i=o._getFreeSpaceRowElements(s),t(i,"dx-freespace-row"),n.removeCount&&o._removeRowsElements(s,n.removeCount,a),o._restoreErrorRow(s)}else o.callBase.apply(o,arguments);o._updateBottomLoading()},_addVirtualRow:function(t,e,n,i){if(i){var o=this._createEmptyRow("dx-virtual-row",e,i);o=this._wrapRowIfNeed(t,o),this._appendEmptyRow(t,o,n)}},_updateContentPosition:function(e){var n=this,o=n._dataController,a=n._rowHeight||20;if(o.viewportItemSize(a),n.option("legacyRendering")||!m(n)&&!_(n))(0,r.deferUpdate)((function(){n._updateContentPositionCore()}));else{if(!e){var s=n._getRowElements(n._tableElement).toArray().map((function(t){return(0,f.getBoundingRect)(t).height}));o.setContentSize(s)}var l=o.getContentOffset("begin"),u=o.getContentOffset("end"),c=n.getTableElements(),d=c.children("tbody").children(".dx-virtual-row");t(d,"dx-virtual-row"),c.each((function(t){var e=t>0;n._isFixedTableRendering=e,n._addVirtualRow((0,i.default)(this),e,"top",l),n._addVirtualRow((0,i.default)(this),e,"bottom",u),n._isFixedTableRendering=!1}))}},_updateContentPositionCore:function(){var t,e,n,i=this,o=i._rowHeight||20;if(i._dataController.virtualItemsCount()){e=i._findContentElement().children(),n=e.eq(0);var a=e.eq(1);i._contentTableHeight=n[0].offsetHeight,i._dataController.viewportItemSize(o),i._dataController.setContentSize(i._contentTableHeight),t=i._dataController.getVirtualContentSize();var s=i._dataController.getContentOffset();(0,r.deferRender)((function(){c.default.move(n,{left:0,top:s}),(i._contentHeight!==t||0===t||!i._isTableLinesDisplaysCorrect(a)||!i._isColumnElementsEqual(n.find("col"),a.find("col")))&&(i._contentHeight=t,i._renderVirtualTableContent(a,t))}))}},_isTableLinesDisplaysCorrect:function(t){return t.find(".dx-column-lines").length>0===this.option("showColumnLines")},_isColumnElementsEqual:function(t,e){var n=t.length===e.length;return n&&(0,l.each)(t,(function(t,i){if(i.style.width!==e[t].style.width)return n=!1})),n},_renderVirtualTableContent:function(t,e){for(var n=this._columnsController.getVisibleColumns(),i=this._createColGroup(n).prop("outerHTML"),o="",r=this.option("showColumnLines")?"dx-column-lines":"",a=function(t){return"<tr style='height:"+t+"px;' class='dx-freespace-row dx-row "+r+"' >"+o+"</tr>"},s=0;s<n.length;s++){var l=this._getCellClasses(n[s]),u=l.length?" class='"+l.join(" ")+"'":"";o+="<td"+u+"/>"}for(;e>25e4;)i+=a(25e4),e-=25e4;i+=a(e),t.addClass(this.addWidgetPrefix("table")),t.html(i)},_getCellClasses:function(t){var e=[],n=t.cssClass,i="expand"===t.command;return n&&e.push(n),i&&e.push(this.addWidgetPrefix("group-space")),e},_findBottomLoadPanel:function(t){var e=t||this.element(),n=e&&e.find("."+this.addWidgetPrefix("bottom-load-panel"));if(n&&n.length)return n},_updateBottomLoading:function(){var t=this.option("scrolling.mode"),e="virtual"===t,n="infinite"===t,o=!this._dataController.hasKnownLastPage()&&this._dataController.isLoaded()&&(e||n),r=this._findContentElement(),a=this._findBottomLoadPanel(r);o?a||(0,i.default)("<div>").addClass(this.addWidgetPrefix("bottom-load-panel")).append(this._createComponent((0,i.default)("<div>"),d.default).$element()).appendTo(r):a&&a.remove()},_handleScroll:function(t){var e=this;e._hasHeight&&e._rowHeight&&e._dataController.setViewportPosition(t.scrollOffset.top),e.callBase.apply(e,arguments)},_needUpdateRowHeight:function(t){var e=this;return e.callBase.apply(e,arguments)||t>0&&"infinite"===e.option("scrolling.mode")&&"virtual"!==e.option("scrolling.rowRenderingMode")},_updateRowHeight:function(){var t=this;if(t.callBase.apply(t,arguments),t._rowHeight){t._updateContentPosition();var e=t._hasHeight?t.element().outerHeight():(0,i.default)((0,o.getWindow)()).outerHeight();t._dataController.viewportSize(Math.ceil(e/t._rowHeight))}},updateFreeSpaceRowHeight:function(){var t=this.callBase.apply(this,arguments);return t&&this._updateContentPosition(),t},setLoading:function(t,e){var n=this.callBase,i=this._dataController;i.pageIndex()>0&&i.isLoaded()&&!!this._findBottomLoadPanel()&&(t=!1),n.call(this,t,e)},_resizeCore:function(){var t=this,e=t.element();t.callBase(),t.component.$element()&&!t._windowScroll&&e.closest((0,o.getWindow)().document).length&&(t._windowScroll=a.default.subscribeToExternalScrollers(e,(function(e){!t._hasHeight&&t._rowHeight&&t._dataController.setViewportPosition(e)}),t.component.$element()),t.on("disposing",(function(){t._windowScroll.dispose()}))),t.loadIfNeed()},loadIfNeed:function(){var t=this._dataController;t&&t.loadIfNeed&&t.loadIfNeed()},setColumnWidths:function(t){var e,n=this.getScrollable();this.callBase.apply(this,arguments),"virtual"===this.option("scrolling.mode")&&(e=n?n.$content():this.element(),this.callBase(t,e.children("."+this.addWidgetPrefix("content")).children(":not(."+this.addWidgetPrefix("table-content")+")")))},dispose:function(){clearTimeout(this._scrollTimeoutID),this.callBase()}}}();t.exports={defaultOptions:function(){return{scrolling:{timeout:300,updateTimeout:300,minTimeout:0,renderingThreshold:100,removeInvisiblePages:!0,rowPageSize:5,mode:"standard",preloadEnabled:!1,rowRenderingMode:"standard"}}},extenders:{dataSourceAdapter:y,controllers:{data:function(){var t={_refreshDataSource:function(){var t=this.callBase.apply(this,arguments)||(new u.Deferred).resolve().promise();return t.done(this.initVirtualRows.bind(this)),t},getRowPageSize:function(){var t=this.option("scrolling.rowPageSize"),e=this.pageSize();return e&&e<t?e:t},reload:function(){var t=this,e=t._rowsScrollController||t._dataSource,n=e&&e.getItemIndexByPosition(),o=this.callBase.apply(this,arguments);return o&&o.done((function(){if(m(t)||_(t)){var e=t.getRowIndexOffset(),o=Math.floor(n)-e,r=t.component,a=r.getScrollable&&r.getScrollable(),s=t.dataSource().operationTypes().sorting;if(a&&!t.option("legacyRendering")&&!s){var l=r.getRowElement(o),u=l&&l[0]&&(0,i.default)(l[0]),c=u&&u.position().top;c>(h.default.mozilla||h.default.msie?1:0)&&(c=Math.round(c+u.outerHeight()*(n%1)),a.scrollTo({y:c}))}}}))},initVirtualRows:function(){var t=this,e=_(t);if("virtual"!==t.option("scrolling.mode")&&!0!==e||!1===e||t.option("legacyRendering")||!t.option("scrolling.rowPageSize"))return t._visibleItems=null,void(t._rowsScrollController=null);t._rowPageIndex=Math.ceil(t.pageIndex()*t.pageSize()/t.getRowPageSize()),t._visibleItems=[];var n=function(e){return"data"===e.rowType&&!e.isNewRow||"group"===e.rowType&&t._dataSource.isGroupItemCountable(e.data)};t._rowsScrollController=new a.default.VirtualScrollController(t.component,{pageSize:function(){return t.getRowPageSize()},totalItemsCount:function(){return m(t)?t.totalItemsCount():t._items.filter(n).length},hasKnownLastPage:function(){return!0},pageIndex:function(e){return void 0!==e&&(t._rowPageIndex=e),t._rowPageIndex},isLoading:function(){return t.isLoading()},pageCount:function(){var t=Math.ceil(this.totalItemsCount()/this.pageSize());return t||1},load:function(){t._rowsScrollController.pageIndex()>=this.pageCount()&&(t._rowPageIndex=this.pageCount()-1,t._rowsScrollController.pageIndex(t._rowPageIndex)),!t._rowsScrollController._dataSource.items().length&&this.totalItemsCount()||t._rowsScrollController.handleDataChanged((function(e){(e=e||{}).changeType=e.changeType||"refresh",e.items=e.items||t._visibleItems,t._visibleItems.forEach((function(t,e){t.rowIndex=e})),t._fireChanged(e)}))},updateLoading:function(){},itemsCount:function(){return t._rowsScrollController._dataSource.items().filter(n).length},correctCount:function(t,e,i){return v(t,e,i,n)},items:function(e){var i=t.dataSource(),o=i&&i.virtualItemsCount(),r=o?o.begin:0,a=t.getRowPageSize(),s=t._rowPageIndex*a-r,l=a,u=t._items;return s<0?[]:(s&&(s=this.correctCount(u,s),u=u.slice(s)),l&&(l=this.correctCount(u,l),u=u.slice(0,l)),e?u.filter(n):u)},viewportItems:function(e){return e&&(t._visibleItems=e),t._visibleItems},onChanged:function(){},changingDuration:function(e){var n=t.dataSource();return n.isLoading()?300:(null===n||void 0===n?void 0:n._renderTime)||0}},!0),t._rowsScrollController.positionChanged.add((function(){var e;null===(e=t._dataSource)||void 0===e||e.setViewportItemIndex(t._rowsScrollController.getViewportItemIndex())})),t.isLoaded()&&t._rowsScrollController.load()},_updateItemsCore:function(t){var e=this,n=this.getRowIndexDelta();this.callBase.apply(this,arguments);var i=this._rowsScrollController;if(i){var o=this._visibleItems,r="refresh"===t.changeType||t.isLiveUpdate;if("append"===t.changeType&&t.items&&!t.items.length)return;r||"append"===t.changeType||"prepend"===t.changeType?(t.cancel=!0,r&&i.reset(!0),i.load()):("update"===t.changeType?t.rowIndices.forEach((function(e,n){var i=t.changeTypes[n],r=t.items[n];"update"===i?o[e]=r:"insert"===i?o.splice(e,0,r):"remove"===i&&o.splice(e,1)})):(o.forEach((function(t,i){o[i]=e._items[i+n]||o[i]})),t.items=o),o.forEach((function(t,e){t.rowIndex=e})))}},_applyChange:function(t){var e=this,n=t.items,i=t.changeType,o=t.removeCount;if(o){var r="prepend"===i;o=v(e._items,o,r,(function(t,n){return"data"===t.rowType&&!t.isNewRow||"group"===t.rowType&&(e._dataSource.isGroupItemCountable(t.data)||n)})),t.removeCount=o}switch(i){case"prepend":e._items.unshift.apply(e._items,n),o&&e._items.splice(-o);break;case"append":e._items.push.apply(e._items,n),o&&e._items.splice(0,o);break;default:e.callBase(t)}},items:function(t){return t?this._items:this._visibleItems||this._items},getRowIndexDelta:function(){var t=this._visibleItems,e=0;return t&&t[0]&&(e=this._items.indexOf(t[0])),e<0?0:e},getRowIndexOffset:function(){var t=0,e=this.dataSource(),n=this._rowsScrollController;return n?t=n.beginPageIndex()*n._dataSource.pageSize():"virtual"===this.option("scrolling.mode")&&e&&(t=e.beginPageIndex()*e.pageSize()),t},viewportSize:function(){var t=this._rowsScrollController;t&&t.viewportSize.apply(t,arguments);var e=this._dataSource;return e&&e.viewportSize.apply(e,arguments)},viewportItemSize:function(){var t=this._rowsScrollController;t&&t.viewportItemSize.apply(t,arguments);var e=this._dataSource;return e&&e.viewportItemSize.apply(e,arguments)},setViewportPosition:function(){var t=this._rowsScrollController,e=this._dataSource;t?t.setViewportPosition.apply(t,arguments):null===e||void 0===e||e.setViewportPosition.apply(e,arguments)},setContentSize:function(t){var e=this._rowsScrollController;e&&e.setContentSize(t);var n=this._dataSource;return n&&n.setContentSize(t)},loadIfNeed:function(){var t=this._rowsScrollController;t&&t.loadIfNeed();var e=this._dataSource;return e&&e.loadIfNeed()},getItemSize:function(){var t=this._rowsScrollController;if(t)return t.getItemSize.apply(t,arguments);var e=this._dataSource;return e&&e.getItemSize.apply(e,arguments)},getItemSizes:function(){var t=this._rowsScrollController;if(t)return t.getItemSizes.apply(t,arguments);var e=this._dataSource;return e&&e.getItemSizes.apply(e,arguments)},getContentOffset:function(){var t=this._rowsScrollController;if(t)return t.getContentOffset.apply(t,arguments);var e=this._dataSource;return e&&e.getContentOffset.apply(e,arguments)},dispose:function(){var t=this._rowsScrollController;t&&t.dispose(),this.callBase.apply(this,arguments)}};return s.default.proxyMethod(t,"virtualItemsCount"),s.default.proxyMethod(t,"getVirtualContentSize"),s.default.proxyMethod(t,"setViewportItemIndex"),t}(),resizing:{resize:function(){var t,e=this,n=e.callBase;if(e.option("legacyRendering")||!m(e)&&!_(e))t=n.apply(e);else{clearTimeout(e._resizeTimeout);var i=new Date-e._lastTime,o=e.option("scrolling.updateTimeout");e._lastTime&&i<o?(t=new u.Deferred,e._resizeTimeout=setTimeout((function(){n.apply(e).done(t.resolve).fail(t.reject),e._lastTime=new Date}),o),e._lastTime=new Date):(t=n.apply(e),e._dataController.isLoaded()&&(e._lastTime=new Date))}return t},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._resizeTimeout)}}},views:{rowsView:b}}}},function(t,e,n){"use strict";var i=f(n(3)),o=n(10),r=f(n(6)),a=f(n(31)),s=n(2),l=f(n(90)),u=n(5),c=f(n(21)),d=n(7),h=f(n(39));function f(t){return t&&t.__esModule?t:{default:t}}var p=function(t){return"virtual"===t.option("scrolling.mode")||t._isVirtual},m=function(t){return"infinite"===t.option("scrolling.mode")&&!t._isVirtual};e.getPixelRatio=function(t){return t.devicePixelRatio||1},e.getContentHeightLimit=function(t){return t.msie?4e6:t.mozilla?8e6:15e6/e.getPixelRatio((0,o.getWindow)())},e.subscribeToExternalScrollers=function(t,e,n){var a,s=[],c=[],d=[];function h(e){var n=e.element?e.$element():e,i=l.default.offset(n);return i?e.scrollTop()-(i.top-t.offset().top):t.offset().top}var f={on:function(t,e,n){t.on("scroll",n)},off:function(t,e,n){t.off("scroll",n)}};function p(t){var n="#document"===t.get(0).nodeName,a=t.data("dxScrollable"),l=f;if(a||(a=n&&(0,i.default)((0,o.getWindow)())||"auto"===t.css("overflowY")&&t,l=r.default,a)){var u=function(t){return function(){var n=t.scrollTop()-h(t);e(n=n>0?n:0)}}(a);l.on(a,"scroll",u),c.push((function(t){var e=h(a),n=a.scrollTo?"scrollTo":"scrollTop";t-e>=0&&a[n](t+e)})),s.push(a),d.push((function(){l.off(a,"scroll",u)}))}}for(a=(n=n||t).parent();a.length;a=a.parent())p(a);return{scrollTo:function(t){(0,u.each)(c,(function(e,n){n(t)}))},dispose:function(){(0,u.each)(d,(function(t,e){e()}))}}},e.VirtualScrollController=c.default.inherit(function(){var t=function(t,e){var n=t.option("scrolling.preloadEnabled"),i=function(t){var e=t._dataSource.pageSize();if(t.option("scrolling.preventPreload"))return 0;var n=t._viewportSize;if(p(t)&&!t.option("legacyRendering")&&t.option("scrolling.removeInvisiblePages")){n=0;for(var i=t._viewportSize*t._viewportItemSize,o=t.getContentOffset(),r=t._position||0,a=t.virtualItemsCount(),s=t._dataSource.totalItemsCount(),l=a.begin;l<s&&!(o>=r+i);l++){(o+=t._itemSizes[l]||t._viewportItemSize)>=r&&n++}}return e&&n>0?Math.ceil(n/e):1}(t);return i&&(e?i=n?1:0:(n&&i++,m(t)&&i--)),i};function n(t){return t._cache.length?t._cache[0].pageIndex:-1}function i(t){return t._cache.length?t._cache[t._cache.length-1].pageIndex:-1}var o=function(t,e,n){t._isChangedFiring=!0,e(n),t._isChangedFiring=!1},r=function(t,e,n){if(t._isDelayChanged)return t._isDelayChanged=!1,o(t,e,n),!0},l=function(t,e,n,i,r){var a=t._dataSource,l=a.items().slice(),u=(0,s.isObject)(n)?n:void 0,c="prepend"===n,d=a.viewportItems();n&&(0,s.isString)(n)&&!t._isDelayChanged&&(u={changeType:n,items:l},r&&(u.removeCount=r.itemsCount,u.removeCount&&a.correctCount&&(u.removeCount=a.correctCount(d,u.removeCount,c))));var h=r?r.itemsLength:0;h&&a.correctCount&&(h=a.correctCount(d,h,c)),"append"===n?(d.push.apply(d,l),r&&d.splice(0,h)):c?(d.unshift.apply(d,l),r&&d.splice(-h)):t._dataSource.viewportItems(l),a.updateLoading(),t._lastPageIndex=t.pageIndex(),t._isDelayChanged=i,i||o(t,e,u)};return{ctor:function(t,e,n){this._dataSource=e,this.component=t,this._pageIndex=this._lastPageIndex=e.pageIndex(),this._viewportSize=0,this._viewportItemSize=20,this._viewportItemIndex=-1,this._itemSizes={},this._sizeRatio=1,this._items=[],this._cache=[],this._isVirtual=n,this._loadingPageIndexes={},this.positionChanged=(0,h.default)()},getItemSizes:function(){return this._itemSizes},option:function(){return this.component.option.apply(this.component,arguments)},virtualItemsCount:function(){var t,e=0;if(p(this)){(t=n(this))<0&&(t=this._dataSource.pageIndex());var i=t*this._dataSource.pageSize();return e=this._cache.length*this._dataSource.pageSize(),{begin:i,end:Math.max(0,this._dataSource.totalItemsCount()-e-i)}}},setViewportPosition:function(t){var e=this,n=new d.Deferred,i=Math.min(e.option("scrolling.timeout")||0,e._dataSource.changingDuration());return i<e.option("scrolling.renderingThreshold")&&(i=e.option("scrolling.minTimeout")||0),clearTimeout(e._scrollTimeoutID),i>0?e._scrollTimeoutID=setTimeout((function(){e._setViewportPositionCore(t),n.resolve()}),i):(e._setViewportPositionCore(t),n.resolve()),n.promise()},getViewportPosition:function(){return this._position||0},getItemIndexByPosition:function(){for(var t=this._position,e=this.getItemSize(),n=0,i=0,o=Object.keys(this._itemSizes).concat(-1),r=0;r<o.length&&n<t;r++){var a=parseInt(o[r]),s=(t-n)/e;if(a<0||i+s<a){i+=s;break}n+=(s=a-i)*e,i+=s;var l=this._itemSizes[a];i+=(n+=l)<t?1:(t-n+l)/l}return Math.round(50*i)/50},_setViewportPositionCore:function(t){this._position=t;var e=this.getItemIndexByPosition(),n=this.setViewportItemIndex(e);return this.positionChanged.fire(),n},setContentSize:function(t){var n=this,i=Array.isArray(t)&&t,o=n.virtualItemsCount();if(i&&(t=i.reduce((function(t,e){return t+e}),0)),n._contentSize=t,o){i&&i.forEach((function(t,e){n._itemSizes[o.begin+e]=t}));var r=(o.begin+o.end+n.itemsCount())*n._viewportItemSize,s=e.getContentHeightLimit(a.default);n._sizeRatio=r>s?s/r:1}},getItemSize:function(){return this._viewportItemSize*this._sizeRatio},getItemOffset:function(t,e){var n=this,i=n.virtualItemsCount(),o=t;if(!i)return 0;var r=0,a=n._dataSource.totalItemsCount();return Object.keys(n._itemSizes).forEach((function(i){o&&(e?i>=a-t:i<t)&&(r+=n._itemSizes[i],o--)})),Math.floor(r+o*n._viewportItemSize*n._sizeRatio)},getContentOffset:function(t){var e="end"===t,n=this.virtualItemsCount();return n?this.getItemOffset(e?n.end:n.begin,e):0},getVirtualContentSize:function(){return this.virtualItemsCount()?this.getContentOffset("begin")+this.getContentOffset("end")+this._contentSize:0},getViewportItemIndex:function(){return this._viewportItemIndex},setViewportItemIndex:function(t){var e,n=this._dataSource.pageSize(),i=this._dataSource.pageCount(),o=p(this),r=m(this),a=this._dataSource.totalItemsCount();if(this._viewportItemIndex=t,n&&(o||r)&&a>=0){if(this._viewportSize&&t+this._viewportSize>=a&&!this._isVirtual)if(this._dataSource.hasKnownLastPage()){var s=a%n;(e=i-1)>0&&s>0&&s<this._viewportSize&&e--}else e=i;else{e=Math.floor(t/n);var l=i-1;e=Math.max(e,0),e=Math.min(e,l)}return this.pageIndex(e),this.load()}},viewportItemSize:function(t){return void 0!==t&&(this._viewportItemSize=t),this._viewportItemSize},viewportSize:function(t){return void 0!==t&&(this._viewportSize=t),this._viewportSize},pageIndex:function(t){return p(this)||m(this)?(void 0!==t&&(this._pageIndex=t),this._pageIndex):this._dataSource.pageIndex(t)},beginPageIndex:function(t){var e=n(this);return e<0&&(e=void 0!==t?t:this.pageIndex()),e},endPageIndex:function(){var t=i(this);return t>0?t:this._lastPageIndex},pageSize:function(){return this._dataSource.pageSize()},load:function(){var e,o=this,r=o._dataSource;if(p(o)||m(o)){var a=function(e){var o=-1,r=n(e),a=e._dataSource;if(r<0)o=e._pageIndex;else if(e._cache[e._pageIndex-r]){if(r>=0&&e._viewportSize>=0){if(r>0)(i(e)+1===a.pageCount()&&e._cache.length<t(e)+1||e._pageIndex===r&&t(e,!0))&&(o=r-1);if(o<0)r+e._cache.length<=e._pageIndex+t(e)&&(o=r+e._cache.length)}}else o=e._pageIndex;return e._loadingPageIndexes[o]&&(o=-1),o}(o);if(a>=0){var s=function(t,e){var n=t._dataSource;if(e===t.pageIndex()||!n.isLoading()&&e<n.pageCount()||!n.hasKnownLastPage()&&e===n.pageCount())return n.pageIndex(e),t._loadingPageIndexes[e]=!0,(0,d.when)(n.load()).always((function(){t._loadingPageIndexes[e]=!1}))}(o,a);s&&(e=new d.Deferred,s.done((function(){var t=o._delayDeferred;t?t.done(e.resolve).fail(e.reject):e.resolve()})).fail(e.reject),r.updateLoading())}}else e=r.load();return e||o._lastPageIndex===o.pageIndex()||o._dataSource.onChanged({changeType:"pageIndex"}),e||(new d.Deferred).resolve()},loadIfNeed:function(){if((p(this)||m(this))&&!this._dataSource.isLoading()&&(!this._isChangedFiring||this._isVirtual)){var t=this.getViewportPosition();t>0?this._setViewportPositionCore(t):this.load()}},handleDataChanged:function(e,a){var s,u,c=this,d=c._dataSource,h=c._cache.length;if(a&&a.changes)o(c,e,a);else if(p(c)||m(c)){var f=n(c);if(f>=0&&(p(c)&&f+c._cache.length!==d.pageIndex()&&f-1!==d.pageIndex()&&(h=0,c._cache=[]),m(c)))if(0===d.pageIndex())c._cache=[];else if(d.pageIndex()<i(c))return void o(c,e,{changeType:"append",items:[]});var g,_={pageIndex:d.pageIndex(),itemsLength:d.items(!0).length,itemsCount:c.itemsCount(!0)};!c.option("legacyRendering")&&c.option("scrolling.removeInvisiblePages")&&p(c)?u=c._cache.length>Math.max(t(this)+(c.option("scrolling.preloadEnabled")?1:0),2):r(c,e,{isDelayed:!0}),f===d.pageIndex()+1?(u&&(g=c._cache.pop()),s="prepend",c._cache.unshift(_)):(u&&(g=c._cache.shift()),s="append",c._cache.push(_));var v=p(c)&&0===h;l(c,e,c._cache.length>1?s:void 0,v,g),c._delayDeferred=c.load().done((function(){r(c,e)&&c.load()}))}else l(c,e,a)},itemsCount:function(t){var e=0;return!t&&p(this)?(0,u.each)(this._cache,(function(){e+=this.itemsCount})):e=this._dataSource.itemsCount(),e},reset:function(t){this._loadingPageIndexes={},this._cache=[],t||(this._itemSizes={})},subscribeToWindowScrollEvents:function(t){var n=this;n._windowScroll=n._windowScroll||e.subscribeToExternalScrollers(t,(function(t){n.viewportItemSize()&&n.setViewportPosition(t)}))},dispose:function(){clearTimeout(this._scrollTimeoutID),this._windowScroll&&this._windowScroll.dispose(),this._windowScroll=null},scrollTo:function(t){this._windowScroll&&this._windowScroll.scrollTo(t)}}}())},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(6)),r=n(2),a=n(0),s=n(11),l=g(n(5)),u=g(n(44)),c=g(n(40)),d=g(n(12)),h=g(n(62)),f=g(n(80)),p=g(n(454)),m=n(125);function g(t){return t&&t.__esModule?t:{default:t}}var _={"=":"filter-operation-equals","<>":"filter-operation-not-equals","<":"filter-operation-less","<=":"filter-operation-less-equal",">":"filter-operation-greater",">=":"filter-operation-greater-equal",default:"filter-operation-default",notcontains:"filter-operation-not-contains",contains:"filter-operation-contains",startswith:"filter-operation-starts-with",endswith:"filter-operation-ends-with",between:"filter-operation-between"},v={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",between:"between"},y=["date","datetime","number"];function b(t){return"onClick"===t.option("filterRow.applyFilter")}var w=function(){var t=function(t){var e=t&&t.children(),n=e&&e.data("dxComponents"),i=n&&n.length&&e.data(n[0]);if(i instanceof h.default)return i},e=function(t,e){var i="",o="",a=n(t,e),s=c.default.getFormatOptionsByColumn(e,"filterRow");return Array.isArray(a)?(i=c.default.formatValue(a[0],s),""!==(o=c.default.formatValue(a[1],s))&&(i+=" - "+o)):(0,r.isDefined)(a)&&(i=c.default.formatValue(a,s)),i};function n(t,e){if(e)return b(t)&&void 0!==e.bufferedFilterValue?e.bufferedFilterValue:e.filterValue}var u=function(t,e){if(e)return b(t)&&void 0!==e.bufferedSelectedFilterOperation?e.bufferedSelectedFilterOperation:e.selectedFilterOperation},g=function(t,e,i){var o=t._columnsController.columnOption(e),r=n(t,o),a=i.closest("."+t.addWidgetPrefix("filter-range-overlay")).length,s=i.hasClass(t.addWidgetPrefix("filter-range-start"));return r&&Array.isArray(r)&&"between"===u(t,o)?s?r[0]:r[1]:!a&&function(t,e){return!(e&&y.indexOf(e.dataType)>=0&&Array.isArray(t))&&void 0!==t}(r,o)?r:null},w=function(t,e){var i=""===e.value?null:e.value,o=e.container,a=t._columnsController.columnOption(e.column.index),s=g(t,a.index,o);((0,r.isDefined)(s)||(0,r.isDefined)(i))&&(t._applyFilterViewController.setHighLight(o,s!==i),t._columnsController.columnOption(a.index,b(t)?"bufferedFilterValue":"filterValue",function(t,e,i,o){if("between"===u(t,i)){var r=n(t,i);return o.hasClass(t.addWidgetPrefix("filter-range-start"))?[e,Array.isArray(r)?r[1]:void 0]:[Array.isArray(r)?r[0]:r,e]}return e}(t,i,a,o),e.notFireEvent))};return{_updateEditorValue:function(e,n){var i=t(n);i&&i.option("value",g(this,e.index,n))},_columnOptionChanged:function(t){var n,o,r,a,s=t.optionNames;if(c.default.checkChanges(s,["filterValue","bufferedFilterValue","selectedFilterOperation","bufferedSelectedFilterOperation"])&&void 0!==t.columnIndex){var l=this._columnsController.getVisibleIndex(t.columnIndex),d=this._columnsController.columnOption(t.columnIndex);if(o=(n=this._getCellElement(this.element().find("."+this.addWidgetPrefix("filter-row")).index(),l)||(0,i.default)()).find(".dx-editor-container").first(),s.filterValue||s.bufferedFilterValue){this._updateEditorValue(d,o);var h=n.find("."+this.addWidgetPrefix("filter-range-overlay")).data("dxOverlay");h&&(r=h.$content().find(".dx-editor-container"),this._updateEditorValue(d,r.first()),this._updateEditorValue(d,r.last())),h&&h.option("visible")||this._updateFilterRangeContent(n,e(this,d))}(s.selectedFilterOperation||s.bufferedSelectedFilterOperation)&&l>=0&&d&&(a=n.find(".dx-menu")).length&&(this._updateFilterOperationChooser(a,d,o),"between"===u(this,d)?this._renderFilterRangeContent(n,d):o.find(".dx-filter-range-content").length&&(this._renderEditor(o,this._getEditorOptions(o,d)),this._hideFilterRange()))}else this.callBase(t)},_renderCore:function(){this._filterRangeOverlayInstance=null,this.callBase.apply(this,arguments)},_resizeCore:function(){this.callBase.apply(this,arguments),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.repaint()},isFilterRowVisible:function(){return this._isElementVisible(this.option("filterRow"))},isVisible:function(){return this.callBase()||this.isFilterRowVisible()},init:function(){this.callBase(),this._applyFilterViewController=this.getController("applyFilter")},_initFilterRangeOverlay:function(t,n){var r=this,a={},l=t.find(".dx-editor-container"),c=(0,i.default)("<div>").addClass(r.addWidgetPrefix("filter-range-overlay")).appendTo(t);return r._createComponent(c,f.default,{height:"auto",shading:!1,showTitle:!1,focusStateEnabled:!1,closeOnTargetScroll:!1,closeOnOutsideClick:!0,animation:!1,position:{my:"top",at:"top",of:l.length&&l||t,offset:"0 -1"},contentTemplate:function(e){var l,u=(0,i.default)("<div>").addClass("dx-editor-container "+r.addWidgetPrefix("filter-range-start")).appendTo(e);return n=r._columnsController.columnOption(n.index),(l=r._getEditorOptions(u,n)).sharedData=a,r._renderEditor(u,l),o.default.on(u.find("input:not([type='hidden'])"),"keydown",(function(e){var n=t.find("[tabindex]").not(e.target).first();"tab"===(0,s.normalizeKeyName)(e)&&e.shiftKey&&(e.preventDefault(),r._hideFilterRange(),n.length||(n=t.prev().find("[tabindex]").last()),o.default.trigger(n,"focus"))})),u=(0,i.default)("<div>").addClass("dx-editor-container "+r.addWidgetPrefix("filter-range-end")).appendTo(e),(l=r._getEditorOptions(u,n)).sharedData=a,r._renderEditor(u,l),o.default.on(u.find("input:not([type='hidden'])"),"keydown",(function(e){"tab"!==(0,s.normalizeKeyName)(e)||e.shiftKey||(e.preventDefault(),r._hideFilterRange(),o.default.trigger(t.next().find("[tabindex]").first(),"focus"))})),(0,i.default)(e).addClass(r.getWidgetContainerClass())},onShown:function(t){var e=t.component.$content().find(".dx-editor-container").first();o.default.trigger(e.find("input:not([type='hidden'])"),"focus")},onHidden:function(){n=r._columnsController.columnOption(n.index),t.find(".dx-menu").parent().addClass("dx-editor-with-menu"),"between"===u(r,n)&&(r._updateFilterRangeContent(t,e(r,n)),r.component.updateDimensions())}})},_updateFilterRangeOverlay:function(t){var e=this._filterRangeOverlayInstance;e&&e.option(t)},_showFilterRange:function(t,e){var n=t.children("."+this.addWidgetPrefix("filter-range-overlay")),i=n.length&&n.data("dxOverlay");!i&&e&&(i=this._initFilterRangeOverlay(t,e)),i.option("visible")||(this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.hide(),this._filterRangeOverlayInstance=i,this._updateFilterRangeOverlay({width:t.outerWidth(!0)+1}),this._filterRangeOverlayInstance&&this._filterRangeOverlayInstance.show())},_hideFilterRange:function(){var t=this._filterRangeOverlayInstance;t&&t.hide()},getFilterRangeOverlayInstance:function(){return this._filterRangeOverlayInstance},_createRow:function(t){var e=this,n=this.callBase(t);return"filter"===t.rowType&&(n.addClass(this.addWidgetPrefix("filter-row")),this.option("useLegacyKeyboardNavigation")||o.default.on(n,"keydown",(function(t){return(0,m.selectView)("filterRow",e,t)}))),n},_getRows:function(){var t=this.callBase();return this.isFilterRowVisible()&&t.push({rowType:"filter"}),t},_renderFilterCell:function(t,e){var n=e.column,o=(0,i.default)(t);this.component.option("showColumnHeaders")&&this.setAria("describedby",n.headerId,o),this.setAria("label",d.default.format("dxDataGrid-ariaFilterCell"),o),o.addClass("dx-editor-cell");var r=(0,i.default)("<div>").appendTo(o),a=(0,i.default)("<div>").addClass("dx-editor-container").appendTo(r);if("between"===u(this,n))this._renderFilterRangeContent(o,n);else{var s=this._getEditorOptions(a,n);this._renderEditor(a,s)}var l=n.alignment;l&&"center"!==l&&o.find("input:not([type='hidden'])").first().css("textAlign",n.alignment),n.filterOperations&&n.filterOperations.length&&this._renderFilterOperationChooser(r,n,a)},_renderCellContent:function(t,e){var n=this,i=e.column;if("filter"===e.rowType)if(i.command)t.html(" ");else if(i.allowFiltering)return void n.renderTemplate(t,n._renderFilterCell.bind(n),e).done((function(){n._updateCell(t,e)}));n.callBase(t,e)},_getEditorOptions:function(t,e){var n=this,i={editorOptions:{inputAttr:n._getFilterInputAccessibilityAttributes(e)}},o=(0,a.extend)(i,e,{value:g(n,e.index,t),parentType:"filterRow",showAllText:n.option("filterRow.showAllText"),updateValueTimeout:"onClick"===n.option("filterRow.applyFilter")?0:700,width:null,setValue:function(i,o){w(n,{column:e,value:i,container:t,notFireEvent:o})}});return"between"===u(n,e)&&(t.hasClass(n.addWidgetPrefix("filter-range-start"))?o.placeholder=n.option("filterRow.betweenStartText"):o.placeholder=n.option("filterRow.betweenEndText")),o},_getFilterInputAccessibilityAttributes:function(t){var e=d.default.format("dxDataGrid-ariaFilterCell");return this.component.option("showColumnHeaders")?{"aria-label":e,"aria-describedby":t.headerId}:{"aria-label":e}},_renderEditor:function(t,e){return t.empty(),this.getController("editorFactory").createEditor((0,i.default)("<div>").appendTo(t),e)},_renderFilterRangeContent:function(t,n){var r=this,a=t.find(".dx-editor-container").first();a.empty();var s=(0,i.default)("<div>").addClass("dx-filter-range-content").attr("tabindex",this.option("tabIndex"));o.default.on(s,"focusin",(function(){r._showFilterRange(t,n)})),s.appendTo(a),r._updateFilterRangeContent(t,e(r,n))},_updateFilterRangeContent:function(t,e){var n=t.find(".dx-filter-range-content");n.length&&(""===e?n.html(" "):n.text(e))},_updateFilterOperationChooser:function(e,n,i){var r,a=this,s=function(){var t=p.default.getInstance(e);t&&t.option("focusedElement",null),r&&a._focusEditor(i)};a._createComponent(e,p.default,{integrationOptions:{},activeStateEnabled:!1,selectionMode:"single",cssClass:a.getWidgetContainerClass()+" dx-cell-focus-disabled dx-filter-menu",showFirstSubmenuMode:"onHover",hideSubmenuOnMouseLeave:!0,items:[{disabled:!n.filterOperations||!n.filterOperations.length,icon:_[u(a,n)||"default"],selectable:!1,items:a._getFilterOperationMenuItems(n)}],onItemClick:function(e){var o=e.itemData.name,r=u(a,n),s=!1,l=b(a),c={};if(!(e.itemData.items||o&&o===r)){if(o?(c[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=o,"between"!==o&&"between"!==r||(s="between"===o,c[l?"bufferedFilterValue":"filterValue"]=null)):(c[l?"bufferedFilterValue":"filterValue"]=null,c[l?"bufferedSelectedFilterOperation":"selectedFilterOperation"]=n.defaultSelectedFilterOperation||null),a._columnsController.columnOption(n.index,c),a._applyFilterViewController.setHighLight(i,!0),!o){var d=t(i);d&&"dxDateBox"===d.NAME&&!d.option("isValid")&&(d.reset(),d.option("isValid",!0))}s?a._showFilterRange(i.closest(".dx-editor-cell"),n):a._focusEditor(i)}},onSubmenuShown:function(){r=a._isEditorFocused(i),a.getController("editorFactory").loseFocus()},onSubmenuHiding:function(){o.default.trigger(e,"blur"),s()},onContentReady:function(t){o.default.on(e,"blur",(function(){var e=t.component;e._hideSubmenu(e._visibleSubmenu),s()}))},rtlEnabled:a.option("rtlEnabled")})},_isEditorFocused:function(t){return t.hasClass("dx-focused")||t.parents(".dx-focused").length},_focusEditor:function(t){this.getController("editorFactory").focus(t),o.default.trigger(t.find("input:not([type='hidden'])"),"focus")},_renderFilterOperationChooser:function(t,e,n){var o;this.option("filterRow.showOperationChooser")&&(t.addClass("dx-editor-with-menu"),o=(0,i.default)("<div>").prependTo(t),this._updateFilterOperationChooser(o,e,n))},_getFilterOperationMenuItems:function(t){var e=this,n=[{}],i=e.option("filterRow"),o=i&&i.operationDescriptions||{};if(t.filterOperations&&t.filterOperations.length){var a=t.filterOperations.filter((function(t){return(0,r.isDefined)(v[t])}));(n=l.default.map(a,(function(n){var i=v[n];return{name:n,selected:(u(e,t)||t.defaultFilterOperation)===n,text:o[i],icon:_[n]}}))).push({name:null,text:i&&i.resetOperationText,icon:_.default})}return n},optionChanged:function(t){switch(t.name){case"filterRow":case"showColumnLines":this._invalidate(!0,!0),t.handled=!0;break;default:this.callBase(t)}}}}(),x={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var t=[this.callBase()],e=this._columnsController.getVisibleColumns(null,!0);return l.default.each(e,(function(){if(this.allowFiltering&&this.calculateFilterExpression&&(0,r.isDefined)(this.filterValue)){var e=this.createFilterExpression(this.filterValue,this.selectedFilterOperation||this.defaultFilterOperation,"filterRow");t.push(e)}})),c.default.combineFilters(t)}};e.ApplyFilterViewController=u.default.ViewController.inherit({_getHeaderPanel:function(){return this._headerPanel||(this._headerPanel=this.getView("headerPanel")),this._headerPanel},setHighLight:function(t,e){b(this)&&(t&&t.toggleClass("dx-highlight-outline",e)&&t.closest(".dx-editor-cell").toggleClass("dx-filter-modified",e),this._getHeaderPanel().enableApplyButton(e))},applyFilter:function(){var t=this.getController("columns"),e=t.getColumns();t.beginUpdate();for(var n=0;n<e.length;n++){var i=e[n];void 0!==i.bufferedFilterValue&&(t.columnOption(n,"filterValue",i.bufferedFilterValue),i.bufferedFilterValue=void 0),void 0!==i.bufferedSelectedFilterOperation&&(t.columnOption(n,"selectedFilterOperation",i.bufferedSelectedFilterOperation),i.bufferedSelectedFilterOperation=void 0)}t.endUpdate(),this.removeHighLights()},removeHighLights:function(){if(b(this)){var t=this.getView("columnHeadersView").element();t.find("."+this.addWidgetPrefix("filter-row")+" .dx-highlight-outline").removeClass("dx-highlight-outline"),t.find("."+this.addWidgetPrefix("filter-row")+" .dx-filter-modified").removeClass("dx-filter-modified"),this._getHeaderPanel().enableApplyButton(!1)}}}),t.exports={defaultOptions:function(){return{filterRow:{visible:!1,showOperationChooser:!0,showAllText:d.default.format("dxDataGrid-filterRowShowAllText"),resetOperationText:d.default.format("dxDataGrid-filterRowResetOperationText"),applyFilter:"auto",applyFilterText:d.default.format("dxDataGrid-applyFilterText"),operationDescriptions:{equal:d.default.format("dxDataGrid-filterRowOperationEquals"),notEqual:d.default.format("dxDataGrid-filterRowOperationNotEquals"),lessThan:d.default.format("dxDataGrid-filterRowOperationLess"),lessThanOrEqual:d.default.format("dxDataGrid-filterRowOperationLessOrEquals"),greaterThan:d.default.format("dxDataGrid-filterRowOperationGreater"),greaterThanOrEqual:d.default.format("dxDataGrid-filterRowOperationGreaterOrEquals"),startsWith:d.default.format("dxDataGrid-filterRowOperationStartsWith"),contains:d.default.format("dxDataGrid-filterRowOperationContains"),notContains:d.default.format("dxDataGrid-filterRowOperationNotContains"),endsWith:d.default.format("dxDataGrid-filterRowOperationEndsWith"),between:d.default.format("dxDataGrid-filterRowOperationBetween"),isBlank:d.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:d.default.format("dxFilterBuilder-filterOperationIsNotBlank")},betweenStartText:d.default.format("dxDataGrid-filterRowOperationBetweenStartText"),betweenEndText:d.default.format("dxDataGrid-filterRowOperationBetweenEndText")}}},controllers:{applyFilter:e.ApplyFilterViewController},extenders:{controllers:{data:x,columnsResizer:{_startResizing:function(){var t=this;if(t.callBase.apply(t,arguments),t.isResizing()){var e=t._columnHeadersView.getFilterRangeOverlayInstance();if(e){var n=e.$element().closest("td").index();n!==t._targetPoint.columnIndex&&n!==t._targetPoint.columnIndex+1||e.$content().hide()}}},_endResizing:function(){var t,e=this;if(e.isResizing()){var n=e._columnHeadersView.getFilterRangeOverlayInstance();n&&(t=n.$element().closest("td"),e._columnHeadersView._updateFilterRangeOverlay({width:t.outerWidth(!0)+1}),n.$content().show())}e.callBase.apply(e,arguments)}}},views:{columnHeadersView:w,headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this._prepareFilterItem(t).concat(t)},_prepareFilterItem:function(){var t=this,e=[];if(t._isShowApplyFilterButton()){var n=t.option("filterRow.applyFilterText"),o={widget:"dxButton",options:{icon:"apply-filter",disabled:!t._columnsController.getColumns().filter((function(t){return void 0!==t.bufferedFilterValue})).length,onClick:function(){t._applyFilterViewController.applyFilter()},hint:n,text:n,onInitialized:function(e){(0,i.default)(e.element).addClass(t._getToolbarButtonClass("dx-apply-button"))}},showText:"inMenu",name:"applyFilterButton",location:"after",locateInMenu:"auto",sortIndex:10};e.push(o)}return e},_isShowApplyFilterButton:function(){var t=this.option("filterRow");return t&&t.visible&&"onClick"===t.applyFilter},init:function(){this.callBase(),this._dataController=this.getController("data"),this._applyFilterViewController=this.getController("applyFilter")},enableApplyButton:function(t){this.setToolbarItemDisabled("applyFilterButton",!t)},isVisible:function(){return this.callBase()||this._isShowApplyFilterButton()},optionChanged:function(t){"filterRow"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}}}}}},function(t,e,n){"use strict";var i,o=n(455),r=(i=o)&&i.__esModule?i:{default:i};t.exports=r.default,t.exports.default=t.exports},function(t,e,n){"use strict";var i=b(n(3)),o=b(n(6)),r=b(n(8)),a=n(4),s=n(17),l=n(5),u=n(2),c=n(0),d=n(296),h=n(11),f=b(n(28)),p=b(n(216)),m=b(n(415)),g=b(n(80)),_=b(n(821)),v=b(n(42)),y=b(n(168));function b(t){return t&&t.__esModule?t:{default:t}}function w(t){return(w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function C(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function S(t,e,n){return(S="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=E(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return T(this,n)}}function T(t,e){return!e||"object"!==w(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O={show:50,hide:300},M=["onSubmenuShowing","onSubmenuShown","onSubmenuHiding","onSubmenuHidden","onItemContextMenu","onItemClick","onSelectionChanged","onItemRendered"],P=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(b,t);var e,n,r,m=I(b);function b(){return x(this,b),m.apply(this,arguments)}return e=b,(n=[{key:"_getDefaultOptions",value:function(){return(0,c.extend)(S(E(b.prototype),"_getDefaultOptions",this).call(this),{orientation:"horizontal",submenuDirection:"auto",showFirstSubmenuMode:{name:"onClick",delay:{show:50,hide:300}},hideSubmenuOnMouseLeave:!1,onSubmenuShowing:null,onSubmenuShown:null,onSubmenuHiding:null,onSubmenuHidden:null,adaptivityEnabled:!1})}},{key:"_setOptionsByReference",value:function(){S(E(b.prototype),"_setOptionsByReference",this).call(this),(0,c.extend)(this._optionsByReference,{animation:!0,selectedItem:!0})}},{key:"_itemElements",value:function(){var t=S(E(b.prototype),"_itemElements",this).call(this),e=this._submenuItemElements();return t.add(e)}},{key:"_submenuItemElements",value:function(){var t=[],e=".".concat("dx-menu-item"),n=this._submenus.length&&this._submenus[0];return n&&n.itemsContainer()&&(t=n.itemsContainer().find(e)),t}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_isMenuHorizontal",value:function(){return"horizontal"===this.option("orientation")}},{key:"_moveFocus",value:function(t){var e,n,i,o=this._getAvailableItems(),r=this._isMenuHorizontal(),a=this._getActiveItem(!0);switch(t){case"up":n=r?"showSubmenu":this._getItemsNavigationOperation("prevItem"),e=r?a:o,i=this._getKeyboardNavigationAction(n,e)();break;case"down":n=r?"showSubmenu":this._getItemsNavigationOperation("nextItem"),e=r?a:o,i=this._getKeyboardNavigationAction(n,e)();break;case"right":n=r?this._getItemsNavigationOperation("nextItem"):"showSubmenu",e=r?o:a,i=this._getKeyboardNavigationAction(n,e)();break;case"left":n=r?this._getItemsNavigationOperation("prevItem"):"showSubmenu",e=r?o:a,i=this._getKeyboardNavigationAction(n,e)();break;default:return S(E(b.prototype),"_moveFocus",this).call(this,t)}i&&0!==i.length&&this.option("focusedElement",(0,s.getPublicElement)(i))}},{key:"_getItemsNavigationOperation",value:function(t){var e=t;return this.option("rtlEnabled")&&(e="prevItem"===t?"nextItem":"prevItem"),e}},{key:"_getKeyboardNavigationAction",value:function(t,e){var n=a.noop;switch(t){case"showSubmenu":e.hasClass("dx-state-disabled")||(n=this._showSubmenu.bind(this,e));break;case"nextItem":n=this._nextItem.bind(this,e);break;case"prevItem":n=this._prevItem.bind(this,e)}return n}},{key:"_clean",value:function(){S(E(b.prototype),"_clean",this).call(this),this.option("templatesRenderAsynchronously")&&clearTimeout(this._resizeEventTimer)}},{key:"_visibilityChanged",value:function(t){t&&(this._menuItemsWidth||this._updateItemsWidthCache(),this._dimensionChanged())}},{key:"_isAdaptivityEnabled",value:function(){return this.option("adaptivityEnabled")&&"horizontal"===this.option("orientation")}},{key:"_updateItemsWidthCache",value:function(){var t=this.$element().find("ul").first().children("li").children(".".concat("dx-menu-item"));this._menuItemsWidth=this._getSummaryItemsWidth(t,!0)}},{key:"_dimensionChanged",value:function(){if(this._isAdaptivityEnabled()){var t=this.$element().outerWidth();this._toggleAdaptiveMode(this._menuItemsWidth>t)}}},{key:"_init",value:function(){S(E(b.prototype),"_init",this).call(this),this._submenus=[]}},{key:"_initActions",value:function(){var t=this;this._actions={},(0,l.each)(M,(function(e,n){t._actions[n]=t._createActionByOption(n)}))}},{key:"_initMarkup",value:function(){this._visibleSubmenu=null,this.$element().addClass("dx-menu"),S(E(b.prototype),"_initMarkup",this).call(this),this.setAria("role","menubar")}},{key:"_render",value:function(){S(E(b.prototype),"_render",this).call(this),this._initAdaptivity()}},{key:"_renderHamburgerButton",value:function(){return this._hamburger=new v.default((0,i.default)("<div>").addClass("dx-menu-hamburger-button"),{icon:"menu",activeStateEnabled:!1,onClick:this._toggleTreeView.bind(this)}),this._hamburger.$element()}},{key:"_toggleTreeView",value:function(t){(0,u.isPlainObject)(t)&&(t=!this._overlay.option("visible")),this._overlay.option("visible",t),this._toggleHamburgerActiveState(t)}},{key:"_toggleHamburgerActiveState",value:function(t){this._hamburger&&this._hamburger.$element().toggleClass("dx-state-active",t)}},{key:"_toggleAdaptiveMode",value:function(t){var e=this.$element().find(".".concat("dx-menu-horizontal")),n=this.$element().find(".".concat("dx-menu-adaptive-mode"));t?this._hideVisibleSubmenu():(this._treeView&&this._treeView.collapseAll(),this._overlay&&this._toggleTreeView(t)),e.toggle(!t),n.toggle(t)}},{key:"_removeAdaptivity",value:function(){this._$adaptiveContainer&&(this._toggleAdaptiveMode(!1),this._$adaptiveContainer.remove(),this._$adaptiveContainer=null,this._treeView=null,this._hamburger=null,this._overlay=null)}},{key:"_treeviewItemClickHandler",value:function(t){this._actions.onItemClick(t),t.node.children.length||this._toggleTreeView(!1)}},{key:"_getAdaptiveOverlayOptions",value:function(){var t=this,e=this.option("rtlEnabled")?"right":"left";return{maxHeight:function(){return(0,d.getElementMaxHeightByWindow)(t.$element())},deferRendering:!1,shading:!1,animation:!1,closeOnTargetScroll:!0,onHidden:function(){t._toggleHamburgerActiveState(!1)},height:"auto",closeOnOutsideClick:function(t){return!(0,i.default)(t.target).closest(".".concat("dx-menu-hamburger-button")).length},position:{collision:"flipfit",at:"bottom "+e,my:"top "+e,of:this._hamburger.$element()}}}},{key:"_getTreeViewOptions",value:function(){var t=this,e={};return(0,l.each)(["rtlEnabled","width","accessKey","activeStateEnabled","animation","dataSource","disabled","displayExpr","displayExpr","focusStateEnabled","hint","hoverStateEnabled","itemsExpr","items","itemTemplate","selectedExpr","selectionMode","tabIndex","visible"],(function(n,i){e[i]=t.option(i)})),(0,l.each)(["onItemContextMenu","onSelectionChanged"],(function(n,i){e[i]=function(e){t._actions[i](e)}})),(0,c.extend)(e,{dataSource:this.getDataSource(),animationEnabled:!!this.option("animation"),onItemClick:this._treeviewItemClickHandler.bind(this),onItemExpanded:function(e){t._overlay.repaint(),t._actions.onSubmenuShown(e)},onItemCollapsed:function(e){t._overlay.repaint(),t._actions.onSubmenuHidden(e)},selectNodesRecursive:!1,selectByClick:this.option("selectByClick"),expandEvent:"click"})}},{key:"_initAdaptivity",value:function(){if(this._isAdaptivityEnabled()){this._$adaptiveContainer=(0,i.default)("<div>").addClass("dx-menu-adaptive-mode");var t=this._renderHamburgerButton();this._treeView=this._createComponent((0,i.default)("<div>"),y.default,this._getTreeViewOptions()),this._overlay=this._createComponent((0,i.default)("<div>"),g.default,this._getAdaptiveOverlayOptions()),this._overlay.$content().append(this._treeView.$element()).addClass("dx-menu-adaptive-mode").addClass(this.option("cssClass")),this._overlay._wrapper().addClass("dx-menu-adaptive-mode-overlay-wrapper"),this._$adaptiveContainer.append(t),this._$adaptiveContainer.append(this._overlay.$element()),this.$element().append(this._$adaptiveContainer),this._updateItemsWidthCache(),this._dimensionChanged()}}},{key:"_getDelay",value:function(t){var e=this.option("showFirstSubmenuMode").delay;return(0,u.isDefined)(e)?(0,u.isObject)(e)?e[t]:e:O[t]}},{key:"_keyboardHandler",value:function(t){return S(E(b.prototype),"_keyboardHandler",this).call(this,t,!!this._visibleSubmenu)}},{key:"_renderContainer",value:function(){var t=(0,i.default)("<div>");return t.appendTo(this.$element()).addClass(this._isMenuHorizontal()?"dx-menu-horizontal":"dx-menu-vertical"),S(E(b.prototype),"_renderContainer",this).call(this,t)}},{key:"_renderSubmenuItems",value:function(t,e){var n=this._createSubmenu(t,e);return this._submenus.push(n),this._renderBorderElement(e),n}},{key:"_getKeyboardListeners",value:function(){return S(E(b.prototype),"_getKeyboardListeners",this).call(this).concat(this._submenus)}},{key:"_createSubmenu",value:function(t,e){var n=(0,i.default)("<div>").addClass("dx-context-menu").appendTo(e),o=this._getChildNodes(t),r=this._createComponent(n,_.default,(0,c.extend)(this._getSubmenuOptions(),{_dataAdapter:this._dataAdapter,_parentKey:t.internalFields.key,items:o,onHoverStart:this._clearTimeouts.bind(this),position:this.getSubmenuPosition(e)}));return this._attachSubmenuHandlers(e,r),r}},{key:"_getSubmenuOptions",value:function(){var t=this,e=(0,i.default)("<div>"),n=this._isMenuHorizontal();return{itemTemplate:this.option("itemTemplate"),target:e,orientation:this.option("orientation"),selectionMode:this.option("selectionMode"),cssClass:this.option("cssClass"),selectByClick:this.option("selectByClick"),hoverStateEnabled:this.option("hoverStateEnabled"),activeStateEnabled:this.option("activeStateEnabled"),focusStateEnabled:this.option("focusStateEnabled"),animation:this.option("animation"),showSubmenuMode:this.option("showSubmenuMode"),displayExpr:this.option("displayExpr"),disabledExpr:this.option("disabledExpr"),selectedExpr:this.option("selectedExpr"),itemsExpr:this.option("itemsExpr"),onFocusedItemChanged:function(e){e.component.option("visible")&&t.option("focusedElement",e.component.option("focusedElement"))},onSelectionChanged:this._nestedItemOnSelectionChangedHandler.bind(this),onItemClick:this._nestedItemOnItemClickHandler.bind(this),onItemRendered:this._nestedItemOnItemRenderedHandler.bind(this),onLeftFirstItem:n?null:this._moveMainMenuFocus.bind(this,"prevItem"),onLeftLastItem:n?null:this._moveMainMenuFocus.bind(this,"nextItem"),onCloseRootSubmenu:this._moveMainMenuFocus.bind(this,n?"prevItem":null),onExpandLastSubmenu:n?this._moveMainMenuFocus.bind(this,"nextItem"):null}}},{key:"_getShowFirstSubmenuMode",value:function(){if(!this._isDesktopDevice())return"onClick";var t=this.option("showFirstSubmenuMode");return(0,u.isObject)(t)?t.name:t}},{key:"_moveMainMenuFocus",value:function(t){var e=this._getAvailableItems(),n=e.length,i=e.filter(".".concat("dx-menu-item-expanded")).eq(0),o=e.index(i);this._hideSubmenu(this._visibleSubmenu),(o+="prevItem"===t?-1:1)>=n?o=0:o<0&&(o=n-1);var r=e.eq(o);this.option("focusedElement",(0,s.getPublicElement)(r))}},{key:"_nestedItemOnSelectionChangedHandler",value:function(t){var e=t.addedItems.length&&t.addedItems[0],n=_.default.getInstance(t.element);(0,this._actions.onSelectionChanged)(t),e&&this._clearSelectionInSubmenus(e[0],n),this._clearRootSelection(),this._setOptionWithoutOptionChange("selectedItem",e)}},{key:"_clearSelectionInSubmenus",value:function(t,e){var n=this,i=!arguments.length;(0,l.each)(this._submenus,(function(t,o){var r=o._itemContainer(),a=!r.is(e&&e._itemContainer()),s=r.find(".".concat(n._selectedItemClass()));if(a&&s.length||i){s.removeClass(n._selectedItemClass());var l=n._getItemData(s);l&&(l.selected=!1),o._clearSelectedItems()}}))}},{key:"_clearRootSelection",value:function(){var t=this.$element().find(".".concat("dx-menu-items-container")).first().children().children().filter(".".concat(this._selectedItemClass()));t.length&&(this._getItemData(t).selected=!1,t.removeClass(this._selectedItemClass()))}},{key:"_nestedItemOnItemClickHandler",value:function(t){this._actions.onItemClick(t)}},{key:"_nestedItemOnItemRenderedHandler",value:function(t){this._actions.onItemRendered(t)}},{key:"_attachSubmenuHandlers",value:function(t,e){var n=this,i=e.getOverlayContent().find(".".concat("dx-submenu")),r=(0,h.addNamespace)(p.default.end,this.NAME+"_submenu");e.option({onShowing:this._submenuOnShowingHandler.bind(this,t,e),onShown:this._submenuOnShownHandler.bind(this,t,e),onHiding:this._submenuOnHidingHandler.bind(this,t,e),onHidden:this._submenuOnHiddenHandler.bind(this,t,e)}),(0,l.each)(i,(function(e,i){o.default.off(i,r),o.default.on(i,r,null,n._submenuMouseLeaveHandler.bind(n,t))}))}},{key:"_submenuOnShowingHandler",value:function(t,e){var n=t.children(".".concat("dx-context-menu-container-border"));this._actions.onSubmenuShowing({rootItem:(0,s.getPublicElement)(t),submenu:e}),n.show(),t.addClass("dx-menu-item-expanded")}},{key:"_submenuOnShownHandler",value:function(t,e){this._actions.onSubmenuShown({rootItem:(0,s.getPublicElement)(t),submenu:e})}},{key:"_submenuOnHidingHandler",value:function(t,e,n){var i=t.children(".".concat("dx-context-menu-container-border")),o=n;o.rootItem=(0,s.getPublicElement)(t),o.submenu=e,this._actions.onSubmenuHiding(o),(n=o).cancel||(this._visibleSubmenu===e&&(this._visibleSubmenu=null),i.hide(),t.removeClass("dx-menu-item-expanded"))}},{key:"_submenuOnHiddenHandler",value:function(t,e){this._actions.onSubmenuHidden({rootItem:(0,s.getPublicElement)(t),submenu:e})}},{key:"_submenuMouseLeaveHandler",value:function(t,e){var n=(0,i.default)(e.relatedTarget).parents(".".concat("dx-context-menu"))[0],o=this._getSubmenuByRootElement(t).getOverlayContent()[0];this.option("hideSubmenuOnMouseLeave")&&n!==o&&(this._clearTimeouts(),setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide")))}},{key:"_hideSubmenuAfterTimeout",value:function(){if(this._visibleSubmenu){var t=(0,i.default)(this._visibleSubmenu.$element().context).hasClass("dx-state-hover"),e=this._visibleSubmenu.getOverlayContent().find(".".concat("dx-state-hover")).length;this._visibleSubmenu.getOverlayContent().get(0).querySelector(":hover")||e||t||this._visibleSubmenu.hide()}}},{key:"_getSubmenuByRootElement",value:function(t){if(!t)return!1;var e=t.children(".".concat("dx-context-menu"));return e.length&&_.default.getInstance(e)}},{key:"getSubmenuPosition",value:function(t){var e=this._isMenuHorizontal(),n=this.option("submenuDirection").toLowerCase(),i=this.option("rtlEnabled"),o={collision:"flip",of:t};switch(n){case"leftortop":o.at="left top",o.my=e?"left bottom":"right top";break;case"rightorbottom":o.at=e?"left bottom":"right top",o.my="left top";break;default:e?(o.at=i?"right bottom":"left bottom",o.my=i?"right top":"left top"):(o.at=i?"left top":"right top",o.my=i?"right top":"left top")}return o}},{key:"_renderBorderElement",value:function(t){(0,i.default)("<div>").appendTo(t).addClass("dx-context-menu-container-border").hide()}},{key:"_itemPointerDownHandler",value:function(t){(0,i.default)(t.target).closest(this._itemElements()).hasClass("dx-menu-item-has-submenu")?this.option("focusedElement",null):S(E(b.prototype),"_itemPointerDownHandler",this).call(this,t)}},{key:"_hoverStartHandler",value:function(t){var e=(0,h.addNamespace)(f.default.move,this.NAME),n=this._getItemElementByEventArgs(t),i=this._dataAdapter.getNodeByItem(this._getItemData(n)),r=(0,u.isDefined)(t.buttons)&&1===t.buttons||!(0,u.isDefined)(t.buttons)&&1===t.which;if(!this._isItemDisabled(n))if(o.default.off(n,e),this._hasChildren(i)){if("onHover"===this._getShowFirstSubmenuMode()&&!r){var a=this._getSubmenuByElement(n);this._clearTimeouts(),a.isOverlayVisible()||(o.default.on(n,e,this._itemMouseMoveHandler.bind(this)),this._showSubmenuTimer=this._getDelay("hide"))}}else this._showSubmenuTimer=setTimeout(this._hideSubmenuAfterTimeout.bind(this),this._getDelay("hide"))}},{key:"_hoverEndHandler",value:function(t){var e=this,n=this._getItemElementByEventArgs(t),o=(0,i.default)(t.relatedTarget);S(E(b.prototype),"_hoverEndHandler",this).call(this,t),this._clearTimeouts(),this._isItemDisabled(n)||o.hasClass("dx-context-menu-content-delimiter")||this.option("hideSubmenuOnMouseLeave")&&!o.hasClass("dx-menu-items-container")&&(this._hideSubmenuTimer=setTimeout((function(){e._hideSubmenuAfterTimeout()}),this._getDelay("hide")))}},{key:"_hideVisibleSubmenu",value:function(){return!!this._visibleSubmenu&&(this._hideSubmenu(this._visibleSubmenu),!0)}},{key:"_showSubmenu",value:function(t){var e=this._getSubmenuByElement(t);this._visibleSubmenu!==e&&this._hideVisibleSubmenu(),e&&(e.show(),this.option("focusedElement",e.option("focusedElement"))),this._visibleSubmenu=e,this._hoveredRootItem=t}},{key:"_hideSubmenu",value:function(t){t&&t.hide(),this._visibleSubmenu===t&&(this._visibleSubmenu=null),this._hoveredRootItem=null}},{key:"_itemMouseMoveHandler",value:function(t){var e=this;if(!t.pointers||!t.pointers.length){var n=(0,i.default)(t.currentTarget);(0,u.isDefined)(this._showSubmenuTimer)&&(this._clearTimeouts(),this._showSubmenuTimer=setTimeout((function(){var t=e._getSubmenuByElement(n);t&&!t.isOverlayVisible()&&e._showSubmenu(n)}),this._getDelay("show")))}}},{key:"_clearTimeouts",value:function(){clearTimeout(this._hideSubmenuTimer),clearTimeout(this._showSubmenuTimer)}},{key:"_getSubmenuByElement",value:function(t,e){var n=this._getSubmenuByRootElement(t);if(n)return n;e=e||this._getItemData(t);var i=this._dataAdapter.getNodeByItem(e);return this._hasChildren(i)&&this._renderSubmenuItems(i,t)}},{key:"_updateSubmenuVisibilityOnClick",value:function(t){var e=t.args.length&&t.args[0];if(e&&!this._disabledGetter(e.itemData)){var n=(0,i.default)(e.itemElement),o=this._getSubmenuByElement(n,e.itemData);if(this._updateSelectedItemOnClick(t),this._visibleSubmenu){if(this._visibleSubmenu===o)return void("onClick"===this.option("showFirstSubmenuMode")&&this._hideSubmenu(this._visibleSubmenu));this._hideSubmenu(this._visibleSubmenu)}o&&(o.isOverlayVisible()||this._showSubmenu(n))}}},{key:"_optionChanged",value:function(t){switch(t.name){case"orientation":case"submenuDirection":this._invalidate();break;case"showFirstSubmenuMode":case"hideSubmenuOnMouseLeave":break;case"showSubmenuMode":this._changeSubmenusOption(t.name,t.value);break;case"onSubmenuShowing":case"onSubmenuShown":case"onSubmenuHiding":case"onSubmenuHidden":this._initActions();break;case"adaptivityEnabled":t.value?this._initAdaptivity():this._removeAdaptivity();break;case"width":this._isAdaptivityEnabled()&&(this._treeView.option(t.name,t.value),this._overlay.option(t.name,t.value)),S(E(b.prototype),"_optionChanged",this).call(this,t),this._dimensionChanged();break;case"animation":this._isAdaptivityEnabled()&&this._treeView.option("animationEnabled",!!t.value),S(E(b.prototype),"_optionChanged",this).call(this,t);break;default:this._isAdaptivityEnabled()&&this._treeView.option(t.name,t.value),S(E(b.prototype),"_optionChanged",this).call(this,t)}}},{key:"_changeSubmenusOption",value:function(t,e){(0,l.each)(this._submenus,(function(n,i){i.option(t,e)}))}},{key:"selectItem",value:function(t){this._hideSubmenu(this._visibleSubmenu),S(E(b.prototype),"selectItem",this).call(this,t)}},{key:"unselectItem",value:function(t){this._hideSubmenu(this._visibleSubmenu),S(E(b.prototype),"selectItem",this).call(this,t)}}])&&C(e.prototype,n),r&&C(e,r),b}(m.default);(0,r.default)("dxMenu",P),t.exports=P},function(t,e,n){"use strict";var i=b(n(6)),o=b(n(44)),r=b(n(197)),a=b(n(40)),s=n(457),l=b(n(12)),u=b(n(25)),c=n(29),d=n(5),h=n(2),f=n(24),p=n(0),m=n(100),g=b(n(43)),_=n(129),v=n(7),y=n(125);function b(t){return t&&t.__esModule?t:{default:t}}var w={month:function(t){return g.default.getMonthNames()[t-1]},quarter:function(t){return g.default.format(new Date(2e3,3*t-1),"quarter")}},x=o.default.ViewController.inherit({init:function(){this._columnsController=this.getController("columns"),this._dataController=this.getController("data"),this._headerFilterView=this.getView("headerFilterView")},_updateSelectedState:function(t,e){for(var n=t.length,i="exclude"===e.filterType;n--;){var o=t[n];"items"in t[n]&&this._updateSelectedState(t[n].items,e),(0,s.updateHeaderFilterItemSelectionState)(o,a.default.getIndexByKey(t[n].value,e.filterValues,null)>-1,i)}},_normalizeGroupItem:function(t,e,n){var i,o,r=n.path,a=n.valueSelector,s=n.displaySelector,l=n.column;return a&&s?(i=a(t),o=s(t)):o=i=t.key,t=(0,h.isObject)(t)?(0,p.extend)({},t):{},r.push(i),1===r.length?t.value=r[0]:t.value=r.join("/"),t.text=this.getHeaderItemText(o,l,e,n.headerFilterOptions),t},getHeaderItemText:function(t,e,n,i){var o=a.default.formatValue(t,function(t,e,n){var i=r.default.getGroupInterval(e),o=a.default.getFormatOptionsByColumn(e,"headerFilter");return i&&(o.groupInterval=i[n],a.default.isDateType(e.dataType)?o.format=w[i[n]]:"number"===e.dataType&&(o.getDisplayFormat=function(){var o={format:e.format,target:"headerFilter"},r=a.default.formatValue(t,o),s=t+i[n],l=a.default.formatValue(s,o);return r&&l?r+" - "+l:""})),o}(t,e,n));return o||(o=i.texts.emptyValue),o},_processGroupItems:function(t,e,n,i){var o,r,a=i.column.lookup,s=i.level;n=n||[],e=e||0,a&&(o=(0,c.compileGetter)(a.displayExpr),r=(0,c.compileGetter)(a.valueExpr));for(var l=0;l<t.length;l++)t[l]=this._normalizeGroupItem(t[l],e,{column:i.column,headerFilterOptions:i.headerFilterOptions,displaySelector:o,valueSelector:r,path:n}),"items"in t[l]&&(e!==s&&(0,h.isDefined)(t[l].value)?this._processGroupItems(t[l].items,e+1,n,i):delete t[l].items),n.pop()},getDataSource:function(t){var e=this,n=e._dataController.dataSource(),i=a.default.getHeaderFilterGroupParameters(t,n&&n.remoteOperations().grouping),o=t.headerFilter&&t.headerFilter.dataSource,r=e.option("headerFilter"),s=!1,l={component:e.component};if(n){if((0,h.isDefined)(o)&&!(0,h.isFunction)(o))l.dataSource=(0,m.normalizeDataSourceOptions)(o);else if(t.lookup){var u;s=!0,t.lookup.items?u=t.lookup.items:(u=t.lookup.dataSource,(0,h.isFunction)(u)&&!(0,_.isWrapped)(u)&&(u=u({}))),l.dataSource=(0,m.normalizeDataSourceOptions)(u)}else{var c=Array.isArray(i)?i.length-1:0;e._currentColumn=t;var d=e._dataController.getCombinedFilter();e._currentColumn=null,l.dataSource={filter:d,group:i,useDefaultSearch:!0,load:function(i){var o=new v.Deferred;return i.dataField=t.dataField||t.name,n.load(i).done((function(n){e._processGroupItems(n,null,null,{level:c,column:t,headerFilterOptions:r}),o.resolve(n)})).fail(o.reject),o}}}(0,h.isFunction)(o)&&o.call(t,l);var f=l.dataSource.postProcess;return l.dataSource.postProcess=function(n){var i=n;return s&&(0!==this.pageIndex()||this.searchValue()||(i=i.slice(0)).unshift(null),e._processGroupItems(i,null,null,{level:0,column:t,headerFilterOptions:r})),i=f&&f.call(this,i)||i,e._updateSelectedState(i,t),i},l.dataSource}},getCurrentColumn:function(){return this._currentColumn},showHeaderFilterMenu:function(t,e){var n=this._columnsController,i=(0,p.extend)(!0,{},this._columnsController.getColumns()[t]);if(i){var o=n.getVisibleIndex(t),r=e?this.getView("headerPanel"):this.getView("columnHeadersView"),a=a||r.getColumnElements().eq(e?i.groupIndex:o);this.showHeaderFilterMenuBase({columnElement:a,column:i,applyFilter:!0,apply:function(){n.columnOption(t,{filterValues:this.filterValues,filterType:this.filterType})}})}},showHeaderFilterMenuBase:function(t){var e=this,n=this,i=t.column;if(i){var o=r.default.getGroupInterval(i),a=n._dataController.dataSource(),s=a&&a.remoteOperations().filtering;(0,p.extend)(t,i,{type:o&&o.length>1?"tree":"list",remoteFiltering:s,onShowing:function(e){var i=e.component.overlayContent().dxResizable("instance");i&&i.option("onResizeEnd",(function(e){var i=n.getController("columns"),o=i.columnOption(t.dataField,"headerFilter");(o=o||{}).width=e.width,o.height=e.height,i.columnOption(t.dataField,"headerFilter",o,!0)}))},onHidden:function(){return(0,y.restoreFocus)(e)}}),t.dataSource=n.getDataSource(t),t.isFilterBuilder&&(t.dataSource.filter=null,t.alignment="right"),n._headerFilterView.showHeaderFilterMenu(t.columnElement,t)}},hideHeaderFilterMenu:function(){this._headerFilterView.hideHeaderFilterMenu()}}),C=(0,p.extend)({},s.headerFilterMixin,{_renderCellContent:function(t,e){var n,i=e.column;!i.command&&(0,s.allowHeaderFiltering)(i)&&this.option("headerFilter.visible")&&"header"===e.rowType&&(n=this._applyColumnState({name:"headerFilter",rootElement:t,column:i,showColumnLines:this.option("showColumnLines")}))&&this._subscribeToIndicatorEvent(n,i,"headerFilter"),this.callBase(t,e)},_subscribeToIndicatorEvent:function(t,e,n){var o=this;"headerFilter"===n&&i.default.on(t,u.default.name,o.createAction((function(t){t.event.stopPropagation(),o.getController("headerFilter").showHeaderFilterMenu(e.index,!1)})))},_updateIndicator:function(t,e,n){var i=this.callBase(t,e,n);i&&this._subscribeToIndicatorEvent(i,e,n)},_updateHeaderFilterIndicators:function(){this.option("headerFilter.visible")&&this._updateIndicators("headerFilter")},_needUpdateFilterIndicators:function(){return!0},_columnOptionChanged:function(t){var e=t.optionNames;a.default.checkChanges(e,["filterValues","filterType"])?this._needUpdateFilterIndicators()&&this._updateHeaderFilterIndicators():this.callBase(t)}}),S=(0,p.extend)({},s.headerFilterMixin,{_createGroupPanelItem:function(t,e){var n,o=this,r=o.callBase.apply(o,arguments);return!e.command&&(0,s.allowHeaderFiltering)(e)&&o.option("headerFilter.visible")&&(n=o._applyColumnState({name:"headerFilter",rootElement:r,column:{alignment:(0,f.getDefaultAlignment)(o.option("rtlEnabled")),filterValues:e.filterValues,allowHeaderFiltering:!0},showColumnLines:!0}))&&i.default.on(n,u.default.name,o.createAction((function(t){t.event.stopPropagation(),o.getController("headerFilter").showHeaderFilterMenu(e.index,!0)}))),r}});var k={skipCalculateColumnFilters:function(){return!1},_calculateAdditionalFilter:function(){if(this.skipCalculateColumnFilters())return this.callBase();var t=[this.callBase()],e=this._columnsController.getVisibleColumns(null,!0),n=this.getController("headerFilter").getCurrentColumn();return(0,d.each)(e,(function(e,i){var o;if((!n||n.index!==i.index)&&(0,s.allowHeaderFiltering)(i)&&i.calculateFilterExpression&&Array.isArray(i.filterValues)&&i.filterValues.length){var r=[];(0,d.each)(i.filterValues,(function(t,e){Array.isArray(e)?o=e:(i.deserializeValue&&!a.default.isDateType(i.dataType)&&"number"!==i.dataType&&(e=i.deserializeValue(e)),o=i.createFilterExpression(e,"=","headerFilter")),o&&(o.columnIndex=i.index),r.push(o)})),r=a.default.combineFilters(r,"or"),t.push("exclude"===i.filterType?["!",r]:r)}})),a.default.combineFilters(t)}};t.exports={invertFilterExpression:function(t){return["!",t]},defaultOptions:function(){return{headerFilter:{visible:!1,width:252,height:325,allowSearch:!1,searchTimeout:500,texts:{emptyValue:l.default.format("dxDataGrid-headerFilterEmptyValue"),ok:l.default.format("dxDataGrid-headerFilterOK"),cancel:l.default.format("dxDataGrid-headerFilterCancel")}}}},controllers:{headerFilter:x},views:{headerFilterView:s.HeaderFilterView},extenders:{controllers:{data:k},views:{columnHeadersView:C,headerPanel:S}}}},function(t,e,n){"use strict";var i=h(n(3)),o=h(n(44)),r=h(n(40)),a=n(2),s=n(5),l=n(0),u=h(n(48)),c=h(n(168)),d=h(n(108));function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){if(!t.component.option("searchValue")){var n=(0,i.default)(t.element).find(".dx-list-select-all-checkbox").data("dxCheckBox");n&&e&&e.length&&n.option("value",void 0)}}function p(t,e){var n=e.headerFilter;return n&&(0,a.isDefined)(n.allowSearch)?n.allowSearch:t.option("headerFilter.allowSearch")}e.updateHeaderFilterItemSelectionState=function(t,e,n){if(e^n){if(t.selected=!0,n&&t.items)for(var i=0;i<t.items.length;i++)if(!t.items[i].selected){t.selected=void 0;break}}else(n||t.selected)&&(t.selected=!1,function t(e){e=e||[];for(var n=0;n<e.length;n++)e[n].selected=!1,t(e[n].items)}(t.items))},e.HeaderFilterView=o.default.View.inherit({getPopupContainer:function(){return this._popupContainer},getListContainer:function(){return this._listContainer},applyHeaderFilter:function(t){var e=this.getListContainer(),n=e.option("searchValue"),i=[];!n&&!t.isFilterBuilder&&e.$element().find(".dx-checkbox").eq(0).hasClass("dx-checkbox-checked")?("tree"===t.type&&(t.filterType="exclude"),Array.isArray(t.filterValues)&&(t.filterValues=[])):"tree"===t.type&&(t.filterType&&(t.filterType="include"),function t(i,o,r){(0,s.each)(o,(function(o,a){if(void 0!==a.selected&&!!a.selected^r){var s=e._getNode(a),l=e._hasChildren(s)&&a.items&&a.items.some((function(t){return t.selected}));if(!n||!l)return void i.push(a.value)}a.items&&a.items.length&&t(i,a.items,r)}))}(i,e.option("items"),!1),t.filterValues=i),t.filterValues&&!t.filterValues.length&&(t.filterValues=null),t.apply(),this.hideHeaderFilterMenu()},showHeaderFilterMenu:function(t,e){if(e){this._initializePopupContainer(e);var n=this.getPopupContainer();this.hideHeaderFilterMenu(),this.updatePopup(t,e),n.show()}},hideHeaderFilterMenu:function(){var t=this.getPopupContainer();t&&t.hide()},updatePopup:function(t,e){var n="right"===e.alignment?"left":"right";this._popupContainer&&(this._cleanPopupContent(),this._popupContainer.option("position",{my:n+" top",at:n+" bottom",of:t,collision:"flip fit"}))},_getSearchExpr:function(t){var e=t.lookup,n=t.useDefaultSearchExpr,i=t.headerFilter&&t.headerFilter.dataSource;if(n||(0,a.isDefined)(i)&&!(0,a.isFunction)(i))return"text";if(e)return e.displayExpr||"this";if(t.dataSource){var o=t.dataSource.group;if(Array.isArray(o)&&o.length>0)return o[0].selector;if((0,a.isFunction)(o)&&!t.remoteFiltering)return o}return t.dataField||t.selector},_cleanPopupContent:function(){this._popupContainer&&this._popupContainer.$content().empty()},_initializePopupContainer:function(t){var e=this,n=e.element(),i=e.option("headerFilter"),o={width:t.headerFilter&&t.headerFilter.width||i&&i.width,height:t.headerFilter&&t.headerFilter.height||i&&i.height,visible:!1,shading:!1,showTitle:!1,showCloseButton:!1,closeOnTargetScroll:!1,dragEnabled:!1,closeOnOutsideClick:!0,focusStateEnabled:!1,toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.ok,onClick:function(){e.applyHeaderFilter(t)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:i.texts.cancel,onClick:function(){e.hideHeaderFilterMenu()}}}],resizeEnabled:!0,onShowing:function(n){n.component.$content().parent().addClass("dx-dropdowneditor-overlay"),e._initializeListContainer(t),t.onShowing&&t.onShowing(n)},onShown:function(){e.getListContainer().focus()},onHidden:t.onHidden,onInitialized:function(t){var e=t.component;e.option("animation",e._getDefaultOptions().animation)}};(0,a.isDefined)(e._popupContainer)?e._popupContainer.option(o):e._popupContainer=e._createComponent(n,u.default,o)},_initializeListContainer:function(t){var e=this,n=e._popupContainer.$content(),o={searchEnabled:p(e,t),searchTimeout:e.option("headerFilter.searchTimeout"),searchMode:t.headerFilter&&t.headerFilter.searchMode||"",dataSource:t.dataSource,onContentReady:function(){e.renderCompleted.fire()},itemTemplate:function(e,n,o){var r=(0,i.default)(o);return t.encodeHtml?r.text(e.text):r.html(e.text)}};function a(n){"searchValue"!==n.fullName||t.isFilterBuilder||!1===e.option("headerFilter.hideSelectAllOnSearch")||("tree"===t.type?n.component.option("showCheckBoxesMode",n.value?"normal":"selectAll"):n.component.option("selectionMode",n.value?"multiple":"all"))}"tree"===t.type?e._listContainer=e._createComponent((0,i.default)("<div>").appendTo(n),c.default,(0,l.extend)(o,{showCheckBoxesMode:t.isFilterBuilder?"normal":"selectAll",onOptionChanged:a,keyExpr:"id"})):e._listContainer=e._createComponent((0,i.default)("<div>").appendTo(n),d.default,(0,l.extend)(o,{searchExpr:e._getSearchExpr(t),pageLoadMode:"scrollBottom",showSelectionControls:!0,selectionMode:t.isFilterBuilder?"multiple":"all",onOptionChanged:a,onSelectionChanged:function(e){var n=e.component.option("items"),i=e.component.option("selectedItems");if(!e.component._selectedItemsUpdating&&!e.component.option("searchValue")&&!t.isFilterBuilder){var o=t.filterValues||[],a="exclude"===t.filterType;0===i.length&&n.length&&(o.length<=1||a&&o.length===n.length-1)?(t.filterType="include",t.filterValues=[]):i.length===n.length&&(t.filterType="exclude",t.filterValues=[])}(0,s.each)(n,(function(e,n){var o=r.default.getIndexByKey(n,i,null)>=0;if(!!n.selected!==o){n.selected=o,t.filterValues=t.filterValues||[];var a=r.default.getIndexByKey(n.value,t.filterValues,null);a>=0&&t.filterValues.splice(a,1),o^"exclude"===t.filterType&&t.filterValues.push(n.value)}})),f(e,t.filterValues)},onContentReady:function(e){var n=e.component,i=n.option("items"),o=[];(0,s.each)(i,(function(){this.selected&&o.push(this)})),n._selectedItemsUpdating=!0,n.option("selectedItems",o),n._selectedItemsUpdating=!1,f(e,t.filterValues)}}))},_renderCore:function(){this.element().addClass("dx-header-filter-menu")}});var m=e.allowHeaderFiltering=function(t){return(0,a.isDefined)(t.allowHeaderFiltering)?t.allowHeaderFiltering:t.allowFiltering};e.headerFilterMixin={_applyColumnState:function(t){var e,n=t.rootElement,i=t.column;return"headerFilter"===t.name?(n.find(".dx-header-filter").remove(),m(i)&&(e=this.callBase(t).toggleClass("dx-header-filter-empty",this._isHeaderFilterEmpty(i)),this.option("useLegacyKeyboardNavigation")||e.attr("tabindex",this.option("tabindex")||0)),e):this.callBase(t)},_isHeaderFilterEmpty:function(t){return!t.filterValues||!t.filterValues.length},_getIndicatorClassName:function(t){return"headerFilter"===t?"dx-header-filter":this.callBase(t)},_renderIndicator:function(t){var e=t.container,n=t.indicator;if("headerFilter"===t.name){var i=this.option("rtlEnabled");if(e.children().length&&(!i&&"right"===t.columnAlignment||i&&"left"===t.columnAlignment))return void e.prepend(n)}this.callBase(t)},optionChanged:function(t){if("headerFilter"===t.name){var e="columnHeadersView"===this.name;this._invalidate(e,e),t.handled=!0}else this.callBase(t)}}},function(t,e,n){"use strict";var i=n(2),o=c(n(44)),r=c(n(238)),a=c(n(23)),s=c(n(40)),l=c(n(197)),u=c(n(826));function c(t){return t&&t.__esModule?t:{default:t}}var d=["=","<>","<","<=",">",">=","notcontains","contains","startswith","endswith","between"];function h(t){return t.dataField||t.name}var f=o.default.Controller.inherit(function(){var t=function(t){return!l.default.getGroupInterval(t)&&!(t.headerFilter&&t.headerFilter.dataSource)},e=function(t){var e=t.filterValue;if((0,i.isDefined)(e)){var n=t.selectedFilterOperation||t.defaultFilterOperation||r.default.getDefaultOperation(t);return[h(t),n,t.filterValue]}return null},n=function(e){var n,i,o=e.filterValues;return o?(t(e)&&1===e.filterValues.length&&!Array.isArray(o[0])?(n="exclude"===e.filterType?"<>":"=",i=o[0]):(n="exclude"===e.filterType?"noneof":"anyof",i=o),[h(e),n,i]):null},o=function(e,n,i){var o=function(e,n){if(!e)return{filterType:"include",filterValues:void 0};var i,o=e[1],r=e[2],a=Array.isArray(r);if(!a&&!t(n))return{filterType:"include",filterValues:void 0};switch(o){case"anyof":case"=":i="include";break;case"noneof":case"<>":i="exclude";break;default:return{filterType:"include",filterValues:void 0}}return{filterType:i,filterValues:a?r:[r]}}(i,n);e.columnOption(h(n),o)},s=function(t,e,n){var o,r=n&&n[1],a=e.filterOperations||e.defaultFilterOperations;(!a||a.indexOf(r)>=0||r===e.defaultFilterOperation)&&d.indexOf(r)>=0?(r!==e.defaultFilterOperation||(0,i.isDefined)(e.selectedFilterOperation)||(r=e.selectedFilterOperation),o={filterValue:n[2],selectedFilterOperation:r}):o={filterValue:void 0,selectedFilterOperation:void 0},t.columnOption(h(e),o)};return{syncFilterValue:function(){var t=this,e=t.getController("columns"),n=e.getFilteringColumns();this._skipSyncColumnOptions=!0,n.forEach((function(n){var a=r.default.getMatchedConditions(t.option("filterValue"),h(n));if(1===a.length){var l=a[0];o(e,n,l),s(e,n,l)}else(0,i.isDefined)(n.filterValues)&&o(e,n),(0,i.isDefined)(n.filterValue)&&s(e,n)})),this._skipSyncColumnOptions=!1},_initSync:function(){var t=this.getController("columns").getColumns(),e=this.getController("data"),n=e.pageIndex();if(function(t){t.forEach((function(t){var e=h(t);if(!(0,i.isDefined)(e)&&t.allowFiltering)throw new a.default.Error("E1049",t.caption)}))}(t),!this.option("filterValue")){var o=this.getController("columns").getFilteringColumns(),r=this.getFilterValueFromColumns(o);this.option("filterValue",r)}this.syncFilterValue(),e.pageIndex(n)},init:function(){var t=this,e=this.getController("data");e.isFilterSyncActive()&&(this.getController("columns").isAllDataTypesDefined()?this._initSync():e.dataSourceChanged.add((function(){return t._initSync()})))},_getSyncFilterRow:function(t,n){var o=e(n);return(0,i.isDefined)(o)?r.default.syncFilters(t,o):r.default.removeFieldConditionsFromFilter(t,h(n))},_getSyncHeaderFilter:function(t,e){var i=n(e);return i?r.default.syncFilters(t,i):r.default.removeFieldConditionsFromFilter(t,h(e))},getFilterValueFromColumns:function(t){if(!this.getController("data").isFilterSyncActive())return null;var i=["and"];return t&&t.forEach((function(t){var o=n(t),a=e(t);o&&r.default.addItem(o,i),a&&r.default.addItem(a,i)})),r.default.getNormalizedFilter(i)},syncFilterRow:function(t,e){this.option("filterValue",this._getSyncFilterRow(this.option("filterValue"),t))},syncHeaderFilter:function(t){this.option("filterValue",this._getSyncHeaderFilter(this.option("filterValue"),t))},getCustomFilterOperations:function(){var t=this.option("filterBuilder.customOperations")||[];return[u.default.anyOf(this.component),u.default.noneOf(this.component)].concat(t)},publicMethods:function(){return["getCustomFilterOperations"]}}}()),p={isFilterSyncActive:function(){var t=this.option("filterSyncEnabled");return"auto"===t?this.option("filterPanel.visible"):t},skipCalculateColumnFilters:function(){return(0,i.isDefined)(this.option("filterValue"))&&this.isFilterSyncActive()},_calculateAdditionalFilter:function(){if(!1===this.option("filterPanel.filterEnabled"))return this.callBase();var t=[this.callBase()],e=this.getController("columns").getFilteringColumns(),n=this.option("filterValue");if(this.isFilterSyncActive()){var i=this.getController("headerFilter").getCurrentColumn();i&&n&&(n=r.default.removeFieldConditionsFromFilter(n,h(i)))}var o=this.getController("filterSync").getCustomFilterOperations(),a=r.default.getFilterExpression(n,e,o,"filterBuilder");return a&&t.push(a),s.default.combineFilters(t)},_parseColumnPropertyName:function(t){return t.match(/.*\.(.*)/)[1]},clearFilter:function(t){this.component.beginUpdate(),arguments.length>0?("filterValue"===t&&this.option("filterValue",null),this.callBase(t)):(this.option("filterValue",null),this.callBase()),this.component.endUpdate()},optionChanged:function(t){switch(t.name){case"filterValue":this._applyFilter(),this.isFilterSyncActive()&&this.getController("filterSync").syncFilterValue(),t.handled=!0;break;case"filterSyncEnabled":t.handled=!0;break;case"columns":if(this.isFilterSyncActive()){var e=this.getController("columns").getColumnByPath(t.fullName),n=this.getController("filterSync");if(e&&!n._skipSyncColumnOptions){var i=this._parseColumnPropertyName(t.fullName);n._skipSyncColumnOptions=!0,"filterType"===i?"exclude"!==t.value&&"exclude"!==t.previousValue||n.syncHeaderFilter(e):"filterValues"===i?n.syncHeaderFilter(e):["filterValue","selectedFilterOperation"].indexOf(i)>-1&&n.syncFilterRow(e,e.filterValue),n._skipSyncColumnOptions=!1}}this.callBase(t);break;default:this.callBase(t)}}},m={_isHeaderFilterEmpty:function(t){return this.getController("data").isFilterSyncActive()?!r.default.filterHasField(this.option("filterValue"),h(t)):this.callBase(t)},_needUpdateFilterIndicators:function(){return!this.getController("data").isFilterSyncActive()},optionChanged:function(t){"filterValue"===t.name?this._updateHeaderFilterIndicators():this.callBase(t)}};t.exports={defaultOptions:function(){return{filterValue:null,filterSyncEnabled:"auto"}},controllers:{filterSync:f},extenders:{controllers:{data:p},views:{columnHeadersView:m}}}},function(t,e,n){"use strict";var i=y(n(3)),o=y(n(15)),r=y(n(21)),a=y(n(6)),s=y(n(20)),l=y(n(8)),u=n(0),c=y(n(12)),d=y(n(238)),h=y(n(7)),f=n(2),p=y(n(168)),m=y(n(48)),g=n(296),_=y(n(439)),v=n(11);function y(t){return t&&t.__esModule?t:{default:t}}var b=[{name:"onEditorPreparing",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onEditorPrepared",config:{excludeValidators:["disabled","readOnly"],category:"rendering"}},{name:"onValueChanged",config:{excludeValidators:["disabled","readOnly"]}}],w={and:"and",or:"or",notAnd:"!and",notOr:"!or"},x=r.default.inherit(_.default),C=function(t,e,n){if(Array.isArray(e)){var o=e.length-1;t.empty(),e.forEach((function(e,r){(0,i.default)("<span>").addClass("dx-filterbuilder-text-part").text(e).appendTo(t),r!==o&&(0,i.default)("<span>").addClass("dx-filterbuilder-text-separator").text(n&&n.valueSeparator?n.valueSeparator:"|").addClass("dx-filterbuilder-text-separator-empty").appendTo(t)}))}else e?t.text(e):t.text(c.default.format("dxFilterBuilder-enterValueText"))},S=s.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{onEditorPreparing:null,onEditorPrepared:null,onValueChanged:null,fields:[],defaultGroupOperation:"and",groupOperations:["and","or","notAnd","notOr"],maxGroupLevel:void 0,value:null,allowHierarchicalFields:!1,groupOperationDescriptions:{and:c.default.format("dxFilterBuilder-and"),or:c.default.format("dxFilterBuilder-or"),notAnd:c.default.format("dxFilterBuilder-notAnd"),notOr:c.default.format("dxFilterBuilder-notOr")},customOperations:[],closePopupOnTargetScroll:!0,filterOperationDescriptions:{between:c.default.format("dxFilterBuilder-filterOperationBetween"),equal:c.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:c.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:c.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:c.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:c.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:c.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:c.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:c.default.format("dxFilterBuilder-filterOperationContains"),notContains:c.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:c.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:c.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:c.default.format("dxFilterBuilder-filterOperationIsNotBlank")}})},_optionChanged:function(t){switch(t.name){case"closePopupOnTargetScroll":break;case"onEditorPreparing":case"onEditorPrepared":case"onValueChanged":this._initActions();break;case"customOperations":this._initCustomOperations(),this._invalidate();break;case"fields":case"defaultGroupOperation":case"maxGroupLevel":case"groupOperations":case"allowHierarchicalFields":case"groupOperationDescriptions":case"filterOperationDescriptions":this._invalidate();break;case"value":if(t.value!==t.previousValue){var e=this._disableInvalidateForValue;e||(this._initModel(),this._invalidate()),this._disableInvalidateForValue=!1,this.executeAction("onValueChanged",{value:t.value,previousValue:t.previousValue}),this._disableInvalidateForValue=e}break;default:this.callBase(t)}},getFilterExpression:function(){var t=this._getNormalizedFields(),e=(0,u.extend)(!0,[],this._model);return d.default.getFilterExpression(d.default.getNormalizedFilter(e),t,this._customOperations,"filterBuilder")},_getNormalizedFields:function(){return d.default.getNormalizedFields(this.option("fields"))},_updateFilter:function(){this._disableInvalidateForValue=!0;var t=(0,u.extend)(!0,[],this._model),e=d.default.getNormalizedFilter(t),n=d.default.getNormalizedFilter(this._getModel(this.option("value")));JSON.stringify(n)!==JSON.stringify(e)&&this.option("value",e),this._disableInvalidateForValue=!1,this._fireContentReadyAction()},_init:function(){this._initCustomOperations(),this._initModel(),this._initEditorFactory(),this._initActions(),this.callBase()},_initEditorFactory:function(){this._editorFactory=new x},_initCustomOperations:function(){this._customOperations=d.default.getMergedOperations(this.option("customOperations"),this.option("filterOperationDescriptions.between"),this)},_getModel:function(t){return d.default.convertToInnerStructure(t,this._customOperations)},_initModel:function(){this._model=this._getModel(this.option("value"))},_initActions:function(){var t=this;t._actions={},b.forEach((function(e){t._actions[e.name]=t._createActionByOption(e.name,e.config)}))},executeAction:function(t,e){var n=this._actions[t];return n&&n(e)},_initMarkup:function(){this.$element().addClass("dx-filterbuilder"),this.callBase(),this._createGroupElementByCriteria(this._model).appendTo(this.$element())},_createConditionElement:function(t,e){return(0,i.default)("<div>").addClass("dx-filterbuilder-group").append(this._createConditionItem(t,e))},_createGroupElementByCriteria:function(t,e){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._createGroupElement(t,e,n),o=i.find(".dx-filterbuilder-group-content"),r=d.default.getGroupCriteria(t),a=0;a<r.length;a++){var s=r[a];d.default.isGroup(s)?this._createGroupElementByCriteria(s,r,n+1).appendTo(o):d.default.isCondition(s)&&this._createConditionElement(s,r).appendTo(o)}return i},_createGroupElement:function(t,e,n){var o=this,r=(0,i.default)("<div>").addClass("dx-filterbuilder-group-item"),a=(0,i.default)("<div>").addClass("dx-filterbuilder-group-content"),s=(0,i.default)("<div>").addClass("dx-filterbuilder-group").append(r).append(a);return null!=e&&this._createRemoveButton((function(){d.default.removeItem(e,t),s.remove(),o._updateFilter()})).appendTo(r),this._createGroupOperationButton(t).appendTo(r),this._createAddButton((function(){var e=d.default.createEmptyGroup(o.option("defaultGroupOperation"));d.default.addItem(e,t),o._createGroupElement(e,t,n+1).appendTo(a),o._updateFilter()}),(function(){var e=o.option("fields")[0],n=d.default.createCondition(e,o._customOperations);d.default.addItem(n,t),o._createConditionElement(n,t).appendTo(a),o._updateFilter()}),n).appendTo(r),s},_createButton:function(t){return(0,i.default)("<div>").text(t)},_createGroupOperationButton:function(t){var e=this,n=this._getGroupOperations(t),i=d.default.getGroupMenuItem(t,n),o=i.text,r=n&&n.length<2?this._createButton(o).addClass("dx-state-disabled"):this._createButtonWithMenu({caption:o,menu:{items:n,displayExpr:"text",keyExpr:"value",onItemClick:function(n){i!==n.itemData&&(d.default.setGroupValue(t,n.itemData.value),r.html(n.itemData.text),i=n.itemData,e._updateFilter())},onContentReady:function(t){t.component.selectItem(i)},cssClass:"dx-filterbuilder-group-operations"}});return r.addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-group-operation").attr("tabindex",0)},_createButtonWithMenu:function(t){var e,n=this,o=function(){n.$element().find(".dx-state-active").removeClass("dx-state-active"),n.$element().find(".dx-overlay .dx-treeview").remove(),n.$element().find(".dx-overlay").remove()},r=this.option("rtlEnabled"),s=r?"right":"left",l=this._createButton(t.caption);return(0,u.extend)(t.menu,{focusStateEnabled:!0,selectionMode:"single",onItemClick:(e=t.menu.onItemClick,function(t){e(t),"dxclick"===t.event.type&&o()}),onHiding:function(t){l.removeClass("dx-state-active")},position:{my:s+" top",at:s+" bottom",offset:"0 1",of:l,collision:"flip"},animation:null,onHidden:function(){o()},cssClass:"dx-filterbuilder-overlay "+t.menu.cssClass,rtlEnabled:r}),t.popup={onShown:function(e){var n=(0,i.default)(e.component.content()).find(".dx-treeview"),o=n.dxTreeView("instance");a.default.on(n,"keyup keydown",(function(n){var i=(0,v.normalizeKeyName)(n);("keydown"===n.type&&"tab"===i||"keyup"===n.type&&("escape"===i||"enter"===i))&&(e.component.hide(),a.default.trigger(t.menu.position.of,"focus"))})),o.focus(),o.option("focusedElement",null)}},this._subscribeOnClickAndEnterKey(l,(function(){o(),n._createPopupWithTreeView(t,n.$element()),l.addClass("dx-state-active")})),l},_hasValueButton:function(t){var e=d.default.getCustomOperation(this._customOperations,t[1]);return e?!1!==e.hasValue:null!==t[2]},_createOperationButtonWithMenu:function(t,e){var n=this,o=this,r=d.default.getAvailableOperations(e,this.option("filterOperationDescriptions"),this._customOperations),a=d.default.getOperationFromAvailable(d.default.getOperationValue(t),r),s=this._createButtonWithMenu({caption:a.text,menu:{items:r,displayExpr:"text",onItemRendered:function(t){t.itemData.isCustom&&(0,i.default)(t.itemElement).addClass("dx-filterbuilder-menu-custom-operation")},onContentReady:function(t){t.component.selectItem(a)},onItemClick:function(i){if(a!==i.itemData){a=i.itemData,d.default.updateConditionByOperation(t,a.value,o._customOperations);var r=s.siblings().filter(".dx-filterbuilder-item-value");o._hasValueButton(t)?(0!==r.length&&r.remove(),o._createValueButton(t,e).appendTo(s.parent())):r.remove(),s.html(a.text),n._updateFilter()}},cssClass:"dx-filterbuilder-operations"}}).addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-operation").attr("tabindex",0);return s},_createOperationAndValueButtons:function(t,e,n){this._createOperationButtonWithMenu(t,e).appendTo(n),this._hasValueButton(t)&&this._createValueButton(t,e).appendTo(n)},_createFieldButtonWithMenu:function(t,e,n){var i=this,o=this,r=this.option("allowHierarchicalFields"),a=d.default.getItems(t,r),s=d.default.getField(n.name||n.dataField,a),l=function(t,e){return r?d.default.getCaptionWithParents(t,e):t.caption},u=this._createButtonWithMenu({caption:l(s,a),menu:{items:a,dataStructure:"plain",keyExpr:"id",parentId:"parentId",displayExpr:"caption",onItemClick:function(t){if(s!==t.itemData){s=t.itemData,e[0]=s.name||s.dataField,e[2]="object"===s.dataType?null:"",d.default.updateConditionByOperation(e,d.default.getDefaultOperation(s),o._customOperations),u.siblings().filter(".dx-filterbuilder-text").remove(),o._createOperationAndValueButtons(e,s,u.parent());var n=l(s,t.component.option("items"));u.html(n),i._updateFilter()}},onContentReady:function(t){t.component.selectItem(s)},cssClass:"dx-filterbuilder-fields"}}).addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-field").attr("tabindex",0);return u},_createConditionItem:function(t,e){var n=this,o=(0,i.default)("<div>").addClass("dx-filterbuilder-group-item"),r=this._getNormalizedFields(),a=d.default.getField(t[0],r);return this._createRemoveButton((function(){d.default.removeItem(e,t),1===o.parent().children().length?o.parent().remove():o.remove(),n._updateFilter()})).appendTo(o),this._createFieldButtonWithMenu(r,t,a).appendTo(o),this._createOperationAndValueButtons(t,a,o),o},_getGroupOperations:function(t){var e=this.option("groupOperations"),n=this.option("groupOperationDescriptions");return e&&e.length||(e=[d.default.getGroupValue(t).replace("!","not")]),e.map((function(t){return{text:n[t],value:w[t]}}))},_createRemoveButton:function(t){var e=(0,i.default)("<div>").addClass("dx-filterbuilder-action-icon").addClass("dx-icon-remove").addClass("dx-filterbuilder-action").attr("tabindex",0);return this._subscribeOnClickAndEnterKey(e,t),e},_createAddButton:function(t,e,n){var i,o=this.option("maxGroupLevel");return(0,f.isDefined)(o)&&n>=o?(i=this._createButton(),this._subscribeOnClickAndEnterKey(i,e)):i=this._createButtonWithMenu({menu:{items:[{caption:c.default.format("dxFilterBuilder-addCondition"),click:e},{caption:c.default.format("dxFilterBuilder-addGroup"),click:t}],displayExpr:"caption",onItemClick:function(t){t.itemData.click()},cssClass:"dx-filterbuilder-add-condition"}}),i.addClass("dx-filterbuilder-action-icon").addClass("dx-icon-plus").addClass("dx-filterbuilder-action").attr("tabindex",0)},_createValueText:function(t,e,n){var o=this,r=(0,i.default)("<div>").html(" ").addClass("dx-filterbuilder-item-value-text").attr("tabindex",0).appendTo(n),a=t[2],s=d.default.getCustomOperation(o._customOperations,t[1]);return!s&&e.lookup?d.default.getCurrentLookupValueText(e,a,(function(t){C(r,t)})):h.default.when(d.default.getCurrentValueText(e,a,s)).done((function(t){C(r,t,s)})),o._subscribeOnClickAndEnterKey(r,(function(i){"keyup"===i.type&&i.stopPropagation(),o._createValueEditorWithEvents(t,e,n)})),r},_updateConditionValue:function(t,e,n){t[2]!==e&&(t[2]=e),n(),this._updateFilter()},_addDocumentKeyUp:function(t,e){var n=!1,i=!1,r=o.default.getDocument(),s=function(t){n||i?i=!1:e(t)};a.default.on(r,"keyup",s);var l=t.find("input");a.default.on(l,"compositionstart",(function(){n=!0})),a.default.on(l,"compositionend",(function(){n=!1,i=!0})),a.default.on(l,"keydown",(function(t){229!==t.which&&(i=!1)})),this._documentKeyUpHandler=s},_addDocumentClick:function(t,e){var n=this,i=o.default.getDocument(),r=function(i){n._isFocusOnEditorParts(t,i.target)||(a.default.trigger(t.find("input"),"change"),e())};a.default.on(i,"dxpointerdown",r),this._documentClickHandler=r},_isFocusOnEditorParts:function(t,e){var n=e||o.default.getActiveElement();return(0,i.default)(n).closest(t.children()).length||(0,i.default)(n).closest(".dx-dropdowneditor-overlay").length},_removeEvents:function(){var t=o.default.getDocument();(0,f.isDefined)(this._documentKeyUpHandler)&&a.default.off(t,"keyup",this._documentKeyUpHandler),(0,f.isDefined)(this._documentClickHandler)&&a.default.off(t,"dxpointerdown",this._documentClickHandler)},_dispose:function(){this._removeEvents(),this.callBase()},_createValueEditorWithEvents:function(t,e,n){var i=this,o=t[2],r=function(){return n.empty(),i._removeEvents(),i._createValueText(t,e,n)},s=function(){i._updateConditionValue(t,o,(function(){r()}))},l={value:""===o?null:o,filterOperation:d.default.getOperationValue(t),setValue:function(t){o=null===t?"":t},closeEditor:s,text:n.text()};n.empty();var u=this._createValueEditor(n,e,l);a.default.trigger(u.find("input").not(":hidden").eq(0),"focus"),this._removeEvents(),this._addDocumentClick(u,s),this._addDocumentKeyUp(u,(function(e){var s=(0,v.normalizeKeyName)(e);if("tab"===s){if(i._isFocusOnEditorParts(u))return;i._updateConditionValue(t,o,(function(){r(),e.shiftKey&&a.default.trigger(n.prev(),"focus")}))}"escape"===s&&a.default.trigger(r(),"focus"),"enter"===s&&i._updateConditionValue(t,o,(function(){a.default.trigger(r(),"focus")}))})),this._fireContentReadyAction()},_createValueButton:function(t,e){var n=(0,i.default)("<div>").addClass("dx-filterbuilder-text").addClass("dx-filterbuilder-item-value");return this._createValueText(t,e,n),n},_createValueEditor:function(t,e,n){var o=(0,i.default)("<div>").attr("tabindex",0).appendTo(t),r=d.default.getCustomOperation(this._customOperations,n.filterOperation),a=r&&r.editorTemplate?r.editorTemplate:e.editorTemplate;a?this._getTemplate(a).render({model:(0,u.extend)({field:e},n),container:o}):this._editorFactory.createEditor.call(this,o,(0,u.extend)({},e,n,{parentType:"filterBuilder"}));return o},_createPopupWithTreeView:function(t,e){var n=this,o=(0,i.default)("<div>").addClass(t.menu.cssClass).appendTo(e);this._createComponent(o,m.default,{onHiding:t.menu.onHiding,onHidden:t.menu.onHidden,rtlEnabled:t.menu.rtlEnabled,position:t.menu.position,animation:t.menu.animation,contentTemplate:function(e){var o=(0,i.default)("<div>").appendTo(e);n._createComponent(o,p.default,t.menu),this.repaint()},maxHeight:function(){return(0,g.getElementMaxHeightByWindow)(t.menu.position.of)},visible:!0,focusStateEnabled:!1,closeOnTargetScroll:this.option("closePopupOnTargetScroll"),closeOnOutsideClick:!0,onShown:t.popup.onShown,shading:!1,width:"auto",height:"auto",showTitle:!1})},_subscribeOnClickAndEnterKey:function(t,e){a.default.on(t,"dxclick",e),a.default.on(t,"keyup",(function(t){"enter"===(0,v.normalizeKeyName)(t)&&e(t)}))}});(0,l.default)("dxFilterBuilder",S),t.exports=S,t.exports.renderValueText=C},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(44)),r=n(0),a=d(n(461)),s=d(n(12)),l=d(n(116)),u=d(n(48)),c=n(125);function d(t){return t&&t.__esModule?t:{default:t}}var h=o.default.View.inherit({_renderCore:function(){this._updatePopupOptions()},_updatePopupOptions:function(){this.option("filterBuilderPopup.visible")?this._initPopup():this._filterBuilderPopup&&this._filterBuilderPopup.hide()},_disposePopup:function(){this._filterBuilderPopup&&(this._filterBuilderPopup.dispose(),this._filterBuilderPopup=void 0),this._filterBuilder&&(this._filterBuilder.dispose(),this._filterBuilder=void 0)},_initPopup:function(){var t=this;t._disposePopup(),t._filterBuilderPopup=t._createComponent(t.element(),u.default,(0,r.extend)({title:s.default.format("dxDataGrid-filterBuilderPopupTitle"),contentTemplate:function(e){return t._getPopupContentTemplate(e)},onOptionChanged:function(e){"visible"===e.name&&t.option("filterBuilderPopup.visible",e.value)},toolbarItems:t._getPopupToolbarItems()},t.option("filterBuilderPopup"),{onHidden:function(e){(0,c.restoreFocus)(t),t._disposePopup()}}))},_getPopupContentTemplate:function(t){var e=(0,i.default)(t),n=(0,i.default)("<div>").appendTo((0,i.default)(t));this._filterBuilder=this._createComponent(n,a.default,(0,r.extend)({value:this.option("filterValue"),fields:this.getController("columns").getFilteringColumns()},this.option("filterBuilder"),{customOperations:this.getController("filterSync").getCustomFilterOperations()})),this._createComponent(e,l.default,{direction:"both"})},_getPopupToolbarItems:function(){var t=this;return[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("OK"),onClick:function(e){var n=t._filterBuilder.option("value");t.option("filterValue",n),t._filterBuilderPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:s.default.format("Cancel"),onClick:function(e){t._filterBuilderPopup.hide()}}}]},optionChanged:function(t){switch(t.name){case"filterBuilder":case"filterBuilderPopup":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}}});t.exports={defaultOptions:function(){return{filterBuilder:{groupOperationDescriptions:{and:s.default.format("dxFilterBuilder-and"),or:s.default.format("dxFilterBuilder-or"),notAnd:s.default.format("dxFilterBuilder-notAnd"),notOr:s.default.format("dxFilterBuilder-notOr")},filterOperationDescriptions:{between:s.default.format("dxFilterBuilder-filterOperationBetween"),equal:s.default.format("dxFilterBuilder-filterOperationEquals"),notEqual:s.default.format("dxFilterBuilder-filterOperationNotEquals"),lessThan:s.default.format("dxFilterBuilder-filterOperationLess"),lessThanOrEqual:s.default.format("dxFilterBuilder-filterOperationLessOrEquals"),greaterThan:s.default.format("dxFilterBuilder-filterOperationGreater"),greaterThanOrEqual:s.default.format("dxFilterBuilder-filterOperationGreaterOrEquals"),startsWith:s.default.format("dxFilterBuilder-filterOperationStartsWith"),contains:s.default.format("dxFilterBuilder-filterOperationContains"),notContains:s.default.format("dxFilterBuilder-filterOperationNotContains"),endsWith:s.default.format("dxFilterBuilder-filterOperationEndsWith"),isBlank:s.default.format("dxFilterBuilder-filterOperationIsBlank"),isNotBlank:s.default.format("dxFilterBuilder-filterOperationIsNotBlank")}},filterBuilderPopup:{}}},views:{filterBuilderView:h}}},function(t,e,n){"use strict";t.exports=n(459),t.exports.default=t.exports},function(t,e,n){"use strict";var i=p(n(3)),o=n(2),r=p(n(44)),a=p(n(40)),s=p(n(6)),l=p(n(12)),u=p(n(138)),c=p(n(238)),d=n(7),h=p(n(46)),f=n(290);function p(t){return t&&t.__esModule?t:{default:t}}var m=r.default.View.inherit({isVisible:function(){return this.option("filterPanel.visible")&&this.getController("data").dataSource()},init:function(){var t=this;this.getController("data").dataSourceChanged.add((function(){return t.render()}))},_renderCore:function(){var t=this.element();t.empty().addClass(this.addWidgetPrefix("filter-panel"));var e=(0,i.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-left")).appendTo(t);this.option("filterValue")||this._filterValueBuffer?(e.append(this._getCheckElement()).append(this._getFilterElement()).append(this._getTextElement()),t.append(this._getRemoveButtonElement())):e.append(this._getFilterElement()).append(this._getTextElement())},_getCheckElement:function(){var t=this,e=(0,i.default)("<div>").addClass(this.addWidgetPrefix("filter-panel-checkbox"));return t._createComponent(e,u.default,{value:t.option("filterPanel.filterEnabled"),onValueChanged:function(e){t.option("filterPanel.filterEnabled",e.value)}}),e.attr("title",this.option("filterPanel.texts.filterEnabledHint")),e},_getFilterElement:function(){var t=this,e=(0,i.default)("<div>").addClass("dx-icon-filter");return s.default.on(e,"click",(function(){return t._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",t,e,void 0,(function(){return t._showFilterBuilder()})),t._addTabIndexToElement(e),e},_getTextElement:function(){var t,e=this,n=(0,i.default)("<div>").addClass(e.addWidgetPrefix("filter-panel-text")),o=e.option("filterValue");return o?(0,d.when)(e.getFilterText(o,e.getController("filterSync").getCustomFilterOperations())).done((function(t){var i=e.option("filterPanel.customizeText");if(i){var r=i({component:e.component,filterValue:o,text:t});"string"===typeof r&&(t=r)}n.text(t)})):(t=e.option("filterPanel.texts.createFilter"),n.text(t)),s.default.on(n,"click",(function(){return e._showFilterBuilder()})),(0,f.registerKeyboardAction)("filterPanel",e,n,void 0,(function(){return e._showFilterBuilder()})),e._addTabIndexToElement(n),n},_showFilterBuilder:function(){this.option("filterBuilderPopup.visible",!0)},_getRemoveButtonElement:function(){var t=this,e=function(){return t.option("filterValue",null)},n=(0,i.default)("<div>").addClass(t.addWidgetPrefix("filter-panel-clear-filter")).text(t.option("filterPanel.texts.clearFilter"));return s.default.on(n,"click",e),(0,f.registerKeyboardAction)("filterPanel",this,n,void 0,e),t._addTabIndexToElement(n),n},_addTabIndexToElement:function(t){if(!this.option("useLegacyKeyboardNavigation")){var e=this.option("tabindex")||0;t.attr("tabindex",e)}},optionChanged:function(t){switch(t.name){case"filterValue":this._invalidate(),this.option("filterPanel.filterEnabled",!0),t.handled=!0;break;case"filterPanel":this._invalidate(),t.handled=!0;break;default:this.callBase(t)}},_getConditionText:function(t,e,n){var i="[".concat(t,"] ").concat(e);return(0,o.isDefined)(n)&&(i+=n),i},_getValueMaskedText:function(t){return Array.isArray(t)?"('".concat(t.join("', '"),"')"):" '".concat(t,"'")},_getValueText:function(t,e,n){var i=this,r=new d.Deferred,s=e&&e.customizeText;if((0,o.isDefined)(n)||s)if(!s&&t.lookup)c.default.getCurrentLookupValueText(t,n,(function(t){r.resolve(i._getValueMaskedText(t))}));else{var l=Array.isArray(n)?n:a.default.getDisplayValue(t,n);(0,d.when)(c.default.getCurrentValueText(t,l,e,"filterPanel")).done((function(t){r.resolve(i._getValueMaskedText(t))}))}else r.resolve("");return r.promise()},getConditionText:function(t,e){var n,i=this,o=t[1],r=new d.Deferred,a=c.default.getCustomOperation(e.customOperations,o),s=c.default.getField(t[0],e.columns),l=s.caption||"",u=t[2];return n=a?a.caption||h.default.captionize(a.name):null===u?c.default.getCaptionByOperation("="===o?"isblank":"isnotblank",e.filterOperationDescriptions):c.default.getCaptionByOperation(o,e.filterOperationDescriptions),this._getValueText(s,a,u).done((function(t){r.resolve(i._getConditionText(l,n,t))})),r},getGroupText:function(t,e,n){var i=this,o=new d.Deferred,r=[],a=c.default.getGroupValue(t);return t.forEach((function(t){c.default.isCondition(t)?r.push(i.getConditionText(t,e)):c.default.isGroup(t)&&r.push(i.getGroupText(t,e,!0))})),d.when.apply(this,r).done((function(){for(var t,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];if("!"===a[0]){var l=e.groupOperationDescriptions["not"+a.substring(1,2).toUpperCase()+a.substring(2)].split(" ");t="".concat(l[0]," ").concat(r[0])}else t=r.join(" ".concat(e.groupOperationDescriptions[a]," "));n&&(t="(".concat(t,")")),o.resolve(t)})),o},getFilterText:function(t,e){var n={customOperations:e,columns:this.getController("columns").getFilteringColumns(),filterOperationDescriptions:this.option("filterBuilder.filterOperationDescriptions"),groupOperationDescriptions:this.option("filterBuilder.groupOperationDescriptions")};return c.default.isCondition(t)?this.getConditionText(t,n):this.getGroupText(t,n)}});t.exports={defaultOptions:function(){return{filterPanel:{visible:!1,filterEnabled:!0,texts:{createFilter:l.default.format("dxDataGrid-filterPanelCreateFilter"),clearFilter:l.default.format("dxDataGrid-filterPanelClearFilter"),filterEnabledHint:l.default.format("dxDataGrid-filterPanelFilterEnabledHint")}}}},views:{filterPanelView:m},extenders:{controllers:{data:{optionChanged:function(t){switch(t.name){case"filterPanel":this._applyFilter(),t.handled=!0;break;default:this.callBase(t)}}}}}}},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(15)),r=n(2),a=n(29),s=n(5),l=n(40),u=d(n(12)),c=d(n(61));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(0,r.isDefined)(t.allowSearch)?t.allowSearch:t.allowFiltering}function f(t,e){var n=t.lookup;return t.parseValue?n?t.parseValue.call(n,e):t.parseValue(e):e}t.exports={defaultOptions:function(){return{searchPanel:{visible:!1,width:160,placeholder:u.default.format("dxDataGrid-searchPanelPlaceholder"),highlightSearchText:!0,highlightCaseSensitive:!1,text:"",searchVisibleColumnsOnly:!1}}},extenders:{controllers:{data:{publicMethods:function(){return this.callBase().concat(["searchByText"])},_calculateAdditionalFilter:function(){var t=this.callBase(),e=function(t,e){var n,i,o,r=t._columnsController.getColumns(),s=t.option("searchPanel.searchVisibleColumnsOnly"),u=[];if(!e)return null;function d(t){for(var e=(0,a.compileGetter)(o.valueExpr),n=0;n<t.length;n++){var r=e(t[n]);u.push(i.createFilterExpression(r,null,"search"))}}for(n=0;n<r.length;n++)if(i=r[n],(!s||i.visible)&&h(i)&&i.calculateFilterExpression){o=i.lookup;var p=f(i,e);o&&o.items?(0,c.default)(o.items).filter(i.createFilterExpression.call({dataField:o.displayExpr,dataType:o.dataType,calculateFilterExpression:i.calculateFilterExpression},p,null,"search")).enumerate().done(d):void 0!==p&&u.push(i.createFilterExpression(p,null,"search"))}return(0,l.combineFilters)(u,"or")}(this,this.option("searchPanel.text"));return(0,l.combineFilters)([t,e])},searchByText:function(t){this.option("searchPanel.text",t)},optionChanged:function(t){switch(t.fullName){case"searchPanel.text":case"searchPanel":this._applyFilter(),t.handled=!0;break;default:this.callBase(t)}}}},views:{headerPanel:function(){var t=function(t){return t.option("searchPanel")};return{_getToolbarItems:function(){var t=this.callBase();return this._prepareSearchItem(t)},_prepareSearchItem:function(e){var n=this,o=n.getController("data"),r=t(n);if(r&&r.visible){var a={template:function(t,e,a){var s=(0,i.default)("<div>").addClass(n.addWidgetPrefix("search-panel")).appendTo(a);n.getController("editorFactory").createEditor(s,{width:r.width,placeholder:r.placeholder,parentType:"searchPanel",value:n.option("searchPanel.text"),updateValueTimeout:700,setValue:function(t){o.searchByText(t)},editorOptions:{inputAttr:{"aria-label":u.default.format("dxDataGrid-ariaSearchInGrid")}}}),n.resize()},name:"searchPanel",location:"after",locateInMenu:"never",sortIndex:40};e.push(a)}return e},getSearchTextEditor:function(){var t=this,e=t.element(),n=e.find("."+t.addWidgetPrefix("search-panel")).filter((function(){return(0,i.default)(this).closest("."+t.addWidgetPrefix("header-panel")).is(e)}));return n.length?n.dxTextBox("instance"):null},isVisible:function(){var e=t(this);return this.callBase()||e&&e.visible},optionChanged:function(t){if("searchPanel"===t.name){if("searchPanel.text"===t.fullName){var e=this.getSearchTextEditor();e&&e.option("value",t.value)}else this._invalidate();t.handled=!0}else this.callBase(t)}}}(),rowsView:{init:function(){this.callBase.apply(this,arguments),this._searchParams=[]},_getFormattedSearchText:function(t,e){var n=f(t,e),i=(0,l.getFormatOptionsByColumn)(t,"search");return(0,l.formatValue)(n,i)},_getStringNormalizer:function(){var t=this.option("searchPanel.highlightCaseSensitive");return function(e){return t?e:e.toLowerCase()}},_findHighlightingTextNodes:function(t,e,n){var o,r=e.parent(),a=this._getStringNormalizer(),s=a(n);if(r.length){if(t)if(t.groupIndex>=0&&!t.showWhenGrouped)o=e;else{var l=this._columnsController.getVisibleIndex(t.index);o=r.children("td").eq(l).find("*")}}else r=(0,i.default)("<div>").append(e);return o=(o=o&&o.length?o:r.find("*")).filter((function(t,e){for(var n=(0,i.default)(e).contents(),o=0;o<n.length;o++){var r=n.get(o);return 3===r.nodeType&&a(r.textContent||r.nodeValue).indexOf(s)>-1}}))},_highlightSearchTextCore:function(t,e){var n=(0,i.default)("<span>").addClass(this.addWidgetPrefix("search-text")),r=t.text(),a=t[0],s=this._getStringNormalizer(),l=s(r).indexOf(s(e));if(l>=0)return a.textContent?a.textContent=r.substr(0,l):a.nodeValue=r.substr(0,l),t.after(n.text(r.substr(l,e.length))),t=(0,i.default)(o.default.createTextNode(r.substr(l+e.length))).insertAfter(n),this._highlightSearchTextCore(t,e)},_highlightSearchText:function(t,e,n){var o=this,r=this._getStringNormalizer(),a=o.option("searchPanel.text");if(e&&n&&(a=a&&o._getFormattedSearchText(n,a)),a&&o.option("searchPanel.highlightSearchText")){var l=o._findHighlightingTextNodes(n,t,a);(0,s.each)(l,(function(t,n){(0,s.each)((0,i.default)(n).contents(),(function(t,n){e?r((0,i.default)(n).text())===r(a)&&(0,i.default)(this).replaceWith((0,i.default)("<span>").addClass(o.addWidgetPrefix("search-text")).text((0,i.default)(n).text())):o._highlightSearchTextCore((0,i.default)(n),a)}))}))}},_renderCore:function(){this.callBase.apply(this,arguments),this.option("rowTemplate")&&(this.option("templatesRenderAsynchronously")?(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._highlightSearchText(this._getTableElement())}.bind(this))):this._highlightSearchText(this._getTableElement()))},_updateCell:function(t,e){var n=e.column,i="string"!==(n.lookup&&n.lookup.dataType||n.dataType);h(n)&&(this.option("templatesRenderAsynchronously")?(this._searchParams.length||(clearTimeout(this._highlightTimer),this._highlightTimer=setTimeout(function(){this._searchParams.forEach(function(t){this._highlightSearchText.apply(this,t)}.bind(this)),this._searchParams=[]}.bind(this))),this._searchParams.push([t,i,n])):this._highlightSearchText(t,i,n)),this.callBase(t,e)},dispose:function(){clearTimeout(this._highlightTimer),this.callBase()}}}}}},function(t,e,n){"use strict";var i=l(n(44)),o=l(n(831)),r=n(16),a=n(2),s=n(10);function l(t){return t&&t.__esModule?t:{default:t}}var u=function(t){return 1+(parseInt(t.pageIndex())||0)},c=i.default.View.inherit({init:function(){var t=this,e=t.getController("data");t._isVisible=!1,e.changed.add((function(n){if(n&&n.repaintChangesOnly){var i=t._getPager();i?i.option({pageIndex:u(e),pageSize:e.pageSize(),pageCount:e.pageCount(),totalCount:e.totalCount(),hasKnownLastPage:e.hasKnownLastPage()}):t.render()}else(!n||"update"!==n.changeType&&"updateSelection"!==n.changeType)&&t.render()}))},_getPager:function(){var t=this.element();return t&&t.data("dxPager")},_renderCore:function(){var t=this.element().addClass(this.addWidgetPrefix("pager")),e=this.option("pager")||{},n=this.getController("data"),i=this.getController("keyboardNavigation"),r={maxPagesCount:10,pageIndex:u(n),pageCount:n.pageCount(),pageSize:n.pageSize(),showPageSizes:e.showPageSizeSelector,showInfo:e.showInfo,pagesNavigatorVisible:e.visible,showNavigationButtons:e.showNavigationButtons,pageSizes:this.getPageSizes(),totalCount:n.totalCount(),hasKnownLastPage:n.hasKnownLastPage(),pageIndexChanged:function(t){n.pageIndex()!==t-1&&setTimeout((function(){n.pageIndex(t-1)}))},pageSizeChanged:function(t){setTimeout((function(){n.pageSize(t)}))},onKeyDown:function(t){return i&&i.executeAction("onKeyDown",t)},useLegacyKeyboardNavigation:this.option("useLegacyKeyboardNavigation"),useKeyboard:this.option("keyboardNavigation.enabled")};(0,a.isDefined)(e.infoText)&&(r.infoText=e.infoText),this._createComponent(t,o.default,r)},getPageSizes:function(){var t=this.getController("data"),e=this.option("pager"),n=e&&e.allowedPageSizes,i=t.pageSize();return(0,a.isDefined)(this._pageSizes)&&-1!==(0,r.inArray)(i,this._pageSizes)||(this._pageSizes=[],e&&(Array.isArray(n)?this._pageSizes=n:n&&i>1&&(this._pageSizes=[Math.floor(i/2),i,2*i]))),this._pageSizes},isVisible:function(){var t=this.getController("data"),e=this.option("pager"),n=e&&e.visible,i=this.option("scrolling");return!!this._isVisible||("auto"===n&&(n=(!i||"virtual"!==i.mode&&"infinite"!==i.mode)&&(t.pageCount()>1||t.isLoaded()&&!t.hasKnownLastPage())),this._isVisible=n,n)},getHeight:function(){return this.getElementHeight()},optionChanged:function(t){var e=t.name,n="pager"===e,i="paging"===e,o="dataSource"===e,r="scrolling"===e,a=this.getController("data");if(n||i||r||o){if(t.handled=!0,a.skipProcessingPagingChange(t.fullName))return;(n||i)&&(this._pageSizes=null),(n||i||r)&&(this._isVisible=!1),o||(this._invalidate(),(0,s.hasWindow)()&&n&&this.component&&this.component.resize())}}});t.exports={defaultOptions:function(){return{pager:{visible:"auto",showPageSizeSelector:!1,allowedPageSizes:"auto"}}},views:{pagerView:c}}},function(t,e,n){"use strict";var i=v(n(3)),o=v(n(15)),r=v(n(6)),a=v(n(39)),s=v(n(2)),l=n(5),u=n(0),c=n(24),d=n(11),h=v(n(28)),f=v(n(101)),p=v(n(44)),m=v(n(40)),g=v(n(47)),_=n(194);function v(t){return t&&t.__esModule?t:{default:t}}var y="dxDataGridResizingReordering",b=function(t){return t.option("allowColumnResizing")||t.getController("columns").isColumnOptionUsed("allowResizing")},w=function(t){return t.option("allowColumnReordering")||t.getController("columns").isColumnOptionUsed("allowReordering")},x=p.default.View.inherit({_renderCore:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("tracker")),this.hide()},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_subscribeToCallback:function(){var t=this;t._positionChanged=function(e){var n=t.element();n&&n.hasClass(t.addWidgetPrefix("tracker"))&&(n.css({top:e.top}),n.height(e.height))},this._tablePositionController.positionChanged.add(t._positionChanged)},optionChanged:function(t){"allowColumnResizing"===t.name&&(this._unsubscribeFromCallback(),t.value&&(this._subscribeToCallback(),this._invalidate())),this.callBase(t)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._subscribeToCallback()},isVisible:function(){return b(this)},show:function(){this.element().show()},hide:function(){this.element()&&this.element().hide()},setHeight:function(t){this.element().height(t)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),C=p.default.View.inherit({_renderSeparator:function(){},_renderCore:function(t){this.callBase(t),this._isShown=!0,this._renderSeparator(),this.hide()},show:function(){this._isShown=!0},hide:function(){this._isShown=!1},height:function(t){var e=this.element();if(e){if(!s.default.isDefined(t))return e.height();e.height(t)}},width:function(t){var e=this.element();if(e){if(!s.default.isDefined(t))return e.width();e.width(t)}}}),S=C.inherit({_renderSeparator:function(){this.callBase(),this.element().addClass(this.addWidgetPrefix("columns-separator"))},_subscribeToCallback:function(){var t,e=this;e._positionChanged=function(n){(t=e.element())&&(t.css({top:n.top}),t.height(n.height))},e._tablePositionController.positionChanged.add(e._positionChanged)},_unsubscribeFromCallback:function(){this._positionChanged&&this._tablePositionController.positionChanged.remove(this._positionChanged)},_init:function(){this._isTransparent=b(this),this.isVisible()&&this._subscribeToCallback()},isVisible:function(){return this.option("showColumnHeaders")&&(w(this)||b(this))},optionChanged:function(t){"allowColumnResizing"===t.name&&(t.value?(this._init(),this._invalidate(),this.hide(!0)):(this._unsubscribeFromCallback(),this._isTransparent=b(this),this.hide(!0))),this.callBase(t)},init:function(){this.callBase(),this._tablePositionController=this.getController("tablePosition"),this._init()},show:function(){var t=this.element();t&&!this._isShown&&(this._isTransparent?t.removeClass(this.addWidgetPrefix("columns-separator-transparent")):t.show()),this.callBase()},hide:function(t){var e=this.element(),n=this.addWidgetPrefix("columns-separator-transparent");e&&(this._isShown||t)&&(this._isTransparent?(e.addClass(n),e.css("left",""),e.show()):(e.hasClass(n)&&e.removeClass(n),e.hide())),this.callBase()},moveByX:function(t){var e=this.element();e&&e.css("left",t-this._parentElement().offset().left)},changeCursor:function(t){t=s.default.isDefined(t)?t:"";var e=this.element();e&&e.css("cursor",t)},dispose:function(){this._unsubscribeFromCallback(),this.callBase()}}),k=C.inherit({init:function(){var t=this;this.callBase(),this.getController("data").loadingChanged.add((function(e){e||t.hide()}))},_renderSeparator:function(){this.callBase(),this.element().addClass("dx-block-separator").html(" ")},hide:function(){var t=this._parentElement(),e=this.element();e&&this._isShown&&e.css("display","none"),t&&!t.children(".dx-block-separator").length&&t.prepend(this.element()),this.callBase()},isVisible:function(){var t=this.option("groupPanel"),e=this.option("columnChooser");return t&&t.visible||e&&e.enabled},show:function(t){var e=this.element(),n=function(t){g.default.stop(e,!0),g.default.animate(e,{type:"slide",from:{width:0,display:t.display},to:t,duration:300,easing:"swing"})};if(e&&!this._isShown)switch(t){case"group":n({width:"50px",display:"inline-block"});break;case"columnChooser":n({width:"100%",display:"block"});break;default:e.css("display","")}this.callBase()}}),I=p.default.View.inherit({_isDragging:!1,isDragging:function(){return this._isDragging},_getDraggingPanelByPos:function(t){var e;return(0,l.each)(this._dragOptions.draggingPanels,(function(n,i){if(i){var o=i.getBoundingRect();if(o&&(void 0===o.bottom||t.y<o.bottom)&&(void 0===o.top||t.y>o.top)&&(void 0===o.left||t.x>o.left)&&(void 0===o.right||t.x<o.right))return e=i,!1}})),e},_renderCore:function(){this.element().addClass(this.addWidgetPrefix("drag-header")+" "+this.addWidgetPrefix("text-content")+" dx-widget").hide()},_resetTargetColumnOptions:function(){var t=this._dropOptions;t.targetColumnIndex=-1,delete t.targetColumnElement,delete t.isLast,delete t.posX,delete t.posY},_getVisibleIndexObject:function(t,e){return s.default.isDefined(t)?{columnIndex:e,rowIndex:t}:e},dispose:function(){var t=this.element();this._dragOptions=null,t&&t.parent().find("."+this.addWidgetPrefix("drag-header")).remove()},isVisible:function(){var t=this.getController("columns").getCommonSettings();return this.option("showColumnHeaders")&&(w(this)||t.allowGrouping||t.allowHiding)},init:function(){var t=this;this.callBase(),this._controller=this.getController("draggingHeader"),this._columnsResizerViewController=this.getController("columnsResizer"),this.getController("data").loadingChanged.add((function(e){var n=t.element();!e&&n&&n.hide()}))},dragHeader:function(t){var e=t.columnElement,n=!!t.sourceColumn.type;this._isDragging=!0,this._dragOptions=t,this._dropOptions={sourceIndex:t.index,sourceColumnIndex:this._getVisibleIndexObject(t.rowIndex,t.columnIndex),sourceColumnElement:t.columnElement,sourceLocation:t.sourceLocation};var i=o.default.getDocument();this._onSelectStart=i.onselectstart,i.onselectstart=function(){return!1},this._controller.drag(this._dropOptions),this.element().css({textAlign:e&&e.css("textAlign"),height:e&&(n&&e.get(0).clientHeight||e.height()),width:e&&(n&&e.get(0).clientWidth||e.width()),whiteSpace:e&&e.css("whiteSpace")}).addClass(this.addWidgetPrefix("drag-action")).toggleClass("dx-drag-command-cell",n).text(n?"":t.sourceColumn.caption),this.element().appendTo((0,_.getSwatchContainer)(e))},moveHeader:function(t){var e=t.event,n=e.data.that,i=(0,d.eventData)(e),o=!!n._columnsResizerViewController&&n._columnsResizerViewController.isResizing(),r=n._dragOptions;if(n._isDragging&&!o){var a=n.element(),s=Math.abs(i.x-r.columnElement.offset().left-r.deltaX),l=Math.abs(i.y-r.columnElement.offset().top-r.deltaY);if(a.is(":visible")||s>5||l>5){a.show();var u=i.x-r.deltaX,c=i.y-r.deltaY;a.css({left:u,top:c}),n.dockHeader(i)}e.preventDefault()}},dockHeader:function(t){var e=this._getDraggingPanelByPos(t),n=this._controller,o=this._dropOptions,r=this._dragOptions;if(e){var a=this.option("rtlEnabled"),s="columnChooser"===e.getName(),l=s?"y":"x",c=e.getName(),d="headers"===c?r.rowIndex:void 0,h=r.sourceColumn,f=e.getColumnElements(d,h&&h.ownerBand)||[],p=r.pointsByTarget=r.pointsByTarget||{},m="columnChooser"===c?[]:p[c]||n._generatePointsByColumns((0,u.extend)({},r,{targetDraggingPanel:e,columns:e.getColumns(d),columnElements:f,isVerticalOrientation:s,startColumnIndex:"headers"===c&&(0,i.default)(f[0]).index()}));if(p[c]=m,o.targetLocation=c,m.length>0)for(var g=0;g<m.length;g++){var _=m[g+1]&&(m[g][l]+m[g+1][l])/2;if(void 0===_||(a&&"x"===l?t[l]>_:t[l]<_)){o.targetColumnIndex=this._getVisibleIndexObject(d,m[g].columnIndex),f[g]?(o.targetColumnElement=f.eq(g),o.isLast=!1):(o.targetColumnElement=f.last(),o.isLast=!0),o.posX=m[g].x,o.posY=m[g].y,n.dock(o);break}}else this._resetTargetColumnOptions(),n.dock(o)}},dropHeader:function(t){var e=t.event.data.that,n=e._controller;e.element().hide(),n&&e._isDragging&&n.drop(e._dropOptions),e.element().appendTo(e._parentElement()),e._dragOptions=null,e._dropOptions=null,e._isDragging=!1,o.default.getDocument().onselectstart=e._onSelectStart||null}}),T=function(t){return"widget"!==t.option("columnResizingMode")},E=p.default.ViewController.inherit({_isHeadersRowArea:function(t){if(this._columnHeadersView){var e=this._columnHeadersView.element();if(e){var n=e.offset().top,i=this._columnHeadersView.getHeadersRowHeight();return t>=n&&t<=n+i}}return!1},_isRtlParentStyle:function(){var t;return this.option("rtlEnabled")&&"rtl"===(null===(t=this._$parentContainer)||void 0===t?void 0:t.parent().css("direction"))},_pointCreated:function(t,e,n){var i=T(this),o=this.option("rtlEnabled"),r=this._isRtlParentStyle(),a=i||!o||r?1:0;if(t.index>=a&&t.index<e+(i||o&&!r?0:1)){t.columnIndex-=a;var s=n[t.columnIndex]||{},l=n[t.columnIndex+1]||{};return!(i?s.allowResizing&&l.allowResizing:s.allowResizing)}return!0},_getTargetPoint:function(t,e,n){if(t)for(var i=0;i<t.length;i++)if((t[i].x!==t[0].x||!t[i+1]||t[i].x!==t[i+1].x)&&t[i].x-n<=e&&e<=t[i].x+n)return t[i];return null},_moveSeparator:function(t){var e=t.event,n=e.data,i=n._columnsSeparatorView.width(),o=T(n),r=i/2,a=n._$parentContainer.offset(),s=a.left,l=(0,d.eventData)(e),u=n.option("rtlEnabled"),c=this._isRtlParentStyle();if(n._isResizing&&n._resizingInfo){if((s<=l.x||!o&&c)&&(!o||l.x<=s+n._$parentContainer.width())&&n._updateColumnsWidthIfNeeded(l.x)){var h=n._columnHeadersView.getColumnElements().eq(n._resizingInfo.currentColumnIndex);n._columnsSeparatorView.moveByX(h.offset().left+((o||c)&&u?0:h.outerWidth())),n._tablePositionController.update(n._targetPoint.y),e.preventDefault()}}else n._isHeadersRowArea(l.y)?(n._previousParentOffset&&(n._previousParentOffset.left===a.left&&n._previousParentOffset.top===a.top||n.pointsByColumns(null)),n._targetPoint=n._getTargetPoint(n.pointsByColumns(),l.x,i),n._previousParentOffset=a,n._isReadyResizing=!1,n._targetPoint?(n._columnsSeparatorView.changeCursor("col-resize"),n._columnsSeparatorView.moveByX(n._targetPoint.x-r),n._tablePositionController.update(n._targetPoint.y),n._isReadyResizing=!0,e.preventDefault()):n._columnsSeparatorView.changeCursor()):(n.pointsByColumns(null),n._isReadyResizing=!1,n._columnsSeparatorView.changeCursor())},_endResizing:function(t){var e=t.event.data;e._isResizing&&(e.pointsByColumns(null),e._resizingInfo=null,e._columnsSeparatorView.hide(),e._columnsSeparatorView.changeCursor(),e._trackerView.hide(),e._isReadyResizing=!1,e._isResizing=!1)},_getNextColumnIndex:function(t){return t+1},_setupResizingInfo:function(t){var e=this._targetPoint.columnIndex,n=this._getNextColumnIndex(e),i=this._columnHeadersView.getHeaderElement(e),o=this._columnHeadersView.getHeaderElement(n);this._resizingInfo={startPosX:t,currentColumnIndex:e,currentColumnWidth:i&&i.length>0?(0,c.getBoundingRect)(i[0]).width:0,nextColumnIndex:n,nextColumnWidth:o&&o.length>0?(0,c.getBoundingRect)(o[0]).width:0}},_startResizing:function(t){var e=t.event,n=e.data,i=(0,d.eventData)(e),o=n.getController("editing"),r=n.option("editing.mode"),a=o.isEditing()&&("batch"===r||"cell"===r);if((0,d.isTouchEvent)(e)&&(n._isHeadersRowArea(i.y)?(n._targetPoint=n._getTargetPoint(n.pointsByColumns(),i.x,10),n._targetPoint&&(n._columnsSeparatorView.moveByX(n._targetPoint.x-n._columnsSeparatorView.width()/2),n._isReadyResizing=!0)):n._isReadyResizing=!1),n._isReadyResizing&&!a){n._setupResizingInfo(i.x),n._isResizing=!0,n._tablePositionController.update(n._targetPoint.y),n._columnsSeparatorView.show(),n._trackerView.show();var s=n.component.getScrollable();s&&n._isRtlParentStyle()&&(n._scrollRight=s.$content().width()-s._container().width()-s.scrollLeft()),e.preventDefault(),e.stopPropagation()}this.isResizing()&&this.getController("editorFactory").loseFocus()},_generatePointsByColumns:function(){var t=this,e=t._columnsController?t._columnsController.getVisibleColumns():[],n=t._columnHeadersView.getColumnElements(),i=[];n&&n.length>0&&(i=m.default.getPointsByColumns(n,(function(i){return t._pointCreated(i,n.length,e)}))),t._pointsByColumns=i},_unsubscribeFromEvents:function(){this._moveSeparatorHandler&&r.default.off(o.default.getDocument(),(0,d.addNamespace)(h.default.move,y),this._moveSeparatorHandler),this._startResizingHandler&&r.default.off(this._$parentContainer,(0,d.addNamespace)(h.default.down,y),this._startResizingHandler),this._endResizingHandler&&(r.default.off(this._columnsSeparatorView.element(),(0,d.addNamespace)(h.default.up,y),this._endResizingHandler),r.default.off(o.default.getDocument(),(0,d.addNamespace)(h.default.up,y),this._endResizingHandler))},_subscribeToEvents:function(){this._moveSeparatorHandler=this.createAction(this._moveSeparator),this._startResizingHandler=this.createAction(this._startResizing),this._endResizingHandler=this.createAction(this._endResizing),r.default.on(o.default.getDocument(),(0,d.addNamespace)(h.default.move,y),this,this._moveSeparatorHandler),r.default.on(this._$parentContainer,(0,d.addNamespace)(h.default.down,y),this,this._startResizingHandler),r.default.on(this._columnsSeparatorView.element(),(0,d.addNamespace)(h.default.up,y),this,this._endResizingHandler),r.default.on(o.default.getDocument(),(0,d.addNamespace)(h.default.up,y),this,this._endResizingHandler)},_updateColumnsWidthIfNeeded:function(t){var e,n,i,o,r,a=!1,l=this._resizingInfo,u=this._columnsController,c=u.getVisibleColumns(),d=this._columnsSeparatorView.width(),h=this._rowsView.contentWidth(),f=T(this),p=f&&this.option("adaptColumnWidthByRatio")&&!this.option("columnAutoWidth"),g=this.option("rtlEnabled"),_=this._isRtlParentStyle();function v(t){return s.default.isString(t)&&"%"===t.slice(-1)}function y(t,e,n,i){if(t){var o=t.width;o&&(i=v(o)),i?(t&&u.columnOption(t.index,"visibleWidth",e),t&&u.columnOption(t.index,"width",(e/n*100).toFixed(3)+"%")):(t&&u.columnOption(t.index,"visibleWidth",null),t&&u.columnOption(t.index,"width",e))}}e=t-l.startPosX,(f||_)&&g&&(e=-e),r=l.currentColumnWidth+e;var b=c[l.currentColumnIndex];if(a=r>=(i=b&&b.minWidth||d),f&&(n=l.nextColumnWidth-e,i=(o=c[l.nextColumnIndex])&&o.minWidth||d,a=a&&n>=i),a){if(u.beginUpdate(),y(b,r=Math.floor(r),h=function(t,e){if(e.every((function(t){return t.width}))){var n=e.reduce((function(t,e){return v(e.width)&&(t+=parseFloat(e.width)),t}),0);n>100&&(t=t/n*100)}return t}(h,c),p),f)y(o,n=Math.floor(n),h,p);else{var w=this._columnHeadersView.getColumnWidths();if(w[l.currentColumnIndex]=r,!(w.reduce((function(t,e){return t+e}),0)>this._rowsView.contentWidth())){var x=m.default.getLastResizableColumnIndex(c);x>=0&&u.columnOption(c[x].index,"visibleWidth","auto")}for(var C=0;C<w.length;C++)c[C]&&c[C]!==b&&void 0===c[C].width&&u.columnOption(c[C].index,"width",w[C])}if(u.endUpdate(),!f){this.component.updateDimensions();var S=this.component.getScrollable();if(S&&_){var k=S.$content().width()-S._container().width()-this._scrollRight;S.scrollTo({left:k})}}}return a},_subscribeToCallback:function(t,e){t.add(e),this._subscribesToCallbacks.push({callback:t,handler:e})},_unsubscribeFromCallbacks:function(){for(var t=0;t<this._subscribesToCallbacks.length;t++){var e=this._subscribesToCallbacks[t];e.callback.remove(e.handler)}this._subscribesToCallbacks=[]},_unsubscribes:function(){this._unsubscribeFromEvents(),this._unsubscribeFromCallbacks()},_init:function(){var t=this,e=function(){t._isResizing||t.pointsByColumns(null)},n=function(e){t._scrollLeft!==e.left&&(t._scrollLeft=e.left,t.pointsByColumns(null))};t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._columnHeadersView=t.getView("columnHeadersView"),t._trackerView=t.getView("trackerView"),t._rowsView=t.getView("rowsView"),t._columnsController=t.getController("columns"),t._tablePositionController=t.getController("tablePosition"),t._$parentContainer=t.component.$element(),t._subscribeToCallback(t._columnHeadersView.renderCompleted,e),t._subscribeToCallback(t._columnHeadersView.resizeCompleted,e),t._subscribeToCallback(t._columnsSeparatorView.renderCompleted,(function(){t._unsubscribeFromEvents(),t._subscribeToEvents()})),t._subscribeToCallback(t._rowsView.renderCompleted,(function(){t._rowsView.scrollChanged.remove(n),t._rowsView.scrollChanged.add(n)}));var i=0!==t._rowsView.getScrollbarWidth(),o=0;t._subscribeToCallback(t.getController("tablePosition").positionChanged,(function(e){if(t._isResizing&&!t._rowsView.isResizing){var n=0!==t._rowsView.getScrollbarWidth();i!==n||o&&o!==e.height?(i=n,o=e.height,t.component.updateDimensions()):t._rowsView.updateFreeSpaceRowHeight()}o=e.height}))},optionChanged:function(t){this.callBase(t),"allowColumnResizing"===t.name&&(t.value?(this._init(),this._subscribeToEvents()):this._unsubscribes())},isResizing:function(){return this._isResizing},init:function(){this._subscribesToCallbacks=[],b(this)&&this._init()},pointsByColumns:function(t){if(void 0===t)return this._pointsByColumns||this._generatePointsByColumns(),this._pointsByColumns;this._pointsByColumns=t},dispose:function(){this._unsubscribes(),this.callBase()}}),O=p.default.ViewController.inherit({update:function(t){var e={},n=this._columnHeadersView.element(),i=n&&n.offset(),o=i&&i.top||0,r=s.default.isDefined(t)?Math.abs(t-o):0,a=this._columnHeadersView?this._columnHeadersView.getHeight():0,l=this._rowsView.getScrollbarWidth(!0),u=this._rowsView?this._rowsView.height()-l:0,c=this.component.getController("columnsResizer"),d=this.component.getView("draggingHeaderView");e.height=a,(!1!==c.isResizing()||d.isDragging())&&(e.height+=u-r),null!==t&&n&&n.length&&(e.top=n[0].offsetTop+r),this.positionChanged.fire(e)},init:function(){var t=this;t.callBase(),t._columnHeadersView=this.getView("columnHeadersView"),t._rowsView=this.getView("rowsView"),t._pagerView=this.getView("pagerView"),t._rowsView.resizeCompleted.add((function(){if(t.option("allowColumnResizing")){var e=t.getController("columnsResizer")._targetPoint;t.update(e?e.y:null)}}))},ctor:function(t){this.callBase(t),this.positionChanged=(0,a.default)()}}),M=p.default.ViewController.inherit({_generatePointsByColumns:function(t){var e=this;return m.default.getPointsByColumns(t.columnElements,(function(n){return e._pointCreated(n,t.columns,t.targetDraggingPanel.getName(),t.sourceColumn)}),t.isVerticalOrientation,t.startColumnIndex)},_pointCreated:function(t,e,n,i){var o=e[t.columnIndex],r=e[t.columnIndex-1];switch(n){case"columnChooser":return!0;case"headers":return i&&!i.allowReordering||(!o||!o.allowReordering)&&(!r||!r.allowReordering);default:return 0===e.length}},_subscribeToEvents:function(t,e){var n=this;(0,l.each)(e,(function(o,a){if(a)for(var s,u=a.getRowCount?a.getRowCount():1,c=a.getName(),h=function(o,l){if(l){var u=(0,i.default)(l),h=s[o];a.allowDragging(h,c,e)&&(u.addClass(n.addWidgetPrefix("drag-action")),r.default.on(u,(0,d.addNamespace)(f.default.start,y),n.createAction((function(r){var a=r.event,s=(0,d.eventData)(a);t.dragHeader({deltaX:s.x-(0,i.default)(a.currentTarget).offset().left,deltaY:s.y-(0,i.default)(a.currentTarget).offset().top,sourceColumn:h,index:h.index,columnIndex:o,columnElement:u,sourceLocation:c,draggingPanels:e,rowIndex:n._columnsController.getRowIndex(h.index,!0)})}))),r.default.on(u,(0,d.addNamespace)(f.default.move,y),{that:t},n.createAction(t.moveHeader)),r.default.on(u,(0,d.addNamespace)(f.default.end,y),{that:t},n.createAction(t.dropHeader)))}},p=0;p<u;p++){var m=a.getColumnElements(p)||[];m.length&&(s=a.getColumns(p)||[],(0,l.each)(m,h))}}))},_unsubscribeFromEvents:function(t,e){var n=this;(0,l.each)(e,(function(t,e){if(e){var o=e.getColumnElements()||[];(0,l.each)(o,(function(t,e){var o=(0,i.default)(e);r.default.off(o,(0,d.addNamespace)(f.default.start,y)),r.default.off(o,(0,d.addNamespace)(f.default.move,y)),r.default.off(o,(0,d.addNamespace)(f.default.end,y)),o.removeClass(n.addWidgetPrefix("drag-action"))}))}}))},_getSeparator:function(t){return"headers"===t?this._columnsSeparatorView:this._blockSeparatorView},hideSeparators:function(t){var e=this._blockSeparatorView,n=this._columnsSeparatorView;this._animationColumnIndex=null,e&&e.hide(),"block"!==t&&n&&n.hide()},init:function(){var t=this;t.callBase(),t._columnsController=t.getController("columns"),t._columnHeadersView=t.getView("columnHeadersView"),t._columnsSeparatorView=t.getView("columnsSeparatorView"),t._draggingHeaderView=t.getView("draggingHeaderView"),t._rowsView=t.getView("rowsView"),t._blockSeparatorView=t.getView("blockSeparatorView"),t._headerPanelView=t.getView("headerPanel"),t._columnChooserView=t.getView("columnChooserView");var e=function(){if(t._draggingHeaderView){var e=[t._columnChooserView,t._columnHeadersView,t._headerPanelView];t._unsubscribeFromEvents(t._draggingHeaderView,e),t._subscribeToEvents(t._draggingHeaderView,e)}};t._columnHeadersView.renderCompleted.add(e),t._headerPanelView&&t._headerPanelView.renderCompleted.add(e),t._columnChooserView&&t._columnChooserView.renderCompleted.add(e)},allowDrop:function(t){return this._columnsController.allowMoveColumn(t.sourceColumnIndex,t.targetColumnIndex,t.sourceLocation,t.targetLocation)},drag:function(t){var e=t.sourceIndex,n=t.sourceLocation,i=t.sourceColumnElement,o=this._columnHeadersView,r=this._rowsView;i&&(i.css({opacity:.5}),"headers"===n&&(o&&o.setRowsOpacity(e,.5),r&&r.setRowsOpacity(e,.5)))},dock:function(t){var e=this,n=s.default.isObject(t.targetColumnIndex)?t.targetColumnIndex.columnIndex:t.targetColumnIndex,i=t.sourceLocation,o=t.targetLocation,r=e._getSeparator(o),a=n>=0;e._columnHeadersView.element().find(".dx-header-row").toggleClass(e.addWidgetPrefix("drop-highlight"),"headers"!==i&&"headers"===o&&!a),r&&(e.allowDrop(t)&&a?"group"===o||"columnChooser"===o?e._animationColumnIndex!==n&&(e.hideSeparators(),r.element()[t.isLast?"insertAfter":"insertBefore"](t.targetColumnElement),e._animationColumnIndex=n,r.show(o)):(e.hideSeparators("block"),e.getController("tablePosition").update(t.posY),r.moveByX(t.posX-r.width()),r.show()):e.hideSeparators())},drop:function(t){var e=t.sourceColumnElement;if(e&&(e.css({opacity:""}),this._columnHeadersView.setRowsOpacity(t.sourceIndex,""),this._rowsView.setRowsOpacity(t.sourceIndex,""),this._columnHeadersView.element().find(".dx-header-row").removeClass(this.addWidgetPrefix("drop-highlight"))),this.allowDrop(t)){var n=this._getSeparator(t.targetLocation);n&&n.hide(),this._columnsController.moveColumn(t.sourceColumnIndex,t.targetColumnIndex,t.sourceLocation,t.targetLocation)}},dispose:function(){this._draggingHeaderView&&this._unsubscribeFromEvents(this._draggingHeaderView,[this._columnChooserView,this._columnHeadersView,this._headerPanelView])}});t.exports={views:{columnsSeparatorView:S,blockSeparatorView:k,draggingHeaderView:I,trackerView:x},controllers:{draggingHeader:M,tablePosition:O,columnsResizer:E},extenders:{views:{rowsView:{_needUpdateRowHeight:function(t){var e=this.option("wordWrapEnabled"),n=this.getController("columnsResizer"),i=n.isResizing();return this.callBase.apply(this,arguments)||t>0&&e&&i}}},controllers:{editorFactory:{renderFocusOverlay:function(){if(!this.getController("columnsResizer").isResizing())return this.callBase.apply(this,arguments)}}}}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=x(n(3)),r=x(n(15)),a=x(n(6)),s=x(n(44)),l=n(40),u=n(2),c=n(16),d=n(91),h=w(n(11)),f=x(n(28)),p=x(n(25)),m=n(4),g=w(n(125)),_=x(n(31)),v=n(158),y=x(n(18));function b(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return b=function(){return t},t}function w(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=b();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}return n.default=t,e&&e.set(t,n),n}function x(t){return t&&t.__esModule?t:{default:t}}var C="input:not([type='hidden']), textarea, a, select, [tabindex]";function S(t){return t&&t.hasClass("dx-group-row")}function k(t){return t&&t.hasClass("dx-master-detail-row")}function I(t){return t&&!S(t)&&!k(t)}function T(t){return t.length&&"TD"===t[0].tagName}function E(t,e){return!t._isRowEditMode()&&e&&!e.hasClass("dx-command-select")&&e.hasClass("dx-editor-cell")}function O(t){return(0,u.isDefined)(t)&&t.length>0}function M(){return"desktop"!==y.default.current().deviceType}function P(t){return!!t.parent(".".concat("dx-header-row")).length}var D=s.default.ViewController.inherit({init:function(){var t=this;t.isKeyboardEnabled()&&(g.subscribeVisibilityChange(),t._dataController=t.getController("data"),t._selectionController=t.getController("selection"),t._editingController=t.getController("editing"),t._headerPanel=t.getView("headerPanel"),t._columnsController=t.getController("columns"),t._fastEditingStarted=!1,t._focusedCellPosition={},t._canceledCellPosition=null,t.getController("editorFactory").focused.add((function(e){t.setupFocusedView(),t._isNeedScroll&&e.is(":visible")&&t._focusedView&&t._focusedView.getScrollable&&(t._focusedView._scrollToElement(e),t._isNeedScroll=!1)})),t._initViewHandlers(),t._initDocumentHandlers(),t.createAction("onKeyDown"))},_initViewHandlers:function(){var t=this,e=this.createAction(this._pointerEventHandler),n=this.getView("rowsView");n.renderCompleted.add((function(i){var r=n.element(),s=!i||"refresh"===i.changeType,l=t._focusedView&&t._focusedView.name===n.name,u=i&&("append"===i.changeType||"prepend"===i.changeType),c=".".concat("dx-row"," > td, .").concat("dx-row"),d=(0,o.default)(":focus"),m=!d.length||d.closest(r).length||_.default.msie&&d.is("body"),g=M()?p.default.name:f.default.down;a.default.off(r,h.addNamespace(g,"dxDataGridKeyboardNavigation"),e),a.default.on(r,h.addNamespace(g,"dxDataGridKeyboardNavigation"),c,e),t._initKeyDownHandler(r,(function(e){return t._keyDownHandler(e)})),t._setRowsViewAttributes(r),l&&m&&(t._isNeedFocus?!u:t._isHiddenFocus&&s)&&t._updateFocus(!0)}))},_initDocumentHandlers:function(){var t=this,e=r.default.getDocument();t._documentClickHandler=t.createAction((function(e){var n=(0,o.default)(e.event.target),i=t._isEventInCurrentGrid(e.event)&&n.closest(".".concat(t.addWidgetPrefix("rowsview"))).length,r=n.closest(".".concat("dx-dropdowneditor-overlay")).length;i||r||t._resetFocusedCell()})),a.default.on(e,h.addNamespace(f.default.down,"dxDataGridKeyboardNavigation"),t._documentClickHandler)},_setRowsViewAttributes:function(t){!this._dataController.getVisibleRows().length&&this._applyTabIndexToElement(t)},_initKeyDownHandler:function(t,e){v.keyboard.off(this._keyDownListener),this._keyDownListener=v.keyboard.on(t,null,e)},dispose:function(){this.callBase(),this._focusedView=null,v.keyboard.off(this._keyDownListener),a.default.off(r.default.getDocument(),h.addNamespace(f.default.down,"dxDataGridKeyboardNavigation"),this._documentClickHandler),g.unsubscribeVisibilityChange()},optionChanged:function(t){switch(t.name){case"keyboardNavigation":case"useLegacyKeyboardNavigation":t.handled=!0;break;default:this.callBase(t)}},isRowFocusType:function(){return"row"===this.focusType},isCellFocusType:function(){return"cell"===this.focusType},setRowFocusType:function(){this.option("focusedRowEnabled")&&(this.focusType="row")},setCellFocusType:function(){this.focusType="cell"},_keyDownHandler:function(t){var e=this._editingController.isEditing(),n=!0,i=t.originalEvent,o=this._processOnKeyDown(t);if(!i.isDefaultPrevented()&&(this._isNeedFocus=!0,this._isNeedScroll=!0,this._updateFocusedCellPositionByTarget(i.target),!o)){switch(t.keyName){case"leftArrow":case"rightArrow":this._leftRightKeysHandler(t,e);break;case"upArrow":case"downArrow":t.ctrl?g.selectView("rowsView",this,i):this._upDownKeysHandler(t,e);break;case"pageUp":case"pageDown":this._pageUpDownKeyHandler(t);break;case"space":this._spaceKeyHandler(t,e);break;case"A":t.ctrl?this._ctrlAKeyHandler(t,e):this._beginFastEditing(t.originalEvent);break;case"tab":this._tabKeyHandler(t,e);break;case"enter":this._enterKeyHandler(t,e);break;case"escape":this._escapeKeyHandler(t,e);break;case"F":t.ctrl?this._ctrlFKeyHandler(t):this._beginFastEditing(t.originalEvent);break;case"F2":this._f2KeyHandler();break;case"del":case"backspace":this._isFastEditingAllowed()&&!this._isFastEditingStarted()&&this._beginFastEditing(i,!0);break;default:this._beginFastEditing(i)||(this._isNeedFocus=!1,this._isNeedScroll=!1,n=!1)}n&&i.stopPropagation()}},_processOnKeyDown:function(t){var e=t.originalEvent,n={handled:!1,event:e};return this.executeAction("onKeyDown",n),t.ctrl=e.ctrlKey,t.alt=e.altKey,t.shift=e.shiftKey,!!n.handled},_closeEditCell:function(){var t=this;setTimeout((function(){t._editingController.closeEditCell()}))},_leftRightKeysHandler:function(t,e){var n=this.getVisibleRowIndex(),i=t.originalEvent,o=this._focusedView&&this._focusedView.getRow(n),r=this._getDirectionCodeByKey(t.keyName),a=this._isFastEditingStarted();if((!e||a)&&I(o)){this.setCellFocusType(),a&&this._closeEditCell();var s=this._getNextCell(r);O(s)&&this._arrowKeysHandlerFocusCell(i,s),i&&i.preventDefault()}},_upDownKeysHandler:function(t,e){var n=this.getVisibleRowIndex(),i=this._focusedView&&this._focusedView.getRow(n),o=t.originalEvent,r="upArrow"===t.keyName,a=this._dataController.dataSource(),s=this._isFastEditingStarted();if((!e||s)&&i&&!k(i)){if(s&&this._closeEditCell(),!this._navigateNextCell(o,t.keyName)&&this._isVirtualScrolling()&&r&&a&&!a.isLoading()){var l=i.outerHeight();n=this._focusedCellPosition.rowIndex-1,this._scrollBy(-l,n,o)}o&&o.preventDefault()}},_pageUpDownKeyHandler:function(t){var e=this._dataController.pageIndex(),n=this._dataController.pageCount(),i=this.option("paging.enabled"),o="pageUp"===t.keyName,r=o?-1:1,a=this.getView("rowsView").getScrollable();i&&!this._isVirtualScrolling()?(o?e>0:e<n-1)&&!this._isVirtualScrolling()&&(this._dataController.pageIndex(e+r),t.originalEvent.preventDefault()):a&&a._container().height()<a.$content().height()&&(this._scrollBy(a._container().height()*r),t.originalEvent.preventDefault())},_spaceKeyHandler:function(t,e){var n=this.getVisibleRowIndex(),i=(0,o.default)(t.originalEvent&&t.originalEvent.target);if(this.option("selection")&&"none"!==this.option("selection").mode&&!e){var r="row"===this._getElementType(i)&&this.isRowFocusType()&&I(i);i.hasClass("dx-command-select")&&"onClick"===this.option("selection.showCheckBoxesMode")&&this._selectionController.startSelectionWithCheckboxes(),(r||i.parent().hasClass("dx-data-row")||i.hasClass(this.addWidgetPrefix("rowsview")))&&(this._selectionController.changeItemSelection(n,{shift:t.shift,control:t.ctrl}),t.originalEvent.preventDefault())}else this._beginFastEditing(t.originalEvent)},_ctrlAKeyHandler:function(t,e){!e&&t.ctrl&&!t.alt&&"multiple"===this.option("selection.mode")&&this.option("selection.allowSelectAll")&&(this._selectionController.selectAll(),t.originalEvent.preventDefault())},_tabKeyHandler:function(t,e){var n=this.option("editing"),i=t.shift?"previous":"next",r=!t.shift&&this._isLastValidCell(this._focusedCellPosition)||t.shift&&this._isFirstValidCell(this._focusedCellPosition),a=t.originalEvent.target,s=this._focusedView&&this._focusedView.element();if(!this._handleTabKeyOnMasterDetailCell(a,i)){if((0,o.default)(s).addClass("dx-state-focused"),n&&a&&!r)if((0,o.default)(a).hasClass(this.addWidgetPrefix("rowsview"))&&this._resetFocusedCell(),e){if(!this._editingCellTabHandler(t,i))return}else this._targetCellTabHandler(t,i)&&(r=!0);r?(this.getController("editorFactory").loseFocus(),this._editingController.isEditing()&&!this._isRowEditMode()&&(this._resetFocusedCell(),this._closeEditCell())):t.originalEvent.preventDefault()}},_editingCellTabHandler:function(t,e){var n,i=t.originalEvent.target,o=this._getCellElementFromTarget(i),r=t.originalEvent,a=this._getElementType(i);if(o.is("[class^=dx-command]"))return!this._targetCellTabHandler(t,e);this._updateFocusedCellPosition(o);var s=this._getNextCellByTabKey(r,e,a);if(!(o=s.$cell)||this._handleTabKeyOnMasterDetailCell(o,e))return!1;var l=this._columnsController.getVisibleColumns()[this.getView("rowsView").getCellIndex(o)],u=this._dataController.items()[this._getRowIndex(o&&o.parent())];if(l.allowEditing){var c=!u||"data"===u.rowType;n=this._editingController.allowUpdating({row:u})?c:u&&u.isNewRow}return n||this._closeEditCell(),this._focusCell(o,!s.isHighlighted)&&(!this._isRowEditMode()&&n?this._editingController.editCell(this.getVisibleRowIndex(),this._focusedCellPosition.columnIndex):this._focusInteractiveElement(o,t.shift)),!0},_targetCellTabHandler:function(t,e){var n,i=t.originalEvent,r=i.target,a=this._getCellElementFromTarget(r),s=this._getInteractiveElement(a,!t.shift),l=!1;if(!E(this,a)&&s.length&&r!==s.get(0))l=!0;else{void 0===this._focusedCellPosition.rowIndex&&(0,o.default)(r).hasClass("dx-row")&&this._updateFocusedCellPosition(a),n=this._getElementType(r),this.isRowFocusType()&&(this.setCellFocusType(),"row"===n&&I((0,o.default)(r))&&(r=this.getFirstValidCellInRow((0,o.default)(r)),n=this._getElementType(r)));var u=this._getNextCellByTabKey(i,e,n);if(!(a=u.$cell))return!1;if(!(a=this._checkNewLineTransition(i,a)))return!1;this._focusCell(a,!u.isHighlighted),E(this,a)||this._focusInteractiveElement(a,t.shift)}return l},_getNextCellByTabKey:function(t,e,n){var i=this._getNextCell(e,n),o=i&&this._fireFocusedCellChanging(t,i,!0);return!o||o.cancel?{}:(o.$newCellElement&&(i=o.$newCellElement),{$cell:i,isHighlighted:o.isHighlighted})},_checkNewLineTransition:function(t,e){var n=this.getVisibleRowIndex(),i=e.parent();if(n!==this._getRowIndex(i)){var o=this._getCellPosition(e),r=this._fireFocusedRowChanging(t,i);if(r.cancel)return;r.rowIndexChanged&&(this.setFocusedColumnIndex(o.columnIndex),e=this._getFocusedCell())}return e},_enterKeyHandler:function(t,e){var n=this._getFocusedCell(),i=this.getVisibleRowIndex(),o=this._focusedView&&this._focusedView.getRow(i);if(this.option("grouping.allowCollapsing")&&S(o)||this.option("masterDetail.enabled")&&n&&n.hasClass("dx-command-expand")){var r=this._dataController.getKeyByRowIndex(i),a=this._dataController.items()[i];void 0!==r&&a&&a.data&&!a.data.isContinuation&&this._dataController.changeRowExpand(r)}else this._processEnterKeyForDataCell(t,e)},_processEnterKeyForDataCell:function(t,e){var n=this._getEnterKeyDirection(t),i=this._allowEditingOnEnterKey();e||!i&&n?(this._handleEnterKeyEditingCell(t.originalEvent),"next"===n||"previous"===n?this._targetCellTabHandler(t,n):"upArrow"!==n&&"downArrow"!==n||this._navigateNextCell(t.originalEvent,n)):i&&this._startEditing(t)},_getEnterKeyDirection:function(t){var e=this.option("keyboardNavigation.enterKeyDirection"),n=t.shift;return"column"===e?n?"upArrow":"downArrow":"row"===e?n?"previous":"next":void 0},_handleEnterKeyEditingCell:function(t){var e=t.target,n=this._getCellElementFromTarget(e),i=this._isRowEditMode();this._updateFocusedCellPosition(n),i?(this._focusEditFormCell(n),setTimeout(this._editingController.saveEditData.bind(this._editingController))):(a.default.trigger((0,o.default)(e),"change"),this._closeEditCell(),t.preventDefault())},_escapeKeyHandler:function(t,e){var n=this._getCellElementFromTarget(t.originalEvent.target);e&&(this._updateFocusedCellPosition(n),this._isRowEditMode()?(this._focusEditFormCell(n),this._editingController.cancelEditData()):"cell"===this._editingController.getEditMode()?this._editingController.cancelEditData():this._closeEditCell(),t.originalEvent.preventDefault())},_ctrlFKeyHandler:function(t){if(this.option("searchPanel.visible")){var e=this._headerPanel.getSearchTextEditor();e&&(e.focus(),t.originalEvent.preventDefault())}},_f2KeyHandler:function(){var t=this._editingController.isEditing(),e=this.getVisibleRowIndex(),n=this._focusedView&&this._focusedView.getRow(e);!t&&I(n)&&this._startEditing()},_navigateNextCell:function(t,e){var n=this._getNextCell(e);return!(!n||!this._isCellValid(n))&&this._arrowKeysHandlerFocusCell(t,n,!0)},_arrowKeysHandlerFocusCell:function(t,e,n){var i=this._fireFocusChangingEvents(t,e,n,!0);return e=i.$newCellElement,!(i.cancel||!this._isCellValid(e))&&(this._focus(e,!i.isHighlighted),!0)},_beginFastEditing:function(t,e){if(!this._isFastEditingAllowed()||t.altKey||t.ctrlKey||this._editingController.isEditing())return!1;if(e)this._startEditing(t,"delete");else{var n=t.key,i=t.keyCode||t.which,o=n||i&&String.fromCharCode(i);!o||1!==o.length&&"delete"!==o||this._startEditing(t,o)}return!0},_pointerEventHandler:function(t){var e=t.event||t,n=(0,o.default)(e.currentTarget),i=this.getView("rowsView"),r=i&&i.element(),a=n.parent(),s=a.hasClass("dx-edit-row"),l=(0,o.default)(e.target).is(C),u=!!(0,o.default)(e.target).closest(".".concat("dx-revert-button")).length,c=n.hasClass("dx-command-expand");!u&&this._isEventInCurrentGrid(e)&&(this._isCellValid(n,!l)||c)?(n=this._isInsideEditForm(n)?(0,o.default)(e.target):n,this._focusView(),(0,o.default)(r).removeClass("dx-state-focused"),a.hasClass("dx-freespace-row")?(this._updateFocusedCellPosition(n),this._applyTabIndexToElement(this._focusedView.element()),this._focusedView.focus()):this._isMasterDetailCell(n)||s?this._updateFocusedCellPosition(n):this._clickTargetCellHandler(e,n)):n.is("td")&&this._resetFocusedCell()},_clickTargetCellHandler:function(t,e){var n=this.getView("rowsView").getCellIndex(e),i=this._columnsController.getVisibleColumns()[n],r=this._isCellEditMode();this.setCellFocusType();var a=this._fireFocusChangingEvents(t,e,!0);if(e=a.$newCellElement,a.cancel)this.setRowFocusType(),this.setFocusedRowIndex(a.prevRowIndex),e=this._getFocusedCell(),this._editingController.isEditing()&&r&&this._closeEditCell();else{if(a.resetFocusedRow)return void this.getController("focus")._resetFocusedRow();if(a.rowIndexChanged&&(e=this._getFocusedCell()),a.isHighlighted||r||this.setRowFocusType(),this._updateFocusedCellPosition(e),this._allowRowUpdating()&&r&&i&&i.allowEditing)this._isNeedFocus=!1,this._isHiddenFocus=!1;else{var s=t&&(0,o.default)(t.target).closest(C+", td"),l=s&&s.not(e).is(C),u=!(!!i&&!i.command&&e.hasClass("dx-editor-cell"))&&(!a.isHighlighted||l);this._focus(e,u,l)}}},_allowRowUpdating:function(){var t=this.getVisibleRowIndex(),e=this._dataController.items()[t];return this._editingController.allowUpdating({row:e},"click")},focus:function(t){var e,n=this.option("focusedRowEnabled"),i=T((0,o.default)(t));t||(e=".dx-datagrid-rowsview .dx-row[tabindex]",n||(e+=", .dx-datagrid-rowsview .dx-row > td[tabindex]"),t=this.component.$element().find(e).first()),t&&this._focusElement((0,o.default)(t),i)},getFocusedView:function(){return this._focusedView},setupFocusedView:function(){this.isKeyboardEnabled()&&!(0,u.isDefined)(this._focusedView)&&this._focusView()},_focusElement:function(t,e){var n=(0,o.default)(this._getRowsViewElement()),i=t.closest(n),r=this.isRowFocusType(),a={};!i.length||T(t)&&!this._isCellValid(t)||(this._focusView(),this._isNeedFocus=!0,this._isNeedScroll=!0,(T(t)||S(t))&&(this.setCellFocusType(),t=(a=this._fireFocusChangingEvents(null,t,!1,e)).$newCellElement,r&&!a.isHighlighted&&this.setRowFocusType()),a.cancel||(this._focus(t,!a.isHighlighted),this._focusInteractiveElement(t)))},_getFocusedViewByElement:function(t){var e=this.getFocusedView(),n=e&&(0,o.default)(e.element());return t&&0!==t.closest(n).length},_focusView:function(){this._focusedView=this.getView("rowsView")},_focusInteractiveElement:function(t,e){if(t){var n=this._getInteractiveElement(t,e);(0,l.focusAndSelectElement)(this,n)}},_focus:function(t,e,n){var i=t&&!t.hasClass("dx-row")?t.closest(".".concat("dx-row")):t;if(!i||!function(t){return!t||t.hasClass("dx-freespace-row")||t.hasClass("dx-virtual-row")}(i)){var o,r=this._focusedView,s=r&&r.element();this._isHiddenFocus=e,S(i)||this.isRowFocusType()?(o=i,r&&this.setFocusedRowIndex(this._getRowIndex(i))):T(t)&&(o=t,this._updateFocusedCellPosition(t)),o&&(s&&s.find(".dx-row[tabIndex], .dx-row > td[tabindex]").not(o).removeClass("dx-cell-focus-disabled").removeAttr("tabIndex"),a.default.one(o,"blur",(function(t){t.relatedTarget&&o.removeClass("dx-cell-focus-disabled")})),n||(this._applyTabIndexToElement(o),a.default.trigger(o,"focus")),e?o.addClass("dx-cell-focus-disabled"):this.getController("editorFactory").focus(o))}},_updateFocus:function(t){var e=this;setTimeout((function(){var n=e._getFocusedCell(),i=e.getController("editing").isEditing();if(n&&(!e._isMasterDetailCell(n)||e._isRowEditMode())){if(e._hasSkipRow(n.parent())){var o=e._focusedCellPosition&&e._focusedCellPosition.rowIndex>0?"upArrow":"downArrow";n=e._getNextCell(o)}if(O(n)){if(t&&!i&&e._checkCellOverlapped(n))return;if(n.is("td")||n.hasClass(e.addWidgetPrefix("edit-form-item"))){var r=n.is("[class^=dx-command]");!t&&r||!e.getController("editorFactory").focus()?e._isCellEditMode()?e._focus(n,e._isHiddenFocus):e._isHiddenFocus&&e._focus(n,!0):e._focus(n),i&&e._focusInteractiveElement.bind(e)(n)}else a.default.trigger(n,"focus")}}}))},_checkCellOverlapped:function(t){var e=t.offset(),n=!1;return this.component.getScrollable&&this.component.getScrollable()&&(e.left<0?n=t.width()+e.left<=0:e.top<0&&(n=t.height()+e.top<=0)),n},_getFocusedCell:function(){return(0,o.default)(this._getCell(this._focusedCellPosition))},_updateFocusedCellPositionByTarget:function(t){var e;if("row"===this._getElementType(t)&&(0,u.isDefined)(null===(e=this._focusedCellPosition)||void 0===e?void 0:e.columnIndex)){var n=(0,o.default)(t);this._focusedView&&S(n)&&this.setFocusedRowIndex(this._getRowIndex(n))}else this._updateFocusedCellPosition(this._getCellElementFromTarget(t))},_updateFocusedCellPosition:function(t,e){var n=this._getCellPosition(t,e);return n&&(!t.length||n.rowIndex>=0&&n.columnIndex>=0)&&this.setFocusedCellPosition(n.rowIndex,n.columnIndex),n},_getCellPosition:function(t,e){var n,i=O(t)&&t.closest("tr"),o=this.getView("rowsView");if(O(i)){var r=this._getRowIndex(i);return n=o.getCellIndex(t,r),e&&(n="previous"===e?n-1:n+1,n=this._applyColumnIndexBoundaries(n)),{rowIndex:r,columnIndex:n}}},_focusCell:function(t,e){if(this._isCellValid(t))return this._focus(t,e),!0},_focusEditFormCell:function(t){t.hasClass("dx-master-detail-cell")&&this.getController("editorFactory").focus(t,!0)},_resetFocusedCell:function(){var t=this._getFocusedCell();t&&t.removeAttr("tabIndex"),this._focusedView&&this._focusedView.renderFocusState&&this._focusedView.renderFocusState(),this._isNeedFocus=!1,this._isNeedScroll=!1,this._focusedCellPosition={}},restoreFocusableElement:function(t,e){var n,i,o=(0,u.isDefined)(t),r=this.getView("rowsView"),s=r.element(),l=this._focusedCellPosition.columnIndex,c=this._dataController.getRowIndexOffset();t=o?t:r.getTopVisibleItemIndex()+c,o?(i=r.getRow(t-c),!(n=this._fireFocusedRowChanging(e,i)).cancel&&n.rowIndexChanged&&(t=n.newRowIndex)):(this.getController("editorFactory").loseFocus(),this._applyTabIndexToElement(s),a.default.trigger(s,"focus")),o&&n.cancel||this.setFocusedCellPosition(t,l),o&&this._updateFocus()},_getNewPositionByCode:function(t,e,n){var i=t.columnIndex,o=t.rowIndex;if(void 0===t.rowIndex&&"next"===n)return{columnIndex:0,rowIndex:0};switch(n){case"nextInRow":case"next":i<this._getVisibleColumnCount()-1&&!this._isLastValidCell({columnIndex:i,rowIndex:o})&&"row"!==e?i++:this._isLastRow(o)||"next"!==n||(i=0,o++);break;case"previousInRow":case"previous":i>0&&!this._isFirstValidCell({columnIndex:i,rowIndex:o})&&"row"!==e?i--:o>0&&"previous"===n&&(o--,i=this._getVisibleColumnCount()-1);break;case"upArrow":o=o>0?o-1:o;break;case"downArrow":o=this._isLastRow(o)?o:o+1}return{columnIndex:i,rowIndex:o}},setFocusedCellPosition:function(t,e){this.setFocusedRowIndex(t),this.setFocusedColumnIndex(e)},setFocusedRowIndex:function(t){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.rowIndex=t},setFocusedColumnIndex:function(t){this._focusedCellPosition||(this._focusedCellPosition={}),this._focusedCellPosition.columnIndex=t},getVisibleRowIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.rowIndex?this._focusedCellPosition.rowIndex-this._dataController.getRowIndexOffset():this._focusedCellPosition.rowIndex:null},getVisibleColumnIndex:function(){return this._focusedCellPosition&&(0,u.isDefined)(this._focusedCellPosition.columnIndex)?this._focusedCellPosition.columnIndex:-1},getFocusedColumnIndex:function(){return this._focusedCellPosition?this._focusedCellPosition.columnIndex:null},_applyColumnIndexBoundaries:function(t){var e=this._getVisibleColumnCount();return t<0?t=0:t>=e&&(t=e-1),t},_isCellByPositionValid:function(t){var e=(0,o.default)(this._getCell(t));return this._isCellValid(e)},_isLastRow:function(t){return this._isVirtualScrolling()?t>=this._dataController.totalItemsCount()-1:t===this.getController("data").items().length-1},_isFirstValidCell:function(t){var e=!1;return 0===t.rowIndex&&t.columnIndex>=0&&(e=e||!this._haveValidCellBeforePosition(t)),e},_haveValidCellBeforePosition:function(t){for(var e=t.columnIndex,n=!1;e>0&&!n;){var i={columnIndex:--e,rowIndex:t.rowIndex};n=this._isCellByPositionValid(i)}return n},_isLastValidCell:function(t){var e=t.columnIndex>=0?t.columnIndex+1:0,n=t.rowIndex,i={columnIndex:e,rowIndex:n},o=this.getController("data").getVisibleRows(),r=o&&o[n];return!!this._isLastRow(n)&&(!!(r&&"group"===r.rowType&&t.columnIndex>0)||(t.columnIndex===this._getVisibleColumnCount()-1||!this._isCellByPositionValid(i)&&this._isLastValidCell(i)))},_isCellValid:function(t,e){if(O(t)&&this._columnsController){var n=this.getView("rowsView"),i=t.parent(),o=this._columnsController.getVisibleColumns(),r=n.getCellIndex(t),a=o[r],s=this._getVisibleColumnCount(),l=this._editingController,c=k(i),d=a&&a.showWhenGrouped,h=a&&!t.hasClass("dx-command-expand")&&I(i);if(this._isMasterDetailCell(t))return!0;if(s>r&&(!c&&a&&(!(0,u.isDefined)(a.groupIndex)||d&&h)||parseInt(t.attr("colspan"))>1)){var f=this._dataController.items(),p=n.getRowIndex(i),m=f[p],g=l&&this._isCellEditMode()&&l.isEditing(),_=l&&l.isEditRow(p),v=_||g;return a.command?this._isLegacyNavigation()?!v&&"expand"===a.command:g?!a.command:_?"select"!==a.command:!v:(!g||!m||"data"===m.rowType)&&(!v||a.allowEditing||e)}}},getFirstValidCellInRow:function(t,e){for(var n,i,o=t.find("> td"),r=e=e||0;r<o.length;++r)if(n=o.eq(r),this._isCellValid(n)){i=n;break}return i},_getNextCell:function(t,e,n){var i,r,a=n||this._focusedCellPosition,s=this.isRowFocusType(),l=s||(0,c.inArray)(t,["next","previous"])>-1,u="previous"===t?this._isFirstValidCell(a):this._isLastValidCell(a);if(this._focusedView&&a){var d=this._getNewPositionByCode(a,e,t);if(O(i=(0,o.default)(this._getCell(d)))&&!this._isCellValid(i)&&this._isCellInRow(d,l)&&!u&&(i=s?this.getFirstValidCellInRow(i.parent(),d.columnIndex):this._getNextCell(t,"cell",d)),r=O(i)&&i.parent(),this._hasSkipRow(r)){var h=this._getRowIndex(r);if(this._isLastRow(h))return null;i=this._getNextCell(t,"row",{columnIndex:a.columnIndex,rowIndex:h})}return O(i)?i:null}return null},_startEditing:function(t,e){var n=this._focusedCellPosition,i=this.getVisibleRowIndex(),o=this._dataController.items()[i],r=this._columnsController.getVisibleColumns()[n.columnIndex];this._isAllowEditing(o,r)&&(this._isRowEditMode()?this._editingController.editRow(i):n&&this._startEditingCell(t,e))},_isAllowEditing:function(t,e){return this.getController("editing").allowUpdating({row:t})&&e&&e.allowEditing},_startEditingCell:function(t,e){var n=this,i=this.getVisibleRowIndex(),o=this._focusedCellPosition.columnIndex;this._fastEditingStarted=(0,u.isDefined)(e);var r=this._editingController.editCell(i,o);if(this._isFastEditingStarted())if(!0===r)n._editingCellHandler(t,e);else if(r&&r.done){var a="delete"!==e?e:"";r.done((function(){return n._editingCellHandler(t,a)}))}},_editingCellHandler:function(t,e){var n=this._getFocusedCell().find(".dx-texteditor-input").eq(0),i=h.createEvent(t,{type:"keydown",target:n.get(0)}),o=h.createEvent(t,{type:"keypress",target:n.get(0)}),r=h.createEvent(t,{type:"input",target:n.get(0)});if(a.default.trigger(n,i),!i.isDefaultPrevented()&&(a.default.trigger(n,o),!o.isDefaultPrevented())){var s=_.default.mozilla?25:0;setTimeout((function(){n.val(e);var t=n.closest(".".concat("dx-widget"));a.default.off(t,"focusout"),a.default.one(t,"focusout",(function(){a.default.trigger(n,"change")})),a.default.trigger(n,r)}),s)}},_fireFocusChangingEvents:function(t,e,n,i){var r={},a=this._getCellPosition(e)||{};return this.isCellFocusType()&&((r=this._fireFocusedCellChanging(t,e,i)).cancel||(a.columnIndex=r.newColumnIndex,a.rowIndex=r.newRowIndex,i=r.isHighlighted,e=(0,o.default)(this._getCell(a)))),!r.cancel&&n&&e&&((r=this._fireFocusedRowChanging(t,e.parent())).cancel||(a.rowIndex=r.newRowIndex,r.isHighlighted=i)),r.$newCellElement=(0,o.default)(this._getCell(a)),r.$newCellElement.length||(r.$newCellElement=e),r},_fireFocusedCellChanging:function(t,e,n){var i=this.option("focusedColumnIndex"),r=this.option("focusedRowIndex"),a=this._getCellPosition(e),s=a?a.columnIndex:-1,l=a?a.rowIndex:-1,u={cellElement:e,prevColumnIndex:i,prevRowIndex:r,newColumnIndex:s,newRowIndex:l,rows:this.getController("data").getVisibleRows(),columns:this.getController("columns").getVisibleColumns(),event:t,isHighlighted:n||!1,cancel:!1};return this._canceledCellPosition=null,this.executeAction("onFocusedCellChanging",u),u.newColumnIndex===s&&u.newRowIndex===l||(u.$newCellElement=(0,o.default)(this._getCell({columnIndex:u.newColumnIndex,rowIndex:u.newRowIndex}))),u.cancel&&(this._canceledCellPosition={rowIndex:l,columnIndex:s}),u},_fireFocusedCellChanged:function(t,e,n){var i=this.getController("data"),o=this.getView("rowsView").getCellIndex(t),r=this._getRowIndex(t&&t.parent()),a=Math.min(r-i.getRowIndexOffset(),i.items().length-1),s=this.getController("editing").isEditCell(a,o),l=i.items()[a];s||e===o&&n===r||(i=this.getController("data"),this.executeAction("onFocusedCellChanged",{cellElement:t,columnIndex:o,rowIndex:r,row:l,column:this.getController("columns").getVisibleColumns()[o]}))},_fireFocusedRowChanging:function(t,e){var n=this._getRowIndex(e),i=this.getController("data"),o=this.option("focusedRowIndex"),r=i.loadingOperationTypes(),a={rowElement:e,prevRowIndex:o,newRowIndex:n,event:t,rows:this.getController("data").getVisibleRows(),cancel:!1};return!i||i.isLoading()&&(r.reload||r.paging)?(a.cancel=!0,a):(this.option("focusedRowEnabled")&&(this.executeAction("onFocusedRowChanging",a),a.cancel||a.newRowIndex===n||(a.resetFocusedRow=a.newRowIndex<0,a.resetFocusedRow||this.setFocusedRowIndex(a.newRowIndex),a.rowIndexChanged=!0)),a)},_fireFocusedRowChanged:function(t){var e,n=this.option("focusedRowKey"),i=this.getController("focus"),o=null===i||void 0===i?void 0:i.getFocusedRowIndexByKey(n);if(this.option("focusedRowEnabled")){if(o>=0){var r=this.getController("data");e=o>=0&&r.getVisibleRows()[o-r.getRowIndexOffset()]}this.executeAction("onFocusedRowChanged",{rowElement:t,rowIndex:o,row:e})}},_isEventInCurrentGrid:function(t){return(0,l.isElementInCurrentGrid)(this,(0,o.default)(t.target))},_isRowEditMode:function(){var t=this.getController("editing").getEditMode();return"row"===t||"form"===t},_isCellEditMode:function(){var t=this.getController("editing").getEditMode();return"cell"===t||"batch"===t},_isFastEditingAllowed:function(){return this._isCellEditMode()&&this.option("keyboardNavigation.editOnKeyPress")},_getInteractiveElement:function(t,e){var n=t.find(C).filter(":visible");return e?n.last():n.first()},_applyTabIndexToElement:function(t){var e=this.option("tabIndex")||0;t.attr("tabindex",(0,u.isDefined)(e)?e:0)},_getCell:function(t){if(this._focusedView&&this._dataController&&t)return this._focusedView.getCell({rowIndex:t.rowIndex-this._dataController.getRowIndexOffset(),columnIndex:t.columnIndex})},_getRowIndex:function(t){var e=this.getView("rowsView").getRowIndex(t);return e>=0&&(e+=this.getController("data").getRowIndexOffset()),e},_hasSkipRow:function(t){var e=t&&t.get(0);return e&&("none"===e.style.display||t.hasClass(this.addWidgetPrefix("group-footer"))||k(t)&&!t.hasClass(this.addWidgetPrefix("edit-form")))},_allowEditingOnEnterKey:function(){return"startEdit"===this.option("keyboardNavigation.enterKeyAction")},_isLegacyNavigation:function(){return this.option("useLegacyKeyboardNavigation")},_getDirectionCodeByKey:function(t){return this.option("rtlEnabled")?"leftArrow"===t?"nextInRow":"previousInRow":"leftArrow"===t?"previousInRow":"nextInRow"},_isVirtualScrolling:function(){var t=this.option("scrolling.mode");return"virtual"===t||"infinite"===t},_scrollBy:function(t,e,n){var i=this,o=this.getView("rowsView").getScrollable();if(i._focusedCellPosition){o.on("scroll",(function t(){o.off("scroll",t),setTimeout(i.restoreFocusableElement.bind(i,e,n))}))}o.scrollBy({left:0,top:t})},_isInsideEditForm:function(t){return(0,o.default)(t).closest("."+this.addWidgetPrefix("edit-form")).length>0},_isMasterDetailCell:function(t){var e=(0,o.default)(t).closest(".dx-master-detail-cell"),n=e.closest("."+this.getWidgetContainerClass()).parent();return e.length&&n.is(this.component.$element())},_processNextCellInMasterDetail:function(t){!this._isInsideEditForm(t)&&t&&this._applyTabIndexToElement(t)},_handleTabKeyOnMasterDetailCell:function(t,e){if(this._isMasterDetailCell(t)){this._updateFocusedCellPosition((0,o.default)(t),e);var n=this._getNextCell(e,"row");return this._processNextCellInMasterDetail(n),!0}return!1},_getElementType:function(t){return(0,o.default)(t).is("tr")?"row":"cell"},_isFastEditingStarted:function(){return this._isFastEditingAllowed()&&this._fastEditingStarted},_getVisibleColumnCount:function(){return this.getController("columns").getVisibleColumns().length},_isCellInRow:function(t,e){var n=t.columnIndex,i=this._getVisibleColumnCount();return e?n>=0&&n<=i-1:n>0&&n<i-1},_getCellElementFromTarget:function(t){var e=this._getElementType(t),n=(0,o.default)(t);return"cell"===e?n.closest(".".concat("dx-row"," > td")):n.children().not(".dx-command-expand").first()},_getRowsViewElement:function(){var t=this.getView("rowsView");return t&&t.element()},isKeyboardEnabled:function(){return this.option("keyboardNavigation.enabled")},_processCanceledEditCellPosition:function(t,e){if(this._canceledCellPosition){var n=this._canceledCellPosition.rowIndex===t&&this._canceledCellPosition.columnIndex===e;return this._canceledCellPosition=null,n}}});t.exports={defaultOptions:function(){return{useLegacyKeyboardNavigation:!1,keyboardNavigation:{enabled:!0,enterKeyAction:"startEdit",enterKeyDirection:"none",editOnKeyPress:!1}}},controllers:{keyboardNavigation:D},extenders:{views:{rowsView:{_rowClick:function(t){var e=this.getController("editing").getEditRowIndex(),n=this.getController("keyboardNavigation");e===t.rowIndex&&n.setCellFocusType();var i=M()&&this.option("focusedRowEnabled");i&&this._triggerPointerDownEventHandler(t),this.callBase.apply(this,arguments)},_triggerPointerDownEventHandler:function(t){var e=t.event.originalEvent;if(e){var n=this.getController("keyboardNavigation"),i=(0,o.default)(e.target),r=this.getCellIndex(i),a=this.getController("columns").getVisibleColumns()[r],s=this.getController("data").items()[t.rowIndex];if(n._isAllowEditing(s,a)){var l=h.createEvent(e,{currentTarget:e.target});n._pointerEventHandler(l)}}},renderFocusState:function(){var t=this._dataController,e=this.option("focusedRowIndex")||0,n=this.element();n&&!(0,d.focused)(n)&&n.attr("tabIndex",null),(e<0||e>=t.getVisibleRows().length)&&(e=0);var i=this.getCellElements(e);this.getController("keyboardNavigation").isKeyboardEnabled()&&i&&this.updateFocusElementTabIndex(i)},updateFocusElementTabIndex:function(t){var e=this.getController("keyboardNavigation"),n=t.eq(0).parent(),i=this.option("focusedColumnIndex");(!i||i<0)&&(i=0),S(n)?e._applyTabIndexToElement(n):this._updateFocusedCellTabIndex(t,i)},_updateFocusedCellTabIndex:function(t,e){var n,i=this.getController("keyboardNavigation"),r=i._focusedView,a=t?t.length:-1;if(i._focusedView=this,a>0){a<=e&&(e=a-1);for(var s=e;s<a;++s)if(n=(0,o.default)(t[s]),!i._isMasterDetailCell(n)&&i._isCellValid(n)&&T(n)){i._applyTabIndexToElement(n),i.setCellFocusType();break}}i._focusedView=r},renderDelayedTemplates:function(t){this.callBase.apply(this,arguments),t&&t.repaintChangesOnly||this.renderFocusState()},_renderCore:function(t){this.callBase(t),t&&t.repaintChangesOnly||this.renderFocusState()},_editCellPrepared:function(t){var e=this._getEditorInstance(t),n=this.getController("keyboardNavigation"),i=n&&n._isFastEditingStarted();e&&i&&this._handleEditingNavigationMode(e),this.callBase.apply(this,arguments)},_handleEditingNavigationMode:function(t){["downArrow","upArrow"].forEach((function(e){var n=t._supportedKeys()[e];t.registerKeyHandler(e,(function(e){if("true"===t._input().attr("aria-expanded"))return n&&n.call(t,e)}))})),t.registerKeyHandler("leftArrow",m.noop),t.registerKeyHandler("rightArrow",m.noop),"dxDateBox"===t.NAME&&t.option("useMaskBehavior")&&t.registerKeyHandler("enter",m.noop)},_getEditorInstance:function(t){var e=t.find(".dx-texteditor").eq(0);return(0,l.getWidgetInstance)(e)}}},controllers:{editing:{editCell:function(t,e){var n=this.getController("keyboardNavigation");if(n._processCanceledEditCellPosition(t,e))return!1;var i=this.callBase(t,e);return i&&n.setupFocusedView(),i},editRow:function(t){var e=this.getController("keyboardNavigation"),n=this.option("focusedColumnIndex"),i=this._columnsController.getVisibleColumns()[n];(i&&i.type||"form"===this.option("editing.mode"))&&e._resetFocusedCell(),this.callBase(t)},addRow:function(t){return this.getController("keyboardNavigation").setupFocusedView(),this.callBase.apply(this,arguments)},getFocusedCellInRow:function(t){var e=this.getController("keyboardNavigation"),n=this.callBase(t);if(e.isKeyboardEnabled()&&e._focusedCellPosition.rowIndex===t){var i=e._getFocusedCell();O(i)&&!i.hasClass("dx-command-edit")&&(n=i)}return n},_processCanceledEditingCell:function(){var t=this;this.closeEditCell().done((function(){t.getController("keyboardNavigation")._updateFocus()}))},init:function(){this.callBase(),this._keyboardNavigationController=this.getController("keyboardNavigation")},closeEditCell:function(){var t=this.getController("keyboardNavigation");t._fastEditingStarted=!1;var e=this.callBase.apply(this,arguments);return t._updateFocus(),e},_delayedInputFocus:function(){this._keyboardNavigationController._isNeedScroll=!0,this.callBase.apply(this,arguments)},_isEditingStart:function(){var t=this.getController("keyboardNavigation"),e=this.callBase.apply(this,arguments);if(e&&!t._isNeedFocus){var n=t._getFocusedCell();t._focus(n,!0)}return e}},data:{_correctRowIndices:function(t){var e=this,n=e.getController("keyboardNavigation"),i=e.getController("editorFactory"),o=n._focusedCellPosition;if(e.callBase.apply(e,arguments),o&&o.rowIndex>=0){var r=t(o.rowIndex);r&&(o.rowIndex+=r,i.refocus())}}},adaptiveColumns:{_showHiddenCellsInView:function(t){var e=t.viewName,n=t.$cells,i=t.isCommandColumn;this.callBase.apply(this,arguments),"columnHeadersView"===e&&!i&&n.each((function(t,e){var n=(0,o.default)(e);P(n)&&n.attr("tabindex",0)}))},_hideVisibleCellInView:function(t){var e=t.viewName,n=t.$cell,i=t.isCommandColumn;this.callBase.apply(this,arguments),"columnHeadersView"===e&&!i&&P(n)&&n.removeAttr("tabindex")}}}}}},function(t,e,n){"use strict";var i=p(n(3)),o=p(n(6)),r=p(n(154)),a=p(n(12)),s=p(n(40)),l=n(2),u=n(0),c=n(5),d=p(n(31)),h=n(24),f=p(n(33));function p(t){return t&&t.__esModule?t:{default:t}}var m=function(t){var e=-1;return(0,c.each)(t,(function(t,n){if("transparent"===n.command)return e=t,!1})),e},g=function(t,e,n){var i=0;if(t&&e&&n)for(var o=0;o<t.length;o++)"transparent"===t[o].command?i+=t[o].colspan:(e[i]<n[o]&&(e[i]=n[o]),i++);return e},_={init:function(){this.callBase(),this._isFixedTableRendering=!1,this._isFixedColumns=!1},_createCol:function(t){return this.callBase(t).toggleClass("dx-col-fixed",!(!this._isFixedTableRendering||!(t.fixed||t.command&&"transparent"!==t.command)))},_correctColumnIndicesForFixedColumns:function(t,e){var n=m(t),i=t[n].colspan,o=e&&e.columnIndices;o&&(e.columnIndices=o.map((function(t){if(t)return t.map((function(t){return t<n?t:t>=n+i?t-i+1:-1})).filter((function(t){return t>=0}))})))},_renderTable:function(t){var e,n=this.getFixedColumns();this._isFixedColumns=!!n.length;var i=this.callBase(t);if(this._isFixedColumns){this._isFixedTableRendering=!0;var o=t&&t.change,r=o&&o.columnIndices;this._correctColumnIndicesForFixedColumns(n,o),e=this._createTable(n),this._renderRows(e,(0,u.extend)({},t,{columns:n})),this._updateContent(e,o),r&&(o.columnIndices=r),this._isFixedTableRendering=!1}else this._fixedTableElement&&this._fixedTableElement.parent().remove(),this._fixedTableElement=null;return i},_renderRow:function(t,e){var n,i=e.row.cells;if(this.callBase.apply(this,arguments),this._isFixedTableRendering&&i&&i.length){n=0;var o=e.row.cells||[];i=i.slice(),e.row.cells=i;for(var r=0;r<o.length;r++)o[r].column&&"transparent"===o[r].column.command?n=(o[r].column.colspan||1)-1:i[r+n]=o[r]}},_createCell:function(t){var e,n,i,o=this,r=t.column,a=r&&r.command,l=t.rowType,u=o.callBase.apply(o,arguments);(o._isFixedTableRendering||"filter"===l)&&(n=(e=o.getFixedColumns())[(i=m(e))-1]),o._isFixedTableRendering?"transparent"===a&&(u.addClass("dx-pointer-events-none").toggleClass("dx-first-cell",0===i||n&&"expand"===n.command).toggleClass("dx-last-cell",e.length&&i===e.length-1),"freeSpace"!==l&&s.default.setEmptyText(u)):"filter"===l&&u.toggleClass("dx-first-cell",t.columnIndex===i);var c=o.option("rowAlternationEnabled")&&t.isAltRow;return d.default.mozilla&&t.column.fixed&&"group"!==t.rowType&&!c&&u.addClass("dx-col-fixed"),u},_wrapTableInScrollContainer:function(){var t=this.callBase.apply(this,arguments);return this._isFixedTableRendering&&t.addClass(this.addWidgetPrefix("content-fixed")+" dx-pointer-events-target"),t},_renderCellContent:function(t,e){var n,i=e.column,o=this._isFixedTableRendering,r="group"===e.rowType&&(0,l.isDefined)(i.groupIndex);if(o&&r&&!i.command&&!i.groupCellTemplate&&t.css("pointerEvents","none"),!o&&this._isFixedColumns){if(n=i.fixed||i.command&&!1!==i.fixed,r&&(n=!1,e.row.summaryCells&&e.row.summaryCells.length)){var a=this._columnsController.getVisibleColumns(),s=this._getAlignByColumnCellCount?this._getAlignByColumnCellCount(i.colspan,{columns:a,row:e.row,isFixed:!0}):0;if(s>0){var u=m(this._columnsController.getFixedColumns());n=a.length-s<u}}if(n){if(this.option("legacyRendering")||i.command&&"buttons"!==i.type||"group"===e.rowType)return void t.html(" ").addClass(i.cssClass);t.addClass("dx-hidden-cell")}}"transparent"!==i.command&&this.callBase(t,e)},_getCellElementsCore:function(t){var e=this,n=e.callBase(t),i=n.parent().hasClass("dx-group-row"),o="columnHeadersView"===e.name?t:void 0;if(e._fixedTableElement&&n){var r=e.getFixedColumns(o),a=e._getRowElements(e._fixedTableElement).eq(t).children("td");(0,c.each)(a,(function(t,s){if(i)n[t]&&"hidden"!==s.style.visibility&&(n[t]=s);else{var l=r[t];if(l)if("transparent"===l.command)a.eq(t).hasClass("dx-master-detail-cell")&&(n[t]=s||n[t]);else{var u=e._columnsController.getVisibleIndex(l.index,o);n[u]=s||n[u]}}}))}return n},getColumnWidths:function(){var t,e=this.callBase(),n=this.getFixedColumns();return this._fixedTableElement&&e.length&&(t=this.callBase(this._fixedTableElement)),g(n,e,t)},_getTableElement:function(){return this._isFixedTableRendering?this._fixedTableElement:this.callBase()},_setTableElement:function(t){this._isFixedTableRendering?this._fixedTableElement=t.addClass("dx-pointer-events-none"):this.callBase(t)},getColumns:function(t,e){return e=e||this._getTableElement(),this._isFixedTableRendering||e&&e.closest("table").parent("."+this.addWidgetPrefix("content-fixed")).length?this.getFixedColumns(t):this.callBase(t,e)},getRowIndex:function(t){var e=this._fixedTableElement;return e&&e.find(t).length?this._getRowElements(e).index(t):this.callBase(t)},getTableElements:function(){var t=this.callBase.apply(this,arguments);return this._fixedTableElement&&(t=(0,i.default)([t.get(0),this._fixedTableElement.get(0)])),t},getFixedColumns:function(t){return this._columnsController.getFixedColumns(t)},getFixedColumnsOffset:function(){var t,e={left:0,right:0};if(this._fixedTableElement){var n=(t=this.getTransparentColumnElement()).position();e={left:n.left,right:this.element().outerWidth(!0)-(t.outerWidth(!0)+n.left)}}return e},getTransparentColumnElement:function(){return this._fixedTableElement&&this._fixedTableElement.find(".dx-pointer-events-none").first()},getFixedTableElement:function(){return this._fixedTableElement},isFixedColumns:function(){return this._isFixedColumns},_resizeCore:function(){this.callBase(),this.synchronizeRows()},setColumnWidths:function(t){var e,n=this._columnsController.getVisibleColumns(),i=t.widths,o=i&&i.length&&(0,l.isDefined)(n[0].visibleWidth),r=t.optionNames,a=r&&r.width,s=!1;if(this.callBase.apply(this,arguments),this._fixedTableElement){if(this.option("legacyRendering"))s=i&&i.length&&!this.isScrollbarVisible(!0);else{var c=i&&i.some((function(t){return"auto"===t}));s=c&&(!o||!this.isScrollbarVisible(!0))}s&&(e=n),this.callBase((0,u.extend)({},t,{$tableElement:this._fixedTableElement,columns:e,fixed:!0}))}(o||a&&this.option("wordWrapEnabled"))&&this.synchronizeRows()},_createColGroup:function(t){if(!this.option("legacyRendering")&&this._isFixedTableRendering&&!this.option("columnAutoWidth")){var e=this._columnsController.getVisibleColumns();e.filter((function(t){return!t.width})).length&&(t=e)}return this.callBase(t)},_getClientHeight:function(t){var e=t.getBoundingClientRect&&(0,h.getBoundingRect)(t);return e&&e.height?e.height:t.clientHeight},synchronizeRows:function(){var t,e,n,i,o=[],r=[];if(this._isFixedColumns&&this._tableElement&&this._fixedTableElement){var a=this._getClientHeight(this._tableElement.get(0)),s=this._getClientHeight(this._fixedTableElement.get(0));if(e=this._getRowElements(this._tableElement),n=this._getRowElements(this._fixedTableElement),i=this._findContentElement(),a!==s){for(i&&i.css("height",a),e.css("height",""),n.css("height",""),t=0;t<e.length;t++)o.push(this._getClientHeight(e.get(t))),r.push(this._getClientHeight(n.get(t)));for(t=0;t<e.length;t++){var l=o[t],u=r[t];l>u?n.eq(t).css("height",l):l<u&&e.eq(t).css("height",u)}i&&i.css("height","")}}},setScrollerSpacing:function(t){var e=this.option("rtlEnabled");this.callBase(t),this.element().children("."+this.addWidgetPrefix("content-fixed")).css({paddingLeft:e?t:"",paddingRight:e?"":t})}},v=(0,u.extend)({},_,{_getRowVisibleColumns:function(t){return this._isFixedTableRendering?this.getFixedColumns(t):this.callBase(t)},getContextMenuItems:function(t){var e=this,n=t.column,i=e.option("columnFixing"),o=e.callBase(t);if(t.row&&"header"===t.row.rowType&&n&&n.allowFixing){var r=function(t){switch(t.itemData.value){case"none":e._columnsController.columnOption(n.index,"fixed",!1);break;case"left":e._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"left"});break;case"right":e._columnsController.columnOption(n.index,{fixed:!0,fixedPosition:"right"})}};(o=o||[]).push({text:i.texts.fix,beginGroup:!0,items:[{text:i.texts.leftPosition,value:"left",disabled:n.fixed&&(!n.fixedPosition||"left"===n.fixedPosition),onItemClick:r},{text:i.texts.rightPosition,value:"right",disabled:n.fixed&&"right"===n.fixedPosition,onItemClick:r}]},{text:i.texts.unfix,value:"none",disabled:!n.fixed,onItemClick:r})}return o},getFixedColumnElements:function(t){if((0,l.isDefined)(t))return this._fixedTableElement&&this._getRowElements(this._fixedTableElement).eq(t).children();var e=this.getColumnElements(),n=this.getTransparentColumnElement();if(e&&n&&n.length){var i=m(this.getFixedColumns());e.splice(i,n.get(0).colSpan,n.get(0))}return e},getColumnWidths:function(){var t,e=this.callBase(),n=this.getFixedColumnElements(),i=this.getFixedColumns();return this._fixedTableElement&&(t=n&&n.length?this._getWidths(n):this.callBase(this._fixedTableElement)),g(i,e,t)}}),y=(0,u.extend)({},_,{_detachHoverEvents:function(){this._fixedTableElement&&o.default.off(this._fixedTableElement,"mouseover mouseout",".dx-data-row"),this._tableElement&&o.default.off(this._tableElement,"mouseover mouseout",".dx-data-row")},_attachHoverEvents:function(){var t=this,e=function(e){o.default.on(e,"mouseover mouseout",".dx-data-row",t.createAction((function(e){var n=e.event,o=t.getRowIndex((0,i.default)(n.target).closest(".dx-row")),r="mouseover"===n.type;o>=0&&(t._tableElement&&t._getRowElements(t._tableElement).eq(o).toggleClass("dx-state-hover",r),t._fixedTableElement&&t._getRowElements(t._fixedTableElement).eq(o).toggleClass("dx-state-hover",r))})))};t._fixedTableElement&&t._tableElement&&(e(t._fixedTableElement),e(t._tableElement))},_findContentElement:function(){var t,e,n=this,a=n.addWidgetPrefix("content"),s=n.element(),l=d.default.mozilla?60:0;if(s&&n._isFixedTableRendering){t=s.children("."+a);var u=n.getScrollable();return!t.length&&u&&(t=(0,i.default)("<div>").addClass(a),o.default.on(t,"scroll",(function(t){clearTimeout(n._fixedScrollTimeout),n._fixedScrollTimeout=setTimeout((function(){e=(0,i.default)(t.target).scrollTop(),u.scrollTo({y:e})}),l)})),o.default.on(t,r.default.name,(function(t){var o=(0,i.default)(t.target).closest(".dx-scrollable");if(u&&u.$element().is(o)&&(e=u.scrollTop(),u.scrollTo({y:e-t.delta}),u.scrollTop()>0&&u.scrollTop()+u.clientHeight()<u.scrollHeight()+n.getScrollbarWidth()))return!1})),t.appendTo(s)),t}return n.callBase()},_updateScrollable:function(){this.callBase();var t=this.getScrollable(),e=t&&t.scrollOffset().top;this._updateFixedTablePosition(e)},_renderContent:function(t,e){return this._isFixedTableRendering?t.empty().addClass(this.addWidgetPrefix("content")+" "+this.addWidgetPrefix("content-fixed")+" dx-pointer-events-target").append(e):this.callBase(t,e)},_getGroupCellOptions:function(t){return this._isFixedTableRendering?this.callBase((0,u.extend)({},t,{columns:this._columnsController.getVisibleColumns()})):this.callBase(t)},_renderGroupedCells:function(t,e){return this.callBase(t,(0,u.extend)({},e,{columns:this._columnsController.getVisibleColumns()}))},_renderGroupSummaryCells:function(t,e){this._isFixedTableRendering?this.callBase(t,(0,u.extend)({},e,{columns:this._columnsController.getVisibleColumns()})):this.callBase(t,e)},_hasAlignByColumnSummaryItems:function(t,e){var n=this.callBase.apply(this,arguments),i=e.columns[t];return e.isFixed?i.fixed&&(n||"right"===i.fixedPosition):n&&!i.fixed},_renderGroupSummaryCellsCore:function(t,e,n,i){var o;if(this._isFixedTableRendering){e.isFixed=!0,o=this._getAlignByColumnCellCount(n,e),e.isFixed=!1;var r=e.columns.length-o;e=(0,u.extend)({},e,{columns:this.getFixedColumns()});var a=m(e.columns);r<a?(o-=e.columns[a].colspan-1||0,n-=e.columns[a].colspan-1||0):i>0&&t.css("visibility","hidden"),i=o}this.callBase(t,e,n,i)},_getSummaryCellIndex:function(t,e){if(this._isFixedTableRendering){var n=m(e);return t>n&&(t+=e[n].colspan-1),t}return this.callBase.apply(this,arguments)},_renderCore:function(t){this._detachHoverEvents(),this.callBase(t);var e=this._isFixedColumns;this.element().toggleClass("dx-fixed-columns",e),this.option("hoverStateEnabled")&&e&&this._attachHoverEvents()},setRowsOpacity:function(t,e){this.callBase(t,e);var n=this._getRowElements(this._fixedTableElement);this._setRowsOpacityCore(n,this.getFixedColumns(),t,e)},optionChanged:function(t){this.callBase(t),"hoverStateEnabled"===t.name&&this._isFixedColumns&&(t.value?this._attachHoverEvents():this._detachHoverEvents())},getCellIndex:function(t){var e=this._fixedTableElement,n=0;if(e&&t.is("td")&&t.closest(e).length){var i=this.getFixedColumns();return(0,c.each)(i,(function(e,i){if(e===t[0].cellIndex)return!1;i.colspan?n+=i.colspan:n++})),n}return this.callBase.apply(this,arguments)},_updateFixedTablePosition:function(t,e){if(this._fixedTableElement&&this._tableElement){var n,i=this.getController("editorFactory");this._fixedTableElement.parent().scrollTop(t),e&&(n=i.focus())&&i.focus(n)}},setScrollerSpacing:function(t,e){var n={marginBottom:0},i=this.element().children("."+this.addWidgetPrefix("content-fixed"));i.length&&this._fixedTableElement&&(i.css(n),this._fixedTableElement.css(n),n[this.option("rtlEnabled")?"marginLeft":"marginRight"]=t,n.marginBottom=e,(this._scrollable&&this._scrollable.option("useNative")?i:this._fixedTableElement).css(n))},_getElasticScrollTop:function(t){var e=0,n=this.getScrollbarWidth(!0);if(t.scrollOffset.top<0)e=-t.scrollOffset.top;else if(t.reachedBottom){var i=this._findContentElement(),o=t.component._container();e=Math.max(i.height()+n-o.height(),0)-t.scrollOffset.top}return e},_applyElasticScrolling:function(t){if(this._fixedTableElement){var e=this._getElasticScrollTop(t);0!==Math.ceil(e)?f.default.move(this._fixedTableElement,{top:e}):this._fixedTableElement.css("transform","")}},_handleScroll:function(t){this._updateFixedTablePosition(t.scrollOffset.top,!0),this._applyElasticScrolling(t),this.callBase(t)},_updateContentPosition:function(t){this.callBase.apply(this,arguments),t||this._updateFixedTablePosition(this._scrollTop)},_afterRowPrepared:function(t){this._isFixedTableRendering||this.callBase(t)},_scrollToElement:function(t){this.callBase(t,this.getFixedColumnsOffset())},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._fixedScrollTimeout)}}),b=_;t.exports={defaultOptions:function(){return{columnFixing:{enabled:!1,texts:{fix:a.default.format("dxDataGrid-columnFixingFix"),unfix:a.default.format("dxDataGrid-columnFixingUnfix"),leftPosition:a.default.format("dxDataGrid-columnFixingLeftPosition"),rightPosition:a.default.format("dxDataGrid-columnFixingRightPosition")}}}},extenders:{views:{columnHeadersView:v,rowsView:y,footerView:b},controllers:function(){var t=function(t,e,n){var i=m(e),o=t.length-e.length;return(0,c.each)(n,(function(t,e){e.index>i&&(e.columnIndex+=o,e.index+=o)})),n};return{draggingHeader:{_generatePointsByColumns:function(e){var n=e.columns,i=e.targetDraggingPanel;if(i&&"headers"===i.getName()&&i.isFixedColumns()&&e.sourceColumn.fixed){e.rowIndex||(e.columnElements=i.getFixedColumnElements(0)),e.columns=i.getFixedColumns(e.rowIndex);var o=this.callBase(e);return t(n,e.columns,o),o}return this.callBase(e)},_pointCreated:function(t,e,n,i){var o=this.callBase.apply(this,arguments),r=this._columnHeadersView.getTransparentColumnElement();if(!o&&"headers"===n&&r&&r.length){var a=(0,h.getBoundingRect)(r.get(0));return i&&i.fixed?"right"===i.fixedPosition?t.x<a.right:t.x>a.left:t.x<a.left||t.x>a.right}return o}},columnsResizer:{_generatePointsByColumns:function(){var e=this,n=e._columnsController,i=n&&e._columnsController.getVisibleColumns(),o=n&&e._columnsController.getFixedColumns(),r=e._columnHeadersView.getFixedColumnElements(),a=[];e.callBase(),r&&r.length>0&&(a=s.default.getPointsByColumns(r,(function(t){return e._pointCreated(t,r.length,o)})),e._pointsByFixedColumns=t(i,o,a))},_pointCreated:function(t,e,n){var i="widget"===this.option("columnResizingMode");if(t.index>0&&t.index<e){var o=n[t.columnIndex-1]||{},r=n[t.columnIndex]||{};if(o.fixed||r.fixed)return t.columnIndex-=1,!((o.allowResizing||"transparent"===o.command)&&(i||r.allowResizing||"transparent"===r.command))}return this.callBase.apply(this,arguments)},_getTargetPoint:function(t,e,n){var i=this._columnHeadersView.getTransparentColumnElement();if(i&&i.length){var o=(0,h.getBoundingRect)(i.get(0));if(e<=o.left||e>=o.right)return this.callBase(this._pointsByFixedColumns,e,n)}return this.callBase(t,e,n)}}}}()}}},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=w(n(3)),r=w(n(6)),a=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=b();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),s=w(n(25)),l=w(n(2)),u=w(n(31)),c=w(n(45)),d=w(n(44)),h=w(n(169)),f=w(n(40)),p=w(n(36)),m=n(10),g=n(4),_=n(5),v=n(0),y=n(7);function b(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return b=function(){return t},t}function w(t){return t&&t.__esModule?t:{default:t}}var x=["columnHeadersView","rowsView","footerView"];function C(t,e){return t._columnsController.getColumnId(e)}function S(t){return t.find("td:not(.dx-datagrid-hidden-column):not([class*='dx-command-'])")}function k(t,e){var n,i=(0,o.default)(t),l=e.component.getController("adaptiveColumns");"data"===e.rowType?(n=(0,o.default)("<span>").addClass(l.addWidgetPrefix("adaptive-more")),r.default.on(n,a.addNamespace(s.default.name,"dxDataGridAdaptivity"),l.createAction((function(){l.toggleExpandAdaptiveDetailRow(e.key)}))),n.appendTo(i)):f.default.setEmptyText(i)}var I=d.default.ViewController.inherit({_isRowEditMode:function(){return"row"===this._getEditMode()},_isItemModified:function(t,e){var n=this._columnsController.getVisibleIndex(t.column.index),i=this._dataController.getRowIndexByKey(e.key),o=this._dataController.items()[i+1];return o&&o.modifiedValues&&l.default.isDefined(o.modifiedValues[n])},_renderFormViewTemplate:function(t,e,n){var i=t.column,o=this.createAction((function(){r.default.trigger(n,s.default.name)})),a=i.calculateCellValue(e.data),u=f.default.getDisplayValue(i,a,e.data,e.rowType),c=f.default.formatValue(u,i),d=this._editingController.isCellOrBatchEditMode(),h=this._rowsView;if(i.allowEditing&&this.getController("keyboardNavigation").isKeyboardEnabled()&&(n.attr("tabIndex",this.option("tabIndex")),d&&(r.default.off(n,"focus",o),r.default.on(n,"focus",o))),i.cellTemplate){var p=(0,v.extend)({},e,{value:a,displayValue:u,text:c,column:i}),g=!!n.closest((0,m.getWindow)().document).length;h.renderTemplate(n,i.cellTemplate,p,g).done((function(){h._cellPrepared(n,e)}))}else{var _=n.get(0);i.encodeHtml?_.textContent=c:_.innerHTML=c,n.addClass("dx-adaptive-item-text"),l.default.isDefined(c)&&""!==c||n.html(" "),this._isRowEditMode()||this._isItemModified(t,e)&&n.addClass("dx-item-modified"),h._cellPrepared(n,e)}},_getTemplate:function(t,e){var n=this,i=t.column,r=this.getController("editing");return function(a,s){var l=(0,o.default)(s),u=n._columnsController.getVisibleIndex(i.visibleIndex),c=(0,v.extend)({},e),d=function(){var o=n._isItemEdited(t);c.value=e.row.values[u],o||i.showEditorAlways?r.renderFormEditTemplate(c,t,a.component,l,!o):(c.column=i,c.columnIndex=u,n._renderFormViewTemplate(t,c,l))};d(),c.watch&&c.watch((function(){return{isItemEdited:n._isItemEdited(t),value:e.row.values[u]}}),(function(){l.contents().remove(),l.removeClass("dx-adaptive-item-text"),d()}))}},_isVisibleColumnsValid:function(t){return!(t<2)&&!(t.length-function(){for(var e=0,n=0;n<t.length;n++){t[n].command&&e++}return e}()<=1)},_calculatePercentWidths:function(t,e){var n=this,i=0;return e.forEach((function(e,o){"adaptiveHidden"!==t[o]&&(i+=n._getItemPercentWidth(e))})),i},_isPercentWidth:function(t){return l.default.isString(t)&&"%"===t.slice(-1)},_isColumnHidden:function(t){return this._hiddenColumns.filter((function(e){return e.index===t.index})).length>0},_getAverageColumnsWidth:function(t,e,n){var i=this,o=0,r=0;return e.forEach((function(a){if(!i._isColumnHidden(a)){var s=a.width;l.default.isDefined(s)&&!isNaN(parseFloat(s))?o+=i._isPercentWidth(s)?i._calculatePercentWidth({visibleIndex:a.visibleIndex,columnsCount:e.length,columnsCanFit:n,bestFitWidth:a.bestFitWidth,columnWidth:s,containerWidth:t}):parseFloat(s):r++}})),(t-o)/r},_calculateColumnWidth:function(t,e,n,i){var o,r=C(this,t),a=this._columnsController.columnOption(r,"width"),s=this._columnsController.columnOption(r,"bestFitWidth"),l=n.length;if(a&&"auto"!==a){if(!this._isPercentWidth(a))return a;o=this._calculatePercentWidth({visibleIndex:t.visibleIndex,columnsCount:l,columnsCanFit:i,bestFitWidth:s,columnWidth:a,containerWidth:e})}else{o=this.option("columnAutoWidth")||t.command?s:this._getAverageColumnsWidth(e,n,i)}return o},_calculatePercentWidth:function(t){var e=t.visibleIndex<t.columnsCount-1&&t.columnsCanFit,n=t.containerWidth*parseFloat(t.columnWidth)/100,i=t.columnsCanFit&&n<t.bestFitWidth?t.bestFitWidth:n;return e?t.containerWidth*parseFloat(t.columnWidth)/100:i},_getNotTruncatedColumnWidth:function(t,e,n,i){var o=C(this,t),r=this._columnsController.columnOption(o,"width"),a=this._columnsController.columnOption(o,"bestFitWidth");if(r&&"auto"!==r&&!this._isPercentWidth(r))return parseFloat(r);var s=this._calculateColumnWidth(t,e,n,i);return s<a?null:s},_getItemPercentWidth:function(t){var e=0;return t.width&&this._isPercentWidth(t.width)&&(e=parseFloat(t.width)),e},_getCommandColumnsWidth:function(){var t=this,e=t._columnsController.getVisibleColumns(),n=0;return(0,_.each)(e,(function(e,i){(i.index<0||i.command)&&(n+=t._columnsController.columnOption(C(t,i),"bestFitWidth")||0)})),n},_isItemEdited:function(t){if(this.isFormEditMode())return!1;if(!this._isRowEditMode()){var e=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,n=this._columnsController.getVisibleIndex(t.column.index);return this._editingController.isEditCell(e,n)}var i=this._editingController.getEditRowKey();return!!(0,g.equalByValue)(i,this._dataController.adaptiveExpandedKey())||void 0},_getFormItemsByHiddenColumns:function(t){var e=[];return(0,_.each)(t,(function(t,n){e.push({column:n,name:n.name,dataField:n.dataField,visibleIndex:n.visibleIndex})})),e},_getAdaptiveColumnVisibleIndex:function(t){for(var e=0;e<t.length;e++){if("adaptive"===t[e].command)return e}},_hideAdaptiveColumn:function(t,e){var n=this._getAdaptiveColumnVisibleIndex(e);l.default.isDefined(n)&&(t[n]="adaptiveHidden",this._hideVisibleColumn({isCommandColumn:!0,visibleIndex:n}))},_showHiddenCellsInView:function(t){var e=t.$cells,n=t.isCommandColumn?"dx-command-adaptive-hidden":this.addWidgetPrefix("hidden-column");e.removeClass(n)},_showHiddenColumns:function(){for(var t=0;t<x.length;t++){var e=this.getView(x[t]);if(e&&e.isVisible()&&e.element()){var n=e.name,i=e.element().find(".dx-command-adaptive-hidden");this._showHiddenCellsInView({viewName:n,$cells:i,isCommandColumn:!0});var o=e.element().find("."+this.addWidgetPrefix("hidden-column"));this._showHiddenCellsInView({viewName:n,$cells:o})}}},_isCellValid:function(t){return t&&t.length&&!t.hasClass("dx-master-detail-cell")&&!t.hasClass("dx-group-cell")},_hideVisibleColumn:function(t){var e=t.isCommandColumn,n=t.visibleIndex,i=this;x.forEach((function(t){var o=i.getView(t);o&&i._hideVisibleColumnInView({view:o,isCommandColumn:e,visibleIndex:n})}))},_hideVisibleColumnInView:function(t){var e,n=t.view,i=t.isCommandColumn,o=t.visibleIndex,r=n.name,a=this._columnsController.getVisibleColumns()[o],s=this._editingController&&this._editingController.getEditFormRowIndex();if(n&&n.isVisible()&&a)for(var l=n.getRowsCount(),u=n._getRowElements(),c=0;c<l;c++){if(!(c===s&&"rowsView"===r&&"popup"!==this.option("editing.mode"))){var d="columnHeadersView"===r?this._columnsController.getVisibleIndex(a.index,c):o;d>=0&&(e=u.eq(c).children().eq(d),this._isCellValid(e)&&this._hideVisibleCellInView({viewName:r,isCommandColumn:i,$cell:e}))}}},_hideVisibleCellInView:function(t){var e=t.$cell,n=t.isCommandColumn?"dx-command-adaptive-hidden":this.addWidgetPrefix("hidden-column");e.addClass(n)},_getEditMode:function(){return this._editingController.getEditMode()},isFormEditMode:function(){var t=this._getEditMode();return"form"===t||"popup"===t},hideRedundantColumns:function(t,e,n){if(this._hiddenColumns=[],this._isVisibleColumnsValid(e)&&n.length){var i,o,r,a=0,s=this.component.$element(),l=s.width()-this._getCommandColumnsWidth(),u=function(){var t=this;return e.filter((function(e){return!e.command&&0===t._hiddenColumns.filter((function(t){return t.index===e.index})).length}))}.bind(this),c=u(),d=c.length;do{r=!1,a=0;var h=this._calculatePercentWidths(t,e),f=h<100&&0!==h;for(i=0;i<e.length;i++){var p=e[i],m=this._getNotTruncatedColumnWidth(p,l,c,f),g=C(this,p),_=this._columnsController.columnOption(g,"width"),v=this._columnsController.columnOption(g,"minWidth"),y=this._columnsController.columnOption(g,"bestFitWidth");if("adaptiveHidden"!==t[i]){if(!m&&!p.command&&!p.fixed){r=!0;break}_&&"auto"!==_||(m=Math.max(y||0,v||0)),("adaptive"!==p.command||o)&&(a+=m)}else o=!0}if(r=r||a>s.width()){var b=n.pop(),w=this._columnsController.getVisibleIndex(b.index);l+=this._calculateColumnWidth(b,l,c,f),this._hideVisibleColumn({visibleIndex:w}),t[w]="adaptiveHidden",this._hiddenColumns.push(b),c=u()}}while(r&&c.length>1&&n.length);d===c.length&&this._hideAdaptiveColumn(t,e)}else this._hideAdaptiveColumn(t,e)},getItemContentByColumnIndex:function(t){for(var e,n=0;n<this._$itemContents.length;n++){var i=(e=this._$itemContents.eq(n)).data("dx-form-item");if(i&&i.column&&this._columnsController.getVisibleIndex(i.column.index)===t)return e}},toggleExpandAdaptiveDetailRow:function(t,e){this.isFormEditMode()&&this._editingController.isEditing()||this.getController("data").toggleExpandAdaptiveDetailRow(t,e)},createFormByHiddenColumns:function(t,e){var n=this,i=(0,o.default)(t),r={items:n._getFormItemsByHiddenColumns(n._hiddenColumns),formID:"dx-"+new c.default},a=p.default.isMaterial()?{colCount:2}:{};this.executeAction("onAdaptiveDetailRowPreparing",{formOptions:r}),n._$itemContents=null,n._form=n._createComponent((0,o.default)("<div>").appendTo(i),h.default,(0,v.extend)(a,r,{customizeItem:function(t){var i=t.column||n._columnsController.columnOption(t.name||t.dataField);i&&(t.label=t.label||{},t.label.text=t.label.text||i.caption,t.column=i,t.template=n._getTemplate(t,e,n.updateForm.bind(n))),r.customizeItem&&r.customizeItem.call(this,t)},onContentReady:function(t){r.onContentReady&&r.onContentReady.call(this,t),n._$itemContents=i.find(".dx-field-item-content")}}))},hasAdaptiveDetailRowExpanded:function(){return l.default.isDefined(this._dataController.adaptiveExpandedKey())},updateForm:function(t){this.hasAdaptiveDetailRowExpanded()&&this._form&&l.default.isDefined(this._form._contentReadyAction)&&(t&&t.length?this._form.option("items",this._getFormItemsByHiddenColumns(t)):this._form.repaint())},updateHidingQueue:function(t){var e,n,i=t.filter((function(t){return t.visible&&!t.type&&!t.fixed&&!(l.default.isDefined(t.groupIndex)&&t.groupIndex>=0)}));if(this._hidingColumnsQueue=[],this.option("allowColumnResizing")&&"widget"===this.option("columnResizingMode"))return this._hidingColumnsQueue;for(n=0;n<i.length;n++)l.default.isDefined(i[n].hidingPriority)&&i[n].hidingPriority>=0&&(e=!0,this._hidingColumnsQueue[i[n].hidingPriority]=i[n]);if(e)this._hidingColumnsQueue.reverse();else if(this.option("columnHidingEnabled"))for(n=0;n<i.length;n++){var o=this._columnsController.getVisibleIndex(i[n].index);this._hidingColumnsQueue[o]=i[n]}return this._hidingColumnsQueue=this._hidingColumnsQueue.filter(Object),this._hidingColumnsQueue},getHiddenColumns:function(){return this._hiddenColumns},hasHiddenColumns:function(){return this._hiddenColumns.length>0},getHidingColumnsQueue:function(){return this._hidingColumnsQueue},init:function(){var t=this;t._columnsController=t.getController("columns"),t._dataController=t.getController("data"),t._rowsView=t.getView("rowsView"),t._columnsController.addCommandColumn({type:"adaptive",command:"adaptive",visible:!0,adaptiveHidden:!0,cssClass:"dx-command-adaptive",alignment:"center",width:"auto",cellTemplate:k,fixedPosition:"right"}),t._columnsController.columnsChanged.add((function(){var e=!!t.updateHidingQueue(t._columnsController.getColumns()).length;t._columnsController.columnOption("command:adaptive","adaptiveHidden",!e,!0)})),t._editingController=t.getController("editing"),t._hidingColumnsQueue=[],t._hiddenColumns=[],t.createAction("onAdaptiveDetailRowPreparing"),t.callBase()},optionChanged:function(t){"columnHidingEnabled"===t.name&&this._columnsController.columnOption("command:adaptive","adaptiveHidden",!t.value),this.callBase(t)},publicMethods:function(){return["isAdaptiveDetailRowExpanded","expandAdaptiveDetailRow","collapseAdaptiveDetailRow"]},isAdaptiveDetailRowExpanded:function(t){return this._dataController.adaptiveExpandedKey()&&(0,g.equalByValue)(this._dataController.adaptiveExpandedKey(),t)},expandAdaptiveDetailRow:function(t){this.hasAdaptiveDetailRowExpanded()||this.toggleExpandAdaptiveDetailRow(t)},collapseAdaptiveDetailRow:function(){this.hasAdaptiveDetailRowExpanded()&&this.toggleExpandAdaptiveDetailRow()}});t.exports={defaultOptions:function(){return{columnHidingEnabled:!1,onAdaptiveDetailRowPreparing:null}},controllers:{adaptiveColumns:I},extenders:{views:{rowsView:{_getCellTemplate:function(t){var e=this,n=t.column;return"detailAdaptive"===t.rowType&&"detail"===n.command?function(t,n){e._adaptiveColumnsController.createFormByHiddenColumns((0,o.default)(t),n)}:e.callBase(t)},_createRow:function(t){var e=this.callBase(t);return t&&"detailAdaptive"===t.rowType&&t.key===this._dataController.adaptiveExpandedKey()&&e.addClass("dx-adaptive-detail-row"),e},_renderCells:function(t,e){this.callBase(t,e);var n=this._adaptiveColumnsController.getHidingColumnsQueue().length,i=this._adaptiveColumnsController.getHiddenColumns().length;n&&!i&&S(t).last().addClass("dx-last-data-cell")},_getColumnIndexByElementCore:function(t){var e=t.closest(".dx-field-item-content");if(e.length&&e.closest(this.component.$element()).length){var n=e.length?e.first().data("dx-form-item"):null;return n&&n.column&&this._columnsController.getVisibleIndex(n.column.index)}return this.callBase(t)},_cellPrepared:function(t,e){this.callBase.apply(this,arguments),"detailAdaptive"!==e.row.rowType&&"adaptiveHidden"===e.column.visibleWidth&&t.addClass(this.addWidgetPrefix("hidden-column"))},_getCellElement:function(t,e){var n=this._dataController.items()[t];return n&&"detailAdaptive"===n.rowType?this._adaptiveColumnsController.getItemContentByColumnIndex(e):this.callBase(t,e)},getContextMenuItems:function(t){if(t.row&&"detailAdaptive"===t.row.rowType){var e=this.component.getView("columnHeadersView"),n=(0,o.default)(t.targetElement).closest(".dx-field-item-label").next().data("dx-form-item");return t.column=n?n.column:t.column,e.getContextMenuItems&&e.getContextMenuItems(t)}return this.callBase&&this.callBase(t)},isClickableElement:function(t){return!!this.callBase&&this.callBase(t)||!!t.closest(".dx-command-adaptive").length},init:function(){this.callBase(),this._adaptiveColumnsController=this.getController("adaptiveColumns")}}},controllers:{export:{_updateColumnWidth:function(t,e){this.callBase(t,"adaptiveHidden"===t.visibleWidth?t.bestFitWidth:e)}},columnsResizer:{_pointCreated:function(t,e,n){var i=this.callBase(t,e,n),o=n[t.columnIndex]||{},r=this._getNextColumnIndex(t.columnIndex),a=n[r]||{},s=r!==t.columnIndex+1&&a.command,l="adaptiveHidden"===o.visibleWidth||s;return i||l},_getNextColumnIndex:function(t){for(var e=this._columnsController.getVisibleColumns(),n=this.callBase(t);e[n]&&"adaptiveHidden"===e[n].visibleWidth;)n++;return n}},draggingHeader:{_pointCreated:function(t,e,n,i){var o=this.callBase(t,e,n,i),r="adaptiveHidden"===(e[t.columnIndex-1]||{}).visibleWidth;return o||r}},editing:{_isRowEditMode:function(){return"row"===this.getEditMode()},_getFormEditItemTemplate:function(t,e){return"row"!==this.getEditMode()&&"detailAdaptive"===t.rowType?(t.columnIndex=this._columnsController.getVisibleIndex(e.index),this.getColumnTemplate(t)):this.callBase(t,e)},_closeEditItem:function(t){var e=t.closest(".dx-field-item-content"),n=this._dataController.getRowIndexByKey(this._dataController.adaptiveExpandedKey())+1,i=e.length?e.first().data("dx-form-item"):null,o=i&&i.column&&this._columnsController.getVisibleIndex(i.column.index);this.isEditCell(n,o)||this.callBase(t)},_beforeUpdateItems:function(t,e){if(!this._adaptiveController.isFormEditMode()&&this._adaptiveController.hasHiddenColumns()){var n=this._dataController.items(),i=n[e],o=f.default.getIndexByKey(this._dataController.adaptiveExpandedKey(),n);this._isForceRowAdaptiveExpand=!this._adaptiveController.hasAdaptiveDetailRowExpanded(),o>=0&&e>o&&this._editRowIndex--,o>=0&&t.push(o+1),t.push(e+1),this._dataController.adaptiveExpandedKey(i.key)}},_afterInsertRow:function(t){this.callBase(t),this._adaptiveController.hasHiddenColumns()&&(this._adaptiveController.toggleExpandAdaptiveDetailRow(t.key,this.isRowEditMode()),this._isForceRowAdaptiveExpand=!0)},_collapseAdaptiveDetailRow:function(){this._isRowEditMode()&&this._isForceRowAdaptiveExpand&&(this._adaptiveController.collapseAdaptiveDetailRow(),this._isForceRowAdaptiveExpand=!1)},_cancelEditAdaptiveDetailRow:function(){this._adaptiveController.hasHiddenColumns()&&this._collapseAdaptiveDetailRow()},_afterSaveEditData:function(){var t=this;this.callBase.apply(this,arguments);var e=new y.Deferred;return this._isRowEditMode()&&this._adaptiveController.hasHiddenColumns()?(0,y.when)(this.getController("validating").validate(!0)).done((function(n){n&&t._cancelEditAdaptiveDetailRow(),e.resolve()})):e.resolve(),e.promise()},_beforeCancelEditData:function(){this.callBase(),this._cancelEditAdaptiveDetailRow()},_getRowIndicesForCascadeUpdating:function(t){var e=this.callBase.apply(this,arguments);return this._adaptiveController.isAdaptiveDetailRowExpanded(t.key)&&e.push("detailAdaptive"===t.rowType?t.rowIndex-1:t.rowIndex+1),e},_beforeCloseEditCellInBatchMode:function(t){var e=this._dataController._adaptiveExpandedKey;if(e){var n=f.default.getIndexByKey(e,this._dataController.items());n>-1&&t.unshift(n)}},editRow:function(t){this._adaptiveController.isFormEditMode()&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(t)},deleteRow:function(t){var e=this._dataController.getKeyByRowIndex(t);"batch"===this.getEditMode()&&this._adaptiveController.isAdaptiveDetailRowExpanded(e)&&this._adaptiveController.collapseAdaptiveDetailRow(),this.callBase(t)},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}},resizing:{_needBestFit:function(){return this.callBase()||!!this._adaptiveColumnsController.getHidingColumnsQueue().length},_updateScrollableForIE:function(){var t=this;u.default.msie&&parseInt(u.default.version)<=11&&(this._updateScrollableTimeoutID=setTimeout((function(){t.getView("rowsView")._updateScrollable()})))},_correctColumnWidths:function(t,e){var n=this._adaptiveColumnsController,i=this.option("columnAutoWidth"),o=n.getHiddenColumns(),r=n.updateHidingQueue(this._columnsController.getColumns());n.hideRedundantColumns(t,e,r);var a=n.getHiddenColumns();return n.hasAdaptiveDetailRowExpanded()&&o.length!==a.length&&n.updateForm(a),!a.length&&n.collapseAdaptiveDetailRow(),i&&r.length&&!a.length&&this._updateScrollableForIE(),this.callBase.apply(this,arguments)},_toggleBestFitMode:function(t){t&&this._adaptiveColumnsController._showHiddenColumns(),this.callBase(t)},_needStretch:function(){var t=this._adaptiveColumnsController;return this.callBase.apply(this,arguments)||t.getHidingColumnsQueue().length||t.hasHiddenColumns()},init:function(){this._adaptiveColumnsController=this.getController("adaptiveColumns"),this.callBase()},dispose:function(){this.callBase.apply(this,arguments),clearTimeout(this._updateScrollableTimeoutID)}},data:{_processItems:function(t,e){var n=this,i=e.changeType;if(t=n.callBase.apply(n,arguments),"loadingAll"===i||!l.default.isDefined(n._adaptiveExpandedKey))return t;var o=f.default.getIndexByKey(n._adaptiveExpandedKey,t);if(o>=0){var r=t[o];t.splice(o+1,0,{visible:!0,rowType:"detailAdaptive",key:r.key,data:r.data,node:r.node,modifiedValues:r.modifiedValues,isNewRow:r.isNewRow,values:r.values})}else"refresh"===i&&(n._adaptiveExpandedKey=void 0);return t},_getRowIndicesForExpand:function(t){var e=this.callBase.apply(this,arguments);if(this.getController("adaptiveColumns").isAdaptiveDetailRowExpanded(t)){var n=e[e.length-1];e.push(n+1)}return e},adaptiveExpandedKey:function(t){if(!l.default.isDefined(t))return this._adaptiveExpandedKey;this._adaptiveExpandedKey=t},toggleExpandAdaptiveDetailRow:function(t,e){var n=f.default.getIndexByKey(this._adaptiveExpandedKey,this._items),i=f.default.getIndexByKey(t,this._items);n>=0&&n===i&&!e&&(t=void 0,i=-1),this._adaptiveExpandedKey=t,n>=0&&n++,i>=0&&i++;var o=this.getRowIndexDelta();this.updateItems({allowInvisibleRowIndices:!0,changeType:"update",rowIndices:[n-o,i-o]})},init:function(){this.callBase(),this._adaptiveExpandedKey=void 0}},editorFactory:{_getFocusCellSelector:function(){return this.callBase()+", .dx-adaptive-detail-row .dx-field-item > .dx-field-item-content"},_getTooltipsSelector:function(){return this.callBase()+", .dx-field-item-content ."+this.addWidgetPrefix("revert-tooltip")}},columns:{_isColumnVisible:function(t){return this.callBase(t)&&!t.adaptiveHidden}},keyboardNavigation:{_isCellValid:function(t){return this.callBase.apply(this,arguments)&&!t.hasClass(this.addWidgetPrefix("hidden-column"))},_processNextCellInMasterDetail:function(t){this.callBase(t);var e=this._editingController.isCellOrBatchEditMode();if(!this._isInsideEditForm(t)&&t&&e){r.default.on(t,"focus",(function e(){r.default.off(t,"focus",e),r.default.trigger(t,"dxclick")}))}},_handleTabKeyOnMasterDetailCell:function(t,e){var n=this.callBase(t,e),i=this._getFocusedCell(),o=i&&i.parent();if(!n&&o&&o.length){var r=S(o),a="next"===e?r.last():r.first(),s=o.get(0).rowIndex,l=this._adaptiveController,u=this._dataController.getKeyByRowIndex("next"===e?s:s-1),c=i&&a&&i.get(0)===a.get(0);return l.isAdaptiveDetailRowExpanded(u)&&c}return n},init:function(){this.callBase(),this._adaptiveController=this.getController("adaptiveColumns")}}}}}},function(t,e,n){"use strict";var i=n(10),o=n(470),r={_renderCore:function(){var t=this,e=t._scrollLeft;t.callBase.apply(t,arguments),t._columnsController.isVirtualMode()&&e>=0&&(t._scrollLeft=0,t.scrollTo({left:e}))}},a=function(){var t=function(t){return t.map((function(t){return t.visibleWidth||parseFloat(t.width)||50}))};return{init:function(){this.callBase(),this._beginPageIndex=0,this._endPageIndex=0,this._position=0,this._virtualVisibleColumns={}},resetColumnsCache:function(){this.callBase(),this._virtualVisibleColumns={}},getBeginPageIndex:function(e){for(var n=this.getVisibleColumns(void 0,!0),i=t(n),o=0,r=0;r<i.length;r++){if(o>=e)return Math.floor(r/this.getColumnPageSize());o+=i[r]}return 0},getTotalWidth:function(){var t=this.option("width");return"number"===typeof t?t:this.getController("resizing")._lastWidth||this.component.$element().outerWidth()},getEndPageIndex:function(e){var n=this.getVisibleColumns(void 0,!0),i=t(n),o=0;e+=this.getTotalWidth();for(var r=0;r<i.length;r++){if(o>=e)return Math.ceil(r/this.getColumnPageSize());o+=i[r]}return Math.ceil(i.length/this.getColumnPageSize())},getColumnPageSize:function(){return this.option("scrolling.columnPageSize")},_fireColumnsChanged:function(){var t=new Date;this.columnsChanged.fire({optionNames:{all:!0,length:1},changeTypes:{columns:!0,length:1}}),this._renderTime=new Date-t},setScrollPosition:function(t){var e=this,n=e.option("scrolling.columnRenderingThreshold");e._renderTime>n?(clearTimeout(e._changedTimeout),e._changedTimeout=setTimeout((function(){e._setScrollPositionCore(t)}),e.option("scrolling.timeout"))):e._setScrollPositionCore(t)},isVirtualMode:function(){return(0,i.hasWindow)()&&"virtual"===this.option("scrolling.columnRenderingMode")},resize:function(){this._setScrollPositionCore(this._position)},_setScrollPositionCore:function(t){if(this.isVirtualMode()){var e=this.getBeginPageIndex(t),n=this.getEndPageIndex(t),i=t<this._position?this._beginPageIndex>e:this._endPageIndex<n;this._position=t,i&&(this._beginPageIndex=e,this._endPageIndex=n,this._fireColumnsChanged())}},getFixedColumns:function(t,e){var n=this.callBase(t);if(this.isVirtualMode()&&!e&&n.length){var i=n.map((function(t){return t.command})).indexOf("transparent");return n[i].colspan=this.getVisibleColumns().length-this.callBase().length+1,n}return n},getVisibleColumns:function(e,n){if(n||!this.isVirtualMode())return this.callBase(e);this._beginPageIndex||this._endPageIndex||(this._beginPageIndex=this.getBeginPageIndex(this._position),this._endPageIndex=this.getEndPageIndex(this._position));var i=this._beginPageIndex,r=this._endPageIndex,a=e+"-"+i+"-"+r;if(this._virtualVisibleColumns[a])return this._virtualVisibleColumns[a];var s=this.callBase(),l=this.getRowCount(),u=this.getColumnPageSize(),c=i*u,d=r*u,h=this.getFixedColumns(void 0,!0),f=h.map((function(t){return t.command})).indexOf("transparent"),p=h.length?f:0,m=s.slice(0,p),g=s.slice(p,c),_=t(g).reduce((function(t,e){return t+e}),0);_||(c=0);var v=h.length?h.length-f-1:0,y=s.slice(s.length-v),b=s.slice(d,s.length-v),w=t(b).reduce((function(t,e){return t+e}),0);if(w||(d=s.length),l>1&&"number"===typeof e){for(var x=[],C=0;C<l;C++)x.push(this.callBase(C));m=(0,o.createColumnsInfo)(x,0,m.length)[e]||[],y=(0,o.createColumnsInfo)(x,s.length-y.length,s.length)[e]||[],s=(0,o.createColumnsInfo)(x,c,d)[e]||[]}else s=s.slice(c,d);return _&&(s.unshift({command:"virtual",width:_}),s=m.concat(s)),w&&(s.push({command:"virtual",width:w}),s=s.concat(y)),this._virtualVisibleColumns[a]=s,s},dispose:function(){clearTimeout(this._changedTimeout),this.callBase.apply(this,arguments)}}}();t.exports={defaultOptions:function(){return{scrolling:{columnRenderingMode:"standard",columnPageSize:5,columnRenderingThreshold:300}}},extenders:{controllers:{columns:a},views:{columnHeadersView:r,footerView:r,rowsView:{_resizeCore:function(){this.callBase.apply(this,arguments),this._columnsController.resize()},_handleScroll:function(t){var e=this,n=this.getScrollable(),i=t.scrollOffset.left;e.callBase.apply(e,arguments),e.option("rtlEnabled")&&n&&(i=n.$content().width()-n.$element().width()-i),e._columnsController.setScrollPosition(i)}}}}}},function(t,e,n){"use strict";var i=n(0);function o(t,e,n,i,r,a){a=a||[],(i=i||[])[n=n||0]=i[n]||0;var s,l=t[n],u=a[n]+1||0,c=0;if(l){for(s=u;s<l.length;s++){var d=l[s],h=s+i[n],f=d.colspan||1;if(o(t,e,n+(d.rowspan||1),i,f,a),i[n]+=f-1,c+=f,d.rowspan)for(var p=n+1;p<n+d.rowspan;p++)i[p]=i[p]||0,i[p]+=d.colspan||1;if(!1===e(d,h,n,s))break;if(void 0!==r&&c>=r)break}a[n]=s}}e.foreachColumnInfo=o,e.createColumnsInfo=function(t,e,n){var r=[];o(t,(function(t,o,a){var s,l=t,u=l.colspan||1,c=o+u-1>=e&&o<n;if(r[a]=r[a]||[],c)o<e?(s=u-(e-o),o=e):s=u,o+s>n&&(s=n-o),s!==u&&(l=(0,i.extend)({},l,{colspan:s})),r[a].push(l);else if(o>n)return!1}));for(var a=0;a<r.length;a++)r[a]=r[a]||[];return r}},function(t,e,n){"use strict";var i=n(0);t.exports={_getEmptyCell:function(){return{text:"",value:void 0,colspan:1,rowspan:1}},_defaultSetter:function(t){return t||1},_cloneItem:function(t){return(0,i.extend)({},t,this._getEmptyCell())},_prepareItems:function(t){var e=this,n=[],i=(t[0]||[]).reduce((function(t,n){return t+e._defaultSetter(n.colspan)}),0),o=function(t){var n=0,i=0;return function(){var o=t[n]||[],r=o[i++];return i>=o.length&&(n++,i=0),r&&(r.colspan=e._defaultSetter(r.colspan),r.rowspan=e._defaultSetter(r.rowspan)),r}}(t);function r(t,i,o){if((n[t]=n[t]||[])[i]=o,o.colspan>1||o.rowspan>1){for(var a=e._cloneItem(o),s=1;s<o.colspan;s++)r(t,i+s,a);for(var l=1;l<o.rowspan;l++)for(var u=0;u<o.colspan;u++)r(t+l,i+u,a)}}for(var a=o(),s=0;a;){for(var l=0;l<i&&a;l++)n[s]&&n[s][l]||(r(s,l,a),l+=a.colspan-1,a=o());s++}return n}}},function(t,e,n){"use strict";var i=c(n(3)),o=c(n(44)),r=n(5),a=n(40),s=n(4),l=n(2),u=n(7);function c(t){return t&&t.__esModule?t:{default:t}}e.FocusController=o.default.ViewController.inherit({init:function(){this._dataController=this.getController("data"),this._keyboardController=this.getController("keyboardNavigation"),this.component._optionsByReference.focusedRowKey=!0},optionChanged:function(t){if("focusedRowIndex"===t.name){var e=this.option("focusedRowKey");this._focusRowByIndex(t.value),this._triggerFocusedRowChangedIfNeed(e,t.value),t.handled=!0}else if("focusedRowKey"===t.name){var n=this.option("focusedRowIndex");this._focusRowByKey(t.value),this._triggerFocusedRowChangedIfNeed(t.value,n),t.handled=!0}else"focusedColumnIndex"===t.name||"focusedRowEnabled"===t.name||"autoNavigateToFocusedRow"===t.name?t.handled=!0:this.callBase(t)},_triggerFocusedRowChangedIfNeed:function(t,e){if(e===this.getFocusedRowIndexByKey(t)){var n=this._dataController.getRowIndexByKey(t);if(n>=0){var o=(0,i.default)(this.getView("rowsView").getRowElement(n));this.getController("keyboardNavigation")._fireFocusedRowChanged(o,e)}}},isAutoNavigateToFocusedRow:function(){return"infinite"!==this.option("scrolling.mode")&&this.option("autoNavigateToFocusedRow")},_focusRowByIndex:function(t){this.option("focusedRowEnabled")&&((t=void 0!==t?t:this.option("focusedRowIndex"))<0?this.isAutoNavigateToFocusedRow()&&this._resetFocusedRow():this._focusRowByIndexCore(t))},_focusRowByIndexCore:function(t){var e=this,n=this.getController("data"),i=n.pageSize(),o=function(){if(e._isValidFocusedRowIndex(t)){var i=t-n.getRowIndexOffset(),o=n._getLastItemIndex(),r=Math.min(i,o),a=n.getKeyByRowIndex(r);void 0===a||e.isRowFocused(a)||e.option("focusedRowKey",a)}};if(i>=0)if(this._isLocalRowIndex(t))o();else{var r=Math.floor(t/n.pageSize());(0,u.when)(n.pageIndex(r),n.waitReady()).done((function(){o()}))}},_isLocalRowIndex:function(t){var e=this.getController("data");if(this.getController("keyboardNavigation")._isVirtualScrolling()){var n=Math.floor(t/e.pageSize()),i=e.virtualItemsCount(),o=i?i.begin:-1,r=e.getVisibleRows().length+e.getRowIndexOffset(),a=Math.ceil(r/e.pageSize());return o<=t&&a>n}return!0},_setFocusedRowKeyByIndex:function(t){var e=this.getController("data");if(this._isValidFocusedRowIndex(t)){var n=Math.min(t-e.getRowIndexOffset(),e.items().length-1),i=e.getKeyByRowIndex(n);void 0===i||this.isRowFocused(i)||this.option("focusedRowKey",i)}},_focusRowByKey:function(t){void 0===t?this._resetFocusedRow():this._navigateToRow(t,!0)},_resetFocusedRow:function(){if(!(void 0===this.option("focusedRowKey")&&this.option("focusedRowIndex")<0)){var t=this.getController("keyboardNavigation");this.option("focusedRowKey",void 0),t.setFocusedRowIndex(-1),this.option("focusedRowIndex",-1),this.getController("data").updateItems({changeType:"updateFocusedRow",focusedRowKey:void 0}),t._fireFocusedRowChanged(void 0,-1)}},_isValidFocusedRowIndex:function(t){var e=this.getController("data").getVisibleRows()[t];return!e||"data"===e.rowType||"group"===e.rowType},publicMethods:function(){return["navigateToRow","isRowFocused"]},navigateToRow:function(t){this.isAutoNavigateToFocusedRow()||this.option("focusedRowIndex",-1),this._navigateToRow(t)},_navigateToRow:function(t,e){var n=this,i=n.getController("data"),o=n.isAutoNavigateToFocusedRow(),r=new u.Deferred;if(void 0===t||!i.dataSource())return r.reject().promise();var a=n.getFocusedRowIndexByKey(t),s=i.getDataSource().paginate();return!o&&e||!s||a>=0?n._navigateTo(t,r,e):i.getPageIndexByKey(t).done((function(o){o<0?r.resolve(-1):o===i.pageIndex()?i.reload().done((function(){n.isRowFocused(t)?r.resolve(n.getFocusedRowIndexByKey(t)):n._navigateTo(t,r,e)})).fail(r.reject):i.pageIndex(o).done((function(){n._navigateTo(t,r,e)})).fail(r.reject)})).fail(r.reject),r.promise()},_navigateTo:function(t,e,n){var i=this.getController("data").getRowIndexByKey(t),o="virtual"===this.option("scrolling.rowRenderingMode");this.isAutoNavigateToFocusedRow()&&o&&i<0?this._navigateToVirtualRow(t,e,n):this._navigateToVisibleRow(t,e,n)},_navigateToVisibleRow:function(t,e,n){n?this._triggerUpdateFocusedRow(t,e):this.getView("rowsView").scrollToRowElement(t)},_navigateToVirtualRow:function(t,e,n){var i=this,o=this.getController("data"),r=o._rowsScrollController,s=(0,a.getIndexByKey)(t,o.items(!0)),l=i.getView("rowsView").getScrollable();if(r&&l&&s>=0){var u=s+o.getRowIndexOffset()-o.getRowIndexDelta(),c=r.getItemOffset(u);n&&i.component.on("contentReady",(function n(){i.component.off("contentReady",n),i._triggerUpdateFocusedRow(t,e)})),l.scrollTo({y:c})}},_triggerUpdateFocusedRow:function(t,e){var n=this.getController("data"),i=this.getFocusedRowIndexByKey(t);this._isValidFocusedRowIndex(i)?(this.option("focusedRowEnabled")?n.updateItems({changeType:"updateFocusedRow",focusedRowKey:t}):this.getView("rowsView").scrollToRowElement(t),this.getController("keyboardNavigation").setFocusedRowIndex(i),e&&e.resolve(i)):e&&e.resolve(-1)},getFocusedRowIndexByKey:function(t){var e=this.getController("data"),n=e.getRowIndexByKey(t);return n>=0?n+e.getRowIndexOffset():-1},_focusRowByKeyOrIndex:function(){var t=this,e=this.option("focusedRowKey"),n=this.option("focusedRowIndex"),i=this.getController("keyboardNavigation"),o=this.getController("data");if(void 0!==e){var r=o.getRowIndexByKey(e);r>=0?(i._isVirtualScrolling()&&(n=r+o.getRowIndexOffset()),i.setFocusedRowIndex(n),this._triggerUpdateFocusedRow(e)):this._navigateToRow(e,!0).done((function(e){n>=0&&e<0&&t._focusRowByIndex()}))}else n>=0&&this.getController("focus")._focusRowByIndex(n)},isRowFocused:function(t){if(void 0!==this.option("focusedRowKey"))return(0,s.equalByValue)(t,this.option("focusedRowKey"))},updateFocusedRow:function(t){var e,n=this,o=n._dataController.getRowIndexByKey(t.focusedRowKey),a=n.getView("rowsView");(0,r.each)(a.getTableElements(),(function(r,a){var s=0===r;e=(0,i.default)(a),n._clearPreviousFocusedRow(e,o),n._prepareFocusedRow({changedItem:t.items[o],$tableElement:e,focusedRowIndex:o,isMainTable:s})}))},_clearPreviousFocusedRow:function(t,e){var n=this,o=t.find(".dx-row.dx-row-focused").filter((function(e,o){var r=(0,i.default)(o).closest(".".concat(n.addWidgetPrefix("table")));return t.is(r)}));o.removeClass("dx-row-focused").removeClass("dx-cell-focus-disabled").removeAttr("tabindex"),o.children("td").removeAttr("tabindex"),0!==e&&(0,i.default)(this.getView("rowsView").getRowElement(0)).removeClass("dx-cell-focus-disabled").removeAttr("tabIndex")},_prepareFocusedRow:function(t){var e,n=t.changedItem;if(n&&("data"===n.rowType||"group"===n.rowType)){var o=t.focusedRowIndex,r=t.$tableElement,a=t.isMainTable,s=this.option("tabindex")||0,l=this.getView("rowsView");(e=(0,i.default)(l._getRowElements(r).eq(o))).addClass("dx-row-focused").attr("tabindex",s),a&&l.scrollToElementVertically(e)}return e}}),t.exports={defaultOptions:function(){return{focusedRowEnabled:!1,autoNavigateToFocusedRow:!0,focusedRowKey:void 0,focusedRowIndex:-1,focusedColumnIndex:-1}},controllers:{focus:e.FocusController},extenders:{controllers:{keyboardNavigation:{init:function(){var t=this.option("focusedRowIndex"),e=this.option("focusedColumnIndex");this.createAction("onFocusedRowChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedRowChanged",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanging",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFocusedCellChanged",{excludeValidators:["disabled","readOnly"]}),this.callBase(),this.setRowFocusType(),this._focusedCellPosition={},(0,l.isDefined)(t)&&(this._focusedCellPosition.rowIndex=this.option("focusedRowIndex")),(0,l.isDefined)(e)&&(this._focusedCellPosition.columnIndex=this.option("focusedColumnIndex"))},setFocusedRowIndex:function(t){this.callBase(t);var e=this.getController("data").getVisibleRows()[t];e&&e.isNewRow||this.option("focusedRowIndex",t)},setFocusedColumnIndex:function(t){this.callBase(t),this.option("focusedColumnIndex",t)},_escapeKeyHandler:function(t,e){!e&&this.option("focusedRowEnabled")?this.isCellFocusType()&&(this.setRowFocusType(),this._focus(this._getCellElementFromTarget(t.originalEvent.target),!0)):this.callBase(t,e)},_updateFocusedCellPosition:function(t,e){var n=this.option("focusedRowIndex"),i=this.option("focusedColumnIndex"),o=this.callBase(t,e);o&&o.columnIndex>=0&&this._fireFocusedCellChanged(t,i,n)}},editorFactory:{renderFocusOverlay:function(t,e){var n,i=this.getController("keyboardNavigation"),o=this.option("focusedRowEnabled"),r=this.getController("editing"),a="row"===i._getElementType(t);o&&i.isRowFocusType()&&!r.isEditing()?o&&a&&!t.hasClass("dx-row-focused")&&(n=i.getFirstValidCellInRow(t),i.focus(n)):this.callBase(t,e)}},columns:{getSortDataSourceParameters:function(t,e){var n=this,i=this.callBase.apply(this,arguments),o=this.getController("data"),r=o._dataSource,a=o.store(),s=a&&a.key(),l=r&&r.remoteOperations()||{},u=Object.keys(l).every((function(t){return!l[t]}));if(s&&(this.option("focusedRowEnabled")&&!1!==this.getController("focus").isAutoNavigateToFocusedRow()||e)){var c=(s=Array.isArray(s)?s:[s]).filter((function(t){return!n.columnOption(t,"sortOrder")}));c.length&&(i=i||[],u?i.push({selector:r.getDataIndexGetter(),desc:!1}):c.forEach((function(t){return i.push({selector:t,desc:!1})})))}return i}},data:{_applyChange:function(t){if(!t||"updateFocusedRow"!==t.changeType)return this.callBase.apply(this,arguments)},_fireChanged:function(t){if(this.callBase(t),this.option("focusedRowEnabled")&&this._dataSource){var e="update"===t.changeType&&t.repaintChangesOnly&&t.changeTypes&&t.changeTypes.indexOf("remove")>=0;"refresh"===t.changeType&&t.items.length||e?(this._updatePageIndexes(),this.processUpdateFocusedRow(t)):"append"!==t.changeType&&"prepend"!==t.changeType||this._updatePageIndexes()}},_updatePageIndexes:function(){var t=this._lastRenderingPageIndex||0,e=this._rowsScrollController?this._rowsScrollController.pageIndex():0;this._lastRenderingPageIndex=e,this._isPagingByRendering=e!==t},isPagingByRendering:function(){return this._isPagingByRendering},processUpdateFocusedRow:function(t){var e=t.operationTypes||{},n=this.getController("focus"),i=e.reload,o=e.fullReload,r=this.getController("keyboardNavigation")._isVirtualScrolling(),a=this.option("focusedRowKey"),s=n.isAutoNavigateToFocusedRow();if(i&&!o&&void 0!==a)n._navigateToRow(a,!0).done((function(t){t<0&&n._focusRowByIndex()}));else if(e.paging&&!r)if(s){var l=this.getRowIndexByKey(a),u=l>=0,c=this.option("focusedRowIndex");c>=0&&(c===l||!u)&&n._focusRowByIndex()}else this.getRowIndexByKey(a)<0&&this.option("focusedRowIndex",-1);else e.fullReload&&n._focusRowByKeyOrIndex()},getPageIndexByKey:function(t){var e=this,n=new u.Deferred;return e.getGlobalRowIndexByKey(t).done((function(t){n.resolve(t>=0?Math.floor(t/e.pageSize()):-1)})).fail(n.reject),n.promise()},getGlobalRowIndexByKey:function(t){return this._dataSource.group()?this._calculateGlobalRowIndexByGroupedData(t):this._calculateGlobalRowIndexByFlatData(t)},_calculateGlobalRowIndexByFlatData:function(t,e,n){var i=this,o=new u.Deferred,r=i._dataSource,a=i._generateFilterByKey(t);return r.load({filter:i._concatWithCombinedFilter(a),skip:0,take:1}).done((function(s){s.length>0?(a=i._generateOperationFilterByKey(t,s[0],n),r.load({filter:i._concatWithCombinedFilter(a,e),skip:0,take:1,requireTotalCount:!0}).done((function(t,e){o.resolve(e.totalCount)}))):o.resolve(-1)})),o.promise()},_concatWithCombinedFilter:function(t,e){var n=this.getCombinedFilter();return(0,a.combineFilters)([t,n,e])},_generateBooleanFilter:function(t,e,n){var i;return!1===e?i=[t,"=",!!n.desc||null]:(!0===e?!n.desc:n.desc)&&(i=[t,"<>",e]),i},_generateOperationFilterByKey:function(t,e,n){var i=this,o=i._dataSource,r=i._generateFilterByKey(t,"<"),a=i._columnsController.getSortDataSourceParameters(!o.remoteOperations().filtering,!0);if(n){var s=i._columnsController.getGroupDataSourceParameters(!o.remoteOperations().filtering);s&&(a=a?s.concat(a):s)}return a&&a.slice().reverse().forEach((function(t){var n,o=t.selector,a=(n="function"===typeof o?o:i._columnsController.columnOption(o,"selector"))?n(e):e[o];if(r=[[o,"=",a],"and",r],null===a||(0,l.isBoolean)(a)){var s=i._generateBooleanFilter(o,a,t);s&&(r=[s,"or",r])}else r=[[o,t.desc?">":"<",a],"or",r]})),r},_generateFilterByKey:function(t,e){var n=this._dataSource.key(),i=[];if(e||(e="="),Array.isArray(n))for(var o=0;o<n.length;++o){var r=t[n[o]];r&&(i.length>0&&i.push("and"),i.push([n[o],e,r]))}else i=[n,e,t];return i},_getLastItemIndex:function(){return this.items(!0).length-1}}},views:{rowsView:{_createRow:function(t){var e=this.callBase(t);return this.option("focusedRowEnabled")&&t&&this.getController("focus").isRowFocused(t.key)&&e.addClass("dx-row-focused"),e},_checkRowKeys:function(t){if(this.callBase.apply(this,arguments),this.option("focusedRowEnabled")&&this.option("dataSource")){var e=this._dataController.store();e&&!e.key()&&this._dataController.fireError("E1042","Row focusing")}},_update:function(t){"updateFocusedRow"===t.changeType?this.option("focusedRowEnabled")&&this.getController("focus").updateFocusedRow(t):this.callBase(t)},updateFocusElementTabIndex:function(t){this.option("focusedRowEnabled")?this._setFocusedRowElementTabIndex():this.callBase(t)},_setFocusedRowElementTabIndex:function(){var t=this,e=t.option("focusedRowKey"),n=t.option("tabIndex")||0,i=t._dataController,o=i.getRowIndexByKey(e),r=t.option("focusedColumnIndex"),a=t._findRowElementForTabIndex();if(t._scrollToFocusOnResize=t._scrollToFocusOnResize||function(){t.scrollToElementVertically(t._findRowElementForTabIndex()),t.resizeCompleted.remove(t._scrollToFocusOnResize)},a.attr("tabIndex",n),o>=0){r<0&&(r=0),o+=i.getRowIndexOffset(),t.getController("keyboardNavigation").setFocusedCellPosition(o,r);var s=i.dataSource(),l=s&&s.operationTypes();!l||l.paging||i.isPagingByRendering()||(t.resizeCompleted.remove(t._scrollToFocusOnResize),t.resizeCompleted.add(t._scrollToFocusOnResize))}},_findRowElementForTabIndex:function(){var t=this.option("focusedRowKey"),e=this._dataController.getRowIndexByKey(t);return(0,i.default)(this.getRowElement(e>=0?e:0))},scrollToRowElement:function(t){var e=this.getController("data").getRowIndexByKey(t),n=(0,i.default)(this.getRow(e));this.scrollToElementVertically(n)},scrollToElementVertically:function(t){var e=this.getScrollable();if(e){var n=e.getScrollElementPosition(t,"vertical");e.scrollTo({top:n})}}}}}}},function(t,e,n){"use strict";var i=l(n(3)),o=n(0),r=l(n(270)),a=n(40),s=l(n(31));function l(t){return t&&t.__esModule?t:{default:t}}var u={init:function(){this.callBase.apply(this,arguments),this._updateHandleColumn()},_allowReordering:function(){var t=this.option("rowDragging");return!(!t||!(t.allowReordering||t.allowDropInsideItem||t.group))},_updateHandleColumn:function(){var t=this.option("rowDragging"),e=this._allowReordering(),n=this._columnsController,i=e&&t.showDragIcons;n&&n.addCommandColumn({type:"drag",command:"drag",visibleIndex:-2,alignment:"center",cssClass:"dx-command-drag",width:"auto",cellTemplate:this._getHandleTemplate(),visible:i}),n.columnOption("type:drag","visible",i)},_renderContent:function(){var t=this,e=this.option("rowDragging"),n=this._allowReordering(),i=this.callBase.apply(this,arguments),a=this._isFixedTableRendering,l="_sortable",u="_sortableFixed",c=a?u:l,d=a?l:u;return n&&i.length&&(this[c]=this._createComponent(i,r.default,(0,o.extend)({component:this.component,contentTemplate:null,filter:"> table > tbody > .dx-row:not(.dx-freespace-row):not(.dx-virtual-row)",dragTemplate:this._getDraggableRowTemplate(),handle:e.showDragIcons&&".".concat("dx-command-drag"),dropFeedbackMode:"indicate"},e,{onDragStart:function(t){var n,i=t.component.getVisibleRows()[t.fromIndex];t.itemData=i&&i.data;var o=i&&"data"===i.rowType;t.cancel=!o,null===(n=e.onDragStart)||void 0===n||n.call(e,t)},dropFeedbackMode:s.default.msie?"indicate":e.dropFeedbackMode,onOptionChanged:function(e){t[u]&&("fromIndex"!==e.name&&"toIndex"!==e.name||t[d].option(e.name,e.value))}})),i.toggleClass("dx-sortable-without-handle",!e.showDragIcons)),i},_getDraggableGridOptions:function(t){var e=this.option(),n=this.getColumns(),o=(0,i.default)(this.getRowElement(t.rowIndex));return{dataSource:[{id:1,parentId:0}],showBorders:!0,showColumnHeaders:!1,scrolling:{useNative:!1,showScrollbar:!1},pager:{visible:!1},loadingTimeout:void 0,columnFixing:e.columnFixing,columnAutoWidth:e.columnAutoWidth,showColumnLines:e.showColumnLines,columns:n.map((function(t){return{width:t.width||t.visibleWidth,fixed:t.fixed,fixedPosition:t.fixedPosition}})),onRowPrepared:function(t){var e=t.component.getView("rowsView");(0,i.default)(t.rowElement).replaceWith(o.eq(e._isFixedTableRendering?1:0).clone())}}},_getDraggableRowTemplate:function(){var t=this;return function(e){var n=t.component.$element(),o=(0,i.default)("<div>").width(n.width()),r=t._dataController.items(),a=r&&r[e.fromIndex],s=t._getDraggableGridOptions(a);return t._createComponent(o,t.component.NAME,s),o.find(".dx-gridbase-container").children(":not(.".concat(t.addWidgetPrefix("rowsview"),")")).hide(),o}},_getHandleTemplate:function(){var t=this;return function(e,n){if("data"===n.rowType)return(0,i.default)(e).addClass("dx-cell-focus-disabled"),(0,i.default)("<span>").addClass(t.addWidgetPrefix("drag-icon"));(0,a.setEmptyText)((0,i.default)(e))}},optionChanged:function(t){"rowDragging"===t.name&&(this._updateHandleColumn(),this._invalidate(!0,!0),t.handled=!0),this.callBase.apply(this,arguments)}};t.exports={defaultOptions:function(){return{rowDragging:{showDragIcons:!0,dropFeedbackMode:"indicate",allowReordering:!1,allowDropInsideItem:!1}}},extenders:{views:{rowsView:u}}}},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(20)),r=u(n(6)),a=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==c(t)&&"function"!==typeof t)return{default:t};var e=l();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?Object.getOwnPropertyDescriptor(t,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=t[o]}n.default=t,e&&e.set(t,n);return n}(n(11)),s=u(n(28));function l(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return l=function(){return t},t}function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=a.addNamespace(s.default.up,"dxDiagramPanel"),y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(s,t);var e,n,o,a=m(s);function s(){return d(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"_init",value:function(){f(_(s.prototype),"_init",this).call(this),this._createOnPointerUpAction()}},{key:"_render",value:function(){f(_(s.prototype),"_render",this).call(this),this._attachPointerUpEvent()}},{key:"_getPointerUpElements",value:function(){return[this.$element()]}},{key:"_attachPointerUpEvent",value:function(){var t=this;this._getPointerUpElements().forEach((function(e){r.default.off(e,v),r.default.on(e,v,(function(e){(0,i.default)(e.target).closest(".dx-textbox").length||t._onPointerUpAction()}))}))}},{key:"_createOnPointerUpAction",value:function(){this._onPointerUpAction=this._createActionByOption("onPointerUp")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onPointerUp":this._createOnPointerUpAction();break;default:f(_(s.prototype),"_optionChanged",this).call(this,t)}}}])&&h(e.prototype,n),o&&h(e,o),s}(o.default);t.exports=y},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(70);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l={getContextMenuItemTemplate:function(t,e,n,i){var o=(0,r.default)(i);o.empty();var s=void 0!==e.rootCommand?e.rootCommand:-1;if(e.icon&&!e.checked){var l=(0,a.getImageContainer)(e.icon);o.append(l)}else if(t._menuHasCheckedItems&&!0===t._menuHasCheckedItems[s]){var u=(0,a.getImageContainer)("check");u.css("visibility",e.checked?"visible":"hidden"),o.append(u)}o.append('<span class="dx-menu-item-text">'+e.text+"</span>"),Array.isArray(e.items)&&e.items.length>0&&o.append('<span class="dx-menu-item-popout-container"><div class="dx-menu-item-popout"></div></span>')},getContextMenuCssClass:function(){return"dx-diagram-contextmenu"},onContextMenuItemClick:function(t,e,n){if(void 0===e.command&&void 0===e.name||Array.isArray(e.items)&&e.items.length){if(void 0!==e.rootCommand&&void 0!==e.value){var i=l.getItemCommandParameter(t,e,e.value);n.call(this,e.rootCommand,void 0,i)}}else{var o=l.getItemCommandParameter(t,e);n.call(this,e.command,e.name,o)}},getItemValue:function(t){return"object"===s(t.value)?JSON.stringify(t.value):t.value},getItemOptionText:function(t,e){if(t){e=e.slice();var n=this._getParentItemOptionText(e);t&&t._originalItemsInfo&&t._originalItemsInfo[n]&&(e[e.length-1]+=t._originalItemsInfo[n].indexPathCorrection)}return this._getItemOptionTextCore(e)},_getParentItemOptionText:function(t){var e=t.slice(0,t.length-1);return this._getItemOptionTextCore(e)},_getItemOptionTextCore:function(t){return t.reduce((function(t,e){return t+"items[".concat(e,"].")}),"")},getItemCommandParameter:function(t,e,n){return e.getParameter?e.getParameter(t):n},updateContextMenuItems:function(t,e,n,i){var o=this;t._originalItemsInfo||(t._originalItemsInfo={}),t._originalItemsInfo[e]||(t._originalItemsInfo[e]={items:t.option(e+"items")||[]}),i=i.map((function(e){return{value:o.getItemValue(e),text:e.text,checked:e.checked,widget:t,rootCommand:n}}));var r=t._originalItemsInfo[e].items;t.option(e+"items",i.concat(r)),t._originalItemsInfo[e]&&r.length&&(t._originalItemsInfo[e].indexPathCorrection=i.length)},updateContextMenuItemVisible:function(t,e,n){t.option(e+"visible",n)},updateContextMenuItemValue:function(t,e,n,i){var o=t.option(e+"items");"boolean"!==typeof i||o&&o.length?void 0!==i&&(this._setContextMenuHasCheckedItems(t,n),Array.isArray(o)&&o.forEach((function(t,e){t.checked=t.value===i}))):(this._setContextMenuHasCheckedItems(t,-1),t.option(e+"checked",i))},_setContextMenuHasCheckedItems:function(t,e){t._menuHasCheckedItems||(t._menuHasCheckedItems={}),t._menuHasCheckedItems[e]=!0}};t.exports=l},function(t,e,n){"use strict";var i=l(n(3)),o=n(0),r=n(10),a=l(n(48)),s=l(n(474));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,s,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_init",value:function(){h(g(u.prototype),"_init",this).call(this),this._createOnVisibilityChangingAction(),this._createOnVisibilityChangedAction()}},{key:"isVisible",value:function(){return this.option("isVisible")}},{key:"isMobileView",value:function(){return this.option("isMobileView")}},{key:"_initMarkup",value:function(){h(g(u.prototype),"_initMarkup",this).call(this);var t=this.$element(),e=(0,i.default)("<div>").addClass(this._getPopupClass()).addClass(this.isMobileView()&&"dx-diagram-mobile-popup").appendTo(t);this._popup=this._createComponent(e,a.default,this._getPopupOptions()),this._updatePopupVisible()}},{key:"show",value:function(){this.option("isVisible",!0)}},{key:"hide",value:function(){this.option("isVisible",!1)}},{key:"toggle",value:function(){this.option("isVisible",!this.isVisible())}},{key:"repaint",value:function(){this._popup.repaint()}},{key:"_getPopupContent",value:function(){return this._popup.content()}},{key:"_getPopupTitle",value:function(){return(0,i.default)(this._getPopupContent()).parent().find(".dx-popup-title")}},{key:"_getPointerUpElements",value:function(){return[this._getPopupContent(),this._getPopupTitle()]}},{key:"_getVerticalPaddingsAndBorders",value:function(){var t=(0,i.default)(this._getPopupContent());return t.outerHeight()-t.height()}},{key:"_getHorizontalPaddingsAndBorders",value:function(){var t=(0,i.default)(this._getPopupContent());return t.outerWidth()-t.width()}},{key:"_getPopupClass",value:function(){return""}},{key:"_getPopupWidth",value:function(){return this.option("width")||"auto"}},{key:"_getPopupMaxWidth",value:function(){return this.option("maxWidth")}},{key:"_getPopupMinWidth",value:function(){return this.option("minWidth")}},{key:"_getPopupHeight",value:function(){return this.option("height")||"auto"}},{key:"_getPopupMaxHeight",value:function(){return this.option("maxHeight")}},{key:"_getPopupMinHeight",value:function(){return this.option("minHeight")}},{key:"_getPopupPosition",value:function(){return{}}},{key:"_getPopupContainer",value:function(){return this.option("container")}},{key:"_getPopupSlideAnimationObject",value:function(t){return(0,o.extend)({type:"slide",start:function(){(0,i.default)("body").css("overflow","hidden")},complete:function(){(0,i.default)("body").css("overflow","")}},t)}},{key:"_getPopupAnimation",value:function(){return{hide:{type:"fadeOut"},show:{type:"fadeIn"}}}},{key:"_getPopupOptions",value:function(){var t=this,e=this;return{animation:(0,r.hasWindow)()?this._getPopupAnimation():null,shading:!1,showTitle:!1,focusStateEnabled:!1,container:this._getPopupContainer(),width:this._getPopupWidth(),height:this._getPopupHeight(),maxWidth:this._getPopupMaxWidth(),maxHeight:this._getPopupMaxHeight(),minWidth:this._getPopupMinWidth(),minHeight:this._getPopupMinHeight(),position:this._getPopupPosition(),onContentReady:function(){e._renderPopupContent(e._popup.content())},onShowing:function(){t._onVisibilityChangingAction({visible:!0,component:t})},onShown:function(){t.option("isVisible",!0),t._onVisibilityChangedAction({visible:!0,component:t})},onHiding:function(){t._onVisibilityChangingAction({visible:!1,component:t})},onHidden:function(){t.option("isVisible",!1),t._onVisibilityChangedAction({visible:!1,component:t})}}}},{key:"_renderPopupContent",value:function(t){}},{key:"_updatePopupVisible",value:function(){this._popup.option("visible",this.isVisible())}},{key:"_createOnVisibilityChangingAction",value:function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}},{key:"_createOnVisibilityChangedAction",value:function(){this._onVisibilityChangedAction=this._createActionByOption("onVisibilityChanged")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onVisibilityChanged":this._createOnVisibilityChangedAction();break;case"container":this._popup.option("container",this._getPopupContainer());break;case"width":this._popup.option("width",this._getPopupWidth());break;case"height":this._popup.option("height",this._getPopupHeight());break;case"maxWidth":this._popup.option("maxWidth",this._getPopupMaxWidth());break;case"maxHeight":this._popup.option("maxHeight",this._getPopupMaxHeight());break;case"minWidth":this._popup.option("minWidth",this._getPopupMinWidth());break;case"minHeight":this._popup.option("minHeight",this._getPopupMinHeight());break;case"isMobileView":this._invalidate();break;case"isVisible":this._updatePopupVisible();break;default:h(g(u.prototype),"_optionChanged",this).call(this,t)}}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(h(g(u.prototype),"_getDefaultOptions",this).call(this),{isVisible:!0,isMobileView:!1,offsetX:0,offsetY:0})}}])&&d(e.prototype,n),s&&d(e,s),u}(s.default);t.exports=_},function(t,e,n){"use strict";var i=n(3),o=n(62),r=n(8),a=n(0).extend,s=n(10),l=n(47),u=o.inherit({_getDefaultOptions:function(){return a(this.callBase(),{min:0,max:100,value:0})},_initMarkup:function(){this.$element().addClass("dx-trackbar"),this._renderWrapper(),this._renderContainer(),this._renderRange(),this._renderValue(),this._setRangeStyles(),this.callBase()},_render:function(){this.callBase(),this._setRangeStyles(this._rangeStylesConfig())},_renderWrapper:function(){this._$wrapper=i("<div>").addClass("dx-trackbar-wrapper").appendTo(this.$element())},_renderContainer:function(){this._$bar=i("<div>").addClass("dx-trackbar-container").appendTo(this._$wrapper)},_renderRange:function(){this._$range=i("<div>").addClass("dx-trackbar-range").appendTo(this._$bar)},_renderValue:function(){var t=this.option("value"),e=this.option("min"),n=this.option("max");if(!(e>n)){if(t<e)return this.option("value",e),void(this._currentRatio=0);if(t>n)return this.option("value",n),void(this._currentRatio=1);var i=e===n?0:(t-e)/(n-e);!this._needPreventAnimation&&this._setRangeStyles({width:100*i+"%"}),this.setAria({valuemin:this.option("min"),valuemax:n,valuenow:t}),this._currentRatio=i}},_rangeStylesConfig:function(){return{width:100*this._currentRatio+"%"}},_setRangeStyles:function(t){l.stop(this._$range),t?!this._needPreventAnimation&&s.hasWindow()&&l.animate(this._$range,{type:"custom",duration:100,to:t}):this._$range.css({width:0})},_optionChanged:function(t){switch(t.name){case"value":this._renderValue(),this.callBase(t);break;case"max":case"min":this._renderValue();break;default:this.callBase(t)}},_dispose:function(){l.stop(this._$range),this.callBase()}});r("dxTrackBar",u),t.exports=u},function(t,e,n){"use strict";var i=r(n(189)),o=r(n(99));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(r,t);var e,n,i,o=u(r);function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=o.call(this))._diagramWidget=t,e._resetCache(),e}return e=r,(n=[{key:"_dataSourceChangedHandler",value:function(t,e){this._resetCache(),this._items=t,this._diagramWidget._onDataSourceChanged()}},{key:"_dataSourceLoadingChangedHandler",value:function(t){t&&!this._dataSource.isLoaded()?this._diagramWidget._showLoadingIndicator():this._diagramWidget._hideLoadingIndicator()}},{key:"insert",value:function(t,e,n){var i=this;this._resetCache(),this._getStore().insert(t).done((function(t){e&&e(t),i._resetCache()})).fail((function(t){n&&n(t),i._resetCache()}))}},{key:"update",value:function(t,e,n,i){var o=this._getStoreKey(e);this._getStore().update(o,e).done((function(t,e){n&&n(e,t)})).fail((function(t){i&&i(t)}))}},{key:"remove",value:function(t,e,n,i){var o=this;this._resetCache();var r=this._getStoreKey(e);this._getStore().remove(r).done((function(t){n&&n(t,e),o._resetCache()})).fail((function(t){i&&i(t),o._resetCache()}))}},{key:"findItem",value:function(t){return this._items?this._getItemByKey(t):null}},{key:"getItems",value:function(){return this._items}},{key:"hasItems",value:function(){return!!this._items}},{key:"_getItemByKey",value:function(t){this._ensureCache();var e=this._cache,n=this._getIndexByKey(t);return e.items[n]}},{key:"_getIndexByKey",value:function(t){this._ensureCache();var e=this._cache;if("object"!==a(t)){var n=e.keySet||e.keys.reduce((function(t,e,n){return t[e]=n,t}),{});return e.keySet||(e.keySet=n),n[t]}for(var i=0,o=e.keys.length;i<o;i++)if(e.keys[i]===t)return i;return-1}},{key:"_ensureCache",value:function(){var t=this._cache;t.keys||(t.keys=[],t.items=[],this._fillCache(t,this._items))}},{key:"_fillCache",value:function(t,e){var n=this;if(e&&e.length){var i=this._getKeyExpr();i&&e.forEach((function(e){t.keys.push(i(e)),t.items.push(e)}));var o=this._getItemsExpr();o&&e.forEach((function(e){return n._fillCache(t,o(e))}));var r=this._getContainerChildrenExpr();r&&e.forEach((function(e){return n._fillCache(t,r(e))}))}}},{key:"_getKeyExpr",value:function(){throw"Not Implemented"}},{key:"_getItemsExpr",value:function(){}},{key:"_getContainerChildrenExpr",value:function(){}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_getStore",value:function(){return this._dataSource.store()}},{key:"_getStoreKey",value:function(t){return this._getStore().keyOf(t)}},{key:"_resetCache",value:function(){this._cache={}}}])&&s(e.prototype,n),i&&s(e,i),r}(i.default);h.include(o.default),t.exports=h},function(t,e,n){"use strict";var i=C(n(3)),o=C(n(20)),r=n(132),a=C(n(8)),s=C(n(284)),l=C(n(48)),u=C(n(108)),c=n(29),d=C(n(10)),h=C(n(17)),f=n(70),p=C(n(99)),m=n(92),g=C(n(107)),_=n(7),v=n(0),y=n(2),b=n(4),w=C(n(45)),x=n(12);function C(t){return t&&t.__esModule?t:{default:t}}var S=o.default.inherit({_getDefaultOptions:function(){return(0,v.extend)(this.callBase(),{itemTemplate:"item",keyExpr:"this",displayExpr:"this",selectedItem:null,selectedItemKey:null,stylingMode:"outlined",deferRendering:!0,noDataText:(0,x.format)("dxCollectionWidget-noDataText"),useSelectMode:!1,splitButton:!1,showArrowIcon:!0,text:"",icon:void 0,onButtonClick:null,onSelectionChanged:null,onItemClick:null,opened:!1,items:null,dataSource:null,focusStateEnabled:!0,hoverStateEnabled:!0,dropDownOptions:{},dropDownContentTemplate:"content",wrapItemText:!1,grouped:!1,groupTemplate:"group",buttonGroupOptions:{}})},_setOptionsByReference:function(){this.callBase(),(0,v.extend)(this._optionsByReference,{selectedItem:!0})},_init:function(){this.callBase(),this._createItemClickAction(),this._createActionClickAction(),this._createSelectionChangedAction(),this._initDataSource(),this._compileKeyGetter(),this._compileDisplayGetter(),this._itemsToDataSource(),this._options.cache("buttonGroupOptions",this.option("buttonGroupOptions")),this._options.cache("dropDownOptions",this.option("dropDownOptions"))},_initTemplates:function(){var t=this;this._templateManager.addDefaultTemplates({content:new r.FunctionTemplate((function(e){var n=(0,i.default)(e.container),o=(0,i.default)("<div>").appendTo(n);t._list=t._createComponent(o,u.default,t._listOptions()),t._list.registerKeyHandler("escape",t._escHandler.bind(t)),t._list.registerKeyHandler("tab",t._escHandler.bind(t)),t._list.registerKeyHandler("leftArrow",t._escHandler.bind(t)),t._list.registerKeyHandler("rightArrow",t._escHandler.bind(t))}))}),this.callBase()},_itemsToDataSource:function(){this._dataSource||(this._dataSource=new m.DataSource({store:new g.default(this.option("items")),pageSize:0}))},_getKey:function(){var t,e=this.option("keyExpr"),n=null===(t=this._dataSource)||void 0===t?void 0:t.key();return!(0,y.isDefined)(n)||(0,y.isDefined)(e)&&"this"!==e?e:n},_compileKeyGetter:function(){this._keyGetter=(0,c.compileGetter)(this._getKey())},_compileDisplayGetter:function(){this._displayGetter=(0,c.compileGetter)(this.option("displayExpr"))},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-dropdownbutton"),this._renderButtonGroup(),this._updateArrowClass(),this._loadSelectedItem().done(this._updateActionButton.bind(this))},_render:function(){this.option("deferRendering")&&!this.option("opened")||this._renderPopup(),this.callBase()},_renderContentImpl:function(){return this._popup&&this._renderPopupContent(),this.callBase()},_loadSelectedItem:function(){var t=new _.Deferred;if(this._list){var e=this.option("useSelectMode")?this._list.option("selectedItem"):this._lastSelectedItemData;return t.resolve(e)}this._lastSelectedItemData=void 0;var n=this.option("selectedItemKey");return this._loadSingle(this._getKey(),n).done(t.resolve).fail((function(){t.resolve(null)})),t.promise()},_createActionClickAction:function(){this._actionClickAction=this._createActionByOption("onButtonClick")},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_createItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_fireSelectionChangedAction:function(t){var e=t.previousValue,n=t.value;this._selectionChangedAction({item:n,previousItem:e})},_fireItemClickAction:function(t){var e=t.event,n=t.itemElement,i=t.itemData;return this._itemClickAction({event:e,itemElement:n,itemData:this._actionItem||i})},_actionButtonConfig:function(){return{text:this.option("text"),icon:this.option("icon"),elementAttr:{class:"dx-dropdownbutton-action"}}},_getButtonGroupItems:function(){var t=[];return t.push(this._actionButtonConfig()),this.option("splitButton")&&t.push({icon:"spindown",elementAttr:{class:"dx-dropdownbutton-toggle"}}),t},_buttonGroupItemClick:function(t){var e=t.event,n=t.itemData,i="dx-dropdownbutton-action"===n.elementAttr.class;"dx-dropdownbutton-toggle"===n.elementAttr.class?this.toggle():i&&(this._actionClickAction({event:e,selectedItem:this.option("selectedItem")}),this.option("splitButton")||this.toggle())},_buttonGroupOptions:function(){var t=this;return(0,v.extend)({items:this._getButtonGroupItems(),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),onItemClick:this._buttonGroupItemClick.bind(this),width:"100%",height:"100%",stylingMode:this.option("stylingMode"),selectionMode:"none",buttonTemplate:function(e,n){var o=e.text,r=e.icon;if(t.option("splitButton")||!t.option("showArrowIcon"))return"content";var a=(0,f.getImageContainer)(r),s=o?(0,i.default)("<span>").text(o).addClass("dx-button-text"):void 0,l=(0,f.getImageContainer)("spindown").addClass("dx-icon-right");(0,i.default)(n).append(a,s,l)}},this._options.cache("buttonGroupOptions"))},_renderPopupContent:function(){var t=this._popup.$content(),e=this._getTemplateByOption("dropDownContentTemplate");return t.empty(),this._popupContentId="dx-"+new w.default,this.setAria("id",this._popupContentId,t),e.render({container:h.default.getPublicElement(t),model:this.option("items")||this._dataSource})},_popupOptions:function(){var t=this,e=this.option("rtlEnabled")?"right":"left";return(0,v.extend)({dragEnabled:!1,focusStateEnabled:!1,deferRendering:this.option("deferRendering"),minWidth:function(){if(d.default.hasWindow())return t.$element().outerWidth()},closeOnOutsideClick:function(e){var n=t.$element();return!(0,i.default)(e.target).closest(".".concat("dx-dropdownbutton")).is(n)},showTitle:!1,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},width:"auto",height:"auto",shading:!1,position:{of:this.$element(),collision:"flipfit",my:"top "+e,at:"bottom "+e}},this._options.cache("dropDownOptions"),{visible:this.option("opened")})},_listOptions:function(){var t=this,e=this.option("selectedItemKey"),n=this.option("useSelectMode");return{selectionMode:n?"single":"none",wrapItemText:this.option("wrapItemText"),focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),showItemDataTitle:!0,onContentReady:function(){return t._fireContentReadyAction()},selectedItemKeys:e&&n?[e]:[],grouped:this.option("grouped"),groupTemplate:this.option("groupTemplate"),keyExpr:this._getKey(),noDataText:this.option("noDataText"),displayExpr:this.option("displayExpr"),itemTemplate:this.option("itemTemplate"),items:this.option("items"),dataSource:this._dataSource,onItemClick:function(e){t.option("useSelectMode")||(t._lastSelectedItemData=e.itemData),t.option("selectedItemKey",t._keyGetter(e.itemData)),!1!==t._fireItemClickAction(e)&&(t.toggle(!1),t._buttonGroup.focus())}}},_upDownKeyHandler:function(){this._popup&&this._popup.option("visible")&&this._list?this._list.focus():this.open()},_escHandler:function(){this.close(),this._buttonGroup.focus()},_renderPopup:function(){var t=(0,i.default)("<div>");this.$element().append(t),this._popup=this._createComponent(t,l.default,this._popupOptions()),this._popup.$content().addClass("dx-dropdownbutton-content"),this._popup._wrapper().addClass("dx-dropdownbutton-popup-wrapper"),this._popup.on("hiding",this._popupHidingHandler.bind(this)),this._popup.on("showing",this._popupShowingHandler.bind(this)),this._bindInnerWidgetOptions(this._popup,"dropDownOptions")},_popupHidingHandler:function(){this.option("opened",!1),this.setAria({expanded:!1,owns:void 0})},_popupShowingHandler:function(){this.option("opened",!0),this.setAria({expanded:!0,owns:this._popupContentId})},_renderButtonGroup:function(){var t=this._buttonGroup&&this._buttonGroup.$element()||(0,i.default)("<div>");this._buttonGroup||this.$element().append(t),this._buttonGroup=this._createComponent(t,s.default,this._buttonGroupOptions()),this._buttonGroup.registerKeyHandler("downArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("tab",this.close.bind(this)),this._buttonGroup.registerKeyHandler("upArrow",this._upDownKeyHandler.bind(this)),this._buttonGroup.registerKeyHandler("escape",this._escHandler.bind(this)),this._bindInnerWidgetOptions(this._buttonGroup,"buttonGroupOptions")},_updateArrowClass:function(){var t=this.option("splitButton")||this.option("showArrowIcon");this.$element().toggleClass("dx-dropdownbutton-has-arrow",t)},toggle:function(t){return this._popup||(this._renderPopup(),this._renderContent()),this._popup.toggle(t)},open:function(){return this.toggle(!0)},close:function(){return this.toggle(!1)},_setListOption:function(t,e){this._list&&this._list.option(t,e)},_getDisplayValue:function(t){var e=!(0,y.isPlainObject)(t)?t:this._displayGetter(t);return(0,y.isPlainObject)(e)?"":String((0,b.ensureDefined)(e,""))},_updateActionButton:function(t){this.option("useSelectMode")&&this.option({text:this._getDisplayValue(t),icon:(0,y.isPlainObject)(t)?t.icon:void 0}),this._setOptionWithoutOptionChange("selectedItem",t),this._setOptionWithoutOptionChange("selectedItemKey",this._keyGetter(t))},_clean:function(){this._list&&this._list.$element().remove(),this._popup&&this._popup.$element().remove()},_selectedItemKeyChanged:function(t){var e=this;this._setListOption("selectedItemKeys",this.option("useSelectMode")&&(0,y.isDefined)(t)?[t]:[]);var n=this.option("selectedItem");this._loadSelectedItem().done((function(t){e._updateActionButton(t),e._displayGetter(n)!==e._displayGetter(t)&&e._fireSelectionChangedAction({previousValue:n,value:t})}))},_actionButtonOptionChanged:function(t){var e=t.name,n=t.value,i={};i[e]=n,this._buttonGroup.option("items[0]",(0,v.extend)({},this._actionButtonConfig(),i)),this._popup&&this._popup.repaint()},_selectModeChanged:function(t){if(t){this._setListOption("selectionMode","single");var e=this.option("selectedItemKey");this._setListOption("selectedItemKeys",e?[e]:[])}else this._setListOption("selectionMode","none"),this.option({selectedItemKey:void 0,selectedItem:void 0})},_updateItemCollection:function(t){this._setWidgetOption("_list",[t]),this._setListOption("selectedItemKeys",[]),this._loadSelectedItem().done(this._updateActionButton.bind(this))},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"useSelectMode":this._selectModeChanged(n);break;case"splitButton":this._updateArrowClass(),this._renderButtonGroup();break;case"displayExpr":this._compileDisplayGetter(),this._setListOption(e,n),this._updateActionButton(this.option("selectedItem"));break;case"keyExpr":this._compileKeyGetter(),this._setListOption(e,n);break;case"buttonGroupOptions":this._innerWidgetOptionChanged(this._buttonGroup,t);break;case"dropDownOptions":if("dropDownOptions.visible"===t.fullName)break;void 0!==t.value.visible&&delete t.value.visible,this._innerWidgetOptionChanged(this._popup,t);break;case"opened":this.toggle(n);break;case"focusStateEnabled":case"hoverStateEnabled":this._setListOption(e,n),this._buttonGroup.option(e,n),this.callBase(t);break;case"items":this._dataSource=null,this._itemsToDataSource(),this._updateItemCollection(e);break;case"dataSource":this._initDataSource(),this._updateItemCollection(e);break;case"icon":case"text":this._actionButtonOptionChanged(t);break;case"showArrowIcon":this._updateArrowClass(),this._buttonGroup.repaint(),this._popup&&this._popup.repaint();break;case"width":case"height":this.callBase(t),this._popup&&this._popup.repaint();break;case"stylingMode":this._buttonGroup.option(e,n);break;case"itemTemplate":case"grouped":case"noDataText":case"groupTemplate":case"wrapItemText":this._setListOption(e,n);break;case"dropDownContentTemplate":this._renderContent();break;case"selectedItemKey":this._selectedItemKeyChanged(n);break;case"selectedItem":break;case"onItemClick":this._createItemClickAction();break;case"onButtonClick":this._createActionClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"deferRendering":this.toggle(this.option("opened"));break;default:this.callBase(t)}}}).include(p.default);(0,a.default)("dxDropDownButton",S),t.exports=S,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(15),a=n(6),s=n(77).add,l=n(4),u=n(2),c=n(0).extend,d=n(16).inArray,h=n(28),f=n(8),p=n(80),m=n(36),g=["info","warning","error","success"],_=[],v=null,y={top:{my:"top",at:"top",of:null,offset:"0 0"},bottom:{my:"bottom",at:"bottom",of:null,offset:"0 -20"},center:{my:"center",at:"center",of:null,offset:"0 0"},right:{my:"center right",at:"center right",of:null,offset:"0 0"},left:{my:"center left",at:"center left",of:null,offset:"0 0"}};s((function(){a.subscribeGlobal(r.getDocument(),h.down,(function(t){for(var e=_.length-1;e>=0;e--)if(!_[e]._proxiedDocumentDownHandler(t))return}))}));var b=p.inherit({_getDefaultOptions:function(){return c(this.callBase(),{message:"",type:"info",displayTime:2e3,position:"bottom center",animation:{show:{type:"fade",duration:400,from:0,to:1},hide:{type:"fade",duration:400,to:0}},shading:!1,height:"auto",hideTopOverlayHandler:null,closeOnSwipe:!0,closeOnClick:!1,resizeEnabled:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{closeOnOutsideClick:!0,width:"auto",position:{at:"bottom left",my:"bottom left",offset:"20 -20"},animation:{show:{type:"slide",duration:200,from:{position:{my:"top",at:"bottom",of:o}}},hide:{type:"slide",duration:200,to:{position:{my:"top",at:"bottom",of:o}}}}}},{device:function(t){var e="phone"===t.deviceType,n="android"===t.platform;return e&&n},options:{width:function(){return i(o).width()},position:{at:"bottom center",my:"bottom center",offset:"0 0"}}},{device:function(){return m.isMaterial()},options:{minWidth:344,maxWidth:568,displayTime:4e3}}])},_init:function(){this.callBase(),this._posStringToObject()},_renderContentImpl:function(){this.option("message")&&(this._message=i("<div>").addClass("dx-toast-message").text(this.option("message")).appendTo(this.$content())),this.setAria("role","alert",this._message),d(this.option("type").toLowerCase(),g)>-1&&this.$content().prepend(i("<div>").addClass("dx-toast-icon")),this.callBase()},_render:function(){this.callBase(),this.$element().addClass("dx-toast"),this._wrapper().addClass("dx-toast-wrapper"),this._$content.addClass("dx-toast-"+String(this.option("type")).toLowerCase()),this.$content().addClass("dx-toast-content"),this._toggleCloseEvents("Swipe"),this._toggleCloseEvents("Click")},_renderScrollTerminator:l.noop,_toggleCloseEvents:function(t){var e="dx"+t.toLowerCase();a.off(this._$content,e),this.option("closeOn"+t)&&a.on(this._$content,e,this.hide.bind(this))},_posStringToObject:function(){if(u.isString(this.option("position"))){var t=this.option("position").split(" ")[0],e=this.option("position").split(" ")[1];switch(this.option("position",c({},y[t])),e){case"center":case"left":case"right":this.option("position").at+=" "+e,this.option("position").my+=" "+e}}},_show:function(){return v&&v!==this&&(clearTimeout(v._hideTimeout),v.hide()),v=this,this.callBase.apply(this,arguments).done(function(){clearTimeout(this._hideTimeout),this._hideTimeout=setTimeout(this.hide.bind(this),this.option("displayTime"))}.bind(this))},_hide:function(){return v=null,this.callBase.apply(this,arguments)},_overlayStack:function(){return _},_zIndexInitValue:function(){return this.callBase()+8e3},_dispose:function(){clearTimeout(this._hideTimeout),v=null,this.callBase()},_optionChanged:function(t){switch(t.name){case"type":this._$content.removeClass("dx-toast-"+t.previousValue),this._$content.addClass("dx-toast-"+String(t.value).toLowerCase());break;case"message":this._message&&this._message.text(t.value);break;case"closeOnSwipe":this._toggleCloseEvents("Swipe");break;case"closeOnClick":this._toggleCloseEvents("Click");break;case"displayTime":case"position":break;default:this.callBase(t)}}});f("dxToast",b),t.exports=b,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(2),o=n(301);function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var u=function(){function t(){s(this,t);var e=(0,i.isString)(arguments[0])?this._publicCtor:this._internalCtor;e.apply(this,arguments)}var e,n,a;return e=t,(n=[{key:"_internalCtor",value:function(t,e,n){this.name=e||"",this.pathInfo=t&&r(t)||[],this.parentPath=this._getPathByPathInfo(this.pathInfo),this.relativeName=(0,o.pathCombine)(this.parentPath,e),this.key=this._getPathByPathInfo(this.getFullPathInfo(),!0),this.path=(0,o.pathCombine)(this.parentPath,e),this.pathKeys=this.pathInfo.map((function(t){return t.key})),this.isRoot()||this.pathKeys.push(this.key),this._initialize(n)}},{key:"_publicCtor",value:function(t,e,n){this.path=t||"",this.pathKeys=n||[];for(var i=[],r=(0,o.getPathParts)(t,!0),a=0;a<r.length-1;a++){var s=r[a],l={key:this.pathKeys[a]||s,name:(0,o.getName)(s)};i.push(l)}this.pathInfo=i,this.relativeName=t,this.name=(0,o.getName)(t),this.key=this.pathKeys.length?this.pathKeys[this.pathKeys.length-1]:t,this.parentPath=r.length>1?r[r.length-2]:"",this._initialize(e)}},{key:"_initialize",value:function(t){this.isDirectory=!!t,this.size=0,this.dateModified=new Date,this.thumbnail="",this.tooltipText=""}},{key:"getFullPathInfo",value:function(){var t=r(this.pathInfo);return this.isRoot()||t.push({key:this.key,name:this.name}),t}},{key:"isRoot",value:function(){return""===this.path}},{key:"getFileExtension",value:function(){return this.isDirectory?"":(0,o.getFileExtension)(this.name)}},{key:"equals",value:function(t){return t&&this.key===t.key}},{key:"createClone",value:function(){var e=new t(this.pathInfo,this.name,this.isDirectory);return e.key=this.key,e.size=this.size,e.dateModified=this.dateModified,e.thumbnail=this.thumbnail,e.tooltipText=this.tooltipText,e.hasSubDirectories=this.hasSubDirectories,e.dataItem=this.dataItem,e}},{key:"_getPathByPathInfo",value:function(t,e){return t.map((function(t){return e?(0,o.getEscapedFileName)(t.name):t.name})).join(o.PATH_SEPARATOR)}}])&&l(e.prototype,n),a&&l(e,a),t}();t.exports=u,t.exports.default=t.exports},function(t,e,n){"use strict";var i=h(n(3)),o=h(n(6)),r=n(0),a=n(70),s=n(4),l=h(n(20)),u=h(n(435)),c=h(n(483)),d=n(7);function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e,n){return(g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(f,t);var e,n,l,h=v(f);function f(){return p(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_initMarkup",value:function(){var t=this;this._getCurrentDirectory=this.option("getCurrentDirectory"),this._createFileActionsButton=s.noop,this._storeExpandedState=this.option("storeExpandedState")||!1;var e=(0,i.default)("<div>").addClass("dx-filemanager-dirs-tree").appendTo(this.$element()),n={dataStructure:"plain",rootValue:"",createChildren:this._onFilesTreeViewCreateSubDirectories.bind(this),itemTemplate:this._createFilesTreeViewItemTemplate.bind(this),keyExpr:"getInternalKey",parentIdExpr:"parentDirectory.getInternalKey",displayExpr:function(t){return t.getDisplayName()},hasItemsExpr:"fileItem.hasSubDirectories",onItemClick:this._createActionByOption("onDirectoryClick"),onItemExpanded:function(e){return t._onFilesTreeViewItemExpanded(e)},onItemCollapsed:function(e){return t._onFilesTreeViewItemCollapsed(e)},onItemRendered:function(e){return t._onFilesTreeViewItemRendered(e)}};this._contextMenu&&(this._contextMenu.option("onContextMenuHidden",(function(){return t._onContextMenuHidden()})),n.onItemContextMenu=function(e){return t._onFilesTreeViewItemContextMenu(e)},this._createFileActionsButton=function(e,n){return t._createComponent(e,c.default,n)}),this._filesTreeView=this._createComponent(e,u.default,n),o.default.on(e,"click",this._createActionByOption("onClick"))}},{key:"_render",value:function(){g(b(f.prototype),"_render",this).call(this);var t=this;setTimeout((function(){t._updateFocusedElement()}))}},{key:"_onFilesTreeViewCreateSubDirectories",value:function(t){var e=this.option("getDirectories"),n=t&&t.itemData||null;return e&&e(n,!0)}},{key:"_onFilesTreeViewItemRendered",value:function(t){var e=t.itemData,n=this._getCurrentDirectory();n&&n.fileItem.equals(e.fileItem)&&this._updateFocusedElement()}},{key:"_onFilesTreeViewItemExpanded",value:function(t){var e=t.itemData,n=t.node;this._storeExpandedState&&(e.expanded=!0),n.expandedDeferred&&(n.expandedDeferred.resolve(),delete n.expandedDeferred)}},{key:"_onFilesTreeViewItemCollapsed",value:function(t){var e=t.itemData;this._storeExpandedState&&(e.expanded=!1)}},{key:"_createFilesTreeViewItemTemplate",value:function(t,e,n){var o=this,r=(0,i.default)(n);r.closest(this._filesTreeViewItemSelector).data("item",t);var s=(0,a.getImageContainer)(t.icon),l=(0,i.default)("<span>").text(t.getDisplayName()).addClass("dx-filemanager-dirs-tree-item-text"),u=(0,i.default)("<div>");r.append(s,l,u),this._createFileActionsButton(u,{onClick:function(t){return o._onFileItemActionButtonClick(t)}})}},{key:"_onFilesTreeViewItemContextMenu",value:function(t){var e=t.itemElement,n=t.event;n.preventDefault();var o=(0,i.default)(e).data("item");this._contextMenu.showAt([o],e,n)}},{key:"_onFileItemActionButtonClick",value:function(t){var e=t.component,n=t.element;t.event.stopPropagation();var i=e.$element().closest(this._filesTreeViewItemSelector).data("item");this._contextMenu.showAt([i],n),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_updateFocusedElement",value:function(){var t=this._getCurrentDirectory(),e=this._getItemElementByKey(t.getInternalKey());this._$focusedElement&&this._$focusedElement.toggleClass("dx-filemanager-focused-item",!1),this._$focusedElement=e||(0,i.default)(),this._$focusedElement.toggleClass("dx-filemanager-focused-item",!0)}},{key:"_getItemElementByKey",value:function(t){var e=this._filesTreeView&&this._filesTreeView._dataAdapter.getNodeByKey(t);if(e){var n=this._filesTreeView._getNodeElement(e);if(n)return n.children(this._filesTreeViewItemSelector)}return null}},{key:"_getDefaultOptions",value:function(){return(0,r.extend)(g(b(f.prototype),"_getDefaultOptions",this).call(this),{storeExpandedState:!1,initialFolder:null,contextMenu:null,getItems:null,getCurrentDirectory:null,onDirectoryClick:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"storeExpandedState":this._storeExpandedState=this.option(e);break;case"getItems":case"rootFolderDisplayName":case"initialFolder":case"contextMenu":this.repaint();break;case"getCurrentDirectory":this.getCurrentDirectory=this.option(e);break;case"onDirectoryClick":this._filesTreeView.option("onItemClick",this._createActionByOption("onDirectoryClick"));break;default:g(b(f.prototype),"_optionChanged",this).call(this,t)}}},{key:"expandDirectory",value:function(t){var e=new d.Deferred;if(!t||0===t.items.length)return e.reject().promise();var n=this._filesTreeView._dataAdapter.getNodeByKey(t.getInternalKey());return n?n.expanded?e.resolve().promise():(n.expandedDeferred=e,this._filesTreeView.expandItem(t.getInternalKey()),e.promise()):e.reject().promise()}},{key:"refresh",value:function(){this._$focusedElement=null,this._filesTreeView.option("dataSource",[])}},{key:"updateCurrentDirectory",value:function(){this._updateFocusedElement(),this._storeExpandedState&&this._updateExpandedStateToCurrentDirectory()}},{key:"_updateExpandedStateToCurrentDirectory",value:function(){for(var t=[],e=this._getCurrentDirectory();e;e=e.parentDirectory)t.unshift(e);this.expandDirectoryLineRecursive(t)}},{key:"expandDirectoryLineRecursive",value:function(t){var e=this;return t.length?this.expandDirectory(t.shift()).then((function(){return e.expandDirectoryLineRecursive(t)})):(new d.Deferred).resolve().promise()}},{key:"_filesTreeViewItemSelector",get:function(){return".".concat("dx-treeview-item")}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}])&&m(e.prototype,n),l&&m(e,l),f}(l.default);t.exports=w},function(t,e,n){"use strict";var i=s(n(3)),o=n(0),r=s(n(20)),a=s(n(42));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,r,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_initMarkup",value:function(){var t=this;this._createClickAction();var e=(0,i.default)("<div>");this.$element().append(e).addClass("dx-filemanager-file-actions-button"),this._button=this._createComponent(e,a.default,{icon:"overflow",stylingMode:"text",onClick:function(e){return t._raiseClick(e)}}),d(m(l.prototype),"_initMarkup",this).call(this)}},{key:"_createClickAction",value:function(){this._clickAction=this._createActionByOption("onClick")}},{key:"_raiseClick",value:function(t){this._clickAction(t)}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(d(m(l.prototype),"_getDefaultOptions",this).call(this),{cssClass:"",onClick:null})}},{key:"_optionChanged",value:function(t){switch(t.name){case"cssClass":this.repaint();break;case"onClick":this._createClickAction();break;default:d(m(l.prototype),"_optionChanged",this).call(this,t)}}},{key:"setActive",value:function(t){var e=this;this.$element().toggleClass("dx-filemanager-file-actions-button-activated",t),setTimeout((function(){return e._button.$element().toggleClass("dx-state-active",t)}))}}])&&c(e.prototype,n),r&&c(e,r),l}(r.default);t.exports=g},function(t,e,n){"use strict";var i=n(0),o=n(7),r=n(199),a=n(11),s=h(n(6)),l=n(70),u=h(n(18)),c=h(n(191)),d=h(n(20));function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function v(t,e,n){return(v="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(f,t);var e,n,d,h=b(f);function f(){return g(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_init",value:function(){this._initActions(),this._lockFocusedItemProcessing=!1,this._focusedItemKey=this.option("focusedItemKey"),v(x(f.prototype),"_init",this).call(this)}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-filemanager-files-view");var t=(0,a.addNamespace)(r.name,"dxFileManager_open");s.default.on(this.$element(),t,this._getItemSelector(),this._onItemDblClick.bind(this)),v(x(f.prototype),"_initMarkup",this).call(this)}},{key:"_initActions",value:function(){this._actions={onError:this._createActionByOption("onError"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onSelectedItemOpened:this._createActionByOption("onSelectedItemOpened")}}},{key:"_getDefaultOptions",value:function(){return(0,i.extend)(v(x(f.prototype),"_getDefaultOptions",this).call(this),{selectionMode:"single",selectedItemKeys:[],focusedItemKey:void 0,contextMenu:null,getItems:null,getItemThumbnail:null,onError:null,onSelectionChanged:null,onFocusedItemChanged:null,onSelectedItemOpened:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"selectionMode":case"contextMenu":case"getItems":case"getItemThumbnail":this.repaint();break;case"selectedItemKeys":this._setSelectedItemKeys(t.value);break;case"focusedItemKey":this._lockFocusedItemProcessing||this._setFocusedItemKey(t.value);break;case"onError":case"onSelectedItemOpened":case"onSelectionChanged":case"onFocusedItemChanged":this._actions[e]=this._createActionByOption(e);break;default:v(x(f.prototype),"_optionChanged",this).call(this,t)}}},{key:"_getItems",value:function(){var t=this;return this._getItemsInternal().done((function(e){t._itemCount=e.length;var n=t._findParentDirectoryItem(e);t._hasParentDirectoryItem=!!n,t._parentDirectoryItemKey=n?n.fileItem.key:null}))}},{key:"_getItemsInternal",value:function(){var t=this.option("getItems"),e=t?t():[];return(0,o.when)(e)}},{key:"_raiseOnError",value:function(t){this._actions.onError({error:t})}},{key:"_raiseSelectionChanged",value:function(t){this._actions.onSelectionChanged(t)}},{key:"_raiseFocusedItemChanged",value:function(t){this._actions.onFocusedItemChanged(t)}},{key:"_raiseSelectedItemOpened",value:function(t){this._actions.onSelectedItemOpened({fileItemInfo:t})}},{key:"_tryRaiseSelectionChanged",value:function(t){var e=this,n=t.selectedItemInfos,i=t.selectedItems,o=t.selectedItemKeys,r=t.currentSelectedItemKeys,a=t.currentDeselectedItemKeys,s=this._findParentDirectoryItem(this.getSelectedItems());s&&this._deselectItem(s);var l=!this._hasParentDirectoryItem;(l=l||this._hasValidKeys(r)||this._hasValidKeys(a))&&(n=this._filterOutItemByPredicate(n,(function(t){return t.fileItem.key===e._parentDirectoryItemKey})),i=this._filterOutParentDirectory(i),o=this._filterOutParentDirectoryKey(o,!0),r=this._filterOutParentDirectoryKey(r,!0),a=this._filterOutParentDirectoryKey(a,!0),this._raiseSelectionChanged({selectedItemInfos:n,selectedItems:i,selectedItemKeys:o,currentSelectedItemKeys:r,currentDeselectedItemKeys:a}))}},{key:"_onFocusedItemChanged",value:function(t){this._focusedItemKey!==t.itemKey&&(this._focusedItemKey=t.itemKey,this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}},{key:"_getItemThumbnail",value:function(t){var e=this.option("getItemThumbnail");return e?e(t):{thumbnail:""}}},{key:"_getItemThumbnailContainer",value:function(t){var e=this._getItemThumbnail(t),n=e.thumbnail,i=e.cssClass,o=(0,l.getImageContainer)(n).addClass(this._getItemThumbnailCssClass());return i&&o.addClass(i),o}},{key:"_getItemThumbnailCssClass",value:function(){return""}},{key:"_getItemSelector",value:function(){}},{key:"_onItemDblClick",value:function(t){}},{key:"_isDesktop",value:function(){return"desktop"===u.default.real().deviceType}},{key:"_showContextMenu",value:function(t,e,n){this._contextMenu.showAt(t,e,n)}},{key:"_findParentDirectoryItem",value:function(t){for(var e=0;e<t.length;e++){var n=t[e];if(this._isParentDirectoryItem(n))return n}return null}},{key:"_getFileItemsForContextMenu",value:function(t){var e=this.getSelectedItems();return this._isParentDirectoryItem(t)&&e.push(t),e}},{key:"_isParentDirectoryItem",value:function(t){return t.fileItem.isParentFolder}},{key:"_hasValidKeys",value:function(t){return t.length>1||1===t.length&&t[0]!==this._parentDirectoryItemKey}},{key:"_filterOutParentDirectory",value:function(t,e){var n=this;return this._filterOutItemByPredicate(t,(function(t){return t.key===n._parentDirectoryItemKey}),e)}},{key:"_filterOutParentDirectoryKey",value:function(t,e){var n=this;return this._filterOutItemByPredicate(t,(function(t){return t===n._parentDirectoryItemKey}),e)}},{key:"_filterOutItemByPredicate",value:function(t,e,n){for(var i=t,o=-1,r=0;r<t.length;r++)if(e(t[r])){o=r;break}return-1!==o&&(n&&(i=p(t)),i.splice(o,1)),i}},{key:"_isMultipleSelectionMode",value:function(){return"multiple"===this.option("selectionMode")}},{key:"_deselectItem",value:function(t){}},{key:"_setSelectedItemKeys",value:function(t){}},{key:"_setFocusedItemKey",value:function(t){}},{key:"_createDataSource",value:function(){return{store:new c.default({key:"fileItem.key",load:this._getItems.bind(this)})}}},{key:"getSelectedItems",value:function(){}},{key:"clearSelection",value:function(){}},{key:"selectItem",value:function(){}},{key:"_contextMenu",get:function(){return this.option("contextMenu")}}])&&_(e.prototype,n),d&&_(e,d),f}(d.default);t.exports=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(n(3)),o=c(n(20)),r=c(n(15)),a=c(n(6)),s=c(n(28)),l=n(11),u=n(2);function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return(p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y="".concat("dx-splitter","-wrapper"),b="".concat("dx-splitter","-inactive"),w="".concat("dx-splitter","-border"),x="".concat("dx-splitter","-initial"),C=(0,l.addNamespace)(s.default.down,"dxSplitterResizing"),S=(0,l.addNamespace)(s.default.move,"dxSplitterResizing"),k=(0,l.addNamespace)(s.default.up,"dxSplitterResizing"),I=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(l,t);var e,n,o,s=g(l);function l(){return h(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_initMarkup",value:function(){this._$container=this.option("container"),this._$leftElement=this.option("leftElement"),this._$rightElement=this.option("rightElement"),this._onApplyPanelSize=this._createActionByOption("onApplyPanelSize"),this.$element().addClass(y).addClass(x),this._$splitterBorder=(0,i.default)("<div>").addClass(w).appendTo(this.$element()),this._$splitter=(0,i.default)("<div>").addClass("dx-splitter").addClass(b).appendTo(this._$splitterBorder)}},{key:"_render",value:function(){p(v(l.prototype),"_render",this).call(this),this._detachEventHandlers(),this._attachEventHandlers()}},{key:"_clean",value:function(){this._detachEventHandlers(),p(v(l.prototype),"_clean",this).call(this)}},{key:"_attachEventHandlers",value:function(){var t=r.default.getDocument();a.default.on(this._$splitterBorder,C,this._onMouseDownHandler.bind(this)),a.default.on(t,S,this._onMouseMoveHandler.bind(this)),a.default.on(t,k,this._onMouseUpHandler.bind(this))}},{key:"_detachEventHandlers",value:function(){var t=r.default.getDocument();a.default.off(this._$splitterBorder,C),a.default.off(t,S),a.default.off(t,k)}},{key:"_dimensionChanged",value:function(){if(void 0===this._leftPanelPercentageWidth){var t=this._$leftElement.get(0).clientWidth+this.getSplitterOffset();this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(t)}var e=100-this._leftPanelPercentageWidth;this._onApplyPanelSize({leftPanelWidth:this._leftPanelPercentageWidth+"%",rightPanelWidth:e+"%"}),this.setSplitterPositionLeft(this._$leftElement.get(0).clientWidth-this.getSplitterOffset())}},{key:"_onMouseDownHandler",value:function(t){t.preventDefault(),this._offsetX=t.pageX-this._$splitterBorder.offset().left<=this._getSplitterBorderWidth()?t.pageX-this._$splitterBorder.offset().left:0,this._isSplitterActive=!0,this._containerWidth=this._$container.get(0).clientWidth,this.$element().removeClass(x),this._$splitter.removeClass(b),this.setSplitterPositionLeft(null,!0)}},{key:"_onMouseMoveHandler",value:function(t){this._isSplitterActive&&this.setSplitterPositionLeft(this._getNewSplitterPositionLeft(t),!0)}},{key:"_onMouseUpHandler",value:function(){this._isSplitterActive&&(this._$splitter.addClass(b),this._isSplitterActive=!1)}},{key:"_getNewSplitterPositionLeft",value:function(t){var e=t.pageX-this._$container.offset().left-this._offsetX;return e=Math.max(0-this.getSplitterOffset(),e),e=Math.min(this._containerWidth-this.getSplitterOffset()-this._getSplitterWidth(),e)}},{key:"_isDomElement",value:function(t){return t&&t.nodeType&&1===t.nodeType}},{key:"_isPercentValue",value:function(t){return(0,u.isString)(t)&&"%"===t.slice(-1)}},{key:"getSplitterOffset",value:function(){return(this._getSplitterBorderWidth()-this._getSplitterWidth())/2}},{key:"_getSplitterWidth",value:function(){return this._$splitter.get(0).clientWidth}},{key:"_getSplitterBorderWidth",value:function(){return this._$splitterBorder.get(0).clientWidth}},{key:"toggleState",value:function(t){var e=t?"removeClass":"addClass";this.$element()[e]("dx-state-disabled"),this._$splitter[e]("dx-state-disabled")}},{key:"isSplitterMoved",value:function(){return!this.$element().hasClass(x)}},{key:"setSplitterPositionLeft",value:function(t,e){if(t=t||this._$leftElement.get(0).clientWidth-this.getSplitterOffset(),this.$element().css("left",t),e){var n=t+this.getSplitterOffset(),i=this._containerWidth-n;this._onApplyPanelSize({leftPanelWidth:n,rightPanelWidth:i}),this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(n)}}},{key:"_optionChanged",value:function(t){switch(t.name){case"initialLeftPanelWidth":this._leftPanelPercentageWidth=this._convertLeftPanelWidthToPercentage(t.value),this._dimensionChanged();break;case"leftElement":this.repaint();break;default:p(v(l.prototype),"_optionChanged",this).call(this,t)}}},{key:"_convertLeftPanelWidthToPercentage",value:function(t){return t/this._$container.get(0).clientWidth*100}}])&&f(e.prototype,n),o&&f(e,o),l}(o.default);e.default=I},function(t,e,n){"use strict";var i=n(904),o=n(905),r=n(906),a=n(4).noop,s=n(907);function l(t){return{fill:t.fill,hatching:t.hatching}}i.addAlgorithm("dynamicslope",o,!0),i.addAlgorithm("dynamicheight",r);var u=n(118).inherit({_rootClass:"dxf-funnel",_rootClassPrefix:"dxf",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",neckWidth:"NODES_CREATE",neckHeight:"NODES_CREATE",inverted:"NODES_CREATE",algorithm:"NODES_CREATE",item:"NODES_CREATE",valueField:"NODES_CREATE",argumentField:"NODES_CREATE",colorField:"NODES_CREATE",palette:"NODES_CREATE",paletteExtensionMode:"NODES_CREATE",sortData:"NODES_CREATE"},_themeDependentChanges:["NODES_CREATE"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"funnel",_fontFields:["legend.title.font","legend.title.subtitle.font","legend.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._group=this._renderer.g().append(this._renderer.root),this._items=[]},_eventsMap:{onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_disposeCore:a,_applySize:function(t){return this._rect=t.slice(),this._change(["TILING"]),this._rect},_getAlignmentRect:function(){return this._rect},_change_TILING:function(){var t=this,e=t._items,n=t._rect,i=function(t,e){var i=e%2;return n[0+i]+(n[2+i]-n[0+i])*t};this._group.clear(),e.forEach((function(e,n){var o=e.figure.map(i),r=t._renderer.path([],"area").attr({points:o}).append(t._group);e.coords=o,e.element=r})),this._requestChange(["TILES"])},_customChangesOrder:["NODES_CREATE","LAYOUT","TILING","TILES","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["NODES_CREATE"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_NODES_CREATE:function(){this._buildNodes()},_change_TILES:function(){this._applyTilesAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_applyTilesAppearance:function(){this._items.forEach((function(t){var e=t.getState();t.element.smartAttr(t.states[e])}))},_hitTestTargets:function(t,e){var n,i=this;return this._proxyData.some((function(o){if(n=o.call(i,t,e))return!0})),n},clearHover:function(){this._suspend(),this._items.forEach((function(t){t.isHovered()&&t.hover(!1)})),this._resume()},clearSelection:function(){this._suspend(),this._items.forEach((function(t){t.isSelected()&&t.select(!1)})),this._resume()},_getData:function(){var t=this._dataSourceItems()||[],e=this._getOption("valueField",!0),n=this._getOption("argumentField",!0),i=this._getOption("colorField",!0),o=t.reduce((function(t,o){var r=Number(o[e]);return r>=0&&(t[0].push({value:r,color:o[i],argument:o[n],dataItem:o}),t[1]+=r),t}),[[],0]),r=o[0];return o[1]||(r=r.map((function(t){return t.value+=1,t}))),t.length>0&&0===r.length&&this._incidentOccurred("E2005",e),this._getOption("sortData",!0)&&r.sort((function(t,e){return e.value-t.value})),r},_buildNodes:function(){var t=this,e=t._getData(),n=i.getAlgorithm(t._getOption("algorithm",!0)),o=n.normalizeValues(e),r=t._getOption("item"),a=n.getFigures(o,t._getOption("neckWidth",!0),t._getOption("neckHeight",!0)),l=t._themeManager.createPalette(t._getOption("palette",!0),{useHighlight:!0,extensionMode:t._getOption("paletteExtensionMode",!0),count:a.length});t._items=a.map((function(n,i){var a=e[i];return new s(t,{figure:n,data:a,percent:o[i],id:i,color:a.color||l.getNextColor(),itemOptions:r})})),t._getOption("inverted",!0)&&t._items.forEach((function(t){t.figure=t.figure.map((function(t,e){return e%2?1-t:t}))})),t._renderer.initHatching(),t._change(["TILING","DRAWN"])},_showTooltip:a,hideTooltip:a,getAllItems:function(){return this._items.slice()},_getLegendData:function(){return this._items.map((function(t){var e=t.states;return{id:t.id,visible:!0,text:t.argument,item:t,states:{normal:l(e.normal),hover:l(e.hover),selection:l(e.selection)}}}))},_getMinSize:function(){var t=this._getOption("adaptiveLayout");return[t.width,t.height]}});n(8)("dxFunnel",u),t.exports=u,u.addPlugin(n(166).plugin)},function(t,e,n){"use strict";t.exports=n(921),t.exports.default=t.exports},function(t,e,n){"use strict";var i=g(n(34)),o=g(n(23)),r=n(4),a=g(n(2)),s=n(5),l=g(n(29)),u=n(0),c=g(n(40)),d=g(n(107)),h=g(n(61)),f=g(n(421)),p=n(7),m=n(133);function g(t){return t&&t.__esModule?t:{default:t}}var _=function(t){return"fullBranch"===t.option("filterMode")},v=f.default.inherit({_createKeyGetter:function(){var t=this.getKeyExpr();return l.default.compileGetter(t)},_createKeySetter:function(){var t=this.getKeyExpr();return a.default.isFunction(t)?t:l.default.compileSetter(t)},_createParentIdGetter:function(){return l.default.compileGetter(this.option("parentIdExpr"))},createParentIdSetter:function(){var t=this.option("parentIdExpr");return a.default.isFunction(t)?t:l.default.compileSetter(t)},_createItemsGetter:function(){return l.default.compileGetter(this.option("itemsExpr"))},_createHasItemsGetter:function(){var t=this.option("hasItemsExpr");return t&&l.default.compileGetter(t)},_createHasItemsSetter:function(){var t=this.option("hasItemsExpr");return a.default.isFunction(t)?t:t&&l.default.compileSetter(t)},_updateIndexByKeyObject:function(t){var e=this;e._indexByKey={},(0,s.each)(t,(function(t,n){e._indexByKey[n.key]=t}))},_calculateHasItems:function(t,e){var n,i=e.storeLoadOptions.parentIds,o=_(this);return this._hasItemsGetter&&(i||!e.storeLoadOptions.filter||o)&&(n=this._hasItemsGetter(t.data)),void 0===n&&(n=!(this._isChildrenLoaded[t.key]||!e.remoteOperations.filtering||!i&&!o)||(e.loadOptions.filter&&!e.remoteOperations.filtering&&o?t.children.length:t.hasChildren)),!!n},_createVisibleItemsByNodes:function(t,e){for(var n=[],i=0;i<t.length;i++)t[i].visible&&n.push(t[i]),(this.isRowExpanded(t[i].key,e)||!t[i].visible)&&t[i].hasChildren&&t[i].children.length&&(n=n.concat(this._createVisibleItemsByNodes(t[i].children,e)));return n},_convertItemToNode:function(t,e,n){var i=this._keyGetter(t),o=this._parentIdGetter(t),r=n[o=void 0!==o?o:e]=n[o]||{key:o,children:[]},a=n[i]=n[i]||{key:i,children:[]};return a.data=t,a.parent=r,a},_createNodesByItems:function(t,e){var n,i=this.option("rootValue"),o={},r=this._nodeByKey={};if(e)for(n=0;n<e.length;n++)o[this._keyGetter(e[n])]=!0;for(n=0;n<t.length;n++){var a=this._convertItemToNode(t[n],i,r);if(void 0===a.key)return;a.visible=!e||!!o[a.key],a.parent&&a.parent.children.push(a)}var s=r[i]||{key:i,children:[]};return s.level=-1,s},_convertDataToPlainStructure:function(t,e,n){var i;if(this._itemsGetter&&!t.isConverted){n=n||[];for(var o=0;o<t.length;o++){var r=c.default.createObjectWithChanges(t[o]);void 0===(i=this._keyGetter(r))&&(i=n.length+1,this._keySetter(r,i)),this._parentIdSetter(r,void 0===e?this.option("rootValue"):e),n.push(r);var s=this._itemsGetter(r);if(s&&s.length){this._convertDataToPlainStructure(s,i,n);var l=this.option("itemsExpr");a.default.isFunction(l)||delete r[l]}}return n.isConverted=!0,n}return t},_createIdFilter:function(t,e){for(var n=[],i=0;i<e.length;i++)n.push([t,"=",e[i]]);return c.default.combineFilters(n,"or")},_customizeRemoteOperations:function(t,e){this.callBase.apply(this,arguments),t.remoteOperations.paging=!1;var n=!1;this.option("autoExpandAll")&&(t.remoteOperations.sorting=!1,t.remoteOperations.filtering=!1,this._lastLoadOptions&&(!e.filtering||t.storeLoadOptions.filter)||t.isCustomLoading||(n=!0)),t.isCustomLoading||(this._isReload=this._isReload||e.reload,t.cachedStoreData||(this._isChildrenLoaded={},this._isReload&&(this._nodeByKey={})),this.option("expandNodesOnFiltering")&&(e.filtering||this._isReload&&t.storeLoadOptions.filter)&&(t.storeLoadOptions.filter?n=!0:t.collapseVisibleNodes=!0)),t.expandVisibleNodes=n},_getParentIdsToLoad:function(t){for(var e=[],n=0;n<t.length;n++){var i=this.getNodeByKey(t[n]);(!i||i.hasChildren&&!i.children.length)&&e.push(t[n])}return e},_handleDataLoading:function(t){var e=this.option("rootValue"),n=this.option("parentIdExpr"),i=t.storeLoadOptions.parentIds;if(i&&(t.isCustomLoading=!1),this.callBase.apply(this,arguments),t.remoteOperations.filtering&&!t.isCustomLoading&&(_(this)&&t.cachedStoreData||!t.storeLoadOptions.filter)){var o=t.collapseVisibleNodes?[]:this.option("expandedRowKeys");i=[e].concat(o).concat(i||[]);var r=t.data?this._getParentIdsToLoad(i):i;r.length&&(t.cachedPagingData=void 0,t.data=void 0,t.mergeStoreLoadData=!0),t.storeLoadOptions.parentIds=r,t.storeLoadOptions.filter=this._createIdFilter(n,r)}},_generateInfoToLoad:function(t,e){var n,i,o={},r={},a=[],s=this.option("rootValue");for(i=0;i<t.length;i++)o[n=e?this._parentIdGetter(t[i]):this._keyGetter(t[i])]=!0;for(i=0;i<t.length;i++){n=e?this._keyGetter(t[i]):this._parentIdGetter(t[i]);var l=e?this.isRowExpanded(n):n!==s;o[n]||r[n]||!l||(r[n]=!0,a.push(n))}return{keyMap:r,keys:a}},_loadParentsOrChildren:function(t,e,n){var i,o,r=this,a=this,s=a._generateInfoToLoad(t,n),l=s.keys,c=s.keyMap,f=new p.Deferred,m=e.remoteOperations.filtering,g=a.option("maxFilterLengthInRequest"),_=m?e.storeLoadOptions:e.loadOptions;function v(e){return m&&(a._cachedStoreData=a._cachedStoreData.concat(e)),t.concat(e)}if(!l.length)return f.resolve(t);var y=l.map((function(t){return r.getNodeByKey(t)})).filter((function(t){return t&&t.data}));if(y.length===l.length&&(n&&(y=y.reduce((function(t,e){return t.concat(e.children)}),[])),y.length))return a._loadParentsOrChildren(v(y.map((function(t){return t.data}))),e,n);var b=n?a.option("parentIdExpr"):a.getKeyExpr();i=a._createIdFilter(b,l),encodeURI(JSON.stringify(i)).length>g&&(i=function(t){return c[a._keyGetter(t)]},o=m),_=(0,u.extend)({},_,{filter:o?null:i});var w=e.fullData?new d.default(e.fullData):a._dataSource.store();return a.loadFromStore(_,w).done((function(r){r.length?(o&&(r=(0,h.default)(r).filter(i).toArray()),a._loadParentsOrChildren(v(r),e,n).done(f.resolve).fail(f.reject)):f.resolve(t)})).fail(f.reject),f},_loadParents:function(t,e){return this._loadParentsOrChildren(t,e)},_loadChildrenIfNeed:function(t,e){return _(this)?this._loadParentsOrChildren(t,e,!0):(0,p.when)(t)},_updateHasItemsMap:function(t){var e=t.storeLoadOptions.parentIds;if(e)for(var n=0;n<e.length;n++)this._isChildrenLoaded[e[n]]=!0},_getKeyInfo:function(){return{key:function(){return"key"},keyOf:function(t){return t.key}}},_applyBatch:function(t){var e=this,n=[];t.forEach((function(t){"insert"===t.type?n=n.concat(e._applyInsert(t)):"remove"===t.type?n=n.concat(e._applyRemove(t)):"update"===t.type&&n.push({type:t.type,key:t.key,data:{data:t.data}})})),this.callBase(n)},_setHasItems:function(t,e){var n=this._hasItemsSetter;t.hasChildren=e,n&&t.data&&n(t.data,e)},_applyInsert:function(t){var e=[],n=this.parentKeyOf(t.data),i=this.getNodeByKey(n);if(i){var o=this.option("rootValue"),r=this._convertItemToNode(t.data,o,this._nodeByKey);if(r.hasChildren=!1,r.level=i.level+1,r.visible=!0,i.children.push(r),this._isChildrenLoaded[r.key]=!0,this._setHasItems(i,!0),(!i.parent||this.isRowExpanded(i.key))&&void 0!==t.index){var a=this.items().indexOf(i)+1;a+=t.index>=0?Math.min(t.index,i.children.length):i.children.length,e.push({type:t.type,data:r,index:a})}}return e},_applyRemove:function(t){var e=[],n=this.getNodeByKey(t.key),i=n&&n.parent;if(i){var o=i.children.indexOf(n);o>=0&&(i.children.splice(o,1),i.children.length||this._setHasItems(i,!1),e.push(t),e=e.concat(this.getChildNodeKeys(t.key).map((function(e){return{type:t.type,key:e}}))))}return e},_handleDataLoaded:function(t){var e=t.data=this._convertDataToPlainStructure(t.data);!t.remoteOperations.filtering&&t.loadOptions.filter&&(t.fullData=(0,m.queryByOptions)((0,h.default)(t.data),{sort:t.loadOptions&&t.loadOptions.sort}).toArray()),this._updateHasItemsMap(t),this.callBase(t),e.isConverted&&this._cachedStoreData&&(this._cachedStoreData.isConverted=!0)},_fillNodes:function(t,e,n,o){var r=_(this);o=o||0;for(var a=0;a<t.length;a++){var s=t[a],l=!1;this._fillNodes(t[a].children,e,n,o+1),s.level=o,s.hasChildren=this._calculateHasItems(s,e),s.visible&&s.hasChildren&&(r?s.children.filter((function(t){return t.visible})).length?l=!0:s.children.length&&i.default.foreachNodes(s.children,(function(t){t.visible=!0})):l=!0,e.expandVisibleNodes&&l&&n.push(s.key)),(s.visible||s.hasChildren)&&(s.parent.hasChildren=!0)}},_processTreeStructure:function(t,e){var n=t.data,i=t.storeLoadOptions.parentIds,r=[];if(i&&i.length||this._isReload){if(t.fullData&&t.fullData.length>t.data.length&&(n=t.fullData,e=e||t.data),this._rootNode=this._createNodesByItems(n,e),!this._rootNode)return void(t.data=(new p.Deferred).reject(o.default.Error("E1046",this.getKeyExpr())));this._fillNodes(this._rootNode.children,t,r),this._isNodesInitializing=!0,(t.collapseVisibleNodes||r.length)&&this.option("expandedRowKeys",r),this._isReload=!1,this.executeAction("onNodesInitialized",{root:this._rootNode}),this._isNodesInitializing=!1}n=this._createVisibleItemsByNodes(this._rootNode.children,t),t.data=n,this._totalItemsCount=n.length},_handleDataLoadedCore:function(t){var e,n=this,i=t.data,o=n.callBase,r=t.storeLoadOptions.filter||t.loadOptions.filter,a=n.option("filterMode"),s=t.storeLoadOptions.parentIds,l=r&&(!s||!s.length)&&"standard"!==a;if(!t.isCustomLoading){if(l){var u=t.data=new p.Deferred;return"matchOnly"===a&&(e=i),n._loadParents(i,t).done((function(i){n._loadChildrenIfNeed(i,t).done((function(i){t.data=i,n._processTreeStructure(t,e),o.call(n,t),u.resolve(t.data)}))})).fail(u.reject)}n._processTreeStructure(t)}n.callBase(t)},_handlePush:function(t){var e=this._dataSource._reshapeOnPush,n=e&&!!t.length;n&&(this._isReload=!0),this.callBase.apply(this,arguments)},init:function(t,e){this.callBase.apply(this,arguments);var n=this.option("dataStructure");this._keyGetter=this._createKeyGetter(),this._parentIdGetter=this._createParentIdGetter(),this._hasItemsGetter=this._createHasItemsGetter(),this._hasItemsSetter=this._createHasItemsSetter(),"tree"===n&&(this._itemsGetter=this._createItemsGetter(),this._keySetter=this._createKeySetter(),this._parentIdSetter=this.createParentIdSetter()),this._nodeByKey={},this._isChildrenLoaded={},this._totalItemsCount=0,this.createAction("onNodesInitialized")},getKeyExpr:function(){var t=this.store(),e=t&&t.key(),n=this.option("keyExpr");if(a.default.isDefined(e)&&a.default.isDefined(n)&&!(0,r.equalByValue)(e,n))throw o.default.Error("E1044");return e||n||"id"},keyOf:function(t){return this._keyGetter&&this._keyGetter(t)},parentKeyOf:function(t){return this._parentIdGetter&&this._parentIdGetter(t)},getRootNode:function(){return this._rootNode},totalItemsCount:function(){return this._totalItemsCount},isRowExpanded:function(t,e){if(e){var n=e.isExpandedByKey;return n||(n=e.isExpandedByKey={},this.option("expandedRowKeys").forEach((function(t){n[t]=!0}))),!!n[t]}return c.default.getIndexByKey(t,this.option("expandedRowKeys"),null)>=0},_changeRowExpandCore:function(t){var e=this.option("expandedRowKeys").slice(),n=c.default.getIndexByKey(t,e,null);n<0?e.push(t):e.splice(n,1),this.option("expandedRowKeys",e)},changeRowExpand:function(t){return this._changeRowExpandCore(t),this._isNodesInitializing?(new p.Deferred).resolve():this.load()},getNodeByKey:function(t){if(this._nodeByKey)return this._nodeByKey[t]},getNodeLeafKeys:function(){var t=this,e=[];return(t._rootNode?[t._rootNode.key]:[]).forEach((function(n){var o=t.getNodeByKey(n);o&&i.default.foreachNodes([o],(function(t){!t.children.length&&e.push(t.key)}))})),e},getChildNodeKeys:function(t){var e=this.getNodeByKey(t),n=[];return e&&i.default.foreachNodes(e.children,(function(t){n.push(t.key)})),n},loadDescendants:function(t,e){var n=this,i=new p.Deferred,o=n.remoteOperations();if(t=a.default.isDefined(t)?Array.isArray(t)?t:[t]:n.getNodeLeafKeys(),!o.filtering||!t.length)return i.resolve();var r=n._dataSource._createStoreLoadOptions();return r.parentIds=t,n.load(r).done((function(){if(!e){var o=function(t,e){var n=[];return e.forEach((function(e){var i=t.getNodeByKey(e);i&&i.children.forEach((function(t){n.push(t.key)}))})),n}(n,t);if(o.length)return void n.loadDescendants(o,e).done(i.resolve).fail(i.reject)}i.resolve()})).fail(i.reject),i.promise()},forEachNode:function(){var t,e=[];if(1===arguments.length){t=arguments[0];var n=this.getRootNode();e=n&&n.children||[]}else 2===arguments.length&&(t=arguments[1],e=arguments[0],e=Array.isArray(e)?e:[e]);i.default.foreachNodes(e,t)}});t.exports={extend:function(t){v=v.inherit(t)},create:function(t){return new v(t)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getQuill=void 0;var i=r(n(23)),o=r(n(68));function r(t){return t&&t.__esModule?t:{default:t}}e.getQuill=function(){if(!o.default)throw i.default.Error("E1041","Quill");return o.default}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=u(n(68)),o=u(n(3)),r=n(0),a=n(10),s=u(n(48)),l=u(n(108));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _={};if(i.default){var v=i.default.import("core/module");_=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(n,t);var e=p(n);function n(t,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(o=e.call(this,t,i)).options=(0,r.extend)({},o._getDefaultOptions(),i),o._popup=o.renderPopup(),o._popup._wrapper().addClass("dx-suggestion-list-wrapper"),o}return h(n,[{key:"_getDefaultOptions",value:function(){return{dataSource:null}}}]),h(n,[{key:"renderList",value:function(t,e){var n=(0,o.default)("<div>").addClass("dx-suggestion-list").appendTo(t);this._list=this.options.editorInstance._createComponent(n,l.default,e)}},{key:"renderPopup",value:function(){var t=this.options.editorInstance,e=(0,o.default)("<div>").appendTo(t.$element()),n=this._getPopupConfig();return t._createComponent(e,s.default,n)}},{key:"_getPopupConfig",value:function(){var t=this;return{contentTemplate:function(e){var n=t._getListConfig(t.options);t.renderList((0,o.default)(e),n)},deferRendering:!1,onShown:function(){t._list.focus()},onHidden:function(){t._list.unselectAll(),t._list.option("focusedElement",null)},showTitle:!1,width:"auto",height:"auto",shading:!1,closeOnTargetScroll:!0,closeOnOutsideClick:!0,animation:{show:{type:"fade",duration:0,from:0,to:1},hide:{type:"fade",duration:400,from:1,to:0}},fullScreen:!1,maxHeight:this.maxHeight}}},{key:"_getListConfig",value:function(t){return{dataSource:t.dataSource,onSelectionChanged:this.selectionChangedHandler.bind(this),selectionMode:"single",pageLoadMode:"scrollBottom"}}},{key:"selectionChangedHandler",value:function(t){this._popup.option("visible")&&(this._popup.hide(),this.insertEmbedContent(t))}},{key:"insertEmbedContent",value:function(t){}},{key:"showPopup",value:function(){this._popup&&this._popup.show()}},{key:"savePosition",value:function(t){this.caretPosition=t}},{key:"getPosition",value:function(){return this.caretPosition}},{key:"maxHeight",get:function(){var t=(0,a.getWindow)(),e=t&&(0,o.default)(t).height()||0;return Math.max(100,.5*e)}}]),n}(v)}e.default=_},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}Object.defineProperty(e,"__esModule",{value:!0});var o=new(function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._converters={}}var e,n,o;return e=t,(n=[{key:"addConverter",value:function(t,e){this._converters[t]=e}},{key:"getConverter",value:function(t){return this._converters[t]}}])&&i(e.prototype,n),o&&i(e,o),t}());e.default=o},function(t,e,n){"use strict";var i=n(93),o=n(21),r=n(5).map,a=n(2),s=n(11),l=a.isPlainObject,u=a.isNumeric,c=o.abstract,d=o.inherit({_defaultRouteWeight:function(){return 5},_defaultRouteOpacity:function(){return.5},_defaultRouteColor:function(){return"#0000FF"},ctor:function(t,e){this._mapWidget=t,this._$container=e},render:function(t,e){return this._renderImpl().then(function(){return i.all([this._applyFunctionIfNeeded("addMarkers",t),this._applyFunctionIfNeeded("addRoutes",e)]).then((function(){return!0}))}.bind(this))},_renderImpl:c,updateDimensions:c,updateMapType:c,updateBounds:c,updateCenter:c,updateZoom:c,updateControls:c,updateMarkers:function(t,e){return new i(function(n){return this._applyFunctionIfNeeded("removeMarkers",t).then(function(t){this._applyFunctionIfNeeded("addMarkers",e).then((function(e){n(e||t)}))}.bind(this))}.bind(this))},addMarkers:c,removeMarkers:c,adjustViewport:c,updateRoutes:function(t,e){return new i(function(n){return this._applyFunctionIfNeeded("removeRoutes",t).then(function(t){this._applyFunctionIfNeeded("addRoutes",e).then((function(e){n(e||t)}))}.bind(this))}.bind(this))},addRoutes:c,removeRoutes:c,clean:c,map:function(){return this._map},isEventsCanceled:function(){return!1},_option:function(t,e){if(void 0===e)return this._mapWidget.option(t);this._mapWidget.setOptionSilent(t,e)},_keyOption:function(t){var e=this._option("key");return void 0===e[t]?e:e[t]},_parseTooltipOptions:function(t){return{text:t.text||t,visible:t.isShown||!1}},_getLatLng:function(t){if("string"===typeof t){var e=r(t.split(","),(function(t){return t.trim()})),n=/^[-+]?[0-9]*\.?[0-9]*$/;if(2===e.length&&e[0].match(n)&&e[1].match(n))return{lat:parseFloat(e[0]),lng:parseFloat(e[1])}}else{if(Array.isArray(t)&&2===t.length)return{lat:t[0],lng:t[1]};if(l(t)&&u(t.lat)&&u(t.lng))return t}return null},_areBoundsSet:function(){return this._option("bounds.northEast")&&this._option("bounds.southWest")},_addEventNamespace:function(t){return s.addNamespace(t,this._mapWidget.NAME)},_applyFunctionIfNeeded:function(t,e){return e.length?this[t](e):i.resolve()},_fireAction:function(t,e){this._mapWidget._createActionByOption(t)(e)},_fireClickAction:function(t){this._fireAction("onClick",t)},_fireMarkerAddedAction:function(t){this._fireAction("onMarkerAdded",t)},_fireMarkerRemovedAction:function(t){this._fireAction("onMarkerRemoved",t)},_fireRouteAddedAction:function(t){this._fireAction("onRouteAdded",t)},_fireRouteRemovedAction:function(t){this._fireAction("onRouteRemoved",t)}});t.exports=d},function(t,e,n){"use strict";var i=n(93),o=n(0).extend,r=n(5),a=n(492),s=a.abstract,l=a.inherit({_geocodeLocation:function(t){return new i(function(e){var n=this._geocodedLocations,i=n[t];i?e(i):this._geocodeLocationImpl(t).then((function(i){n[t]=i,e(i)}))}.bind(this))},_renderImpl:function(){return this._load().then(function(){return this._init()}.bind(this)).then(function(){return i.all([this.updateMapType(),this._areBoundsSet()?this.updateBounds():this.updateCenter()])}.bind(this)).then(function(){return this._attachHandlers(),new i((function(t){var e=setTimeout((function(){clearTimeout(e),t()}))}))}.bind(this))},_load:function(){return this._mapsLoader||(this._mapsLoader=this._loadImpl()),this._markers=[],this._routes=[],this._mapsLoader},_loadImpl:s,_init:s,_attachHandlers:s,addMarkers:function(t){return i.all(r.map(t,function(t){return this._addMarker(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,r.map(t,(function(t){return t.marker}))]}.bind(this))},_addMarker:function(t){return this._renderMarker(t).then(function(e){return this._markers.push(o({options:t},e)),this._fireMarkerAddedAction({options:t,originalMarker:e.marker}),e}.bind(this))},_renderMarker:s,removeMarkers:function(t){var e=this;return r.each(t,(function(t,n){e._removeMarker(n)})),i.resolve()},_removeMarker:function(t){var e=this;r.each(this._markers,(function(n,i){return i.options!==t||(e._destroyMarker(i),e._markers.splice(n,1),e._fireMarkerRemovedAction({options:i.options}),!1)}))},_destroyMarker:s,_clearMarkers:function(){for(;this._markers.length>0;)this._removeMarker(this._markers[0].options)},addRoutes:function(t){return i.all(r.map(t,function(t){return this._addRoute(t)}.bind(this))).then(function(t){return this._fitBounds(),[!1,r.map(t,(function(t){return t.instance}))]}.bind(this))},_addRoute:function(t){return this._renderRoute(t).then(function(e){return this._routes.push(o({options:t},e)),this._fireRouteAddedAction({options:t,originalRoute:e.instance}),e}.bind(this))},_renderRoute:s,removeRoutes:function(t){var e=this;return r.each(t,(function(t,n){e._removeRoute(n)})),i.resolve()},_removeRoute:function(t){var e=this;r.each(this._routes,(function(n,i){return i.options!==t||(e._destroyRoute(i),e._routes.splice(n,1),e._fireRouteRemovedAction({options:t}),!1)}))},_destroyRoute:s,_clearRoutes:function(){for(;this._routes.length>0;)this._removeRoute(this._routes[0].options)},adjustViewport:function(){return this._fitBounds()},isEventsCanceled:function(){return!0},_fitBounds:s,_updateBounds:function(){var t=this;this._clearBounds(),this._option("autoAdjust")&&(r.each(this._markers,(function(e,n){t._extendBounds(n.location)})),r.each(this._routes,(function(e,n){n.northEast&&t._extendBounds(n.northEast),n.southWest&&t._extendBounds(n.southWest)})))},_clearBounds:function(){this._bounds=null},_extendBounds:s});t.exports=l},function(t,e,n){"use strict";var i=n(100),o=y(n(192)),r=n(4),a=n(2),s=n(0),l=n(16),u=n(5),c=n(7),d=y(n(21)),h=n(153),f=n(46),p=n(1006),m=y(n(1007)),g=n(1008),_=n(1009),v=n(95);function y(t){return t&&t.__esModule?t:{default:t}}var b={row:"rows",column:"columns",data:"values",filter:"filters"},w=["area","areaIndex","sortOrder","filterType","filterValues","sortBy","sortBySummaryField","sortBySummaryPath","expanded","summaryType","summaryDisplayMode"],x=["format","selector","customizeText","caption"],C=x.concat(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"]);function S(t,e){var n=t._initProperties||{};(0,u.each)(e,(function(e,i){Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}))}function k(t,e){S(t,e),(0,a.isDefined)(t.caption)||(0,v.setFieldProperty)(t,"caption",function(t){var e=t.dataField||t.groupName||"",n=(t.summaryType||"").toLowerCase();return(0,a.isString)(t.groupInterval)&&(e+="_"+t.groupInterval),n&&"custom"!==n?(n=n.replace(/^./,n[0].toUpperCase()),e.length&&(n=" ("+n+")")):n="",(0,f.titleize)(e)+n}(t))}function I(t){return t.rows.length||t.columns.length||t.values.length}t.exports=d.default.inherit(function(){var t=function(t,e){if(t._cacheByPath)return t._cacheByPath[e.join(".")]||null},e=function t(e,n){var i,o,r=-1;if(e)for(i=0;i<e.length;i++)void 0!==(o=e[i]).index&&(r=Math.max(r,o.index)),o.children?r=Math.max(r,t(o.children)):o.collapsedChildren&&(r=Math.max(r,t(o.collapsedChildren)));return(0,a.isDefined)(n)&&(r=Math.max(r,n)),r},n=function(t,n,i,o){var r,a=e(i)+1,s=e(t,o)+1,l=[],u=!1,d=new c.Deferred;if(n.children&&n.children.length===i.length)for(var h=0;h<i.length;h++){var f=i[h];void 0!==f.index&&(void 0===n.children[h].index?(f.index=l[f.index]=s++,n.children[h]=f):l[f.index]=n.children[h].index)}else{for(u=!0,r=0;r<a;r++)l[r]=s++;n.children=i}return(0,c.when)((0,v.foreachTreeAsync)(n.children,(function(t){u&&(t[0].index=l[t[0].index])}))).done((function(){d.resolve(l)})),d},f=function(n,i,o){var r=new c.Deferred,a=o>=0&&e(n,o)+1,s=[];return(0,c.when)((0,v.foreachTreeAsync)(n,(function(t){delete t[0].collapsedChildren}))).done((function(){(0,c.when)((0,v.foreachTreeAsync)(i,(function(e,i){var o=e[0];if(o.index>=0){var r=t(n,(0,v.createPath)(e));if(r&&r.index>=0)s[o.index]=r.index;else if(a){var l=(0,v.createPath)(e.slice(1));r=t(n,l);var u=l.length?r&&r.children:n;u&&(u[i]=o,o.index=s[o.index]=a++)}}}))).done((function(){r.resolve(s)}))})),r},y=function(t,e,n,i){var o,r,s,l,u,c,d=t.values;if(e)for(o=0;o<=e.length;o++)if(s=e[o],u=n[o],(0,a.isDefined)(u)||(u=t.grandTotalRowIndex),s&&(0,a.isDefined)(u))for(d[u]||(d[u]=[]),r=0;r<=s.length;r++)l=s[r],c=i[r],(0,a.isDefined)(c)||(c=t.grandTotalColumnIndex),(0,a.isDefined)(l)&&(0,a.isDefined)(c)&&(d[u][c]=l)};function T(t,e){return new(t.remoteOperations||t.paginate?m.default:p.LocalStore)((0,s.extend)((0,i.normalizeDataSourceOptions)(t),{onChanged:null,onLoadingChanged:null,onProgressChanged:e}))}function E(t,e,n,i){var o=[],r=e&&e[n]||[],a=i&&i[n]||[];return(0,v.foreachTree)(t[n],(function(t){var e=t[0],n=(0,v.createPath)(t);e.children&&r[n.length-1]&&!r[n.length-1].expanded&&n.length<r.length&&(!i||function(t,e,n){for(var i=0;i<n;i++)if(!t[i]||!e[i]||t[i].index!==e[i].index)return!1;return!0}(r,a,n.length))&&o.push(n.slice())}),!0),o}function O(t,e,n,i){return e?(0,u.each)(i,(function(i,o){if(n)t[o]=e[o];else{if(("summaryType"===o||"summaryDisplayMode"===o)&&void 0===e[o])return;(0,v.setFieldProperty)(t,o,e[o])}})):S(t,i),t}function M(t,e){var n=[];return(0,u.each)(t,(function(t,i){n.push(O({dataField:i.dataField,name:i.name},i,!0,e))})),n}function P(t){return t.name?t.name:t.dataField+""}function D(t,e){var n=[];return(0,u.each)(t||[],(function(t,i){P(i)===e&&n.push(i)})),n}function A(t,e){t=t||[];var n,i={};return(0,u.each)(e,(function(t,o){n=P(o),i[n]||(i[n]=D(e,P(o)))})),(0,u.each)(i,(function(e,n){!function(t,e){t=t||[],(0,u.each)(e,(function(e,n){O(n,t[e],!1,w),k(n,x)}))}(D(t,e),n)})),e}function R(t){t.sort((function(t,e){return t.areaIndex-e.areaIndex||t.groupIndex-e.groupIndex}))}function B(t,e){var n=t.groupName||"";return(t.dataField||n)+(t.groupInterval?n+t.groupInterval:"NOGROUP")+(e?"":n)}function N(t,e,n){var i=[],o={},r={},l=(0,v.getFieldsDataType)(t);return e?((0,u.each)(e,(function(t,e){o[B(e,n)]=e})),(0,u.each)(t,(function(t,e){var a,u=B(e,n),c=o[u]||r[u];c?(c._initProperties&&S(c,C),a=(0,s.extend)({},c,e,{_initProperties:null})):o[u]=a=e,(0,s.extend)(a,{dataType:l[e.dataField]}),delete o[u],r[u]=c,i.push(a)})),n&&(0,u.each)(o,(function(t,e){i.push(e)}))):i=t,i.push.apply(i,[]),function(t){t.forEach((function(e){if(e.groupName&&e.groupInterval&&void 0===e.groupIndex){var n=t.filter((function(t){return t.groupName===e.groupName&&(0,a.isNumeric)(t.groupIndex)})).map((function(t){return t.groupIndex})).reduce((function(t,e){return Math.max(t,e)}),-1);e.groupIndex=n+1}}))}(i),i}function L(t){var e,n=new c.Deferred,i=t._store,o=i&&i.getFields(t._fields);return(0,c.when)(o).done((function(i){t._storeFields=i,e=N(t._fields,i,t._retrieveFields),n.resolve(e)})).fail(n.reject),n}function F(t,e,n,i){var o=e.values,r=(0,v.findField)(n.values,t.sortBySummaryField),s="rows"===i,l=s?e.columns:e.rows,c=s?e.grandTotalRowIndex:e.grandTotalColumnIndex,d=t.sortBySummaryPath||[],h=d.length?function(t,e){var n=null,i=(e||[]).join(".");return i.length&&(0,v.foreachTree)(t,(function(t){var e=t[0],o=(0,v.createPath)(t).join("."),r=(0,u.map)(t,(function(t){return t.text})).reverse().join(".");if(i===o||e.key&&r===i)return n=t[0].index,!1})),n}(l,d):c;if(o&&o.length&&r>=0&&(0,a.isDefined)(h))return function(t){var e=s?t.index:h,n=s?h:t.index,i=((o[e]||[[]])[n]||[])[r];return(0,a.isDefined)(i)?i:null}}function V(t,e,n,i){var o=e[n]||[],r=e.headerName===n?e.path.length:0,a=[];(0,v.foreachDataLevel)(t[n],(function(r,s){var l=o[s]||{},u=a[s]=a[s]||function(t,e,n,i,o){var r=o?"asc":t.sortOrder,a=function(t,e){var n="text";return"none"===t?n="index":(e||"displayText"!==t)&&(n="value"),n}(t.sortBy,o),s=t.sortingMethod?function(e,n){return t.sortingMethod(e,n)}:(0,v.getCompareFunction)((function(t){return t[a]})),l=!o&&F(t,e,n,i),u=l&&(0,v.getCompareFunction)(l);return function(t,e){var n=u&&u(t,e)||s(t,e);return"desc"===r?-n:n}}(l,t,e,n,i);r.sort(u)}),r)}function z(t,e,n){return(0,v.foreachTreeAsync)(t[n],(function(t){var i=t[0];i.text=i.text||(0,v.formatValue)(i.value,e[n][(0,v.createPath)(t).length-1])}))}function j(t,e){return(0,c.when)(z(e,t,"columns"),z(e,t,"rows"))}function H(t){var e=new c.Deferred,n={};return(0,c.when)((0,v.foreachTreeAsync)(t,(function(t){var e=(0,v.createPath)(t).join(".");n[e]=t[0]}))).done(e.resolve),t._cacheByPath=n,e}function W(t,e){var n=[];return(0,u.each)(t,(function(){(function(t,e){var n="data"===e||!1!==t.visible;return t.area===e&&!(0,a.isDefined)(t.groupIndex)&&n})(this,e)&&n.push(this)})),n}return{ctor:function(t){t=t||{},this._eventsStrategy=new h.EventsStrategy(this);var e=this,n=function(t,e){var n,i;return(0,a.isPlainObject)(t)&&t.load?n=T(t,e):(t&&!t.store&&(t={store:t}),"xmla"===(i=t.store).type?n=new g.XmlaStore(i):(0,a.isPlainObject)(i)&&i.type||i instanceof o.default||Array.isArray(i)?n=T(t,e):i instanceof d.default&&(n=i)),n}(t,(function(t){e._eventsStrategy.fireEvent("progressChanged",[t])}));e._store=n,e._paginate=!!t.paginate,e._pageSize=t.pageSize||40,e._data={rows:[],columns:[],values:[]},e._loadingCount=0,e._isFieldsModified=!1,(0,u.each)(["changed","loadError","loadingChanged","progressChanged","fieldsPrepared","expandValueChanging"],function(e,n){var i="on"+n[0].toUpperCase()+n.slice(1);Object.prototype.hasOwnProperty.call(t,i)&&this.on(n,t[i])}.bind(this)),e._retrieveFields=!(0,a.isDefined)(t.retrieveFields)||t.retrieveFields,e._fields=t.fields||[],e._descriptions=t.descriptions?(0,s.extend)(e._createDescriptions(),t.descriptions):void 0,n||(0,s.extend)(!0,e._data,t.store||t)},getData:function(){return this._data},getAreaFields:function(t,e){var n=[];return e||"data"===t?R(n=W(this._fields,t)):n=(this._descriptions||{})[b[t]]||[],n},fields:function(t){return t&&(this._fields=N(t,this._storeFields,this._retrieveFields),this._fieldsPrepared(this._fields)),this._fields},field:function(t,e){var n,i=this._fields,o=i&&i[(0,a.isNumeric)(t)?t:(0,v.findField)(i,t)];return o&&e&&((0,u.each)(e,(function(t,e){var i=(0,l.inArray)(t,w)<0;if((0,v.setFieldProperty)(o,t,e,i),"sortOrder"===t){n=o.levels||[];for(var r=0;r<n.length;r++)n[r][t]=e}})),k(o,x),this._descriptions=this._createDescriptions(o),this._isFieldsModified=!0,this._eventsStrategy.fireEvent("fieldChanged",[o])),o},getFieldValues:function(t,e,n){var i,o=this,r=this._fields&&this._fields[t],a=this.store(),l=[],d={columns:l,rows:[],values:this.getAreaFields("data"),filters:e?this._fields.filter((function(t){return t!==r&&t.area&&t.filterValues&&t.filterValues.length})):[],skipValues:!0},h=new c.Deferred;return n&&(i=n.searchValue,d.columnSkip=n.skip,d.columnTake=n.take),r&&a?((0,u.each)(r.levels||[r],(function(){l.push((0,s.extend)({},this,{expanded:!0,filterValues:null,sortOrder:"asc",sortBySummaryField:null,searchValue:i}))})),a.load(d).done((function(t){d.columnSkip&&(t.columns=t.columns.slice(d.columnSkip)),d.columnTake&&(t.columns=t.columns.slice(0,d.columnTake)),j(d,t),d.columnTake||o._sort(d,t),h.resolve(t.columns)})).fail(h)):h.reject(),h},reload:function(){return this.load({reload:!0})},filter:function(){var t=this._store;return t.filter.apply(t,arguments)},load:function(t){var e=this,n=new c.Deferred;function i(){e._delayedLoadTask=void 0,e._descriptions?e._loadCore(t,n):(0,c.when)(L(e)).done((function(i){e._fieldsPrepared(i),e._loadCore(t,n)})).fail(n.reject).fail(e._loadErrorHandler)}return t=t||{},e.beginLoading(),n.fail((function(t){e._eventsStrategy.fireEvent("loadError",[t])})).always((function(){e.endLoading()})),e.store()?e._delayedLoadTask=(0,r.executeAsync)(i):i(),n},createDrillDownDataSource:function(t){return this._store.createDrillDownDataSource(this._descriptions,t)},_createDescriptions:function(t){var e=this.fields(),n={rows:[],columns:[],values:[],filters:[]};(0,u.each)(["row","column","data","filter"],(function(n,i){(0,l.normalizeIndexes)(W(e,i),"areaIndex",t)})),(0,u.each)(e||[],(function(t,i){var o=b[i.area],r=n[o],l=i.groupName;l&&!(0,a.isNumeric)(i.groupIndex)&&(i.levels=function(t,e){return t.filter((function(t){return t.groupName===e.groupName&&(0,a.isNumeric)(t.groupIndex)&&!1!==t.visible})).map((function(t){return(0,s.extend)(t,{areaIndex:e.areaIndex,area:e.area,expanded:(0,a.isDefined)(t.expanded)?t.expanded:e.expanded,dataField:t.dataField||e.dataField,dataType:t.dataType||e.dataType,sortBy:t.sortBy||e.sortBy,sortOrder:t.sortOrder||e.sortOrder,sortBySummaryField:t.sortBySummaryField||e.sortBySummaryField,sortBySummaryPath:t.sortBySummaryPath||e.sortBySummaryPath,visible:t.visible||e.visible,showTotals:(0,a.isDefined)(t.showTotals)?t.showTotals:e.showTotals,showGrandTotals:(0,a.isDefined)(t.showGrandTotals)?t.showGrandTotals:e.showGrandTotals})})).sort((function(t,e){return t.groupIndex-e.groupIndex}))}(e,i)),!r||l&&(0,a.isNumeric)(i.groupIndex)||!1===i.visible&&"data"!==i.area&&"filter"!==i.area||(i.levels&&r!==n.filters&&r!==n.values?(r.push.apply(r,i.levels),i.filterValues&&i.filterValues.length&&n.filters.push(i)):r.push(i))})),(0,u.each)(n,(function(t,e){R(e)}));var i={};return(0,u.each)(n.values,(function(t,o){var r=o.calculateSummaryValue;(0,a.isFunction)(r)&&r((0,_.createMockSummaryCell)(n,e,i))})),n},_fieldsPrepared:function(t){this._fields=t,(0,u.each)(t,(function(t,e){e.index=t,k(e,C)}));var e=M(t,["caption"]);this._eventsStrategy.fireEvent("fieldsPrepared",[t]);for(var n=0;n<t.length;n++)t[n].caption!==e[n].caption&&(0,v.setFieldProperty)(t[n],"caption",t[n].caption,!0);this._descriptions=this._createDescriptions()},isLoading:function(){return this._loadingCount>0},state:function(t,e){var n=this;if(!arguments.length)return{fields:M(n._fields,w),columnExpandedPaths:E(n._data,n._descriptions,"columns"),rowExpandedPaths:E(n._data,n._descriptions,"rows")};t=(0,s.extend)({rowExpandedPaths:[],columnExpandedPaths:[]},t),n._descriptions?(n._fields=A(t.fields,n._fields),n._descriptions=n._createDescriptions(),!e&&n.load(t)):(n.beginLoading(),(0,c.when)(L(n)).done((function(i){n._fields=A(t.fields,i),n._fieldsPrepared(i),!e&&n.load(t)})).always((function(){n.endLoading()})))},beginLoading:function(){this._changeLoadingCount(1)},endLoading:function(){this._changeLoadingCount(-1)},_changeLoadingCount:function(t){var e=this.isLoading();this._loadingCount+=t;var n=this.isLoading();e^n&&this._eventsStrategy.fireEvent("loadingChanged",[n])},_hasPagingValues:function(e,n,i){var o=n+"Take",r=n+"Skip",a=this._data.values,s=this._data[n+"s"],l="row"===n?"column":"row",u=[];if(e.path&&e.area===n){var c=t(s,e.path);if(!(s=c&&c.children))return!1}if(e.oppositePath&&e.area===l){var d=t(s,e.oppositePath);if(!(s=d&&d.children))return!1}for(var h=e[r];h<e[r]+e[o];h++)s[h]&&u.push(s[h].index);return u.every((function(t){if(void 0!==t)return"row"===n?(a[t]||[])[i]:(a[i]||[])[t]}))},_processPagingCacheByArea:function(e,n,i){var o,r=i+"Take",a=i+"Skip",s=this._data[i+"s"],l="row"===i?"column":"row";if(e[r]){if(e.path&&e.area===i){var u=t(s,e.path);s=u&&u.children||[]}if(e.oppositePath&&e.area===l){var c=t(s,e.oppositePath);s=c&&c.children||[]}do{if((o=s[e[a]])&&void 0!==o.index){if(!this._hasPagingValues(e,l,o.index))break;e[a]++,e[r]--}}while(o&&void 0!==o.index&&e[r]);if(e[r]){var d=Math.floor(e[a]/n)*n,h=Math.ceil((e[a]+e[r])/n)*n;e[a]=d,e[r]=h-d}}},_processPagingCache:function(t){var e=this._pageSize;if(!(e<0))for(var n=0;n<t.length;n++)this._processPagingCacheByArea(t[n],e,"row"),this._processPagingCacheByArea(t[n],e,"column")},_loadCore:function(t,e){var n=this,i=this._store,o=this._descriptions,r=t.reload||this.paginate()&&n._isFieldsModified,a=this.paginate(),l=b[t.area];if(t=t||{},i){(0,s.extend)(t,o),t.columnExpandedPaths=t.columnExpandedPaths||E(this._data,t,"columns",n._lastLoadOptions),t.rowExpandedPaths=t.rowExpandedPaths||E(this._data,t,"rows",n._lastLoadOptions),a&&(t.pageSize=this._pageSize),l&&(t.headerName=l),n.beginLoading(),e.always((function(){n.endLoading()}));var u=[t];if(n._eventsStrategy.fireEvent("customizeStoreLoadOptions",[u,r]),r||n._processPagingCache(u),!(u=u.filter((function(t){return!(t.rows.length&&0===t.rowTake)&&!(t.columns.length&&0===t.columnTake)}))).length)return void n._update(e);var d=u.map((function(t){return i.load(t)}));c.when.apply(null,d).done((function(){for(var t=arguments,i=0;i<t.length;i++){var o=u[i],l=t[i],c=i===t.length-1;o.path?n.applyPartialDataSource(o.area,o.path,l,!!c&&e,o.oppositePath):a&&!r&&I(n._data)?n.mergePartialDataSource(l,!!c&&e):((0,s.extend)(n._data,l),n._lastLoadOptions=o,n._update(!!c&&e))}})).fail(e.reject)}else n._update(e)},_sort:function(t,e,n){this._store&&!this._paginate&&function(t,e,n){V(e,t,"rows",n),V(e,t,"columns",n)}(t,e,n)},paginate:function(){return this._paginate&&this._store&&this._store.supportPaging()},isEmpty:function(){var t=this.getAreaFields("data"),e=this.getData();return!t.length||!e.values.length},_update:function(t){var e=this,n=e._descriptions,i=e._data,o=n.values,r=function(t){return t.some((function(t){return t.summaryDisplayMode||t.calculateSummaryValue}))}(o);return(0,c.when)(j(n,i),H(i.rows),H(i.columns)).done((function(){r&&(e._sort(n,i,r),!e.isEmpty()&&(0,_.applyDisplaySummaryMode)(n,i)),e._sort(n,i),!e.isEmpty()&&function(t){return t.some((function(t){return!!t.runningTotal}))}(o)&&(0,_.applyRunningTotal)(n,i),e._data=i,!1!==t&&(0,c.when)(t).done((function(){e._isFieldsModified=!1,e._eventsStrategy.fireEvent("changed"),(0,a.isDefined)(e._data.grandTotalRowIndex)&&(i.grandTotalRowIndex=e._data.grandTotalRowIndex),(0,a.isDefined)(e._data.grandTotalColumnIndex)&&(i.grandTotalColumnIndex=e._data.grandTotalColumnIndex)})),t&&t.resolve(e._data)})),t},store:function(){return this._store},collapseHeaderItem:function(e,n){var i="column"===e?this._data.columns:this._data.rows,o=t(i,n),r=this.getAreaFields(e)[n.length-1];return!(!o||!o.children)&&(this._eventsStrategy.fireEvent("expandValueChanging",[{area:e,path:n,expanded:!1}]),r&&(r.expanded=!1),o.collapsedChildren=o.children,delete o.children,this._update(),this.paginate()&&this.load(),!0)},collapseAll:function(t){var e=this,n=!1,i=this.field(t)||{},o=[(0,l.inArray)(i,this.getAreaFields(i.area))];i.expanded=!1,i&&i.levels&&(o=[],i.levels.forEach((function(t){o.push((0,l.inArray)(t,e.getAreaFields(i.area))),t.expanded=!1}))),(0,v.foreachTree)(this._data[i.area+"s"],(function(t){var e=t[0],i=(0,v.createPath)(t);e&&e.children&&-1!==o.indexOf(i.length-1)&&(e.collapsedChildren=e.children,delete e.children,n=!0)}),!0),n&&this._update()},expandAll:function(t){var e=this.field(t);e&&e.area&&(e.expanded=!0,e&&e.levels&&e.levels.forEach((function(t){t.expanded=!0})),this.load())},expandHeaderItem:function(e,n){var i="column"===e?this._data.columns:this._data.rows,o=t(i,n);if(o&&!o.children){var r=!!o.collapsedChildren,a={area:e,path:n,expanded:!0,needExpandData:!r};return this._eventsStrategy.fireEvent("expandValueChanging",[a]),r?(o.children=o.collapsedChildren,delete o.collapsedChildren,this._update()):this.store()&&this.load(a),r}return!1},mergePartialDataSource:function(t,e){var n,i,o=this,r=o._data;t&&t.values&&(t.rows=t.rows||[],t.columns=t.columns||[],n=f(r.rows,t.rows,r.grandTotalColumnIndex),i=f(r.columns,t.columns,r.grandTotalColumnIndex),(0,c.when)(n,i).done((function(n,i){(n.length||i.length)&&y(r,t.values,n,i),o._update(e)})))},applyPartialDataSource:function(e,i,o,r,a){var s,l,u,d,h=this,p=h._data,m="column"===e?p.columns:p.rows,g="column"===e?p.rows:p.columns;o&&o.values&&(o.rows=o.rows||[],o.columns=o.columns||[],s=t(m,i),l=a&&t(g,a),s&&("column"===e?(d=n(m,s,o.columns,p.grandTotalColumnIndex),u=l?n(g,l,o.rows,p.grandTotalRowIndex):f(p.rows,o.rows,p.grandTotalRowIndex)):(u=n(m,s,o.rows,p.grandTotalRowIndex),d=l?n(g,l,o.columns,p.grandTotalColumnIndex):f(p.columns,o.columns,p.grandTotalColumnIndex)),(0,c.when)(u,d).done((function(t,n){("row"===e&&t.length||"column"===e&&n.length)&&y(p,o.values,t,n),h._update(r)}))))},on:function(t,e){return this._eventsStrategy.on(t,e),this},off:function(t,e){return this._eventsStrategy.off(t,e),this},dispose:function(){var t=this._delayedLoadTask;this._eventsStrategy.dispose(),t&&t.abort(),this._isDisposed=!0},isDisposed:function(){return!!this._isDisposed}}}()),t.exports.default=t.exports},function(t,e,n){"use strict";var i=g(n(3)),o=n(70),r=n(10),a=n(2),s=n(0),l=n(16),u=n(5),c=n(12),d=g(n(8)),h=n(95),f=g(n(168)),p=g(n(109)),m=g(n(308));function g(t){return t&&t.__esModule?t:{default:t}}n(494);var _="<div>",v=(0,r.hasWindow)();function y(t,e){if(t.items)for(var n=0;n<t.items.length;n++){var i=y(t.items[n],e);if(i)return i}if(e(t))return t}var b=[function(t,e){return-!!t.isMeasure+ +!!e.isMeasure},function(t,e){return-!(!t.items||!t.items.length)+ +!(!e.items||!e.items.length)},function(t,e){return+!!(!1===t.isMeasure&&t.field&&t.field.levels&&t.field.levels.length)+-!!(!1===e.isMeasure&&e.field&&e.field.levels&&e.field.levels.length)},(0,h.getCompareFunction)((function(t){return t.text}))];function w(t,e){for(var n=0,i=0;!n&&b[i];)n=b[i++](t,e);return n}function x(t){return t.find(".dx-scrollable").dxScrollable("instance")}var C=m.default.inherit({_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{height:400,layout:0,dataSource:null,onContextMenuPreparing:null,allowSearch:!1,searchTimeout:500,texts:{columnFields:(0,c.format)("dxPivotGrid-columnFields"),rowFields:(0,c.format)("dxPivotGrid-rowFields"),dataFields:(0,c.format)("dxPivotGrid-dataFields"),filterFields:(0,c.format)("dxPivotGrid-filterFields"),allFields:(0,c.format)("dxPivotGrid-allFields")}})},_refreshDataSource:function(){var t=this;t._expandedPaths=[],t._changedHandler=t._changedHandler||function(){(0,u.each)(t._dataChangedHandlers,(function(t,e){e()})),t._fireContentReadyAction(),t._skipStateChange=!0,t.option("state",t._dataSource.state()),t._skipStateChange=!1},t._disposeDataSource(),t.callBase(),t._dataSource&&t._dataSource.on("changed",t._changedHandler)},_disposeDataSource:function(){var t=this._dataSource;t&&(t.off("changed",this._changedHandler),this._dataSource=void 0)},_dispose:function(){this._disposeDataSource(),this.callBase.apply(this,arguments)},_init:function(){this.callBase(),this._refreshDataSource(),this._dataChangedHandlers=[],this._initActions()},_initActions:function(){this._actions={onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing")}},_trigger:function(t,e){this._actions[t](e)},_setOptionsByReference:function(){this.callBase(),(0,s.extend)(this._optionsByReference,{dataSource:!0})},_optionChanged:function(t){switch(t.name){case"dataSource":this._refreshDataSource(),this._invalidate();break;case"layout":case"texts":case"allowSearch":case"searchTimeout":this._invalidate();break;case"onContextMenuPreparing":this._actions[t.name]=this._createActionByOption(t.name);break;default:this.callBase(t)}},_clean:function(t){!t&&this._dataSource&&this.option("state",this._dataSource.state()),this.$element().children(".dx-pivotgridfieldchooser-container").remove()},_renderLayout0:function(t){t.addClass("dx-layout-0");var e=(0,i.default)(_).addClass("dx-row").appendTo(t),n=(0,i.default)(_).addClass("dx-row").appendTo(t),o=(0,i.default)(_).addClass("dx-col").appendTo(e),r=(0,i.default)(_).addClass("dx-col").appendTo(e),a=(0,i.default)(_).addClass("dx-col").appendTo(n),s=(0,i.default)(_).addClass("dx-col").appendTo(n);this._renderArea(o,"all"),this._renderArea(r,"row"),this._renderArea(r,"column"),this._renderArea(a,"filter"),this._renderArea(s,"data")},_renderLayout1:function(t){var e=(0,i.default)(_).addClass("dx-col").appendTo(t),n=(0,i.default)(_).addClass("dx-col").appendTo(t);this._renderArea(e,"all"),this._renderArea(n,"filter"),this._renderArea(n,"row"),this._renderArea(n,"column"),this._renderArea(n,"data")},_renderLayout2:function(t){t.addClass("dx-layout-2");var e=(0,i.default)(_).addClass("dx-row").appendTo(t);this._renderArea(e,"all");var n=(0,i.default)(_).addClass("dx-row").appendTo(t),o=(0,i.default)(_).addClass("dx-col").appendTo(n),r=(0,i.default)(_).addClass("dx-col").appendTo(n);this._renderArea(o,"filter"),this._renderArea(o,"row"),this._renderArea(r,"column"),this._renderArea(r,"data")},_initMarkup:function(){var t=this.$element(),e=(0,i.default)(_).addClass("dx-pivotgridfieldchooser-container").appendTo(t),n=this.option("layout");this.callBase(),t.addClass("dx-pivotgridfieldchooser").addClass("dx-pivotgrid-fields-container"),this._dataChangedHandlers=[];var o=this._dataSource,r="instantly"!==this.option("applyChangesMode")&&o&&o.state();r&&this.option("state")&&o.state(this.option("state"),!0),0===n?this._renderLayout0(e):1===n?this._renderLayout1(e):this._renderLayout2(e),r&&o.state(r,!0)},_renderContentImpl:function(){this.callBase(),this.renderSortable(),this._renderContextMenu(),this.updateDimensions()},_fireContentReadyAction:function(){this._dataSource&&this._dataSource.isLoading()||this.callBase()},_getContextMenuArgs:function(t){var e,n,o=(0,i.default)(t.target).closest(".dx-area-field"),r=(0,i.default)(t.target).closest(".dx-area-fields");if(o.length){var a=o.data("field");a&&(e=this.getDataSource().field(a.index)||a)}return r.length&&(n=r.attr("group")),{event:t,field:e,area:n,items:[]}},_renderContextMenu:function(){var t=this,e=t.$element();t._contextMenu&&t._contextMenu.$element().remove(),t._contextMenu=t._createComponent((0,i.default)(_).appendTo(e),p.default,{onPositioning:function(e){var n=e.event;if(n){var i=t._getContextMenuArgs(n);t._trigger("onContextMenuPreparing",i),i.items&&i.items.length?e.component.option("items",i.items):e.cancel=!0}},target:e,onItemClick:function(t){t.itemData.onItemClick&&t.itemData.onItemClick(t)},cssClass:"dx-pivotgridfieldchooser-context-menu"})},_createTreeItems:function(t,e,n){var i,o=this,r=[],s=[],c=e[0],d={};return c?((0,u.each)(t,(function(t,e){var n=e[c]||"";d[n]=d[n]||[],d[n].push(e),void 0===i&&(i=!0),i=i&&!0===e.isMeasure})),(0,u.each)(d,(function(t,i){var a=n?n+"."+t:t,u=o._createTreeItems(i,e.slice(1),a);t?s.push({key:t,text:t,path:a,isMeasure:u.isMeasure,expanded:(0,l.inArray)(a,o._expandedPaths)>=0,items:u}):r=u})),(r=s.concat(r)).isMeasure=i):(0,u.each)(t,(function(t,e){var n;!0===e.isMeasure&&(n="measure"),!1===e.isMeasure&&(n=e.groupName?"hierarchy":"dimension"),r.push({index:e.index,field:e,key:e.dataField,selected:(0,a.isDefined)(e.area),text:e.caption||e.dataField,icon:n,isMeasure:e.isMeasure,isDefault:e.isDefault})})),r},_createFieldsDataSource:function(t){var e=t&&t.fields()||[];e=e.filter((function(t){return!1!==t.visible&&!(0,a.isDefined)(t.groupIndex)}));var n=this._createTreeItems(e,["dimension","displayFolder"]);return(0,h.foreachDataLevel)(n,(function(t){t.sort(w)}),0,"items"),n},_renderFieldsTreeView:function(t){var e=this,n=e._dataSource,r=e._createComponent(t,f.default,{dataSource:e._createFieldsDataSource(n),showCheckBoxesMode:"normal",expandNodesRecursive:!1,searchEnabled:e.option("allowSearch"),searchTimeout:e.option("searchTimeout"),itemTemplate:function(t,e,n){t.icon&&(0,o.getImageContainer)(t.icon).appendTo(n),(0,i.default)("<span>").toggleClass("dx-area-field",!t.items).data("field",t.field).text(t.text).appendTo(n)},onItemCollapsed:function(t){var n=(0,l.inArray)(t.itemData.path,e._expandedPaths);n>=0&&e._expandedPaths.splice(n,1)},onItemExpanded:function(t){(0,l.inArray)(t.itemData.path,e._expandedPaths)<0&&e._expandedPaths.push(t.itemData.path)},onItemSelectionChanged:function(t){var i,o,s,l=t.itemData,u=!0;if(l.items){if(l.selected)return void r.unselectItem(l);if(e._processDemandState((function(){o=function t(e,n){var i=[];if(e.items)for(var o=0;o<e.items.length;o++)i.push.apply(i,t(e.items[o],n));else(0,a.isDefined)(e.index)&&i.push(n[e.index]);return i}(l,n.fields());for(var t=0;t<o.length;t++)if(o[t].area){u=!1;break}})),u){var c=y(l,(function(t){return t.isDefault}))||y(l,(function(t){return(0,a.isDefined)(t.index)}));return void(c&&r.selectItem(c))}}else i=n.fields()[l.index],l.selected&&(s=i.isMeasure?"data":"column"),i&&(o=[i]);e._applyChanges(o,{area:s,areaIndex:void 0})}});e._dataChangedHandlers.push((function(){var i=x(t),o=i?i.scrollTop():0;r.option({dataSource:e._createFieldsDataSource(n)}),(i=x(t))&&(i.scrollTo({y:o}),i.update())}))},_renderAreaFields:function(t,e){var n=this,i=n._dataSource,o=i?(0,s.extend)(!0,[],i.getAreaFields(e,!0)):[];t.empty(),(0,u.each)(o,(function(e,i){!1!==i.visible&&n.renderField(i,!0).appendTo(t)}))},_renderArea:function(t,e){var n,o,r=this,a=(0,i.default)(_).addClass("dx-area").appendTo(t),s=(0,i.default)(_).addClass("dx-area-fields-header").appendTo(a),l=r.option("texts."+e+"Fields");(0,i.default)("<span>").addClass("dx-area-icon").addClass("dx-area-icon-"+e).appendTo(s),(0,i.default)("<span>").html(" ").appendTo(s),(0,i.default)("<span>").addClass("dx-area-caption").text(l).appendTo(s);var u=(0,i.default)(_).addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").appendTo(a);"all"!==e?(u.attr("group",e).attr("allow-scrolling",!0),n=(0,i.default)(_).addClass("dx-area-field-container").appendTo(u),o=function(){r._renderAreaFields(n,e)},r._dataChangedHandlers.push(o),o(),u.dxScrollable()):(a.addClass("dx-all-fields"),u.addClass("dx-treeview-border-visible"),r._renderFieldsTreeView(u))},_getSortableOptions:function(){return{}},_adjustSortableOnChangedArgs:function(){},resetTreeView:function(){var t=this.$element().find(".dx-treeview").dxTreeView("instance");t&&(t.option("searchValue",""),t.collapseAll())},applyChanges:function(){var t=this.option("state");(0,a.isDefined)(t)&&this._dataSource.state(t)},cancelChanges:function(){var t=this._dataSource;return!t.isLoading()&&(this.option("state",t.state()),!0)},getDataSource:function(){return this._dataSource},updateDimensions:function(){this.$element().find(".dx-area .dx-scrollable").dxScrollable("update")},_visibilityChanged:function(t){t&&v&&this.updateDimensions()}});(0,d.default)("dxPivotGridFieldChooser",C),t.exports=C},function(t,e,n){"use strict";t.exports=n(1023),t.exports.default=t.exports},function(t,e,n){"use strict";t.exports=n(1035),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(20),r=n(200),a=n(33),s=n(90),l=n(37),u=n(2),c=n(0).extend,d=n(24).getBoundingRect,h=n(74),f={top:{my:"bottom center",at:"top center",collision:"none"},bottom:{my:"top center",at:"bottom center",collision:"none"},right:{my:"left center",at:"right center",collision:"none"},left:{my:"right center",at:"left center",collision:"none"}},p=o.inherit({_getDefaultOptions:function(){return c(this.callBase(),{hoverStateEnabled:!1,value:0,tooltipEnabled:!1,tooltipFormat:function(t){return t},tooltipPosition:"top",tooltipShowMode:"onHover",tooltipFitIn:null})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-slider-handle"),this.setAria({role:"slider",valuenow:this.option("value")})},_render:function(){this._renderTooltip(),this.callBase()},_renderTooltip:function(){this.option("tooltipEnabled")?(this._$tooltip||(this._$tooltip=i("<div>").appendTo(this.$element())),this._$slider=this.$element().closest(".dx-slider"),this._updateTooltip()):this._removeTooltip()},_createTooltip:function(){return!this._tooltip&&(this._tooltip=this._createComponent(this._$tooltip,r,{visible:!0,target:this.$element(),closeOnOutsideClick:!1,container:this.$element(),hideTopOverlayHandler:null,closeOnTargetScroll:!1,onPositioned:function(t){this._saveTooltipElements(t.component),this._saveTooltipLocation(),this._centeredTooltipPosition()}.bind(this),animation:null,arrowPosition:null,templatesRenderAsynchronously:!1}),!0)},_removeTooltip:function(){this._$tooltip&&(this._$tooltip.remove(),delete this._$tooltip,delete this._tooltip)},_renderTooltipPosition:function(){if(this._tooltip){var t=this.option("tooltipPosition");this._saveTooltipElements(),this._resetTooltipPosition(),"string"===u.type(t)&&(t=c({boundary:this._$slider,boundaryOffset:{h:1,v:1}},f[t])),this._tooltip.option("position",t),this._saveTooltipLocation()}},_saveTooltipElements:function(t){t=this._tooltip||t,this._$tooltipContent=t.$content().parent(),this._$tooltipArrow=this._$tooltipContent.find(".dx-popover-arrow")},_resetTooltipPosition:function(){a.resetPosition(this._$tooltipContent),a.resetPosition(this._$tooltipArrow)},_saveTooltipLocation:function(){this._contentLocate=a.locate(this._$tooltipContent)},_centeredTooltipPosition:function(){if(this._tooltip){this._$tooltipContent.outerWidth("auto");var t=d(this._$tooltipContent.get(0)).width,e=Math.ceil(t),n=e%2+e;this._$tooltipContent.outerWidth(n);var i=(n-this.$element().width())/2;this._contentLocate.left=-i,this._$tooltipArrow.css({marginLeft:-this._$tooltipArrow.outerWidth()/2,left:"50%"}),this._fitTooltip()}},_fitTooltip:function(){if(this._tooltip){var t=this.option("tooltipPosition");"string"===u.type(t)&&(t=c({of:this.$element(),boundary:this._$slider,boundaryOffset:{h:2,v:1}},f[t],{collision:"fit none"}));var e=s.calculate(this._$tooltipContent,t),n="left"===e.h.collisionSide,i=(n?-1:1)*e.h.oversize,o=this._contentLocate.left,r=this._contentLocate.left+this._$tooltipContent.outerWidth()-this._$tooltipArrow.outerWidth();a.move(this._$tooltipContent,{left:this._contentLocate.left+(n?1:-1)*e.h.oversize}),a.move(this._$tooltipArrow,{left:l.fitIntoRange(i,o,r)})}},_getFormattedValue:function(t){return h.format(t,this.option("tooltipFormat"))},_renderValue:function(){if(this._tooltip){var t=this.option("value");this._tooltip.$content().html(this._getFormattedValue(t)),this._fitTooltip()}},_updateTooltip:function(){var t=/^onhover$/i.test(this.option("tooltipShowMode"));t||this._createTooltip(),this.$element().toggleClass("dx-slider-tooltip-on-hover",t),this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition()},_clean:function(){this.callBase(),delete this._$tooltip,delete this._tooltip},_ensureTooltipIsCentered:function(t,e){u.isDefined(t)&&u.isDefined(e)&&t.toString().length!==e.toString().length&&this._centeredTooltipPosition()},_optionChanged:function(t){switch(t.name){case"tooltipFormat":this._renderValue();break;case"value":this._renderValue();var e=this._getFormattedValue(t.value),n=this._getFormattedValue(t.previousValue);this._ensureTooltipIsCentered(e,n),this.setAria("valuenow",t.value);break;case"tooltipEnabled":this._renderTooltip();break;case"tooltipPosition":this._renderTooltipPosition(),this._centeredTooltipPosition();break;case"tooltipShowMode":this._updateTooltip();break;case"tooltipFitIn":this._fitTooltip();break;default:this.callBase(t)}},fitTooltipPosition:function(){this._fitTooltip()},updateTooltip:function(){this._createTooltip()&&(this._renderTooltipPosition(),this._renderValue(),this._centeredTooltipPosition())},repaint:function(){this._renderTooltipPosition(),this._centeredTooltipPosition(),this._tooltip&&this._tooltip._visibilityChanged(!0)}});t.exports=p},function(t,e,n){"use strict";var i=b(n(3)),o=b(n(45)),r=b(n(8)),a=b(n(171)),s=n(2),l=n(0),u=n(5),c=b(n(62)),d=b(n(496)),h=b(n(284)),f=b(n(142)),p=b(n(110)),m=b(n(234)),g=b(n(12)),_=b(n(43)),v=b(n(26)),y=b(n(145));function b(t){return t&&t.__esModule?t:{default:t}}function w(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var x="dx-recurrence-repeat-end",C="dx-recurrence-radiogroup-repeat-type",S=[{recurrence:"dxScheduler-recurrenceHourly",value:"hourly"},{recurrence:"dxScheduler-recurrenceDaily",value:"daily"},{recurrence:"dxScheduler-recurrenceWeekly",value:"weekly"},{recurrence:"dxScheduler-recurrenceMonthly",value:"monthly"},{recurrence:"dxScheduler-recurrenceYearly",value:"yearly"}],k=S.map((function(t){return{text:function(){return g.default.format(t.recurrence)},value:t.value}})),I=[{text:function(){return g.default.format("dxScheduler-recurrenceNever")},value:"never"},{text:function(){return g.default.format("dxScheduler-recurrenceRepeatOnDate")},value:"until"},{text:function(){return g.default.format("dxScheduler-recurrenceRepeatCount")},value:"count"}],T=["SU","MO","TU","WE","TH","FR","SA"],E=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._recurrenceRule=a.default.getRecurrenceRule(e).rule}var e,n,i;return e=t,(n=[{key:"makeRules",value:function(t){this._recurrenceRule=a.default.getRecurrenceRule(t).rule}},{key:"makeRule",value:function(t,e){e?(0,s.isDefined)(t)&&("until"===t&&delete this._recurrenceRule.count,"count"===t&&delete this._recurrenceRule.until,this._recurrenceRule[t]=e):delete this._recurrenceRule[t]}},{key:"repeatableRule",value:function(){var t=this._recurrenceRule;return"count"in t?"count":"until"in t?"until":null}},{key:"recurrenceString",value:function(){return a.default.getRecurrenceString(this._recurrenceRule)}},{key:"rules",value:function(){return this._recurrenceRule}},{key:"daysFromByDayRule",value:function(){return a.default.daysFromByDayRule(this._recurrenceRule)}}])&&w(e.prototype,n),i&&w(e,i),t}(),O=c.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{value:null,startDate:new Date,firstDayOfWeek:void 0})},_getFirstDayOfWeek:function(){var t=this.option("firstDayOfWeek");return(0,s.isDefined)(t)?t:_.default.firstDayOfWeekIndex()},_createComponent:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(t,e,n)},_init:function(){this.callBase(),this._recurrenceRule=new E(this.option("value"))},_render:function(){this.callBase(),this.$element().addClass("dx-recurrence-editor"),this._$container=(0,i.default)("<div>").addClass("dx-recurrence-editor-container").appendTo(this.$element()),this._renderEditors()},changeValueByVisibility:function(t){t?this.option("value")||this._handleDefaults():(this._recurrenceRule.makeRules(""),this.option("value",""))},_handleDefaults:function(){this._recurrenceRule.makeRule("freq",S[1].value),this._changeEditorValue()},_changeEditorValue:function(){this.option("value",this._recurrenceRule.recurrenceString()||"")},_renderEditors:function(){this._renderFreqEditor(),this._renderIntervalEditor(),this._renderRepeatOnEditor(),this._renderRepeatEndEditor()},_renderFreqEditor:function(){var t=this,e=(this._recurrenceRule.rules().freq||S[1].value).toLowerCase(),n=(0,i.default)("<div>").addClass("dx-recurrence-selectbox-freq").addClass("dx-field-value"),o=(0,i.default)("<div>").text(g.default.format("dxScheduler-editorLabelRecurrence")).addClass("dx-field-label");this._freqEditor=this._createComponent(n,p.default,{field:"freq",items:k,value:e,valueExpr:"value",displayExpr:"text",layout:"horizontal",onValueChanged:function(e){t._valueChangedHandler(e)}});var r=(0,i.default)("<div>").addClass("dx-field").addClass("dx-recurrence-freq-field").append(o,n);this._$container.append(r)},_renderIntervalEditor:function(){var t=this._recurrenceRule.rules().freq||"daily",e=(0,i.default)("<div>").addClass("dx-recurrence-numberbox-interval").addClass("dx-field-value"),n=(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceRepeatEvery")).addClass("dx-recurrence-numberbox-interval-label").addClass("dx-field-label");this._$intervalTypeLabel=(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceRepeat".concat(t.charAt(0).toUpperCase()).concat(t.substr(1).toLowerCase()))).addClass(C+"-label");var o=this._recurrenceRule.rules().interval||1;this._intervalEditor=this._createComponent(e,f.default,{field:"interval",min:1,value:o,showSpinButtons:!0,useLargeSpinButtons:!1,onValueChanged:this._valueChangedHandler.bind(this)});var r=(0,i.default)("<div>").addClass("dx-field").addClass("dx-recurrence-interval-field").append(n,e,this._$intervalTypeLabel);this._$container.append(r),this._setAriaDescribedBy(this._intervalEditor,n)},_renderRepeatOnEditor:function(){this._clearRepeatOnEditor();var t=(this._recurrenceRule.rules().freq||"").toLowerCase();if((0,s.isDefined)(this._$repeatOnEditor)||(this._$repeatOnEditor=(0,i.default)("<div>").addClass("dx-recurrence-repeat-on").addClass("dx-field").appendTo(this._$container)),!t||"daily"===t||"minutely"===t||"hourly"===t)return this._clearRepeatOnEditor(),void this._clearRepeatOnLabel();(0,s.isDefined)(this._$repeatOnLabel)||this._renderRepeatOnLabel(this._$repeatOnEditor),"weekly"!==t||this._$repeatOnWeek?"monthly"!==t||this._$repeatOnMonth?"yearly"!==t||this._$repeatOnYear||this._renderRepeatOnYearEditor():this._renderRepeatOnMonthEditor():this._renderRepeatOnWeekEditor()},_renderRepeatOnLabel:function(t){this._$repeatOnLabel=(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceRepeatOn")).addClass("dx-recurrence-repeat-on-label").addClass("dx-field-label"),t.append(this._$repeatOnLabel)},_clearRepeatOnEditor:function(){(0,s.isDefined)(this._$repeatOnWeek)&&(this._$repeatOnWeek.detach(),this._$repeatOnWeek.remove(),delete this._$repeatOnWeek),(0,s.isDefined)(this._$repeatOnMonth)&&(this._$repeatOnMonth.detach(),this._$repeatOnMonth.remove(),delete this._$repeatOnMonth),(0,s.isDefined)(this._$repeatOnYear)&&(this._$repeatOnYear.detach(),this._$repeatOnYear.remove(),delete this._$repeatOnYear)},_clearRepeatOnLabel:function(){(0,s.isDefined)(this._$repeatOnLabel)&&(this._$repeatOnLabel.detach(),this._$repeatOnLabel.remove(),delete this._$repeatOnLabel)},_getDayIndex:function(){var t=this._getFirstDayOfWeek();return function(e){return(e+t)%7}},_renderRepeatOnWeekEditor:function(){var t=this,e=this._getFirstDayOfWeek(),n=this._recurrenceRule.rules().byday?this._recurrenceRule.rules().byday.split(","):T[e],o=_.default.getDayNames("abbreviated"),r=T.slice(e).concat(T.slice(0,e)),a=o.slice(e).concat(o.slice(0,e)).map((function(t,e){return{text:t,key:r[e]}}));this._$repeatOnWeek=(0,i.default)("<div>").addClass("dx-recurrence-button-group").appendTo(this._$repeatOnEditor),this._weekEditor=this._createComponent(this._$repeatOnWeek,h.default,{items:a,selectionMode:"multiple",selectedItemKeys:n,keyExpr:"key",onSelectionChanged:function(e){var n=e.component.option("selectedItemKeys");t._recurrenceRule.makeRule("byday",n),t._changeEditorValue()}})},_daysOfWeekByRules:function(){var t=this._recurrenceRule.daysFromByDayRule();return t.length||(t=[T[this.option("startDate").getDay()]]),t},_renderRepeatOnMonthEditor:function(){this._$repeatOnMonth=(0,i.default)("<div>").addClass("dx-recurrence-repeat-on-month").addClass("dx-field-value").appendTo(this._$repeatOnEditor),this._renderDayOfMonthEditor(this._$repeatOnMonth)},_renderRepeatOnYearEditor:function(){this._$repeatOnYear=(0,i.default)("<div>").addClass("dx-recurrence-repeat-on-year").addClass("dx-field-value").appendTo(this._$repeatOnEditor);for(var t=[],e=_.default.getMonthNames("wide"),n=0;n<12;n++)t[n]={value:String(n+1),text:e[n]};var o=this._monthOfYearByRules(),r=(0,i.default)("<div>").addClass("dx-recurrence-selectbox-month-of-year").appendTo(this._$repeatOnYear);this._monthEditor=this._createComponent(r,p.default,{field:"bymonth",items:t,value:o,displayExpr:"text",valueExpr:"value",onValueChanged:function(t){this._valueChangedHandler.call(this,t);var e=parseInt(t.component.option("value"));if(this._dayEditor&&e){var n=new Date((new Date).getFullYear(),parseInt(e),0).getDate();2===e&&(n=29),this._dayEditor.option("max",n)}}.bind(this)}),this._renderDayOfMonthEditor(this._$repeatOnYear)},_monthOfYearByRules:function(){var t=this._recurrenceRule.rules().bymonth;return t||(t=this.option("startDate").getMonth()+1),t},_renderDayOfMonthEditor:function(t){var e=this._dayOfMonthByRules(),n=(0,i.default)("<div>").addClass("dx-recurrence-numberbox-day-of-month");this._dayEditor=this._createComponent(n,f.default,{field:"bymonthday",min:1,max:31,showSpinButtons:!0,useLargeSpinButtons:!1,value:e,onValueChanged:this._valueChangedHandler.bind(this)}),t.append(n)},_dayOfMonthByRules:function(){var t=this._recurrenceRule.rules().bymonthday;return t||(t=this.option("startDate").getDate()),t},_setAriaDescribedBy:function(t,e){var n="label-".concat(new o.default);t.setAria("describedby",n),t.setAria("id",n,e)},_handleRepeatEndDefaults:function(){this._recurrenceRule.makeRule("count",1),this._changeEditorValue()},_renderRepeatEndEditor:function(t){(t=(0,s.isDefined)(t)?t:this._recurrenceRule.repeatableRule())||(t="count"),(0,s.isDefined)(this._$repeatEndEditor)||((0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceEnd")).addClass("dx-recurrence-repeat-end-container-label").addClass("dx-field-label").appendTo(this._$container),this._$repeatEndEditor=(0,i.default)("<div>").addClass("dx-recurrence-repeat-end-container").addClass("dx-field").appendTo(this._$container),this._renderRepeatEndTypeEditor())},_renderRepeatEndTypeEditor:function(){var t=this,e=this._recurrenceRule.repeatableRule()||"never";this._$repeatTypeEditor=(0,i.default)("<div>").addClass(C).addClass("dx-field-value").appendTo(this._$repeatEndEditor),this._repeatTypeEditor=this._createComponent(this._$repeatTypeEditor,d.default,{items:I,value:e,displayExpr:"text",valueExpr:"value",itemTemplate:function(e){return"count"===e.value?t._renderRepeatCountEditor():"until"===e.value?t._renderRepeatUntilEditor():t._renderDefaultRepeatEnd()},layout:"vertical",onValueChanged:this._repeatTypeValueChangedHandler.bind(this)}),this._disableRepeatEndParts(e)},_renderDefaultRepeatEnd:function(){var t=(0,i.default)("<div>").addClass(x+"-wrapper");return(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceNever")).addClass(x+"-label").appendTo(t),t},_repeatTypeValueChangedHandler:function(t){var e=t.value;this._disableRepeatEndParts(e),"until"===e&&this._recurrenceRule.makeRule(e,this._getUntilValue()),"count"===e&&this._recurrenceRule.makeRule(e,this._repeatCountEditor.option("value")),"never"===e&&(this._recurrenceRule.makeRule("count",""),this._recurrenceRule.makeRule("until","")),this._changeEditorValue()},_disableRepeatEndParts:function(t){"until"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!1)),"count"===t&&(this._repeatCountEditor.option("disabled",!1),this._repeatUntilDate.option("disabled",!0)),"never"===t&&(this._repeatCountEditor.option("disabled",!0),this._repeatUntilDate.option("disabled",!0))},_renderRepeatCountEditor:function(){var t=this._recurrenceRule.rules().count||1,e=(0,i.default)("<div>").addClass(x+"-wrapper");return(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceAfter")).addClass(x+"-label").appendTo(e),this._$repeatCountEditor=(0,i.default)("<div>").addClass("dx-recurrence-numberbox-repeat-count").addClass("dx-field-value").appendTo(e),(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceRepeatCount")).addClass(x+"-label").appendTo(e),this._repeatCountEditor=this._createComponent(this._$repeatCountEditor,f.default,{field:"count",min:1,showSpinButtons:!0,useLargeSpinButtons:!1,value:t,onValueChanged:this._repeatCountValueChangeHandler.bind(this)}),e},_repeatCountValueChangeHandler:function(t){if("count"===this._recurrenceRule.repeatableRule()){var e=t.value;this._recurrenceRule.makeRule("count",e),this._changeEditorValue()}},_formatUntilDate:function(t){return this._recurrenceRule.rules().until&&v.default.sameDate(this._recurrenceRule.rules().until,t)?t:v.default.setToDayEnd(t)},_renderRepeatUntilEditor:function(){var t=this._recurrenceRule.rules().until||this._formatUntilDate(new Date),e=(0,i.default)("<div>").addClass(x+"-wrapper");return(0,i.default)("<div>").text(g.default.format("dxScheduler-recurrenceOn")).addClass(x+"-label").appendTo(e),this._$repeatDateEditor=(0,i.default)("<div>").addClass("dx-recurrence-datebox-until-date").addClass("dx-field-value").appendTo(e),this._repeatUntilDate=this._createComponent(this._$repeatDateEditor,m.default,{field:"until",value:t,type:"date",onValueChanged:this._repeatUntilValueChangeHandler.bind(this),calendarOptions:{firstDayOfWeek:this._getFirstDayOfWeek()}}),e},_repeatUntilValueChangeHandler:function(t){if("until"===this._recurrenceRule.repeatableRule()){var e=this._formatUntilDate(new Date(t.value));this._repeatUntilDate.option("value",e),this._recurrenceRule.makeRule("until",e),this._changeEditorValue()}},_valueChangedHandler:function(t){var e=t.component.option("value"),n=t.component.option("field");this.option("visible")?(this._recurrenceRule.makeRule(n,e),this._makeRepeatOnRule(n,e),this._changeEditorValue()):this.option("value","")},_makeRepeatOnRule:function(t,e){"freq"===t&&("daily"===e&&(this._recurrenceRule.makeRule("byday",""),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"weekly"===e&&(this._recurrenceRule.makeRule("byday",this._daysOfWeekByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("bymonthday","")),"monthly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",""),this._recurrenceRule.makeRule("byday","")),"yearly"===e&&(this._recurrenceRule.makeRule("bymonthday",this._dayOfMonthByRules()),this._recurrenceRule.makeRule("bymonth",this._monthOfYearByRules()),this._recurrenceRule.makeRule("byday","")))},_optionChanged:function(t){switch(t.name){case"value":this._recurrenceRule.makeRules(t.value),this._changeRepeatCountValue(),this._repeatTypeEditor.option("value",this._recurrenceRule.repeatableRule()||"never"),this._renderRepeatEndEditor(),this._renderRepeatOnEditor(),this._changeEditorsValues(this._recurrenceRule.rules()),this.callBase(t);break;case"startDate":this._renderRepeatOnEditor(),this._makeRepeatOnRule("freq",this._recurrenceRule.rules().freq),(0,s.isDefined)(this._recurrenceRule.recurrenceString())&&this._changeEditorValue();break;case"firstDayOfWeek":this._renderRepeatOnEditor(),this._$repeatDateEditor&&this._repeatUntilDate.option("calendarOptions.firstDayOfWeek",this._getFirstDayOfWeek());break;default:this.callBase(t)}},_changeEditorsValues:function(t){this._freqEditor.option("value",(t.freq||S[1].value).toLowerCase()),this._changeRepeatTypeLabel(),this._intervalEditor.option("value",t.interval||1),this._changeRepeatCountValue(),this._changeRepeatUntilValue(),this._changeDayOfMonthValue(),this._changeMonthOfYearValue()},_changeRepeatTypeLabel:function(){var t=this.$element().find(".".concat(C).concat("-label"));if(t.length){var e=this._recurrenceRule.rules().freq||"daily";(0,u.each)(t,(function(t,n){(0,i.default)(n).text(g.default.format("dxScheduler-recurrenceRepeat".concat(e.charAt(0).toUpperCase()).concat(e.substr(1).toLowerCase())))}))}},_changeRepeatCountValue:function(){if(this._$repeatCountEditor){var t=this._recurrenceRule.rules().count||1;this._repeatCountEditor.option("value",t)}},_changeRepeatUntilValue:function(){this._$repeatDateEditor&&this._repeatUntilDate.option("value",this._getUntilValue())},_getUntilValue:function(){return this._recurrenceRule.rules().until||this._formatUntilDate(new Date)},_changeDayOfMonthValue:function(){if(this._$repeatOnMonth||this._$repeatOnYear){var t=this._dayOfMonthByRules()||1;this._dayEditor.option("value",t)}},_changeMonthOfYearValue:function(){if(this._$repeatOnYear){var t=this._monthOfYearByRules()||1;this._monthEditor.option("value",t)}},toggle:function(){this._freqEditor.focus()},setAria:function(){this._switchEditor&&this._switchEditor.setAria(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])}}).include(y.default);(0,r.default)("dxRecurrenceEditor",O),t.exports=O},function(t,e,n){"use strict";var i=n(501),o=n(4).noop,r=n(1042),a=n(1043),s=n(1044),l=n(2),u=l.isString,c=l.isNumeric;function d(t,e,n){var i=[],o="in"===n?"_to":"_from",r="in"===n?"_from":"_to";return t.links.map((function(t){return t[o]._name===e})).forEach((function(e,n){e&&i.push({index:n,weight:t.links[n]._weight,node:t.links[n][r]._name})})),i}var h=n(118).inherit({_rootClass:"dxs-sankey",_rootClassPrefix:"dxs",_proxyData:[],_optionChangesMap:{dataSource:"DATA_SOURCE",sortData:"DATA_SOURCE",alignment:"DATA_SOURCE",node:"BUILD_LAYOUT",link:"BUILD_LAYOUT",palette:"BUILD_LAYOUT",paletteExtensionMode:"BUILD_LAYOUT"},_themeDependentChanges:["BUILD_LAYOUT"],_getDefaultSize:function(){return{width:400,height:400}},_themeSection:"sankey",_fontFields:["label.font"],_optionChangesOrder:["DATA_SOURCE"],_initialChanges:["DATA_SOURCE"],_initCore:function(){this._groupLinks=this._renderer.g().append(this._renderer.root),this._groupNodes=this._renderer.g().append(this._renderer.root),this._groupLabels=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._drawLabels=!0,this._nodes=[],this._links=[],this._gradients=[]},_disposeCore:o,_applySize:function(t){this._rect=t.slice();var e=this._getOption("adaptiveLayout");return e.keepLabels||this._rect[2]-this._rect[0]>e.width?this._drawLabels=!0:this._drawLabels=!1,this._change(["BUILD_LAYOUT"]),this._rect},_eventsMap:{onNodeHoverChanged:{name:"nodeHoverChanged"},onLinkHoverChanged:{name:"linkHoverChanged"}},_customChangesOrder:["BUILD_LAYOUT","NODES_DRAW","LINKS_DRAW","LABELS","DRAWN"],_dataSourceChangedHandler:function(){this._requestChange(["BUILD_LAYOUT"])},_change_DRAWN:function(){this._drawn()},_change_DATA_SOURCE:function(){this._change(["DRAWN"]),this._updateDataSource()},_change_LABELS:function(){this._applyLabelsAppearance()},_change_BUILD_LAYOUT:function(){this._groupNodes.clear(),this._groupLinks.clear(),this._groupLabels.clear(),this._buildLayout()},_change_NODES_DRAW:function(){var t=this;t._nodes.forEach((function(e,n){var i=t._renderer.rect().attr(e.rect).append(t._groupNodes);e.element=i})),this._applyNodesAppearance()},_change_LINKS_DRAW:function(){var t=this;t._links.forEach((function(e,n){var i=t._renderer.g().attr({class:"link","data-link-idx":n}).append(t._groupLinks);e.overlayElement=t._renderer.path([],"area").attr({d:e.d}).append(i),e.element=t._renderer.path([],"area").attr({d:e.d}).append(i)})),this._applyLinksAppearance()},_suspend:function(){this._applyingChanges||this._suspendChanges()},_resume:function(){this._applyingChanges||this._resumeChanges()},_showTooltip:o,hideTooltip:o,clearHover:function(){this._suspend(),this._nodes.forEach((function(t){t.isHovered()&&t.hover(!1)})),this._links.forEach((function(t){t.isHovered()&&t.hover(!1),t.isAdjacentNodeHovered()&&t.adjacentNodeHover(!1)})),this._resume()},_applyNodesAppearance:function(){this._nodes.forEach((function(t){var e=t.getState();t.element.smartAttr(t.states[e])}))},_applyLinksAppearance:function(){this._links.forEach((function(t){var e=t.getState();t.element.smartAttr(t.states[e]),t.overlayElement.smartAttr(t.overlayStates[e])}))},_hitTestTargets:function(t,e){var n,i=this;return this._proxyData.some((function(o){if(n=o.call(i,t,e))return!0})),n},_getData:function(){var t=this,e=t._dataSourceItems()||[],n=t._getOption("sourceField",!0),i=t._getOption("targetField",!0),o=t._getOption("weightField",!0),r=[];return e.forEach((function(e){var a=Object.prototype.hasOwnProperty.bind(e);a(n)?a(i)?a(o)?u(e[n])?u(e[i])?!c(e[o])||e[o]<=0?t._incidentOccurred("E2009",o):r.push([e[n],e[i],e[o]]):t._incidentOccurred("E2008",i):t._incidentOccurred("E2008",n):t._incidentOccurred("E2007",o):t._incidentOccurred("E2007",i):t._incidentOccurred("E2007",n)})),r},_buildLayout:function(){var t=this,e=this,n=e._getData(),o=this._rect,l=e._getOption("node"),u=e._getOption("sortData"),c=e._getOption("layoutBuilder",!0)||s,h={x:o[0],y:o[1],width:o[2]-o[0],height:o[3]-o[1]},f=c.computeLayout(n,u,{availableRect:h,nodePadding:l.padding,nodeWidth:l.width,nodeAlign:e._getOption("alignment",!0)},e._incidentOccurred);if(e._layoutMap=f,!Object.prototype.hasOwnProperty.call(f,"error")){var p={},m=0,g=e._getOption("link"),_=f.nodes.map((function(t){return t.length})).reduce((function(t,e){return t+e}),0),v=e._themeManager.createPalette(e._getOption("palette",!0),{useHighlight:!0,extensionMode:e._getOption("paletteExtensionMode",!0),count:_});e._nodes=[],e._links=[],e._gradients.forEach((function(t){t.dispose()})),e._gradients=[],e._shadowFilter&&e._shadowFilter.dispose(),f.nodes.forEach((function(t){t.forEach((function(t){var n=l.color||v.getNextColor(),i=new r(e,{id:m,color:n,rect:t,options:l,linksIn:d(f,t._name,"in"),linksOut:d(f,t._name,"out")});e._nodes.push(i),m++,p[t._name]=n}))})),f.links.forEach((function(n){var o=null;g.colorMode===i.COLOR_MODE_GRADIENT&&(o=e._renderer.linearGradient([{offset:"0%","stop-color":p[n._from._name]},{offset:"100%","stop-color":p[n._to._name]}]),t._gradients.push(o));var r=g.color;g.colorMode===i.COLOR_MODE_SOURCE?r=p[n._from._name]:g.colorMode===i.COLOR_MODE_TARGET&&(r=p[n._to._name]);var s=new a(e,{d:n.d,boundingRect:n._boundingRect,color:r,options:g,connection:{source:n._from._name,target:n._to._name,weight:n._weight},gradient:o});e._links.push(s)})),e._renderer.initHatching(),e._change(["NODES_DRAW","LINKS_DRAW","LABELS"])}e._change(["DRAWN"])},_applyLabelsAppearance:function(){var t=this,e=t._getOption("label"),n=t._rect[2]-t._rect[0],i=t._getOption("node");if(t._shadowFilter=t._renderer.shadowFilter("-50%","-50%","200%","200%").attr(e.shadow),t._groupLabels.clear(),t._drawLabels&&e.visible){var o=(n-(i.width+e.horizontalOffset)-t._layoutMap.cascades.length*i.width)/(t._layoutMap.cascades.length-1)-e.horizontalOffset;t._nodes.forEach((function(n){t._createLabel(n,e,t._shadowFilter.id),function(t,e,n,i){t._label.getBBox().width>n&&t.labelText.applyEllipsis(n);var o=t._label.getBBox(),r=e.verticalOffset,a=e.horizontalOffset,s=Math.round(t.rect.y+t.rect.height/2-o.y-o.height/2)+r,l=t.rect.x+a+t.rect.width-o.x;l+o.width>=i[2]-i[0]&&(l=t.rect.x-a-o.x-o.width),s>=i[3]&&(s=i[3]),s-o.height<i[1]&&(s=t.rect.y-o.y+r),t.labelText.attr({translateX:l,translateY:s})}(n,e,o,t._rect)})),"none"!==e.overlappingBehavior&&t._nodes.forEach((function(n){var i=n._label.getBBox();t._nodes.forEach((function(t){var o=t._label.getBBox();n.id!==t.id&&s.overlap(i,o)&&("ellipsis"===e.overlappingBehavior?n.labelText.applyEllipsis(o.x-i.x):"hide"===e.overlappingBehavior&&n.labelText.remove())}))}))}},_createLabel:function(t,e,n){var i=e.customizeText(t),o=t.getLabelAttributes(e,n);i&&(t._label=this._renderer.g().append(this._groupLabels),t.labelText=this._renderer.text(i).attr(o.attr).css(o.css),t.labelText.append(t._label))},_getMinSize:function(){var t=this._getOption("adaptiveLayout");return[t.width,t.height]},getAllNodes:function(){return this._nodes.slice()},getAllLinks:function(){return this._links.slice()}});n(8)("dxSankey",h),t.exports=h,h.addPlugin(n(166).plugin)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.COLOR_MODE_GRADIENT="gradient",e.COLOR_MODE_SOURCE="source",e.COLOR_MODE_TARGET="target",e.COLOR_MODE_NONE="none"},function(t,e,n){"use strict";var i={maxOfArray:function(t,e){var n=0,i=function(t){return t};e&&(i=e);for(var o=0;o<t.length;o++)i(t[o])>n&&(n=i(t[o]));return n}},o=function(t){var e=[];return t.forEach((function(t){-1===e.indexOf(t[0])&&e.push(t[0]),-1===e.indexOf(t[1])&&e.push(t[1])})),e},r=function(t,e){var n=[];return t.forEach((function(t){t[0]===e&&-1===n.indexOf(t[1])&&n.push(t[1])})),n},a=function(t,e){var n=[];return t.forEach((function(t){t[1]===e&&-1===n.indexOf(t[0])&&n.push(t[0])})),n},s={_hasCycle:!1,_sortedList:[],hasCycle:function(t){var e=this;this._hasCycle=!1,this._sortedList=[];var n={},i=o(t);return i.forEach((function(t){n[t]={color:"white"}})),i.forEach((function(i){"white"===n[i].color&&e._depthFirstSearch(t,n,i)})),this._sortedList.reverse(),this._hasCycle},_depthFirstSearch:function(t,e,n){e[n].color="gray";for(var i=r(t,n),o=0;o<i.length;o++)"white"===e[i[o]].color?this._depthFirstSearch(t,e,i[o]):"gray"===e[i[o]].color&&(this._hasCycle=!0);this._sortedList.push({name:n,lp:null,incoming:a(t,n),outgoing:r(t,n)}),e[n].color="black"},computeLongestPaths:function(t){var e=this._sortedList;return e.forEach((function(n){var o=a(t,n.name);if(0===o.length)n.lp=0;else{var r=[];o.forEach((function(t){r.push(e.filter((function(e){return e.name===t}))[0].lp)})),n.lp=i.maxOfArray(r)+1}})),this._sortedList}};t.exports={struct:s,routines:i,getVertices:o,getAdjacentVertices:r,getReverseAdjacentVertices:a}},function(t,e,n){"use strict";var i=n(61),o=n(38),r=n(1052),a={_displayNames:r.displayNames,_list:r.timezones,getTimezones:function(){return this._list},getDisplayNames:function(){return this._displayNames},queryableTimezones:function(){return i(this.getTimezones())},getTimezoneById:function(t){var e,n=0,i=this.getTimezones();if(t)for(;!e;){if(!i[n])return void o.log("W0009",t);i[n].id===t&&(e=i[n]),n++}return e},getTimezoneOffsetById:function(t,e){var n,i,o,r,a=this.getTimezoneById(t);if(a){if(a.link){var s=this.getTimezones()[a.link];n=s.offsets,o=s.untils,i=s.offsetIndices}else n=a.offsets,o=a.untils,i=a.offsetIndices;r=this.getUtcOffset(n,i,o,e)}return r},getUtcOffset:function(t,e,n,i){for(var o=0,r=e.split(""),a=n.split("|").map((function(t){return"Infinity"===t?null:1e3*parseInt(t,36)})),s=0,l=0,u=a.length;l<u&&i>=(s+=a[l]);l++)o=l;return a[o+1]&&o++,t[Number(r[o])]},getTimezoneShortDisplayNameById:function(t){var e,n=this.getTimezoneById(t);return n&&(e=n.DisplayName.substring(0,11)),e},getTimezonesDisplayName:function(){return i(this.getDisplayNames()).sortBy().toArray()},getTimezoneDisplayNameById:function(t){var e=this.getTimezoneById(t);return e?this.getDisplayNames()[e.winIndex]:""},getSimilarTimezones:function(t){if(!t)return[];var e=this.getTimezoneById(t);return this.getTimezonesIdsByWinIndex(e.winIndex)},getTimezonesIdsByWinIndex:function(t){return this.queryableTimezones().filter(["winIndex",t]).sortBy("title").toArray().map((function(t){return{id:t.id,displayName:t.title}}))},getTimezonesIdsByDisplayName:function(t){var e=this.getDisplayNames().indexOf(t);return this.getTimezonesIdsByWinIndex(e)},getClientTimezoneOffset:function(t){return 6e4*t.getTimezoneOffset()},processDateDependOnTimezone:function(t,e){var n=new Date(t);if(e){var i=e+this.getClientTimezoneOffset(t)/36e5;n=new Date(n.setHours(n.getHours()+i))}return n}};t.exports=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TooltipStrategyBase=void 0;var i=s(n(42)),o=n(132),r=s(n(3)),a=s(n(378));function s(t){return t&&t.__esModule?t:{default:t}}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.TooltipStrategyBase=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._tooltip=null,this._options=e,this._extraOptions=null}var e,n,s;return e=t,(n=[{key:"show",value:function(t,e,n){this._canShowTooltip(e)&&(this.hide(),this._extraOptions=n,this._showCore(t,e))}},{key:"_showCore",value:function(t,e){this._tooltip?(this._shouldUseTarget()&&this._tooltip.option("target",t),this._list.option("dataSource",e)):this._tooltip=this._createTooltip(t,e),this._tooltip.option("visible",!0)}},{key:"_getContentTemplate",value:function(t){var e=this;return function(n){var i=(0,r.default)("<div>");(0,r.default)(n).append(i),e._list=e._createList(i,t)}}},{key:"isAlreadyShown",value:function(t){if(this._tooltip&&this._tooltip.option("visible"))return this._tooltip.option("target")[0]===t[0]}},{key:"_onShown",value:function(){this._list.option("focusStateEnabled",this._extraOptions.focusStateEnabled)}},{key:"dispose",value:function(){}},{key:"hide",value:function(){this._tooltip&&this._tooltip.option("visible",!1)}},{key:"_shouldUseTarget",value:function(){return!0}},{key:"_createTooltip",value:function(){}},{key:"_canShowTooltip",value:function(t){return!!t.length}},{key:"_createListOption",value:function(t){var e=this;return{dataSource:t,onContentReady:this._onListRender.bind(this),onItemClick:function(t){return e._onListItemClick(t)},itemTemplate:function(t,n){return e._renderTemplate(t.data,e._getCurrentAppointmentData(t),n,t.color)}}}},{key:"_onListRender",value:function(){}},{key:"_createTooltipElement",value:function(t){return(0,r.default)("<div>").appendTo(this._options.container).addClass(t)}},{key:"_createList",value:function(t,e){return this._options.createComponent(t,a.default,this._createListOption(e))}},{key:"_renderTemplate",value:function(t,e,n,i){var a=this._createItemListContent(t,e,i);this._options.addDefaultTemplates(function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},this._getItemListTemplateName(),new o.FunctionTemplate((function(t){var e=(0,r.default)(t.container);return e.append(a),e}))));var s=this._options.getAppointmentTemplate(this._getItemListTemplateName()+"Template");return this._createFunctionTemplate(s,t,e,n)}},{key:"_createFunctionTemplate",value:function(t,e,n,i){var r=this._isEmptyDropDownAppointmentTemplate();return new o.FunctionTemplate((function(o){return t.render({model:r?{appointmentData:e,targetedAppointmentData:n}:e,container:o.container,index:i})}))}},{key:"_getItemListTemplateName",value:function(){return this._isEmptyDropDownAppointmentTemplate()?"appointmentTooltip":"dropDownAppointment"}},{key:"_isEmptyDropDownAppointmentTemplate",value:function(){return!this._extraOptions.dropDownAppointmentTemplate||"dropDownAppointment"===this._extraOptions.dropDownAppointmentTemplate}},{key:"_onListItemClick",value:function(t){this.hide(),this._extraOptions.clickEvent&&this._extraOptions.clickEvent(t),this._options.showAppointmentPopup(t.itemData.data,!1,this._getCurrentAppointmentData(t.itemData))}},{key:"_getCurrentAppointmentData",value:function(t){return t.settings&&t.settings.targetedAppointmentData||t.currentData||t.data}},{key:"_createItemListContent",value:function(t,e,n){var i=this._extraOptions.editing,o=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item");if(o.append(this._createItemListMarker(n)),o.append(this._createItemListInfo(this._options.getTextAndFormatDate(t,e))),!t.disabled&&(i&&!0===i.allowDeleting||!0===i)){var a=this._options.getSingleAppointmentData(t,this._tooltip.option("target"));o.append(this._createDeleteButton(t,a))}return o}},{key:"_createItemListMarker",value:function(t){var e=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-marker"),n=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-marker-body");return e.append(n),t&&t.done((function(t){return n.css("background",t)})),e}},{key:"_createItemListInfo",value:function(t){var e=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-content"),n=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-content-subject").text(t.text),i=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-content-date").text(t.formatDate);return e.append(n).append(i)}},{key:"_createDeleteButton",value:function(t,e){var n=this,o=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button-container"),a=(0,r.default)("<div>").addClass("dx-tooltip-appointment-item-delete-button");return o.append(a),this._options.createComponent(a,i.default,{icon:"trash",stylingMode:"text",onClick:function(i){n.hide(),i.event.stopPropagation(),n._options.checkAndDeleteAppointment(t,e)}}),o}}])&&l(e.prototype,n),s&&l(e,s),t}()},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=v(n(3)),r=v(n(6)),a=n(4),s=v(n(10)),l=v(n(8)),u=n(0),c=n(2),d=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=_();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),h=v(n(28)),f=v(n(268)),p=v(n(212)),m=n(306),g=v(n(102));function _(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return _=function(){return t},t}function v(t){return t&&t.__esModule?t:{default:t}}var y=g.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{spellcheck:!0,minHeight:void 0,maxHeight:void 0,autoResizeEnabled:!1})},_initMarkup:function(){this.$element().addClass("dx-textarea"),this.callBase(),this.setAria("multiline","true")},_renderContentImpl:function(){this._updateInputHeight(),this.callBase()},_renderInput:function(){this.callBase(),this._renderScrollHandler()},_createInput:function(){var t=(0,o.default)("<textarea>");return this._applyInputAttributes(t,this.option("inputAttr")),this._updateInputAutoResizeAppearance(t),t},_applyInputAttributes:function(t,e){t.attr(e).addClass("dx-texteditor-input")},_renderScrollHandler:function(){this._eventY=0;var t=this._input(),e=(0,m.prepareScrollData)(t,!0);r.default.on(t,d.addNamespace(f.default.init,this.NAME),e,a.noop),r.default.on(t,d.addNamespace(h.default.down,this.NAME),this._pointerDownHandler.bind(this)),r.default.on(t,d.addNamespace(h.default.move,this.NAME),this._pointerMoveHandler.bind(this))},_pointerDownHandler:function(t){this._eventY=d.eventData(t).y},_pointerMoveHandler:function(t){var e=d.eventData(t).y,n=this._eventY-e;(0,m.allowScroll)(this._input(),n)&&(t.isScrollingEvent=!0,t.stopPropagation()),this._eventY=e},_renderDimensions:function(){var t=this.$element(),e=t.get(0),n=this._getOptionValue("width",e),i=this._getOptionValue("height",e),o=this.option("minHeight"),r=this.option("maxHeight");t.css({minHeight:void 0!==o?o:"",maxHeight:void 0!==r?r:"",width:n,height:i})},_resetDimensions:function(){this.$element().css({height:"",minHeight:"",maxHeight:""})},_renderEvents:function(){this.option("autoResizeEnabled")&&r.default.on(this._input(),d.addNamespace("input paste",this.NAME),this._updateInputHeight.bind(this)),this.callBase()},_refreshEvents:function(){r.default.off(this._input(),d.addNamespace("input paste",this.NAME)),this.callBase()},_getHeightDifference:function(t){return p.default.getVerticalOffsets(this._$element.get(0),!1)+p.default.getVerticalOffsets(this._$textEditorContainer.get(0),!1)+p.default.getVerticalOffsets(this._$textEditorInputContainer.get(0),!1)+p.default.getElementBoxParams("height",s.default.getWindow().getComputedStyle(t.get(0))).margin},_updateInputHeight:function(){var t=this._input(),e=void 0===this.option("height")&&this.option("autoResizeEnabled");if(e){this._resetDimensions(),this._$element.css("height",this._$element.outerHeight()),t.css("height",0);var n=this._getHeightDifference(t);this._renderDimensions();var i=this._getBoundaryHeight("minHeight"),o=this._getBoundaryHeight("maxHeight"),r=t[0].scrollHeight;if(void 0!==i&&(r=Math.max(r,i-n)),void 0!==o){var a=o-n,s=r>a;r=Math.min(r,a),this._updateInputAutoResizeAppearance(t,!s)}t.css("height",r),e&&this._$element.css("height","auto")}else t.css("height","")},_getBoundaryHeight:function(t){var e=this.option(t);if((0,c.isDefined)(e))return"number"===typeof e?e:p.default.parseHeight(e,this._$textEditorContainer.get(0))},_renderInputType:a.noop,_visibilityChanged:function(t){t&&this._updateInputHeight()},_updateInputAutoResizeAppearance:function(t,e){if(t){var n=(0,a.ensureDefined)(e,this.option("autoResizeEnabled"));t.toggleClass("dx-texteditor-input-auto-resize",n)}},_optionChanged:function(t){switch(t.name){case"autoResizeEnabled":this._updateInputAutoResizeAppearance(this._input(),t.value),this._refreshEvents(),this._updateInputHeight();break;case"value":case"height":this.callBase(t),this._updateInputHeight();break;case"minHeight":case"maxHeight":this._renderDimensions(),this._updateInputHeight();break;case"visible":this.callBase(t),t.value&&this._updateInputHeight();break;default:this.callBase(t)}}});(0,l.default)("dxTextArea",y),t.exports=y,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(18),a=n(0).extend,s=n(79),l=n(8),u=n(62),c=n(11),d=n(159),h=n(24).getBoundingRect,f=n(36),p=n(47),m=n(12),g=n(25),_=n(164),v=n(7).Deferred,y=u.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),e=function(t){t.preventDefault(),this._clickAction({event:t})},n=function(t,e){e.preventDefault(),e.stopPropagation(),this._animateValue(t)};return a(this.callBase(),{space:e,enter:e,leftArrow:n.bind(this,!!t),rightArrow:n.bind(this,!t)})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,switchedOnText:this._getLocalizationMessage("On"),switchedOffText:this._getLocalizationMessage("Off"),value:!1,useInkRipple:!1,_animateHandle:!0})},_defaultOptionsRules:function(){var t=f.current();return this.callBase().concat([{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}},{device:function(e){return f.isIos7(t)},options:{_animateHandle:!1}}])},_setDeprecatedOptions:function(){this.callBase(),a(this._deprecatedOptions,{onText:{since:"18.2",alias:"switchedOnText"},offText:{since:"18.2",alias:"switchedOffText"}})},_getLocalizationMessage:function(t){var e=m.format("dxSwitch-switched"+t+"Text"),n=m.format("dxSwitch-"+t.toLowerCase()+"Text");return e||n},_feedbackHideTimeout:0,_animating:!1,_initMarkup:function(){this._renderContainers(),this.option("useInkRipple")&&this._renderInkRipple(),this.$element().addClass("dx-switch").append(this._$switchWrapper),this._renderSubmitElement(),this._renderClick(),this.setAria("role","button"),this._renderSwipeable(),this.callBase(),this._renderSwitchInner(),this._renderLabels(),this._renderValue()},_getInnerOffset:function(t,e){return 100*((e-this._offsetDirection()*Number(!t))/2)+"%"},_getHandleOffset:function(t,e){return this.option("rtlEnabled")&&(t=!t),t?100*-e-100+"%":100*-e+"%"},_renderSwitchInner:function(){this._$switchInner=i("<div>").addClass("dx-switch-inner").appendTo(this._$switchContainer),this._$handle=i("<div>").addClass("dx-switch-handle").appendTo(this._$switchInner)},_renderLabels:function(){this._$labelOn=i("<div>").addClass("dx-switch-on").prependTo(this._$switchInner),this._$labelOff=i("<div>").addClass("dx-switch-off").appendTo(this._$switchInner),this._setLabelsText()},_renderContainers:function(){this._$switchContainer=i("<div>").addClass("dx-switch-container"),this._$switchWrapper=i("<div>").addClass("dx-switch-wrapper").append(this._$switchContainer)},_renderSwipeable:function(){this._createComponent(this.$element(),_,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._getItemSizeFunc.bind(this)})},_getItemSizeFunc:function(){return this._$switchContainer.outerWidth(!0)-h(this._$handle.get(0)).width},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:1.7,isCentered:!0,useHoldAnimation:!1,wavesNumber:2})},_renderInkWave:function(t,e,n,i){if(this._inkRipple){var o={element:t,event:e,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(t,e){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,t,e,0)},_toggleActiveState:function(t,e,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$handle,n,e,1)},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_renderPosition:function(t,e){var n=this._getInnerOffset(t,e),i=this._getHandleOffset(t,e);this.option("_animateHandle")&&(this._$switchInner.css("transform"," translateX("+n+")"),this._$handle.css("transform"," translateX("+i+")"))},_validateValue:function(){var t=this.option("value");"boolean"!==typeof t&&this._options.silent("value",!!t)},_renderClick:function(){var t=c.addNamespace(g.name,this.NAME),e=this.$element();this._clickAction=this._createAction(this._clickHandler.bind(this)),o.off(e,t),o.on(e,t,function(t){this._clickAction({event:t})}.bind(this))},_clickHandler:function(t){var e=t.event;this._saveValueChangeEvent(e),this._animating||this._swiping||this._animateValue(!this.option("value"))},_animateValue:function(t){var e=this.option("value"),n=t;if(e!==n){this._animating=!0;var i=this._getInnerOffset(e,0),o=this._getInnerOffset(n,0),r=this._getHandleOffset(e,0),a=this._getHandleOffset(n,0),s=this,l={},u={},c={},d={};l.transform=" translateX("+i+")",u.transform=" translateX("+o+")",c.transform=" translateX("+r+")",d.transform=" translateX("+a+")",this.$element().toggleClass("dx-switch-on-value",n),p.animate(this._$handle,{from:c,to:d,duration:100}),p.animate(this._$switchInner,{from:l,to:u,duration:100,complete:function(){s._animating=!1,s.option("value",n)}})}},_swipeStartHandler:function(t){var e=this.option("value"),n=this.option("rtlEnabled"),i=n?0:1,o=n?1:0;t.event.maxLeftOffset=e?i:o,t.event.maxRightOffset=e?o:i,this._swiping=!0,this._feedbackDeferred=new v,d.lock(this._feedbackDeferred),this._toggleActiveState(this.$element(),this.option("activeStateEnabled"))},_swipeUpdateHandler:function(t){this._renderPosition(this.option("value"),t.event.offset)},_swipeEndHandler:function(t){var e=this,n=this._offsetDirection(),i={},o={},r=this._getInnerOffset(e.option("value"),t.event.targetOffset),a=this._getHandleOffset(e.option("value"),t.event.targetOffset);i.transform=" translateX("+r+")",o.transform=" translateX("+a+")",p.animate(this._$handle,{to:o,duration:100}),p.animate(this._$switchInner,{to:i,duration:100,complete:function(){e._swiping=!1;var i=e.option("value")+n*t.event.targetOffset;e._saveValueChangeEvent(t.event),e.option("value",Boolean(i)),e._feedbackDeferred.resolve(),e._toggleActiveState(e.$element(),!1)}})},_renderValue:function(){this._validateValue();var t=this.option("value");this._renderPosition(t,0),this.$element().toggleClass("dx-switch-on-value",t),this._getSubmitElement().val(t),this.setAria({pressed:t,label:t?this.option("switchedOnText"):this.option("switchedOffText")})},_setLabelsText:function(){this._$labelOn&&this._$labelOn.text(this.option("switchedOnText")),this._$labelOff&&this._$labelOff.text(this.option("switchedOffText"))},_visibilityChanged:function(t){t&&this.repaint()},_optionChanged:function(t){switch(t.name){case"useInkRipple":this._invalidate();break;case"width":delete this._marginBound,this._refresh();break;case"switchedOnText":case"switchedOffText":this._setLabelsText();break;case"value":this._renderValue(),this.callBase(t);break;case"_animateHandle":break;default:this.callBase(t)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxSwitch",y),t.exports=y,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(106),r=n(195),a=n(7).Deferred,s=null,l=function(){s&&(s.$element().remove(),s=null)};e.show=function(t){return l(),(s=function(t){return new r(i("<div>").appendTo(t&&t.container||o.value()),t)}(t)).show()},e.hide=function(){return s?s.hide().done(l).promise():(new a).resolve()}},function(t,e,n){"use strict";var i=r(n(3)),o=n(5);function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(h,t);var e,n,r,a=d(h);function h(){return s(this,h),a.apply(this,arguments)}return e=h,(n=[{key:"_getCellsBetween",value:function(t,e){if(this._hasAllDayClass(e))return u(f(h.prototype),"_getCellsBetween",this).call(this,t,e);for(var n=this._getCells(),r=t.index(),a=t.parent().index(),s=e.index(),l=e.parent().index(),c=this._getGroupCount(),d=c>0?this._getTotalCellCount(c):this._getCellCount(),p=this._getTotalRowCount(c),m=[],g=0;g<d;g++)for(var _=0;_<p;_++){var v=n.get(d*_+g);m.push(v)}var y=this.getCellData(e).groups,b=this.option("showAllDayPanel")&&this._isVerticalGroupedWorkSpace()?this._getGroupIndexByResourceId(y)+1:0,w=p*r+a-b,x=p*s+l-b;if(w>x){var C=w;w=x,x=C}if(n=(0,i.default)(m).slice(w,x+1),this._getGroupCount()){var S=[],k=this._getGroupIndexByCell(t);(0,o.each)(n,function(t,e){var n=this._getGroupIndexByCell((0,i.default)(e));k===n&&S.push(e)}.bind(this)),n=(0,i.default)(S)}return n}},{key:"_getCellFromNextColumn",value:function(t,e){var n=u(f(h.prototype),"_getCellFromNextColumn",this).call(this,t,e),i=this._$focusedCell;return i.parent().index()!==n.parent().index()&&e&&(n=i),n}},{key:"_getFormat",value:function(){return this._formatWeekdayAndDay}}])&&l(e.prototype,n),r&&l(e,r),h}(r(n(309)).default);t.exports=p},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=n(3),r=n(15),a=n(6),s=n(57),l=n(26),u=n(2),c=n(10),d=n(17).getPublicElement,h=n(0).extend,f=n(5).each,p=n(24).getBoundingRect,m=n(12),g=n(43),_=l.dateToMilliseconds,v=n(20),y=v.abstract,b=n(4).noop,w=n(2).isDefined,x=n(145),C=n(11),S=n(28),k=n(23),I=n(25),T=n(257),E=n(101),O=n(103),M=n(1061),P=n(1062),D=n(310),A=n(1063),R=n(1064),B=n(202).FIXED_CONTAINER_CLASS,N=n(172),L="dx-scheduler-all-day-table-cell",F="dx-scheduler-date-table-cell",V=C.addNamespace(S.down,"dxSchedulerWorkSpace"),z=C.addNamespace(E.enter,"dxSchedulerDateTable"),j=C.addNamespace(E.drop,"dxSchedulerDateTable"),H=C.addNamespace(E.leave,"dxSchedulerDateTable"),W=C.addNamespace(I.name,"dxSchedulerDateTable"),U=C.addNamespace(S.down,"dxSchedulerDateTable"),G=C.addNamespace(S.up,"dxSchedulerDateTable"),K=C.addNamespace(S.move,"dxSchedulerDateTable"),q=_("day"),$=_("hour"),Y=".".concat("dx-scheduler-date-table"," td, .").concat("dx-scheduler-all-day-table"," td"),Z=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.counter=0}var e,n,o;return e=t,(n=[{key:"isFree",value:function(){return 0===this.counter}},{key:"take",value:function(){this.counter++}},{key:"release",value:function(){this.counter--,this.counter<0&&(this.counter=0)}}])&&i(e.prototype,n),o&&i(e,o),t}(),X=function(t){return g.getDayNames("abbreviated")[t.getDay()]},J=v.inherit({_supportedKeys:function(){var t=function(t){if(t.preventDefault(),t.stopPropagation(),this._focusedCells&&this._focusedCells.length){var e=o(this.option("focusedElement")),n=e.length?e:this._focusedCells;t.target=this._focusedCells,this._showPopup=!0,this._cellClickAction({event:t,cellElement:o(this._focusedCells),cellData:this.getCellData(n)})}},e=function(t,e){t.preventDefault(),t.stopPropagation(),this._moveToCell(e,t.shiftKey)};return h(this.callBase(),{enter:t,space:t,downArrow:function(t){var n=this._getCellFromNextRow("next",t.shiftKey);e.call(this,t,n)},upArrow:function(t){var n=this._getCellFromNextRow("prev",t.shiftKey);e.call(this,t,n)},rightArrow:function(t){var n=this._getCellFromNextColumn("next",t.shiftKey);e.call(this,t,n)},leftArrow:function(t){var n=this._getCellFromNextColumn("prev",t.shiftKey);e.call(this,t,n)}})},_isRTL:function(){return this.option("rtlEnabled")},_getFocusedCell:function(){return this._$focusedCell||this._$dateTable.find("."+F).eq(0)},_getAllFocusedCells:function(){return this._focusedCells||this._$dateTable.find("."+F).eq(0)},_getCellFromNextRow:function(t){var e=this._$focusedCell;if(w(e)){var n=e.index(),i=e.parent()[t]().children().eq(n);return i=this._checkForViewBounds(i)}},_checkForViewBounds:function(t){return t.length||(t=this._$focusedCell),t},_getCellFromNextColumn:function(t,e){var n=this._$focusedCell;if(w(n)){var i,o=n.parent(),r=t,a="next"===t,s=a?"prev":"next",l=this._isRTL(),u=this._getGroupCount(),c=this._isHorizontalGroupedWorkSpace(),d=this.isGroupedByDate(),h=this._getTotalCellCount(u),f=e&&!d?this._getCellCount():h,p=f-1,m=n.index(),g=d&&e?u:1,_=(l?1:-1)*(a?1:-1);if(this._isEdgeCell(c?h-1:p,m,g,t)||e&&this._isGroupEndCell(n,t)){var v=m-_*g+_*f;i=o[l?s:r]().children().eq(v),i=this._checkForViewBounds(i)}else i=o.children().eq(m-_*g);return i}},_isEdgeCell:function(t,e,n,i){var o=this._isRTL(),r="next"===i,a=r?o?0:t:o?t:0,s=e+n>a,l=e-n<a;return r?o?l:s:o?s:l},_isGroupEndCell:function(t,e){if(this.isGroupedByDate())return!1;var n="next"===e,i=this._getCellCount(),o=t.index()%i,r=n?i-1:0,a=n?0:i-1;return this._isRTL()?o===a:o===r},_moveToCell:function(t,e){e=e&&this.option("allowMultipleCellSelection"),this._setFocusedCell(t,e),this._dateTableScrollable.scrollToElement(t)},_setFocusedCell:function(t,e){if(w(t)&&t.length){if(this._releaseFocusedCell(),this._focusedCells=[],e){t=this._correctCellForGroup(t);var n="day"!==this.option("type")||this.option("groups").length&&"vertical"!==this.option("groupOrientation")?"horizontal":"vertical",i=this._getCellsBetween(t,this._$prevCell,n);this._focusedCells=i.toArray()}else this._focusedCells=[t.get(0)],this._$prevCell=t;var r=o(this._focusedCells);this._toggleFocusClass(!0,r),this.setAria("label","Add appointment",r),this._toggleFocusedCellClass(!0,t),this._$focusedCell=t;var a=this.getFocusedCellData();this.option("selectedCellData",a),this._selectionChangedAction({selectedCellData:a})}},_correctCellForGroup:function(t){var e=this._$focusedCell,n=this._getGroupIndexByCell(t),i=this._getGroupIndexByCell(e),o=this._hasAllDayClass(t)!==this._hasAllDayClass(e);return i!==n||o?e:t},_getCellsBetween:function(t,e,n){var i=this._hasAllDayClass(e),r=this._getCells(i,n),a=r.index(t),s=r.index(e);if(a>s){var l=a;a=s,s=l}if(r=r.slice(a,s+1),this._getGroupCount()>1){var u=[],c=this._getGroupIndexByCell(t);f(r,function(t,e){var n=this._getGroupIndexByCell(o(e));c===n&&u.push(e)}.bind(this)),r=o(u)}return r},_hasAllDayClass:function(t){return t.hasClass(L)},_getGroupIndexByCell:function(t){return this._groupedStrategy.getGroupIndexByCell(t)},_toggleFocusedCellClass:function(t,e){(e&&e.length?e:this._focusTarget()).toggleClass("dx-scheduler-focused-cell",t)},_releaseFocusedCell:function(t){t=t||o(this._focusedCells),w(t)&&t.length&&(this._toggleFocusClass(!1,t),this._toggleFocusedCellClass(!1,t),this.setAria("label",void 0,t)),this.option("selectedCellData",[])},_focusInHandler:function(t){if(o(t.target).is(this._focusTarget())&&!1!==this._isCellClick){delete this._isCellClick,delete this._contextMenuHandled,this.callBase.apply(this,arguments);var e=this._getFocusedCell();this._setFocusedCell(e)}},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._contextMenuHandled||this._releaseFocusedCell()},_focusTarget:function(){return this.$element()},_activeStateUnit:"."+F+", ."+L,_getDefaultOptions:function(){return h(this.callBase(),{currentDate:new Date,intervalCount:1,startDate:null,firstDayOfWeek:void 0,startDayHour:0,endDayHour:24,hoursInterval:.5,activeStateEnabled:!0,hoverStateEnabled:!0,groups:[],showAllDayPanel:!0,allDayExpanded:!1,onCellClick:null,crossScrollingEnabled:!1,dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,allowMultipleCellSelection:!0,indicatorTime:new Date,indicatorUpdateInterval:5*_("minute"),shadeUntilCurrentTime:!0,groupOrientation:"horizontal",selectedCellData:[],groupByDate:!1})},_optionChanged:function(t){switch(t.name){case"startDayHour":case"endDayHour":this.invoke("validateDayHours"),this._cleanWorkSpace();break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":case"hoursInterval":case"firstDayOfWeek":case"currentDate":case"startDate":this._cleanWorkSpace();break;case"groups":this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint();break;case"groupOrientation":this._initGroupedStrategy(),this._createAllDayPanelElements(),this._removeAllDayElements(),this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"showAllDayPanel":this._isVerticalGroupedWorkSpace()?(this._cleanView(),this._removeAllDayElements(),this._initGrouping(),this.repaint()):this._toggleAllDayVisibility();break;case"allDayExpanded":this._changeAllDayVisibility(),this._attachTablesEvents(),this.headerPanelOffsetRecalculate(),this._updateScrollable();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCellClick":this._createCellClickAction();break;case"onCellContextMenu":this._attachContextMenuEvent();break;case"intervalCount":this._cleanWorkSpace(),this._toggleWorkSpaceCountClass(),this._toggleFixedScrollableClass();break;case"groupByDate":this._cleanWorkSpace(),this._toggleGroupByDateClass();break;case"crossScrollingEnabled":this._toggleHorizontalScrollClass(),this._dateTableScrollable.option(this._dateTableScrollableConfig());break;case"width":this.callBase(t),this._dimensionChanged();break;case"allowMultipleCellSelection":case"selectedCellData":break;default:this.callBase(t)}},_cleanWorkSpace:function(){this._cleanView(),this._toggleGroupedClass(),this._toggleWorkSpaceWithOddCells(),this._renderView()},_init:function(){this._headerSemaphore=new Z,this._sideBarSemaphore=new Z,this._dataTableSemaphore=new Z,this.callBase(),this._initGrouping(),this._toggleHorizontalScrollClass(),this._toggleWorkSpaceCountClass(),this._toggleGroupByDateClass(),this._toggleWorkSpaceWithOddCells(),this.$element().addClass("dx-scheduler-work-space").addClass(this._getElementClass())},_initGrouping:function(){this._initGroupedStrategy(),this._toggleGroupingDirectionClass(),this._toggleGroupByDateClass()},_initGroupedStrategy:function(){var t="vertical"===(this.option("groups").length?this.option("groupOrientation"):this._getDefaultGroupStrategy())?P:M;this._groupedStrategy=new t(this)},_getDefaultGroupStrategy:function(){return"horizontal"},_isVerticalGroupedWorkSpace:function(){return!!this.option("groups").length&&"vertical"===this.option("groupOrientation")},_isHorizontalGroupedWorkSpace:function(){return!!this.option("groups").length&&"horizontal"===this.option("groupOrientation")},_toggleHorizontalScrollClass:function(){this.$element().toggleClass("dx-scheduler-work-space-both-scrollbar",this.option("crossScrollingEnabled"))},_toggleGroupByDateClass:function(){this.$element().toggleClass("dx-scheduler-work-space-group-by-date",this.isGroupedByDate())},_toggleWorkSpaceCountClass:function(){this.$element().toggleClass("dx-scheduler-work-space-count",this._isWorkSpaceWithCount())},_isWorkSpaceWithCount:function(){return this.option("intervalCount")>1},_toggleWorkSpaceWithOddCells:function(){this.$element().toggleClass("dx-scheduler-work-space-odd-cells",this._isWorkspaceWithOddCells())},_isWorkspaceWithOddCells:function(){return.5===this.option("hoursInterval")},_toggleGroupingDirectionClass:function(){this.$element().toggleClass("dx-scheduler-work-space-vertical-grouped",this._isVerticalGroupedWorkSpace())},_getRealGroupOrientation:function(){return this._isVerticalGroupedWorkSpace()?"vertical":"horizontal"},_getTimePanelClass:function(){return"dx-scheduler-time-panel"},_getDateTableClass:function(){return"dx-scheduler-date-table"},_getDateTableRowClass:function(){return"dx-scheduler-date-table-row"},_getDateTableCellClass:function(t,e){var n=F+" dx-scheduler-cell-sizes-horizontal dx-scheduler-cell-sizes-vertical";return this._needApplyLastGroupCellClass()?this._groupedStrategy.addAdditionalGroupCellClasses(n,e+1,t,e):n},_needApplyLastGroupCellClass:function(){return!0},_getGroupRowClass:function(){return"dx-scheduler-group-row"},_getGroupHeaderClass:function(t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-group-header",t+1)},_getGroupHeaderContentClass:function(){return"dx-scheduler-group-header-content"},_initWorkSpaceUnits:function(){this._$headerPanel=o("<table>"),this._$thead=o("<thead>").appendTo(this._$headerPanel),this._$fixedContainer=o("<div>").addClass(B),this._$allDayContainer=o("<div>").addClass("dx-scheduler-all-day-appointments"),this._initAllDayPanelElements(),this._createAllDayPanelElements(),this._$timePanel=o("<table>").addClass(this._getTimePanelClass()),this._$dateTable=o("<table>"),this._$groupTable=o("<div>").addClass("dx-scheduler-work-space-vertical-group-table")},_initAllDayPanelElements:function(){this._allDayTitles=[],this._allDayTables=[],this._allDayPanels=[]},_createAllDayPanelElements:function(){var t=this._getGroupCount();if(this._isVerticalGroupedWorkSpace()&&0!==t)for(var e=0;e<t;e++){var n=o("<div>").addClass("dx-scheduler-all-day-title").text(m.format("dxScheduler-allDay"));this._allDayTitles.push(n),this._$allDayTable=o("<table>"),this._allDayTables.push(this._$allDayTable),this._$allDayPanel=o("<div>").addClass("dx-scheduler-all-day-panel").append(this._$allDayTable),this._allDayPanels.push(this._$allDayPanel)}else this._$allDayTitle=o("<div>").addClass("dx-scheduler-all-day-title").text(m.format("dxScheduler-allDay")).appendTo(this.$element()),this._$allDayTable=o("<table>"),this._$allDayPanel=o("<div>").addClass("dx-scheduler-all-day-panel").append(this._$allDayTable)},_initDateTableScrollable:function(){var t=o("<div>").addClass("dx-scheduler-date-table-scrollable");this._dateTableScrollable=this._createComponent(t,O,this._dateTableScrollableConfig())},_dateTableScrollableConfig:function(){var t={useKeyboard:!1,bounceEnabled:!1,updateManually:!0,pushBackValue:0};return this._needCreateCrossScrolling()&&(t=h(t,this._createCrossScrollingConfig())),t},_createCrossScrollingConfig:function(){var t=this,e={direction:"both",onScroll:function(e){t._dataTableSemaphore.take(),t._sideBarSemaphore.isFree()&&t._sidebarScrollable&&t._sidebarScrollable.scrollTo({top:e.scrollOffset.top}),t._headerSemaphore.isFree()&&t._headerScrollable&&t._headerScrollable.scrollTo({left:e.scrollOffset.left}),t._dataTableSemaphore.release()},onEnd:function(){t.notifyObserver("updateResizableArea",{})}};return e},_createWorkSpaceElements:function(){this.option("crossScrollingEnabled")?this._createWorkSpaceScrollableElements():this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().append(this._$allDayContainer,this._$groupTable,this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._dateTableScrollable.$element())):(this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._$fixedContainer,this._$headerPanel,this._$allDayContainer,this._$allDayPanel,this._dateTableScrollable.$element()))},_createWorkSpaceScrollableElements:function(){this.$element().append(this._$fixedContainer),this._createHeaderScrollable(),this._createSidebarScrollable(),this.$element().append(this._dateTableScrollable.$element()),this._headerScrollable.$content().append(this._$headerPanel),this._dateTableScrollable.$content().append(this._$dateTable),this._isVerticalGroupedWorkSpace()?(this._dateTableScrollable.$content().prepend(this._$allDayContainer),this._sidebarScrollable.$content().append(this._$groupTable,this._$timePanel)):this._headerScrollable.$content().append(this._$allDayContainer,this._$allDayPanel),this._sidebarScrollable.$content().append(this._$timePanel)},_createHeaderScrollable:function(){var t=o("<div>").addClass("dx-scheduler-header-scrollable").appendTo(this.$element());this._headerScrollable=this._createComponent(t,O,this._headerScrollableConfig())},_headerScrollableConfig:function(){var t=this;return{useKeyboard:!1,showScrollbar:!1,direction:"horizontal",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(e){t._headerSemaphore.take(),t._dataTableSemaphore.isFree()&&t._dateTableScrollable.scrollTo({left:e.scrollOffset.left}),t._headerSemaphore.release()}}},_createSidebarScrollable:function(){var t=this,e=o("<div>").addClass("dx-scheduler-sidebar-scrollable").appendTo(this.$element());this._sidebarScrollable=this._createComponent(e,O,{useKeyboard:!1,showScrollbar:!1,direction:"vertical",useNative:!1,updateManually:!0,bounceEnabled:!1,pushBackValue:0,onScroll:function(e){t._sideBarSemaphore.take(),t._dataTableSemaphore.isFree()&&t._dateTableScrollable.scrollTo({top:e.scrollOffset.top}),t._sideBarSemaphore.release()}})},_visibilityChanged:function(t){t&&this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight(),t&&this._needCreateCrossScrolling()&&this._setTableSizes()},_attachTableClasses:function(){if(this._addTableClass(this._$dateTable,this._getDateTableClass()),this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._addTableClass(this._allDayTables[e],"dx-scheduler-all-day-table");else this._addTableClass(this._$allDayTable,"dx-scheduler-all-day-table")},_attachHeaderTableClasses:function(){this._addTableClass(this._$headerPanel,"dx-scheduler-header-panel")},_addTableClass:function(t,e){t&&!t.hasClass(e)&&t.addClass(e)},_setTableSizes:function(){this._attachTableClasses();var t=this.getCellWidth();t<this.getCellMinWidth()&&(t=this.getCellMinWidth());var e=this.getWorkSpaceMinWidth(),n=t*this._$headerPanel.find("tr").last().find("th").length;n<e&&(n=e),this._$headerPanel.width(n),this._$dateTable.width(n),this._$allDayTable&&this._$allDayTable.width(n),this._attachHeaderTableClasses(),this._isVerticalGroupedWorkSpace()&&this._setHorizontalGroupHeaderCellsHeight()},getWorkSpaceMinWidth:function(){return this._groupedStrategy.getWorkSpaceMinWidth()},_dimensionChanged:function(){this.option("crossScrollingEnabled")&&this._setTableSizes(),this.headerPanelOffsetRecalculate(),this._cleanCellDataCache(),this._cleanAllowedPositions()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")},_getElementClass:b,_getRowCount:b,_getCellCount:b,_getRowCountWithAllDayRows:function(){var t=this.option("showAllDayPanel")?1:0;return this._getRowCount()+t},_initMarkup:function(){this._initWorkSpaceUnits(),this._initDateTableScrollable(),this._createWorkSpaceElements(),this.callBase(),this.option("crossScrollingEnabled")||(this._attachTableClasses(),this._attachHeaderTableClasses()),this._toggleGroupedClass(),this._toggleFixedScrollableClass(),this._renderView(),this._attachEvents(),this._setFocusOnCellByOption(this.option("selectedCellData"))},_render:function(){this.callBase(),this._renderDateTimeIndication(),this._setIndicationUpdateInterval()},_toggleGroupedClass:function(){this.$element().toggleClass("dx-scheduler-work-space-grouped",this._getGroupCount()>0)},_toggleFixedScrollableClass:b,_renderView:function(){if(this._setFirstViewDate(),this._applyCellTemplates(this._renderGroupHeader()),this._renderDateHeader(),this._renderTimePanel(),this._isVerticalGroupedWorkSpace())for(var t=this._getGroupCount(),e=0;e<t;e++)this._renderAllDayPanel(e);this._renderDateTable(),this._renderAllDayPanel(),this._updateGroupTableHeight(),this._shader=new A(this)},_updateGroupTableHeight:function(){this._isVerticalGroupedWorkSpace()&&c.hasWindow()&&this._setHorizontalGroupHeaderCellsHeight()},_renderDateTimeIndication:b,_setIndicationUpdateInterval:b,_refreshDateTimeIndication:b,_setFocusOnCellByOption:function(t){var e=[];this._releaseFocusedCell();for(var n=0;n<t.length;n++){var i=t[n].groups,o=this.option("groups").length&&i?this._getGroupIndexByResourceId(i):0,r=!!t[n].allDay,a=this.getCoordinatesByDate(t[n].startDate,o,r),s=this._getCellByCoordinates(a,o);w(s)&&(this._toggleFocusClass(!0,s),e.push(s.get(0)))}this._focusedCells=e},_getGroupIndexByResourceId:function(t){var e=this.option("groups"),n=this.invoke("createResourcesTree",e);return n.length?this._getGroupIndexRecursively(n,t):0},_getGroupIndexRecursively:function(t,e){var n=this,i=t[0].name,o=e[i];return t.reduce((function(t,i){var r=i.leafIndex,a=i.value,s=i.children,l=o===a;return l&&void 0!==r?r:l?n._getGroupIndexRecursively(s,e):t}),0)},_setFirstViewDate:function(){var t=w(this._firstDayOfWeek())?this._firstDayOfWeek():g.firstDayOfWeekIndex();this._firstViewDate=l.getFirstWeekDate(this._getViewStartByOptions(),t),this._setStartDayHour(this._firstViewDate)},_getViewStartByOptions:function(){if(this.option("startDate")){for(var t=l.trimTime(this._getStartViewDate()),e=this.option("currentDate"),n=t.getTime()<=e.getTime()?1:-1,i=new Date(t.getTime()+this._getIntervalDuration()*n);!this._dateInRange(e,t,i,n);)t=i,i=new Date(t.getTime()+this._getIntervalDuration()*n);return n>0?t:i}return this.option("currentDate")},_getHeaderDate:function(){return this.getStartViewDate()},_getStartViewDate:function(){return this.option("startDate")},_dateInRange:function(t,e,n,i){return i>0?l.dateInRange(t,e,new Date(n.getTime()-1)):l.dateInRange(t,n,e,"date")},_getIntervalDuration:function(){return _("day")*this.option("intervalCount")},_setStartDayHour:function(t){var e=this.option("startDayHour");w(e)&&t.setHours(e,e%1*60,0,0)},_firstDayOfWeek:function(){return this.option("firstDayOfWeek")},_attachEvents:function(){this._createSelectionChangedAction(),this._attachClickEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var t=this,e=this._createAction((function(e){t._pointerDownHandler(e.event)}));this._createCellClickAction();var n=this.$element();a.off(n,V),a.off(n,W),a.on(n,V,(function(t){C.isMouseEvent(t)&&t.which>1?t.preventDefault():e({event:t})})),a.on(n,W,".dx-scheduler-date-table-cell,.dx-scheduler-all-day-table-cell",(function(e){var n=o(e.target);t._cellClickAction({event:e,cellElement:d(n),cellData:t.getCellData(n)})}))},_createCellClickAction:function(){var t=this;this._cellClickAction=this._createActionByOption("onCellClick",{afterExecute:function(e){t._moveToClosestNonStub(e.args[0].event)}})},_createSelectionChangedAction:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")},_moveToClosestNonStub:function(t){var e=o(t.target);this._showPopup&&this._hasFocusClass(e)&&(delete this._showPopup,this._showAddAppointmentPopup(e))},_pointerDownHandler:function(t){var e=o(t.target);e.hasClass(F)||e.hasClass(L)?(this._isCellClick=!0,e.hasClass("dx-scheduler-focused-cell")?this._showPopup=!0:this._setFocusedCell(e)):this._isCellClick=!1},_showAddAppointmentPopup:function(t){var e=this.getCellData(t.first()),n=this.getCellData(t.last()),i={startDate:this.invoke("convertDateByTimezoneBack",e.startDate)||e.startDate,endDate:this.invoke("convertDateByTimezoneBack",n.endDate)||n.endDate};w(n.allDay)&&(i.allDay=n.allDay),h(i,n.groups),this.notifyObserver("showAddAppointmentPopup",i)},_attachContextMenuEvent:function(){this._createContextMenuAction();var t="."+F+",."+L,e=this.$element(),n=C.addNamespace(T.name,this.NAME);a.off(e,n,t),a.on(e,n,t,this._contextMenuHandler.bind(this))},_contextMenuHandler:function(t){var e=o(t.target);this._contextMenuAction({event:t,cellElement:d(e),cellData:this.getCellData(e)}),this._contextMenuHandled=!0},_createContextMenuAction:function(){this._contextMenuAction=this._createActionByOption("onCellContextMenu")},_getGroupHeaderContainer:function(){return this._isVerticalGroupedWorkSpace()?this._$groupTable:this._$thead},_getDateHeaderContainer:function(){return this._$thead},_renderGroupHeader:function(){var t=this._getGroupHeaderContainer(),e=this._getGroupCount(),n=[];if(e){var i=this._makeGroupRows(this.option("groups"),this.option("groupByDate"));this._attachGroupCountAttr(e,i),t.append(i.elements),n=i.cellTemplates}else this._detachGroupCountAttr();return n},_applyCellTemplates:function(t){t.forEach((function(t){t()}))},_detachGroupCountAttr:function(){var t=this._groupedStrategy.getGroupCountAttr();this.$element().removeAttr(t.attr)},_attachGroupCountAttr:function(t,e){var n=this._groupedStrategy.getGroupCountAttr(t,e);this.$element().attr(n.attr,n.count)},headerPanelOffsetRecalculate:function(){if(this.option("resourceCellTemplate")||this.option("dateCellTemplate")){var t=this.getHeaderPanelHeight(),e=this.invoke("getHeaderHeight"),n=this.supportAllDayRow()&&this.option("showAllDayPanel")?this._groupedStrategy.getAllDayTableHeight():0;t&&this._headerScrollable&&this._headerScrollable.$element().height(t+n),t&&this._dateTableScrollable.$element().css({paddingBottom:n+t+"px",marginBottom:-1*(parseInt(t,10)+n)+"px"}),t&&this._sidebarScrollable&&this._sidebarScrollable.$element().css({paddingBottom:n+t+"px",marginBottom:-1*(parseInt(t,10)+n)+"px"}),this._$allDayTitle&&this._$allDayTitle.css("top",e+t+"px")}},_makeGroupRows:function(t,e){var n=this._isVerticalGroupedWorkSpace()?D.VERTICAL:D.HORIZONTAL;return D.makeGroupedTable(n,t,{groupHeaderRowClass:this._getGroupRowClass(),groupRowClass:this._getGroupRowClass(),groupHeaderClass:this._getGroupHeaderClass.bind(this),groupHeaderContentClass:this._getGroupHeaderContentClass()},this._getCellCount()||1,this.option("resourceCellTemplate"),this._getGroupCount(),e)},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_renderDateHeader:function(){var t,e,n=this._getDateHeaderContainer(),i=o("<tr>").addClass("dx-scheduler-header-row"),r=this._getCellCount(),a=this._getDateHeaderTemplate(),s=this._calculateHeaderCellRepeatCount(),l=[],u=this.isGroupedByDate(),c=u?this._getGroupCount():1;if(u){for(t=0;t<r;t++){this._renderDateHeaderTemplate(i,t,t*s,a,l).attr("colSpan",c)}n.prepend(i)}else{for(e=0;e<s;e++)for(t=0;t<r;t++)this._renderDateHeaderTemplate(i,t,e*s+t,a,l);n.append(i)}return this._applyCellTemplates(l),i},_renderDateHeaderTemplate:function(t,e,n,i,r){var a=this._getHeaderText(e),s=o("<th>").addClass(this._getHeaderPanelCellClass(e)).attr("title",a);return i&&i.render?r.push(i.render.bind(i,{model:{text:a,date:this._getDateByIndex(e)},index:n,container:d(s)})):s.text(a),t.append(s),s},_getHeaderPanelCellClass:function(t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-header-panel-cell dx-scheduler-cell-sizes-horizontal",t+1)},_calculateHeaderCellRepeatCount:function(){return this._groupedStrategy.calculateHeaderCellRepeatCount()},_renderAllDayPanel:function(t){var e=this._getCellCount();this._isVerticalGroupedWorkSpace()||(e*=this._getGroupCount()||1);var n=this._renderTableBody({container:this._allDayPanels.length?d(this._allDayTables[t]):d(this._$allDayTable),rowCount:1,cellCount:e,cellClass:this._getAllDayPanelCellClass.bind(this),rowClass:"dx-scheduler-all-day-table-row",cellTemplate:this.option("dataCellTemplate"),getCellData:this._getAllDayCellData.bind(this),groupIndex:t},!0);this._toggleAllDayVisibility(),this._applyCellTemplates(n)},_getAllDayPanelCellClass:function(t,e){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-all-day-table-cell dx-scheduler-cell-sizes-horizontal",e+1)},_getAllDayCellData:function(t,e,n,i){var o=this._getDateByCellIndexes(e,n),r={startDate:o=l.trimTime(o),endDate:new Date(o.getTime()+q),allDay:!0},a=this._getCellGroups(i||this._getGroupIndex(e,n));a.length&&(r.groups={});for(var s=0;s<a.length;s++)r.groups[a[s].name]=a[s].id;return{key:"dxCellData",value:r}},_toggleAllDayVisibility:function(){var t=this.option("showAllDayPanel");this._$allDayPanel.toggle(t),this._$allDayTitle&&this._$allDayTitle.toggleClass("dx-scheduler-all-day-title-hidden",!t),this.$element().toggleClass("dx-scheduler-work-space-all-day",t),this._changeAllDayVisibility(),this._updateScrollable()},_changeAllDayVisibility:function(){this.$element().toggleClass("dx-scheduler-work-space-all-day-collapsed",!this.option("allDayExpanded")&&this.option("showAllDayPanel"))},_updateScrollable:function(){this._dateTableScrollable.update(),this._headerScrollable&&this._headerScrollable.update(),this._sidebarScrollable&&this._sidebarScrollable.update()},_renderTimePanel:function(){var t=this,e=this._groupedStrategy.calculateTimeCellRepeatCount(),n=this._getDateWithSkippedDST();this._renderTableBody({container:d(this._$timePanel),rowCount:this._getTimePanelRowCount()*e,cellCount:1,cellClass:this._getTimeCellClass.bind(this),rowClass:"dx-scheduler-time-panel-row",cellTemplate:this.option("timeCellTemplate"),getCellText:function(e){return e%t._getRowCount()%2===0?g.format(t._getTimeCellDateCore(n,e),"shorttime"):""}.bind(this),getCellDate:this._getTimeCellDate.bind(this),groupCount:this._getGroupCount(),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayTitles:void 0})},_getDateWithSkippedDST:function(){var t=new Date(this.getStartViewDate());return N.isTimezoneChangeInDate(t)&&(t=new Date(t.setDate(t.getDate()+1))),t},_getTimePanelRowCount:function(){return this._getCellCountInDay()},_getCellCountInDay:function(t){var e=this._calculateDayDuration()/this.option("hoursInterval");return t?e:Math.ceil(e)},_calculateDayDuration:function(){return this.option("endDayHour")-this.option("startDayHour")},_getTimeCellClass:function(t){return this._groupedStrategy.addAdditionalGroupCellClasses("dx-scheduler-time-panel-cell dx-scheduler-cell-sizes-vertical",t,t)},_getTimeCellDateAdjustedDST:function(t){var e=new Date(this.getStartViewDate());return N.isTimezoneChangeInDate(e)&&(e=new Date(e.setDate(e.getDate()+1))),this._getTimeCellDateCore(e,t)},_getTimeCellDate:function(t){return this._getTimeCellDateCore(this.getStartViewDate(),t)},_getTimeCellDateCore:function(t,e){var n=new Date(t),i=Math.round(this.getCellDuration()),o=this._getCellCountInDay(!0);return n.setMilliseconds(n.getMilliseconds()+i*(e%o)),n},_renderDateTable:function(){var t=this._getGroupCount();this._renderTableBody({container:d(this._$dateTable),rowCount:this._getTotalRowCount(t),cellCount:this._getTotalCellCount(t),cellClass:this._getDateTableCellClass.bind(this),rowClass:this._getDateTableRowClass(),cellTemplate:this.option("dataCellTemplate"),getCellData:this._getCellData.bind(this),allDayElements:this._insertAllDayRowsIntoDateTable()?this._allDayPanels:void 0,groupCount:t,groupByDate:this.option("groupByDate")})},_insertAllDayRowsIntoDateTable:function(){return this._groupedStrategy.insertAllDayRowsIntoDateTable()},_getTotalCellCount:function(t){return this._groupedStrategy.getTotalCellCount(t)},_getTotalRowCount:function(){return this._groupedStrategy.getTotalRowCount()},_getCellData:function(t,e,n){return{key:"dxCellData",value:this._prepareCellData(e,n,t)}},_prepareCellData:function(t,e){var n=this._getDateByCellIndexes(t,e),i={startDate:n,endDate:this.calculateEndDate(n),allDay:this._getTableAllDay()},o=this._getCellGroups(this._getGroupIndex(t,e));o.length&&(i.groups={});for(var r=0;r<o.length;r++)i.groups[o[r].name]=o[r].id;return i},_getGroupIndex:function(t,e){return this._groupedStrategy.getGroupIndex(t,e)},_getTableAllDay:function(){return!1},calculateEndDate:function(t){var e=new Date(t);return e.setMilliseconds(e.getMilliseconds()+Math.round(this._getInterval())),e},_getGroupCount:function(){for(var t=this.option("groups"),e=0,n=0,i=t.length;n<i;n++)n?e*=t[n].items.length:e=t[n].items.length;return e},_getPathToLeaf:function(t){return function t(e,n){return(n=n||[]).push(e.value),e.parent&&t(e.parent,n),n}(function t(e,n){for(var i=0;i<e.length;i++){if(e[i].leafIndex===n)return e[i];var o=t(e[i].children,n);if(o)return o}}(this.invoke("createResourcesTree",this.option("groups")),t)).reverse()},_getCellGroups:function(t){var e=[];if(this._getGroupCount()){var n=this.option("groups");if(t<0)return;for(var i=this._getPathToLeaf(t),o=0;o<n.length;o++)e.push({name:n[o].name,id:i[o]})}return e},_attachTablesEvents:function(){var t,e,n=this,i=this,s=!1,l=this.$element();a.off(l,z),a.off(l,H),a.off(l,j),a.off(l,K),a.off(l,U),a.on(l,z,Y,{itemSizeFunc:function(n){return t||(t=p(n.get(0)).height),e||(e=p(n.get(0)).width),{width:e,height:t}},checkDropTarget:function(t,e){return!n._isOutsideScrollable(t,e)}},(function(t){i._$currentTableTarget&&i.removeDroppableCellClass(i._$currentTableTarget),i._$currentTableTarget=o(t.target),i._$currentTableTarget.addClass("dx-scheduler-date-table-droppable-cell")})),a.on(l,H,(function(t){l.find(o(t.draggingElement)).length||i.removeDroppableCellClass()})),a.on(l,j,Y,(function(n){i.removeDroppableCellClass(o(n.target)),t=0,e=0})),a.on(l,U,Y,(function(t){C.isMouseEvent(t)&&1===t.which&&(s=!0,i.$element().addClass("dx-scheduler-work-space-mouse-selection"),a.off(r.getDocument(),G),a.on(r.getDocument(),G,(function(){s=!1,i.$element().removeClass("dx-scheduler-work-space-mouse-selection")})))})),a.on(l,K,Y,(function(t){s&&i._dateTableScrollable&&!i._dateTableScrollable.option("scrollByContent")&&(t.preventDefault(),t.stopPropagation(),i._moveToCell(o(t.target),!0))}))},_getDateTables:function(){return this._$dateTable.add(this._$allDayTable)},_getDateTable:function(){return this._$dateTable},_getAllDayTable:function(){return this._$allDayTable},_getInterval:function(){return void 0===this._interval&&(this._interval=this.option("hoursInterval")*$),this._interval},_getHeaderText:function(t){return g.format(this._getDateByIndex(t),this._getFormat())},_getDateByIndex:y,_getFormat:y,_calculateCellIndex:function(t,e){return this._groupedStrategy.calculateCellIndex(t,e)},_renderTableBody:function(t,e){var n=[];return e?n=D.makeTable(t):this._applyCellTemplates(D.makeTable(t)),n},_removeAllDayElements:function(){this._$allDayTable&&this._$allDayTable.remove(),this._$allDayTitle&&this._$allDayTitle.remove()},_cleanView:function(){this._cleanCellDataCache(),this._cleanAllowedPositions(),this._$thead.empty(),this._$dateTable.empty(),this._shader&&this._shader.clean(),this._$timePanel.empty(),this._$allDayTable&&this._$allDayTable.empty(),this._$groupTable.empty(),delete this._hiddenInterval,delete this._interval},_clean:function(){a.off(r.getDocument(),G),this.callBase()},getWorkArea:function(){return this._dateTableScrollable.$content()},getScrollable:function(){return this._dateTableScrollable},getScrollableScrollTop:function(){return this._dateTableScrollable.scrollTop()},getGroupedScrollableScrollTop:function(t){return this._groupedStrategy.getScrollableScrollTop(t)},getScrollableScrollLeft:function(){return this._dateTableScrollable.scrollLeft()},getScrollableOuterWidth:function(){return this._dateTableScrollable.scrollWidth()},getScrollableContainer:function(){return this._dateTableScrollable._container()},getHeaderPanelHeight:function(){return this._$headerPanel&&this._$headerPanel.outerHeight(!0)},getTimePanelWidth:function(){return this._$timePanel&&p(this._$timePanel.get(0)).width},getGroupTableWidth:function(){return this._$groupTable?this._$groupTable.outerWidth():0},getWorkSpaceLeftOffset:function(){return this._groupedStrategy.getLeftOffset()},getGroupedStrategy:function(){return this._groupedStrategy},_getCellCoordinatesByIndex:function(t){var e=Math.floor(t/this._getRowCount());return{cellIndex:e,rowIndex:t-this._getRowCount()*e}},_getDateByCellIndexes:function(t,e,n){e=n?e:this._patchCellIndex(e);var i=this.getStartViewDate(),o=new Date(i.getTime()+this._getMillisecondsOffset(t,e)+this._getOffsetByCount(e));return o.setTime(o.getTime()+l.getTimezonesDifference(i,o)),o},_patchCellIndex:function(t){return this.isGroupedByDate()&&(t=Math.floor(t/this._getGroupCount())),t},_getOffsetByCount:function(){return 0},_getMillisecondsOffset:function(t,e){return this._getInterval()*this._calculateCellIndex(t,e)+this._calculateHiddenInterval(t,e)},_calculateHiddenInterval:function(t,e){return e%this._getCellCount()*this._getHiddenInterval()},_getHiddenInterval:function(){return void 0===this._hiddenInterval&&(this._hiddenInterval=q-this.getVisibleDayDuration()),this._hiddenInterval},_getIntervalBetween:function(t,e){var n=this.getStartViewDate(),i=this.option("startDayHour")*$,o=l.getTimezonesDifference(n,t),r=t.getTime()-n.getTime()-o,a=this._getDaysOfInterval(r,i),s=this._getWeekendsCount(a),u=(a-s)*q;return e||(u=r-a*this._getHiddenInterval()-s*this.getVisibleDayDuration()),u},_getWeekendsCount:function(){return 0},_getDaysOfInterval:function(t,e){return Math.floor((t+e)/q)},_getGroupIndexes:function(t){var e=[];if(t&&this.option("groups").length){var n=this.invoke("createResourcesTree",this.option("groups"));e=this.invoke("getResourceTreeLeaves",n,t)}return e},_updateIndex:function(t){return t*this._getRowCount()},_getDroppableCell:function(){return this._getDateTables().find(".dx-scheduler-date-table-droppable-cell")},_getWorkSpaceWidth:function(){return this._needCreateCrossScrolling()?p(this._$dateTable.get(0)).width:p(this.$element().get(0)).width-this.getTimePanelWidth()},_getCellPositionByIndex:function(t,e,n){var i=this._getCellCoordinatesByIndex(t),o=this._getCellByCoordinates(i,e,n),r=this._getCellPosition(o);return this.setCellDataCache(i,e,o),r&&(r.rowIndex=i.rowIndex,r.cellIndex=i.cellIndex),r},_getCellPosition:function(t){var e=t.position();return this.option("rtlEnabled")&&(e.left+=p(t.get(0)).width),e},_getCellByCoordinates:function(t,e,n){var i=this._groupedStrategy.prepareCellIndexes(t,e,n);return this._$dateTable.find("tr").eq(i.rowIndex).find("td").eq(i.cellIndex)},_getCells:function(t,e){var n=t?L:F;if("vertical"===e){for(var i=[],r=1;;r++){var a=this.$element().find("tr .".concat(n,":nth-child(").concat(r,")"));if(!a.length)break;i=i.concat(a.toArray())}return o(i)}return this.$element().find("."+n)},_setHorizontalGroupHeaderCellsHeight:function(){var t=p(this._$dateTable.get(0)).height;this._$groupTable.outerHeight(t)},_getDateTableBorder:function(){return 1},_getDateTableBorderOffset:function(){return 2*this._getDateTableBorder()},_getGroupHeaderCellsContent:function(){return this.$element().find(".dx-scheduler-group-header-content")},_getGroupHeaderCells:function(){return this.$element().find(".dx-scheduler-group-header")},_getScrollCoordinates:function(t,e,n){var i=n||new Date(this.option("currentDate")),o=this.option("startDayHour"),r=this.option("endDayHour");return t<o&&(t=o),t>=r&&(t=r-1),i.setHours(t,e,0,0),this.getCoordinatesByDate(i)},_isOutsideScrollable:function(t,e){var n=this._dateTableScrollable.$element(),i=p(n.get(0)),r=c.getWindow(),a=!o(t).closest(n).length,s=e.pageX<i.left||e.pageX>i.left+i.width+(r.scrollX||0),l=e.pageY<i.top||e.pageY>i.top+i.height+(r.scrollY||0);return!(a&&!s)&&(l||s)},setCellDataCache:function(t,e,n){var i=this.getCellDataCache(),o=this.getCellData(n);i[JSON.stringify({rowIndex:t.rowIndex,cellIndex:t.cellIndex,groupIndex:e})]=o},setCellDataCacheAlias:function(t,e){var n=JSON.stringify({rowIndex:t.rowIndex,cellIndex:t.cellIndex,groupIndex:t.groupIndex}),i=JSON.stringify({top:e.top,left:e.left}),o=this.getCellDataCache();o[n]&&(o[i]=o[n])},getCellDataCache:function(t){return this._cache||(this._cache={}),t?this._cache[t]:this._cache},_cleanCellDataCache:function(){delete this._cache},_cleanAllowedPositions:function(){delete this._maxAllowedVerticalPosition,delete this._maxAllowedPosition},supportAllDayRow:function(){return!0},keepOriginalHours:function(){return!1},getFocusedCellData:function(){var t=this._getAllFocusedCells(),e=[];if(t.length>1)e=this._getMultipleCellsData(t);else{var n=this.getCellData(t);n&&e.push(n)}return e},_getMultipleCellsData:function(t){for(var e=[],n=0;n<t.length;n++)e.push(s.data(t[n],"dxCellData"));return e},getCellData:function(t){var e=t[0]?s.data(t[0],"dxCellData"):void 0;return h(!0,{},e)},_getHorizontalMax:function(t){return t=this.isGroupedByDate()?this._getGroupCount()-1:t,this._groupedStrategy.getHorizontalMax(t)},getCoordinatesByDate:function(t,e,n){e=e||0;var i=this.getCellIndexByDate(t,n),o=this._getCellPositionByIndex(i,e,n),r=this.getPositionShift(n?0:this.getTimeShift(t),n),a=this._getHorizontalMax(e,t);if(!o)throw k.Error("E1039");return{cellPosition:o.left+r.cellPosition,top:o.top+r.top,left:o.left+r.left,rowIndex:o.rowIndex,cellIndex:o.cellIndex,hMax:a,vMax:this.getVerticalMax(e),groupIndex:e}},getVerticalMax:function(t){return this._groupedStrategy.getVerticalMax(t)},_getOffsetByAllDayPanel:function(t){return this._groupedStrategy._getOffsetByAllDayPanel(t)},_getGroupTop:function(t){return this._groupedStrategy._getGroupTop(t)},isGroupedByDate:function(){return this.option("groupByDate")&&this._isHorizontalGroupedWorkSpace()&&this._getGroupCount()>0},getCellIndexByDate:function(t,e){var n=e?864e5:this._getInterval(),i=this._getIntervalBetween(t,e),o=Math.floor(i/n);return e&&(o=this._updateIndex(o)),o<0&&(o=0),o},getPositionShift:function(t,e){return{top:t*this.getCellHeight(),left:0,cellPosition:0}},getTimeShift:function(t){var e=new Date(t),n=this.getCellDuration(),i=new Date(new Date(t).setHours(this.option("endDayHour"),0,0));t.getTime()<=i.getTime()&&e.setHours(this.option("startDayHour"),0,0,0);var o=t.getTime(),r=e.getTime();return o>this._firstViewDate.getTime()?(o-r)%n/n:0},_isSkippedData:function(){return!1},getCoordinatesByDateInGroup:function(t,e,n){var i=this._getGroupIndexes(e),o=[];if(this._isSkippedData(t))return o;if(i.length)for(var r=0;r<i.length;r++)o.push(this.getCoordinatesByDate(t,i[r],n));else o.push(this.getCoordinatesByDate(t,0,n));return o},getDroppableCellIndex:function(){var t=this._getDroppableCell(),e=t.parent();return e.index()*e.find("td").length+t.index()},getDataByDroppableCell:function(){var t=this.getCellData(this._getDroppableCell()),e=t.allDay,n=t.startDate;return{startDate:n,endDate:n&&this.invoke("calculateAppointmentEndDate",e,n),allDay:e,groups:t.groups}},getDateRange:function(){return[this.getStartViewDate(),this.getEndViewDateByEndDayHour()]},getCellWidth:function(){var t=this._getCells().first().get(0);return t&&p(t).width},getCellMinWidth:function(){return 75},getRoundedCellWidth:function(t,e,n){if(t<0)return 0;var i=0,r=this.$element().find("."+this._getDateTableRowClass()).eq(0).find("."+F),a=this._getCellCount()*t;n=n||this._getCellCount(),u.isDefined(e)||(e=a);for(var s=e;s<a+n;s++)i+=p(o(r).eq(s).get(0)).width;return i/(a+n-e)},getCellHeight:function(){var t=this._getCells().first().get(0);return t&&p(t).height},getAllDayHeight:function(){var t=this._getCells(!0).first().get(0);return this.option("showAllDayPanel")&&t&&p(t).height||0},getAllDayOffset:function(){return this._groupedStrategy.getAllDayOffset()},getMaxAllowedPosition:function(){if(!this._maxAllowedPosition){var t=this.option("rtlEnabled");this._maxAllowedPosition=[],this._$dateTable.find("tr").first().find("td:nth-child("+this._getCellCount()+"n)").each(function(e,n){var i=o(n).position().left;t||(i+=p(n).width),this._maxAllowedPosition.push(Math.round(i))}.bind(this))}return this._maxAllowedPosition},getMaxAllowedVerticalPosition:function(){if(!this._maxAllowedVerticalPosition){var t=this;this._maxAllowedVerticalPosition=[];var e=this._getRowCount();this._$dateTable.find("tr:nth-child("+e+"n)").each((function(e,n){var i=o(n).position().top+p(n).height;t._maxAllowedVerticalPosition.push(Math.round(i))}))}return this._maxAllowedVerticalPosition},getFixedContainer:function(){return this._$fixedContainer},getAllDayContainer:function(){return this._$allDayContainer},getCellIndexByCoordinates:function(t,e){var n=this._getTotalCellCount(this._getGroupCount()),i=Math.floor(this._getWorkSpaceWidth()/n),o=e?this.getAllDayHeight():this.getCellHeight(),r=this._isRTL()||this.option("crossScrollingEnabled")?0:this.getWorkSpaceLeftOffset(),a=Math.floor(Math.floor(t.top)/Math.floor(o)),s=Math.floor((t.left+5-r)/i);return this._isRTL()&&(s=n-s-1),n*a+s},getStartViewDate:function(){return this._firstViewDate},getEndViewDate:function(){var t=this.getDateOfLastViewCell(),e=this.calculateEndViewDate(t);return this._adjustEndViewDateByDaylightDiff(t,e)},getEndViewDateByEndDayHour:function(){var t=this.getDateOfLastViewCell(),e=l.dateTimeFromDecimal(this.option("endDayHour")),n=new Date(t.setHours(e.hours,e.minutes));return this._adjustEndViewDateByDaylightDiff(t,n)},calculateEndViewDate:function(t){return new Date(t.getTime()+this.getCellDuration())},_adjustEndViewDateByDaylightDiff:function(t,e){var n=N.getDaylightOffsetInMs(t,e),i=new Date(e.getTime()-n);return new Date(i.getTime()-_("minute"))},getDateOfLastViewCell:function(){var t=this._getRowCount()-1,e=this._getCellCount();return this.isGroupedByDate()?e=e*this._getGroupCount()-1:e-=1,this._getDateByCellIndexes(t,e,!0)},getCellDuration:function(){return 36e5*this.option("hoursInterval")},getIntervalDuration:function(t){return t?_("day"):this.getCellDuration()},getVisibleDayDuration:function(){return this.option("hoursInterval")*this._getCellCountInDay()*$},getGroupBounds:function(t){var e=this._getCellCount(),n=this._getCells(),i=this.getCellWidth(),o=this._groupedStrategy.getGroupBoundsOffset(e,n,i,t);if(this._isRTL()){var r=o.left;o.left=o.right-2*i,o.right=r+2*i}return o},needRecalculateResizableArea:function(){return this._isVerticalGroupedWorkSpace()&&0!==this.getScrollable().scrollTop()},getCellDataByCoordinates:function(t,e){var n=JSON.stringify({top:t.top,left:t.left}),i=this.getCellDataCache(n);if(i)return i;var o=this._getCells(e),r=this.getCellIndexByCoordinates(t,e),a=o.eq(r);return this.getCellData(a)},getVisibleBounds:function(){var t={},e=this.getScrollable().$element(),n=this.getCellHeight(),i=this.getScrollableScrollTop()/n,o=i+e.height()/n;return t.top={hours:Math.floor(i*this.option("hoursInterval"))+this.option("startDayHour"),minutes:i%2?30:0},t.bottom={hours:Math.floor(o*this.option("hoursInterval"))+this.option("startDayHour"),minutes:Math.floor(o)%2?30:0},t},updateScrollPosition:function(t){t=this.invoke("convertDateByTimezone",t);var e=this.getVisibleBounds(),n=t.getHours(),i=t.getMinutes();this.needUpdateScrollPosition(n,i,e,t)&&this.scrollToTime(n,i,t)},needUpdateScrollPosition:function(t,e,n){var i=!1;return(t<n.top.hours||t>n.bottom.hours)&&(i=!0),t===n.top.hours&&e<n.top.minutes&&(i=!0),t===n.bottom.hours&&e>n.top.minutes&&(i=!0),i},getGroupWidth:function(t){var e=this._getCellCount()*this.getCellWidth(),n=this.getMaxAllowedPosition(),i=n[t];return n.length&&i&&(e=this._isRTL()?i-n[t+1]:0===t?i:i-n[t-1]),e},scrollToTime:function(t,e,n){var i=this.getStartViewDate(),o=this.getEndViewDate();if(n<i||n>o)k.log("W1008",n);else{var r=this._getScrollCoordinates(t,e,n),a=this.getScrollable();a.scrollBy({top:r.top-a.scrollTop(),left:0})}},getDistanceBetweenCells:function(t,e){var n=0;return this.$element().find("."+this._getDateTableRowClass()).first().find("."+F).each((function(i){if(i<t||i>e)return!0;n+=p(this).width})),n},needApplyCollectorOffset:function(){return!1},initDragBehavior:function(t){!this.dragBehavior&&t&&(this.dragBehavior=new R(t),this.dragBehavior.addTo(this.getWorkArea()),this.dragBehavior.addTo(this.getAllDayContainer()),this.dragBehavior.addTo(this._$allDayPanel))},_isApplyCompactAppointmentOffset:function(){return this._supportCompactDropDownAppointments()},_supportCompactDropDownAppointments:function(){return!0},_formatWeekday:function(t){return X(t)},_formatWeekdayAndDay:function(t){return X(t)+" "+g.format(t,"day")},removeDroppableCellClass:function(t){(t||this._getDroppableCell()).removeClass("dx-scheduler-date-table-droppable-cell")}}).include(x);t.exports=J},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var o=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._workSpace=e}var e,n,o;return e=t,(n=[{key:"getLastGroupCellClass",value:function(){return"dx-scheduler-last-group-cell"}},{key:"getFirstGroupCellClass",value:function(){return"dx-scheduler-first-group-cell"}},{key:"_getOffsetByAllDayPanel",value:function(){return 0}},{key:"_getGroupTop",value:function(){return 0}}])&&i(e.prototype,n),o&&i(e,o),t}();t.exports=o},function(t,e,n){"use strict";var i,o=n(24),r=n(3),a=(i=r)&&i.__esModule?i:{default:i};function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._workSpace=e,this._$container=this._workSpace._dateTableScrollable.$content()}var e,n,i;return e=t,(n=[{key:"render",value:function(){var t=this;this.initShaderElements(),this.renderShader(),this.applyShaderMargin(this._$shader),this._shader.forEach((function(e,n){t._$container.append(e)}))}},{key:"initShaderElements",value:function(){this._$shader=this.createShader(),this._shader=[],this._shader.push(this._$shader)}},{key:"renderShader",value:function(){}},{key:"applyShaderMargin",value:function(t){t&&this._workSpace.option("crossScrollingEnabled")&&(t.css("marginTop",-(0,o.getBoundingRect)(this._$container.get(0)).height),t.css("height",(0,o.getBoundingRect)(this._$container.get(0)).height))}},{key:"createShader",value:function(){return(0,a.default)("<div>").addClass("dx-scheduler-date-time-shader")}},{key:"clean",value:function(){this._$container&&this._$container.find(".dx-scheduler-date-time-shader").remove()}}])&&s(e.prototype,n),i&&s(e,i),t}();t.exports=l},function(t,e,n){"use strict";var i=s(n(8)),o=s(n(26)),r=s(n(43)),a=s(n(508));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=o.default.dateToMilliseconds,_=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(s,t);var e,n,i,a=f(s);function s(){return u(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"_getElementClass",value:function(){return"dx-scheduler-work-space-week"}},{key:"_getRowCount",value:function(){return this._getCellCountInDay()}},{key:"_getCellCount",value:function(){return 7*this.option("intervalCount")}},{key:"_getDateByIndex",value:function(t){var e=new Date(this._firstViewDate);return e.setDate(this._firstViewDate.getDate()+t),e}},{key:"_getStartViewDate",value:function(){return o.default.getFirstWeekDate(this.option("startDate"),this._firstDayOfWeek()||r.default.firstDayOfWeekIndex())}},{key:"_getIntervalDuration",value:function(){return 7*g("day")*this.option("intervalCount")}},{key:"getPositionShift",value:function(t,e){return!e&&this.invoke("isAdaptive")&&0===this.invoke("getMaxAppointmentCountPerCellByType")?{top:0,left:0,cellPosition:0}:d(m(s.prototype),"getPositionShift",this).call(this,t,e)}},{key:"_isApplyCompactAppointmentOffset",value:function(){return(!this.invoke("isAdaptive")||0!==this.invoke("getMaxAppointmentCountPerCellByType"))&&d(m(s.prototype),"_isApplyCompactAppointmentOffset",this).call(this)}}])&&c(e.prototype,n),i&&c(e,i),s}(a.default);(0,i.default)("dxSchedulerWorkSpaceWeek",_),t.exports=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(26);e.isDataOnWeekend=function(t){var e=t.getDay();return 6===e||0===e},e.getFirstDayOfWeek=function(t){return t||1},e.getWeekendsCount=function(t){return 2*Math.floor(t/7)},e.getFirstViewDate=function(t,e){var n=i.getFirstWeekDate(t,e);return i.normalizeDateByWeek(n,t)}},function(t,e,n){"use strict";var i=n(8),o=n(311),r=n(24).getBoundingRect,a=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-week"},_getCellCount:function(){return this.callBase()*this._getWeekDuration()},_getHeaderPanelCellWidth:function(t){return r(t.children().first().get(0)).width},_getWeekDuration:function(){return 7},_needRenderWeekHeader:function(){return!0},_incrementDate:function(t){t.setDate(t.getDate()+1)}});i("dxSchedulerTimelineWeek",a),t.exports=a},function(t,e,n){"use strict";var i,o=n(2),r=(i=o)&&i.__esModule?i:{default:i};function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var s=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._renderingStrategy=e}var e,n,i;return e=t,(n=[{key:"getRenderingStrategy",value:function(){return this._renderingStrategy}},{key:"getDropDownAppointmentWidth",value:function(t,e){return e||!r.default.isDefined(e)?75*this.getRenderingStrategy().getDefaultCellWidth()/100:24}},{key:"getCollectorTopOffset",value:function(){return 3}},{key:"getCollectorLeftOffset",value:function(){return 3}},{key:"getAppointmentDefaultOffset",value:function(){return this.getRenderingStrategy()._isCompactTheme()?22:this.getRenderingStrategy().instance.option("_appointmentOffset")}},{key:"getDynamicAppointmentCountPerCell",value:function(){var t=this.getRenderingStrategy(),e=t.instance.fire("getCellHeight"),n=Math.floor((e-t._getAppointmentDefaultOffset())/t._getAppointmentDefaultHeight())||this._getAppointmentMinCount();return t.hasAllDayAppointments()?{allDay:"vertical"===t.instance._groupOrientation?n:t.instance.option("_appointmentCountPerCell"),simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:n}},{key:"getDropDownAppointmentHeight",value:function(){}},{key:"_getAppointmentMinCount",value:function(){return 1}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/50)}},{key:"_getAppointmentDefaultWidth",value:function(){return 40}}])&&a(e.prototype,n),i&&a(e,i),t}();t.exports=s},function(t,e,n){"use strict";var i=r(n(312)),o=r(n(26));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=o.default.dateToMilliseconds,m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(r,t);var e,n,i,o=d(r);function r(){return s(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_needVerifyItemSize",value:function(){return!0}},{key:"calculateAppointmentWidth",value:function(t,e,n){var i=this.getDefaultCellWidth()||this.getAppointmentMinSize(),o=this.instance.fire("getField","allDay",t),r=this.startDate(t,!1,e),a=this.endDate(t,e,n,!1),s=this._getAppointmentDurationInMs(r,a,o),l=(s=this._adjustDurationByDaylightDiff(s,r,a))/(this.instance.getAppointmentDurationInMinutes()*p("minute"));return this.cropAppointmentWidth(l*i,i)}},{key:"_needAdjustDuration",value:function(t){return t<0}},{key:"getAppointmentGeometry",value:function(t){var e=this._customizeAppointmentGeometry(t);return u(f(r.prototype),"getAppointmentGeometry",this).call(this,e)}},{key:"_customizeAppointmentGeometry",value:function(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}},{key:"_getOffsets",value:function(){return{unlimited:0,auto:0}}},{key:"_getCompactLeftCoordinate",value:function(t,e){return t+(this.getDefaultCellWidth()||this.getAppointmentMinSize())*e}},{key:"_getMaxHeight",value:function(){return this.getDefaultCellHeight()||this.getAppointmentMinSize()}},{key:"_getAppointmentCount",value:function(t,e){return this._getMaxAppointmentCountPerCellByType(!1)}},{key:"_getAppointmentDefaultHeight",value:function(){return 60}},{key:"_getAppointmentMinHeight",value:function(){return 35}},{key:"_sortCondition",value:function(t,e){return this._columnCondition(t,e)}},{key:"_getOrientation",value:function(){return["left","right","top"]}},{key:"_getMaxAppointmentWidth",value:function(t){return this.instance.fire("getMaxAppointmentWidth",{date:t})}},{key:"getDropDownAppointmentWidth",value:function(){return this.getDefaultCellWidth()-4}},{key:"getDeltaTime",value:function(t,e){var n=t.width-e.width;return p("minute")*Math.round(n/this.getDefaultCellWidth()*this.instance.getAppointmentDurationInMinutes())}},{key:"isAllDay",value:function(t){return this.instance.fire("getField","allDay",t)}},{key:"needSeparateAppointment",value:function(){return this.instance.fire("isGroupedByDate")}}])&&l(e.prototype,n),i&&l(e,i),r}(i.default);t.exports=m},function(t,e,n){"use strict";var i=a(n(516)),o=a(n(26)),r=a(n(61));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(s,t);var e,n,i,a=h(s);function s(){return l(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"calculateAppointmentWidth",value:function(t,e,n){var i=o.default.trimTime(new Date(this.startDate(t,!1,e))),r=new Date(this.endDate(t,e,n,!0)),a=this.getDefaultCellWidth()||this.getAppointmentMinSize(),s=this._getDurationInDays(i,r);return this.cropAppointmentWidth(Math.ceil(s)*a,a)}},{key:"_getDurationInDays",value:function(t,e){return this._adjustDurationByDaylightDiff(e.getTime()-t.getTime(),t,e)/o.default.dateToMilliseconds("day")||1}},{key:"getDeltaTime",value:function(t,e){return 864e5*this._getDeltaWidth(t,e)}},{key:"isAllDay",value:function(){return!1}},{key:"createTaskPositionMap",value:function(t,e){return e||this.instance.getAppointmentsInstance()._sortAppointmentsByStartDate(t),c(p(s.prototype),"createTaskPositionMap",this).call(this,t)}},{key:"_getSortedPositions",value:function(t,e){var n=c(p(s.prototype),"_getSortedPositions",this).call(this,t);return e||(n=(0,r.default)(n).sortBy("top").thenBy("left").thenBy("cellPosition").thenBy("i").toArray()),n}},{key:"needCorrectAppointmentDates",value:function(){return!1}}])&&u(e.prototype,n),i&&u(e,i),s}(i.default);t.exports=m},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4).noop,a=n(47),s=n(25),l=n(33),u=n(17).getPublicElement,c=n(372).hideCallback,d=n(8),h=n(0).extend,f=n(20),p=n(164),m=n(98).EmptyTemplate,g=n(7).Deferred,_=n(10),v=function(t,e,n){a.animate(t,{type:"slide",to:{left:e},duration:400,complete:n})},y=function(t){a.stop(t,!0)},b=f.inherit({ctor:function(t,e){this.callBase(t,e),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return h(this.callBase(),{menuPosition:"normal",menuVisible:!1,swipeEnabled:!0,menuTemplate:"menu",contentTemplate:"content",contentOffset:45})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{android:!0},options:{contentOffset:54}},{device:function(t){return"generic"===t.platform&&"desktop"!==t.deviceType},options:{contentOffset:56}},{device:{win:!0,phone:!1},options:{contentOffset:76}}])},_init:function(){this.callBase(),this.$element().addClass("dx-slideoutview"),this._whenAnimationComplete=void 0,this._whenMenuRendered=void 0,this._initHideTopOverlayHandler()},_initHideTopOverlayHandler:function(){this._hideMenuHandler=this.hideMenu.bind(this)},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this._templateManager.addDefaultTemplates({menu:new m,content:new m}),this.callBase()},_initMarkup:function(){var t=this;this.callBase(),this._renderMarkup(),this._whenMenuRendered=new g;var e=this._getTemplate(this.option("menuTemplate"));e&&e.render({container:this.menuContent(),onRendered:function(){t._whenMenuRendered.resolve()}});var n=this.option("contentTemplate"),i=this._getTemplate(n),o=this._templateManager.anonymousTemplateName===n;i&&i.render({container:this.content(),noModel:!0,transclude:o}),this._renderShield(),this._toggleMenuPositionClass()},_render:function(){var t=this;this.callBase(),this._whenMenuRendered.always((function(){t._initSwipeHandlers(),t._dimensionChanged()}))},_renderMarkup:function(){var t=i("<div>").addClass("dx-slideoutview-wrapper");this._$menu=i("<div>").addClass("dx-slideoutview-menu-content"),this._$container=i("<div>").addClass("dx-slideoutview-content"),t.append(this._$menu),t.append(this._$container),this.$element().append(t),o.on(this._$container,"MSPointerDown",r)},_renderShield:function(){this._$shield=this._$shield||i("<div>").addClass("dx-slideoutview-shield"),this._$shield.appendTo(this.content()),o.off(this._$shield,s.name),o.on(this._$shield,s.name,this.hideMenu.bind(this)),this._toggleShieldVisibility(this.option("menuVisible"))},_initSwipeHandlers:function(){this._createComponent(i(this.content()),p,{disabled:!this.option("swipeEnabled"),elastic:!1,itemSizeFunc:this._getMenuWidth.bind(this),onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this)})},_isRightMenuPosition:function(){var t="inverted"===this.option("menuPosition"),e=this.option("rtlEnabled");return e&&!t||!e&&t},_swipeStartHandler:function(t){y(i(this.content()));var e=t.event,n=this.option("menuVisible"),o=this._isRightMenuPosition();e.maxLeftOffset=+(o?!n:n),e.maxRightOffset=+(o?n:!n),this._toggleShieldVisibility(!0)},_swipeUpdateHandler:function(t){var e=t.event,n=this.option("menuVisible")?e.offset+1*this._getRTLSignCorrection():e.offset;n*=this._getRTLSignCorrection(),this._renderPosition(n,!1)},_swipeEndHandler:function(t){var e=0!==t.event.targetOffset*this._getRTLSignCorrection()+this.option("menuVisible");this.option("menuVisible")===e?this._renderPosition(this.option("menuVisible"),!0):this.option("menuVisible",e)},_toggleMenuPositionClass:function(){var t=this._isRightMenuPosition()?"right":"left";this._$menu.removeClass("dx-slideoutview-left dx-slideoutview-right"),this._$menu.addClass("dx-slideoutview-"+t)},_renderPosition:function(t,e){if(_.hasWindow()){var n=this._calculatePixelOffset(t)*this._getRTLSignCorrection();this._toggleHideMenuCallback(t),e?(this._toggleShieldVisibility(!0),v(i(this.content()),n,this._animationCompleteHandler.bind(this))):l.move(i(this.content()),{left:n})}},_calculatePixelOffset:function(t){return(t=t||0)*this._getMenuWidth()},_getMenuWidth:function(){if(!this._menuWidth){var t=this.$element().width()-this.option("contentOffset"),e=i(this.menuContent());e.css("maxWidth",t<0?0:t);var n=e.width();this._menuWidth=Math.min(n,t)}return this._menuWidth},_animationCompleteHandler:function(){this._toggleShieldVisibility(this.option("menuVisible")),this._whenAnimationComplete&&this._whenAnimationComplete.resolveWith(this)},_toggleHideMenuCallback:function(t){t?c.add(this._hideMenuHandler):c.remove(this._hideMenuHandler)},_getRTLSignCorrection:function(){return this._isRightMenuPosition()?-1:1},_dispose:function(){y(i(this.content())),this._toggleHideMenuCallback(!1),this.callBase()},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){delete this._menuWidth,this._renderPosition(this.option("menuVisible"),!1)},_toggleShieldVisibility:function(t){this._$shield.toggleClass("dx-state-invisible",!t)},_optionChanged:function(t){switch(t.name){case"width":this.callBase(t),this._dimensionChanged();break;case"contentOffset":this._dimensionChanged();break;case"menuVisible":this._renderPosition(t.value,!0);break;case"menuPosition":this._renderPosition(this.option("menuVisible"),!0),this._toggleMenuPositionClass();break;case"swipeEnabled":this._initSwipeHandlers();break;case"contentTemplate":case"menuTemplate":this._invalidate();break;default:this.callBase(t)}},menuContent:function(){return u(this._$menu)},content:function(){return u(this._$container)},showMenu:function(){return this.toggleMenuVisibility(!0)},hideMenu:function(){return this.toggleMenuVisibility(!1)},toggleMenuVisibility:function(t){return t=void 0===t?!this.option("menuVisible"):t,this._whenAnimationComplete=new g,this.option("menuVisible",t),this._whenAnimationComplete.promise()}});d("dxSlideOutView",b),t.exports=b,t.exports.default=t.exports},function(t,e,n){"use strict";var i=Math.max,o=n(520);function r(t,e){return i(t,e)}function a(t){return o(t,r,!1)}n(146).addAlgorithm("squarified",a),t.exports=a},function(t,e,n){"use strict";var i=Math.max,o=Math.round,r=n(146);function a(t,e){return e.value-t.value}function s(t,e,n){var a,s=r.buildSidesData(n.rect,n.directions,n.staticSideIndex),l=((a=n.rect)[2]-a[0])*(a[3]-a[1]),u=l>0?function(t,e,n){var r,a,s,l,u,c,d=1/0,h=0,f=t.length,p=n.areaToValue/n.staticSide;for(s=e;s<f;){for(a=h+t[s].value,u=n.staticSide/p/a,r=0,l=e;l<=s;++l)r=n.accumulate(r,(c=u*t[l].value/a,i(c,1/c)),l-e+1);if(!(r<d))break;d=r,h=a,++s}return{sum:h,count:s-e,side:o(p*h)}}(t,e,{areaToValue:l/n.sum,accumulate:n.accumulate,staticSide:s.staticSide}):{sum:1,side:s.variedSide,count:t.length-e};return r.calculateRectangles(t,e,n.rect,s,u),n.sum-=u.sum,e+u.count}t.exports=function(t,e,n){var i,o=t.items,l=o.length,u={sum:t.sum,rect:t.rect,directions:t.directions,accumulate:e};for(n&&(u.staticSideIndex=r.getStaticSideIndex(u.rect)),o.sort(a),i=0;i<l;)i=s(o,i,u)}},function(t,e,n){"use strict";function i(t,e,n){var i=e.createPalette(t.palette,{useHighlight:!0,extensionMode:t.paletteExtensionMode,count:t.colorizeGroups?a(n):o(n)});return(t.colorizeGroups?s:r)(i,n)}function o(t){var e,n,i=t.nodes.slice(),r=i.length,a=0;for(e=0;e<r;++e)(n=i[e]).isNode()?a=Math.max(a,o(n)):a+=1;return a}function r(t){var e=t.generateColors();return function(t){return e[t.index]}}function a(t){var e,n,i=t.nodes.slice(),o=i.length,r=0;for(e=0;e<o;++e)(n=i[e]).isNode()&&(r+=a(n)+1);return r}function s(t,e){var n=function(t,e){var n,i,o={},r=e.nodes.slice(),a=r.length;for(n=0;n<a;++n)(i=r[n]).isNode()?a=(r=r.concat(i.nodes)).length:o[i.parent._id]||(o[i.parent._id]=t.getNextColor());return o}(t,e);return function(t){return n[t._id]}}n(147).addColorizer("discrete",i),t.exports=i},function(t,e,n){"use strict";var i=n(83).prototype,o=n(203).prototype,r=n(163).expand,a=n(313),s=n(13).parseScalar,l=a.buildRectAppearance;n(173),n(523),i._eventsMap.onHoverChanged={name:"hoverChanged"},r(i._handlers,"calculateAdditionalStates",(function(t,e){t[1]=e.hoverStyle?l(e.hoverStyle):{}})),n(83).addChange({code:"HOVER_ENABLED",handler:function(){var t=s(this._getOption("hoverEnabled",!0),!0);t||this.clearHover(),this._hoverEnabled=t},isThemeDependent:!0,isOptionChange:!0,option:"hoverEnabled"}),o.statesMap[1]=1,o.additionalStates.push(1),r(i,"_extendProxyType",(function(t){var e=this;t.setHover=function(){e._hoverNode(this._id)},t.isHovered=function(){return e._hoverIndex===this._id}})),r(i,"_onNodesCreated",(function(){this._hoverIndex=-1})),r(i,"_changeGroupSettings",(function(){this._groupHoverEnabled=s(this._getOption("group").hoverEnabled,!0),this._groupHoverEnabled||this.clearHover()})),i._applyHoverState=function(t,e){!function t(e,n,i){var o,r=e.isNode()&&e.nodes,a=r&&r.length;for(e.setState(n,i),o=0;o<a;++o)t(r[o],n,i)}(this._nodes[t],1,e),this._eventTrigger("hoverChanged",{node:this._nodes[t].proxy})},i._hoverNode=function(t){var e=this._hoverIndex;if(this._hoverEnabled&&e!==t){if(!this._groupHoverEnabled&&t>=0&&this._nodes[t].isNode())return void this.clearHover();this._context.suspend(),this._hoverIndex=-1,e>=0&&this._applyHoverState(e,!1),this._hoverIndex=t,t>=0&&this._applyHoverState(t,!0),this._context.resume()}},i.clearHover=function(){this._hoverNode(-1)}},function(t,e,n){"use strict";var i=n(83).prototype,o=n(203).prototype,r=i._handlers,a=r.calculateState,s=o._buildState,l=n(0).extend;r.calculateState=function(t){var e={0:a(t)};return r.calculateAdditionalStates(e,t),e},r.calculateAdditionalStates=n(4).noop,o.code=0,o.statesMap={0:0},o.additionalStates=[],o._buildState=function(t,e){var n={0:s(t[0],e)};return this.additionalStates.length&&function(t,e,n,i){var o,r=i.length;for(o=0;o<r;++o)t[i[o]]=l({},e,n[i[o]])}(n,n[0],t,this.additionalStates),n},o._getState=function(){return this.state[this.statesMap[this.code]]},o.setState=function(t,e){e?this.code|=t:this.code&=~t,this.ctx.change(["TILES"])}},function(t,e,n){"use strict";var i=n(83).prototype,o=n(163).expand;n(173),o(i,"_extendProxyType",(function(t){var e=this;t.showTooltip=function(t){e._showTooltip(this._id,t)}})),o(i,"_onNodesCreated",(function(){this._tooltipIndex>=0&&this._tooltip.hide(),this._tooltipIndex=-1})),o(i,"_onTilingPerformed",(function(){this._tooltipIndex>=0&&this._moveTooltip(this._nodes[this._tooltipIndex])})),i._showTooltip=function(t,e){var n=this._tooltip,i=this._nodes[t],o=this._tooltipIndex===t||n.show({value:i.value,valueText:n.formatValue(i.value),node:i.proxy},{x:0,y:0,offset:0},{node:i.proxy});o?this._moveTooltip(i,e):n.hide(),this._tooltipIndex=o?t:-1},i._moveTooltip=function(t,e){var n=e||t.rect&&function(t,e){var n=e.getRootOffset();return[(t[0]+t[2])/2+n.left,(t[1]+t[3])/2+n.top]}(t.rect,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},i.hideTooltip=function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},n(83).addPlugin(n(122).plugin)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.projection=e.Projection=void 0;var i=n(0),o=n(526);function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=Number,u=Math.min,c=Math.max,d=Math.abs,h=Math.round,f=Math.log,p=Math.pow,m=2/Math.LN2,g=[NaN,NaN];function _(t,e){return d(t-e)<1e-8}function v(t,e){return _(t[0],e[0])&&_(t[1],e[1])}function y(t,e,n,i){var o=l(t);return isFinite(o)?u(c(o,e),n):i}function b(t,e,n,i){return[y(t[0],e[0],n[0],i[0]),y(t[1],e[1],n[1],i[1])]}function w(t){return t instanceof I&&t||P.get(t)||P(t)||P.get("mercator")}var x=e.Projection=function(t){this._initEvents(),this._params=t,this._engine=w(),this._center=this._engine.center(),this._adjustCenter()};function C(t,e,n,i){var o=(n+i)/2;return d(t-o)>d(e-o)?t:e}function S(t,e,n,i){var o=(n+i)/2;return d(t-o)<d(e-o)?t:e}function k(t,e,n){var i=M(e,n),o=i.min,r=i.max;t.min=O(o),t.max=O(r)}x.prototype={constructor:x,_minZoom:1,_maxZoom:256,_zoom:1,_center:g,_canvas:{},_scale:[],dispose:function(){this._disposeEvents()},setEngine:function(t){var e=w(t);this._engine!==e&&(this._engine=e,this._fire("engine"),this._changeCenter(e.center())&&this._triggerCenterChanged(),this._changeZoom(this._minZoom)&&this._triggerZoomChanged(),this._adjustCenter(),this._setupScreen())},setBounds:function(t){void 0!==t&&this.setEngine(this._engine.original().bounds(t))},_setupScreen:function(){var t=this._canvas,e=t.width,n=t.height,i=this._engine,o=i.ar();this._x0=t.left+e/2,this._y0=t.top+n/2;var r,a=[this.project([i.min()[0],0])[0],this.project([0,i.min()[1]])[1]],s=[this.project([i.max()[0],0])[0],this.project([0,i.max()[1]])[1]],l=e/n,h=d(s[0]-a[0])/d(s[1]-a[1]);r=isNaN(h)||0===h||u(l,o)<=o*h&&o*h<=c(l,o)?1:h>1?h:1/h,o*h>=l?(this._xRadius=e/2/r,this._yRadius=e/2/(o*r)):(this._xRadius=n/2*(o/r),this._yRadius=n/2/r),this._fire("screen")},setSize:function(t){this._canvas=t,this._setupScreen()},_toScreen:function(t){return[this._x0+this._xRadius*t[0],this._y0+this._yRadius*t[1]]},_fromScreen:function(t){return[(t[0]-this._x0)/this._xRadius,(t[1]-this._y0)/this._yRadius]},_toTransformed:function(t){return[t[0]*this._zoom+this._xCenter,t[1]*this._zoom+this._yCenter]},_toTransformedFast:function(t){return[t[0]*this._zoom,t[1]*this._zoom]},_fromTransformed:function(t){return[(t[0]-this._xCenter)/this._zoom,(t[1]-this._yCenter)/this._zoom]},_adjustCenter:function(){var t=this._engine.project(this._center);this._xCenter=-t[0]*this._zoom||0,this._yCenter=-t[1]*this._zoom||0},project:function(t){return this._engine.project(t)},transform:function(t){return this._toScreen(this._toTransformedFast(t))},isInvertible:function(){return this._engine.isInvertible()},getSquareSize:function(t){return[t[0]*this._zoom*this._xRadius,t[1]*this._zoom*this._yRadius]},getZoom:function(){return this._zoom},_changeZoom:function(t){var e=!_(this._zoom,this._zoom=y(t,this._minZoom,this._maxZoom,this._minZoom));return e&&(this._adjustCenter(),this._fire("zoom")),e},setZoom:function(t){this._engine.isInvertible()&&this._changeZoom(t)&&this._triggerZoomChanged()},getScaledZoom:function(){return h((this._scale.length-1)*f(this._zoom)/f(this._maxZoom))},setScaledZoom:function(t){this.setZoom(this._scale[h(t)])},changeScaledZoom:function(t){this.setZoom(this._scale[c(u(h(this.getScaledZoom()+t),this._scale.length-1),0)])},getZoomScalePartition:function(){return this._scale.length-1},_setupScaling:function(){var t=c(h(m*f(this._maxZoom)),4),e=p(this._maxZoom,1/t),n=this._minZoom;this._scale=[n];for(var i=1;i<=t;++i)this._scale.push(n*=e)},setMaxZoom:function(t){this._minZoom=1,this._maxZoom=y(t,this._minZoom,l.MAX_VALUE,256),this._setupScaling(),this._zoom>this._maxZoom&&this.setZoom(this._maxZoom),this._fire("max-zoom")},getCenter:function(){return this._center.slice()},setCenter:function(t){this._engine.isInvertible()&&this._changeCenter(t||[])&&this._triggerCenterChanged()},_changeCenter:function(t){var e=this._engine,n=!v(this._center,this._center=b(t,e.min(),e.max(),e.center()));return n&&(this._adjustCenter(),this._fire("center")),n},_triggerCenterChanged:function(){this._params.centerChanged(this.getCenter())},_triggerZoomChanged:function(){this._params.zoomChanged(this.getZoom())},setCenterByPoint:function(t,e){var n=this._engine.project(t),i=this._fromScreen(e);this.setCenter(this._engine.unproject([-i[0]/this._zoom+n[0],-i[1]/this._zoom+n[1]]))},beginMoveCenter:function(){this._engine.isInvertible()&&(this._moveCenter=this._center)},endMoveCenter:function(){this._moveCenter&&(v(this._moveCenter,this._center)||this._triggerCenterChanged(),this._moveCenter=null)},moveCenter:function(t){if(this._moveCenter){var e=this.toScreenPoint(this._center);this._changeCenter(this.fromScreenPoint([e[0]+t[0],e[1]+t[1]]))}},getViewport:function(){var t=this._engine.unproject,e=t(this._fromTransformed([-1,-1])),n=t(this._fromTransformed([-1,1])),i=t(this._fromTransformed([1,-1])),o=t(this._fromTransformed([1,1])),r=M([C(e[0],n[0],i[0],o[0]),C(e[1],i[1],n[1],o[1])],[C(i[0],o[0],e[0],n[0]),C(n[1],o[1],e[1],i[1])]);return[].concat(r.min,r.max)},setViewport:function(t){var e=this._engine,n=t?function(t,e,n){var i=t([n[0],n[3]]),o=t([n[0],n[1]]),r=t([n[2],n[3]]),a=t([n[2],n[1]]),s=S(i[0],o[0],r[0],a[0]),l=S(r[0],a[0],i[0],o[0]),u=S(i[1],r[1],o[1],a[1]),h=S(o[1],a[1],i[1],r[1]);return[2/c(d(s-l),d(u-h)),e([(s+l)/2,(u+h)/2])]}(e.project,e.unproject,t):[this._minZoom,e.center()];this.setZoom(n[0]),this.setCenter(n[1])},getTransform:function(){return{translateX:this._xCenter*this._xRadius,translateY:this._yCenter*this._yRadius}},fromScreenPoint:function(t){return this._engine.unproject(this._fromTransformed(this._fromScreen(t)))},toScreenPoint:function(t){return this._toScreen(this._toTransformed(this._engine.project(t)))},_eventNames:["engine","screen","center","zoom","max-zoom"]},(0,o.makeEventEmitter)(x);var I=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var n,o=(n=e.to,function(t){return T(n(t))}),r=e.from?function(t){return function(e){return t(T(e))}}(e.from):E(g);this.project=o,this.unproject=r,this.original=E(this),this.source=function(){return(0,i.extend)({},e)},this.isInvertible=E(!!e.from),this.ar=E(e.aspectRatio>0?l(e.aspectRatio):1),this.center=O(r([0,0])),k(this,[r([-1,0])[0],r([0,1])[1]],[r([1,0])[0],r([0,-1])[1]])}var e,n,o;return e=t,(n=[{key:"aspectRatio",value:function(e){var n=new t((0,i.extend)(this.source(),{aspectRatio:e}));return n.original=this.original,n.min=this.min,n.max=this.max,n}},{key:"bounds",value:function(e){e=e||[];var n=this.source(),o=this.min(),a=this.max(),s=b([e[0],e[1]],o,a,o),l=b([e[2],e[3]],o,a,a),c=n.to(s),h=n.to(l),f=u(d(h[0]-c[0])>1/3600/180/10?d(h[0]-c[0]):2,d(h[1]-c[1])>1/3600/180/10?d(h[1]-c[1]):2);f<2&&(0,i.extend)(n,function(t,e,n,i,o){var a=(n[0]+i[0])/2-o/2,s=(n[1]+i[1])/2-o/2,l=2/o;return{to:function(e){var n=r(t(e),2),i=n[0],o=n[1];return[(i-a)*l-1,(o-s)*l-1]},from:function(t){return e([a+(t[0]+1)/l,s+(t[1]+1)/l])}}}(n.to,n.from,c,h,f));var p=new t(n);return p.original=this.original,k(p,s,l),p}}])&&s(e.prototype,n),o&&s(e,o),t}();function T(t){return[t[0],-t[1]]}function E(t){return function(){return t}}function O(t){return function(){return t.slice()}}function M(t,e){return{min:[u(t[0],e[0]),u(t[1],e[1])],max:[c(t[0],e[0]),c(t[1],e[1])]}}var P=e.projection=function(t){return t&&t.to?new I(t):null},D={};P.get=function(t){return D[t]||null},P.add=function(t,e){return e=e instanceof I&&e||P(e),!D[t]&&e&&(D[t]=e),P}},function(t,e,n){"use strict";var i=n(39),o={_initEvents:function(){var t,e=this._eventNames,n=e.length,o=this._events={};for(t=0;t<n;++t)o[e[t]]=i()},_disposeEvents:function(){var t,e=this._events;for(t in e)e[t].empty();this._events=null},on:function(t){var e,n=this._events;for(e in t)n[e].add(t[e]);return function(){for(e in t)n[e].remove(t[e])}},_fire:function(t,e){this._events[t].fire(e)}};e.makeEventEmitter=function(t){var e,n=t.prototype;for(e in o)n[e]=o[e]}},function(t,e,n){"use strict";var i=n(1138).Buffer,o=n(1139).Transform;function r(t){o.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(22)(r,o),r.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(o){i=o}n(i)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(n){e=n}t(e)},r.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!==typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,o=0;this._blockOffset+t.length-o>=this._blockSize;){for(var r=this._blockOffset;r<this._blockSize;)n[r++]=t[o++];this._update(),this._blockOffset=0}for(;o<t.length;)n[this._blockOffset++]=t[o++];for(var a=0,s=8*t.length;s>0;++a)this._length[a]+=s,(s=this._length[a]/4294967296|0)>0&&(this._length[a]-=4294967296*s);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r},function(t,e,n){"use strict";(function(e,i){var o;t.exports=k,k.ReadableState=S;n(148).EventEmitter;var r=function(t,e){return t.listeners(e).length},a=n(529),s=n(52).Buffer,l=e.Uint8Array||function(){};var u,c=n(1140);u=c&&c.debuglog?c.debuglog("stream"):function(){};var d,h,f,p=n(1141),m=n(530),g=n(531).getHighWaterMark,_=n(175).codes,v=_.ERR_INVALID_ARG_TYPE,y=_.ERR_STREAM_PUSH_AFTER_EOF,b=_.ERR_METHOD_NOT_IMPLEMENTED,w=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(22)(k,a);var x=m.errorOrDestroy,C=["error","close","destroy","pause","resume"];function S(t,e,i){o=o||n(176),t=t||{},"boolean"!==typeof i&&(i=e instanceof o),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n(149).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function k(t){if(o=o||n(176),!(this instanceof k))return new k(t);var e=this instanceof o;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,i,o){u("readableAddChunk",e);var r,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(u("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,M(t)))}(t,a);else if(o||(r=function(t,e){var n;i=e,s.isBuffer(i)||i instanceof l||"string"===typeof e||void 0===e||t.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],e));var i;return n}(a,e)),r)x(t,r);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),i)a.endEmitted?x(t,new w):T(t,a,e,!0);else if(a.ended)x(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?T(t,a,e,!1):P(t,a)):T(t,a,e,!1)}else i||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&O(t)),P(t,e)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(t,e){e(t)},k.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=s.from(t,e),e=""),n=!0),I(this,t,e,!1,n)},k.prototype.unshift=function(t){return I(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){d||(d=n(149).StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,o="";null!==i;)o+=e.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;u("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(u("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(M,t))}function M(t){var e=t._readableState;u("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(D,t,e))}function D(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(u("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function A(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){u("readable nexttick read 0"),t.read(0)}function B(t,e){u("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(u("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function F(t){var e=t._readableState;u("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(V,e,t))}function V(t,e){if(u("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function z(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}k.prototype.read=function(t){u("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return u("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):O(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&F(this),null;var i,o=e.needReadable;return u("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&u("length less than watermark",o=!0),e.ended||e.reading?u("reading or ended",o=!1):o&&(u("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(n,e))),null===(i=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&F(this)),null!==i&&this.emit("data",i),i},k.prototype._read=function(t){x(this,new b("_read()"))},k.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,e);var a=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?l:g;function s(e,i){u("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",f),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",h),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function l(){u("onend"),t.end()}o.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;u("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&r(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var d=!1;function h(e){u("ondata");var i=t.write(e);u("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==z(o.pipes,t))&&!d&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function f(e){u("onerror",e),g(),t.removeListener("error",f),0===r(t,"error")&&x(t,e)}function p(){t.removeListener("finish",m),g()}function m(){u("onfinish"),t.removeListener("close",p),g()}function g(){u("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",f),t.once("close",p),t.once("finish",m),t.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r<o;r++)i[r].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},k.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?O(this):o.reading||i.nextTick(R,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(A,this),n},k.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(A,this),e},k.prototype.resume=function(){var t=this._readableState;return t.flowing||(u("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(B,t,e))}(this,t)),t.paused=!1,this},k.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var o in t.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(u("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!n.objectMode||null!==o&&void 0!==o)&&((n.objectMode||o&&o.length)&&(e.push(o)||(i=!0,t.pause())))})),t)void 0===this[o]&&"function"===typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var r=0;r<C.length;r++)t.on(C[r],this.emit.bind(this,C[r]));return this._read=function(e){u("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"===typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(1143)),h(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=L,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(k.from=function(t,e){return void 0===f&&(f=n(1144)),f(k,t,e)})}).call(this,n(56),n(50))},function(t,e,n){t.exports=n(148).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){o(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,r){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(i,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):r?(e.nextTick(i,a),r(t)):e.nextTick(i,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(50))},function(t,e,n){"use strict";var i=n(175).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,o){var r=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,o,n);if(null!=r){if(!isFinite(r)||Math.floor(r)!==r||r<0)throw new i(o?n:"highWaterMark",r);return Math.floor(r)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var o=i.callback;e.pendingcb--,o(n),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=I,I.WritableState=k;var a={deprecate:n(315)},s=n(529),l=n(52).Buffer,u=e.Uint8Array||function(){};var c,d=n(530),h=n(531).getHighWaterMark,f=n(175).codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,x=f.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function S(){}function k(t,e,a){r=r||n(176),t=t||{},"boolean"!==typeof a&&(a=e instanceof r),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,r=n.writecb;if("function"!==typeof r)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,r){--e.pendingcb,n?(i.nextTick(r,o),i.nextTick(D,t,e),t._writableState.errorEmitted=!0,C(t,o)):(r(o),t._writableState.errorEmitted=!0,C(t,o),D(t,e))}(t,n,o,e,r);else{var a=M(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(t,n),o?i.nextTick(E,t,n,a,r):E(t,n,a,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(t){var e=this instanceof(r=r||n(176));if(!e&&!c.call(I,this))return new I(t);this._writableState=new k(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e,n,i,o,r,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):n?t._writev(o,e.onwrite):t._write(o,r,e.onwrite),e.sync=!1}function E(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),D(t,e)}function O(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,T(t,e,!0,e.length,r,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(T(t,e,!1,e.objectMode?1:u.length,u,c,d),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final((function(n){e.pendingcb--,n&&C(t,n),e.prefinished=!0,t.emit("prefinish"),D(t,e)}))}function D(t,e){var n=M(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}n(22)(I,s),k.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===I&&(t&&t._writableState instanceof k)}})):c=function(t){return t instanceof this},I.prototype.pipe=function(){C(this,new v)},I.prototype.write=function(t,e,n){var o,r=this._writableState,a=!1,s=!r.objectMode&&(o=t,l.isBuffer(o)||o instanceof u);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"===typeof e&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=S),r.ending?function(t,e){var n=new w;C(t,n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,o){var r;return null===n?r=new b:"string"===typeof n||e.objectMode||(r=new p("chunk",["string","Buffer"],n)),!r||(C(t,r),i.nextTick(o,r),!1)}(this,r,t,n))&&(r.pendingcb++,a=function(t,e,n,i,o,r){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n));return e}(e,i,o);i!==a&&(n=!0,o="buffer",i=a)}var s=e.objectMode?1:i.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:r,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else T(t,e,!1,s,i,o,r);return u}(this,r,s,t,e,n)),a},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},I.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new x(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(t,e,n){n(new m("_write()"))},I.prototype._writev=null,I.prototype.end=function(t,e,n){var o=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,D(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),I.prototype.destroy=d.destroy,I.prototype._undestroy=d.undestroy,I.prototype._destroy=function(t,e){e(t)}}).call(this,n(56),n(50))},function(t,e,n){"use strict";t.exports=c;var i=n(175).codes,o=i.ERR_METHOD_NOT_IMPLEMENTED,r=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n(176);function u(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",d)}function d(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,n){h(t,e,n)}))}function h(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n(22)(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new o("_transform()"))},c.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){var i=n(22),o=n(177),r=n(30).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],s=new Array(64);function l(){this.init(),this._w=s,o.call(this,64,56)}function u(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function d(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function h(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(l,o),l.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},l.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,_=0;_<16;++_)n[_]=t.readInt32BE(4*_);for(;_<64;++_)n[_]=0|(((e=n[_-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[_-7]+f(n[_-15])+n[_-16];for(var v=0;v<64;++v){var y=g+h(l)+u(l,p,m)+a[v]+n[v]|0,b=d(i)+c(i,o,r)|0;g=m,m=p,p=l,l=s+y|0,s=r,r=o,o=i,i=y+b|0}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},l.prototype._hash=function(){var t=r.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=l},function(t,e,n){var i=n(22),o=n(177),r=n(30).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function l(){this.init(),this._w=s,o.call(this,128,112)}function u(t,e,n){return n^t&(e^n)}function c(t,e,n){return t&e|n&(t|e)}function d(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function h(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function g(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function _(t,e){return t>>>0<e>>>0?1:0}i(l,o),l.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},l.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,o=0|this._ch,r=0|this._dh,s=0|this._eh,l=0|this._fh,v=0|this._gh,y=0|this._hh,b=0|this._al,w=0|this._bl,x=0|this._cl,C=0|this._dl,S=0|this._el,k=0|this._fl,I=0|this._gl,T=0|this._hl,E=0;E<32;E+=2)e[E]=t.readInt32BE(4*E),e[E+1]=t.readInt32BE(4*E+4);for(;E<160;E+=2){var O=e[E-30],M=e[E-30+1],P=f(O,M),D=p(M,O),A=m(O=e[E-4],M=e[E-4+1]),R=g(M,O),B=e[E-14],N=e[E-14+1],L=e[E-32],F=e[E-32+1],V=D+N|0,z=P+B+_(V,D)|0;z=(z=z+A+_(V=V+R|0,R)|0)+L+_(V=V+F|0,F)|0,e[E]=z,e[E+1]=V}for(var j=0;j<160;j+=2){z=e[j],V=e[j+1];var H=c(n,i,o),W=c(b,w,x),U=d(n,b),G=d(b,n),K=h(s,S),q=h(S,s),$=a[j],Y=a[j+1],Z=u(s,l,v),X=u(S,k,I),J=T+q|0,Q=y+K+_(J,T)|0;Q=(Q=(Q=Q+Z+_(J=J+X|0,X)|0)+$+_(J=J+Y|0,Y)|0)+z+_(J=J+V|0,V)|0;var tt=G+W|0,et=U+H+_(tt,G)|0;y=v,T=I,v=l,I=k,l=s,k=S,s=r+Q+_(S=C+J|0,C)|0,r=o,C=x,o=i,x=w,i=n,w=b,n=Q+et+_(b=J+tt|0,J)|0}this._al=this._al+b|0,this._bl=this._bl+w|0,this._cl=this._cl+x|0,this._dl=this._dl+C|0,this._el=this._el+S|0,this._fl=this._fl+k|0,this._gl=this._gl+I|0,this._hl=this._hl+T|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+i+_(this._bl,w)|0,this._ch=this._ch+o+_(this._cl,x)|0,this._dh=this._dh+r+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,S)|0,this._fh=this._fh+l+_(this._fl,k)|0,this._gh=this._gh+v+_(this._gl,I)|0,this._hh=this._hh+y+_(this._hl,T)|0},l.prototype._hash=function(){var t=r.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=l},function(t,e,n){"use strict";(function(e,i){var o=n(242);t.exports=y;var r,a=n(388);y.ReadableState=v;n(148).EventEmitter;var s=function(t,e){return t.listeners(e).length},l=n(537),u=n(30).Buffer,c=e.Uint8Array||function(){};var d=Object.create(n(205));d.inherits=n(22);var h=n(1152),f=void 0;f=h&&h.debuglog?h.debuglog("stream"):function(){};var p,m=n(1153),g=n(538);d.inherits(y,l);var _=["error","close","destroy","pause","resume"];function v(t,e){t=t||{};var i=e instanceof(r=r||n(150));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,a=t.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(p||(p=n(149).StringDecoder),this.decoder=new p(t.encoding),this.encoding=t.encoding)}function y(t){if(r=r||n(150),!(this instanceof y))return new y(t);this._readableState=new v(t,this),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),l.call(this)}function b(t,e,n,i,o){var r,a=t._readableState;null===e?(a.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,C(t)}(t,a)):(o||(r=function(t,e){var n;i=e,u.isBuffer(i)||i instanceof c||"string"===typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(a,e)),r?t.emit("error",r):a.objectMode||e&&e.length>0?("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),i?a.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):w(t,a,e,!0):a.ended?t.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?w(t,a,e,!1):k(t,a)):w(t,a,e,!1))):i||(a.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}(a)}function w(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&C(t)),k(t,e)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(t,e){this.push(null),e(t)},y.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=u.from(t,e),e=""),n=!0),b(this,t,e,!1,n)},y.prototype.unshift=function(t){return b(this,t,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(t){return p||(p=n(149).StringDecoder),this._readableState.decoder=new p(t),this._readableState.encoding=t,this};function x(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function C(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(S,t):S(t))}function S(t){f("emit readable"),t.emit("readable"),O(t)}function k(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(I,t,e))}function I(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(f("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function T(t){f("readable nexttick read 0"),t.read(0)}function E(t,e){e.reading||(f("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),O(t),e.flowing&&!e.reading&&t.read(0)}function O(t){var e=t._readableState;for(f("flow",e.flowing);e.flowing&&null!==t.read(););}function M(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;t<e.head.data.length?(i=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):i=t===e.head.data.length?e.shift():n?function(t,e){var n=e.head,i=1,o=n.data;t-=o.length;for(;n=n.next;){var r=n.data,a=t>r.length?r.length:t;if(a===r.length?o+=r:o+=r.slice(0,t),0===(t-=a)){a===r.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=r.slice(a));break}++i}return e.length-=i,o}(t,e):function(t,e){var n=u.allocUnsafe(t),i=e.head,o=1;i.data.copy(n),t-=i.data.length;for(;i=i.next;){var r=i.data,a=t>r.length?r.length:t;if(r.copy(n,n.length-t,0,a),0===(t-=a)){a===r.length?(++o,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=r.slice(a));break}++o}return e.length-=o,n}(t,e);return i}(t,e.buffer,e.decoder),n);var n}function P(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(D,e,t))}function D(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function A(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}y.prototype.read=function(t){f("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):C(this),null;if(0===(t=x(t,e))&&e.ended)return 0===e.length&&P(this),null;var i,o=e.needReadable;return f("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&f("length less than watermark",o=!0),e.ended||e.reading?f("reading or ended",o=!1):o&&(f("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=x(n,e))),null===(i=t>0?M(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&P(this)),null!==i&&this.emit("data",i),i},y.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,f("pipe count=%d opts=%j",r.pipesCount,e);var l=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?c:y;function u(e,i){f("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,f("cleanup"),t.removeListener("close",_),t.removeListener("finish",v),t.removeListener("drain",d),t.removeListener("error",g),t.removeListener("unpipe",u),n.removeListener("end",c),n.removeListener("end",y),n.removeListener("data",m),h=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||d())}function c(){f("onend"),t.end()}r.endEmitted?o.nextTick(l):n.once("end",l),t.on("unpipe",u);var d=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&s(t,"data")&&(e.flowing=!0,O(t))}}(n);t.on("drain",d);var h=!1;var p=!1;function m(e){f("ondata"),p=!1,!1!==t.write(e)||p||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==A(r.pipes,t))&&!h&&(f("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function g(e){f("onerror",e),y(),t.removeListener("error",g),0===s(t,"error")&&t.emit("error",e)}function _(){t.removeListener("finish",v),y()}function v(){f("onfinish"),t.removeListener("close",_),y()}function y(){f("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?a(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",g),t.once("close",_),t.once("finish",v),t.emit("pipe",n),r.flowing||(f("pipe resume"),n.resume()),t},y.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r<o;r++)i[r].emit("unpipe",this,n);return this}var a=A(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},y.prototype.on=function(t,e){var n=l.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&C(this):o.nextTick(T,this))}return n},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var t=this._readableState;return t.flowing||(f("resume"),t.flowing=!0,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,o.nextTick(E,t,e))}(this,t)),this},y.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var o in t.on("end",(function(){if(f("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(f("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!n.objectMode||null!==o&&void 0!==o)&&((n.objectMode||o&&o.length)&&(e.push(o)||(i=!0,t.pause())))})),t)void 0===this[o]&&"function"===typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var r=0;r<_.length;r++)t.on(_[r],this.emit.bind(this,_[r]));return this._read=function(e){f("wrapped _read",e),i&&(i=!1,t.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=M}).call(this,n(56),n(50))},function(t,e,n){t.exports=n(148).EventEmitter},function(t,e,n){"use strict";var i=n(242);function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return r||a?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||i.nextTick(o,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?(i.nextTick(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(t,e,n){"use strict";t.exports=a;var i=n(150),o=Object.create(n(205));function r(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(!i)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function a(t){if(!(this instanceof a))return new a(t);i.call(this,t),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",s)}function s(){var t=this;"function"===typeof this._flush?this._flush((function(e,n){l(t,e,n)})):l(this,null,null)}function l(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(t._transformState.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}o.inherits=n(22),o.inherits(a,i),a.prototype.push=function(t,e){return this._transformState.needTransform=!1,i.prototype.push.call(this,t,e)},a.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},a.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},a.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},a.prototype._destroy=function(t,e){var n=this;i.prototype._destroy.call(this,t,(function(t){e(t),n.emit("close")}))}},function(t,e,n){"use strict";var i=n(22),o=n(1160),r=n(126),a=n(30).Buffer,s=n(541),l=n(317),u=n(318),c=a.alloc(128);function d(t,e){r.call(this,"digest"),"string"===typeof e&&(e=a.from(e));var n="sha512"===t||"sha384"===t?128:64;(this._alg=t,this._key=e,e.length>n)?e=("rmd160"===t?new l:u(t)).update(e).digest():e.length<n&&(e=a.concat([e,c],n));for(var i=this._ipad=a.allocUnsafe(n),o=this._opad=a.allocUnsafe(n),s=0;s<n;s++)i[s]=54^e[s],o[s]=92^e[s];this._hash="rmd160"===t?new l:u(t),this._hash.update(i)}i(d,r),d.prototype._update=function(t){this._hash.update(t)},d.prototype._final=function(){var t=this._hash.digest();return("rmd160"===this._alg?new l:u(this._alg)).update(this._opad).update(t).digest()},t.exports=function(t,e){return"rmd160"===(t=t.toLowerCase())||"ripemd160"===t?new d("rmd160",e):"md5"===t?new o(s,e):new d(t,e)}},function(t,e,n){var i=n(314);t.exports=function(t){return(new i).update(t).digest()}},function(t){t.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},function(t,e,n){e.pbkdf2=n(1162),e.pbkdf2Sync=n(546)},function(t,e){var n=Math.pow(2,30)-1;t.exports=function(t,e){if("number"!==typeof t)throw new TypeError("Iterations not a number");if(t<0)throw new TypeError("Bad iterations");if("number"!==typeof e)throw new TypeError("Key length not a number");if(e<0||e>n||e!==e)throw new TypeError("Bad key length")}},function(t,e,n){(function(e){var n;if(e.browser)n="utf-8";else if(e.version){n=parseInt(e.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else n="utf-8";t.exports=n}).call(this,n(50))},function(t,e,n){var i=n(541),o=n(317),r=n(318),a=n(30).Buffer,s=n(544),l=n(545),u=n(547),c=a.alloc(128),d={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function h(t,e,n){var s=function(t){function e(e){return r(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new o).update(t).digest()}:"md5"===t?i:e}(t),l="sha512"===t||"sha384"===t?128:64;e.length>l?e=s(e):e.length<l&&(e=a.concat([e,c],l));for(var u=a.allocUnsafe(l+d[t]),h=a.allocUnsafe(l+d[t]),f=0;f<l;f++)u[f]=54^e[f],h[f]=92^e[f];var p=a.allocUnsafe(l+n+4);u.copy(p,0,0,l),this.ipad1=p,this.ipad2=u,this.opad=h,this.alg=t,this.blocksize=l,this.hash=s,this.size=d[t]}h.prototype.run=function(t,e){return t.copy(e,this.blocksize),this.hash(e).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(t,e,n,i,o){s(n,i);var r=new h(o=o||"sha1",t=u(t,l,"Password"),(e=u(e,l,"Salt")).length),c=a.allocUnsafe(i),f=a.allocUnsafe(e.length+4);e.copy(f,0,0,e.length);for(var p=0,m=d[o],g=Math.ceil(i/m),_=1;_<=g;_++){f.writeUInt32BE(_,e.length);for(var v=r.run(f,r.ipad1),y=v,b=1;b<n;b++){y=r.run(y,r.ipad2);for(var w=0;w<m;w++)v[w]^=y[w]}v.copy(c,p),p+=m}return c}},function(t,e,n){var i=n(30).Buffer;t.exports=function(t,e,n){if(i.isBuffer(t))return t;if("string"===typeof t)return i.from(t,e);if(ArrayBuffer.isView(t))return i.from(t.buffer);throw new TypeError(n+" must be a string, a Buffer, a typed array or a DataView")}},function(t,e,n){"use strict";e.readUInt32BE=function(t,e){return(t[0+e]<<24|t[1+e]<<16|t[2+e]<<8|t[3+e])>>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,i){for(var o=0,r=0,a=6;a>=0;a-=2){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>>s+a&1}for(a=6;a>=0;a-=2){for(s=1;s<=25;s+=8)r<<=1,r|=e>>>s+a&1;for(s=1;s<=25;s+=8)r<<=1,r|=t>>>s+a&1}n[i+0]=o>>>0,n[i+1]=r>>>0},e.rip=function(t,e,n,i){for(var o=0,r=0,a=0;a<4;a++)for(var s=24;s>=0;s-=8)o<<=1,o|=e>>>s+a&1,o<<=1,o|=t>>>s+a&1;for(a=4;a<8;a++)for(s=24;s>=0;s-=8)r<<=1,r|=e>>>s+a&1,r<<=1,r|=t>>>s+a&1;n[i+0]=o>>>0,n[i+1]=r>>>0},e.pc1=function(t,e,n,i){for(var o=0,r=0,a=7;a>=5;a--){for(var s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)r<<=1,r|=e>>s+a&1;for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+a&1}for(s=0;s<=24;s+=8)r<<=1,r|=t>>s+a&1;n[i+0]=o>>>0,n[i+1]=r>>>0},e.r28shl=function(t,e){return t<<e&268435455|t>>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,o){for(var r=0,a=0,s=i.length>>>1,l=0;l<s;l++)r<<=1,r|=t>>>i[l]&1;for(l=s;l<i.length;l++)a<<=1,a|=e>>>i[l]&1;n[o+0]=r>>>0,n[o+1]=a>>>0},e.expand=function(t,e,n){var i=0,o=0;i=(1&t)<<5|t>>>27;for(var r=23;r>=15;r-=4)i<<=6,i|=t>>>r&63;for(r=11;r>=3;r-=4)o|=t>>>r&63,o<<=6;o|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++){n<<=4,n|=o[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=o[256+64*i+(e>>>18-6*i&63)]}return n>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n<r.length;n++)e<<=1,e|=t>>>r[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length<e;)i="0"+i;for(var o=[],r=0;r<e;r+=n)o.push(i.slice(r,r+n));return o.join(" ")}},function(t,e,n){"use strict";var i=n(84),o=n(22),r=n(548),a=n(321);function s(){this.tmp=new Array(2),this.keys=null}function l(t){a.call(this,t);var e=new s;this._desState=e,this.deriveKeys(e,t.key)}o(l,a),t.exports=l,l.create=function(t){return new l(t)};var u=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];l.prototype.deriveKeys=function(t,e){t.keys=new Array(32),i.equal(e.length,this.blockSize,"Invalid key length");var n=r.readUInt32BE(e,0),o=r.readUInt32BE(e,4);r.pc1(n,o,t.tmp,0),n=t.tmp[0],o=t.tmp[1];for(var a=0;a<t.keys.length;a+=2){var s=u[a>>>1];n=r.r28shl(n,s),o=r.r28shl(o,s),r.pc2(n,o,t.keys,a)}},l.prototype._update=function(t,e,n,i){var o=this._desState,a=r.readUInt32BE(t,e),s=r.readUInt32BE(t,e+4);r.ip(a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],"encrypt"===this.type?this._encrypt(o,a,s,o.tmp,0):this._decrypt(o,a,s,o.tmp,0),a=o.tmp[0],s=o.tmp[1],r.writeUInt32BE(n,a,i),r.writeUInt32BE(n,s,i+4)},l.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i<t.length;i++)t[i]=n;return!0},l.prototype._unpad=function(t){for(var e=t[t.length-1],n=t.length-e;n<t.length;n++)i.equal(t[n],e);return t.slice(0,t.length-e)},l.prototype._encrypt=function(t,e,n,i,o){for(var a=e,s=n,l=0;l<t.keys.length;l+=2){var u=t.keys[l],c=t.keys[l+1];r.expand(s,t.tmp,0),u^=t.tmp[0],c^=t.tmp[1];var d=r.substitute(u,c),h=s;s=(a^r.permute(d))>>>0,a=h}r.rip(s,a,i,o)},l.prototype._decrypt=function(t,e,n,i,o){for(var a=n,s=e,l=t.keys.length-2;l>=0;l-=2){var u=t.keys[l],c=t.keys[l+1];r.expand(a,t.tmp,0),u^=t.tmp[0],c^=t.tmp[1];var d=r.substitute(u,c),h=a;a=(s^r.permute(d))>>>0,s=h}r.rip(a,s,i,o)}},function(t,e,n){var i=n(206),o=n(30).Buffer,r=n(551);function a(t){var e=t._cipher.encryptBlockRaw(t._prev);return r(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),r=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*n)]);for(var s=0;s<n;s++){var l=a(t),u=r+16*s;t._cache.writeUInt32BE(l[0],u+0),t._cache.writeUInt32BE(l[1],u+4),t._cache.writeUInt32BE(l[2],u+8),t._cache.writeUInt32BE(l[3],u+12)}var c=t._cache.slice(0,e.length);return t._cache=t._cache.slice(e.length),i(e,c)}},function(t,e){t.exports=function(t){for(var e,n=t.length;n--;){if(255!==(e=t.readUInt8(n))){e++,t.writeUInt8(e,n);break}t.writeUInt8(0,n)}}},function(t){t.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},function(t,e,n){var i=n(243),o=n(30).Buffer,r=n(126),a=n(22),s=n(1175),l=n(206),u=n(551);function c(t,e,n,a){r.call(this);var l=o.alloc(4,0);this._cipher=new i.AES(e);var c=this._cipher.encryptBlock(l);this._ghash=new s(c),n=function(t,e,n){if(12===e.length)return t._finID=o.concat([e,o.from([0,0,0,1])]),o.concat([e,o.from([0,0,0,2])]);var i=new s(n),r=e.length,a=r%16;i.update(e),a&&(a=16-a,i.update(o.alloc(a,0))),i.update(o.alloc(8,0));var l=8*r,c=o.alloc(8);c.writeUIntBE(l,0,8),i.update(c),t._finID=i.state;var d=o.from(t._finID);return u(d),d}(this,n,c),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=t,this._authTag=null,this._called=!1}a(c,r),c.prototype._update=function(t){if(!this._called&&this._alen){var e=16-this._alen%16;e<16&&(e=o.alloc(e,0),this._ghash.update(e))}this._called=!0;var n=this._mode.encrypt(this,t);return this._decrypt?this._ghash.update(t):this._ghash.update(n),this._len+=t.length,n},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var t=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(t,e){var n=0;t.length!==e.length&&n++;for(var i=Math.min(t.length,e.length),o=0;o<i;++o)n+=t[o]^e[o];return n}(t,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=t,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!o.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(t){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=t},c.prototype.setAAD=function(t){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(t),this._alen+=t.length},t.exports=c},function(t,e,n){var i=n(243),o=n(30).Buffer,r=n(126);function a(t,e,n,a){r.call(this),this._cipher=new i.AES(e),this._prev=o.from(n),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=a,this._mode=t}n(22)(a,r),a.prototype._update=function(t){return this._mode.encrypt(this,t,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},t.exports=a},function(t,e,n){var i=n(174);t.exports=v,v.simpleSieve=g,v.fermatTest=_;var o=n(556),r=new o(24),a=new(n(557)),s=new o(1),l=new o(2),u=new o(5),c=(new o(16),new o(8),new o(10)),d=new o(3),h=(new o(7),new o(11)),f=new o(4),p=(new o(12),null);function m(){if(null!==p)return p;var t=[];t[0]=2;for(var e=1,n=3;n<1048576;n+=2){for(var i=Math.ceil(Math.sqrt(n)),o=0;o<e&&t[o]<=i&&n%t[o]!==0;o++);e!==o&&t[o]<=i||(t[e++]=n)}return p=t,t}function g(t){for(var e=m(),n=0;n<e.length;n++)if(0===t.modn(e[n]))return 0===t.cmpn(e[n]);return!0}function _(t){var e=o.mont(t);return 0===l.toRed(e).redPow(t.subn(1)).fromRed().cmpn(1)}function v(t,e){if(t<16)return new o(2===e||5===e?[140,123]:[140,39]);var n,p;for(e=new o(e);;){for(n=new o(i(Math.ceil(t/8)));n.bitLength()>t;)n.ishrn(1);if(n.isEven()&&n.iadd(s),n.testn(1)||n.iadd(l),e.cmp(l)){if(!e.cmp(u))for(;n.mod(c).cmp(d);)n.iadd(f)}else for(;n.mod(r).cmp(h);)n.iadd(f);if(g(p=n.shrn(1))&&g(n)&&_(p)&&_(n)&&a.test(p)&&a.test(n))return n}}},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1179).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},function(t,e,n){var i=n(1180),o=n(324);function r(t){this.rand=t||new o.Rand}t.exports=r,r.create=function(t){return new r(t)},r.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var o=new i(this.rand.generate(n))}while(o.cmp(t)>=0);return o},r.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},r.prototype.test=function(t,e,n){var o=t.bitLength(),r=i.mont(t),a=new i(1).toRed(r);e||(e=Math.max(1,o/48|0));for(var s=t.subn(1),l=0;!s.testn(l);l++);for(var u=t.shrn(l),c=s.toRed(r);e>0;e--){var d=this._randrange(new i(2),s);n&&n(d);var h=d.toRed(r).redPow(u);if(0!==h.cmp(a)&&0!==h.cmp(c)){for(var f=1;f<l;f++){if(0===(h=h.redSqr()).cmp(a))return!1;if(0===h.cmp(c))break}if(f===l)return!1}}return!0},r.prototype.getDivisor=function(t,e){var n=t.bitLength(),o=i.mont(t),r=new i(1).toRed(o);e||(e=Math.max(1,n/48|0));for(var a=t.subn(1),s=0;!a.testn(s);s++);for(var l=t.shrn(s),u=a.toRed(o);e>0;e--){var c=this._randrange(new i(2),a),d=t.gcd(c);if(0!==d.cmpn(1))return d;var h=c.toRed(o).redPow(l);if(0!==h.cmp(r)&&0!==h.cmp(u)){for(var f=1;f<s;f++){if(0===(h=h.redSqr()).cmp(r))return h.fromRed().subn(1).gcd(t);if(0===h.cmp(u))break}if(f===s)return(h=h.redSqr()).fromRed().subn(1).gcd(t)}}return!1}},function(t,e,n){"use strict";(function(e,i){var o;t.exports=k,k.ReadableState=S;n(148).EventEmitter;var r=function(t,e){return t.listeners(e).length},a=n(559),s=n(52).Buffer,l=e.Uint8Array||function(){};var u,c=n(1187);u=c&&c.debuglog?c.debuglog("stream"):function(){};var d,h,f,p=n(1188),m=n(560),g=n(561).getHighWaterMark,_=n(178).codes,v=_.ERR_INVALID_ARG_TYPE,y=_.ERR_STREAM_PUSH_AFTER_EOF,b=_.ERR_METHOD_NOT_IMPLEMENTED,w=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(22)(k,a);var x=m.errorOrDestroy,C=["error","close","destroy","pause","resume"];function S(t,e,i){o=o||n(179),t=t||{},"boolean"!==typeof i&&(i=e instanceof o),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new p,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(d||(d=n(149).StringDecoder),this.decoder=new d(t.encoding),this.encoding=t.encoding)}function k(t){if(o=o||n(179),!(this instanceof k))return new k(t);var e=this instanceof o;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"===typeof t.read&&(this._read=t.read),"function"===typeof t.destroy&&(this._destroy=t.destroy)),a.call(this)}function I(t,e,n,i,o){u("readableAddChunk",e);var r,a=t._readableState;if(null===e)a.reading=!1,function(t,e){if(u("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?O(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,M(t)))}(t,a);else if(o||(r=function(t,e){var n;i=e,s.isBuffer(i)||i instanceof l||"string"===typeof e||void 0===e||t.objectMode||(n=new v("chunk",["string","Buffer","Uint8Array"],e));var i;return n}(a,e)),r)x(t,r);else if(a.objectMode||e&&e.length>0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=function(t){return s.from(t)}(e)),i)a.endEmitted?x(t,new w):T(t,a,e,!0);else if(a.ended)x(t,new y);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?T(t,a,e,!1):P(t,a)):T(t,a,e,!1)}else i||(a.reading=!1,P(t,a));return!a.ended&&(a.length<a.highWaterMark||0===a.length)}function T(t,e,n,i){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",n)):(e.length+=e.objectMode?1:n.length,i?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&O(t)),P(t,e)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),k.prototype.destroy=m.destroy,k.prototype._undestroy=m.undestroy,k.prototype._destroy=function(t,e){e(t)},k.prototype.push=function(t,e){var n,i=this._readableState;return i.objectMode?n=!0:"string"===typeof t&&((e=e||i.defaultEncoding)!==i.encoding&&(t=s.from(t,e),e=""),n=!0),I(this,t,e,!1,n)},k.prototype.unshift=function(t){return I(this,t,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(t){d||(d=n(149).StringDecoder);var e=new d(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,o="";null!==i;)o+=e.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this};function E(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function O(t){var e=t._readableState;u("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(u("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(M,t))}function M(t){var e=t._readableState;u("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,N(t)}function P(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(D,t,e))}function D(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var n=e.length;if(u("maybeReadMore read 0"),t.read(0),n===e.length)break}e.readingMore=!1}function A(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function R(t){u("readable nexttick read 0"),t.read(0)}function B(t,e){u("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),N(t),e.flowing&&!e.reading&&t.read(0)}function N(t){var e=t._readableState;for(u("flow",e.flowing);e.flowing&&null!==t.read(););}function L(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function F(t){var e=t._readableState;u("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(V,e,t))}function V(t,e){if(u("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function z(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1}k.prototype.read=function(t){u("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return u("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?F(this):O(this),null;if(0===(t=E(t,e))&&e.ended)return 0===e.length&&F(this),null;var i,o=e.needReadable;return u("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&u("length less than watermark",o=!0),e.ended||e.reading?u("reading or ended",o=!1):o&&(u("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=E(n,e))),null===(i=t>0?L(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&F(this)),null!==i&&this.emit("data",i),i},k.prototype._read=function(t){x(this,new b("_read()"))},k.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,u("pipe count=%d opts=%j",o.pipesCount,e);var a=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?l:g;function s(e,i){u("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,u("cleanup"),t.removeListener("close",p),t.removeListener("finish",m),t.removeListener("drain",c),t.removeListener("error",f),t.removeListener("unpipe",s),n.removeListener("end",l),n.removeListener("end",g),n.removeListener("data",h),d=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}function l(){u("onend"),t.end()}o.endEmitted?i.nextTick(a):n.once("end",a),t.on("unpipe",s);var c=function(t){return function(){var e=t._readableState;u("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&r(t,"data")&&(e.flowing=!0,N(t))}}(n);t.on("drain",c);var d=!1;function h(e){u("ondata");var i=t.write(e);u("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==z(o.pipes,t))&&!d&&(u("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function f(e){u("onerror",e),g(),t.removeListener("error",f),0===r(t,"error")&&x(t,e)}function p(){t.removeListener("finish",m),g()}function m(){u("onfinish"),t.removeListener("close",p),g()}function g(){u("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"===typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",f),t.once("close",p),t.once("finish",m),t.emit("pipe",n),o.flowing||(u("pipe resume"),n.resume()),t},k.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r<o;r++)i[r].emit("unpipe",this,{hasUnpiped:!1});return this}var a=z(e.pipes,t);return-1===a||(e.pipes.splice(a,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n)),this},k.prototype.on=function(t,e){var n=a.prototype.on.call(this,t,e),o=this._readableState;return"data"===t?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,u("on readable",o.length,o.reading),o.length?O(this):o.reading||i.nextTick(R,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(A,this),n},k.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(A,this),e},k.prototype.resume=function(){var t=this._readableState;return t.flowing||(u("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(B,t,e))}(this,t)),t.paused=!1,this},k.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var o in t.on("end",(function(){if(u("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(u("wrapped data"),n.decoder&&(o=n.decoder.write(o)),!n.objectMode||null!==o&&void 0!==o)&&((n.objectMode||o&&o.length)&&(e.push(o)||(i=!0,t.pause())))})),t)void 0===this[o]&&"function"===typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var r=0;r<C.length;r++)t.on(C[r],this.emit.bind(this,C[r]));return this._read=function(e){u("wrapped _read",e),i&&(i=!1,t.resume())},this},"function"===typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=n(1190)),h(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),k._fromList=L,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"===typeof Symbol&&(k.from=function(t,e){return void 0===f&&(f=n(1191)),f(k,t,e)})}).call(this,n(56),n(50))},function(t,e,n){t.exports=n(148).EventEmitter},function(t,e,n){"use strict";(function(e){function n(t,e){o(t,e),i(t)}function i(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function o(t,e){t.emit("error",e)}t.exports={destroy:function(t,r){var a=this,s=this._readableState&&this._readableState.destroyed,l=this._writableState&&this._writableState.destroyed;return s||l?(r?r(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(o,this,t)):e.nextTick(o,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!r&&t?a._writableState?a._writableState.errorEmitted?e.nextTick(i,a):(a._writableState.errorEmitted=!0,e.nextTick(n,a,t)):e.nextTick(n,a,t):r?(e.nextTick(i,a),r(t)):e.nextTick(i,a)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var n=t._readableState,i=t._writableState;n&&n.autoDestroy||i&&i.autoDestroy?t.destroy(e):t.emit("error",e)}}}).call(this,n(50))},function(t,e,n){"use strict";var i=n(178).codes.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,n,o){var r=function(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}(e,o,n);if(null!=r){if(!isFinite(r)||Math.floor(r)!==r||r<0)throw new i(o?n:"highWaterMark",r);return Math.floor(r)}return t.objectMode?16:16384}}},function(t,e,n){"use strict";(function(e,i){function o(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var o=i.callback;e.pendingcb--,o(n),i=i.next}e.corkedRequestsFree.next=t}(e,t)}}var r;t.exports=I,I.WritableState=k;var a={deprecate:n(315)},s=n(559),l=n(52).Buffer,u=e.Uint8Array||function(){};var c,d=n(560),h=n(561).getHighWaterMark,f=n(178).codes,p=f.ERR_INVALID_ARG_TYPE,m=f.ERR_METHOD_NOT_IMPLEMENTED,g=f.ERR_MULTIPLE_CALLBACK,v=f.ERR_STREAM_CANNOT_PIPE,y=f.ERR_STREAM_DESTROYED,b=f.ERR_STREAM_NULL_VALUES,w=f.ERR_STREAM_WRITE_AFTER_END,x=f.ERR_UNKNOWN_ENCODING,C=d.errorOrDestroy;function S(){}function k(t,e,a){r=r||n(179),t=t||{},"boolean"!==typeof a&&(a=e instanceof r),this.objectMode=!!t.objectMode,a&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,o=n.sync,r=n.writecb;if("function"!==typeof r)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,o,r){--e.pendingcb,n?(i.nextTick(r,o),i.nextTick(D,t,e),t._writableState.errorEmitted=!0,C(t,o)):(r(o),t._writableState.errorEmitted=!0,C(t,o),D(t,e))}(t,n,o,e,r);else{var a=M(n)||t.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||O(t,n),o?i.nextTick(E,t,n,a,r):E(t,n,a,r)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function I(t){var e=this instanceof(r=r||n(179));if(!e&&!c.call(I,this))return new I(t);this._writableState=new k(t,this,e),this.writable=!0,t&&("function"===typeof t.write&&(this._write=t.write),"function"===typeof t.writev&&(this._writev=t.writev),"function"===typeof t.destroy&&(this._destroy=t.destroy),"function"===typeof t.final&&(this._final=t.final)),s.call(this)}function T(t,e,n,i,o,r,a){e.writelen=i,e.writecb=a,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new y("write")):n?t._writev(o,e.onwrite):t._write(o,r,e.onwrite),e.sync=!1}function E(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),D(t,e)}function O(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,r=new Array(i),a=e.corkedRequestsFree;a.entry=n;for(var s=0,l=!0;n;)r[s]=n,n.isBuf||(l=!1),n=n.next,s+=1;r.allBuffers=l,T(t,e,!0,e.length,r,"",a.finish),e.pendingcb++,e.lastBufferedRequest=null,a.next?(e.corkedRequestsFree=a.next,a.next=null):e.corkedRequestsFree=new o(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,c=n.encoding,d=n.callback;if(T(t,e,!1,e.objectMode?1:u.length,u,c,d),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function M(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function P(t,e){t._final((function(n){e.pendingcb--,n&&C(t,n),e.prefinished=!0,t.emit("prefinish"),D(t,e)}))}function D(t,e){var n=M(e);if(n&&(function(t,e){e.prefinished||e.finalCalled||("function"!==typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,i.nextTick(P,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var o=t._readableState;(!o||o.autoDestroy&&o.endEmitted)&&t.destroy()}return n}n(22)(I,s),k.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(k.prototype,"buffer",{get:a.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(_){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(I,Symbol.hasInstance,{value:function(t){return!!c.call(this,t)||this===I&&(t&&t._writableState instanceof k)}})):c=function(t){return t instanceof this},I.prototype.pipe=function(){C(this,new v)},I.prototype.write=function(t,e,n){var o,r=this._writableState,a=!1,s=!r.objectMode&&(o=t,l.isBuffer(o)||o instanceof u);return s&&!l.isBuffer(t)&&(t=function(t){return l.from(t)}(t)),"function"===typeof e&&(n=e,e=null),s?e="buffer":e||(e=r.defaultEncoding),"function"!==typeof n&&(n=S),r.ending?function(t,e){var n=new w;C(t,n),i.nextTick(e,n)}(this,n):(s||function(t,e,n,o){var r;return null===n?r=new b:"string"===typeof n||e.objectMode||(r=new p("chunk",["string","Buffer"],n)),!r||(C(t,r),i.nextTick(o,r),!1)}(this,r,t,n))&&(r.pendingcb++,a=function(t,e,n,i,o,r){if(!n){var a=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!==typeof e||(e=l.from(e,n));return e}(e,i,o);i!==a&&(n=!0,o="buffer",i=a)}var s=e.objectMode?1:i.length;e.length+=s;var u=e.length<e.highWaterMark;u||(e.needDrain=!0);if(e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:r,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else T(t,e,!1,s,i,o,r);return u}(this,r,s,t,e,n)),a},I.prototype.cork=function(){this._writableState.corked++},I.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},I.prototype.setDefaultEncoding=function(t){if("string"===typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new x(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(I.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(I.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),I.prototype._write=function(t,e,n){n(new m("_write()"))},I.prototype._writev=null,I.prototype.end=function(t,e,n){var o=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,D(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(I.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(I.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),I.prototype.destroy=d.destroy,I.prototype._undestroy=d.undestroy,I.prototype._destroy=function(t,e){e(t)}}).call(this,n(56),n(50))},function(t,e,n){"use strict";t.exports=c;var i=n(178).codes,o=i.ERR_METHOD_NOT_IMPLEMENTED,r=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=i.ERR_TRANSFORM_WITH_LENGTH_0,l=n(179);function u(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function c(t){if(!(this instanceof c))return new c(t);l.call(this,t),this._transformState={afterTransform:u.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"===typeof t.transform&&(this._transform=t.transform),"function"===typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",d)}function d(){var t=this;"function"!==typeof this._flush||this._readableState.destroyed?h(this,null,null):this._flush((function(e,n){h(t,e,n)}))}function h(t,e,n){if(e)return t.emit("error",e);if(null!=n&&t.push(n),t._writableState.length)throw new s;if(t._transformState.transforming)throw new a;return t.push(null)}n(22)(c,l),c.prototype.push=function(t,e){return this._transformState.needTransform=!1,l.prototype.push.call(this,t,e)},c.prototype._transform=function(t,e,n){n(new o("_transform()"))},c.prototype._write=function(t,e,n){var i=this._transformState;if(i.writecb=n,i.writechunk=t,i.writeencoding=e,!i.transforming){var o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},c.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},c.prototype._destroy=function(t,e){l.prototype._destroy.call(this,t,(function(t){e(t)}))}},function(t,e,n){"use strict";var i=e;function o(t){return 1===t.length?"0"+t:t}function r(t){for(var e="",n=0;n<t.length;n++)e+=o(t[n].toString(16));return e}i.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"!==typeof t){for(var i=0;i<t.length;i++)n[i]=0|t[i];return n}if("hex"===e){(t=t.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(t="0"+t);for(i=0;i<t.length;i+=2)n.push(parseInt(t[i]+t[i+1],16))}else for(i=0;i<t.length;i++){var o=t.charCodeAt(i),r=o>>8,a=255&o;r?n.push(r,a):n.push(a)}return n},i.zero2=o,i.toHex=r,i.encode=function(t,e){return"hex"===e?r(t):t}},function(t,e,n){"use strict";var i=e;i.base=n(245),i.short=n(1199),i.mont=n(1200),i.edwards=n(1201)},function(t,e,n){"use strict";var i=n(105).rotr32;function o(t,e,n){return t&e^~t&n}function r(t,e,n){return t&e^t&n^e&n}function a(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?o(e,n,i):1===t||3===t?a(e,n,i):2===t?r(e,n,i):void 0},e.ch32=o,e.maj32=r,e.p32=a,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},function(t,e,n){"use strict";var i=n(105),o=n(207),r=n(566),a=n(84),s=i.sum32,l=i.sum32_4,u=i.sum32_5,c=r.ch32,d=r.maj32,h=r.s0_256,f=r.s1_256,p=r.g0_256,m=r.g1_256,g=o.BlockHash,_=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function v(){if(!(this instanceof v))return new v;g.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=_,this.W=new Array(64)}i.inherits(v,g),t.exports=v,v.blockSize=512,v.outSize=256,v.hmacStrength=192,v.padLength=64,v.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=l(m(n[i-2]),n[i-7],p(n[i-15]),n[i-16]);var o=this.h[0],r=this.h[1],g=this.h[2],_=this.h[3],v=this.h[4],y=this.h[5],b=this.h[6],w=this.h[7];for(a(this.k.length===n.length),i=0;i<n.length;i++){var x=u(w,f(v),c(v,y,b),this.k[i],n[i]),C=s(h(o),d(o,r,g));w=b,b=y,y=v,v=s(_,x),_=g,g=r,r=o,o=s(x,C)}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],g),this.h[3]=s(this.h[3],_),this.h[4]=s(this.h[4],v),this.h[5]=s(this.h[5],y),this.h[6]=s(this.h[6],b),this.h[7]=s(this.h[7],w)},v.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";var i=n(105),o=n(207),r=n(84),a=i.rotr64_hi,s=i.rotr64_lo,l=i.shr64_hi,u=i.shr64_lo,c=i.sum64,d=i.sum64_hi,h=i.sum64_lo,f=i.sum64_4_hi,p=i.sum64_4_lo,m=i.sum64_5_hi,g=i.sum64_5_lo,_=o.BlockHash,v=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function y(){if(!(this instanceof y))return new y;_.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=v,this.W=new Array(160)}function b(t,e,n,i,o){var r=t&n^~t&o;return r<0&&(r+=4294967296),r}function w(t,e,n,i,o,r){var a=e&i^~e&r;return a<0&&(a+=4294967296),a}function x(t,e,n,i,o){var r=t&n^t&o^n&o;return r<0&&(r+=4294967296),r}function C(t,e,n,i,o,r){var a=e&i^e&r^i&r;return a<0&&(a+=4294967296),a}function S(t,e){var n=a(t,e,28)^a(e,t,2)^a(e,t,7);return n<0&&(n+=4294967296),n}function k(t,e){var n=s(t,e,28)^s(e,t,2)^s(e,t,7);return n<0&&(n+=4294967296),n}function I(t,e){var n=a(t,e,14)^a(t,e,18)^a(e,t,9);return n<0&&(n+=4294967296),n}function T(t,e){var n=s(t,e,14)^s(t,e,18)^s(e,t,9);return n<0&&(n+=4294967296),n}function E(t,e){var n=a(t,e,1)^a(t,e,8)^l(t,e,7);return n<0&&(n+=4294967296),n}function O(t,e){var n=s(t,e,1)^s(t,e,8)^u(t,e,7);return n<0&&(n+=4294967296),n}function M(t,e){var n=a(t,e,19)^a(e,t,29)^l(t,e,6);return n<0&&(n+=4294967296),n}function P(t,e){var n=s(t,e,19)^s(e,t,29)^u(t,e,6);return n<0&&(n+=4294967296),n}i.inherits(y,_),t.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(t,e){for(var n=this.W,i=0;i<32;i++)n[i]=t[e+i];for(;i<n.length;i+=2){var o=M(n[i-4],n[i-3]),r=P(n[i-4],n[i-3]),a=n[i-14],s=n[i-13],l=E(n[i-30],n[i-29]),u=O(n[i-30],n[i-29]),c=n[i-32],d=n[i-31];n[i]=f(o,r,a,s,l,u,c,d),n[i+1]=p(o,r,a,s,l,u,c,d)}},y.prototype._update=function(t,e){this._prepareBlock(t,e);var n=this.W,i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],l=this.h[4],u=this.h[5],f=this.h[6],p=this.h[7],_=this.h[8],v=this.h[9],y=this.h[10],E=this.h[11],O=this.h[12],M=this.h[13],P=this.h[14],D=this.h[15];r(this.k.length===n.length);for(var A=0;A<n.length;A+=2){var R=P,B=D,N=I(_,v),L=T(_,v),F=b(_,v,y,E,O),V=w(_,v,y,E,O,M),z=this.k[A],j=this.k[A+1],H=n[A],W=n[A+1],U=m(R,B,N,L,F,V,z,j,H,W),G=g(R,B,N,L,F,V,z,j,H,W);R=S(i,o),B=k(i,o),N=x(i,o,a,s,l),L=C(i,o,a,s,l,u);var K=d(R,B,N,L),q=h(R,B,N,L);P=O,D=M,O=y,M=E,y=_,E=v,_=d(f,p,U,G),v=h(p,p,U,G),f=l,p=u,l=a,u=s,a=i,s=o,i=d(U,G,K,q),o=h(U,G,K,q)}c(this.h,0,i,o),c(this.h,2,a,s),c(this.h,4,l,u),c(this.h,6,f,p),c(this.h,8,_,v),c(this.h,10,y,E),c(this.h,12,O,M),c(this.h,14,P,D)},y.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1216).Buffer}catch(T){}function s(t,e,n){for(var o=0,r=Math.min(t.length,n),a=0,s=e;s<r;s++){var l,u=t.charCodeAt(s)-48;o<<=4,o|=l=u>=49&&u<=54?u-49+10:u>=17&&u<=22?u-17+10:u,a|=l}return i(!(240&a),"Invalid character in "+t),o}function l(t,e,n,o){for(var r=0,a=0,s=Math.min(t.length,n),l=e;l<s;l++){var u=t.charCodeAt(l)-48;r*=o,a=u>=49?u-49+10:u>=17?u-17+10:u,i(u>=0&&a<o,"Invalid character"),r+=a}return r}function u(t,e){t.words=e.words,t.length=e.length,t.negative=e.negative,t.red=e.red}if(r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this._strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this._strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this._strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype._move=function(t){u(t,this)},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(T){r.prototype.inspect=c}else r.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?d[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var u=h[t],c=f[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modrn(c).toString(t);n=(p=p.idivn(c)).isZero()?m+n:d[u-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16,2)},a&&(r.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n._strip()}r.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,r);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,o),a},r.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,o=0,r=0;o<this.length;o++){var a=this.words[o]<<r|i;t[n++]=255&a,n<t.length&&(t[n++]=a>>8&255),n<t.length&&(t[n++]=a>>16&255),6===r?(n<t.length&&(t[n++]=a>>24&255),i=0,r=0):(i=a>>>24,r+=2)}if(n<t.length)for(t[n++]=i;n<t.length;)t[n++]=0},r.prototype._toArrayLikeBE=function(t,e){for(var n=t.length-1,i=0,o=0,r=0;o<this.length;o++){var a=this.words[o]<<r|i;t[n--]=255&a,n>=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===r?(n>=0&&(t[n--]=a>>24&255),i=0,r=0):(i=a>>>24,r+=2)}if(n>=0)for(t[n--]=i;n>=0;)t[n--]=0},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this._strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this._strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this._strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var m=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n._strip()}function _(t,e,n){return g(t,e,n)}function v(t,e){this.x=t,this.y=e}Math.imul||(m=p),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?p(this,t,e):n<1024?g(this,t,e):_(this,t,e)},v.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},v.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},v.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},v.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},v.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},v.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},v.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},v.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},v.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},v.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n._strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),_(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){var e=t<0;e&&(t=-t),i("number"===typeof t),i(t<67108864);for(var n=0,o=0;o<this.length;o++){var r=(0|this.words[o])*t,a=(67108863&r)+(67108863&n);n>>=26,n+=r/67108864|0,n+=a>>>26,this.words[o]=67108863&a}return 0!==n&&(this.words[o]=n,this.length++),e?this.ineg():this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=t.words[i]>>>o&1}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this._strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this._strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<=t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this._strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this._strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this._strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=(1<<26)%t,o=0,r=this.length-1;r>=0;r--)o=(n*o+(0|this.words[r]))%t;return e?-o:o},r.prototype.modn=function(t){return this.modrn(t)},r.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var r=(0|this.words[o])+67108864*n;this.words[o]=r/t|0,n=r%t}return this._strip(),e?this.ineg():this},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new k(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function I(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},o(w,b),w.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(x,b),o(C,b),o(S,b),S.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new x;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},k.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},k.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},k.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new I(t)},o(I,k),I.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},I.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},I.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},I.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},function(t,e,n){"use strict";var i=e;i.bignum=n(571),i.define=n(1219).define,i.base=n(1222),i.constants=n(1223),i.decoders=n(574),i.encoders=n(572)},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1218).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},function(t,e,n){"use strict";var i=e;i.der=n(573),i.pem=n(1220)},function(t,e,n){"use strict";var i=n(22),o=n(331).Buffer,r=n(332),a=n(334);function s(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new l,this.tree._init(t.body)}function l(t){r.call(this,"der",t)}function u(t){return t<10?"0"+t:t}t.exports=s,s.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(l,r),l.prototype._encodeComposite=function(t,e,n,i){var r=function(t,e,n,i){var o;"seqof"===t?t="seq":"setof"===t&&(t="set");if(a.tagByName.hasOwnProperty(t))o=a.tagByName[t];else{if("number"!==typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);o=t}if(o>=31)return i.error("Multi-octet tag encoding unsupported");e||(o|=32);return o|=a.tagClassByName[n||"universal"]<<6}(t,e,n,this.reporter);if(i.length<128){var s=o.alloc(2);return s[0]=r,s[1]=i.length,this._createEncoderBuffer([s,i])}for(var l=1,u=i.length;u>=256;u>>=8)l++;var c=o.alloc(2+l);c[0]=r,c[1]=128|l;for(var d=1+l,h=i.length;h>0;d--,h>>=8)c[d]=255&h;return this._createEncoderBuffer([c,i])},l.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){for(var n=o.alloc(2*t.length),i=0;i<t.length;i++)n.writeUInt16BE(t.charCodeAt(i),2*i);return this._createEncoderBuffer(n)}return"numstr"===e?this._isNumstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===e?this._isPrintstr(t)?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(e)||"objDesc"===e?this._createEncoderBuffer(t):this.reporter.error("Encoding of string type: "+e+" unsupported")},l.prototype._encodeObjid=function(t,e,n){if("string"===typeof t){if(!e)return this.reporter.error("string objid given, but no values map found");if(!e.hasOwnProperty(t))return this.reporter.error("objid not found in values map");t=e[t].split(/[\s.]+/g);for(var i=0;i<t.length;i++)t[i]|=0}else if(Array.isArray(t)){t=t.slice();for(var r=0;r<t.length;r++)t[r]|=0}if(!Array.isArray(t))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(t));if(!n){if(t[1]>=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}for(var a=0,s=0;s<t.length;s++){var l=t[s];for(a++;l>=128;l>>=7)a++}for(var u=o.alloc(a),c=u.length-1,d=t.length-1;d>=0;d--){var h=t[d];for(u[c--]=127&h;(h>>=7)>0;)u[c--]=128|127&h}return this._createEncoderBuffer(u)},l.prototype._encodeTime=function(t,e){var n,i=new Date(t);return"gentime"===e?n=[u(i.getUTCFullYear()),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[u(i.getUTCFullYear()%100),u(i.getUTCMonth()+1),u(i.getUTCDate()),u(i.getUTCHours()),u(i.getUTCMinutes()),u(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},l.prototype._encodeNull=function(){return this._createEncoderBuffer("")},l.prototype._encodeInt=function(t,e){if("string"===typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!==typeof t&&!o.isBuffer(t)){var n=t.toArray();!t.sign&&128&n[0]&&n.unshift(0),t=o.from(n)}if(o.isBuffer(t)){var i=t.length;0===t.length&&i++;var r=o.alloc(i);return t.copy(r),0===t.length&&(r[0]=0),this._createEncoderBuffer(r)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);for(var a=1,s=t;s>=256;s>>=8)a++;for(var l=new Array(a),u=l.length-1;u>=0;u--)l[u]=255&t,t>>=8;return 128&l[0]&&l.unshift(0),this._createEncoderBuffer(o.from(l))},l.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},l.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getEncoder("der").tree},l.prototype._skipDefault=function(t,e,n){var i,o=this._baseState;if(null===o.default)return!1;var r=t.join();if(void 0===o.defaultBuffer&&(o.defaultBuffer=this._encodeValue(o.default,e,n).join()),r.length!==o.defaultBuffer.length)return!1;for(i=0;i<r.length;i++)if(r[i]!==o.defaultBuffer[i])return!1;return!0}},function(t,e,n){"use strict";var i=e;i.der=n(575),i.pem=n(1221)},function(t,e,n){"use strict";var i=n(22),o=n(571),r=n(208).DecoderBuffer,a=n(332),s=n(334);function l(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new u,this.tree._init(t.body)}function u(t){a.call(this,"der",t)}function c(t,e){var n=t.readUInt8(e);if(t.isError(n))return n;var i=s.tagClass[n>>6],o=0===(32&n);if(31===(31&n)){var r=n;for(n=0;128===(128&r);){if(r=t.readUInt8(e),t.isError(r))return r;n<<=7,n|=127&r}}else n&=31;return{cls:i,primitive:o,tag:n,tagStr:s.tag[n]}}function d(t,e,n){var i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0===(128&i))return i;var o=127&i;if(o>4)return t.error("length octect is too long");i=0;for(var r=0;r<o;r++){i<<=8;var a=t.readUInt8(n);if(t.isError(a))return a;i|=a}return i}t.exports=l,l.prototype.decode=function(t,e){return r.isDecoderBuffer(t)||(t=new r(t,e)),this.tree._decode(t,e)},i(u,a),u.prototype._peekTag=function(t,e,n){if(t.isEmpty())return!1;var i=t.save(),o=c(t,'Failed to peek tag: "'+e+'"');return t.isError(o)?o:(t.restore(i),o.tag===e||o.tagStr===e||o.tagStr+"of"===e||n)},u.prototype._decodeTag=function(t,e,n){var i=c(t,'Failed to decode tag of "'+e+'"');if(t.isError(i))return i;var o=d(t,i.primitive,'Failed to get length of "'+e+'"');if(t.isError(o))return o;if(!n&&i.tag!==e&&i.tagStr!==e&&i.tagStr+"of"!==e)return t.error('Failed to match tag: "'+e+'"');if(i.primitive||null!==o)return t.skip(o,'Failed to match body of: "'+e+'"');var r=t.save(),a=this._skipUntilEnd(t,'Failed to skip indefinite length body: "'+this.tag+'"');return t.isError(a)?a:(o=t.offset-r.offset,t.restore(r),t.skip(o,'Failed to match body of: "'+e+'"'))},u.prototype._skipUntilEnd=function(t,e){for(;;){var n=c(t,e);if(t.isError(n))return n;var i=d(t,n.primitive,e);if(t.isError(i))return i;var o=void 0;if(o=n.primitive||null!==i?t.skip(i):this._skipUntilEnd(t,e),t.isError(o))return o;if("end"===n.tagStr)break}},u.prototype._decodeList=function(t,e,n,i){for(var o=[];!t.isEmpty();){var r=this._peekTag(t,"end");if(t.isError(r))return r;var a=n.decode(t,"der",i);if(t.isError(a)&&r)break;o.push(a)}return o},u.prototype._decodeStr=function(t,e){if("bitstr"===e){var n=t.readUInt8();return t.isError(n)?n:{unused:n,data:t.raw()}}if("bmpstr"===e){var i=t.raw();if(i.length%2===1)return t.error("Decoding of string type: bmpstr length mismatch");for(var o="",r=0;r<i.length/2;r++)o+=String.fromCharCode(i.readUInt16BE(2*r));return o}if("numstr"===e){var a=t.raw().toString("ascii");return this._isNumstr(a)?a:t.error("Decoding of string type: numstr unsupported characters")}if("octstr"===e)return t.raw();if("objDesc"===e)return t.raw();if("printstr"===e){var s=t.raw().toString("ascii");return this._isPrintstr(s)?s:t.error("Decoding of string type: printstr unsupported characters")}return/str$/.test(e)?t.raw().toString():t.error("Decoding of string type: "+e+" unsupported")},u.prototype._decodeObjid=function(t,e,n){for(var i,o=[],r=0,a=0;!t.isEmpty();)r<<=7,r|=127&(a=t.readUInt8()),0===(128&a)&&(o.push(r),r=0);128&a&&o.push(r);var s=o[0]/40|0,l=o[0]%40;if(i=n?o:[s,l].concat(o.slice(1)),e){var u=e[i.join(" ")];void 0===u&&(u=e[i.join(".")]),void 0!==u&&(i=u)}return i},u.prototype._decodeTime=function(t,e){var n,i,o,r,a,s,l=t.raw().toString();if("gentime"===e)n=0|l.slice(0,4),i=0|l.slice(4,6),o=0|l.slice(6,8),r=0|l.slice(8,10),a=0|l.slice(10,12),s=0|l.slice(12,14);else{if("utctime"!==e)return t.error("Decoding "+e+" time is not supported yet");n=0|l.slice(0,2),i=0|l.slice(2,4),o=0|l.slice(4,6),r=0|l.slice(6,8),a=0|l.slice(8,10),s=0|l.slice(10,12),n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,r,a,s,0)},u.prototype._decodeNull=function(){return null},u.prototype._decodeBool=function(t){var e=t.readUInt8();return t.isError(e)?e:0!==e},u.prototype._decodeInt=function(t,e){var n=t.raw(),i=new o(n);return e&&(i=e[i.toString(10)]||i),i},u.prototype._use=function(t,e){return"function"===typeof t&&(t=t(e)),t._getDecoder("der").tree}},function(t){t.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},function(t,e,n){var i=n(204),o=n(30).Buffer;function r(t){var e=o.allocUnsafe(4);return e.writeUInt32BE(t,0),e}t.exports=function(t,e){for(var n,a=o.alloc(0),s=0;a.length<e;)n=r(s++),a=o.concat([a,i("sha1").update(t).update(n).digest()]);return a.slice(0,e)}},function(t,e){t.exports=function(t,e){for(var n=t.length,i=-1;++i<n;)t[i]^=e[i];return t}},function(t,e,n){var i=n(335),o=n(30).Buffer;t.exports=function(t,e){return o.from(t.toRed(i.mont(e.modulus)).redPow(new i(e.publicExponent)).fromRed().toArray())}},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(t){var e=o,n=e.lib,i=n.WordArray,r=n.Hasher,a=e.algo,s=[],l=[];!function(){function e(e){for(var n=t.sqrt(e),i=2;i<=n;i++)if(!(e%i))return!1;return!0}function n(t){return 4294967296*(t-(0|t))|0}for(var i=2,o=0;o<64;)e(i)&&(o<8&&(s[o]=n(t.pow(i,.5))),l[o]=n(t.pow(i,1/3)),o++),i++}();var u=[],c=a.SHA256=r.extend({_doReset:function(){this._hash=new i.init(s.slice(0))},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],c=n[5],d=n[6],h=n[7],f=0;f<64;f++){if(f<16)u[f]=0|t[e+f];else{var p=u[f-15],m=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=u[f-2],_=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;u[f]=m+u[f-7]+_+u[f-16]}var v=i&o^i&r^o&r,y=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),b=h+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&c^~s&d)+l[f]+u[f];h=d,d=c,c=s,s=a+b|0,a=r,r=o,o=i,i=b+(y+v)|0}n[0]=n[0]+i|0,n[1]=n[1]+o|0,n[2]=n[2]+r|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+c|0,n[6]=n[6]+d|0,n[7]=n[7]+h|0},_doFinalize:function(){var e=this._data,n=e.words,i=8*this._nDataBytes,o=8*e.sigBytes;return n[o>>>5]|=128<<24-o%32,n[14+(o+64>>>9<<4)]=t.floor(i/4294967296),n[15+(o+64>>>9<<4)]=i,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});e.SHA256=r._createHelper(c),e.HmacSHA256=r._createHmacHelper(c)}(Math),o.SHA256)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(247),function(){var t=r,e=t.lib.Hasher,n=t.x64,i=n.Word,o=n.WordArray,a=t.algo;function s(){return i.create.apply(i,arguments)}var l=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],u=[];!function(){for(var t=0;t<80;t++)u[t]=s()}();var c=a.SHA512=e.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,e){for(var n=this._hash.words,i=n[0],o=n[1],r=n[2],a=n[3],s=n[4],c=n[5],d=n[6],h=n[7],f=i.high,p=i.low,m=o.high,g=o.low,_=r.high,v=r.low,y=a.high,b=a.low,w=s.high,x=s.low,C=c.high,S=c.low,k=d.high,I=d.low,T=h.high,E=h.low,O=f,M=p,P=m,D=g,A=_,R=v,B=y,N=b,L=w,F=x,V=C,z=S,j=k,H=I,W=T,U=E,G=0;G<80;G++){var K,q,$=u[G];if(G<16)q=$.high=0|t[e+2*G],K=$.low=0|t[e+2*G+1];else{var Y=u[G-15],Z=Y.high,X=Y.low,J=(Z>>>1|X<<31)^(Z>>>8|X<<24)^Z>>>7,Q=(X>>>1|Z<<31)^(X>>>8|Z<<24)^(X>>>7|Z<<25),tt=u[G-2],et=tt.high,nt=tt.low,it=(et>>>19|nt<<13)^(et<<3|nt>>>29)^et>>>6,ot=(nt>>>19|et<<13)^(nt<<3|et>>>29)^(nt>>>6|et<<26),rt=u[G-7],at=rt.high,st=rt.low,lt=u[G-16],ut=lt.high,ct=lt.low;q=(q=(q=J+at+((K=Q+st)>>>0<Q>>>0?1:0))+it+((K+=ot)>>>0<ot>>>0?1:0))+ut+((K+=ct)>>>0<ct>>>0?1:0),$.high=q,$.low=K}var dt,ht=L&V^~L&j,ft=F&z^~F&H,pt=O&P^O&A^P&A,mt=M&D^M&R^D&R,gt=(O>>>28|M<<4)^(O<<30|M>>>2)^(O<<25|M>>>7),_t=(M>>>28|O<<4)^(M<<30|O>>>2)^(M<<25|O>>>7),vt=(L>>>14|F<<18)^(L>>>18|F<<14)^(L<<23|F>>>9),yt=(F>>>14|L<<18)^(F>>>18|L<<14)^(F<<23|L>>>9),bt=l[G],wt=bt.high,xt=bt.low,Ct=W+vt+((dt=U+yt)>>>0<U>>>0?1:0),St=_t+mt;W=j,U=H,j=V,H=z,V=L,z=F,L=B+(Ct=(Ct=(Ct=Ct+ht+((dt+=ft)>>>0<ft>>>0?1:0))+wt+((dt+=xt)>>>0<xt>>>0?1:0))+q+((dt+=K)>>>0<K>>>0?1:0))+((F=N+dt|0)>>>0<N>>>0?1:0)|0,B=A,N=R,A=P,R=D,P=O,D=M,O=Ct+(gt+pt+(St>>>0<_t>>>0?1:0))+((M=dt+St|0)>>>0<dt>>>0?1:0)|0}p=i.low=p+M,i.high=f+O+(p>>>0<M>>>0?1:0),g=o.low=g+D,o.high=m+P+(g>>>0<D>>>0?1:0),v=r.low=v+R,r.high=_+A+(v>>>0<R>>>0?1:0),b=a.low=b+N,a.high=y+B+(b>>>0<N>>>0?1:0),x=s.low=x+F,s.high=w+L+(x>>>0<F>>>0?1:0),S=c.low=S+z,c.high=C+V+(S>>>0<z>>>0?1:0),I=d.low=I+H,d.high=k+j+(I>>>0<H>>>0?1:0),E=h.low=E+U,h.high=T+W+(E>>>0<U>>>0?1:0)},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;return e[i>>>5]|=128<<24-i%32,e[30+(i+128>>>10<<5)]=Math.floor(n/4294967296),e[31+(i+128>>>10<<5)]=n,t.sigBytes=4*e.length,this._process(),this._hash.toX32()},clone:function(){var t=e.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=e._createHelper(c),t.HmacSHA512=e._createHmacHelper(c)}(),r.SHA512)}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o,r=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();e.confirmAlert=function(t){document.body.classList.add("react-confirm-alert-body-element"),function(){if(document.getElementById("react-confirm-alert-firm-svg"))return;var t="http://www.w3.org/2000/svg",e=document.createElementNS(t,"feGaussianBlur");e.setAttribute("stdDeviation","0.3");var n=document.createElementNS(t,"filter");n.setAttribute("id","gaussian-blur"),n.appendChild(e);var i=document.createElementNS(t,"svg");i.setAttribute("id","react-confirm-alert-firm-svg"),i.setAttribute("class","react-confirm-alert-svg"),i.appendChild(n),document.body.appendChild(i)}(),function(t){var e=document.getElementById("react-confirm-alert");e||(document.body.children[0].classList.add("react-confirm-alert-blur"),(e=document.createElement("div")).id="react-confirm-alert",document.body.appendChild(e)),(0,u.render)(s.default.createElement(f,t),e)}(t)};var a=n(1),s=c(a),l=c(n(9)),u=n(86);function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}var f=(o=i=function(t){function e(){var t,n,i;d(this,e);for(var o=arguments.length,r=Array(o),a=0;a<o;a++)r[a]=arguments[a];return n=i=h(this,(t=e.__proto__||Object.getPrototypeOf(e)).call.apply(t,[this].concat(r))),i.handleClickButton=function(t){t.onClick&&t.onClick(),i.close()},i.handleClickOverlay=function(t){var e=i.props,n=e.closeOnClickOutside,o=e.onClickOutside,r=t.target===i.overlay;n&&r&&(o(),i.close())},i.close=function(){var t=i.props.afterClose;g(),m(),p(t)},i.keyboardClose=function(t){var e=i.props,n=e.closeOnEscape,o=e.onKeypressEscape,r=27===t.keyCode;n&&r&&(o(t),i.close())},i.componentDidMount=function(){document.addEventListener("keydown",i.keyboardClose,!1)},i.componentWillUnmount=function(){document.removeEventListener("keydown",i.keyboardClose,!1),i.props.willUnmount()},i.renderCustomUI=function(){var t=i.props,e=t.title,n=t.message,o=t.buttons;return(0,t.customUI)({title:e,message:n,buttons:o,onClose:i.close})},h(i,n)}return function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),r(e,[{key:"render",value:function(){var t=this,e=this.props,n=e.title,i=e.message,o=e.buttons,r=e.childrenElement,a=e.customUI;return s.default.createElement("div",{className:"react-confirm-alert-overlay",ref:function(e){return t.overlay=e},onClick:this.handleClickOverlay},s.default.createElement("div",{className:"react-confirm-alert"},a?this.renderCustomUI():s.default.createElement("div",{className:"react-confirm-alert-body"},n&&s.default.createElement("h1",null,n),i,r(),s.default.createElement("div",{className:"react-confirm-alert-button-group"},o.map((function(e,n){return s.default.createElement("button",{key:n,onClick:function(){return t.handleClickButton(e)},className:e.className},e.label)}))))))}}]),e}(a.Component),i.propTypes={title:l.default.string,message:l.default.string,buttons:l.default.array.isRequired,childrenElement:l.default.func,customUI:l.default.func,closeOnClickOutside:l.default.bool,closeOnEscape:l.default.bool,willUnmount:l.default.func,afterClose:l.default.func,onClickOutside:l.default.func,onKeypressEscape:l.default.func},i.defaultProps={buttons:[{label:"Cancel",onClick:function(){return null},className:null},{label:"Confirm",onClick:function(){return null},className:null}],childrenElement:function(){return null},closeOnClickOutside:!0,closeOnEscape:!0,willUnmount:function(){return null},afterClose:function(){return null},onClickOutside:function(){return null},onKeypressEscape:function(){return null}},o);function p(t){var e=document.getElementById("react-confirm-alert-firm-svg");e.parentNode.removeChild(e),document.body.children[0].classList.remove("react-confirm-alert-blur"),t()}function m(){var t=document.getElementById("react-confirm-alert");t&&((0,u.unmountComponentAtNode)(t),t.parentNode.removeChild(t))}function g(){document.body.classList.remove("react-confirm-alert-body-element")}e.default=f},function(t,e,n){"use strict";function i(t){var e,n=t.Symbol;return"function"===typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.subscribe=r,e.default=function(t){var e=t.getState();return t.subscribe((function(){var n=t.getState();Object.keys(o).forEach((function(t){(0,i.get)(e,t)!==(0,i.get)(n,t)&&o[t].forEach((function(t){return t(n)}))})),e=n})),r};var i=n(615),o={};function r(t,e){return o.hasOwnProperty(t)?o[t].push(e):o[t]=[e],function(){o[t]=o[t].filter((function(t){return t!==e}))}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){if(t&&e){var n=Array.isArray(e)?e:e.split(","),i=t.name||"",o=(t.type||"").toLowerCase(),r=o.replace(/\/.*$/,"");return n.some((function(t){var e=t.trim().toLowerCase();return"."===e.charAt(0)?i.toLowerCase().endsWith(e):e.endsWith("/*")?r===e.replace(/\/.*$/,""):o===e}))}return!0}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(251);function o(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(i.a)(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r,a=!0,s=!1;return{s:function(){o=t[Symbol.iterator]()},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw r}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n(1),o=n.n(i),r=(n(9),o.a.createContext(null));var a=function(t){t()},s={notify:function(){}};function l(){var t=a,e=null,n=null;return{clear:function(){e=null,n=null},notify:function(){t((function(){for(var t=e;t;)t.callback(),t=t.next}))},get:function(){for(var t=[],n=e;n;)t.push(n),n=n.next;return t},subscribe:function(t){var i=!0,o=n={callback:t,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){i&&null!==e&&(i=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var u=function(){function t(t,e){this.store=t,this.parentSub=e,this.unsubscribe=null,this.listeners=s,this.handleChangeWrapper=this.handleChangeWrapper.bind(this)}var e=t.prototype;return e.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},e.notifyNestedSubs=function(){this.listeners.notify()},e.handleChangeWrapper=function(){this.onStateChange&&this.onStateChange()},e.isSubscribed=function(){return Boolean(this.unsubscribe)},e.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.handleChangeWrapper):this.store.subscribe(this.handleChangeWrapper),this.listeners=l())},e.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=s)},t}();var c=function(t){var e=t.store,n=t.context,a=t.children,s=Object(i.useMemo)((function(){var t=new u(e);return t.onStateChange=t.notifyNestedSubs,{store:e,subscription:t}}),[e]),l=Object(i.useMemo)((function(){return e.getState()}),[e]);Object(i.useEffect)((function(){var t=s.subscription;return t.trySubscribe(),l!==e.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}}),[s,l]);var c=n||r;return o.a.createElement(c.Provider,{value:s},a)};n(41),n(71),n(210),n(248),"undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?i.useLayoutEffect:i.useEffect;n(182);var d,h=n(86);d=h.unstable_batchedUpdates,a=d},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(251);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}(t,e)||Object(i.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},,function(t,e,n){"use strict";var i=n(343),o="function"===typeof Symbol&&Symbol.for,r=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,d=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.forward_ref"):60112,f=o?Symbol.for("react.suspense"):60113,p=o?Symbol.for("react.memo"):60115,m=o?Symbol.for("react.lazy"):60116,g="function"===typeof Symbol&&Symbol.iterator;function _(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function b(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||v}function w(){}function x(t,e,n){this.props=t,this.context=e,this.refs=y,this.updater=n||v}b.prototype.isReactComponent={},b.prototype.setState=function(t,e){if("object"!==typeof t&&"function"!==typeof t&&null!=t)throw Error(_(85));this.updater.enqueueSetState(this,t,e,"setState")},b.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},w.prototype=b.prototype;var C=x.prototype=new w;C.constructor=x,i(C,b.prototype),C.isPureReactComponent=!0;var S={current:null},k=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var i,o={},a=null,s=null;if(null!=e)for(i in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)k.call(e,i)&&!I.hasOwnProperty(i)&&(o[i]=e[i]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(t&&t.defaultProps)for(i in l=t.defaultProps)void 0===o[i]&&(o[i]=l[i]);return{$$typeof:r,type:t,key:a,ref:s,props:o,_owner:S.current}}function E(t){return"object"===typeof t&&null!==t&&t.$$typeof===r}var O=/\/+/g,M=[];function P(t,e,n,i){if(M.length){var o=M.pop();return o.result=t,o.keyPrefix=e,o.func=n,o.context=i,o.count=0,o}return{result:t,keyPrefix:e,func:n,context:i,count:0}}function D(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>M.length&&M.push(t)}function A(t,e,n){return null==t?0:function t(e,n,i,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case r:case a:l=!0}}if(l)return i(o,e,""===n?"."+R(e,0):n),1;if(l=0,n=""===n?".":n+":",Array.isArray(e))for(var u=0;u<e.length;u++){var c=n+R(s=e[u],u);l+=t(s,c,i,o)}else if(null===e||"object"!==typeof e?c=null:c="function"===typeof(c=g&&e[g]||e["@@iterator"])?c:null,"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=t(s=s.value,c=n+R(s,u++),i,o);else if("object"===s)throw i=""+e,Error(_(31,"[object Object]"===i?"object with keys {"+Object.keys(e).join(", ")+"}":i,""));return l}(t,"",e,n)}function R(t,e){return"object"===typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function B(t,e){t.func.call(t.context,e,t.count++)}function N(t,e,n){var i=t.result,o=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?L(t,i,n,(function(t){return t})):null!=t&&(E(t)&&(t=function(t,e){return{$$typeof:r,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,o+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(O,"$&/")+"/")+n)),i.push(t))}function L(t,e,n,i,o){var r="";null!=n&&(r=(""+n).replace(O,"$&/")+"/"),A(t,N,e=P(e,r,i,o)),D(e)}var F={current:null};function V(){var t=F.current;if(null===t)throw Error(_(321));return t}var z={ReactCurrentDispatcher:F,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:i};e.Children={map:function(t,e,n){if(null==t)return t;var i=[];return L(t,i,null,e,n),i},forEach:function(t,e,n){if(null==t)return t;A(t,B,e=P(null,null,e,n)),D(e)},count:function(t){return A(t,(function(){return null}),null)},toArray:function(t){var e=[];return L(t,e,null,(function(t){return t})),e},only:function(t){if(!E(t))throw Error(_(143));return t}},e.Component=b,e.Fragment=s,e.Profiler=u,e.PureComponent=x,e.StrictMode=l,e.Suspense=f,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=z,e.cloneElement=function(t,e,n){if(null===t||void 0===t)throw Error(_(267,t));var o=i({},t.props),a=t.key,s=t.ref,l=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,l=S.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var u=t.type.defaultProps;for(c in e)k.call(e,c)&&!I.hasOwnProperty(c)&&(o[c]=void 0===e[c]&&void 0!==u?u[c]:e[c])}var c=arguments.length-2;if(1===c)o.children=n;else if(1<c){u=Array(c);for(var d=0;d<c;d++)u[d]=arguments[d+2];o.children=u}return{$$typeof:r,type:t.type,key:a,ref:s,props:o,_owner:l}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:d,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=T,e.createFactory=function(t){var e=T.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:h,render:t}},e.isValidElement=E,e.lazy=function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:p,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return V().useCallback(t,e)},e.useContext=function(t,e){return V().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return V().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return V().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return V().useLayoutEffect(t,e)},e.useMemo=function(t,e){return V().useMemo(t,e)},e.useReducer=function(t,e,n){return V().useReducer(t,e,n)},e.useRef=function(t){return V().useRef(t)},e.useState=function(t){return V().useState(t)},e.version="16.13.1"},function(t,e,n){"use strict";var i=n(1),o=n(343),r=n(592);function a(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!i)throw Error(a(227));function s(t,e,n,i,o,r,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(c){this.onError(c)}}var l=!1,u=null,c=!1,d=null,h={onError:function(t){l=!0,u=t}};function f(t,e,n,i,o,r,a,c,d){l=!1,u=null,s.apply(h,arguments)}var p=null,m=null,g=null;function _(t,e,n){var i=t.type||"unknown-event";t.currentTarget=g(n),function(t,e,n,i,o,r,s,h,p){if(f.apply(this,arguments),l){if(!l)throw Error(a(198));var m=u;l=!1,u=null,c||(c=!0,d=m)}}(i,e,void 0,t),t.currentTarget=null}var v=null,y={};function b(){if(v)for(var t in y){var e=y[t],n=v.indexOf(t);if(!(-1<n))throw Error(a(96,t));if(!x[n]){if(!e.extractEvents)throw Error(a(97,t));for(var i in x[n]=e,n=e.eventTypes){var o=void 0,r=n[i],s=e,l=i;if(C.hasOwnProperty(l))throw Error(a(99,l));C[l]=r;var u=r.phasedRegistrationNames;if(u){for(o in u)u.hasOwnProperty(o)&&w(u[o],s,l);o=!0}else r.registrationName?(w(r.registrationName,s,l),o=!0):o=!1;if(!o)throw Error(a(98,i,t))}}}}function w(t,e,n){if(S[t])throw Error(a(100,t));S[t]=e,k[t]=e.eventTypes[n].dependencies}var x=[],C={},S={},k={};function I(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var i=t[e];if(!y.hasOwnProperty(e)||y[e]!==i){if(y[e])throw Error(a(102,e));y[e]=i,n=!0}}n&&b()}var T=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),E=null,O=null,M=null;function P(t){if(t=m(t)){if("function"!==typeof E)throw Error(a(280));var e=t.stateNode;e&&(e=p(e),E(t.stateNode,t.type,e))}}function D(t){O?M?M.push(t):M=[t]:O=t}function A(){if(O){var t=O,e=M;if(M=O=null,P(t),e)for(t=0;t<e.length;t++)P(e[t])}}function R(t,e){return t(e)}function B(t,e,n,i,o){return t(e,n,i,o)}function N(){}var L=R,F=!1,V=!1;function z(){null===O&&null===M||(N(),A())}function j(t,e,n){if(V)return t(e,n);V=!0;try{return L(t,e,n)}finally{V=!1,z()}}var H=/^[: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]*$/,W=Object.prototype.hasOwnProperty,U={},G={};function K(t,e,n,i,o,r){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=i,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=t,this.type=e,this.sanitizeURL=r}var q={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){q[t]=new K(t,0,!1,t,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];q[e]=new K(e,1,!1,t[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){q[t]=new K(t,2,!1,t.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){q[t]=new K(t,2,!1,t,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){q[t]=new K(t,3,!1,t.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(t){q[t]=new K(t,3,!0,t,null,!1)})),["capture","download"].forEach((function(t){q[t]=new K(t,4,!1,t,null,!1)})),["cols","rows","size","span"].forEach((function(t){q[t]=new K(t,6,!1,t,null,!1)})),["rowSpan","start"].forEach((function(t){q[t]=new K(t,5,!1,t.toLowerCase(),null,!1)}));var $=/[\-:]([a-z])/g;function Y(t){return t[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(t){var e=t.replace($,Y);q[e]=new K(e,1,!1,t,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace($,Y);q[e]=new K(e,1,!1,t,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace($,Y);q[e]=new K(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(t){q[t]=new K(t,1,!1,t.toLowerCase(),null,!1)})),q.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(t){q[t]=new K(t,1,!1,t.toLowerCase(),null,!0)}));var Z=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function X(t,e,n,i){var o=q.hasOwnProperty(e)?q[e]:null;(null!==o?0===o.type:!i&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,i){if(null===e||"undefined"===typeof e||function(t,e,n,i){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!i&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,i))return!0;if(i)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,o,i)&&(n=null),i||null===o?function(t){return!!W.call(G,t)||!W.call(U,t)&&(H.test(t)?G[t]=!0:(U[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):o.mustUseProperty?t[o.propertyName]=null===n?3!==o.type&&"":n:(e=o.attributeName,i=o.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,i?t.setAttributeNS(i,e,n):t.setAttribute(e,n))))}Z.hasOwnProperty("ReactCurrentDispatcher")||(Z.ReactCurrentDispatcher={current:null}),Z.hasOwnProperty("ReactCurrentBatchConfig")||(Z.ReactCurrentBatchConfig={suspense:null});var J=/^(.*)[\\\/]/,Q="function"===typeof Symbol&&Symbol.for,tt=Q?Symbol.for("react.element"):60103,et=Q?Symbol.for("react.portal"):60106,nt=Q?Symbol.for("react.fragment"):60107,it=Q?Symbol.for("react.strict_mode"):60108,ot=Q?Symbol.for("react.profiler"):60114,rt=Q?Symbol.for("react.provider"):60109,at=Q?Symbol.for("react.context"):60110,st=Q?Symbol.for("react.concurrent_mode"):60111,lt=Q?Symbol.for("react.forward_ref"):60112,ut=Q?Symbol.for("react.suspense"):60113,ct=Q?Symbol.for("react.suspense_list"):60120,dt=Q?Symbol.for("react.memo"):60115,ht=Q?Symbol.for("react.lazy"):60116,ft=Q?Symbol.for("react.block"):60121,pt="function"===typeof Symbol&&Symbol.iterator;function mt(t){return null===t||"object"!==typeof t?null:"function"===typeof(t=pt&&t[pt]||t["@@iterator"])?t:null}function gt(t){if(null==t)return null;if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t;switch(t){case nt:return"Fragment";case et:return"Portal";case ot:return"Profiler";case it:return"StrictMode";case ut:return"Suspense";case ct:return"SuspenseList"}if("object"===typeof t)switch(t.$$typeof){case at:return"Context.Consumer";case rt:return"Context.Provider";case lt:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case dt:return gt(t.type);case ft:return gt(t.render);case ht:if(t=1===t._status?t._result:null)return gt(t)}return null}function _t(t){var e="";do{t:switch(t.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break t;default:var i=t._debugOwner,o=t._debugSource,r=gt(t.type);n=null,i&&(n=gt(i.type)),i=r,r="",o?r=" (at "+o.fileName.replace(J,"")+":"+o.lineNumber+")":n&&(r=" (created by "+n+")"),n="\n in "+(i||"Unknown")+r}e+=n,t=t.return}while(t);return e}function vt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function yt(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function bt(t){t._valueTracker||(t._valueTracker=function(t){var e=yt(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),i=""+t[e];if(!t.hasOwnProperty(e)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var o=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(t){i=""+t,r.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(t){i=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function wt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),i="";return t&&(i=yt(t)?t.checked?"true":"false":t.value),(t=i)!==n&&(e.setValue(t),!0)}function xt(t,e){var n=e.checked;return o({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Ct(t,e){var n=null==e.defaultValue?"":e.defaultValue,i=null!=e.checked?e.checked:e.defaultChecked;n=vt(null!=e.value?e.value:n),t._wrapperState={initialChecked:i,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function St(t,e){null!=(e=e.checked)&&X(t,"checked",e,!1)}function kt(t,e){St(t,e);var n=vt(e.value),i=e.type;if(null!=n)"number"===i?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===i||"reset"===i)return void t.removeAttribute("value");e.hasOwnProperty("value")?Tt(t,e.type,n):e.hasOwnProperty("defaultValue")&&Tt(t,e.type,vt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function It(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!("submit"!==i&&"reset"!==i||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Tt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function Et(t,e){return t=o({children:void 0},e),(e=function(t){var e="";return i.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Ot(t,e,n,i){if(t=t.options,e){e={};for(var o=0;o<n.length;o++)e["$"+n[o]]=!0;for(n=0;n<t.length;n++)o=e.hasOwnProperty("$"+t[n].value),t[n].selected!==o&&(t[n].selected=o),o&&i&&(t[n].defaultSelected=!0)}else{for(n=""+vt(n),e=null,o=0;o<t.length;o++){if(t[o].value===n)return t[o].selected=!0,void(i&&(t[o].defaultSelected=!0));null!==e||t[o].disabled||(e=t[o])}null!==e&&(e.selected=!0)}}function Mt(t,e){if(null!=e.dangerouslySetInnerHTML)throw Error(a(91));return o({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Pt(t,e){var n=e.value;if(null==n){if(n=e.children,e=e.defaultValue,null!=n){if(null!=e)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}e=n}null==e&&(e=""),n=e}t._wrapperState={initialValue:vt(n)}}function Dt(t,e){var n=vt(e.value),i=vt(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=i&&(t.defaultValue=""+i)}function At(t){var e=t.textContent;e===t._wrapperState.initialValue&&""!==e&&null!==e&&(t.value=e)}var Rt="http://www.w3.org/1999/xhtml",Bt="http://www.w3.org/2000/svg";function Nt(t){switch(t){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 Lt(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Nt(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var Ft,Vt=function(t){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,i,o){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==Bt||"innerHTML"in t)t.innerHTML=e;else{for((Ft=Ft||document.createElement("div")).innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Ft.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function zt(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function jt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ht={animationend:jt("Animation","AnimationEnd"),animationiteration:jt("Animation","AnimationIteration"),animationstart:jt("Animation","AnimationStart"),transitionend:jt("Transition","TransitionEnd")},Wt={},Ut={};function Gt(t){if(Wt[t])return Wt[t];if(!Ht[t])return t;var e,n=Ht[t];for(e in n)if(n.hasOwnProperty(e)&&e in Ut)return Wt[t]=n[e];return t}T&&(Ut=document.createElement("div").style,"AnimationEvent"in window||(delete Ht.animationend.animation,delete Ht.animationiteration.animation,delete Ht.animationstart.animation),"TransitionEvent"in window||delete Ht.transitionend.transition);var Kt=Gt("animationend"),qt=Gt("animationiteration"),$t=Gt("animationstart"),Yt=Gt("transitionend"),Zt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xt=new("function"===typeof WeakMap?WeakMap:Map);function Jt(t){var e=Xt.get(t);return void 0===e&&(e=new Map,Xt.set(t,e)),e}function Qt(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do{0!==(1026&(e=t).effectTag)&&(n=e.return),t=e.return}while(t)}return 3===e.tag?n:null}function te(t){if(13===t.tag){var e=t.memoizedState;if(null===e&&(null!==(t=t.alternate)&&(e=t.memoizedState)),null!==e)return e.dehydrated}return null}function ee(t){if(Qt(t)!==t)throw Error(a(188))}function ne(t){if(!(t=function(t){var e=t.alternate;if(!e){if(null===(e=Qt(t)))throw Error(a(188));return e!==t?null:t}for(var n=t,i=e;;){var o=n.return;if(null===o)break;var r=o.alternate;if(null===r){if(null!==(i=o.return)){n=i;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===n)return ee(o),t;if(r===i)return ee(o),e;r=r.sibling}throw Error(a(188))}if(n.return!==i.return)n=o,i=r;else{for(var s=!1,l=o.child;l;){if(l===n){s=!0,n=o,i=r;break}if(l===i){s=!0,i=o,n=r;break}l=l.sibling}if(!s){for(l=r.child;l;){if(l===n){s=!0,n=r,i=o;break}if(l===i){s=!0,i=r,n=o;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==i)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function ie(t,e){if(null==e)throw Error(a(30));return null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function oe(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var re=null;function ae(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var i=0;i<e.length&&!t.isPropagationStopped();i++)_(t,e[i],n[i]);else e&&_(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function se(t){if(null!==t&&(re=ie(re,t)),t=re,re=null,t){if(oe(t,ae),re)throw Error(a(95));if(c)throw t=d,c=!1,d=null,t}}function le(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function ue(t){if(!T)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"===typeof e[t]),e}var ce=[];function de(t){t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>ce.length&&ce.push(t)}function he(t,e,n,i){if(ce.length){var o=ce.pop();return o.topLevelType=t,o.eventSystemFlags=i,o.nativeEvent=e,o.targetInst=n,o}return{topLevelType:t,eventSystemFlags:i,nativeEvent:e,targetInst:n,ancestors:[]}}function fe(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var i=n;if(3===i.tag)i=i.stateNode.containerInfo;else{for(;i.return;)i=i.return;i=3!==i.tag?null:i.stateNode.containerInfo}if(!i)break;5!==(e=n.tag)&&6!==e||t.ancestors.push(n),n=Tn(i)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var o=le(t.nativeEvent);i=t.topLevelType;var r=t.nativeEvent,a=t.eventSystemFlags;0===n&&(a|=64);for(var s=null,l=0;l<x.length;l++){var u=x[l];u&&(u=u.extractEvents(i,e,r,o,a))&&(s=ie(s,u))}se(s)}}function pe(t,e,n){if(!n.has(t)){switch(t){case"scroll":$e(e,"scroll",!0);break;case"focus":case"blur":$e(e,"focus",!0),$e(e,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":ue(t)&&$e(e,t,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Zt.indexOf(t)&&qe(t,e)}n.set(t,null)}}var me,ge,_e,ve=!1,ye=[],be=null,we=null,xe=null,Ce=new Map,Se=new Map,ke=[],Ie="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Te="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ee(t,e,n,i,o){return{blockedOn:t,topLevelType:e,eventSystemFlags:32|n,nativeEvent:o,container:i}}function Oe(t,e){switch(t){case"focus":case"blur":be=null;break;case"dragenter":case"dragleave":we=null;break;case"mouseover":case"mouseout":xe=null;break;case"pointerover":case"pointerout":Ce.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Se.delete(e.pointerId)}}function Me(t,e,n,i,o,r){return null===t||t.nativeEvent!==r?(t=Ee(e,n,i,o,r),null!==e&&(null!==(e=En(e))&&ge(e)),t):(t.eventSystemFlags|=i,t)}function Pe(t){var e=Tn(t.target);if(null!==e){var n=Qt(e);if(null!==n)if(13===(e=n.tag)){if(null!==(e=te(n)))return t.blockedOn=e,void r.unstable_runWithPriority(t.priority,(function(){_e(n)}))}else if(3===e&&n.stateNode.hydrate)return void(t.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}t.blockedOn=null}function De(t){if(null!==t.blockedOn)return!1;var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);if(null!==e){var n=En(e);return null!==n&&ge(n),t.blockedOn=e,!1}return!0}function Ae(t,e,n){De(t)&&n.delete(e)}function Re(){for(ve=!1;0<ye.length;){var t=ye[0];if(null!==t.blockedOn){null!==(t=En(t.blockedOn))&&me(t);break}var e=Je(t.topLevelType,t.eventSystemFlags,t.container,t.nativeEvent);null!==e?t.blockedOn=e:ye.shift()}null!==be&&De(be)&&(be=null),null!==we&&De(we)&&(we=null),null!==xe&&De(xe)&&(xe=null),Ce.forEach(Ae),Se.forEach(Ae)}function Be(t,e){t.blockedOn===e&&(t.blockedOn=null,ve||(ve=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Re)))}function Ne(t){function e(e){return Be(e,t)}if(0<ye.length){Be(ye[0],t);for(var n=1;n<ye.length;n++){var i=ye[n];i.blockedOn===t&&(i.blockedOn=null)}}for(null!==be&&Be(be,t),null!==we&&Be(we,t),null!==xe&&Be(xe,t),Ce.forEach(e),Se.forEach(e),n=0;n<ke.length;n++)(i=ke[n]).blockedOn===t&&(i.blockedOn=null);for(;0<ke.length&&null===(n=ke[0]).blockedOn;)Pe(n),null===n.blockedOn&&ke.shift()}var Le={},Fe=new Map,Ve=new Map,ze=["abort","abort",Kt,"animationEnd",qt,"animationIteration",$t,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Yt,"transitionEnd","waiting","waiting"];function je(t,e){for(var n=0;n<t.length;n+=2){var i=t[n],o=t[n+1],r="on"+(o[0].toUpperCase()+o.slice(1));r={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[i],eventPriority:e},Ve.set(i,e),Fe.set(i,r),Le[o]=r}}je("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".split(" "),0),je("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),je(ze,2);for(var He="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),We=0;We<He.length;We++)Ve.set(He[We],0);var Ue=r.unstable_UserBlockingPriority,Ge=r.unstable_runWithPriority,Ke=!0;function qe(t,e){$e(e,t,!1)}function $e(t,e,n){var i=Ve.get(e);switch(void 0===i?2:i){case 0:i=Ye.bind(null,e,1,t);break;case 1:i=Ze.bind(null,e,1,t);break;default:i=Xe.bind(null,e,1,t)}n?t.addEventListener(e,i,!0):t.addEventListener(e,i,!1)}function Ye(t,e,n,i){F||N();var o=Xe,r=F;F=!0;try{B(o,t,e,n,i)}finally{(F=r)||z()}}function Ze(t,e,n,i){Ge(Ue,Xe.bind(null,t,e,n,i))}function Xe(t,e,n,i){if(Ke)if(0<ye.length&&-1<Ie.indexOf(t))t=Ee(null,t,e,n,i),ye.push(t);else{var o=Je(t,e,n,i);if(null===o)Oe(t,i);else if(-1<Ie.indexOf(t))t=Ee(o,t,e,n,i),ye.push(t);else if(!function(t,e,n,i,o){switch(e){case"focus":return be=Me(be,t,e,n,i,o),!0;case"dragenter":return we=Me(we,t,e,n,i,o),!0;case"mouseover":return xe=Me(xe,t,e,n,i,o),!0;case"pointerover":var r=o.pointerId;return Ce.set(r,Me(Ce.get(r)||null,t,e,n,i,o)),!0;case"gotpointercapture":return r=o.pointerId,Se.set(r,Me(Se.get(r)||null,t,e,n,i,o)),!0}return!1}(o,t,e,n,i)){Oe(t,i),t=he(t,i,null,e);try{j(fe,t)}finally{de(t)}}}}function Je(t,e,n,i){if(null!==(n=Tn(n=le(i)))){var o=Qt(n);if(null===o)n=null;else{var r=o.tag;if(13===r){if(null!==(n=te(o)))return n;n=null}else if(3===r){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;n=null}else o!==n&&(n=null)}}t=he(t,i,n,e);try{j(fe,t)}finally{de(t)}return null}var Qe={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},tn=["Webkit","ms","Moz","O"];function en(t,e,n){return null==e||"boolean"===typeof e||""===e?"":n||"number"!==typeof e||0===e||Qe.hasOwnProperty(t)&&Qe[t]?(""+e).trim():e+"px"}function nn(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var i=0===n.indexOf("--"),o=en(n,e[n],i);"float"===n&&(n="cssFloat"),i?t.setProperty(n,o):t[n]=o}}Object.keys(Qe).forEach((function(t){tn.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Qe[e]=Qe[t]}))}));var on=o({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 rn(t,e){if(e){if(on[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML))throw Error(a(137,t,""));if(null!=e.dangerouslySetInnerHTML){if(null!=e.children)throw Error(a(60));if("object"!==typeof e.dangerouslySetInnerHTML||!("__html"in e.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=e.style&&"object"!==typeof e.style)throw Error(a(62,""))}}function an(t,e){if(-1===t.indexOf("-"))return"string"===typeof e.is;switch(t){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}}var sn=Rt;function ln(t,e){var n=Jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=k[e];for(var i=0;i<e.length;i++)pe(e[i],t,n)}function un(){}function cn(t){if("undefined"===typeof(t=t||("undefined"!==typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function dn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hn(t,e){var n,i=dn(t);for(t=0;i;){if(3===i.nodeType){if(n=t+i.textContent.length,t<=e&&n>=e)return{node:i,offset:e-t};t=n}t:{for(;i;){if(i.nextSibling){i=i.nextSibling;break t}i=i.parentNode}i=void 0}i=dn(i)}}function fn(){for(var t=window,e=cn();e instanceof t.HTMLIFrameElement;){try{var n="string"===typeof e.contentWindow.location.href}catch(i){n=!1}if(!n)break;e=cn((t=e.contentWindow).document)}return e}function pn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var mn=null,gn=null;function _n(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function vn(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"===typeof e.children||"number"===typeof e.children||"object"===typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var yn="function"===typeof setTimeout?setTimeout:void 0,bn="function"===typeof clearTimeout?clearTimeout:void 0;function wn(t){for(;null!=t;t=t.nextSibling){var e=t.nodeType;if(1===e||3===e)break}return t}function xn(t){t=t.previousSibling;for(var e=0;t;){if(8===t.nodeType){var n=t.data;if("$"===n||"$!"===n||"$?"===n){if(0===e)return t;e--}else"/$"===n&&e++}t=t.previousSibling}return null}var Cn=Math.random().toString(36).slice(2),Sn="__reactInternalInstance$"+Cn,kn="__reactEventHandlers$"+Cn,In="__reactContainere$"+Cn;function Tn(t){var e=t[Sn];if(e)return e;for(var n=t.parentNode;n;){if(e=n[In]||n[Sn]){if(n=e.alternate,null!==e.child||null!==n&&null!==n.child)for(t=xn(t);null!==t;){if(n=t[Sn])return n;t=xn(t)}return e}n=(t=n).parentNode}return null}function En(t){return!(t=t[Sn]||t[In])||5!==t.tag&&6!==t.tag&&13!==t.tag&&3!==t.tag?null:t}function On(t){if(5===t.tag||6===t.tag)return t.stateNode;throw Error(a(33))}function Mn(t){return t[kn]||null}function Pn(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function Dn(t,e){var n=t.stateNode;if(!n)return null;var i=p(n);if(!i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(i=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}if(t)return null;if(n&&"function"!==typeof n)throw Error(a(231,e,typeof n));return n}function An(t,e,n){(e=Dn(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Rn(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=Pn(e);for(e=n.length;0<e--;)An(n[e],"captured",t);for(e=0;e<n.length;e++)An(n[e],"bubbled",t)}}function Bn(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=Dn(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=ie(n._dispatchListeners,e),n._dispatchInstances=ie(n._dispatchInstances,t))}function Nn(t){t&&t.dispatchConfig.registrationName&&Bn(t._targetInst,null,t)}function Ln(t){oe(t,Rn)}var Fn=null,Vn=null,zn=null;function jn(){if(zn)return zn;var t,e,n=Vn,i=n.length,o="value"in Fn?Fn.value:Fn.textContent,r=o.length;for(t=0;t<i&&n[t]===o[t];t++);var a=i-t;for(e=1;e<=a&&n[i-e]===o[r-e];e++);return zn=o.slice(t,1<e?1-e:void 0)}function Hn(){return!0}function Wn(){return!1}function Un(t,e,n,i){for(var o in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(o)&&((e=t[o])?this[o]=e(n):"target"===o?this.target=i:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Hn:Wn,this.isPropagationStopped=Wn,this}function Gn(t,e,n,i){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,t,e,n,i),o}return new this(t,e,n,i)}function Kn(t){if(!(t instanceof this))throw Error(a(279));t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function qn(t){t.eventPool=[],t.getPooled=Gn,t.release=Kn}o(Un.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!==typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=Hn)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!==typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=Hn)},persist:function(){this.isPersistent=Hn},isPersistent:Wn,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Wn,this._dispatchInstances=this._dispatchListeners=null}}),Un.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Un.extend=function(t){function e(){}function n(){return i.apply(this,arguments)}var i=this;e.prototype=i.prototype;var r=new e;return o(r,n.prototype),n.prototype=r,n.prototype.constructor=n,n.Interface=o({},i.Interface,t),n.extend=i.extend,qn(n),n},qn(Un);var $n=Un.extend({data:null}),Yn=Un.extend({data:null}),Zn=[9,13,27,32],Xn=T&&"CompositionEvent"in window,Jn=null;T&&"documentMode"in document&&(Jn=document.documentMode);var Qn=T&&"TextEvent"in window&&!Jn,ti=T&&(!Xn||Jn&&8<Jn&&11>=Jn),ei=String.fromCharCode(32),ni={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(" ")}},ii=!1;function oi(t,e){switch(t){case"keyup":return-1!==Zn.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ri(t){return"object"===typeof(t=t.detail)&&"data"in t?t.data:null}var ai=!1;var si={eventTypes:ni,extractEvents:function(t,e,n,i){var o;if(Xn)t:{switch(t){case"compositionstart":var r=ni.compositionStart;break t;case"compositionend":r=ni.compositionEnd;break t;case"compositionupdate":r=ni.compositionUpdate;break t}r=void 0}else ai?oi(t,n)&&(r=ni.compositionEnd):"keydown"===t&&229===n.keyCode&&(r=ni.compositionStart);return r?(ti&&"ko"!==n.locale&&(ai||r!==ni.compositionStart?r===ni.compositionEnd&&ai&&(o=jn()):(Vn="value"in(Fn=i)?Fn.value:Fn.textContent,ai=!0)),r=$n.getPooled(r,e,n,i),o?r.data=o:null!==(o=ri(n))&&(r.data=o),Ln(r),o=r):o=null,(t=Qn?function(t,e){switch(t){case"compositionend":return ri(e);case"keypress":return 32!==e.which?null:(ii=!0,ei);case"textInput":return(t=e.data)===ei&&ii?null:t;default:return null}}(t,n):function(t,e){if(ai)return"compositionend"===t||!Xn&&oi(t,e)?(t=jn(),zn=Vn=Fn=null,ai=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return ti&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=Yn.getPooled(ni.beforeInput,e,n,i)).data=t,Ln(e)):e=null,null===o?e:null===e?o:[o,e]}},li={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 ui(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!li[t.type]:"textarea"===e}var ci={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function di(t,e,n){return(t=Un.getPooled(ci.change,t,e,n)).type="change",D(n),Ln(t),t}var hi=null,fi=null;function pi(t){se(t)}function mi(t){if(wt(On(t)))return t}function gi(t,e){if("change"===t)return e}var _i=!1;function vi(){hi&&(hi.detachEvent("onpropertychange",yi),fi=hi=null)}function yi(t){if("value"===t.propertyName&&mi(fi))if(t=di(fi,t,le(t)),F)se(t);else{F=!0;try{R(pi,t)}finally{F=!1,z()}}}function bi(t,e,n){"focus"===t?(vi(),fi=n,(hi=e).attachEvent("onpropertychange",yi)):"blur"===t&&vi()}function wi(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return mi(fi)}function xi(t,e){if("click"===t)return mi(e)}function Ci(t,e){if("input"===t||"change"===t)return mi(e)}T&&(_i=ue("input")&&(!document.documentMode||9<document.documentMode));var Si={eventTypes:ci,_isInputEventSupported:_i,extractEvents:function(t,e,n,i){var o=e?On(e):window,r=o.nodeName&&o.nodeName.toLowerCase();if("select"===r||"input"===r&&"file"===o.type)var a=gi;else if(ui(o))if(_i)a=Ci;else{a=wi;var s=bi}else(r=o.nodeName)&&"input"===r.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=xi);if(a&&(a=a(t,e)))return di(a,n,i);s&&s(t,o,e),"blur"===t&&(t=o._wrapperState)&&t.controlled&&"number"===o.type&&Tt(o,"number",o.value)}},ki=Un.extend({view:null,detail:null}),Ii={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ti(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Ii[t])&&!!e[t]}function Ei(){return Ti}var Oi=0,Mi=0,Pi=!1,Di=!1,Ai=ki.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ei,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Oi;return Oi=t.screenX,Pi?"mousemove"===t.type?t.screenX-e:0:(Pi=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Mi;return Mi=t.screenY,Di?"mousemove"===t.type?t.screenY-e:0:(Di=!0,0)}}),Ri=Ai.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Bi={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Ni={eventTypes:Bi,extractEvents:function(t,e,n,i,o){var r="mouseover"===t||"pointerover"===t,a="mouseout"===t||"pointerout"===t;if(r&&0===(32&o)&&(n.relatedTarget||n.fromElement)||!a&&!r)return null;(r=i.window===i?i:(r=i.ownerDocument)?r.defaultView||r.parentWindow:window,a)?(a=e,null!==(e=(e=n.relatedTarget||n.toElement)?Tn(e):null)&&(e!==Qt(e)||5!==e.tag&&6!==e.tag)&&(e=null)):a=null;if(a===e)return null;if("mouseout"===t||"mouseover"===t)var s=Ai,l=Bi.mouseLeave,u=Bi.mouseEnter,c="mouse";else"pointerout"!==t&&"pointerover"!==t||(s=Ri,l=Bi.pointerLeave,u=Bi.pointerEnter,c="pointer");if(t=null==a?r:On(a),r=null==e?r:On(e),(l=s.getPooled(l,a,n,i)).type=c+"leave",l.target=t,l.relatedTarget=r,(n=s.getPooled(u,e,n,i)).type=c+"enter",n.target=r,n.relatedTarget=t,c=e,(i=a)&&c)t:{for(u=c,a=0,t=s=i;t;t=Pn(t))a++;for(t=0,e=u;e;e=Pn(e))t++;for(;0<a-t;)s=Pn(s),a--;for(;0<t-a;)u=Pn(u),t--;for(;a--;){if(s===u||s===u.alternate)break t;s=Pn(s),u=Pn(u)}s=null}else s=null;for(u=s,s=[];i&&i!==u&&(null===(a=i.alternate)||a!==u);)s.push(i),i=Pn(i);for(i=[];c&&c!==u&&(null===(a=c.alternate)||a!==u);)i.push(c),c=Pn(c);for(c=0;c<s.length;c++)Bn(s[c],"bubbled",l);for(c=i.length;0<c--;)Bn(i[c],"captured",n);return 0===(64&o)?[l]:[l,n]}};var Li="function"===typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t===1/e)||t!==t&&e!==e},Fi=Object.prototype.hasOwnProperty;function Vi(t,e){if(Li(t,e))return!0;if("object"!==typeof t||null===t||"object"!==typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++)if(!Fi.call(e,n[i])||!Li(t[n[i]],e[n[i]]))return!1;return!0}var zi=T&&"documentMode"in document&&11>=document.documentMode,ji={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hi=null,Wi=null,Ui=null,Gi=!1;function Ki(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Gi||null==Hi||Hi!==cn(n)?null:("selectionStart"in(n=Hi)&&pn(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},Ui&&Vi(Ui,n)?null:(Ui=n,(t=Un.getPooled(ji.select,Wi,t,e)).type="select",t.target=Hi,Ln(t),t))}var qi={eventTypes:ji,extractEvents:function(t,e,n,i,o,r){if(!(r=!(o=r||(i.window===i?i.document:9===i.nodeType?i:i.ownerDocument)))){t:{o=Jt(o),r=k.onSelect;for(var a=0;a<r.length;a++)if(!o.has(r[a])){o=!1;break t}o=!0}r=!o}if(r)return null;switch(o=e?On(e):window,t){case"focus":(ui(o)||"true"===o.contentEditable)&&(Hi=o,Wi=e,Ui=null);break;case"blur":Ui=Wi=Hi=null;break;case"mousedown":Gi=!0;break;case"contextmenu":case"mouseup":case"dragend":return Gi=!1,Ki(n,i);case"selectionchange":if(zi)break;case"keydown":case"keyup":return Ki(n,i)}return null}},$i=Un.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Yi=Un.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Zi=ki.extend({relatedTarget:null});function Xi(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var Ji={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Qi={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"},to=ki.extend({key:function(t){if(t.key){var e=Ji[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=Xi(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?Qi[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ei,charCode:function(t){return"keypress"===t.type?Xi(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?Xi(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),eo=Ai.extend({dataTransfer:null}),no=ki.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ei}),io=Un.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Ai.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),ro={eventTypes:Le,extractEvents:function(t,e,n,i){var o=Fe.get(t);if(!o)return null;switch(t){case"keypress":if(0===Xi(n))return null;case"keydown":case"keyup":t=to;break;case"blur":case"focus":t=Zi;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":t=Ai;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=eo;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=no;break;case Kt:case qt:case $t:t=$i;break;case Yt:t=io;break;case"scroll":t=ki;break;case"wheel":t=oo;break;case"copy":case"cut":case"paste":t=Yi;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Ri;break;default:t=Un}return Ln(e=t.getPooled(o,e,n,i)),e}};if(v)throw Error(a(101));v=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),b(),p=Mn,m=En,g=On,I({SimpleEventPlugin:ro,EnterLeaveEventPlugin:Ni,ChangeEventPlugin:Si,SelectEventPlugin:qi,BeforeInputEventPlugin:si});var ao=[],so=-1;function lo(t){0>so||(t.current=ao[so],ao[so]=null,so--)}function uo(t,e){so++,ao[so]=t.current,t.current=e}var co={},ho={current:co},fo={current:!1},po=co;function mo(t,e){var n=t.type.contextTypes;if(!n)return co;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var o,r={};for(o in n)r[o]=e[o];return i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=r),r}function go(t){return null!==(t=t.childContextTypes)&&void 0!==t}function _o(){lo(fo),lo(ho)}function vo(t,e,n){if(ho.current!==co)throw Error(a(168));uo(ho,e),uo(fo,n)}function yo(t,e,n){var i=t.stateNode;if(t=e.childContextTypes,"function"!==typeof i.getChildContext)return n;for(var r in i=i.getChildContext())if(!(r in t))throw Error(a(108,gt(e)||"Unknown",r));return o({},n,{},i)}function bo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||co,po=ho.current,uo(ho,t),uo(fo,fo.current),!0}function wo(t,e,n){var i=t.stateNode;if(!i)throw Error(a(169));n?(t=yo(t,e,po),i.__reactInternalMemoizedMergedChildContext=t,lo(fo),lo(ho),uo(ho,t)):lo(fo),uo(fo,n)}var xo=r.unstable_runWithPriority,Co=r.unstable_scheduleCallback,So=r.unstable_cancelCallback,ko=r.unstable_requestPaint,Io=r.unstable_now,To=r.unstable_getCurrentPriorityLevel,Eo=r.unstable_ImmediatePriority,Oo=r.unstable_UserBlockingPriority,Mo=r.unstable_NormalPriority,Po=r.unstable_LowPriority,Do=r.unstable_IdlePriority,Ao={},Ro=r.unstable_shouldYield,Bo=void 0!==ko?ko:function(){},No=null,Lo=null,Fo=!1,Vo=Io(),zo=1e4>Vo?Io:function(){return Io()-Vo};function jo(){switch(To()){case Eo:return 99;case Oo:return 98;case Mo:return 97;case Po:return 96;case Do:return 95;default:throw Error(a(332))}}function Ho(t){switch(t){case 99:return Eo;case 98:return Oo;case 97:return Mo;case 96:return Po;case 95:return Do;default:throw Error(a(332))}}function Wo(t,e){return t=Ho(t),xo(t,e)}function Uo(t,e,n){return t=Ho(t),Co(t,e,n)}function Go(t){return null===No?(No=[t],Lo=Co(Eo,qo)):No.push(t),Ao}function Ko(){if(null!==Lo){var t=Lo;Lo=null,So(t)}qo()}function qo(){if(!Fo&&null!==No){Fo=!0;var t=0;try{var e=No;Wo(99,(function(){for(;t<e.length;t++){var n=e[t];do{n=n(!0)}while(null!==n)}})),No=null}catch(n){throw null!==No&&(No=No.slice(t+1)),Co(Eo,Ko),n}finally{Fo=!1}}}function $o(t,e,n){return 1073741821-(1+((1073741821-t+e/10)/(n/=10)|0))*n}function Yo(t,e){if(t&&t.defaultProps)for(var n in e=o({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Zo={current:null},Xo=null,Jo=null,Qo=null;function tr(){Qo=Jo=Xo=null}function er(t){var e=Zo.current;lo(Zo),t.type._context._currentValue=e}function nr(t,e){for(;null!==t;){var n=t.alternate;if(t.childExpirationTime<e)t.childExpirationTime=e,null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e);else{if(!(null!==n&&n.childExpirationTime<e))break;n.childExpirationTime=e}t=t.return}}function ir(t,e){Xo=t,Qo=Jo=null,null!==(t=t.dependencies)&&null!==t.firstContext&&(t.expirationTime>=e&&(Ma=!0),t.firstContext=null)}function or(t,e){if(Qo!==t&&!1!==e&&0!==e)if("number"===typeof e&&1073741823!==e||(Qo=t,e=1073741823),e={context:t,observedBits:e,next:null},null===Jo){if(null===Xo)throw Error(a(308));Jo=e,Xo.dependencies={expirationTime:0,firstContext:e,responders:null}}else Jo=Jo.next=e;return t._currentValue}var rr=!1;function ar(t){t.updateQueue={baseState:t.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function sr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,baseQueue:t.baseQueue,shared:t.shared,effects:t.effects})}function lr(t,e){return(t={expirationTime:t,suspenseConfig:e,tag:0,payload:null,callback:null,next:null}).next=t}function ur(t,e){if(null!==(t=t.updateQueue)){var n=(t=t.shared).pending;null===n?e.next=e:(e.next=n.next,n.next=e),t.pending=e}}function cr(t,e){var n=t.alternate;null!==n&&sr(n,t),null===(n=(t=t.updateQueue).baseQueue)?(t.baseQueue=e.next=e,e.next=e):(e.next=n.next,n.next=e)}function dr(t,e,n,i){var r=t.updateQueue;rr=!1;var a=r.baseQueue,s=r.shared.pending;if(null!==s){if(null!==a){var l=a.next;a.next=s.next,s.next=l}a=s,r.shared.pending=null,null!==(l=t.alternate)&&(null!==(l=l.updateQueue)&&(l.baseQueue=s))}if(null!==a){l=a.next;var u=r.baseState,c=0,d=null,h=null,f=null;if(null!==l)for(var p=l;;){if((s=p.expirationTime)<i){var m={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===f?(h=f=m,d=u):f=f.next=m,s>c&&(c=s)}else{null!==f&&(f=f.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),rl(s,p.suspenseConfig);t:{var g=t,_=p;switch(s=e,m=n,_.tag){case 1:if("function"===typeof(g=_.payload)){u=g.call(m,u,s);break t}u=g;break t;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null===(s="function"===typeof(g=_.payload)?g.call(m,u,s):g)||void 0===s)break t;u=o({},u,s);break t;case 2:rr=!0}}null!==p.callback&&(t.effectTag|=32,null===(s=r.effects)?r.effects=[p]:s.push(p))}if(null===(p=p.next)||p===l){if(null===(s=r.shared.pending))break;p=a.next=s.next,s.next=l,r.baseQueue=a=s,r.shared.pending=null}}null===f?d=u:f.next=h,r.baseState=d,r.baseQueue=f,al(c),t.expirationTime=c,t.memoizedState=u}}function hr(t,e,n){if(t=e.effects,e.effects=null,null!==t)for(e=0;e<t.length;e++){var i=t[e],o=i.callback;if(null!==o){if(i.callback=null,i=o,o=n,"function"!==typeof i)throw Error(a(191,i));i.call(o)}}}var fr=Z.ReactCurrentBatchConfig,pr=(new i.Component).refs;function mr(t,e,n,i){n=null===(n=n(i,e=t.memoizedState))||void 0===n?e:o({},e,n),t.memoizedState=n,0===t.expirationTime&&(t.updateQueue.baseState=n)}var gr={isMounted:function(t){return!!(t=t._reactInternalFiber)&&Qt(t)===t},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var i=Ks(),o=fr.suspense;(o=lr(i=qs(i,t,o),o)).payload=e,void 0!==n&&null!==n&&(o.callback=n),ur(t,o),$s(t,i)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var i=Ks(),o=fr.suspense;(o=lr(i=qs(i,t,o),o)).tag=1,o.payload=e,void 0!==n&&null!==n&&(o.callback=n),ur(t,o),$s(t,i)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Ks(),i=fr.suspense;(i=lr(n=qs(n,t,i),i)).tag=2,void 0!==e&&null!==e&&(i.callback=e),ur(t,i),$s(t,n)}};function _r(t,e,n,i,o,r,a){return"function"===typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(i,r,a):!e.prototype||!e.prototype.isPureReactComponent||(!Vi(n,i)||!Vi(o,r))}function vr(t,e,n){var i=!1,o=co,r=e.contextType;return"object"===typeof r&&null!==r?r=or(r):(o=go(e)?po:ho.current,r=(i=null!==(i=e.contextTypes)&&void 0!==i)?mo(t,o):co),e=new e(n,r),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=gr,t.stateNode=e,e._reactInternalFiber=t,i&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=r),e}function yr(t,e,n,i){t=e.state,"function"===typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,i),"function"===typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,i),e.state!==t&&gr.enqueueReplaceState(e,e.state,null)}function br(t,e,n,i){var o=t.stateNode;o.props=n,o.state=t.memoizedState,o.refs=pr,ar(t);var r=e.contextType;"object"===typeof r&&null!==r?o.context=or(r):(r=go(e)?po:ho.current,o.context=mo(t,r)),dr(t,n,o,i),o.state=t.memoizedState,"function"===typeof(r=e.getDerivedStateFromProps)&&(mr(t,e,r,n),o.state=t.memoizedState),"function"===typeof e.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(e=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),e!==o.state&&gr.enqueueReplaceState(o,o.state,null),dr(t,n,o,i),o.state=t.memoizedState),"function"===typeof o.componentDidMount&&(t.effectTag|=4)}var wr=Array.isArray;function xr(t,e,n){if(null!==(t=n.ref)&&"function"!==typeof t&&"object"!==typeof t){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var i=n.stateNode}if(!i)throw Error(a(147,t));var o=""+t;return null!==e&&null!==e.ref&&"function"===typeof e.ref&&e.ref._stringRef===o?e.ref:((e=function(t){var e=i.refs;e===pr&&(e=i.refs={}),null===t?delete e[o]:e[o]=t})._stringRef=o,e)}if("string"!==typeof t)throw Error(a(284));if(!n._owner)throw Error(a(290,t))}return t}function Cr(t,e){if("textarea"!==t.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,""))}function Sr(t){function e(e,n){if(t){var i=e.lastEffect;null!==i?(i.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,i){if(!t)return null;for(;null!==i;)e(n,i),i=i.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e){return(t=Il(t,e)).index=0,t.sibling=null,t}function r(e,n,i){return e.index=i,t?null!==(i=e.alternate)?(i=i.index)<n?(e.effectTag=2,n):i:(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,n,i){return null===e||6!==e.tag?((e=Ol(n,t.mode,i)).return=t,e):((e=o(e,n)).return=t,e)}function u(t,e,n,i){return null!==e&&e.elementType===n.type?((i=o(e,n.props)).ref=xr(t,e,n),i.return=t,i):((i=Tl(n.type,n.key,n.props,null,t.mode,i)).ref=xr(t,e,n),i.return=t,i)}function c(t,e,n,i){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Ml(n,t.mode,i)).return=t,e):((e=o(e,n.children||[])).return=t,e)}function d(t,e,n,i,r){return null===e||7!==e.tag?((e=El(n,t.mode,i,r)).return=t,e):((e=o(e,n)).return=t,e)}function h(t,e,n){if("string"===typeof e||"number"===typeof e)return(e=Ol(""+e,t.mode,n)).return=t,e;if("object"===typeof e&&null!==e){switch(e.$$typeof){case tt:return(n=Tl(e.type,e.key,e.props,null,t.mode,n)).ref=xr(t,null,e),n.return=t,n;case et:return(e=Ml(e,t.mode,n)).return=t,e}if(wr(e)||mt(e))return(e=El(e,t.mode,n,null)).return=t,e;Cr(t,e)}return null}function f(t,e,n,i){var o=null!==e?e.key:null;if("string"===typeof n||"number"===typeof n)return null!==o?null:l(t,e,""+n,i);if("object"===typeof n&&null!==n){switch(n.$$typeof){case tt:return n.key===o?n.type===nt?d(t,e,n.props.children,i,o):u(t,e,n,i):null;case et:return n.key===o?c(t,e,n,i):null}if(wr(n)||mt(n))return null!==o?null:d(t,e,n,i,null);Cr(t,n)}return null}function p(t,e,n,i,o){if("string"===typeof i||"number"===typeof i)return l(e,t=t.get(n)||null,""+i,o);if("object"===typeof i&&null!==i){switch(i.$$typeof){case tt:return t=t.get(null===i.key?n:i.key)||null,i.type===nt?d(e,t,i.props.children,o,i.key):u(e,t,i,o);case et:return c(e,t=t.get(null===i.key?n:i.key)||null,i,o)}if(wr(i)||mt(i))return d(e,t=t.get(n)||null,i,o,null);Cr(e,i)}return null}function m(o,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 _=f(o,d,s[m],l);if(null===_){null===d&&(d=g);break}t&&d&&null===_.alternate&&e(o,d),a=r(_,a,m),null===c?u=_:c.sibling=_,c=_,d=g}if(m===s.length)return n(o,d),u;if(null===d){for(;m<s.length;m++)null!==(d=h(o,s[m],l))&&(a=r(d,a,m),null===c?u=d:c.sibling=d,c=d);return u}for(d=i(o,d);m<s.length;m++)null!==(g=p(d,o,m,s[m],l))&&(t&&null!==g.alternate&&d.delete(null===g.key?m:g.key),a=r(g,a,m),null===c?u=g:c.sibling=g,c=g);return t&&d.forEach((function(t){return e(o,t)})),u}function g(o,s,l,u){var c=mt(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var d=c=null,m=s,g=s=0,_=null,v=l.next();null!==m&&!v.done;g++,v=l.next()){m.index>g?(_=m,m=null):_=m.sibling;var y=f(o,m,v.value,u);if(null===y){null===m&&(m=_);break}t&&m&&null===y.alternate&&e(o,m),s=r(y,s,g),null===d?c=y:d.sibling=y,d=y,m=_}if(v.done)return n(o,m),c;if(null===m){for(;!v.done;g++,v=l.next())null!==(v=h(o,v.value,u))&&(s=r(v,s,g),null===d?c=v:d.sibling=v,d=v);return c}for(m=i(o,m);!v.done;g++,v=l.next())null!==(v=p(m,o,g,v.value,u))&&(t&&null!==v.alternate&&m.delete(null===v.key?g:v.key),s=r(v,s,g),null===d?c=v:d.sibling=v,d=v);return t&&m.forEach((function(t){return e(o,t)})),c}return function(t,i,r,l){var u="object"===typeof r&&null!==r&&r.type===nt&&null===r.key;u&&(r=r.props.children);var c="object"===typeof r&&null!==r;if(c)switch(r.$$typeof){case tt:t:{for(c=r.key,u=i;null!==u;){if(u.key===c){switch(u.tag){case 7:if(r.type===nt){n(t,u.sibling),(i=o(u,r.props.children)).return=t,t=i;break t}break;default:if(u.elementType===r.type){n(t,u.sibling),(i=o(u,r.props)).ref=xr(t,u,r),i.return=t,t=i;break t}}n(t,u);break}e(t,u),u=u.sibling}r.type===nt?((i=El(r.props.children,t.mode,l,r.key)).return=t,t=i):((l=Tl(r.type,r.key,r.props,null,t.mode,l)).ref=xr(t,i,r),l.return=t,t=l)}return s(t);case et:t:{for(u=r.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===r.containerInfo&&i.stateNode.implementation===r.implementation){n(t,i.sibling),(i=o(i,r.children||[])).return=t,t=i;break t}n(t,i);break}e(t,i),i=i.sibling}(i=Ml(r,t.mode,l)).return=t,t=i}return s(t)}if("string"===typeof r||"number"===typeof r)return r=""+r,null!==i&&6===i.tag?(n(t,i.sibling),(i=o(i,r)).return=t,t=i):(n(t,i),(i=Ol(r,t.mode,l)).return=t,t=i),s(t);if(wr(r))return m(t,i,r,l);if(mt(r))return g(t,i,r,l);if(c&&Cr(t,r),"undefined"===typeof r&&!u)switch(t.tag){case 1:case 0:throw t=t.type,Error(a(152,t.displayName||t.name||"Component"))}return n(t,i)}}var kr=Sr(!0),Ir=Sr(!1),Tr={},Er={current:Tr},Or={current:Tr},Mr={current:Tr};function Pr(t){if(t===Tr)throw Error(a(174));return t}function Dr(t,e){switch(uo(Mr,e),uo(Or,t),uo(Er,Tr),t=e.nodeType){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Lt(null,"");break;default:e=Lt(e=(t=8===t?e.parentNode:e).namespaceURI||null,t=t.tagName)}lo(Er),uo(Er,e)}function Ar(){lo(Er),lo(Or),lo(Mr)}function Rr(t){Pr(Mr.current);var e=Pr(Er.current),n=Lt(e,t.type);e!==n&&(uo(Or,t),uo(Er,n))}function Br(t){Or.current===t&&(lo(Er),lo(Or))}var Nr={current:0};function Lr(t){for(var e=t;null!==e;){if(13===e.tag){var n=e.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return e}else if(19===e.tag&&void 0!==e.memoizedProps.revealOrder){if(0!==(64&e.effectTag))return e}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}function Fr(t,e){return{responder:t,props:e}}var Vr=Z.ReactCurrentDispatcher,zr=Z.ReactCurrentBatchConfig,jr=0,Hr=null,Wr=null,Ur=null,Gr=!1;function Kr(){throw Error(a(321))}function qr(t,e){if(null===e)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!Li(t[n],e[n]))return!1;return!0}function $r(t,e,n,i,o,r){if(jr=r,Hr=e,e.memoizedState=null,e.updateQueue=null,e.expirationTime=0,Vr.current=null===t||null===t.memoizedState?_a:va,t=n(i,o),e.expirationTime===jr){r=0;do{if(e.expirationTime=0,!(25>r))throw Error(a(301));r+=1,Ur=Wr=null,e.updateQueue=null,Vr.current=ya,t=n(i,o)}while(e.expirationTime===jr)}if(Vr.current=ga,e=null!==Wr&&null!==Wr.next,jr=0,Ur=Wr=Hr=null,Gr=!1,e)throw Error(a(300));return t}function Yr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ur?Hr.memoizedState=Ur=t:Ur=Ur.next=t,Ur}function Zr(){if(null===Wr){var t=Hr.alternate;t=null!==t?t.memoizedState:null}else t=Wr.next;var e=null===Ur?Hr.memoizedState:Ur.next;if(null!==e)Ur=e,Wr=t;else{if(null===t)throw Error(a(310));t={memoizedState:(Wr=t).memoizedState,baseState:Wr.baseState,baseQueue:Wr.baseQueue,queue:Wr.queue,next:null},null===Ur?Hr.memoizedState=Ur=t:Ur=Ur.next=t}return Ur}function Xr(t,e){return"function"===typeof e?e(t):e}function Jr(t){var e=Zr(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var i=Wr,o=i.baseQueue,r=n.pending;if(null!==r){if(null!==o){var s=o.next;o.next=r.next,r.next=s}i.baseQueue=o=r,n.pending=null}if(null!==o){o=o.next,i=i.baseState;var l=s=r=null,u=o;do{var c=u.expirationTime;if(c<jr){var d={expirationTime:u.expirationTime,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null};null===l?(s=l=d,r=i):l=l.next=d,c>Hr.expirationTime&&(Hr.expirationTime=c,al(c))}else null!==l&&(l=l.next={expirationTime:1073741823,suspenseConfig:u.suspenseConfig,action:u.action,eagerReducer:u.eagerReducer,eagerState:u.eagerState,next:null}),rl(c,u.suspenseConfig),i=u.eagerReducer===t?u.eagerState:t(i,u.action);u=u.next}while(null!==u&&u!==o);null===l?r=i:l.next=s,Li(i,e.memoizedState)||(Ma=!0),e.memoizedState=i,e.baseState=r,e.baseQueue=l,n.lastRenderedState=i}return[e.memoizedState,n.dispatch]}function Qr(t){var e=Zr(),n=e.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=t;var i=n.dispatch,o=n.pending,r=e.memoizedState;if(null!==o){n.pending=null;var s=o=o.next;do{r=t(r,s.action),s=s.next}while(s!==o);Li(r,e.memoizedState)||(Ma=!0),e.memoizedState=r,null===e.baseQueue&&(e.baseState=r),n.lastRenderedState=r}return[r,i]}function ta(t){var e=Yr();return"function"===typeof t&&(t=t()),e.memoizedState=e.baseState=t,t=(t=e.queue={pending:null,dispatch:null,lastRenderedReducer:Xr,lastRenderedState:t}).dispatch=ma.bind(null,Hr,t),[e.memoizedState,t]}function ea(t,e,n,i){return t={tag:t,create:e,destroy:n,deps:i,next:null},null===(e=Hr.updateQueue)?(e={lastEffect:null},Hr.updateQueue=e,e.lastEffect=t.next=t):null===(n=e.lastEffect)?e.lastEffect=t.next=t:(i=n.next,n.next=t,t.next=i,e.lastEffect=t),t}function na(){return Zr().memoizedState}function ia(t,e,n,i){var o=Yr();Hr.effectTag|=t,o.memoizedState=ea(1|e,n,void 0,void 0===i?null:i)}function oa(t,e,n,i){var o=Zr();i=void 0===i?null:i;var r=void 0;if(null!==Wr){var a=Wr.memoizedState;if(r=a.destroy,null!==i&&qr(i,a.deps))return void ea(e,n,r,i)}Hr.effectTag|=t,o.memoizedState=ea(1|e,n,r,i)}function ra(t,e){return ia(516,4,t,e)}function aa(t,e){return oa(516,4,t,e)}function sa(t,e){return oa(4,2,t,e)}function la(t,e){return"function"===typeof e?(t=t(),e(t),function(){e(null)}):null!==e&&void 0!==e?(t=t(),e.current=t,function(){e.current=null}):void 0}function ua(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,oa(4,2,la.bind(null,e,t),n)}function ca(){}function da(t,e){return Yr().memoizedState=[t,void 0===e?null:e],t}function ha(t,e){var n=Zr();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&qr(e,i[1])?i[0]:(n.memoizedState=[t,e],t)}function fa(t,e){var n=Zr();e=void 0===e?null:e;var i=n.memoizedState;return null!==i&&null!==e&&qr(e,i[1])?i[0]:(t=t(),n.memoizedState=[t,e],t)}function pa(t,e,n){var i=jo();Wo(98>i?98:i,(function(){t(!0)})),Wo(97<i?97:i,(function(){var i=zr.suspense;zr.suspense=void 0===e?null:e;try{t(!1),n()}finally{zr.suspense=i}}))}function ma(t,e,n){var i=Ks(),o=fr.suspense;o={expirationTime:i=qs(i,t,o),suspenseConfig:o,action:n,eagerReducer:null,eagerState:null,next:null};var r=e.pending;if(null===r?o.next=o:(o.next=r.next,r.next=o),e.pending=o,r=t.alternate,t===Hr||null!==r&&r===Hr)Gr=!0,o.expirationTime=jr,Hr.expirationTime=jr;else{if(0===t.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=e.lastRenderedReducer))try{var a=e.lastRenderedState,s=r(a,n);if(o.eagerReducer=r,o.eagerState=s,Li(s,a))return}catch(l){}$s(t,i)}}var ga={readContext:or,useCallback:Kr,useContext:Kr,useEffect:Kr,useImperativeHandle:Kr,useLayoutEffect:Kr,useMemo:Kr,useReducer:Kr,useRef:Kr,useState:Kr,useDebugValue:Kr,useResponder:Kr,useDeferredValue:Kr,useTransition:Kr},_a={readContext:or,useCallback:da,useContext:or,useEffect:ra,useImperativeHandle:function(t,e,n){return n=null!==n&&void 0!==n?n.concat([t]):null,ia(4,2,la.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ia(4,2,t,e)},useMemo:function(t,e){var n=Yr();return e=void 0===e?null:e,t=t(),n.memoizedState=[t,e],t},useReducer:function(t,e,n){var i=Yr();return e=void 0!==n?n(e):e,i.memoizedState=i.baseState=e,t=(t=i.queue={pending:null,dispatch:null,lastRenderedReducer:t,lastRenderedState:e}).dispatch=ma.bind(null,Hr,t),[i.memoizedState,t]},useRef:function(t){return t={current:t},Yr().memoizedState=t},useState:ta,useDebugValue:ca,useResponder:Fr,useDeferredValue:function(t,e){var n=ta(t),i=n[0],o=n[1];return ra((function(){var n=zr.suspense;zr.suspense=void 0===e?null:e;try{o(t)}finally{zr.suspense=n}}),[t,e]),i},useTransition:function(t){var e=ta(!1),n=e[0];return e=e[1],[da(pa.bind(null,e,t),[e,t]),n]}},va={readContext:or,useCallback:ha,useContext:or,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:fa,useReducer:Jr,useRef:na,useState:function(){return Jr(Xr)},useDebugValue:ca,useResponder:Fr,useDeferredValue:function(t,e){var n=Jr(Xr),i=n[0],o=n[1];return aa((function(){var n=zr.suspense;zr.suspense=void 0===e?null:e;try{o(t)}finally{zr.suspense=n}}),[t,e]),i},useTransition:function(t){var e=Jr(Xr),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},ya={readContext:or,useCallback:ha,useContext:or,useEffect:aa,useImperativeHandle:ua,useLayoutEffect:sa,useMemo:fa,useReducer:Qr,useRef:na,useState:function(){return Qr(Xr)},useDebugValue:ca,useResponder:Fr,useDeferredValue:function(t,e){var n=Qr(Xr),i=n[0],o=n[1];return aa((function(){var n=zr.suspense;zr.suspense=void 0===e?null:e;try{o(t)}finally{zr.suspense=n}}),[t,e]),i},useTransition:function(t){var e=Qr(Xr),n=e[0];return e=e[1],[ha(pa.bind(null,e,t),[e,t]),n]}},ba=null,wa=null,xa=!1;function Ca(t,e){var n=Sl(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Sa(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);case 13:default:return!1}}function ka(t){if(xa){var e=wa;if(e){var n=e;if(!Sa(t,e)){if(!(e=wn(n.nextSibling))||!Sa(t,e))return t.effectTag=-1025&t.effectTag|2,xa=!1,void(ba=t);Ca(ba,n)}ba=t,wa=wn(e.firstChild)}else t.effectTag=-1025&t.effectTag|2,xa=!1,ba=t}}function Ia(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag&&13!==t.tag;)t=t.return;ba=t}function Ta(t){if(t!==ba)return!1;if(!xa)return Ia(t),xa=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!vn(e,t.memoizedProps))for(e=wa;e;)Ca(t,e),e=wn(e.nextSibling);if(Ia(t),13===t.tag){if(!(t=null!==(t=t.memoizedState)?t.dehydrated:null))throw Error(a(317));t:{for(t=t.nextSibling,e=0;t;){if(8===t.nodeType){var n=t.data;if("/$"===n){if(0===e){wa=wn(t.nextSibling);break t}e--}else"$"!==n&&"$!"!==n&&"$?"!==n||e++}t=t.nextSibling}wa=null}}else wa=ba?wn(t.stateNode.nextSibling):null;return!0}function Ea(){wa=ba=null,xa=!1}var Oa=Z.ReactCurrentOwner,Ma=!1;function Pa(t,e,n,i){e.child=null===t?Ir(e,null,n,i):kr(e,t.child,n,i)}function Da(t,e,n,i,o){n=n.render;var r=e.ref;return ir(e,o),i=$r(t,e,n,i,r,o),null===t||Ma?(e.effectTag|=1,Pa(t,e,i,o),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=o&&(t.expirationTime=0),$a(t,e,o))}function Aa(t,e,n,i,o,r){if(null===t){var a=n.type;return"function"!==typeof a||kl(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((t=Tl(n.type,null,i,null,e.mode,r)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,Ra(t,e,a,i,o,r))}return a=t.child,o<r&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:Vi)(o,i)&&t.ref===e.ref)?$a(t,e,r):(e.effectTag|=1,(t=Il(a,i)).ref=e.ref,t.return=e,e.child=t)}function Ra(t,e,n,i,o,r){return null!==t&&Vi(t.memoizedProps,i)&&t.ref===e.ref&&(Ma=!1,o<r)?(e.expirationTime=t.expirationTime,$a(t,e,r)):Na(t,e,n,i,r)}function Ba(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function Na(t,e,n,i,o){var r=go(n)?po:ho.current;return r=mo(e,r),ir(e,o),n=$r(t,e,n,i,r,o),null===t||Ma?(e.effectTag|=1,Pa(t,e,n,o),e.child):(e.updateQueue=t.updateQueue,e.effectTag&=-517,t.expirationTime<=o&&(t.expirationTime=0),$a(t,e,o))}function La(t,e,n,i,o){if(go(n)){var r=!0;bo(e)}else r=!1;if(ir(e,o),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),vr(e,n,i),br(e,n,i,o),i=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,u=n.contextType;"object"===typeof u&&null!==u?u=or(u):u=mo(e,u=go(n)?po:ho.current);var c=n.getDerivedStateFromProps,d="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;d||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==i||l!==u)&&yr(e,a,i,u),rr=!1;var h=e.memoizedState;a.state=h,dr(e,i,a,o),l=e.memoizedState,s!==i||h!==l||fo.current||rr?("function"===typeof c&&(mr(e,n,c,i),l=e.memoizedState),(s=rr||_r(e,n,s,i,h,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&&(e.effectTag|=4)):("function"===typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=i,e.memoizedState=l),a.props=i,a.state=l,a.context=u,i=s):("function"===typeof a.componentDidMount&&(e.effectTag|=4),i=!1)}else a=e.stateNode,sr(t,e),s=e.memoizedProps,a.props=e.type===e.elementType?s:Yo(e.type,s),l=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=or(u):u=mo(e,u=go(n)?po:ho.current),(d="function"===typeof(c=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==i||l!==u)&&yr(e,a,i,u),rr=!1,l=e.memoizedState,a.state=l,dr(e,i,a,o),h=e.memoizedState,s!==i||l!==h||fo.current||rr?("function"===typeof c&&(mr(e,n,c,i),h=e.memoizedState),(c=rr||_r(e,n,s,i,l,h,u))?(d||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(i,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(i,h,u)),"function"===typeof a.componentDidUpdate&&(e.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),e.memoizedProps=i,e.memoizedState=h),a.props=i,a.state=h,a.context=u,i=c):("function"!==typeof a.componentDidUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&l===t.memoizedState||(e.effectTag|=256),i=!1);return Fa(t,e,n,i,r,o)}function Fa(t,e,n,i,o,r){Ba(t,e);var a=0!==(64&e.effectTag);if(!i&&!a)return o&&wo(e,n,!1),$a(t,e,r);i=e.stateNode,Oa.current=e;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:i.render();return e.effectTag|=1,null!==t&&a?(e.child=kr(e,t.child,null,r),e.child=kr(e,null,s,r)):Pa(t,e,s,r),e.memoizedState=i.state,o&&wo(e,n,!0),e.child}function Va(t){var e=t.stateNode;e.pendingContext?vo(0,e.pendingContext,e.pendingContext!==e.context):e.context&&vo(0,e.context,!1),Dr(t,e.containerInfo)}var za,ja,Ha,Wa={dehydrated:null,retryTime:0};function Ua(t,e,n){var i,o=e.mode,r=e.pendingProps,a=Nr.current,s=!1;if((i=0!==(64&e.effectTag))||(i=0!==(2&a)&&(null===t||null!==t.memoizedState)),i?(s=!0,e.effectTag&=-65):null!==t&&null===t.memoizedState||void 0===r.fallback||!0===r.unstable_avoidThisFallback||(a|=1),uo(Nr,1&a),null===t){if(void 0!==r.fallback&&ka(e),s){if(s=r.fallback,(r=El(null,o,0,null)).return=e,0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,r.child=t;null!==t;)t.return=r,t=t.sibling;return(n=El(s,o,n,null)).return=e,r.sibling=n,e.memoizedState=Wa,e.child=r,n}return o=r.children,e.memoizedState=null,e.child=Ir(e,null,o,n)}if(null!==t.memoizedState){if(o=(t=t.child).sibling,s){if(r=r.fallback,(n=Il(t,t.pendingProps)).return=e,0===(2&e.mode)&&(s=null!==e.memoizedState?e.child.child:e.child)!==t.child)for(n.child=s;null!==s;)s.return=n,s=s.sibling;return(o=Il(o,r)).return=e,n.sibling=o,n.childExpirationTime=0,e.memoizedState=Wa,e.child=n,o}return n=kr(e,t.child,r.children,n),e.memoizedState=null,e.child=n}if(t=t.child,s){if(s=r.fallback,(r=El(null,o,0,null)).return=e,r.child=t,null!==t&&(t.return=r),0===(2&e.mode))for(t=null!==e.memoizedState?e.child.child:e.child,r.child=t;null!==t;)t.return=r,t=t.sibling;return(n=El(s,o,n,null)).return=e,r.sibling=n,n.effectTag|=2,r.childExpirationTime=0,e.memoizedState=Wa,e.child=r,n}return e.memoizedState=null,e.child=kr(e,t,r.children,n)}function Ga(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e),nr(t.return,e)}function Ka(t,e,n,i,o,r){var a=t.memoizedState;null===a?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:n,tailExpiration:0,tailMode:o,lastEffect:r}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=n,a.tailExpiration=0,a.tailMode=o,a.lastEffect=r)}function qa(t,e,n){var i=e.pendingProps,o=i.revealOrder,r=i.tail;if(Pa(t,e,i.children,n),0!==(2&(i=Nr.current)))i=1&i|2,e.effectTag|=64;else{if(null!==t&&0!==(64&t.effectTag))t:for(t=e.child;null!==t;){if(13===t.tag)null!==t.memoizedState&&Ga(t,n);else if(19===t.tag)Ga(t,n);else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;null===t.sibling;){if(null===t.return||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}i&=1}if(uo(Nr,i),0===(2&e.mode))e.memoizedState=null;else switch(o){case"forwards":for(n=e.child,o=null;null!==n;)null!==(t=n.alternate)&&null===Lr(t)&&(o=n),n=n.sibling;null===(n=o)?(o=e.child,e.child=null):(o=n.sibling,n.sibling=null),Ka(e,!1,o,n,r,e.lastEffect);break;case"backwards":for(n=null,o=e.child,e.child=null;null!==o;){if(null!==(t=o.alternate)&&null===Lr(t)){e.child=o;break}t=o.sibling,o.sibling=n,n=o,o=t}Ka(e,!0,n,null,r,e.lastEffect);break;case"together":Ka(e,!1,null,null,void 0,e.lastEffect);break;default:e.memoizedState=null}return e.child}function $a(t,e,n){null!==t&&(e.dependencies=t.dependencies);var i=e.expirationTime;if(0!==i&&al(i),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child)throw Error(a(153));if(null!==e.child){for(n=Il(t=e.child,t.pendingProps),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Il(t,t.pendingProps)).return=e;n.sibling=null}return e.child}function Ya(t,e){switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;null!==e;)null!==e.alternate&&(n=e),e=e.sibling;null===n?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var i=null;null!==n;)null!==n.alternate&&(i=n),n=n.sibling;null===i?e||null===t.tail?t.tail=null:t.tail.sibling=null:i.sibling=null}}function Za(t,e,n){var i=e.pendingProps;switch(e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return go(e.type)&&_o(),null;case 3:return Ar(),lo(fo),lo(ho),(n=e.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||!Ta(e)||(e.effectTag|=4),null;case 5:Br(e),n=Pr(Mr.current);var r=e.type;if(null!==t&&null!=e.stateNode)ja(t,e,r,i,n),t.ref!==e.ref&&(e.effectTag|=128);else{if(!i){if(null===e.stateNode)throw Error(a(166));return null}if(t=Pr(Er.current),Ta(e)){i=e.stateNode,r=e.type;var s=e.memoizedProps;switch(i[Sn]=e,i[kn]=s,r){case"iframe":case"object":case"embed":qe("load",i);break;case"video":case"audio":for(t=0;t<Zt.length;t++)qe(Zt[t],i);break;case"source":qe("error",i);break;case"img":case"image":case"link":qe("error",i),qe("load",i);break;case"form":qe("reset",i),qe("submit",i);break;case"details":qe("toggle",i);break;case"input":Ct(i,s),qe("invalid",i),ln(n,"onChange");break;case"select":i._wrapperState={wasMultiple:!!s.multiple},qe("invalid",i),ln(n,"onChange");break;case"textarea":Pt(i,s),qe("invalid",i),ln(n,"onChange")}for(var l in rn(r,s),t=null,s)if(s.hasOwnProperty(l)){var u=s[l];"children"===l?"string"===typeof u?i.textContent!==u&&(t=["children",u]):"number"===typeof u&&i.textContent!==""+u&&(t=["children",""+u]):S.hasOwnProperty(l)&&null!=u&&ln(n,l)}switch(r){case"input":bt(i),It(i,s,!0);break;case"textarea":bt(i),At(i);break;case"select":case"option":break;default:"function"===typeof s.onClick&&(i.onclick=un)}n=t,e.updateQueue=n,null!==n&&(e.effectTag|=4)}else{switch(l=9===n.nodeType?n:n.ownerDocument,t===sn&&(t=Nt(r)),t===sn?"script"===r?((t=l.createElement("div")).innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):"string"===typeof i.is?t=l.createElement(r,{is:i.is}):(t=l.createElement(r),"select"===r&&(l=t,i.multiple?l.multiple=!0:i.size&&(l.size=i.size))):t=l.createElementNS(t,r),t[Sn]=e,t[kn]=i,za(t,e),e.stateNode=t,l=an(r,i),r){case"iframe":case"object":case"embed":qe("load",t),u=i;break;case"video":case"audio":for(u=0;u<Zt.length;u++)qe(Zt[u],t);u=i;break;case"source":qe("error",t),u=i;break;case"img":case"image":case"link":qe("error",t),qe("load",t),u=i;break;case"form":qe("reset",t),qe("submit",t),u=i;break;case"details":qe("toggle",t),u=i;break;case"input":Ct(t,i),u=xt(t,i),qe("invalid",t),ln(n,"onChange");break;case"option":u=Et(t,i);break;case"select":t._wrapperState={wasMultiple:!!i.multiple},u=o({},i,{value:void 0}),qe("invalid",t),ln(n,"onChange");break;case"textarea":Pt(t,i),u=Mt(t,i),qe("invalid",t),ln(n,"onChange");break;default:u=i}rn(r,u);var c=u;for(s in c)if(c.hasOwnProperty(s)){var d=c[s];"style"===s?nn(t,d):"dangerouslySetInnerHTML"===s?null!=(d=d?d.__html:void 0)&&Vt(t,d):"children"===s?"string"===typeof d?("textarea"!==r||""!==d)&&zt(t,d):"number"===typeof d&&zt(t,""+d):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?null!=d&&ln(n,s):null!=d&&X(t,s,d,l))}switch(r){case"input":bt(t),It(t,i,!1);break;case"textarea":bt(t),At(t);break;case"option":null!=i.value&&t.setAttribute("value",""+vt(i.value));break;case"select":t.multiple=!!i.multiple,null!=(n=i.value)?Ot(t,!!i.multiple,n,!1):null!=i.defaultValue&&Ot(t,!!i.multiple,i.defaultValue,!0);break;default:"function"===typeof u.onClick&&(t.onclick=un)}_n(r,i)&&(e.effectTag|=4)}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Ha(0,e,t.memoizedProps,i);else{if("string"!==typeof i&&null===e.stateNode)throw Error(a(166));n=Pr(Mr.current),Pr(Er.current),Ta(e)?(n=e.stateNode,i=e.memoizedProps,n[Sn]=e,n.nodeValue!==i&&(e.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(i))[Sn]=e,e.stateNode=n)}return null;case 13:return lo(Nr),i=e.memoizedState,0!==(64&e.effectTag)?(e.expirationTime=n,e):(n=null!==i,i=!1,null===t?void 0!==e.memoizedProps.fallback&&Ta(e):(i=null!==(r=t.memoizedState),n||null===r||null!==(r=t.child.sibling)&&(null!==(s=e.firstEffect)?(e.firstEffect=r,r.nextEffect=s):(e.firstEffect=e.lastEffect=r,r.nextEffect=null),r.effectTag=8)),n&&!i&&0!==(2&e.mode)&&(null===t&&!0!==e.memoizedProps.unstable_avoidThisFallback||0!==(1&Nr.current)?Ts===bs&&(Ts=ws):(Ts!==bs&&Ts!==ws||(Ts=xs),0!==Ds&&null!==Ss&&(Al(Ss,Is),Rl(Ss,Ds)))),(n||i)&&(e.effectTag|=4),null);case 4:return Ar(),null;case 10:return er(e),null;case 17:return go(e.type)&&_o(),null;case 19:if(lo(Nr),null===(i=e.memoizedState))return null;if(r=0!==(64&e.effectTag),null===(s=i.rendering)){if(r)Ya(i,!1);else if(Ts!==bs||null!==t&&0!==(64&t.effectTag))for(s=e.child;null!==s;){if(null!==(t=Lr(s))){for(e.effectTag|=64,Ya(i,!1),null!==(r=t.updateQueue)&&(e.updateQueue=r,e.effectTag|=4),null===i.lastEffect&&(e.firstEffect=null),e.lastEffect=i.lastEffect,i=e.child;null!==i;)s=n,(r=i).effectTag&=2,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null,null===(t=r.alternate)?(r.childExpirationTime=0,r.expirationTime=s,r.child=null,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null):(r.childExpirationTime=t.childExpirationTime,r.expirationTime=t.expirationTime,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,s=t.dependencies,r.dependencies=null===s?null:{expirationTime:s.expirationTime,firstContext:s.firstContext,responders:s.responders}),i=i.sibling;return uo(Nr,1&Nr.current|2),e.child}s=s.sibling}}else{if(!r)if(null!==(t=Lr(s))){if(e.effectTag|=64,r=!0,null!==(n=t.updateQueue)&&(e.updateQueue=n,e.effectTag|=4),Ya(i,!0),null===i.tail&&"hidden"===i.tailMode&&!s.alternate)return null!==(e=e.lastEffect=i.lastEffect)&&(e.nextEffect=null),null}else 2*zo()-i.renderingStartTime>i.tailExpiration&&1<n&&(e.effectTag|=64,r=!0,Ya(i,!1),e.expirationTime=e.childExpirationTime=n-1);i.isBackwards?(s.sibling=e.child,e.child=s):(null!==(n=i.last)?n.sibling=s:e.child=s,i.last=s)}return null!==i.tail?(0===i.tailExpiration&&(i.tailExpiration=zo()+500),n=i.tail,i.rendering=n,i.tail=n.sibling,i.lastEffect=e.lastEffect,i.renderingStartTime=zo(),n.sibling=null,e=Nr.current,uo(Nr,r?1&e|2:1&e),n):null}throw Error(a(156,e.tag))}function Xa(t){switch(t.tag){case 1:go(t.type)&&_o();var e=t.effectTag;return 4096&e?(t.effectTag=-4097&e|64,t):null;case 3:if(Ar(),lo(fo),lo(ho),0!==(64&(e=t.effectTag)))throw Error(a(285));return t.effectTag=-4097&e|64,t;case 5:return Br(t),null;case 13:return lo(Nr),4096&(e=t.effectTag)?(t.effectTag=-4097&e|64,t):null;case 19:return lo(Nr),null;case 4:return Ar(),null;case 10:return er(t),null;default:return null}}function Ja(t,e){return{value:t,source:e,stack:_t(e)}}za=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&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}},ja=function(t,e,n,i,r){var a=t.memoizedProps;if(a!==i){var s,l,u=e.stateNode;switch(Pr(Er.current),t=null,n){case"input":a=xt(u,a),i=xt(u,i),t=[];break;case"option":a=Et(u,a),i=Et(u,i),t=[];break;case"select":a=o({},a,{value:void 0}),i=o({},i,{value:void 0}),t=[];break;case"textarea":a=Mt(u,a),i=Mt(u,i),t=[];break;default:"function"!==typeof a.onClick&&"function"===typeof i.onClick&&(u.onclick=un)}for(s in rn(n,i),n=null,a)if(!i.hasOwnProperty(s)&&a.hasOwnProperty(s)&&null!=a[s])if("style"===s)for(l in u=a[s])u.hasOwnProperty(l)&&(n||(n={}),n[l]="");else"dangerouslySetInnerHTML"!==s&&"children"!==s&&"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&"autoFocus"!==s&&(S.hasOwnProperty(s)?t||(t=[]):(t=t||[]).push(s,null));for(s in i){var c=i[s];if(u=null!=a?a[s]:void 0,i.hasOwnProperty(s)&&c!==u&&(null!=c||null!=u))if("style"===s)if(u){for(l in u)!u.hasOwnProperty(l)||c&&c.hasOwnProperty(l)||(n||(n={}),n[l]="");for(l in c)c.hasOwnProperty(l)&&u[l]!==c[l]&&(n||(n={}),n[l]=c[l])}else n||(t||(t=[]),t.push(s,n)),n=c;else"dangerouslySetInnerHTML"===s?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(t=t||[]).push(s,c)):"children"===s?u===c||"string"!==typeof c&&"number"!==typeof c||(t=t||[]).push(s,""+c):"suppressContentEditableWarning"!==s&&"suppressHydrationWarning"!==s&&(S.hasOwnProperty(s)?(null!=c&&ln(r,s),t||u===c||(t=[])):(t=t||[]).push(s,c))}n&&(t=t||[]).push("style",n),r=t,(e.updateQueue=r)&&(e.effectTag|=4)}},Ha=function(t,e,n,i){n!==i&&(e.effectTag|=4)};var Qa="function"===typeof WeakSet?WeakSet:Set;function ts(t,e){var n=e.source,i=e.stack;null===i&&null!==n&&(i=_t(n)),null!==n&>(n.type),e=e.value,null!==t&&1===t.tag&>(t.type);try{console.error(e)}catch(o){setTimeout((function(){throw o}))}}function es(t){var e=t.ref;if(null!==e)if("function"===typeof e)try{e(null)}catch(n){vl(t,n)}else e.current=null}function ns(t,e){switch(e.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&e.effectTag&&null!==t){var n=t.memoizedProps,i=t.memoizedState;e=(t=e.stateNode).getSnapshotBeforeUpdate(e.elementType===e.type?n:Yo(e.type,n),i),t.__reactInternalSnapshotBeforeUpdate=e}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function is(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.destroy;n.destroy=void 0,void 0!==i&&i()}n=n.next}while(n!==e)}}function os(t,e){if(null!==(e=null!==(e=e.updateQueue)?e.lastEffect:null)){var n=e=e.next;do{if((n.tag&t)===t){var i=n.create;n.destroy=i()}n=n.next}while(n!==e)}}function rs(t,e,n){switch(n.tag){case 0:case 11:case 15:case 22:return void os(3,n);case 1:if(t=n.stateNode,4&n.effectTag)if(null===e)t.componentDidMount();else{var i=n.elementType===n.type?e.memoizedProps:Yo(n.type,e.memoizedProps);t.componentDidUpdate(i,e.memoizedState,t.__reactInternalSnapshotBeforeUpdate)}return void(null!==(e=n.updateQueue)&&hr(n,e,t));case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}hr(n,e,t)}return;case 5:return t=n.stateNode,void(null===e&&4&n.effectTag&&_n(n.type,n.memoizedProps)&&t.focus());case 6:case 4:case 12:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Ne(n)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function as(t,e,n){switch("function"===typeof xl&&xl(e),e.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(t=e.updateQueue)&&null!==(t=t.lastEffect)){var i=t.next;Wo(97<n?97:n,(function(){var t=i;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(r){vl(o,r)}}t=t.next}while(t!==i)}))}break;case 1:es(e),"function"===typeof(n=e.stateNode).componentWillUnmount&&function(t,e){try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(n){vl(t,n)}}(e,n);break;case 5:es(e);break;case 4:cs(t,e,n)}}function ss(t){var e=t.alternate;t.return=null,t.child=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.alternate=null,t.firstEffect=null,t.lastEffect=null,t.pendingProps=null,t.memoizedProps=null,t.stateNode=null,null!==e&&ss(e)}function ls(t){return 5===t.tag||3===t.tag||4===t.tag}function us(t){t:{for(var e=t.return;null!==e;){if(ls(e)){var n=e;break t}e=e.return}throw Error(a(160))}switch(e=n.stateNode,n.tag){case 5:var i=!1;break;case 3:case 4:e=e.containerInfo,i=!0;break;default:throw Error(a(161))}16&n.effectTag&&(zt(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ls(n.return)){n=null;break t}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 e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}i?function t(e,n,i){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,n?8===i.nodeType?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(8===i.nodeType?(n=i.parentNode).insertBefore(e,i):(n=i).appendChild(e),null!==(i=i._reactRootContainer)&&void 0!==i||null!==n.onclick||(n.onclick=un));else if(4!==o&&null!==(e=e.child))for(t(e,n,i),e=e.sibling;null!==e;)t(e,n,i),e=e.sibling}(t,n,e):function t(e,n,i){var o=e.tag,r=5===o||6===o;if(r)e=r?e.stateNode:e.stateNode.instance,n?i.insertBefore(e,n):i.appendChild(e);else if(4!==o&&null!==(e=e.child))for(t(e,n,i),e=e.sibling;null!==e;)t(e,n,i),e=e.sibling}(t,n,e)}function cs(t,e,n){for(var i,o,r=e,s=!1;;){if(!s){s=r.return;t:for(;;){if(null===s)throw Error(a(160));switch(i=s.stateNode,s.tag){case 5:o=!1;break t;case 3:case 4:i=i.containerInfo,o=!0;break t}s=s.return}s=!0}if(5===r.tag||6===r.tag){t:for(var l=t,u=r,c=n,d=u;;)if(as(l,d,c),null!==d.child&&4!==d.tag)d.child.return=d,d=d.child;else{if(d===u)break t;for(;null===d.sibling;){if(null===d.return||d.return===u)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}o?(l=i,u=r.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):i.removeChild(r.stateNode)}else if(4===r.tag){if(null!==r.child){i=r.stateNode.containerInfo,o=!0,r.child.return=r,r=r.child;continue}}else if(as(t,r,n),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;4===(r=r.return).tag&&(s=!1)}r.sibling.return=r.return,r=r.sibling}}function ds(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 22:return void is(3,e);case 1:return;case 5:var n=e.stateNode;if(null!=n){var i=e.memoizedProps,o=null!==t?t.memoizedProps:i;t=e.type;var r=e.updateQueue;if(e.updateQueue=null,null!==r){for(n[kn]=i,"input"===t&&"radio"===i.type&&null!=i.name&&St(n,i),an(t,o),e=an(t,i),o=0;o<r.length;o+=2){var s=r[o],l=r[o+1];"style"===s?nn(n,l):"dangerouslySetInnerHTML"===s?Vt(n,l):"children"===s?zt(n,l):X(n,s,l,e)}switch(t){case"input":kt(n,i);break;case"textarea":Dt(n,i);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!i.multiple,null!=(t=i.value)?Ot(n,!!i.multiple,t,!1):e!==!!i.multiple&&(null!=i.defaultValue?Ot(n,!!i.multiple,i.defaultValue,!0):Ot(n,!!i.multiple,i.multiple?[]:"",!1))}}}return;case 6:if(null===e.stateNode)throw Error(a(162));return void(e.stateNode.nodeValue=e.memoizedProps);case 3:return void((e=e.stateNode).hydrate&&(e.hydrate=!1,Ne(e.containerInfo)));case 12:return;case 13:if(n=e,null===e.memoizedState?i=!1:(i=!0,n=e.child,Rs=zo()),null!==n)t:for(t=n;;){if(5===t.tag)r=t.stateNode,i?"function"===typeof(r=r.style).setProperty?r.setProperty("display","none","important"):r.display="none":(r=t.stateNode,o=void 0!==(o=t.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,r.style.display=en("display",o));else if(6===t.tag)t.stateNode.nodeValue=i?"":t.memoizedProps;else{if(13===t.tag&&null!==t.memoizedState&&null===t.memoizedState.dehydrated){(r=t.child.sibling).return=t,t=r;continue}if(null!==t.child){t.child.return=t,t=t.child;continue}}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}return void hs(e);case 19:return void hs(e);case 17:return}throw Error(a(163))}function hs(t){var e=t.updateQueue;if(null!==e){t.updateQueue=null;var n=t.stateNode;null===n&&(n=t.stateNode=new Qa),e.forEach((function(e){var i=bl.bind(null,t,e);n.has(e)||(n.add(e),e.then(i,i))}))}}var fs="function"===typeof WeakMap?WeakMap:Map;function ps(t,e,n){(n=lr(n,null)).tag=3,n.payload={element:null};var i=e.value;return n.callback=function(){Ns||(Ns=!0,Ls=i),ts(t,e)},n}function ms(t,e,n){(n=lr(n,null)).tag=3;var i=t.type.getDerivedStateFromError;if("function"===typeof i){var o=e.value;n.payload=function(){return ts(t,e),i(o)}}var r=t.stateNode;return null!==r&&"function"===typeof r.componentDidCatch&&(n.callback=function(){"function"!==typeof i&&(null===Fs?Fs=new Set([this]):Fs.add(this),ts(t,e));var n=e.stack;this.componentDidCatch(e.value,{componentStack:null!==n?n:""})}),n}var gs,_s=Math.ceil,vs=Z.ReactCurrentDispatcher,ys=Z.ReactCurrentOwner,bs=0,ws=3,xs=4,Cs=0,Ss=null,ks=null,Is=0,Ts=bs,Es=null,Os=1073741823,Ms=1073741823,Ps=null,Ds=0,As=!1,Rs=0,Bs=null,Ns=!1,Ls=null,Fs=null,Vs=!1,zs=null,js=90,Hs=null,Ws=0,Us=null,Gs=0;function Ks(){return 0!==(48&Cs)?1073741821-(zo()/10|0):0!==Gs?Gs:Gs=1073741821-(zo()/10|0)}function qs(t,e,n){if(0===(2&(e=e.mode)))return 1073741823;var i=jo();if(0===(4&e))return 99===i?1073741823:1073741822;if(0!==(16&Cs))return Is;if(null!==n)t=$o(t,0|n.timeoutMs||5e3,250);else switch(i){case 99:t=1073741823;break;case 98:t=$o(t,150,100);break;case 97:case 96:t=$o(t,5e3,250);break;case 95:t=2;break;default:throw Error(a(326))}return null!==Ss&&t===Is&&--t,t}function $s(t,e){if(50<Ws)throw Ws=0,Us=null,Error(a(185));if(null!==(t=Ys(t,e))){var n=jo();1073741823===e?0!==(8&Cs)&&0===(48&Cs)?Qs(t):(Xs(t),0===Cs&&Ko()):Xs(t),0===(4&Cs)||98!==n&&99!==n||(null===Hs?Hs=new Map([[t,e]]):(void 0===(n=Hs.get(t))||n>e)&&Hs.set(t,e))}}function Ys(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var i=t.return,o=null;if(null===i&&3===t.tag)o=t.stateNode;else for(;null!==i;){if(n=i.alternate,i.childExpirationTime<e&&(i.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===i.return&&3===i.tag){o=i.stateNode;break}i=i.return}return null!==o&&(Ss===o&&(al(e),Ts===xs&&Al(o,Is)),Rl(o,e)),o}function Zs(t){var e=t.lastExpiredTime;if(0!==e)return e;if(!Dl(t,e=t.firstPendingTime))return e;var n=t.lastPingedTime;return 2>=(t=n>(t=t.nextKnownPendingLevel)?n:t)&&e!==t?0:t}function Xs(t){if(0!==t.lastExpiredTime)t.callbackExpirationTime=1073741823,t.callbackPriority=99,t.callbackNode=Go(Qs.bind(null,t));else{var e=Zs(t),n=t.callbackNode;if(0===e)null!==n&&(t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90);else{var i=Ks();if(1073741823===e?i=99:1===e||2===e?i=95:i=0>=(i=10*(1073741821-e)-10*(1073741821-i))?99:250>=i?98:5250>=i?97:95,null!==n){var o=t.callbackPriority;if(t.callbackExpirationTime===e&&o>=i)return;n!==Ao&&So(n)}t.callbackExpirationTime=e,t.callbackPriority=i,e=1073741823===e?Go(Qs.bind(null,t)):Uo(i,Js.bind(null,t),{timeout:10*(1073741821-e)-zo()}),t.callbackNode=e}}}function Js(t,e){if(Gs=0,e)return Bl(t,e=Ks()),Xs(t),null;var n=Zs(t);if(0!==n){if(e=t.callbackNode,0!==(48&Cs))throw Error(a(327));if(ml(),t===Ss&&n===Is||nl(t,n),null!==ks){var i=Cs;Cs|=16;for(var o=ol();;)try{ll();break}catch(l){il(t,l)}if(tr(),Cs=i,vs.current=o,1===Ts)throw e=Es,nl(t,n),Al(t,n),Xs(t),e;if(null===ks)switch(o=t.finishedWork=t.current.alternate,t.finishedExpirationTime=n,i=Ts,Ss=null,i){case bs:case 1:throw Error(a(345));case 2:Bl(t,2<n?2:n);break;case ws:if(Al(t,n),n===(i=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=dl(o)),1073741823===Os&&10<(o=Rs+500-zo())){if(As){var r=t.lastPingedTime;if(0===r||r>=n){t.lastPingedTime=n,nl(t,n);break}}if(0!==(r=Zs(t))&&r!==n)break;if(0!==i&&i!==n){t.lastPingedTime=i;break}t.timeoutHandle=yn(hl.bind(null,t),o);break}hl(t);break;case xs:if(Al(t,n),n===(i=t.lastSuspendedTime)&&(t.nextKnownPendingLevel=dl(o)),As&&(0===(o=t.lastPingedTime)||o>=n)){t.lastPingedTime=n,nl(t,n);break}if(0!==(o=Zs(t))&&o!==n)break;if(0!==i&&i!==n){t.lastPingedTime=i;break}if(1073741823!==Ms?i=10*(1073741821-Ms)-zo():1073741823===Os?i=0:(i=10*(1073741821-Os)-5e3,0>(i=(o=zo())-i)&&(i=0),(n=10*(1073741821-n)-o)<(i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*_s(i/1960))-i)&&(i=n)),10<i){t.timeoutHandle=yn(hl.bind(null,t),i);break}hl(t);break;case 5:if(1073741823!==Os&&null!==Ps){r=Os;var s=Ps;if(0>=(i=0|s.busyMinDurationMs)?i=0:(o=0|s.busyDelayMs,i=(r=zo()-(10*(1073741821-r)-(0|s.timeoutMs||5e3)))<=o?0:o+i-r),10<i){Al(t,n),t.timeoutHandle=yn(hl.bind(null,t),i);break}}hl(t);break;default:throw Error(a(329))}if(Xs(t),t.callbackNode===e)return Js.bind(null,t)}}return null}function Qs(t){var e=t.lastExpiredTime;if(e=0!==e?e:1073741823,0!==(48&Cs))throw Error(a(327));if(ml(),t===Ss&&e===Is||nl(t,e),null!==ks){var n=Cs;Cs|=16;for(var i=ol();;)try{sl();break}catch(o){il(t,o)}if(tr(),Cs=n,vs.current=i,1===Ts)throw n=Es,nl(t,e),Al(t,e),Xs(t),n;if(null!==ks)throw Error(a(261));t.finishedWork=t.current.alternate,t.finishedExpirationTime=e,Ss=null,hl(t),Xs(t)}return null}function tl(t,e){var n=Cs;Cs|=1;try{return t(e)}finally{0===(Cs=n)&&Ko()}}function el(t,e){var n=Cs;Cs&=-2,Cs|=8;try{return t(e)}finally{0===(Cs=n)&&Ko()}}function nl(t,e){t.finishedWork=null,t.finishedExpirationTime=0;var n=t.timeoutHandle;if(-1!==n&&(t.timeoutHandle=-1,bn(n)),null!==ks)for(n=ks.return;null!==n;){var i=n;switch(i.tag){case 1:null!==(i=i.type.childContextTypes)&&void 0!==i&&_o();break;case 3:Ar(),lo(fo),lo(ho);break;case 5:Br(i);break;case 4:Ar();break;case 13:case 19:lo(Nr);break;case 10:er(i)}n=n.return}Ss=t,ks=Il(t.current,null),Is=e,Ts=bs,Es=null,Ms=Os=1073741823,Ps=null,Ds=0,As=!1}function il(t,e){for(;;){try{if(tr(),Vr.current=ga,Gr)for(var n=Hr.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}if(jr=0,Ur=Wr=Hr=null,Gr=!1,null===ks||null===ks.return)return Ts=1,Es=e,ks=null;t:{var o=t,r=ks.return,a=ks,s=e;if(e=Is,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==s&&"object"===typeof s&&"function"===typeof s.then){var l=s;if(0===(2&a.mode)){var u=a.alternate;u?(a.updateQueue=u.updateQueue,a.memoizedState=u.memoizedState,a.expirationTime=u.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Nr.current),d=r;do{var h;if(h=13===d.tag){var f=d.memoizedState;if(null!==f)h=null!==f.dehydrated;else{var p=d.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(h){var m=d.updateQueue;if(null===m){var g=new Set;g.add(l),d.updateQueue=g}else m.add(l);if(0===(2&d.mode)){if(d.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var _=lr(1073741823,null);_.tag=2,ur(a,_)}a.expirationTime=1073741823;break t}s=void 0,a=e;var v=o.pingCache;if(null===v?(v=o.pingCache=new fs,s=new Set,v.set(l,s)):void 0===(s=v.get(l))&&(s=new Set,v.set(l,s)),!s.has(a)){s.add(a);var y=yl.bind(null,o,l,a);l.then(y,y)}d.effectTag|=4096,d.expirationTime=e;break t}d=d.return}while(null!==d);s=Error((gt(a.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."+_t(a))}5!==Ts&&(Ts=2),s=Ja(s,a),d=r;do{switch(d.tag){case 3:l=s,d.effectTag|=4096,d.expirationTime=e,cr(d,ps(d,l,e));break t;case 1:l=s;var b=d.type,w=d.stateNode;if(0===(64&d.effectTag)&&("function"===typeof b.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Fs||!Fs.has(w)))){d.effectTag|=4096,d.expirationTime=e,cr(d,ms(d,l,e));break t}}d=d.return}while(null!==d)}ks=cl(ks)}catch(x){e=x;continue}break}}function ol(){var t=vs.current;return vs.current=ga,null===t?ga:t}function rl(t,e){t<Os&&2<t&&(Os=t),null!==e&&t<Ms&&2<t&&(Ms=t,Ps=e)}function al(t){t>Ds&&(Ds=t)}function sl(){for(;null!==ks;)ks=ul(ks)}function ll(){for(;null!==ks&&!Ro();)ks=ul(ks)}function ul(t){var e=gs(t.alternate,t,Is);return t.memoizedProps=t.pendingProps,null===e&&(e=cl(t)),ys.current=null,e}function cl(t){ks=t;do{var e=ks.alternate;if(t=ks.return,0===(2048&ks.effectTag)){if(e=Za(e,ks,Is),1===Is||1!==ks.childExpirationTime){for(var n=0,i=ks.child;null!==i;){var o=i.expirationTime,r=i.childExpirationTime;o>n&&(n=o),r>n&&(n=r),i=i.sibling}ks.childExpirationTime=n}if(null!==e)return e;null!==t&&0===(2048&t.effectTag)&&(null===t.firstEffect&&(t.firstEffect=ks.firstEffect),null!==ks.lastEffect&&(null!==t.lastEffect&&(t.lastEffect.nextEffect=ks.firstEffect),t.lastEffect=ks.lastEffect),1<ks.effectTag&&(null!==t.lastEffect?t.lastEffect.nextEffect=ks:t.firstEffect=ks,t.lastEffect=ks))}else{if(null!==(e=Xa(ks)))return e.effectTag&=2047,e;null!==t&&(t.firstEffect=t.lastEffect=null,t.effectTag|=2048)}if(null!==(e=ks.sibling))return e;ks=t}while(null!==ks);return Ts===bs&&(Ts=5),null}function dl(t){var e=t.expirationTime;return e>(t=t.childExpirationTime)?e:t}function hl(t){var e=jo();return Wo(99,fl.bind(null,t,e)),null}function fl(t,e){do{ml()}while(null!==zs);if(0!==(48&Cs))throw Error(a(327));var n=t.finishedWork,i=t.finishedExpirationTime;if(null===n)return null;if(t.finishedWork=null,t.finishedExpirationTime=0,n===t.current)throw Error(a(177));t.callbackNode=null,t.callbackExpirationTime=0,t.callbackPriority=90,t.nextKnownPendingLevel=0;var o=dl(n);if(t.firstPendingTime=o,i<=t.lastSuspendedTime?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:i<=t.firstSuspendedTime&&(t.firstSuspendedTime=i-1),i<=t.lastPingedTime&&(t.lastPingedTime=0),i<=t.lastExpiredTime&&(t.lastExpiredTime=0),t===Ss&&(ks=Ss=null,Is=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){var r=Cs;Cs|=32,ys.current=null,mn=Ke;var s=fn();if(pn(s)){if("selectionStart"in s)var l={start:s.selectionStart,end:s.selectionEnd};else t:{var u=(l=(l=s.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,d=u.focusNode;u=u.focusOffset;try{l.nodeType,d.nodeType}catch(I){l=null;break t}var h=0,f=-1,p=-1,m=0,g=0,_=s,v=null;e:for(;;){for(var y;_!==l||0!==c&&3!==_.nodeType||(f=h+c),_!==d||0!==u&&3!==_.nodeType||(p=h+u),3===_.nodeType&&(h+=_.nodeValue.length),null!==(y=_.firstChild);)v=_,_=y;for(;;){if(_===s)break e;if(v===l&&++m===c&&(f=h),v===d&&++g===u&&(p=h),null!==(y=_.nextSibling))break;v=(_=v).parentNode}_=y}l=-1===f||-1===p?null:{start:f,end:p}}else l=null}l=l||{start:0,end:0}}else l=null;gn={activeElementDetached:null,focusedElem:s,selectionRange:l},Ke=!1,Bs=o;do{try{pl()}catch(I){if(null===Bs)throw Error(a(330));vl(Bs,I),Bs=Bs.nextEffect}}while(null!==Bs);Bs=o;do{try{for(s=t,l=e;null!==Bs;){var b=Bs.effectTag;if(16&b&&zt(Bs.stateNode,""),128&b){var w=Bs.alternate;if(null!==w){var x=w.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&b){case 2:us(Bs),Bs.effectTag&=-3;break;case 6:us(Bs),Bs.effectTag&=-3,ds(Bs.alternate,Bs);break;case 1024:Bs.effectTag&=-1025;break;case 1028:Bs.effectTag&=-1025,ds(Bs.alternate,Bs);break;case 4:ds(Bs.alternate,Bs);break;case 8:cs(s,c=Bs,l),ss(c)}Bs=Bs.nextEffect}}catch(I){if(null===Bs)throw Error(a(330));vl(Bs,I),Bs=Bs.nextEffect}}while(null!==Bs);if(x=gn,w=fn(),b=x.focusedElem,l=x.selectionRange,w!==b&&b&&b.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(b.ownerDocument.documentElement,b)){null!==l&&pn(b)&&(w=l.start,void 0===(x=l.end)&&(x=w),"selectionStart"in b?(b.selectionStart=w,b.selectionEnd=Math.min(x,b.value.length)):(x=(w=b.ownerDocument||document)&&w.defaultView||window).getSelection&&(x=x.getSelection(),c=b.textContent.length,s=Math.min(l.start,c),l=void 0===l.end?s:Math.min(l.end,c),!x.extend&&s>l&&(c=l,l=s,s=c),c=hn(b,s),d=hn(b,l),c&&d&&(1!==x.rangeCount||x.anchorNode!==c.node||x.anchorOffset!==c.offset||x.focusNode!==d.node||x.focusOffset!==d.offset)&&((w=w.createRange()).setStart(c.node,c.offset),x.removeAllRanges(),s>l?(x.addRange(w),x.extend(d.node,d.offset)):(w.setEnd(d.node,d.offset),x.addRange(w))))),w=[];for(x=b;x=x.parentNode;)1===x.nodeType&&w.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof b.focus&&b.focus(),b=0;b<w.length;b++)(x=w[b]).element.scrollLeft=x.left,x.element.scrollTop=x.top}Ke=!!mn,gn=mn=null,t.current=n,Bs=o;do{try{for(b=t;null!==Bs;){var C=Bs.effectTag;if(36&C&&rs(b,Bs.alternate,Bs),128&C){w=void 0;var S=Bs.ref;if(null!==S){var k=Bs.stateNode;switch(Bs.tag){case 5:w=k;break;default:w=k}"function"===typeof S?S(w):S.current=w}}Bs=Bs.nextEffect}}catch(I){if(null===Bs)throw Error(a(330));vl(Bs,I),Bs=Bs.nextEffect}}while(null!==Bs);Bs=null,Bo(),Cs=r}else t.current=n;if(Vs)Vs=!1,zs=t,js=e;else for(Bs=o;null!==Bs;)e=Bs.nextEffect,Bs.nextEffect=null,Bs=e;if(0===(e=t.firstPendingTime)&&(Fs=null),1073741823===e?t===Us?Ws++:(Ws=0,Us=t):Ws=0,"function"===typeof wl&&wl(n.stateNode,i),Xs(t),Ns)throw Ns=!1,t=Ls,Ls=null,t;return 0!==(8&Cs)||Ko(),null}function pl(){for(;null!==Bs;){var t=Bs.effectTag;0!==(256&t)&&ns(Bs.alternate,Bs),0===(512&t)||Vs||(Vs=!0,Uo(97,(function(){return ml(),null}))),Bs=Bs.nextEffect}}function ml(){if(90!==js){var t=97<js?97:js;return js=90,Wo(t,gl)}}function gl(){if(null===zs)return!1;var t=zs;if(zs=null,0!==(48&Cs))throw Error(a(331));var e=Cs;for(Cs|=32,t=t.current.firstEffect;null!==t;){try{var n=t;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:is(5,n),os(5,n)}}catch(i){if(null===t)throw Error(a(330));vl(t,i)}n=t.nextEffect,t.nextEffect=null,t=n}return Cs=e,Ko(),!0}function _l(t,e,n){ur(t,e=ps(t,e=Ja(n,e),1073741823)),null!==(t=Ys(t,1073741823))&&Xs(t)}function vl(t,e){if(3===t.tag)_l(t,t,e);else for(var n=t.return;null!==n;){if(3===n.tag){_l(n,t,e);break}if(1===n.tag){var i=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof i.componentDidCatch&&(null===Fs||!Fs.has(i))){ur(n,t=ms(n,t=Ja(e,t),1073741823)),null!==(n=Ys(n,1073741823))&&Xs(n);break}}n=n.return}}function yl(t,e,n){var i=t.pingCache;null!==i&&i.delete(e),Ss===t&&Is===n?Ts===xs||Ts===ws&&1073741823===Os&&zo()-Rs<500?nl(t,Is):As=!0:Dl(t,n)&&(0!==(e=t.lastPingedTime)&&e<n||(t.lastPingedTime=n,Xs(t)))}function bl(t,e){var n=t.stateNode;null!==n&&n.delete(e),0===(e=0)&&(e=qs(e=Ks(),t,null)),null!==(t=Ys(t,e))&&Xs(t)}gs=function(t,e,n){var i=e.expirationTime;if(null!==t){var o=e.pendingProps;if(t.memoizedProps!==o||fo.current)Ma=!0;else{if(i<n){switch(Ma=!1,e.tag){case 3:Va(e),Ea();break;case 5:if(Rr(e),4&e.mode&&1!==n&&o.hidden)return e.expirationTime=e.childExpirationTime=1,null;break;case 1:go(e.type)&&bo(e);break;case 4:Dr(e,e.stateNode.containerInfo);break;case 10:i=e.memoizedProps.value,o=e.type._context,uo(Zo,o._currentValue),o._currentValue=i;break;case 13:if(null!==e.memoizedState)return 0!==(i=e.child.childExpirationTime)&&i>=n?Ua(t,e,n):(uo(Nr,1&Nr.current),null!==(e=$a(t,e,n))?e.sibling:null);uo(Nr,1&Nr.current);break;case 19:if(i=e.childExpirationTime>=n,0!==(64&t.effectTag)){if(i)return qa(t,e,n);e.effectTag|=64}if(null!==(o=e.memoizedState)&&(o.rendering=null,o.tail=null),uo(Nr,Nr.current),!i)return null}return $a(t,e,n)}Ma=!1}}else Ma=!1;switch(e.expirationTime=0,e.tag){case 2:if(i=e.type,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,o=mo(e,ho.current),ir(e,n),o=$r(null,e,i,t,o,n),e.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(e.tag=1,e.memoizedState=null,e.updateQueue=null,go(i)){var r=!0;bo(e)}else r=!1;e.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ar(e);var s=i.getDerivedStateFromProps;"function"===typeof s&&mr(e,i,s,t),o.updater=gr,e.stateNode=o,o._reactInternalFiber=e,br(e,i,t,n),e=Fa(null,e,i,!0,r,n)}else e.tag=0,Pa(null,e,o,n),e=e.child;return e;case 16:t:{if(o=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps,function(t){if(-1===t._status){t._status=0;var e=t._ctor;e=e(),t._result=e,e.then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,e.type=o,r=e.tag=function(t){if("function"===typeof t)return kl(t)?1:0;if(void 0!==t&&null!==t){if((t=t.$$typeof)===lt)return 11;if(t===dt)return 14}return 2}(o),t=Yo(o,t),r){case 0:e=Na(null,e,o,t,n);break t;case 1:e=La(null,e,o,t,n);break t;case 11:e=Da(null,e,o,t,n);break t;case 14:e=Aa(null,e,o,Yo(o.type,t),i,n);break t}throw Error(a(306,o,""))}return e;case 0:return i=e.type,o=e.pendingProps,Na(t,e,i,o=e.elementType===i?o:Yo(i,o),n);case 1:return i=e.type,o=e.pendingProps,La(t,e,i,o=e.elementType===i?o:Yo(i,o),n);case 3:if(Va(e),i=e.updateQueue,null===t||null===i)throw Error(a(282));if(i=e.pendingProps,o=null!==(o=e.memoizedState)?o.element:null,sr(t,e),dr(e,i,null,n),(i=e.memoizedState.element)===o)Ea(),e=$a(t,e,n);else{if((o=e.stateNode.hydrate)&&(wa=wn(e.stateNode.containerInfo.firstChild),ba=e,o=xa=!0),o)for(n=Ir(e,null,i,n),e.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Pa(t,e,i,n),Ea();e=e.child}return e;case 5:return Rr(e),null===t&&ka(e),i=e.type,o=e.pendingProps,r=null!==t?t.memoizedProps:null,s=o.children,vn(i,o)?s=null:null!==r&&vn(i,r)&&(e.effectTag|=16),Ba(t,e),4&e.mode&&1!==n&&o.hidden?(e.expirationTime=e.childExpirationTime=1,e=null):(Pa(t,e,s,n),e=e.child),e;case 6:return null===t&&ka(e),null;case 13:return Ua(t,e,n);case 4:return Dr(e,e.stateNode.containerInfo),i=e.pendingProps,null===t?e.child=kr(e,null,i,n):Pa(t,e,i,n),e.child;case 11:return i=e.type,o=e.pendingProps,Da(t,e,i,o=e.elementType===i?o:Yo(i,o),n);case 7:return Pa(t,e,e.pendingProps,n),e.child;case 8:case 12:return Pa(t,e,e.pendingProps.children,n),e.child;case 10:t:{i=e.type._context,o=e.pendingProps,s=e.memoizedProps,r=o.value;var l=e.type._context;if(uo(Zo,l._currentValue),l._currentValue=r,null!==s)if(l=s.value,0===(r=Li(l,r)?0:0|("function"===typeof i._calculateChangedBits?i._calculateChangedBits(l,r):1073741823))){if(s.children===o.children&&!fo.current){e=$a(t,e,n);break t}}else for(null!==(l=e.child)&&(l.return=e);null!==l;){var u=l.dependencies;if(null!==u){s=l.child;for(var c=u.firstContext;null!==c;){if(c.context===i&&0!==(c.observedBits&r)){1===l.tag&&((c=lr(n,null)).tag=2,ur(l,c)),l.expirationTime<n&&(l.expirationTime=n),null!==(c=l.alternate)&&c.expirationTime<n&&(c.expirationTime=n),nr(l.return,n),u.expirationTime<n&&(u.expirationTime=n);break}c=c.next}}else s=10===l.tag&&l.type===e.type?null:l.child;if(null!==s)s.return=l;else for(s=l;null!==s;){if(s===e){s=null;break}if(null!==(l=s.sibling)){l.return=s.return,s=l;break}s=s.return}l=s}Pa(t,e,o.children,n),e=e.child}return e;case 9:return o=e.type,i=(r=e.pendingProps).children,ir(e,n),i=i(o=or(o,r.unstable_observedBits)),e.effectTag|=1,Pa(t,e,i,n),e.child;case 14:return r=Yo(o=e.type,e.pendingProps),Aa(t,e,o,r=Yo(o.type,r),i,n);case 15:return Ra(t,e,e.type,e.pendingProps,i,n);case 17:return i=e.type,o=e.pendingProps,o=e.elementType===i?o:Yo(i,o),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,go(i)?(t=!0,bo(e)):t=!1,ir(e,n),vr(e,i,o),br(e,i,o,n),Fa(null,e,i,!0,t,n);case 19:return qa(t,e,n)}throw Error(a(156,e.tag))};var wl=null,xl=null;function Cl(t,e,n,i){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Sl(t,e,n,i){return new Cl(t,e,n,i)}function kl(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Il(t,e){var n=t.alternate;return null===n?((n=Sl(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=null===e?null:{expirationTime:e.expirationTime,firstContext:e.firstContext,responders:e.responders},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Tl(t,e,n,i,o,r){var s=2;if(i=t,"function"===typeof t)kl(t)&&(s=1);else if("string"===typeof t)s=5;else t:switch(t){case nt:return El(n.children,o,r,e);case st:s=8,o|=7;break;case it:s=8,o|=1;break;case ot:return(t=Sl(12,n,e,8|o)).elementType=ot,t.type=ot,t.expirationTime=r,t;case ut:return(t=Sl(13,n,e,o)).type=ut,t.elementType=ut,t.expirationTime=r,t;case ct:return(t=Sl(19,n,e,o)).elementType=ct,t.expirationTime=r,t;default:if("object"===typeof t&&null!==t)switch(t.$$typeof){case rt:s=10;break t;case at:s=9;break t;case lt:s=11;break t;case dt:s=14;break t;case ht:s=16,i=null;break t;case ft:s=22;break t}throw Error(a(130,null==t?t:typeof t,""))}return(e=Sl(s,n,e,o)).elementType=t,e.type=i,e.expirationTime=r,e}function El(t,e,n,i){return(t=Sl(7,t,i,e)).expirationTime=n,t}function Ol(t,e,n){return(t=Sl(6,t,null,e)).expirationTime=n,t}function Ml(t,e,n){return(e=Sl(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Pl(t,e,n){this.tag=e,this.current=null,this.containerInfo=t,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Dl(t,e){var n=t.firstSuspendedTime;return t=t.lastSuspendedTime,0!==n&&n>=e&&t<=e}function Al(t,e){var n=t.firstSuspendedTime,i=t.lastSuspendedTime;n<e&&(t.firstSuspendedTime=e),(i>e||0===n)&&(t.lastSuspendedTime=e),e<=t.lastPingedTime&&(t.lastPingedTime=0),e<=t.lastExpiredTime&&(t.lastExpiredTime=0)}function Rl(t,e){e>t.firstPendingTime&&(t.firstPendingTime=e);var n=t.firstSuspendedTime;0!==n&&(e>=n?t.firstSuspendedTime=t.lastSuspendedTime=t.nextKnownPendingLevel=0:e>=t.lastSuspendedTime&&(t.lastSuspendedTime=e+1),e>t.nextKnownPendingLevel&&(t.nextKnownPendingLevel=e))}function Bl(t,e){var n=t.lastExpiredTime;(0===n||n>e)&&(t.lastExpiredTime=e)}function Nl(t,e,n,i){var o=e.current,r=Ks(),s=fr.suspense;r=qs(r,o,s);t:if(n){e:{if(Qt(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break e;case 1:if(go(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break e}}l=l.return}while(null!==l);throw Error(a(171))}if(1===n.tag){var u=n.type;if(go(u)){n=yo(n,u,l);break t}}n=l}else n=co;return null===e.context?e.context=n:e.pendingContext=n,(e=lr(r,s)).payload={element:t},null!==(i=void 0===i?null:i)&&(e.callback=i),ur(o,e),$s(o,r),r}function Ll(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function Fl(t,e){null!==(t=t.memoizedState)&&null!==t.dehydrated&&t.retryTime<e&&(t.retryTime=e)}function Vl(t,e){Fl(t,e),(t=t.alternate)&&Fl(t,e)}function zl(t,e,n){var i=new Pl(t,e,n=null!=n&&!0===n.hydrate),o=Sl(3,null,null,2===e?7:1===e?3:0);i.current=o,o.stateNode=i,ar(o),t[In]=i.current,n&&0!==e&&function(t,e){var n=Jt(e);Ie.forEach((function(t){pe(t,e,n)})),Te.forEach((function(t){pe(t,e,n)}))}(0,9===t.nodeType?t:t.ownerDocument),this._internalRoot=i}function jl(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Hl(t,e,n,i,o){var r=n._reactRootContainer;if(r){var a=r._internalRoot;if("function"===typeof o){var s=o;o=function(){var t=Ll(a);s.call(t)}}Nl(e,a,t,o)}else{if(r=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new zl(t,0,e?{hydrate:!0}:void 0)}(n,i),a=r._internalRoot,"function"===typeof o){var l=o;o=function(){var t=Ll(a);l.call(t)}}el((function(){Nl(e,a,t,o)}))}return Ll(a)}function Wl(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:et,key:null==i?null:""+i,children:t,containerInfo:e,implementation:n}}function Ul(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!jl(e))throw Error(a(200));return Wl(t,e,null,n)}zl.prototype.render=function(t){Nl(t,this._internalRoot,null,null)},zl.prototype.unmount=function(){var t=this._internalRoot,e=t.containerInfo;Nl(null,t,null,(function(){e[In]=null}))},me=function(t){if(13===t.tag){var e=$o(Ks(),150,100);$s(t,e),Vl(t,e)}},ge=function(t){13===t.tag&&($s(t,3),Vl(t,3))},_e=function(t){if(13===t.tag){var e=Ks();$s(t,e=qs(e,t,null)),Vl(t,e)}},E=function(t,e,n){switch(e){case"input":if(kt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var o=Mn(i);if(!o)throw Error(a(90));wt(i),kt(i,o)}}}break;case"textarea":Dt(t,n);break;case"select":null!=(e=n.value)&&Ot(t,!!n.multiple,e,!1)}},R=tl,B=function(t,e,n,i,o){var r=Cs;Cs|=4;try{return Wo(98,t.bind(null,e,n,i,o))}finally{0===(Cs=r)&&Ko()}},N=function(){0===(49&Cs)&&(function(){if(null!==Hs){var t=Hs;Hs=null,t.forEach((function(t,e){Bl(e,t),Xs(e)})),Ko()}}(),ml())},L=function(t,e){var n=Cs;Cs|=2;try{return t(e)}finally{0===(Cs=n)&&Ko()}};var Gl={Events:[En,On,Mn,I,C,Ln,function(t){oe(t,Nn)},D,A,Xe,se,ml,{current:!1}]};!function(t){var e=t.findFiberByHostInstance;(function(t){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);wl=function(t){try{e.onCommitFiberRoot(n,t,void 0,64===(64&t.current.effectTag))}catch(i){}},xl=function(t){try{e.onCommitFiberUnmount(n,t)}catch(i){}}}catch(i){}})(o({},t,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Z.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return null===(t=ne(t))?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Tn,bundleType:0,version:"16.13.1",rendererPackageName:"react-dom"}),e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gl,e.createPortal=Ul,e.findDOMNode=function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;if(void 0===e){if("function"===typeof t.render)throw Error(a(188));throw Error(a(268,Object.keys(t)))}return t=null===(t=ne(e))?null:t.stateNode},e.flushSync=function(t,e){if(0!==(48&Cs))throw Error(a(187));var n=Cs;Cs|=1;try{return Wo(99,t.bind(null,e))}finally{Cs=n,Ko()}},e.hydrate=function(t,e,n){if(!jl(e))throw Error(a(200));return Hl(null,t,e,!0,n)},e.render=function(t,e,n){if(!jl(e))throw Error(a(200));return Hl(null,t,e,!1,n)},e.unmountComponentAtNode=function(t){if(!jl(t))throw Error(a(40));return!!t._reactRootContainer&&(el((function(){Hl(null,null,t,!1,(function(){t._reactRootContainer=null,t[In]=null}))})),!0)},e.unstable_batchedUpdates=tl,e.unstable_createPortal=function(t,e){return Ul(t,e,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},e.unstable_renderSubtreeIntoContainer=function(t,e,n,i){if(!jl(n))throw Error(a(200));if(null==t||void 0===t._reactInternalFiber)throw Error(a(38));return Hl(t,e,n,!1,i)},e.version="16.13.1"},function(t,e,n){"use strict";t.exports=n(593)},function(t,e,n){"use strict";var i,o,r,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,u=null,c=function t(){if(null!==l)try{var n=e.unstable_now();l(!0,n),l=null}catch(i){throw setTimeout(t,0),i}},d=Date.now();e.unstable_now=function(){return Date.now()-d},i=function(t){null!==l?setTimeout(i,0,t):(l=t,setTimeout(c,0))},o=function(t,e){u=setTimeout(t,e)},r=function(){clearTimeout(u)},a=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.performance,f=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&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 g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)e.unstable_now=function(){return h.now()};else{var _=f.now();e.unstable_now=function(){return f.now()-_}}var v=!1,y=null,b=-1,w=5,x=0;a=function(){return e.unstable_now()>=x},s=function(){},e.unstable_forceFrameRate=function(t){0>t||125<t?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<t?Math.floor(1e3/t):5};var C=new MessageChannel,S=C.port2;C.port1.onmessage=function(){if(null!==y){var t=e.unstable_now();x=t+w;try{y(!0,t)?S.postMessage(null):(v=!1,y=null)}catch(n){throw S.postMessage(null),n}}else v=!1},i=function(t){y=t,v||(v=!0,S.postMessage(null))},o=function(t,n){b=p((function(){t(e.unstable_now())}),n)},r=function(){m(b),b=-1}}function k(t,e){var n=t.length;t.push(e);t:for(;;){var i=n-1>>>1,o=t[i];if(!(void 0!==o&&0<E(o,e)))break t;t[i]=e,t[n]=o,n=i}}function I(t){return void 0===(t=t[0])?null:t}function T(t){var e=t[0];if(void 0!==e){var n=t.pop();if(n!==e){t[0]=n;t:for(var i=0,o=t.length;i<o;){var r=2*(i+1)-1,a=t[r],s=r+1,l=t[s];if(void 0!==a&&0>E(a,n))void 0!==l&&0>E(l,a)?(t[i]=l,t[s]=n,i=s):(t[i]=a,t[r]=n,i=r);else{if(!(void 0!==l&&0>E(l,n)))break t;t[i]=l,t[s]=n,i=s}}}return e}return null}function E(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}var O=[],M=[],P=1,D=null,A=3,R=!1,B=!1,N=!1;function L(t){for(var e=I(M);null!==e;){if(null===e.callback)T(M);else{if(!(e.startTime<=t))break;T(M),e.sortIndex=e.expirationTime,k(O,e)}e=I(M)}}function F(t){if(N=!1,L(t),!B)if(null!==I(O))B=!0,i(V);else{var e=I(M);null!==e&&o(F,e.startTime-t)}}function V(t,n){B=!1,N&&(N=!1,r()),R=!0;var i=A;try{for(L(n),D=I(O);null!==D&&(!(D.expirationTime>n)||t&&!a());){var s=D.callback;if(null!==s){D.callback=null,A=D.priorityLevel;var l=s(D.expirationTime<=n);n=e.unstable_now(),"function"===typeof l?D.callback=l:D===I(O)&&T(O),L(n)}else T(O);D=I(O)}if(null!==D)var u=!0;else{var c=I(M);null!==c&&o(F,c.startTime-n),u=!1}return u}finally{D=null,A=i,R=!1}}function z(t){switch(t){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var j=s;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(t){t.callback=null},e.unstable_continueExecution=function(){B||R||(B=!0,i(V))},e.unstable_getCurrentPriorityLevel=function(){return A},e.unstable_getFirstCallbackNode=function(){return I(O)},e.unstable_next=function(t){switch(A){case 1:case 2:case 3:var e=3;break;default:e=A}var n=A;A=e;try{return t()}finally{A=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=j,e.unstable_runWithPriority=function(t,e){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var n=A;A=t;try{return e()}finally{A=n}},e.unstable_scheduleCallback=function(t,n,a){var s=e.unstable_now();if("object"===typeof a&&null!==a){var l=a.delay;l="number"===typeof l&&0<l?s+l:s,a="number"===typeof a.timeout?a.timeout:z(t)}else a=z(t),l=s;return t={id:P++,callback:n,priorityLevel:t,startTime:l,expirationTime:a=l+a,sortIndex:-1},l>s?(t.sortIndex=l,k(M,t),null===I(O)&&t===I(M)&&(N?r():N=!0,o(F,l-s))):(t.sortIndex=a,k(O,t),B||R||(B=!0,i(V))),t},e.unstable_shouldYield=function(){var t=e.unstable_now();L(t);var n=I(O);return n!==D&&null!==D&&null!==n&&null!==n.callback&&n.startTime<=t&&n.expirationTime<D.expirationTime||a()},e.unstable_wrapCallback=function(t){var e=A;return function(){var n=A;A=e;try{return t.apply(this,arguments)}finally{A=n}}}},function(t,e,n){var i=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",r=i.asyncIterator||"@@asyncIterator",a=i.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(I){s=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var o=e&&e.prototype instanceof d?e:d,r=Object.create(o.prototype),a=new C(i||[]);return r._invoke=function(t,e,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return k()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===c)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),r}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}t.wrap=l;var c={};function d(){}function h(){}function f(){}var p={};p[o]=function(){return this};var m=Object.getPrototypeOf,g=m&&m(m(S([])));g&&g!==e&&n.call(g,o)&&(p=g);var _=f.prototype=d.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function y(t,e){var i;this._invoke=function(o,r){function a(){return new e((function(i,a){!function i(o,r,a,s){var l=u(t[o],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"===typeof d&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){i("next",t,a,s)}),(function(t){i("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return i("throw",t,a,s)}))}s(l.arg)}(o,r,i,a)}))}return i=i?i.then(a,a):a()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return c;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var i=u(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,c;var o=i.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,c):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,c)}function w(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(w,this),this.reset(!0)}function S(t){if(t){var e=t[o];if(e)return e.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,r=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return h.prototype=_.constructor=f,f.constructor=h,h.displayName=s(f,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"===typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,f):(t.__proto__=f,s(t,a,"GeneratorFunction")),t.prototype=Object.create(_),t},t.awrap=function(t){return{__await:t}},v(y.prototype),y.prototype[r]=function(){return this},t.AsyncIterator=y,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new y(l(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},v(_),s(_,a,"Generator"),_[o]=function(){return this},_.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,c):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),c},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),c}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var o=i.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},t}(t.exports);try{regeneratorRuntime=i}catch(o){Function("r","regeneratorRuntime = r")(i)}},function(t,e,n){"use strict";var i=n(596);function o(){}function r(){}r.resetWarningCache=o,t.exports=function(){function t(t,e,n,o,r,a){if(a!==i){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 e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:r,resetWarningCache:o};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";var i=n(72),o=n(344),r=n(598),a=n(350);function s(t){var e=new r(t),n=o(r.prototype.request,e);return i.extend(n,r.prototype,e),i.extend(n,e),n}var l=s(n(347));l.Axios=r,l.create=function(t){return s(a(l.defaults,t))},l.Cancel=n(351),l.CancelToken=n(611),l.isCancel=n(346),l.all=function(t){return Promise.all(t)},l.spread=n(612),t.exports=l,t.exports.default=l},function(t,e,n){"use strict";var i=n(72),o=n(345),r=n(599),a=n(600),s=n(350);function l(t){this.defaults=t,this.interceptors={request:new r,response:new r}}l.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{}).url=arguments[0]:t=t||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));e.length;)n=n.then(e.shift(),e.shift());return n},l.prototype.getUri=function(t){return t=s(this.defaults,t),o(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},i.forEach(["delete","get","head","options"],(function(t){l.prototype[t]=function(e,n){return this.request(i.merge(n||{},{method:t,url:e}))}})),i.forEach(["post","put","patch"],(function(t){l.prototype[t]=function(e,n,o){return this.request(i.merge(o||{},{method:t,url:e,data:n}))}})),t.exports=l},function(t,e,n){"use strict";var i=n(72);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(t){i.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=o},function(t,e,n){"use strict";var i=n(72),o=n(601),r=n(346),a=n(347);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return s(t),t.headers=t.headers||{},t.data=o(t.data,t.headers,t.transformRequest),t.headers=i.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]})),(t.adapter||a.adapter)(t).then((function(e){return s(t),e.data=o(e.data,e.headers,t.transformResponse),e}),(function(e){return r(e)||(s(t),e&&e.response&&(e.response.data=o(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},function(t,e,n){"use strict";var i=n(72);t.exports=function(t,e,n){return i.forEach(n,(function(n){t=n(t,e)})),t}},function(t,e,n){"use strict";var i=n(72);t.exports=function(t,e){i.forEach(t,(function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])}))}},function(t,e,n){"use strict";var i=n(349);t.exports=function(t,e,n){var o=n.config.validateStatus;!o||o(n.status)?t(n):e(i("Request failed with status code "+n.status,n.config,null,n.request,n))}},function(t,e,n){"use strict";t.exports=function(t,e,n,i,o){return t.config=e,n&&(t.code=n),t.request=i,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},function(t,e,n){"use strict";var i=n(606),o=n(607);t.exports=function(t,e){return t&&!i(e)?o(t,e):e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var i=n(72),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,a={};return t?(i.forEach(t.split("\n"),(function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(a[e]&&o.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},function(t,e,n){"use strict";var i=n(72);t.exports=i.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(t){var i=t;return e&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=o(window.location.href),function(e){var n=i.isString(e)?o(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return!0}},function(t,e,n){"use strict";var i=n(72);t.exports=i.isStandardBrowserEnv()?{write:function(t,e,n,o,r,a){var s=[];s.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(o)&&s.push("path="+o),i.isString(r)&&s.push("domain="+r),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var i=n(351);function o(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new i(t),e(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var t;return{token:new o((function(e){t=e})),cancel:t}},t.exports=o},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";var i="function"===typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,r=i?Symbol.for("react.portal"):60106,a=i?Symbol.for("react.fragment"):60107,s=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,u=i?Symbol.for("react.provider"):60109,c=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.async_mode"):60111,h=i?Symbol.for("react.concurrent_mode"):60111,f=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,m=i?Symbol.for("react.suspense_list"):60120,g=i?Symbol.for("react.memo"):60115,_=i?Symbol.for("react.lazy"):60116,v=i?Symbol.for("react.block"):60121,y=i?Symbol.for("react.fundamental"):60117,b=i?Symbol.for("react.responder"):60118,w=i?Symbol.for("react.scope"):60119;function x(t){if("object"===typeof t&&null!==t){var e=t.$$typeof;switch(e){case o:switch(t=t.type){case d:case h:case a:case l:case s:case p:return t;default:switch(t=t&&t.$$typeof){case c:case f:case _:case g:case u:return t;default:return e}}case r:return e}}}function C(t){return x(t)===h}e.AsyncMode=d,e.ConcurrentMode=h,e.ContextConsumer=c,e.ContextProvider=u,e.Element=o,e.ForwardRef=f,e.Fragment=a,e.Lazy=_,e.Memo=g,e.Portal=r,e.Profiler=l,e.StrictMode=s,e.Suspense=p,e.isAsyncMode=function(t){return C(t)||x(t)===d},e.isConcurrentMode=C,e.isContextConsumer=function(t){return x(t)===c},e.isContextProvider=function(t){return x(t)===u},e.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===o},e.isForwardRef=function(t){return x(t)===f},e.isFragment=function(t){return x(t)===a},e.isLazy=function(t){return x(t)===_},e.isMemo=function(t){return x(t)===g},e.isPortal=function(t){return x(t)===r},e.isProfiler=function(t){return x(t)===l},e.isStrictMode=function(t){return x(t)===s},e.isSuspense=function(t){return x(t)===p},e.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===a||t===h||t===l||t===s||t===p||t===m||"object"===typeof t&&null!==t&&(t.$$typeof===_||t.$$typeof===g||t.$$typeof===u||t.$$typeof===c||t.$$typeof===f||t.$$typeof===y||t.$$typeof===b||t.$$typeof===w||t.$$typeof===v)},e.typeOf=x},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){var i,o,r;!function(n,a){"use strict";"object"===typeof t.exports?t.exports=a():(o=[],void 0===(r="function"===typeof(i=a)?i.apply(e,o):i)||(t.exports=r))}(0,(function(){"use strict";var t=Object.prototype.toString;function e(t,e){return null!=t&&Object.prototype.hasOwnProperty.call(t,e)}function n(t){if(!t)return!0;if(o(t)&&0===t.length)return!0;if("string"!==typeof t){for(var n in t)if(e(t,n))return!1;return!0}return!1}function i(e){return t.call(e)}var o=Array.isArray||function(e){return"[object Array]"===t.call(e)};function r(t){var e=parseInt(t);return e.toString()===t?e:t}function a(t){t=t||{};var a=function t(e){return Object.keys(t).reduce((function(n,i){return"create"===i||"function"===typeof t[i]&&(n[i]=t[i].bind(t,e)),n}),{})};function s(n,i){return t.includeInheritedProps||"number"===typeof i&&Array.isArray(n)||e(n,i)}function l(t,e){if(s(t,e))return t[e]}function u(t,e,n,i){if("number"===typeof e&&(e=[e]),!e||0===e.length)return t;if("string"===typeof e)return u(t,e.split(".").map(r),n,i);var o=e[0],a=l(t,o);return 1===e.length?(void 0!==a&&i||(t[o]=n),a):(void 0===a&&("number"===typeof e[1]?t[o]=[]:t[o]={}),u(t[o],e.slice(1),n,i))}return a.has=function(n,i){if("number"===typeof i?i=[i]:"string"===typeof i&&(i=i.split(".")),!i||0===i.length)return!!n;for(var a=0;a<i.length;a++){var s=r(i[a]);if(!("number"===typeof s&&o(n)&&s<n.length||(t.includeInheritedProps?s in Object(n):e(n,s))))return!1;n=n[s]}return!0},a.ensureExists=function(t,e,n){return u(t,e,n,!0)},a.set=function(t,e,n,i){return u(t,e,n,i)},a.insert=function(t,e,n,i){var r=a.get(t,e);i=~~i,o(r)||a.set(t,e,r=[]),r.splice(i,0,n)},a.empty=function(t,e){var r,l;if(!n(e)&&(null!=t&&(r=a.get(t,e)))){if("string"===typeof r)return a.set(t,e,"");if(function(t){return"boolean"===typeof t||"[object Boolean]"===i(t)}(r))return a.set(t,e,!1);if("number"===typeof r)return a.set(t,e,0);if(o(r))r.length=0;else{if(!function(t){return"object"===typeof t&&"[object Object]"===i(t)}(r))return a.set(t,e,null);for(l in r)s(r,l)&&delete r[l]}}},a.push=function(t,e){var n=a.get(t,e);o(n)||a.set(t,e,n=[]),n.push.apply(n,Array.prototype.slice.call(arguments,2))},a.coalesce=function(t,e,n){for(var i,o=0,r=e.length;o<r;o++)if(void 0!==(i=a.get(t,e[o])))return i;return n},a.get=function(t,e,n){if("number"===typeof e&&(e=[e]),!e||0===e.length)return t;if(null==t)return n;if("string"===typeof e)return a.get(t,e.split("."),n);var i=r(e[0]),o=l(t,i);return void 0===o?n:1===e.length?o:a.get(t[i],e.slice(1),n)},a.del=function(t,e){if("number"===typeof e&&(e=[e]),null==t)return t;if(n(e))return t;if("string"===typeof e)return a.del(t,e.split("."));var i=r(e[0]);return s(t,i)?1!==e.length?a.del(t[i],e.slice(1)):(o(t)?t.splice(i,1):delete t[i],t):t},a}var s=a();return s.create=a,s.withInheritedProps=a({includeInheritedProps:!0}),s}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(353),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"itemTitleTemplate",render:"itemTitleRender",component:"itemTitleComponent",keyFn:"itemTitleKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Accordion=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animationDuration:r.number,collapsible:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,keyExpr:r.oneOfType([r.func,r.string]),multiple:r.bool,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onItemTitleClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onSelectionChanged:r.func,repaintChangesOnly:r.bool,rtlEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,selectedItemKeys:r.array,selectedItems:r.array,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i,o=n(57),r=n(15),a=n(10).getWindow(),s=n(2),l=n(130),u=n(212),c=n(355),d=function(t,e){return t?"string"===typeof t?"body"===t?(this[0]=e?e.body:r.getBody(),this.length=1,this):(e=e||r.getDocument(),"<"===t[0]?(this[0]=r.createElement(t.slice(1,-1),e),this.length=1,this):([].push.apply(this,r.querySelectorAll(e,t)),this)):r.isNode(t)||s.isWindow(t)?(this[0]=t,this.length=1,this):Array.isArray(t)?([].push.apply(this,t),this):i(t.toArray?t.toArray():[t]):(this.length=0,this)};(i=function(t,e){return new d(t,e)}).fn={dxRenderer:!0},d.prototype=i.fn;var h=function(t,e){for(var n=0;n<this.length;n++){var o=i(this[n]);o[t].apply(o,e)}return this},f=function(t,e,n){void 0!==n&&null!==n?r.setAttribute(t,e,n):r.removeAttribute(t,e)};d.prototype.show=function(){return this.toggle(!0)},d.prototype.hide=function(){return this.toggle(!1)},d.prototype.toggle=function(t){return this[0]&&this.toggleClass("dx-state-invisible",!t),this},d.prototype.attr=function(t,e){if(this.length>1&&arguments.length>1)return h.call(this,"attr",arguments);if(!this[0])return s.isObject(t)||void 0!==e?this:void 0;if(!this[0].getAttribute)return this.prop(t,e);if("string"===typeof t&&1===arguments.length){var n=this[0].getAttribute(t);return null==n?void 0:n}if(s.isPlainObject(t))for(var i in t)this.attr(i,t[i]);else f(this[0],t,e);return this},d.prototype.removeAttr=function(t){return this[0]&&r.removeAttribute(this[0],t),this},d.prototype.prop=function(t,e){if(!this[0])return this;if("string"===typeof t&&1===arguments.length)return this[0][t];if(s.isPlainObject(t))for(var n in t)this.prop(n,t[n]);else r.setProperty(this[0],t,e);return this},d.prototype.addClass=function(t){return this.toggleClass(t,!0)},d.prototype.removeClass=function(t){return this.toggleClass(t,!1)},d.prototype.hasClass=function(t){if(!this[0]||void 0===this[0].className)return!1;for(var e=t.split(" "),n=0;n<e.length;n++){if(this[0].classList){if(this[0].classList.contains(e[n]))return!0}else if(((s.isString(this[0].className)?this[0].className:r.getAttribute(this[0],"class"))||"").split(" ").indexOf(e[n])>=0)return!0}return!1},d.prototype.toggleClass=function(t,e){if(this.length>1)return h.call(this,"toggleClass",arguments);if(!this[0]||!t)return this;e=void 0===e?!this.hasClass(t):e;for(var n=t.split(" "),i=0;i<n.length;i++)r.setClass(this[0],n[i],e);return this},["width","height","outerWidth","outerHeight","innerWidth","innerHeight"].forEach((function(t){var e=t.toLowerCase().indexOf("width")>=0?"Width":"Height",n=e.toLowerCase(),i=0===t.indexOf("outer"),o=0===t.indexOf("inner");d.prototype[t]=function(l){if(this.length>1&&arguments.length>0)return h.call(this,t,arguments);var c=this[0];if(c){if(s.isWindow(c))return i?c["inner"+e]:r.getDocumentElement()["client"+e];if(r.isDocument(c)){var d=r.getDocumentElement(),f=r.getBody();return Math.max(f["scroll"+e],f["offset"+e],d["scroll"+e],d["offset"+e],d["client"+e])}if(0===arguments.length||"boolean"===typeof l){var p={paddings:o||i,borders:i,margins:l};return u.getSize(c,n,p)}if(void 0===l||null===l)return this;if(s.isNumeric(l)){var m=a.getComputedStyle(c),g=u.getElementBoxParams(n,m),_="border-box"===m.boxSizing;l=Number(l),i?l-=_?0:g.border+g.padding:o?l+=_?g.border:-g.padding:_&&(l+=g.border+g.padding)}return l+=s.isNumeric(l)?"px":"",r.setStyle(c,n,l),this}}})),d.prototype.html=function(t){return arguments.length?(this.empty(),"string"===typeof t&&!c.isTablePart(t)||"number"===typeof t?(this[0].innerHTML=t,this):this.append(c.parseHTML(t))):this[0].innerHTML};var p=function(t,e){if(this[0]&&t){"string"===typeof t?t=c.parseHTML(t):t.nodeType?t=[t]:s.isNumeric(t)&&(t=[r.createTextNode(t)]);for(var n=0;n<t.length;n++){var i=t[n],o=this[0];"TABLE"===o.tagName&&"TR"===i.tagName&&o.tBodies&&o.tBodies.length&&(o=o.tBodies[0]),r.insertElement(o,i.nodeType?i:i[0],e)}}},m=function(t,e){if(this[0]&&this[0].style&&!(null===e||"number"===typeof e&&isNaN(e))){t=l.styleProp(t);for(var n=0;n<this.length;n++)this[n].style[t]=l.normalizeStyleProp(t,e)}};d.prototype.css=function(t,e){if(s.isString(t)){if(2!==arguments.length){if(!this[0])return;t=l.styleProp(t);var n=a.getComputedStyle(this[0])[t]||this[0].style[t];return s.isNumeric(n)?n.toString():n}m.call(this,t,e)}else if(s.isPlainObject(t))for(var i in t)m.call(this,i,t[i]);return this},d.prototype.prepend=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.prepend(arguments[e]);return this}return p.apply(this,[t,this[0].firstChild]),this},d.prototype.append=function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.append(arguments[e]);return this}return p.apply(this,[t]),this},d.prototype.prependTo=function(t){if(this.length>1){for(var e=this.length-1;e>=0;e--)i(this[e]).prependTo(t);return this}return(t=i(t))[0]&&r.insertElement(t[0],this[0],t[0].firstChild),this},d.prototype.appendTo=function(t){return this.length>1?h.call(this,"appendTo",arguments):(r.insertElement(i(t)[0],this[0]),this)},d.prototype.insertBefore=function(t){return t&&t[0]&&r.insertElement(t[0].parentNode,this[0],t[0]),this},d.prototype.insertAfter=function(t){return t&&t[0]&&r.insertElement(t[0].parentNode,this[0],t[0].nextSibling),this},d.prototype.before=function(t){return this[0]&&r.insertElement(this[0].parentNode,t[0],this[0]),this},d.prototype.after=function(t){return this[0]&&r.insertElement(this[0].parentNode,t[0],this[0].nextSibling),this},d.prototype.wrap=function(t){if(this[0]){var e=i(t);e.insertBefore(this),e.append(this)}return this},d.prototype.wrapInner=function(t){var e=this.contents();return e.length?e.wrap(t):this.append(t),this},d.prototype.replaceWith=function(t){if(t&&t[0])return t.is(this)?this:(t.insertBefore(this),this.remove(),t)},d.prototype.remove=function(){return this.length>1?h.call(this,"remove",arguments):(o.cleanDataRecursive(this[0],!0),r.removeElement(this[0]),this)},d.prototype.detach=function(){return this.length>1?h.call(this,"detach",arguments):(r.removeElement(this[0]),this)},d.prototype.empty=function(){return this.length>1?h.call(this,"empty",arguments):(o.cleanDataRecursive(this[0]),r.setText(this[0],""),this)},d.prototype.clone=function(){for(var t=[],e=0;e<this.length;e++)t.push(this[e].cloneNode(!0));return i(t)},d.prototype.text=function(t){if(!arguments.length){for(var e="",n=0;n<this.length;n++)e+=this[n]&&this[n].textContent||"";return e}var i=s.isFunction(t)?t():t;return o.cleanDataRecursive(this[0],!1),r.setText(this[0],s.isDefined(i)?i:""),this},d.prototype.val=function(t){return 1===arguments.length?this.prop("value",s.isDefined(t)?t:""):this.prop("value")},d.prototype.contents=function(){if(!this[0])return i();var t=[];return t.push.apply(t,this[0].childNodes),i(t)},d.prototype.find=function(t){var e=i();if(!t)return e;var n,o=[];if("string"===typeof t)for(t=t.trim(),n=0;n<this.length;n++){var a=this[n];if(r.isElementNode(a)){var s=a.getAttribute("id"),l=s||"dx-query-children";s||f(a,"id",l);var u=(l="[id='"+l+"'] ")+t.replace(/([^\\])(,)/g,"$1, "+l);o.push.apply(o,r.querySelectorAll(a,u)),f(a,"id",s)}else r.isDocument(a)&&o.push.apply(o,r.querySelectorAll(a,t))}else for(n=0;n<this.length;n++)t=r.isNode(t)?t:t[0],this[n]!==t&&this[n].contains(t)&&o.push(t);return e.add(o)};var g=function(t,e){return!e.nodeType||!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)};d.prototype.filter=function(t){if(!t)return i();if(":visible"===t)return this.filter(g);if(":hidden"===t)return this.filter((function(t,e){return!g(0,e)}));for(var e=[],n=0;n<this.length;n++){var o=this[n];if(r.isElementNode(o)&&"string"===s.type(t))r.elementMatches(o,t)&&e.push(o);else if(r.isNode(t)||s.isWindow(t))t===o&&e.push(o);else if(s.isFunction(t))t.call(o,n,o)&&e.push(o);else for(var a=0;a<t.length;a++)t[a]===o&&e.push(o)}return i(e)},d.prototype.not=function(t){for(var e=[],n=this.filter(t).toArray(),o=0;o<this.length;o++)-1===n.indexOf(this[o])&&e.push(this[o]);return i(e)},d.prototype.is=function(t){return!!this.filter(t).length},d.prototype.children=function(t){for(var e=[],n=0;n<this.length;n++)for(var o=this[n]?this[n].childNodes:[],a=0;a<o.length;a++)r.isElementNode(o[a])&&e.push(o[a]);return e=i(e),t?e.filter(t):e},d.prototype.siblings=function(){var t=this[0];if(!t||!t.parentNode)return i();for(var e=[],n=t.parentNode.childNodes||[],o=0;o<n.length;o++){var a=n[o];r.isElementNode(a)&&a!==t&&e.push(a)}return i(e)},d.prototype.each=function(t){for(var e=0;e<this.length&&!1!==t.call(this[e],e,this[e]);e++);},d.prototype.index=function(t){return t?(t=i(t),this.toArray().indexOf(t[0])):this.parent().children().index(this)},d.prototype.get=function(t){return this[t<0?this.length+t:t]},d.prototype.eq=function(t){return t=t<0?this.length+t:t,i(this[t])},d.prototype.first=function(){return this.eq(0)},d.prototype.last=function(){return this.eq(-1)},d.prototype.parent=function(t){if(!this[0])return i();var e=i(this[0].parentNode);return!t||e.is(t)?e:i()},d.prototype.parents=function(t){for(var e=[],n=this.parent();n&&n[0]&&!r.isDocument(n[0]);)r.isElementNode(n[0])&&(!t||t&&n.is(t))&&e.push(n.get(0)),n=n.parent();return i(e)},d.prototype.closest=function(t){if(this.is(t))return this;for(var e=this.parent();e&&e.length;){if(e.is(t))return e;e=e.parent()}return i()},d.prototype.next=function(t){if(!this[0])return i();var e=i(this[0].nextSibling);if(!arguments.length)return e;for(;e&&e.length;){if(e.is(t))return e;e=e.next()}return i()},d.prototype.prev=function(){return this[0]?i(this[0].previousSibling):i()},d.prototype.add=function(t){for(var e=i(t),n=this.toArray(),o=0;o<e.length;o++){var r=e[o];-1===n.indexOf(r)&&n.push(r)}return i(n)};var _=[];d.prototype.splice=function(){return i(_.splice.apply(this,arguments))},d.prototype.slice=function(){return i(_.slice.apply(this,arguments))},d.prototype.toArray=function(){return _.slice.call(this)};var v=function(t){return s.isWindow(t)?t:t.defaultView};d.prototype.offset=function(){if(this[0]){if(!this[0].getClientRects().length)return{top:0,left:0};var t=this[0].getBoundingClientRect(),e=v(this[0].ownerDocument),n=this[0].ownerDocument.documentElement;return{top:t.top+e.pageYOffset-n.clientTop,left:t.left+e.pageXOffset-n.clientLeft}}},d.prototype.offsetParent=function(){if(!this[0])return i();for(var t=i(this[0].offsetParent);t[0]&&"static"===t.css("position");)t=i(t[0].offsetParent);return t=t[0]?t:i(r.getDocumentElement())},d.prototype.position=function(){if(this[0]){var t,e=parseFloat(this.css("marginTop")),n=parseFloat(this.css("marginLeft"));if("fixed"===this.css("position"))return{top:(t=this[0].getBoundingClientRect()).top-e,left:t.left-n};t=this.offset();var i=this.offsetParent(),o={top:0,left:0};return"HTML"!==i[0].nodeName&&(o=i.offset()),o={top:o.top+parseFloat(i.css("borderTopWidth")),left:o.left+parseFloat(i.css("borderLeftWidth"))},{top:t.top-o.top-e,left:t.left-o.left-n}}},[{name:"scrollLeft",offsetProp:"pageXOffset",scrollWindow:function(t,e){t.scrollTo(e,t.pageYOffset)}},{name:"scrollTop",offsetProp:"pageYOffset",scrollWindow:function(t,e){t.scrollTo(t.pageXOffset,e)}}].forEach((function(t){var e=t.name;d.prototype[e]=function(n){if(this[0]){var i=v(this[0]);return void 0===n?i?i[t.offsetProp]:this[0][e]:(i?t.scrollWindow(i,n):this[0][e]=n,this)}}})),d.prototype.data=function(t,e){if(this[0])return arguments.length<2?o.data.call(i,this[0],t):(o.data.call(i,this[0],t,e),this)},d.prototype.removeData=function(t){return this[0]&&o.removeData(this[0],t),this};var y=function(){return i.apply(this,arguments)};Object.defineProperty(y,"fn",{enumerable:!0,configurable:!0,get:function(){return i.fn},set:function(t){i.fn=t}}),t.exports={set:function(t){i=t},get:function(){return y}}},function(t,e,n){"use strict";var i=["pageX","pageY","screenX","screenY","clientX","clientY"];t.exports=function(t){i.forEach((function(e){t(e,(function(t){return function(t,e){if(e[t]&&!e.touches||!e.touches)return e[t];var n=e.touches.length?e.touches:e.changedTouches;return n.length?n[0][t]:void 0}(e,t)}))}),this)}},function(t,e,n){"use strict";var i=n(2).isFunction,o=/cubic-bezier\((\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\)/,r={linear:"cubic-bezier(0, 0, 1, 1)",swing:"cubic-bezier(0.445, 0.05, 0.55, 0.95)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1)","ease-in":"cubic-bezier(0.42, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.58, 1)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1)"},a=function(t,e,n,i){var o=3*t,r=3*(n-t)-o,a=1-o-r,s=3*e,l=3*(i-e)-s,u=1-s-l,c=function(t){return t*(o+t*(r+t*a))},d=function(t){return o+t*(2*r+3*t*a)};return function(t){return function(t){return t*(s+t*(l+t*u))}(function(t){for(var e,n=t,i=0;i<14&&(e=c(n)-t,!(Math.abs(e)<.001));)n-=e/d(n),i++;return n}(t))}},s={};e.setEasing=function(t){s=t},e.getEasing=function(t){return s[t]},e.convertTransitionTimingFuncToEasing=function(t){var e,n=(t=r[t]||t).match(o);n||(n=r[e="linear"].match(o)),n=n.slice(1,5);for(var l=0;l<n.length;l++)n[l]=parseFloat(n[l]);var u=e||"cubicbezier_"+n.join("_").replace(/\./g,"p");return i(s[u])||(s[u]=function(t,e,i,o,r){return o*a(n[0],n[1],n[2],n[3])(e/r)+i}),u}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(38),r=(i=o)&&i.__esModule?i:{default:i};e.default=function t(e,n){if(!n)throw r.default.Error("E0017");return Array.isArray(e)?e.map((function(e){return t(e,n)})).join(" "):-1!==e.indexOf(" ")?t(e.split(/\s+/g),n):"".concat(e,".").concat(n)}},function(t,e,n){"use strict";var i,o=n(214),r=n(358),a=n(0).extend,s={dxpointerdown:"pointerdown",dxpointermove:"pointermove",dxpointerup:"pointerup",dxpointercancel:"pointercancel",dxpointerover:"pointerover",dxpointerout:"pointerout",dxpointerenter:"pointerenter",dxpointerleave:"pointerleave"},l=!1,u=function(){l||(i=new r(s,(function(t,e){return t.pointerId===e.pointerId}),(function(t){t.isPrimary&&i.reset()})),l=!0)},c=o.inherit({ctor:function(){this.callBase.apply(this,arguments),u()},_fireEvent:function(t){return this.callBase(a({pointers:i.pointers(),pointerId:t.originalEvent.pointerId},t))}});c.map=s,c.resetObserver=function(){i.reset()},t.exports=c},function(t,e,n){"use strict";var i=n(0).extend,o=n(214),r=n(359),a=n(357),s=n(11),l=!1,u=function(){l||(r.activate(),l=!0)},c=o.inherit({EVENT_LOCK_TIMEOUT:100,ctor:function(){this.callBase.apply(this,arguments),u()},_handler:function(t){var e=s.isMouseEvent(t);if(e||(this._skipNextEvents=!0),!e||!this._mouseLocked){if(!e||!this._skipNextEvents)return this.callBase(t);this._skipNextEvents=!1,this._mouseLocked=!0,clearTimeout(this._unlockMouseTimer);var n=this;this._unlockMouseTimer=setTimeout((function(){n._mouseLocked=!1}),this.EVENT_LOCK_TIMEOUT)}},_fireEvent:function(t){var e=s.isMouseEvent(t.originalEvent)?r.normalize:a.normalize;return this.callBase(i(e(t.originalEvent),t))},dispose:function(){this.callBase(),this._skipNextEvents=!1,this._mouseLocked=!1,clearTimeout(this._unlockMouseTimer)}});c.map={dxpointerdown:"touchstart mousedown",dxpointermove:"touchmove mousemove",dxpointerup:"touchend mouseup",dxpointercancel:"touchcancel",dxpointerover:"mouseover",dxpointerout:"mouseout",dxpointerenter:"mouseenter",dxpointerleave:"mouseleave"},c.resetObserver=r.resetObserver,t.exports=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(255),r=(i=o)&&i.__esModule?i:{default:i};e.default=new r.default},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=O(n(3)),r=O(n(6)),a=O(n(4)),s=n(17),l=O(n(15)),u=n(2),c=n(7),d=n(0),h=n(16),f=O(n(5)),p=O(n(155)),m=O(n(45)),g=O(n(20)),_=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=E();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),v=O(n(28)),y=O(n(99)),b=O(n(160)),w=O(n(91)),x=O(n(12)),C=O(n(135)),S=n(29),k=O(n(25)),I=O(n(257)),T=n(73);function E(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return E=function(){return t},t}function O(t){return t&&t.__esModule?t:{default:t}}var M="dx-item",P=/^([^.]+\[\d+\]\.)+([\w.]+)$/,D=g.default.inherit({_activeStateUnit:"."+M,_supportedKeys:function(){var t=function(t){var e=(0,o.default)(this.option("focusedElement"));e.length&&this._itemClickHandler((0,d.extend)({},t,{target:e,currentTarget:e}))},e=function(t,e){e.preventDefault(),e.stopPropagation(),this._moveFocus(t,e)};return(0,d.extend)(this.callBase(),{space:function(e){e.preventDefault(),t.call(this,e)},enter:t,leftArrow:e.bind(this,"left"),rightArrow:e.bind(this,"right"),upArrow:e.bind(this,"up"),downArrow:e.bind(this,"down"),pageUp:e.bind(this,"up"),pageDown:e.bind(this,"down"),home:e.bind(this,"first"),end:e.bind(this,"last")})},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{selectOnFocus:!1,loopItemFocus:!0,items:[],itemTemplate:"item",onItemRendered:null,onItemClick:null,onItemHold:null,itemHoldTimeout:750,onItemContextMenu:null,onFocusedItemChanged:null,noDataText:x.default.format("dxCollectionWidget-noDataText"),dataSource:null,_itemAttributes:{},itemTemplateProperty:"template",focusOnSelectedItem:!0,focusedElement:null,displayExpr:void 0,disabledExpr:function(t){return t?t.disabled:void 0},visibleExpr:function(t){return t?t.visible:void 0}})},_init:function(){this._compileDisplayGetter(),this.callBase(),this._cleanRenderedItems(),this._refreshDataSource()},_compileDisplayGetter:function(){var t=this.option("displayExpr");this._displayGetter=t?(0,S.compileGetter)(this.option("displayExpr")):void 0},_initTemplates:function(){this._initItemsFromMarkup(),this._initDefaultItemTemplate(),this.callBase()},_getAnonymousTemplateName:function(){return"item"},_initDefaultItemTemplate:function(){var t=this._getFieldsMap();this._templateManager.addDefaultTemplates({item:new T.BindableTemplate(function(e,n){(0,u.isPlainObject)(n)?this._prepareDefaultItemTemplate(n,e):(t&&(0,u.isFunction)(t.text)&&(n=t.text(n)),e.text(String(a.default.ensureDefined(n,""))))}.bind(this),this._getBindableFields(),this.option("integrationOptions.watchMethod"),t)})},_getBindableFields:function(){return["text","html"]},_getFieldsMap:function(){if(this._displayGetter)return{text:this._displayGetter}},_prepareDefaultItemTemplate:function(t,e){(0,u.isDefined)(t.text)&&e.text(t.text),(0,u.isDefined)(t.html)&&e.html(t.html)},_initItemsFromMarkup:function(){var t=this,e=this.$element().contents().filter("[data-options*='dxItem']");if(e.length&&!this.option("items").length){var n=[].slice.call(e).map((function(e){var n=(0,o.default)(e),i=(0,s.getElementOptions)(e).dxItem;return n.html().trim()&&!i.template?i.template=t._prepareItemTemplate(n):n.remove(),i}));this.option("items",n)}},_prepareItemTemplate:function(t){var e="tmpl-"+new m.default,n=t.detach().clone().removeAttr("data-options").addClass("dx-template-wrapper");return this._saveTemplate(e,n),e},_dataSourceOptions:function(){return{paginate:!1}},_cleanRenderedItems:function(){this._renderedItemsCount=0},_focusTarget:function(){return this.$element()},_focusInHandler:function(t){if(this.callBase.apply(this,arguments),-1!==(0,h.inArray)(t.target,this._focusTarget())){var e=(0,o.default)(this.option("focusedElement"));if(e.length)this._setFocusedItem(e);else{var n=this._getActiveItem();n.length&&this.option("focusedElement",(0,s.getPublicElement)(n))}}},_focusOutHandler:function(){this.callBase.apply(this,arguments);var t=(0,o.default)(this.option("focusedElement"));this._updateFocusedItemState(t,!1)},_getActiveItem:function(t){var e=(0,o.default)(this.option("focusedElement"));if(e.length)return e;var n=this.option("focusOnSelectedItem")?this.option("selectedIndex"):0,i=this._getActiveElement(),r=i.length-1;return n<0&&(n=t?r:0),i.eq(n)},_moveFocus:function(t){var e,n=this._getAvailableItems();switch(t){case"pageup":case"up":e=this._prevItem(n);break;case"pagedown":case"down":e=this._nextItem(n);break;case"right":e=this.option("rtlEnabled")?this._prevItem(n):this._nextItem(n);break;case"left":e=this.option("rtlEnabled")?this._nextItem(n):this._prevItem(n);break;case"first":e=n.first();break;case"last":e=n.last();break;default:return!1}0!==e.length&&this.option("focusedElement",(0,s.getPublicElement)(e))},_getVisibleItems:function(t){return(t=t||this._itemElements()).filter(":visible")},_getAvailableItems:function(t){return this._getVisibleItems(t).not(".dx-state-disabled")},_prevItem:function(t){var e=this._getActiveItem(),n=t.index(e),i=t.last(),r=(0,o.default)(t[n-1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=i),r},_nextItem:function(t){var e=this._getActiveItem(!0),n=t.index(e),i=t.first(),r=(0,o.default)(t[n+1]),a=this.option("loopItemFocus");return 0===r.length&&a&&(r=i),r},_selectFocusedItem:function(t){this.selectItem(t)},_updateFocusedItemState:function(t,e,n){var i=(0,o.default)(t);i.length&&(this._refreshActiveDescendant(),this._refreshItemId(i,n),this._toggleFocusClass(e,i))},_refreshActiveDescendant:function(t){this.setAria("activedescendant",(0,u.isDefined)(this.option("focusedElement"))?this.getFocusedItemId():null,t)},_refreshItemId:function(t,e){!e&&this.option("focusedElement")?this.setAria("id",this.getFocusedItemId(),t):this.setAria("id",null,t)},_setFocusedItem:function(t){t&&t.length&&(this._updateFocusedItemState(t,!0),this.onFocusedItemChanged(this.getFocusedItemId()),this.option("selectOnFocus")&&this._selectFocusedItem(t))},_findItemElementByItem:function(t){var e=(0,o.default)(),n=this;return this.itemElements().each((function(){var i=(0,o.default)(this);if(i.data(n._itemDataKey())===t)return e=i,!1})),e},_getIndexByItem:function(t){return this.option("items").indexOf(t)},_itemOptionChanged:function(t,e,n,i){var o=this._findItemElementByItem(t);o.length&&(this.constructor.ItemClass.getInstance(o).setDataField(e,n)||this._refreshItem(o,t),"disabled"===e&&n&&this._resetItemFocus(o))},_resetItemFocus:function(t){t.is(this.option("focusedElement"))&&this.option("focusedElement",null)},_refreshItem:function(t){var e=this._getItemData(t),n=t.data(this._itemIndexKey());this._renderItem(this._renderedItemsCount+n,e,null,t)},_optionChanged:function(t){if("items"===t.name){var e=t.fullName.match(P);if(e&&e.length){var n=e[e.length-1],i=t.fullName.replace("."+n,""),r=this.option(i);return void this._itemOptionChanged(r,n,t.value,t.previousValue)}}switch(t.name){case"items":case"_itemAttributes":case"itemTemplateProperty":case"showItemDataTitle":this._cleanRenderedItems(),this._invalidate();break;case"dataSource":this._refreshDataSource(),this._renderEmptyMessage();break;case"noDataText":this._renderEmptyMessage();break;case"itemTemplate":this._invalidate();break;case"onItemRendered":this._createItemRenderAction();break;case"onItemClick":break;case"onItemHold":case"itemHoldTimeout":this._attachHoldEvent();break;case"onItemContextMenu":this._attachContextMenuEvent();break;case"onFocusedItemChanged":this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged");break;case"selectOnFocus":case"loopItemFocus":case"focusOnSelectedItem":break;case"focusedElement":this._updateFocusedItemState(t.previousValue,!1,!0),this._setFocusedItem((0,o.default)(t.value));break;case"displayExpr":this._compileDisplayGetter(),this._initDefaultItemTemplate(),this._invalidate();break;case"visibleExpr":case"disabledExpr":this._invalidate();break;default:this.callBase(t)}},_invalidate:function(){return this.option("focusedElement",null),this.callBase.apply(this,arguments)},_loadNextPage:function(){var t=this._dataSource;return this._expectNextPageLoading(),t.pageIndex(1+t.pageIndex()),t.load()},_expectNextPageLoading:function(){this._startIndexForAppendedItems=0},_expectLastItemLoading:function(){this._startIndexForAppendedItems=-1},_forgetNextPageLoading:function(){this._startIndexForAppendedItems=null},_dataSourceChangedHandler:function(t){var e=this.option("items");this._initialized&&e&&this._shouldAppendItems()?(this._renderedItemsCount=e.length,this._isLastPage()&&-1===this._startIndexForAppendedItems||(this.option().items=e.concat(t.slice(this._startIndexForAppendedItems))),this._forgetNextPageLoading(),this._refreshContent()):this.option("items",t.slice())},_refreshContent:function(){this._prepareContent(),this._renderContent()},_dataSourceLoadErrorHandler:function(){this._forgetNextPageLoading(),this.option("items",this.option("items"))},_shouldAppendItems:function(){return null!=this._startIndexForAppendedItems&&this._allowDynamicItemsAppend()},_allowDynamicItemsAppend:function(){return!1},_clean:function(){this._cleanFocusState(),this._cleanItemContainer()},_cleanItemContainer:function(){(0,o.default)(this._itemContainer()).empty()},_dispose:function(){this.callBase(),clearTimeout(this._itemFocusTimeout)},_refresh:function(){this._cleanRenderedItems(),this.callBase.apply(this,arguments)},_itemContainer:function(){return this.$element()},_itemClass:function(){return M},_itemContentClass:function(){return this._itemClass()+"-content"},_selectedItemClass:function(){return"dx-item-selected"},_itemResponseWaitClass:function(){return"dx-item-response-wait"},_itemSelector:function(){return"."+this._itemClass()},_itemDataKey:function(){return"dxItemData"},_itemIndexKey:function(){return"dxItemIndex"},_itemElements:function(){return this._itemContainer().find(this._itemSelector())},_initMarkup:function(){this.callBase(),this.onFocusedItemChanged=this._createActionByOption("onFocusedItemChanged"),this.$element().addClass("dx-collection"),this._prepareContent()},_prepareContent:a.default.deferRenderer((function(){this._renderContentImpl()})),_renderContent:function(){this._fireContentReadyAction()},_render:function(){this.callBase(),this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent()},_attachClickEvent:function(){var t=this._itemSelector(),e=_.addNamespace(k.default.name,this.NAME),n=_.addNamespace(v.default.down,this.NAME),i=this,a=new p.default((function(t){var e=t.event;i._itemPointerDownHandler(e)}));r.default.off(this._itemContainer(),e,t),r.default.off(this._itemContainer(),n,t),r.default.on(this._itemContainer(),e,t,function(t){this._itemClickHandler(t)}.bind(this)),r.default.on(this._itemContainer(),n,t,(function(t){a.execute({element:(0,o.default)(t.target),event:t})}))},_itemClickHandler:function(t,e,n){this._itemDXEventHandler(t,"onItemClick",e,n)},_itemPointerDownHandler:function(t){this.option("focusStateEnabled")&&(this._itemFocusHandler=function(){if(clearTimeout(this._itemFocusTimeout),this._itemFocusHandler=null,!t.isDefaultPrevented()){var e=(0,o.default)(t.target),n=e.closest(this._itemElements()),i=this._closestFocusable(e);n.length&&i&&-1!==(0,h.inArray)(i.get(0),this._focusTarget())&&this.option("focusedElement",(0,s.getPublicElement)(n))}}.bind(this),this._itemFocusTimeout=setTimeout(this._forcePointerDownFocus.bind(this)))},_closestFocusable:function(t){if(t.is(w.default.focusable))return t;for(t=t.parent();t.length&&!l.default.isDocument(t.get(0));){if(t.is(w.default.focusable))return t;t=t.parent()}},_forcePointerDownFocus:function(){this._itemFocusHandler&&this._itemFocusHandler()},_updateFocusState:function(){this.callBase.apply(this,arguments),this._forcePointerDownFocus()},_attachHoldEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),n=_.addNamespace(C.default.name,this.NAME);r.default.off(t,n,e),r.default.on(t,n,e,{timeout:this._getHoldTimeout()},this._itemHoldHandler.bind(this))},_getHoldTimeout:function(){return this.option("itemHoldTimeout")},_shouldFireHoldEvent:function(){return this.hasActionSubscription("onItemHold")},_itemHoldHandler:function(t){this._shouldFireHoldEvent()?this._itemDXEventHandler(t,"onItemHold"):t.cancel=!0},_attachContextMenuEvent:function(){var t=this._itemContainer(),e=this._itemSelector(),n=_.addNamespace(I.default.name,this.NAME);r.default.off(t,n,e),r.default.on(t,n,e,this._itemContextMenuHandler.bind(this))},_shouldFireContextMenuEvent:function(){return this.hasActionSubscription("onItemContextMenu")},_itemContextMenuHandler:function(t){this._shouldFireContextMenuEvent()?this._itemDXEventHandler(t,"onItemContextMenu"):t.cancel=!0},_renderContentImpl:function(){var t=this.option("items")||[];this._renderedItemsCount?this._renderItems(t.slice(this._renderedItemsCount)):this._renderItems(t)},_renderItems:function(t){t.length&&f.default.each(t,function(t,e){this._renderItem(this._renderedItemsCount+t,e)}.bind(this)),this._renderEmptyMessage()},_renderItem:function(t,e,n,i){n=n||this._itemContainer();var o=this._renderItemFrame(t,e,n,i);this._setElementData(o,e,t),o.attr(this.option("_itemAttributes")),this._attachItemClickEvent(e,o);var r=this._getItemContent(o),a=this._renderItemContent({index:t,itemData:e,container:(0,s.getPublicElement)(r),contentClass:this._itemContentClass(),defaultTemplateName:this.option("itemTemplate")}),l=this;return(0,c.when)(a).done((function(n){l._postprocessRenderItem({itemElement:o,itemContent:n,itemData:e,itemIndex:t}),l._executeItemRenderAction(t,e,(0,s.getPublicElement)(o))})),o},_getItemContent:function(t){var e=t.find(".dx-item-content-placeholder");return e.removeClass("dx-item-content-placeholder"),e},_attachItemClickEvent:function(t,e){t&&t.onClick&&r.default.on(e,k.default.name,function(n){this._itemEventHandlerByHandler(e,t.onClick,{event:n})}.bind(this))},_renderItemContent:function(t){var e=this._getItemTemplateName(t),n=this._getTemplate(e);this._addItemContentClasses(t);var i=(0,o.default)(this._createItemByTemplate(n,t));return i.hasClass("dx-template-wrapper")?this._renderItemContentByNode(t,i):t.container},_renderItemContentByNode:function(t,e){return(0,o.default)(t.container).replaceWith(e),t.container=(0,s.getPublicElement)(e),this._addItemContentClasses(t),e},_addItemContentClasses:function(t){var e=[M+"-content",t.contentClass];(0,o.default)(t.container).addClass(e.join(" "))},_appendItemToContainer:function(t,e,n){e.appendTo(t)},_renderItemFrame:function(t,e,n,i){var r=(0,o.default)("<div>");if(new this.constructor.ItemClass(r,this._itemOptions(),e||{}),i&&i.length?i.replaceWith(r):this._appendItemToContainer.call(this,n,r,t),this.option("showItemDataTitle")){var a=this._displayGetter?this._displayGetter(e):e;r.attr("title",a)}return r},_itemOptions:function(){var t=this;return{watchMethod:function(){return t.option("integrationOptions.watchMethod")},owner:t,fieldGetter:function(e){var n=t.option(e+"Expr");return(0,S.compileGetter)(n)}}},_postprocessRenderItem:a.default.noop,_executeItemRenderAction:function(t,e,n){this._getItemRenderAction()({itemElement:n,itemIndex:t,itemData:e})},_setElementData:function(t,e,n){t.addClass([M,this._itemClass()].join(" ")).data(this._itemDataKey(),e).data(this._itemIndexKey(),n)},_createItemRenderAction:function(){return this._itemRenderAction=this._createActionByOption("onItemRendered",{element:this.element(),excludeValidators:["disabled","readOnly"],category:"rendering"})},_getItemRenderAction:function(){return this._itemRenderAction||this._createItemRenderAction()},_getItemTemplateName:function(t){var e=t.itemData,n=t.templateProperty||this.option("itemTemplateProperty");return e&&e[n]||t.defaultTemplateName},_createItemByTemplate:function(t,e){return t.render({model:e.itemData,container:e.container,index:e.index})},_emptyMessageContainer:function(){return this._itemContainer()},_renderEmptyMessage:function(t){t=t||this.option("items");var e=this.option("noDataText"),n=!e||t&&t.length||this._isDataSourceLoading();n&&this._$noData&&(this._$noData.remove(),this._$noData=null,this.setAria("label",void 0)),n||(this._$noData=this._$noData||(0,o.default)("<div>").addClass("dx-empty-message"),this._$noData.appendTo(this._emptyMessageContainer()).html(e),this.setAria("label",e)),this.$element().toggleClass("dx-empty-collection",!n)},_itemDXEventHandler:function(t,e,n,i){this._itemEventHandler(t.target,e,(0,d.extend)(n,{event:t}),i)},_itemEventHandler:function(t,e,n,i){var o=this._createActionByOption(e,(0,d.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(t,o,n)},_itemEventHandlerByHandler:function(t,e,n,i){var o=this._createAction(e,(0,d.extend)({validatingTargetName:"itemElement"},i));return this._itemEventHandlerImpl(t,o,n)},_itemEventHandlerImpl:function(t,e,n){var i=this._closestItemElement((0,o.default)(t)),r=(0,d.extend)({},n);return e((0,d.extend)(n,this._extendActionArgs(i),r))},_extendActionArgs:function(t){return{itemElement:(0,s.getPublicElement)(t),itemIndex:this._itemElements().index(t),itemData:this._getItemData(t)}},_closestItemElement:function(t){return(0,o.default)(t).closest(this._itemSelector())},_getItemData:function(t){return(0,o.default)(t).data(this._itemDataKey())},_getSummaryItemsWidth:function(t,e){var n=0;return t&&f.default.each(t,(function(t,i){n+=(0,o.default)(i).outerWidth(e||!1)})),n},getFocusedItemId:function(){return this._focusedItemId||(this._focusedItemId="dx-"+new m.default),this._focusedItemId},itemElements:function(){return this._itemElements()},itemsContainer:function(){return this._itemContainer()}}).include(y.default);D.ItemClass=b.default,t.exports=D},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Options=void 0;var i=n(2),o=n(4),r=n(626),a=n(54),s=n(256),l=n(0);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.Options=function(){function t(e,n,i,o){var a=this;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._deprecatedCallback,this._startChangeCallback,this._endChangeCallback,this._default=n,this._deprecated=o,this._deprecatedNames=[],this._initDeprecatedNames(),this._optionManager=new r.OptionManager(e,i),this._optionManager.onRelevantNamesPrepared((function(t,e,n,i){return a._setRelevantNames(t,e,n,i)})),this._cachedOptions={},this._rules=[]}var e,n,c;return e=t,(n=[{key:"_initDeprecatedNames",value:function(){for(var t in this._deprecated)this._deprecatedNames.push(t)}},{key:"_getByRules",value:function(t){return t=Array.isArray(t)?this._rules.concat(t):this._rules,(0,s.convertRulesToOptions)(t)}},{key:"_notifyDeprecated",value:function(t){var e=this._deprecated[t];e&&this._deprecatedCallback(t,e)}},{key:"_setRelevantNames",value:function(t,e,n,i){if(e){var o=this._normalizeName(e,i);o&&o!==e&&(this._setField(t,o,n),this._clearField(t,e))}}},{key:"_setField",value:function(t,e,n){var i="",o=null;do{i=i?".".concat(i):"",i=(0,s.getFieldName)(e)+i,o=(e=(0,s.getParentName)(e))?this._optionManager.get(t,e,!1):t}while(!o);o[i]=n}},{key:"_clearField",value:function(t,e){delete t[e];var n=(0,s.getParentName)(e),i=n?this._optionManager.get(t,n,!1):t;i&&delete i[(0,s.getFieldName)(e)]}},{key:"_normalizeName",value:function(t,e){if(this._deprecatedNames.length&&t)for(var n=0;n<this._deprecatedNames.length;n++)if(this._deprecatedNames[n]===t){var i=this._deprecated[t];if(i)return!e&&this._notifyDeprecated(t),i.alias||t}return t}},{key:"addRules",value:function(t){this._rules=t.concat(this._rules)}},{key:"applyRules",value:function(t){var e=this._getByRules(t);this.silent(e)}},{key:"dispose",value:function(){this._deprecatedCallback=o.noop,this._startChangeCallback=o.noop,this._endChangeCallback=o.noop,this._optionManager.dispose()}},{key:"onChanging",value:function(t){this._optionManager.onChanging(t)}},{key:"onChanged",value:function(t){this._optionManager.onChanged(t)}},{key:"onDeprecated",value:function(t){this._deprecatedCallback=t}},{key:"onStartChange",value:function(t){this._startChangeCallback=t}},{key:"onEndChange",value:function(t){this._endChangeCallback=t}},{key:"isInitial",value:function(t){var e=this.silent(t),n=this.initial(t);return(0,i.isFunction)(e)&&(0,i.isFunction)(n)?e.toString()===n.toString():(0,o.equalByValue)(e,n)}},{key:"initial",value:function(t){return(0,s.getNestedOptionValue)(this._initial,t)}},{key:"option",value:function(t,e){var n=arguments.length<2&&"object"!==(0,i.type)(t);if(n)return this._optionManager.get(void 0,this._normalizeName(t));this._startChangeCallback();try{this._optionManager.set(t,e)}finally{this._endChangeCallback()}}},{key:"silent",value:function(t,e){var n=arguments.length<2&&"object"!==(0,i.type)(t);if(n)return this._optionManager.get(void 0,t,void 0,!0);this._optionManager.set(t,e,void 0,!0)}},{key:"reset",value:function(t){var e=this;if(t){var n=t.replace(/\[([^\]])\]/g,".$1").split(".").reduce((function(t,n){return t?t[n]:e.initial(n)}),null),o=(0,i.isObject)(n)?(0,a.clone)(n):n;this._optionManager.set(t,o,!1)}}},{key:"getAliasesByName",value:function(t){var e=this;return Object.keys(this._deprecated).filter((function(n){return t===e._deprecated[n].alias}))}},{key:"isDeprecated",value:function(t){return Object.prototype.hasOwnProperty.call(this._deprecated,t)}},{key:"cache",value:function(t,e){var n=arguments.length<2;if(n)return this._cachedOptions[t];this._cachedOptions[t]=(0,l.extend)(this._cachedOptions[t],e)}},{key:"_initial",set:function(t){this._initialOptions=t},get:function(){if(!this._initialOptions){var t=this._getByRules(this.silent("defaultOptionsRules"));this._initialOptions=this._default,this._optionManager._setByReference(this._initialOptions,t)}return this._initialOptions}}])&&u(e.prototype,n),c&&u(e,c),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OptionManager=void 0;var i=n(29),o=n(4),r=n(627),a=n(0),s=n(2),l=n(256);function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var c={},d={};e.OptionManager=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=e,this._optionsByReference=n,this._changingCallback,this._changedCallback,this._namePreparedCallbacks}var e,n,h;return e=t,(n=[{key:"_setByReference",value:function(t,e){for(var n in(0,a.extend)(!0,t,e),this._optionsByReference)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}},{key:"_setPreparedValue",value:function(t,e,n,o){var a=this.get(this._options,t,!1);if(!(0,r.equals)(a,e)){var l=t.split(/[.[]/);!o&&this._changingCallback(t,a,e),d[t]=d[t]||(0,i.compileSetter)(t),d[t](this._options,e,{functionsAsIs:!0,merge:(0,s.isDefined)(n)?n:!this._optionsByReference[t],unwrapObservables:l.length>1&&!!this._optionsByReference[l[0]]}),!o&&this._changedCallback(t,e,a)}}},{key:"_prepareRelevantNames",value:function(t,e,n,i){if((0,s.isPlainObject)(n))for(var o in n)this._prepareRelevantNames(t,"".concat(e,".").concat(o),n[o]);this._namePreparedCallbacks(t,e,n,i)}},{key:"get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._options,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;return c[e]=c[e]||(0,i.compileGetter)(e),c[e](t,{functionsAsIs:!0,unwrapObservables:n})}},{key:"set",value:function(t,e,n,i){for(var o in t=(0,l.normalizeOptions)(t,e))this._prepareRelevantNames(t,o,t[o],i);for(var r in t)this._setPreparedValue(r,t[r],n,i)}},{key:"onRelevantNamesPrepared",value:function(t){this._namePreparedCallbacks=t}},{key:"onChanging",value:function(t){this._changingCallback=t}},{key:"onChanged",value:function(t){this._changedCallback=t}},{key:"dispose",value:function(){this._changingCallback=o.noop,this._changedCallback=o.noop}}])&&u(e.prototype,n),h&&u(e,h),t}()},function(t,e,n){"use strict";var i=a(n(15)),o=n(29),r=a(n(2));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.equals=function(t,e){return t=(0,o.toComparable)(t,!0),e=(0,o.toComparable)(e,!0),t&&e&&r.default.isRenderer(t)&&r.default.isRenderer(e)?e.is(t):!(t===t||e===e)||(0===t&&0===e?function(t,e){return 1/t===1/e}(t,e):!(null!==t&&"object"===s(t)&&!i.default.isElementNode(t))&&t===e)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PostponedOperations=void 0;var i=n(7),o=n(2);function r(t){return function(t){if(Array.isArray(t))return a(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.PostponedOperations=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._postponedOperations={}}var e,n,a;return e=t,(n=[{key:"add",value:function(t,e,n){if(t in this._postponedOperations)n&&this._postponedOperations[t].promises.push(n);else{var o=new i.Deferred;this._postponedOperations[t]={fn:e,completePromise:o,promises:n?[n]:[]}}return this._postponedOperations[t].completePromise.promise()}},{key:"callPostponedOperations",value:function(){for(var t in this._postponedOperations){var e=this._postponedOperations[t];(0,o.isDefined)(e)&&(e.promises&&e.promises.length?i.when.apply(void 0,r(e.promises)).done(e.fn).then(e.completePromise.resolve):e.fn().done(e.completePromise.resolve))}this._postponedOperations={}}}])&&s(e.prototype,n),a&&s(e,a),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(2),s=n(4),l=n(0),u=n(38),c=n(17),d=n(132),h=n(98),f=n(46),p=n(630);function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var g={button:!0,tabs:!0,dropDownMenu:!0},_=new d.FunctionTemplate((function(t){var e=t.model,n=t.parent,i=e.widget;if(!i)return(0,r.default)();var o=(0,r.default)("<div>"),a=e.options||{};if(g[i]){var s=i;i=(0,f.camelize)("dx-"+i),(0,u.log)("W0001",'dxToolbar - "widget" item field',s,"16.1","Use: "+i+"instead")}return n?n._createComponent(o,i,a):o[i](a),o})),v=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._tempTemplates=[],this._defaultTemplates={},this._anonymousTemplateName=n||"template",this._createElement=e||p.defaultCreateElement,this._createTemplateIfNeeded=this._createTemplateIfNeeded.bind(this)}var e,n,i;return e=t,i=[{key:"createDefaultOptions",value:function(){return{integrationOptions:{watchMethod:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.skipImmediate||e(t()),s.noop},templates:{"dx-polymorph-widget":_}}}}}],(n=[{key:"addDefaultTemplates",value:function(t){this._defaultTemplates=(0,l.extend)({},this._defaultTemplates,t)}},{key:"dispose",value:function(){this._tempTemplates.forEach((function(t){t.template.dispose&&t.template.dispose()})),this._tempTemplates=[]}},{key:"extractTemplates",value:function(t){return{templates:this._extractTemplates(t),anonymousTemplateMeta:this._extractAnonymousTemplate(t)}}},{key:"_extractTemplates",value:function(t){var e=t.contents().filter('[data-options*="dxTemplate"]'),n={};e.each((function(t,e){var i=(0,c.getElementOptions)(e).dxTemplate;if(i){if(!i.name)throw(0,u.Error)("E0023");(0,r.default)(e).addClass("dx-template-wrapper").detach(),n[i.name]=n[i.name]||[],n[i.name].push(e)}}));var i=[];for(var o in n){var a=(0,p.findTemplateByDevice)(n[o]);a&&i.push({name:o,template:this._createTemplate(a)})}return i}},{key:"_extractAnonymousTemplate",value:function(t){var e=t.contents().detach();return e.filter((function(t,e){var n=3===e.nodeType,i=(0,r.default)(e).text().trim().length<1;return!(n&&i)})).length>0?{template:this._createTemplate(e),name:this._anonymousTemplateName}:{}}},{key:"_createTemplateIfNeeded",value:function(t){var e=this._tempTemplates.filter((function(e){return e.source===(0,p.templateKey)(t)}))[0];if(e)return e.template;var n=this._createTemplate(t);return this._tempTemplates.push({template:n,source:(0,p.templateKey)(t)}),n}},{key:"_createTemplate",value:function(t){return this._createElement((0,p.validateTemplateSource)(t))}},{key:"getTemplate",value:function(t,e,n,i){var o=this,s=n.isAsyncTemplate,l=n.skipTemplates;return(0,a.isFunction)(t)?new d.FunctionTemplate((function(n){var u=t.apply(i,(0,p.getNormalizedTemplateArgs)(n));if(!(0,a.isDefined)(u))return new h.EmptyTemplate;var c=!1,f=(0,p.acquireTemplate)(u,(function(t){return t.nodeType||(0,a.isRenderer)(t)&&!(0,r.default)(t).is("script")?new d.FunctionTemplate((function(){return t})):(c=!0,o._createTemplate(t))}),e,s,l,o._defaultTemplates),m=f.render(n);return c&&f.dispose&&f.dispose(),m})):(0,p.acquireTemplate)(t,this._createTemplateIfNeeded,e,s,l,this._defaultTemplates)}},{key:"anonymousTemplateName",get:function(){return this._anonymousTemplateName}}])&&m(e.prototype,n),i&&m(e,i),t}();e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.acquireTemplate=e.acquireIntegrationTemplate=e.defaultCreateElement=e.templateKey=e.validateTemplateSource=e.getNormalizedTemplateArgs=e.addOneRenderedCall=e.findTemplateByDevice=void 0;var i=f(n(3)),o=n(2),r=n(4),a=n(0),s=n(157),l=n(156),u=n(98),c=n(17),d=f(n(18)),h=n(631);function f(t){return t&&t.__esModule?t:{default:t}}e.findTemplateByDevice=function(t){var e=(0,r.findBestMatches)(d.default.current(),t,(function(t){return(0,c.getElementOptions)(t).dxTemplate}))[0];return t.forEach((function(t){t!==e&&(0,i.default)(t).remove()})),e};var p=e.addOneRenderedCall=function(t){var e=t.render.bind(t);return(0,a.extend)({},t,{render:function(t){var n=e(t);return t&&t.onRendered&&t.onRendered(),n}})},m=(e.getNormalizedTemplateArgs=function(t){var e=[];return"model"in t&&e.push(t.model),"index"in t&&e.push(t.index),e.push(t.container),e},e.validateTemplateSource=function(t){return"string"===typeof t?(0,c.normalizeTemplateElement)(t):t},e.templateKey=function(t){return(0,o.isRenderer)(t)&&t[0]||t},e.defaultCreateElement=function(t){return new h.Template(t)},e.acquireIntegrationTemplate=function(t,e,n,i){var o=null;return i&&-1!==i.indexOf(t)||!(o=e[t])||o instanceof l.TemplateBase||n||(o=p(o)),o});e.acquireTemplate=function(t,e,n,r,a,c){return null==t?new u.EmptyTemplate:t instanceof s.ChildDefaultTemplate?c[t.name]:t instanceof l.TemplateBase?t:(0,o.isFunction)(t.render)&&!(0,o.isRenderer)(t)?p(t):t.nodeType||(0,o.isRenderer)(t)?e((0,i.default)(t)):m(t,n,r,a)||c[t]||e(t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Template=void 0;var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(156),s=n(17),l=n(360);function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(632),(0,l.registerTemplateEngine)("default",{compile:function(t){return(0,s.normalizeTemplateElement)(t)},render:function(t,e,n){return t.clone()}}),(0,l.setTemplateEngine)("default");e.Template=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(a,t);var e,n,i,o=h(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this))._element=t,e}return e=a,(n=[{key:"_renderCore",value:function(t){var e=t.transclude;return e||this._compiledTemplate||(this._compiledTemplate=(0,l.getCurrentTemplateEngine)().compile(this._element)),(0,r.default)("<div>").append(e?this._element:(0,l.getCurrentTemplateEngine)().render(this._compiledTemplate,t.model,t.index)).contents()}},{key:"source",value:function(){return(0,r.default)(this._element).clone()}}])&&c(e.prototype,n),i&&c(e,i),a}(a.TemplateBase)},function(t,e,n){"use strict";var i=n(17),o=n(360);(0,o.registerTemplateEngine)("jquery-tmpl",{compile:function(t){return(0,i.extractTemplateMarkup)(t)},render:function(t,e){return jQuery.tmpl(t,e)}}),(0,o.registerTemplateEngine)("jsrender",{compile:function(t){return(jQuery||jsrender).templates((0,i.extractTemplateMarkup)(t))},render:function(t,e){return t.render(e)}}),(0,o.registerTemplateEngine)("mustache",{compile:function(t){return(0,i.extractTemplateMarkup)(t)},render:function(t,e){return Mustache.render(t,e)}}),(0,o.registerTemplateEngine)("hogan",{compile:function(t){return Hogan.compile((0,i.extractTemplateMarkup)(t))},render:function(t,e){return t.render(e)}}),(0,o.registerTemplateEngine)("underscore",{compile:function(t){return _.template((0,i.extractTemplateMarkup)(t))},render:function(t,e){return t(e)}}),(0,o.registerTemplateEngine)("handlebars",{compile:function(t){return Handlebars.compile((0,i.extractTemplateMarkup)(t))},render:function(t,e){return t(e)}}),(0,o.registerTemplateEngine)("doT",{compile:function(t){return doT.template((0,i.extractTemplateMarkup)(t))},render:function(t,e){return t(e)}})},function(t,e,n){"use strict";var i=l(n(3)),o=l(n(6)),r=l(n(21)),a=n(16),s=n(11);function l(t){return t&&t.__esModule?t:{default:t}}var u=r.default.inherit({_keydown:(0,s.addNamespace)("keydown","KeyboardProcessor"),_compositionStart:(0,s.addNamespace)("compositionstart","KeyboardProcessor"),_compositionEnd:(0,s.addNamespace)("compositionend","KeyboardProcessor"),ctor:function(t){var e=this;(t=t||{}).element&&(this._element=(0,i.default)(t.element)),t.focusTarget&&(this._focusTarget=t.focusTarget),this._handler=t.handler,this._element&&(this._processFunction=function(t){var n=e._focusTarget&&e._focusTarget!==t.target&&(0,a.inArray)(t.target,e._focusTarget)<0,i=e._isComposingJustFinished&&229===t.which||e._isComposing||n;e._isComposingJustFinished=!1,i||e.process(t)},this._toggleProcessingWithContext=this.toggleProcessing.bind(this),o.default.on(this._element,this._keydown,this._processFunction),o.default.on(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.on(this._element,this._compositionEnd,this._toggleProcessingWithContext))},dispose:function(){this._element&&(o.default.off(this._element,this._keydown,this._processFunction),o.default.off(this._element,this._compositionStart,this._toggleProcessingWithContext),o.default.off(this._element,this._compositionEnd,this._toggleProcessingWithContext)),this._element=void 0,this._handler=void 0},process:function(t){this._handler({keyName:(0,s.normalizeKeyName)(t),key:t.key,code:t.code,ctrl:t.ctrlKey,location:t.location,metaKey:t.metaKey,shift:t.shiftKey,alt:t.altKey,which:t.which,originalEvent:t})},toggleProcessing:function(t){var e=t.type;this._isComposing="compositionstart"===e,this._isComposingJustFinished=!this._isComposing}});t.exports=u},function(t,e,n){"use strict";var i=n(38),o=n(7).when;function r(t){var e=[],n=!1;function r(){for(;e.length;){n=!0;var t=e.shift()();if(void 0!==t){if(t.then)return void o(t).always(r);throw i.Error("E0015")}}n=!1}return{add:function(i,o){t?(e[0]&&o&&o(e[0]),e=[i]):e.push(i),n||r()},busy:function(){return n}}}e.create=r,e.enqueue=r().add},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(100);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._counter=-1,this._deferreds={}}var e,n,r;return e=t,(n=[{key:"add",value:function(t){return this._counter++,this._deferreds[this._counter]=t,this._counter}},{key:"remove",value:function(t){return delete this._deferreds[t]}},{key:"cancel",value:function(t){return t in this._deferreds&&(this._deferreds[t].reject(i.CANCELED_TOKEN),!0)}},{key:"cancelAll",value:function(){for(;this._counter>-1;)this.cancel(this._counter),this._counter--}}])&&o(e.prototype,n),r&&o(e,r),t}();e.default=r},function(t,e,n){"use strict";var i=n(10).getWindow(),o=n(89),r={getXhr:function(){return new i.XMLHttpRequest}};t.exports=o(r)},function(t,e,n){"use strict";var i=n(638),o=n(78),r=n(5).each,a=n(2).isFunction,s=n(7).Deferred,l=n(217);t.exports=function t(e,n,u){u=u||[],n=n||{};var c=function(t,e){return{name:t,args:e}},d=function(t){var d,h,f,p,m,g=new s,_=function(t){var e=n.errorHandler;e&&e(t),o._errorHandler(t),g.reject(t)};function v(t){switch(t.name){case"sortBy":return m=[t.args],!0;case"thenBy":if(!m)throw o.errors.Error("E4004");return m.push(t.args),!0}return!1}try{d=n.adapter,a(d)||(d=i[d]),h=d(n),f=[].concat(u).concat(t);var y=h.optimize;for(y&&y(f);f.length;){if(!v(p=f[0])){if(m){f.unshift(c("multiSort",[m])),m=null;continue}if("enumerate"!==String(p.name)&&(!h[p.name]||!1===h[p.name].apply(h,p.args)))break}f.shift()}!function(){var t=f[0],e=[];t&&"multiSort"===t.name&&(f.shift(),r(t.args[0],(function(){e.push(c(e.length?"thenBy":"sortBy",this))}))),f=e.concat(f)}(),h.exec(e).done((function(t,e){if(f.length){var i=l(t,{errorHandler:n.errorHandler});r(f,(function(){i=i[this.name].apply(i,this.args)})),i.done(g.resolve).fail(g.reject)}else g.resolve(t,e)})).fail(_)}catch(b){_(b)}return g.promise()},h={};return r(["sortBy","thenBy","filter","slice","select","groupBy"],(function(){var i=String(this);h[i]=function(){return t(e,n,u.concat(c(i,arguments)))}})),r(["count","min","max","sum","avg","aggregate","enumerate"],(function(){var t=String(this);h[t]=function(){return d.call(this,c(t,arguments))}})),h}},function(t,e,n){"use strict";t.exports={}},function(t,e,n){"use strict";t.exports={"en-150":"en-001","en-AG":"en-001","en-AI":"en-001","en-AU":"en-001","en-BB":"en-001","en-BM":"en-001","en-BS":"en-001","en-BW":"en-001","en-BZ":"en-001","en-CA":"en-001","en-CC":"en-001","en-CK":"en-001","en-CM":"en-001","en-CX":"en-001","en-CY":"en-001","en-DG":"en-001","en-DM":"en-001","en-ER":"en-001","en-FJ":"en-001","en-FK":"en-001","en-FM":"en-001","en-GB":"en-001","en-GD":"en-001","en-GG":"en-001","en-GH":"en-001","en-GI":"en-001","en-GM":"en-001","en-GY":"en-001","en-HK":"en-001","en-IE":"en-001","en-IL":"en-001","en-IM":"en-001","en-IN":"en-001","en-IO":"en-001","en-JE":"en-001","en-JM":"en-001","en-KE":"en-001","en-KI":"en-001","en-KN":"en-001","en-KY":"en-001","en-LC":"en-001","en-LR":"en-001","en-LS":"en-001","en-MG":"en-001","en-MO":"en-001","en-MS":"en-001","en-MT":"en-001","en-MU":"en-001","en-MW":"en-001","en-MY":"en-001","en-NA":"en-001","en-NF":"en-001","en-NG":"en-001","en-NR":"en-001","en-NU":"en-001","en-NZ":"en-001","en-PG":"en-001","en-PH":"en-001","en-PK":"en-001","en-PN":"en-001","en-PW":"en-001","en-RW":"en-001","en-SB":"en-001","en-SC":"en-001","en-SD":"en-001","en-SG":"en-001","en-SH":"en-001","en-SL":"en-001","en-SS":"en-001","en-SX":"en-001","en-SZ":"en-001","en-TC":"en-001","en-TK":"en-001","en-TO":"en-001","en-TT":"en-001","en-TV":"en-001","en-TZ":"en-001","en-UG":"en-001","en-VC":"en-001","en-VG":"en-001","en-VU":"en-001","en-WS":"en-001","en-ZA":"en-001","en-ZM":"en-001","en-ZW":"en-001","en-AT":"en-150","en-BE":"en-150","en-CH":"en-150","en-DE":"en-150","en-DK":"en-150","en-FI":"en-150","en-NL":"en-150","en-SE":"en-150","en-SI":"en-150","es-AR":"es-419","es-BO":"es-419","es-BR":"es-419","es-BZ":"es-419","es-CL":"es-419","es-CO":"es-419","es-CR":"es-419","es-CU":"es-419","es-DO":"es-419","es-EC":"es-419","es-GT":"es-419","es-HN":"es-419","es-MX":"es-419","es-NI":"es-419","es-PA":"es-419","es-PE":"es-419","es-PR":"es-419","es-PY":"es-419","es-SV":"es-419","es-US":"es-419","es-UY":"es-419","es-VE":"es-419","pt-AO":"pt-PT","pt-CH":"pt-PT","pt-CV":"pt-PT","pt-FR":"pt-PT","pt-GQ":"pt-PT","pt-GW":"pt-PT","pt-LU":"pt-PT","pt-MO":"pt-PT","pt-MZ":"pt-PT","pt-ST":"pt-PT","pt-TL":"pt-PT","az-Arab":"root","az-Cyrl":"root","blt-Latn":"root","bm-Nkoo":"root","bs-Cyrl":"root","byn-Latn":"root","cu-Glag":"root","dje-Arab":"root","dyo-Arab":"root","en-Dsrt":"root","en-Shaw":"root","ff-Adlm":"root","ff-Arab":"root","ha-Arab":"root","iu-Latn":"root","kk-Arab":"root","ku-Arab":"root","ky-Arab":"root","ky-Latn":"root","ml-Arab":"root","mn-Mong":"root","ms-Arab":"root","pa-Arab":"root","sd-Deva":"root","sd-Khoj":"root","sd-Sind":"root","shi-Latn":"root","so-Arab":"root","sr-Latn":"root","sw-Arab":"root","tg-Arab":"root","ug-Cyrl":"root","uz-Arab":"root","uz-Cyrl":"root","vai-Latn":"root","wo-Arab":"root","yo-Arab":"root","yue-Hans":"root","zh-Hant":"root","zh-Hant-MO":"zh-Hant-HK"}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t[e];return n?"root"!==n&&n:e.substr(0,e.lastIndexOf("-"))}},function(t,e,n){"use strict";t.exports={en:{Yes:"Yes",No:"No",Cancel:"Cancel",Clear:"Clear",Done:"Done",Loading:"Loading...",Select:"Select...",Search:"Search",Back:"Back",OK:"OK","dxCollectionWidget-noDataText":"No data to display","dxDropDownEditor-selectLabel":"Select","validation-required":"Required","validation-required-formatted":"{0} is required","validation-numeric":"Value must be a number","validation-numeric-formatted":"{0} must be a number","validation-range":"Value is out of range","validation-range-formatted":"{0} is out of range","validation-stringLength":"The length of the value is not correct","validation-stringLength-formatted":"The length of {0} is not correct","validation-custom":"Value is invalid","validation-custom-formatted":"{0} is invalid","validation-async":"Value is invalid","validation-async-formatted":"{0} is invalid","validation-compare":"Values do not match","validation-compare-formatted":"{0} does not match","validation-pattern":"Value does not match pattern","validation-pattern-formatted":"{0} does not match pattern","validation-email":"Email is invalid","validation-email-formatted":"{0} is invalid","validation-mask":"Value is invalid","dxLookup-searchPlaceholder":"Minimum character number: {0}","dxList-pullingDownText":"Pull down to refresh...","dxList-pulledDownText":"Release to refresh...","dxList-refreshingText":"Refreshing...","dxList-pageLoadingText":"Loading...","dxList-nextButtonText":"More","dxList-selectAll":"Select All","dxListEditDecorator-delete":"Delete","dxListEditDecorator-more":"More","dxScrollView-pullingDownText":"Pull down to refresh...","dxScrollView-pulledDownText":"Release to refresh...","dxScrollView-refreshingText":"Refreshing...","dxScrollView-reachBottomText":"Loading...","dxDateBox-simulatedDataPickerTitleTime":"Select time","dxDateBox-simulatedDataPickerTitleDate":"Select date","dxDateBox-simulatedDataPickerTitleDateTime":"Select date and time","dxDateBox-validation-datetime":"Value must be a date or time","dxFileUploader-selectFile":"Select file","dxFileUploader-dropFile":"or Drop file here","dxFileUploader-bytes":"bytes","dxFileUploader-kb":"kb","dxFileUploader-Mb":"Mb","dxFileUploader-Gb":"Gb","dxFileUploader-upload":"Upload","dxFileUploader-uploaded":"Uploaded","dxFileUploader-readyToUpload":"Ready to upload","dxFileUploader-uploadFailedMessage":"Upload failed","dxFileUploader-invalidFileExtension":"File type is not allowed","dxFileUploader-invalidMaxFileSize":"File is too large","dxFileUploader-invalidMinFileSize":"File is too small","dxRangeSlider-ariaFrom":"From","dxRangeSlider-ariaTill":"Till","dxSwitch-switchedOnText":"ON","dxSwitch-switchedOffText":"OFF","dxForm-optionalMark":"optional","dxForm-requiredMessage":"{0} is required","dxNumberBox-invalidValueMessage":"Value must be a number","dxNumberBox-noDataText":"No data","dxDataGrid-columnChooserTitle":"Column Chooser","dxDataGrid-columnChooserEmptyText":"Drag a column here to hide it","dxDataGrid-groupContinuesMessage":"Continues on the next page","dxDataGrid-groupContinuedMessage":"Continued from the previous page","dxDataGrid-groupHeaderText":"Group by This Column","dxDataGrid-ungroupHeaderText":"Ungroup","dxDataGrid-ungroupAllText":"Ungroup All","dxDataGrid-editingEditRow":"Edit","dxDataGrid-editingSaveRowChanges":"Save","dxDataGrid-editingCancelRowChanges":"Cancel","dxDataGrid-editingDeleteRow":"Delete","dxDataGrid-editingUndeleteRow":"Undelete","dxDataGrid-editingConfirmDeleteMessage":"Are you sure you want to delete this record?","dxDataGrid-validationCancelChanges":"Cancel changes","dxDataGrid-groupPanelEmptyText":"Drag a column header here to group by that column","dxDataGrid-noDataText":"No data","dxDataGrid-searchPanelPlaceholder":"Search...","dxDataGrid-filterRowShowAllText":"(All)","dxDataGrid-filterRowResetOperationText":"Reset","dxDataGrid-filterRowOperationEquals":"Equals","dxDataGrid-filterRowOperationNotEquals":"Does not equal","dxDataGrid-filterRowOperationLess":"Less than","dxDataGrid-filterRowOperationLessOrEquals":"Less than or equal to","dxDataGrid-filterRowOperationGreater":"Greater than","dxDataGrid-filterRowOperationGreaterOrEquals":"Greater than or equal to","dxDataGrid-filterRowOperationStartsWith":"Starts with","dxDataGrid-filterRowOperationContains":"Contains","dxDataGrid-filterRowOperationNotContains":"Does not contain","dxDataGrid-filterRowOperationEndsWith":"Ends with","dxDataGrid-filterRowOperationBetween":"Between","dxDataGrid-filterRowOperationBetweenStartText":"Start","dxDataGrid-filterRowOperationBetweenEndText":"End","dxDataGrid-applyFilterText":"Apply filter","dxDataGrid-trueText":"true","dxDataGrid-falseText":"false","dxDataGrid-sortingAscendingText":"Sort Ascending","dxDataGrid-sortingDescendingText":"Sort Descending","dxDataGrid-sortingClearText":"Clear Sorting","dxDataGrid-editingSaveAllChanges":"Save changes","dxDataGrid-editingCancelAllChanges":"Discard changes","dxDataGrid-editingAddRow":"Add a row","dxDataGrid-summaryMin":"Min: {0}","dxDataGrid-summaryMinOtherColumn":"Min of {1} is {0}","dxDataGrid-summaryMax":"Max: {0}","dxDataGrid-summaryMaxOtherColumn":"Max of {1} is {0}","dxDataGrid-summaryAvg":"Avg: {0}","dxDataGrid-summaryAvgOtherColumn":"Avg of {1} is {0}","dxDataGrid-summarySum":"Sum: {0}","dxDataGrid-summarySumOtherColumn":"Sum of {1} is {0}","dxDataGrid-summaryCount":"Count: {0}","dxDataGrid-columnFixingFix":"Fix","dxDataGrid-columnFixingUnfix":"Unfix","dxDataGrid-columnFixingLeftPosition":"To the left","dxDataGrid-columnFixingRightPosition":"To the right","dxDataGrid-exportTo":"Export","dxDataGrid-exportToExcel":"Export to Excel file","dxDataGrid-exporting":"Exporting...","dxDataGrid-excelFormat":"Excel file","dxDataGrid-selectedRows":"Selected rows","dxDataGrid-exportSelectedRows":"Export selected rows","dxDataGrid-exportAll":"Export all data","dxDataGrid-headerFilterEmptyValue":"(Blanks)","dxDataGrid-headerFilterOK":"OK","dxDataGrid-headerFilterCancel":"Cancel","dxDataGrid-ariaColumn":"Column","dxDataGrid-ariaValue":"Value","dxDataGrid-ariaFilterCell":"Filter cell","dxDataGrid-ariaCollapse":"Collapse","dxDataGrid-ariaExpand":"Expand","dxDataGrid-ariaDataGrid":"Data grid","dxDataGrid-ariaSearchInGrid":"Search in data grid","dxDataGrid-ariaSelectAll":"Select all","dxDataGrid-ariaSelectRow":"Select row","dxDataGrid-filterBuilderPopupTitle":"Filter Builder","dxDataGrid-filterPanelCreateFilter":"Create Filter","dxDataGrid-filterPanelClearFilter":"Clear","dxDataGrid-filterPanelFilterEnabledHint":"Enable the filter","dxTreeList-ariaTreeList":"Tree list","dxTreeList-editingAddRowToNode":"Add","dxPager-infoText":"Page {0} of {1} ({2} items)","dxPager-pagesCountText":"of","dxPivotGrid-grandTotal":"Grand Total","dxPivotGrid-total":"{0} Total","dxPivotGrid-fieldChooserTitle":"Field Chooser","dxPivotGrid-showFieldChooser":"Show Field Chooser","dxPivotGrid-expandAll":"Expand All","dxPivotGrid-collapseAll":"Collapse All","dxPivotGrid-sortColumnBySummary":'Sort "{0}" by This Column',"dxPivotGrid-sortRowBySummary":'Sort "{0}" by This Row',"dxPivotGrid-removeAllSorting":"Remove All Sorting","dxPivotGrid-dataNotAvailable":"N/A","dxPivotGrid-rowFields":"Row Fields","dxPivotGrid-columnFields":"Column Fields","dxPivotGrid-dataFields":"Data Fields","dxPivotGrid-filterFields":"Filter Fields","dxPivotGrid-allFields":"All Fields","dxPivotGrid-columnFieldArea":"Drop Column Fields Here","dxPivotGrid-dataFieldArea":"Drop Data Fields Here","dxPivotGrid-rowFieldArea":"Drop Row Fields Here","dxPivotGrid-filterFieldArea":"Drop Filter Fields Here","dxScheduler-editorLabelTitle":"Subject","dxScheduler-editorLabelStartDate":"Start Date","dxScheduler-editorLabelEndDate":"End Date","dxScheduler-editorLabelDescription":"Description","dxScheduler-editorLabelRecurrence":"Repeat","dxScheduler-openAppointment":"Open appointment","dxScheduler-recurrenceNever":"Never","dxScheduler-recurrenceMinutely":"Every minute","dxScheduler-recurrenceHourly":"Hourly","dxScheduler-recurrenceDaily":"Daily","dxScheduler-recurrenceWeekly":"Weekly","dxScheduler-recurrenceMonthly":"Monthly","dxScheduler-recurrenceYearly":"Yearly","dxScheduler-recurrenceRepeatEvery":"Repeat Every","dxScheduler-recurrenceRepeatOn":"Repeat On","dxScheduler-recurrenceEnd":"End repeat","dxScheduler-recurrenceAfter":"After","dxScheduler-recurrenceOn":"On","dxScheduler-recurrenceRepeatMinutely":"minute(s)","dxScheduler-recurrenceRepeatHourly":"hour(s)","dxScheduler-recurrenceRepeatDaily":"day(s)","dxScheduler-recurrenceRepeatWeekly":"week(s)","dxScheduler-recurrenceRepeatMonthly":"month(s)","dxScheduler-recurrenceRepeatYearly":"year(s)","dxScheduler-switcherDay":"Day","dxScheduler-switcherWeek":"Week","dxScheduler-switcherWorkWeek":"Work Week","dxScheduler-switcherMonth":"Month","dxScheduler-switcherAgenda":"Agenda","dxScheduler-switcherTimelineDay":"Timeline Day","dxScheduler-switcherTimelineWeek":"Timeline Week","dxScheduler-switcherTimelineWorkWeek":"Timeline Work Week","dxScheduler-switcherTimelineMonth":"Timeline Month","dxScheduler-recurrenceRepeatOnDate":"on date","dxScheduler-recurrenceRepeatCount":"occurrence(s)","dxScheduler-allDay":"All day","dxScheduler-confirmRecurrenceEditMessage":"Do you want to edit only this appointment or the whole series?","dxScheduler-confirmRecurrenceDeleteMessage":"Do you want to delete only this appointment or the whole series?","dxScheduler-confirmRecurrenceEditSeries":"Edit series","dxScheduler-confirmRecurrenceDeleteSeries":"Delete series","dxScheduler-confirmRecurrenceEditOccurrence":"Edit appointment","dxScheduler-confirmRecurrenceDeleteOccurrence":"Delete appointment","dxScheduler-noTimezoneTitle":"No timezone","dxScheduler-moreAppointments":"{0} more","dxCalendar-todayButtonText":"Today","dxCalendar-ariaWidgetName":"Calendar","dxColorView-ariaRed":"Red","dxColorView-ariaGreen":"Green","dxColorView-ariaBlue":"Blue","dxColorView-ariaAlpha":"Transparency","dxColorView-ariaHex":"Color code","dxTagBox-selected":"{0} selected","dxTagBox-allSelected":"All selected ({0})","dxTagBox-moreSelected":"{0} more","vizExport-printingButtonText":"Print","vizExport-titleMenuText":"Exporting/Printing","vizExport-exportButtonText":"{0} file","dxFilterBuilder-and":"And","dxFilterBuilder-or":"Or","dxFilterBuilder-notAnd":"Not And","dxFilterBuilder-notOr":"Not Or","dxFilterBuilder-addCondition":"Add Condition","dxFilterBuilder-addGroup":"Add Group","dxFilterBuilder-enterValueText":"<enter a value>","dxFilterBuilder-filterOperationEquals":"Equals","dxFilterBuilder-filterOperationNotEquals":"Does not equal","dxFilterBuilder-filterOperationLess":"Is less than","dxFilterBuilder-filterOperationLessOrEquals":"Is less than or equal to","dxFilterBuilder-filterOperationGreater":"Is greater than","dxFilterBuilder-filterOperationGreaterOrEquals":"Is greater than or equal to","dxFilterBuilder-filterOperationStartsWith":"Starts with","dxFilterBuilder-filterOperationContains":"Contains","dxFilterBuilder-filterOperationNotContains":"Does not contain","dxFilterBuilder-filterOperationEndsWith":"Ends with","dxFilterBuilder-filterOperationIsBlank":"Is blank","dxFilterBuilder-filterOperationIsNotBlank":"Is not blank","dxFilterBuilder-filterOperationBetween":"Is between","dxFilterBuilder-filterOperationAnyOf":"Is any of","dxFilterBuilder-filterOperationNoneOf":"Is none of","dxHtmlEditor-dialogColorCaption":"Change Font Color","dxHtmlEditor-dialogBackgroundCaption":"Change Background Color","dxHtmlEditor-dialogLinkCaption":"Add Link","dxHtmlEditor-dialogLinkUrlField":"URL","dxHtmlEditor-dialogLinkTextField":"Text","dxHtmlEditor-dialogLinkTargetField":"Open link in new window","dxHtmlEditor-dialogImageCaption":"Add Image","dxHtmlEditor-dialogImageUrlField":"URL","dxHtmlEditor-dialogImageAltField":"Alternate text","dxHtmlEditor-dialogImageWidthField":"Width (px)","dxHtmlEditor-dialogImageHeightField":"Height (px)","dxHtmlEditor-heading":"Heading","dxHtmlEditor-normalText":"Normal text","dxFileManager-newDirectoryName":"Untitled directory","dxFileManager-rootDirectoryName":"Files","dxFileManager-errorNoAccess":"Access Denied. Operation could not be completed.","dxFileManager-errorDirectoryExistsFormat":"Directory '{0}' already exists.","dxFileManager-errorFileExistsFormat":"File '{0}' already exists.","dxFileManager-errorFileNotFoundFormat":"File '{0}' not found.","dxFileManager-errorDirectoryNotFoundFormat":"Directory '{0}' not found.","dxFileManager-errorWrongFileExtension":"File extension is not allowed.","dxFileManager-errorMaxFileSizeExceeded":"File size exceeds the maximum allowed size.","dxFileManager-errorInvalidSymbols":"This name contains invalid characters.","dxFileManager-errorDefault":"Unspecified error.","dxFileManager-errorDirectoryOpenFailed":"The directory cannot be opened","dxFileManager-commandCreate":"New directory","dxFileManager-commandRename":"Rename","dxFileManager-commandMove":"Move to","dxFileManager-commandCopy":"Copy to","dxFileManager-commandDelete":"Delete","dxFileManager-commandDownload":"Download","dxFileManager-commandUpload":"Upload files","dxFileManager-commandRefresh":"Refresh","dxFileManager-commandThumbnails":"Thumbnails View","dxFileManager-commandDetails":"Details View","dxFileManager-commandClearSelection":"Clear selection","dxFileManager-commandShowNavPane":"Toggle navigation pane","dxFileManager-dialogDirectoryChooserMoveTitle":"Move to","dxFileManager-dialogDirectoryChooserMoveButtonText":"Move","dxFileManager-dialogDirectoryChooserCopyTitle":"Copy to","dxFileManager-dialogDirectoryChooserCopyButtonText":"Copy","dxFileManager-dialogRenameItemTitle":"Rename","dxFileManager-dialogRenameItemButtonText":"Save","dxFileManager-dialogCreateDirectoryTitle":"New directory","dxFileManager-dialogCreateDirectoryButtonText":"Create","dxFileManager-dialogDeleteItemTitle":"Delete","dxFileManager-dialogDeleteItemButtonText":"Delete","dxFileManager-dialogDeleteItemSingleItemConfirmation":"Are you sure you want to delete {0}?","dxFileManager-dialogDeleteItemMultipleItemsConfirmation":"Are you sure you want to delete {0} items?","dxFileManager-dialogButtonCancel":"Cancel","dxFileManager-editingCreateSingleItemProcessingMessage":"Creating a directory inside {0}","dxFileManager-editingCreateSingleItemSuccessMessage":"Created a directory inside {0}","dxFileManager-editingCreateSingleItemErrorMessage":"Directory was not created","dxFileManager-editingCreateCommonErrorMessage":"Directory was not created","dxFileManager-editingRenameSingleItemProcessingMessage":"Renaming an item inside {0}","dxFileManager-editingRenameSingleItemSuccessMessage":"Renamed an item inside {0}","dxFileManager-editingRenameSingleItemErrorMessage":"Item was not renamed","dxFileManager-editingRenameCommonErrorMessage":"Item was not renamed","dxFileManager-editingDeleteSingleItemProcessingMessage":"Deleting an item from {0}","dxFileManager-editingDeleteMultipleItemsProcessingMessage":"Deleting {0} items from {1}","dxFileManager-editingDeleteSingleItemSuccessMessage":"Deleted an item from {0}","dxFileManager-editingDeleteMultipleItemsSuccessMessage":"Deleted {0} items from {1}","dxFileManager-editingDeleteSingleItemErrorMessage":"Item was not deleted","dxFileManager-editingDeleteMultipleItemsErrorMessage":"{0} items were not deleted","dxFileManager-editingDeleteCommonErrorMessage":"Some items were not deleted","dxFileManager-editingMoveSingleItemProcessingMessage":"Moving an item to {0}","dxFileManager-editingMoveMultipleItemsProcessingMessage":"Moving {0} items to {1}","dxFileManager-editingMoveSingleItemSuccessMessage":"Moved an item to {0}","dxFileManager-editingMoveMultipleItemsSuccessMessage":"Moved {0} items to {1}","dxFileManager-editingMoveSingleItemErrorMessage":"Item was not moved","dxFileManager-editingMoveMultipleItemsErrorMessage":"{0} items were not moved","dxFileManager-editingMoveCommonErrorMessage":"Some items were not moved","dxFileManager-editingCopySingleItemProcessingMessage":"Copying an item to {0}","dxFileManager-editingCopyMultipleItemsProcessingMessage":"Copying {0} items to {1}","dxFileManager-editingCopySingleItemSuccessMessage":"Copied an item to {0}","dxFileManager-editingCopyMultipleItemsSuccessMessage":"Copied {0} items to {1}","dxFileManager-editingCopySingleItemErrorMessage":"Item was not copied","dxFileManager-editingCopyMultipleItemsErrorMessage":"{0} items were not copied","dxFileManager-editingCopyCommonErrorMessage":"Some items were not copied","dxFileManager-editingUploadSingleItemProcessingMessage":"Uploading an item to {0}","dxFileManager-editingUploadMultipleItemsProcessingMessage":"Uploading {0} items to {1}","dxFileManager-editingUploadSingleItemSuccessMessage":"Uploaded an item to {0}","dxFileManager-editingUploadMultipleItemsSuccessMessage":"Uploaded {0} items to {1}","dxFileManager-editingUploadSingleItemErrorMessage":"Item was not uploaded","dxFileManager-editingUploadMultipleItemsErrorMessage":"{0} items were not uploaded","dxFileManager-editingUploadCanceledMessage":"Canceled","dxFileManager-listDetailsColumnCaptionName":"Name","dxFileManager-listDetailsColumnCaptionDateModified":"Date Modified","dxFileManager-listDetailsColumnCaptionFileSize":"File Size","dxFileManager-listThumbnailsTooltipTextSize":"Size","dxFileManager-listThumbnailsTooltipTextDateModified":"Date Modified","dxFileManager-notificationProgressPanelTitle":"Progress","dxFileManager-notificationProgressPanelEmptyListText":"No operations","dxFileManager-notificationProgressPanelOperationCanceled":"Canceled","dxDiagram-categoryGeneral":"General","dxDiagram-categoryFlowchart":"Flowchart","dxDiagram-categoryOrgChart":"Org Chart","dxDiagram-categoryContainers":"Containers","dxDiagram-categoryCustom":"Custom","dxDiagram-commandExportToSvg":"Export to SVG","dxDiagram-commandExportToPng":"Export to PNG","dxDiagram-commandExportToJpg":"Export to JPEG","dxDiagram-commandUndo":"Undo","dxDiagram-commandRedo":"Redo","dxDiagram-commandFontName":"Font Name","dxDiagram-commandFontSize":"Font Size","dxDiagram-commandBold":"Bold","dxDiagram-commandItalic":"Italic","dxDiagram-commandUnderline":"Underline","dxDiagram-commandTextColor":"Font Color","dxDiagram-commandLineColor":"Line Color","dxDiagram-commandLineWidth":"Line Width","dxDiagram-commandLineStyle":"Line Style","dxDiagram-commandLineStyleSolid":"Solid","dxDiagram-commandLineStyleDotted":"Dotted","dxDiagram-commandLineStyleDashed":"Dashed","dxDiagram-commandFillColor":"Fill Color","dxDiagram-commandAlignLeft":"Align Left","dxDiagram-commandAlignCenter":"Align Center","dxDiagram-commandAlignRight":"Align Right","dxDiagram-commandConnectorLineType":"Connector Line Type","dxDiagram-commandConnectorLineStraight":"Straight","dxDiagram-commandConnectorLineOrthogonal":"Orthogonal","dxDiagram-commandConnectorLineStart":"Connector Line Start","dxDiagram-commandConnectorLineEnd":"Connector Line End","dxDiagram-commandConnectorLineNone":"None","dxDiagram-commandConnectorLineArrow":"Arrow","dxDiagram-commandFullscreen":"Full Screen","dxDiagram-commandUnits":"Units","dxDiagram-commandPageSize":"Page Size","dxDiagram-commandPageOrientation":"Page Orientation","dxDiagram-commandPageOrientationLandscape":"Landscape","dxDiagram-commandPageOrientationPortrait":"Portrait","dxDiagram-commandPageColor":"Page Color","dxDiagram-commandShowGrid":"Show Grid","dxDiagram-commandSnapToGrid":"Snap to Grid","dxDiagram-commandGridSize":"Grid Size","dxDiagram-commandZoomLevel":"Zoom Level","dxDiagram-commandAutoZoom":"Auto Zoom","dxDiagram-commandFitToContent":"Fit to Content","dxDiagram-commandFitToWidth":"Fit to Width","dxDiagram-commandAutoZoomByContent":"Auto Zoom by Content","dxDiagram-commandAutoZoomByWidth":"Auto Zoom by Width","dxDiagram-commandSimpleView":"Simple View","dxDiagram-commandCut":"Cut","dxDiagram-commandCopy":"Copy","dxDiagram-commandPaste":"Paste","dxDiagram-commandSelectAll":"Select All","dxDiagram-commandDelete":"Delete","dxDiagram-commandBringToFront":"Bring to Front","dxDiagram-commandSendToBack":"Send to Back","dxDiagram-commandLock":"Lock","dxDiagram-commandUnlock":"Unlock","dxDiagram-commandInsertShapeImage":"Insert Image...","dxDiagram-commandEditShapeImage":"Change Image...","dxDiagram-commandDeleteShapeImage":"Delete Image","dxDiagram-commandLayoutLeftToRight":"Left-to-right","dxDiagram-commandLayoutRightToLeft":"Right-to-left","dxDiagram-commandLayoutTopToBottom":"Top-to-bottom","dxDiagram-commandLayoutBottomToTop":"Bottom-to-top","dxDiagram-unitIn":"in","dxDiagram-unitCm":"cm","dxDiagram-unitPx":"px","dxDiagram-dialogButtonOK":"OK","dxDiagram-dialogButtonCancel":"Cancel","dxDiagram-dialogInsertShapeImageTitle":"Insert Image","dxDiagram-dialogEditShapeImageTitle":"Change Image","dxDiagram-dialogEditShapeImageSelectButton":"Select image","dxDiagram-dialogEditShapeImageLabelText":"or drop file here","dxDiagram-uiExport":"Export","dxDiagram-uiProperties":"Properties","dxDiagram-uiSettings":"Settings","dxDiagram-uiShowToolbox":"Show Toolbox","dxDiagram-uiSearch":"Search","dxDiagram-uiStyle":"Style","dxDiagram-uiLayout":"Layout","dxDiagram-uiLayoutTree":"Tree","dxDiagram-uiLayoutLayered":"Layered","dxDiagram-uiDiagram":"Diagram","dxDiagram-uiText":"Text","dxDiagram-uiObject":"Object","dxDiagram-uiConnector":"Connector","dxDiagram-uiPage":"Page","dxDiagram-shapeText":"Text","dxDiagram-shapeRectangle":"Rectangle","dxDiagram-shapeEllipse":"Ellipse","dxDiagram-shapeCross":"Cross","dxDiagram-shapeTriangle":"Triangle","dxDiagram-shapeDiamond":"Diamond","dxDiagram-shapeHeart":"Heart","dxDiagram-shapePentagon":"Pentagon","dxDiagram-shapeHexagon":"Hexagon","dxDiagram-shapeOctagon":"Octagon","dxDiagram-shapeStar":"Star","dxDiagram-shapeArrowLeft":"Left Arrow","dxDiagram-shapeArrowUp":"Up Arrow","dxDiagram-shapeArrowRight":"Right Arrow","dxDiagram-shapeArrowDown":"Down Arrow","dxDiagram-shapeArrowUpDown":"Up Down Arrow","dxDiagram-shapeArrowLeftRight":"Left Right Arrow","dxDiagram-shapeProcess":"Process","dxDiagram-shapeDecision":"Decision","dxDiagram-shapeTerminator":"Terminator","dxDiagram-shapePredefinedProcess":"Predefined Process","dxDiagram-shapeDocument":"Document","dxDiagram-shapeMultipleDocuments":"Multiple Documents","dxDiagram-shapeManualInput":"Manual Input","dxDiagram-shapePreparation":"Preparation","dxDiagram-shapeData":"Data","dxDiagram-shapeDatabase":"Database","dxDiagram-shapeHardDisk":"Hard Disk","dxDiagram-shapeInternalStorage":"Internal Storage","dxDiagram-shapePaperTape":"Paper Tape","dxDiagram-shapeManualOperation":"Manual Operation","dxDiagram-shapeDelay":"Delay","dxDiagram-shapeStoredData":"Stored Data","dxDiagram-shapeDisplay":"Display","dxDiagram-shapeMerge":"Merge","dxDiagram-shapeConnector":"Connector","dxDiagram-shapeOr":"Or","dxDiagram-shapeSummingJunction":"Summing Junction","dxDiagram-shapeContainerDefaultText":"Container","dxDiagram-shapeVerticalContainer":"Vertical Container","dxDiagram-shapeHorizontalContainer":"Horizontal Container","dxDiagram-shapeCardDefaultText":"Person's Name","dxDiagram-shapeCardWithImageOnLeft":"Card with Image on the Left","dxDiagram-shapeCardWithImageOnTop":"Card with Image on the Top","dxDiagram-shapeCardWithImageOnRight":"Card with Image on the Right","dxGantt-dialogTitle":"Title","dxGantt-dialogStartTitle":"Start","dxGantt-dialogEndTitle":"End","dxGantt-dialogProgressTitle":"Progress","dxGantt-dialogResourcesTitle":"Resources","dxGantt-dialogResourceManagerTitle":"Resource Manager","dxGantt-dialogTaskDetailsTitle":"Task Details","dxGantt-dialogEditResourceListHint":"Edit Resource List","dxGantt-dialogEditNoResources":"No resources","dxGantt-dialogButtonAdd":"Add","dxGantt-contextMenuNewTask":"New Task","dxGantt-contextMenuNewSubtask":"New Subtask","dxGantt-contextMenuDeleteTask":"Delete Task","dxGantt-contextMenuDeleteDependency":"Delete Dependency","dxGantt-dialogTaskDeleteConfirmation":"Deleting a task also deletes all its dependencies and subtasks. Are you sure you want to delete this task?","dxGantt-dialogDependencyDeleteConfirmation":"Are you sure you want to delete the dependency from the task?","dxGantt-dialogResourcesDeleteConfirmation":"Deleting a resource also deletes it from tasks to which this resource is assigned. Are you sure you want to delete these resources? Resource: {0}","dxGantt-dialogConstraintCriticalViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. This change would conflict with dependency rules. How would you like to proceed?","dxGantt-dialogConstraintViolationMessage":"The task you are attempting to move is linked to a second task by a dependency relation. How would you like to proceed?","dxGantt-dialogCancelOperationMessage":"Cancel the operation","dxGantt-dialogDeleteDependencyMessage":"Delete the dependency","dxGantt-dialogMoveTaskAndKeepDependencyMessage":"Move the task and keep the dependency","dxGantt-undo":"Undo","dxGantt-redo":"Redo","dxGantt-expandAll":"Expand All","dxGantt-collapseAll":"Collapse All","dxGantt-addNewTask":"Add New Task","dxGantt-deleteSelectedTask":"Delete Selected Task","dxGantt-zoomIn":"Zoom In","dxGantt-zoomOut":"Zoom Out","dxGantt-fullScreen":"Full Screen"}}},function(t,e,n){"use strict";var i=n(3),o=n(21),r=n(4).equalByValue,a=o.abstract,s=o.inherit({ctor:function(t){this._collectionWidget=t},getIndexByItemData:a,getItemDataByIndex:a,getKeysByItems:a,getItemsByKeys:a,itemsGetter:a,getKeyByIndex:function(t){var e=this._denormalizeItemIndex(t);return this.getKeysByItems([this.getItemDataByIndex(e)])[0]},_equalKeys:function(t,e){return this._collectionWidget._isKeySpecified()?r(t,e):t===e},beginCache:function(){this._cache={}},endCache:function(){this._cache=null},getIndexByKey:a,getNormalizedIndex:function(t){return this._isNormalizedItemIndex(t)?t:this._isItemIndex(t)?this._normalizeItemIndex(t):this._isDOMNode(t)?this._getNormalizedItemIndex(t):this._normalizeItemIndex(this.getIndexByItemData(t))},getIndex:function(t){return this._isNormalizedItemIndex(t)?this._denormalizeItemIndex(t):this._isItemIndex(t)?t:this._isDOMNode(t)?this._denormalizeItemIndex(this._getNormalizedItemIndex(t)):this.getIndexByItemData(t)},getItemElement:function(t){if(this._isNormalizedItemIndex(t))return this._getItemByNormalizedIndex(t);if(this._isItemIndex(t))return this._getItemByNormalizedIndex(this._normalizeItemIndex(t));if(this._isDOMNode(t))return i(t);var e=this._normalizeItemIndex(this.getIndexByItemData(t));return this._getItemByNormalizedIndex(e)},deleteItemAtIndex:a,itemPlacementFunc:function(t,e){return this._itemsFromSameParent(t,e)&&t<e?"after":"before"},moveItemAtIndexToIndex:a,_isNormalizedItemIndex:function(t){return"number"===typeof t&&Math.round(t)===t},_isDOMNode:function(t){var e;try{e=i(t)}catch(n){return!1}return e&&e.length&&e.get(0).nodeType},_isItemIndex:a,_getNormalizedItemIndex:a,_normalizeItemIndex:a,_denormalizeItemIndex:a,_getItemByNormalizedIndex:a,_itemsFromSameParent:a});t.exports=s},function(t,e,n){"use strict";var i=n(2),o=n(361),r=n(23),a=n(61),s=n(7).Deferred;t.exports=o.inherit({getSelectedItems:function(){return this._loadFilteredData(this.options.selectionFilter)},getSelectedItemKeys:function(){var t=new s,e=this,n=this.options.key(),o=i.isString(n)?[n]:n;return this._loadFilteredData(this.options.selectionFilter,null,o).done((function(n){var i=n.map((function(t){return e.options.keyOf(t)}));t.resolve(i)})).fail(t.reject),t.promise()},selectedItemKeys:function(t,e,n,i){if(i){var o=this.options.filter();!o||JSON.stringify(o)===JSON.stringify(this.options.selectionFilter)&&n?this._setOption("selectionFilter",n?[]:null):this._addSelectionFilter(n,o,i)}else{e||this._setOption("selectionFilter",[]);for(var r=0;r<t.length;r++)n?this.removeSelectedItem(t[r]):this.addSelectedItem(t[r])}return this.onSelectionChanged(),(new s).resolve()},setSelectedItems:function(t){this._setOption("selectionFilter",null);for(var e=0;e<t.length;e++)this.addSelectedItem(t[e])},isItemDataSelected:function(t){return this.isItemKeySelected(t)},isItemKeySelected:function(t){var e=this.options.selectionFilter;return!e||!!a([t]).filter(e).toArray().length},_getFilterByKey:function(t){var e=this.options.key(),n=[e,"=",t];if(Array.isArray(e)){n=[];for(var i=0;i<e.length;i++)n.push([e[i],"=",t[e[i]]]),i!==e.length-1&&n.push("and")}return n},addSelectedItem:function(t){var e=this._getFilterByKey(t);this._addSelectionFilter(!1,e)},removeSelectedItem:function(t){var e=this._getFilterByKey(t);this._addSelectionFilter(!0,e)},validate:function(){var t=this.options.key;if(t&&void 0===t())throw r.Error("E1042","Deferred selection")},_findSubFilter:function(t,e){if(!t)return-1;for(var n=JSON.stringify(e),i=0;i<t.length;i++){var o=t[i];if(o&&JSON.stringify(o)===n)return i}return-1},_isLastSubFilter:function(t,e){return!(!t||!e)&&(this._findSubFilter(t,e)===t.length-1||0===this._findSubFilter([t],e))},_addFilterOperator:function(t,e){return t.length>1&&i.isString(t[1])&&t[1]!==e&&(t=[t]),t.length&&t.push(e),t},_denormalizeFilter:function(t){return t&&i.isString(t[0])&&(t=[t]),t},_addSelectionFilter:function(t,e,n){var i=t?["!",e]:e,o=t?"and":"or",r=!0,a=this.options.selectionFilter||[];if((a=this._denormalizeFilter(a))&&a.length){this._removeSameFilter(a,e,t,n);var s=this._removeSameFilter(a,e,!t),l=this._isKeyFilter(e)&&this._hasKeyFiltersOnlyStartingFromIndex(a,s);(r=e.length&&!l)&&(a=this._addFilterOperator(a,o))}r&&a.push(i),a=this._normalizeFilter(a),this._setOption("selectionFilter",t||a.length?a:null)},_normalizeFilter:function(t){return t&&1===t.length&&(t=t[0]),t},_removeFilterByIndex:function(t,e,n){var i=t[1];e>0?t.splice(e-1,2):t.splice(e,2),n&&"and"===i&&t.splice(0,t.length)},_isSimpleKeyFilter:function(t,e){return 3===t.length&&t[0]===e&&"="===t[1]},_isKeyFilter:function(t){if(2===t.length&&"!"===t[0])return this._isKeyFilter(t[1]);var e=this.options.key();if(Array.isArray(e)){if(t.length!==2*e.length-1)return!1;for(var n=0;n<e.length;n++){if(n>0&&"and"!==t[n])return!1;if(!this._isSimpleKeyFilter(t[2*n],e[n]))return!1}return!0}return this._isSimpleKeyFilter(t,e)},_hasKeyFiltersOnlyStartingFromIndex:function(t,e){if(e>=0){for(var n=e;n<t.length;n++)if("string"!==typeof t[n]&&!this._isKeyFilter(t[n]))return!1;return!0}return!1},_removeSameFilter:function(t,e,n,i){if(e=n?["!",e]:e,JSON.stringify(e)===JSON.stringify(t))return t.splice(0,t.length),0;var o=this._findSubFilter(t,e);if(o>=0)return this._removeFilterByIndex(t,o,i),o;for(var r=0;r<t.length;r++)if(Array.isArray(t[r])&&t[r].length>2){var a=this._removeSameFilter(t[r],e,!1,i);if(a>=0)return t[r].length?1===t[r].length&&(t[r]=t[r][0]):this._removeFilterByIndex(t,r,i),a}return-1},getSelectAllState:function(){var t=this.options.filter(),e=this.options.selectionFilter;return!e||!!e.length&&(t&&t.length?(e=this._denormalizeFilter(e),!!this._isLastSubFilter(e,t)||!this._isLastSubFilter(e,["!",t])&&void 0):void 0)}})},function(t,e,n){"use strict";var i=n(4),o=n(2),r=o.isDefined,a=i.getKeyHash,s=n(61),l=n(7),u=n(362).SelectionFilterCreator,c=l.when,d=l.Deferred,h=n(23),f=n(361);t.exports=f.inherit({ctor:function(t){this.callBase(t),this._initSelectedItemKeyHash()},_initSelectedItemKeyHash:function(){this._setOption("keyHashIndices",this.options.equalByReference?null:{})},getSelectedItemKeys:function(){return this.options.selectedItemKeys.slice(0)},getSelectedItems:function(){return this.options.selectedItems.slice(0)},_preserveSelectionUpdate:function(t,e){var n,i,o,r=this.options.keyOf;if(r){var a=e&&t.length>1&&!this.options.equalByReference;for(a&&(n={}),o=0;o<t.length;o++){var s=t[o],l=r(s);e?(i=this.removeSelectedItem(l,n),n&&i>=0&&(n[i]=!0)):this.addSelectedItem(l,s)}a&&this._batchRemoveSelectedItems(n)}},_batchRemoveSelectedItems:function(t){var e=this.options.selectedItemKeys.slice(0),n=this.options.selectedItems.slice(0);this.options.selectedItemKeys.length=0,this.options.selectedItems.length=0;for(var i=0;i<e.length;i++)t[i]||(this.options.selectedItemKeys.push(e[i]),this.options.selectedItems.push(n[i]));this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(this.options.selectedItemKeys)},_loadSelectedItemsCore:function(t,e,n){var i=new d,o=this.options.key();if(!t.length&&!n)return i.resolve([]),i;var r=this.options.filter();if(n&&e&&!r)return i.resolve(this.getSelectedItems()),i;var a=new u(t,n),l=a.getCombinedFilter(o,r),c=[];e&&(c=l?s(this.options.selectedItems).filter(l).toArray():this.options.selectedItems.slice(0));var h=c.length?c:this.options.plainItems(!0).filter(this.options.isSelectableItem).map(this.options.getItemData),f=a.getLocalFilter(this.options.keyOf,this.equalKeys.bind(this),this.options.equalByReference,o);return h=h.filter(f),c.length||!n&&h.length===t.length?i.resolve(h):i=this._loadFilteredData(l,f,null,n),i},_replaceSelectionUpdate:function(t){var e=[],n=this.options.keyOf;if(n){for(var i=0;i<t.length;i++){var o=n(t[i]);e.push(o)}this.setSelectedItems(e,t)}},_warnOnIncorrectKeys:function(t){for(var e=this.options.allowNullValue,n=0;n<t.length;n++){var i=t[n];e&&null===i||this.isItemKeySelected(i)||h.log("W1002",i)}},_loadSelectedItems:function(t,e,n){var i=this,o=new d;return c(i._lastLoadDeferred).always((function(){i._loadSelectedItemsCore(t,e,n).done(o.resolve).fail(o.reject)})),i._lastLoadDeferred=o,o},selectedItemKeys:function(t,e,n,i){var o=this,r=o._loadSelectedItems(t,n,i);return r.done((function(t){e?o._preserveSelectionUpdate(t,n):o._replaceSelectionUpdate(t),o.onSelectionChanged()})),r},addSelectedItem:function(t,e){if(r(e)&&e.disabled)-1===this.options.disabledItemKeys.indexOf(t)&&this.options.disabledItemKeys.push(t);else{var n=this._getKeyHash(t);-1===this._indexOfSelectedItemKey(n)&&(!o.isObject(n)&&this.options.keyHashIndices&&(this.options.keyHashIndices[n]=[this.options.selectedItemKeys.length]),this.options.selectedItemKeys.push(t),this.options.addedItemKeys.push(t),this.options.addedItems.push(e),this.options.selectedItems.push(e))}},_getSelectedIndexByKey:function(t,e){for(var n=this.options.selectedItemKeys,i=0;i<n.length;i++)if((!e||!e[i])&&this.equalKeys(n[i],t))return i;return-1},_getSelectedIndexByHash:function(t,e){var n=this.options.keyHashIndices[t];return n&&n.length>1&&e&&(n=n.filter((function(t){return!e[t]}))),n&&n[0]>=0?n[0]:-1},_indexOfSelectedItemKey:function(t,e){return this.options.equalByReference?this.options.selectedItemKeys.indexOf(t):o.isObject(t)?this._getSelectedIndexByKey(t,e):this._getSelectedIndexByHash(t,e)},_shiftSelectedKeyIndices:function(t){for(var e=t;e<this.options.selectedItemKeys.length;e++){var n=this.options.selectedItemKeys[e],i=a(n),o=this.options.keyHashIndices[i];if(o)for(var r=0;r<o.length;r++)o[r]>t&&o[r]--}},removeSelectedItem:function(t,e){var n=this._getKeyHash(t),i=!!e,r=this._indexOfSelectedItemKey(n,e);if(r<0)return r;if(this.options.removedItemKeys.push(t),this.options.removedItems.push(this.options.selectedItems[r]),i)return r;if(this.options.selectedItemKeys.splice(r,1),this.options.selectedItems.splice(r,1),o.isObject(n)||!this.options.keyHashIndices)return r;var a=this.options.keyHashIndices[n];return a?(a.shift(),a.length||delete this.options.keyHashIndices[n],this._shiftSelectedKeyIndices(r),r):r},_updateAddedItemKeys:function(t,e){for(var n=0;n<t.length;n++)this.isItemKeySelected(t[n])||(this.options.addedItemKeys.push(t[n]),this.options.addedItems.push(e[n]))},_updateRemovedItemKeys:function(t,e,n){for(var i=0;i<e.length;i++)this.isItemKeySelected(e[i])||(this.options.removedItemKeys.push(e[i]),this.options.removedItems.push(n[i]))},_getKeyHash:function(t){return this.options.equalByReference?t:a(t)},setSelectedItems:function(t,e){this._updateAddedItemKeys(t,e);var n=this.options.selectedItemKeys,i=this.options.selectedItems;this.options.equalByReference||(this._initSelectedItemKeyHash(),this.updateSelectedItemKeyHash(t)),this._setOption("selectedItemKeys",t),this._setOption("selectedItems",e),this._updateRemovedItemKeys(t,n,i)},isItemDataSelected:function(t){var e=this.options.keyOf(t);return this.isItemKeySelected(e)},isItemKeySelected:function(t){var e=this._getKeyHash(t);return-1!==this._indexOfSelectedItemKey(e)},getSelectAllState:function(t){return t?this._getVisibleSelectAllState():this._getFullSelectAllState()}})},function(t,e,n){"use strict";var i=n(39);t.exports=new i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(647),o=n(365),r=n(219),a=function(){function t(t){this._guards={},this._isUpdating=!1,this._templatesManager=t,this.onOptionChanged=this.onOptionChanged.bind(this),this._wrapOptionValue=this._wrapOptionValue.bind(this)}return t.prototype.setInstance=function(t,e){this._instance=t,this._currentConfig=e},t.prototype.getInitialOptions=function(t){for(var e=o.buildConfig(t,!1),n=0,i=Object.keys(e.templates);n<i.length;n++){var r=i[n];this._templatesManager.add(r,e.templates[r])}for(var a={},s=0,l=Object.keys(e.options);s<l.length;s++){a[r=l[s]]=this._wrapOptionValue(r,e.options[r])}return this._templatesManager.templatesCount>0&&(a.integrationOptions={templates:this._templatesManager.templates}),a},t.prototype.update=function(t){var e=this,n=i.getChanges(t,this._currentConfig);if(n.options||n.templates||n.removedOptions.length){this._instance.beginUpdate(),this._isUpdating=!0,n.removedOptions.forEach((function(t){e._resetOption(t)}));for(var o=0,r=Object.keys(n.templates);o<r.length;o++){var a=r[o];this._templatesManager.add(a,n.templates[a])}this._templatesManager.templatesCount>0&&this._setValue("integrationOptions",{templates:this._templatesManager.templates});for(var s=0,l=Object.keys(n.options);s<l.length;s++){a=l[s];this._setValue(a,n.options[a])}this._isUpdating=!1,this._instance.endUpdate(),this._currentConfig=t}},t.prototype.onOptionChanged=function(t){if(!this._isUpdating){var e=o.findValue(this._currentConfig,t.fullName.split("."));if(e){var n=e.value;if(e.type===o.ValueType.Complex)for(var i=0,a=Object.keys(n);i<a.length;i++){var s=a[i];null!==n[s]&&void 0!==n[s]&&n[s]!==t.value[s]&&this._setGuard(r.mergeNameParts(t.fullName,s),n[s])}else{if(null===n||void 0===n||n===t.value)return;this._setGuard(t.fullName,n)}}}},t.prototype.dispose=function(){for(var t=0,e=Object.keys(this._guards);t<e.length;t++){var n=e[t];window.clearTimeout(this._guards[n]),delete this._guards[n]}},t.prototype._wrapOptionValue=function(t,e){var n=this;return"on"===t.substr(0,2)&&"function"===typeof e?function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];n._isUpdating||e.apply(void 0,t)}:e},t.prototype._setGuard=function(t,e){var n=this;if(void 0===this._guards[t]){var i=window.setTimeout((function(){n._setValue(t,e),window.clearTimeout(i),delete n._guards[t]}));this._guards[t]=i}},t.prototype._resetOption=function(t){this._instance.resetOption(t)},t.prototype._setValue=function(t,e){this._guards[t]&&(window.clearTimeout(this._guards[t]),delete this._guards[t]),this._instance.option(t,this._wrapOptionValue(t,e))},t}();e.OptionsManager=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(365),o=n(219);function r(t,e,n){if(e){n.addRemovedValues(t.options,e.options,t.fullName),n.addRemovedValues(t.configCollections,e.configCollections,t.fullName),n.addRemovedValues(t.configs,e.configs,t.fullName),function(t,e,n){for(var a=function(a){var s=t.configCollections[a],l=e.configCollections[a]||[];if(!s||s.length!==l.length){var u=[];return s.map((function(t){var e=i.buildNode(t,n.templates,!0);u.push(e)})),n.options[o.mergeNameParts(t.fullName,a)]=u,"continue"}for(var c=0;c<s.length;c++)r(s[c],l[c],n)},s=0,l=Object.keys(t.configCollections);s<l.length;s++){var u=l[s];a(u)}}(t,e,n);for(var a=0,s=Object.keys(t.configs);a<s.length;a++){var l=s[a];r(t.configs[l],e.configs[l],n)}for(var u=0,c=Object.keys(t.options);u<c.length;u++){l=c[u];t.options[l]!==e.options[l]&&(n.options[o.mergeNameParts(t.fullName,l)]=t.options[l])}!function(t,e,n){var r={},a={},s={},l={};i.buildTemplates(t,r,a),i.buildTemplates(e,s,l),n.addRemovedValues(r,s,t.fullName);for(var u=0,c=Object.keys(r);u<c.length;u++){var d=c[u];r[d]!==s[d]&&(n.options[o.mergeNameParts(t.fullName,d)]=r[d])}for(var h=0,f=Object.keys(a);h<f.length;h++){d=f[h];var p=a[d],m=l[d];m&&p.content===m.content||(n.templates[d]=p)}}(t,e,n)}else n.options[t.fullName]=i.buildNode(t,n.templates,!0)}e.getChanges=function(t,e){var n={options:{},removedOptions:[],templates:{},addRemovedValues:function(t,e,n){!function(t,e,n,i){for(var r=Object.keys(e).filter((function(e){return Object.keys(t).indexOf(e)<0})),a=0,s=r;a<s.length;a++){var l=s[a];i.push(o.mergeNameParts(n,l))}}(t,e,n,this.removedOptions)}};return r(t,e,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(649),r=n(650);function a(t){if(o.getOption("useLegacyTemplateEngine")){var e=t.data;return e&&e.hasOwnProperty("key")&&(e.dxkey=e.key),e}return t}var s={component:function(t){return function(e){return e=a(e),i.createElement.bind(null,t())(e)}},render:function(t){return function(e){return a(e),t()(e.data,e.index)}},children:function(t){return function(){return t()}}},l=function(){function t(t){this._templates={},this._templatesContent={},this._templatesStore=t}return t.prototype.add=function(t,e){var n=this;this._templatesContent[t]=e.content;var i=s[e.type].bind(this,(function(){return n._templatesContent[t]}));this._templates[t]=r.createDxTemplate(i,this._templatesStore,e.keyFn)},Object.defineProperty(t.prototype,"templatesCount",{get:function(){return Object.keys(this._templates).length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"templates",{get:function(){return this._templates},enumerable:!0,configurable:!0}),t}();e.default=l},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o={useLegacyTemplateEngine:!1};e.getOption=function(t){return o[t]},e.default=function(t){o=i(i({},o),t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(651),r=n(652);e.createDxTemplate=function(t,e,n){var a=new o.DoubleKeyMap;return{render:function(s){var l,u,c=(l=s.container).get?l.get(0):l,d={key1:s.model,key2:c},h=a.get(d);return h?u=h:(u=n?n(s.model):"__template_"+o.generateID(),void 0!==s.model&&a.set(d,u)),e.add(u,(function(){var n={data:s.model,index:s.index},o=t();return i.createElement(r.TemplateWrapper,{content:o(n),container:c,onRemoved:function(){e.remove(u),a.delete({key1:s.model,key2:c})},onRendered:s.onRendered,key:u})})),c}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.generateID=function(){return Math.random().toString(36).substr(2)};var i=function(){function t(){this._map=new Map}return t.prototype.set=function(t,e){var n=t.key1,i=t.key2,o=this._map.get(n);o||(o=new Map,this._map.set(n,o)),o.set(i,e)},t.prototype.get=function(t){var e=t.key1,n=t.key2,i=this._map.get(e);return i?i.get(n):void 0},t.prototype.delete=function(t){var e=t.key1,n=t.key2,i=this._map.get(e);i&&(i.delete(n),0===i.size&&this._map.delete(e))},t}();e.DoubleKeyMap=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(364),r=n(1),a=n(86),s=n(259),l={display:"none"},u=function(t){function e(e){var n=t.call(this,e)||this;return n._removalListenerRef=r.createRef(),n.state={removalListenerRequired:!1},n._onDxRemove=n._onDxRemove.bind(n),n}return i(e,t),Object.defineProperty(e.prototype,"_listenerElement",{get:function(){return this._removalListenerRef.current},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this.state.removalListenerRequired?r.createElement("span",{style:l,ref:this._removalListenerRef}):void 0;return a.createPortal(r.createElement(r.Fragment,null,this.props.content,t),this.props.container)},e.prototype.componentDidMount=function(){var t,e;null===(e=(t=this.props).onRendered)||void 0===e||e.call(t),this._subscribeOnRemove()},e.prototype.componentDidUpdate=function(){this._subscribeOnRemove()},e.prototype.componentWillUnmount=function(){var t=a.findDOMNode(this);t&&this.props.container.appendChild(t),this._listenerElement&&this.props.container.appendChild(this._listenerElement)},e.prototype._subscribeOnRemove=function(){var t=a.findDOMNode(this);t&&t.nodeType===Node.ELEMENT_NODE?this._subscribeOnElementRemoval(t):this.state.removalListenerRequired?this._listenerElement&&this._subscribeOnElementRemoval(this._listenerElement):this.setState({removalListenerRequired:!0})},e.prototype._subscribeOnElementRemoval=function(t){o.off(t,s.DX_REMOVE_EVENT,this._onDxRemove),o.one(t,s.DX_REMOVE_EVENT,this._onDxRemove)},e.prototype._onDxRemove=function(){this.props.onRemoved()},e}(r.PureComponent);e.TemplateWrapper=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(1),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._updateScheduled=!1,e}return i(e,t),e.prototype.scheduleUpdate=function(){var t=this;this._updateScheduled||(this._updateScheduled=!0,o.deferUpdate((function(){t.forceUpdate(),t._updateScheduled=!1})))},e.prototype.render=function(){return r.createElement(r.Fragment,{},this.props.templatesStore.renderWrappers())},e}(r.PureComponent);e.TemplatesRenderer=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this._templates={},this._onTemplateAdded=t}return t.prototype.add=function(t,e){this._templates[t]=e,this._onTemplateAdded()},t.prototype.remove=function(t){delete this._templates[t]},t.prototype.renderWrappers=function(){var t=this;return Object.getOwnPropertyNames(this._templates).map((function(e){return t._templates[e]()}))},t}();e.TemplatesStore=i},function(t,e,n){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(366),a=n(367),s=n(219),l=n(656);function u(t,e){for(var n=t.descriptor.isCollection?e:s.mergeNameParts(e,t.descriptor.name),i=r.separateProps(t.props,t.descriptor.initialValuesProps,t.descriptor.templates),c=function(t,e){var n=[],i={},r={},c=!1;return o.Children.map(t.props.children,(function(o){var d=a.getElementInfo(o,t.descriptor.expectedChildren);if(d.type!==a.ElementType.Unknown)if(d.type!==a.ElementType.Template)if(d.descriptor.isCollection){var h=i[d.descriptor.name];h||(h=[],i[d.descriptor.name]=h);var f=u(d,s.mergeNameParts(e,d.descriptor.name)+"["+h.length+"]");h.push(f)}else{var p=u(d,e);r[d.descriptor.name]=p}else{var m=l.getNamedTemplate(d.props);m&&n.push(m)}else c=!0})),{configs:r,configCollections:i,templates:n,hasTranscludedContent:c}}(t,n),d=0,h=t.descriptor.templates;d<h.length;d++){var f=h[d],p=l.getAnonymousTemplate(t.props,f,e.length>0&&c.hasTranscludedContent);p&&c.templates.push(p)}return{fullName:n,predefinedOptions:t.descriptor.predefinedValuesProps,initialOptions:i.defaults,options:i.options,templates:c.templates,configCollections:c.configCollections,configs:c.configs}}e.buildConfigTree=function(t,e){return u({type:a.ElementType.Option,descriptor:i({name:"",isCollection:!1},t),props:e},"")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getAnonymousTemplate=function(t,e,n){return"template"===e.tmplOption&&n?{optionName:e.tmplOption,isAnonymous:!0,type:"children",content:t.children,keyFn:t[e.keyFn]}:t[e.render]?{optionName:e.tmplOption,isAnonymous:!0,type:"render",content:t[e.render],keyFn:t[e.keyFn]}:t[e.component]?{optionName:e.tmplOption,isAnonymous:!0,type:"component",content:t[e.component],keyFn:t[e.keyFn]}:null},e.getNamedTemplate=function(t){return t.name?t.component?{optionName:t.name,isAnonymous:!1,type:"component",content:t.component,keyFn:t.keyFn}:t.render?{optionName:t.name,isAnonymous:!1,type:"render",content:t.render,keyFn:t.keyFn}:{optionName:t.name,isAnonymous:!1,type:"children",content:t.children,keyFn:t.keyFn}:null}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(260),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultVisible:"visible"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ActionSheet=l,l.propTypes={cancelText:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,onCancelClick:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,showCancelButton:r.bool,showTitle:r.bool,title:r.string,usePopover:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=s(n(51)),o=n(193),r=s(n(659)),a=s(n(660));function s(t){return t&&t.__esModule?t:{default:t}}var l=/([^\s0]+)?(\s*)0*[.,]*0*(\s*)([^\s0]+)?/,u={},c=function(t){var e=(0,o.locale)()+"/"+JSON.stringify(t);return u[e]||(u[e]=new Intl.NumberFormat((0,o.locale)(),t).format),u[e]};t.exports={engine:function(){return"intl"},_formatNumberCore:function(t,e,n){return"exponential"===e?this.callBase.apply(this,arguments):c(this._normalizeFormatConfig(e,n))(t)},_normalizeFormatConfig:function(t,e,n){var o;return o="decimal"===t?{minimumIntegerDigits:e.precision||void 0,useGrouping:!1,maximumFractionDigits:String(n).length,round:n<0?"ceil":"floor"}:this._getPrecisionConfig(e.precision),"percent"===t?o.style="percent":"currency"===t&&(o.style="currency",o.currency=e.currency||(0,i.default)().defaultCurrency),o},_getPrecisionConfig:function(t){return null===t?{minimumFractionDigits:0,maximumFractionDigits:20}:{minimumFractionDigits:t||0,maximumFractionDigits:t||0}},format:function(t,e){return"number"!==typeof t?t:("default"===(e=this._normalizeFormat(e)).currency&&(e.currency=(0,i.default)().defaultCurrency),e&&("function"===typeof e||e.type||e.formatter)?this.callBase.apply(this,arguments):c(e)(t))},_getCurrencySymbolInfo:function(t){var e=function(t){return new Intl.NumberFormat((0,o.locale)(),{style:"currency",currency:t})}(t);return this._extractCurrencySymbolInfo(e.format(0))},_extractCurrencySymbolInfo:function(t){var e=l.exec(t)||[];return{position:e[1]?"before":"after",symbol:e[1]||e[4]||"",delimiter:e[2]||e[3]||""}},getCurrencySymbol:function(t){return t||(t=(0,i.default)().defaultCurrency),{symbol:this._getCurrencySymbolInfo(t).symbol}},getOpenXmlCurrencyFormat:function(t){var e=t||(0,i.default)().defaultCurrency,n=this._getCurrencySymbolInfo(e).symbol,s=(0,o.getValueByClosestLocale)((function(t){return a.default[t]}));return(0,r.default)(n,s)}}},function(t,e,n){"use strict";t.exports=function(t,e){if(e){var n=t;if("string"===typeof t){n="";for(var i=0;i<t.length;i++)"$"!==t[i]&&(n+="\\"),n+=t[i]}for(var o={".00":"{0}","'":"\\'","\\(":"\\(","\\)":"\\)"," ":"\\ ",'"':""","\\\xa4":n},r=e.split(";"),a=0;a<r.length;a++)for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&(r[a]=r[a].replace(new RegExp(s,"g"),o[s]));return 2===r.length?r[0]+"_);"+r[1]:r[0]}}},function(t,e,n){"use strict";t.exports={af:"\xa4#,##0.00;(\xa4#,##0.00)","af-NA":"\xa4#,##0.00;(\xa4#,##0.00)",agq:"#,##0.00\xa4",ak:"\xa4#,##0.00",am:"\xa4#,##0.00;(\xa4#,##0.00)",ar:"\xa4#,##0.00;(\xa4#,##0.00)","ar-AE":"\xa4#,##0.00;(\xa4#,##0.00)","ar-BH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-DZ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EG":"\xa4#,##0.00;(\xa4#,##0.00)","ar-EH":"\xa4#,##0.00;(\xa4#,##0.00)","ar-ER":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IL":"\xa4#,##0.00;(\xa4#,##0.00)","ar-IQ":"\xa4#,##0.00;(\xa4#,##0.00)","ar-JO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-KW":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LB":"\xa4#,##0.00;(\xa4#,##0.00)","ar-LY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-MR":"\xa4#,##0.00;(\xa4#,##0.00)","ar-OM":"\xa4#,##0.00;(\xa4#,##0.00)","ar-PS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-QA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SA":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SO":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SS":"\xa4#,##0.00;(\xa4#,##0.00)","ar-SY":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TD":"\xa4#,##0.00;(\xa4#,##0.00)","ar-TN":"\xa4#,##0.00;(\xa4#,##0.00)","ar-YE":"\xa4#,##0.00;(\xa4#,##0.00)",as:"\xa4\xa0#,##,##0.00",asa:"#,##0.00\xa0\xa4",ast:"#,##0.00\xa0\xa4",az:"#,##0.00\xa0\xa4","az-Cyrl":"#,##0.00\xa0\xa4","az-Latn":"#,##0.00\xa0\xa4",bas:"#,##0.00\xa0\xa4",be:"#,##0.00\xa0\xa4",bem:"\xa4#,##0.00;(\xa4#,##0.00)",bez:"#,##0.00\xa4",bg:"0.00\xa0\xa4;(0.00\xa0\xa4)",bm:"\xa4#,##0.00;(\xa4#,##0.00)",bn:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","bn-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",bo:"\xa4\xa0#,##0.00","bo-IN":"\xa4\xa0#,##0.00",br:"#,##0.00\xa0\xa4",brx:"\xa4\xa0#,##,##0.00",bs:"#,##0.00\xa0\xa4","bs-Cyrl":"#,##0.00\xa0\xa4","bs-Latn":"#,##0.00\xa0\xa4",ca:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-AD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-ES-VALENCIA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-FR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ca-IT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ccp:"#,##,##0.00\xa4;(#,##,##0.00\xa4)","ccp-IN":"#,##,##0.00\xa4;(#,##,##0.00\xa4)",ce:"#,##0.00\xa0\xa4",ceb:"\xa4#,##0.00;(\xa4#,##0.00)",cgg:"\xa4#,##0.00",chr:"\xa4#,##0.00;(\xa4#,##0.00)",ckb:"\xa4\xa0#,##0.00","ckb-IR":"\xa4\xa0#,##0.00",cs:"#,##0.00\xa0\xa4",cu:"\xa4\xa0#,##0.00",cy:"\xa4#,##0.00;(\xa4#,##0.00)",da:"#,##0.00\xa0\xa4","da-GL":"#,##0.00\xa0\xa4",dav:"\xa4#,##0.00;(\xa4#,##0.00)",de:"#,##0.00\xa0\xa4","de-AT":"#,##0.00\xa0\xa4","de-BE":"#,##0.00\xa0\xa4","de-CH":"#,##0.00\xa0\xa4","de-IT":"#,##0.00\xa0\xa4","de-LI":"#,##0.00\xa0\xa4","de-LU":"#,##0.00\xa0\xa4",dje:"#,##0.00\xa4",dsb:"#,##0.00\xa0\xa4",dua:"#,##0.00\xa0\xa4",dyo:"#,##0.00\xa0\xa4",dz:"\xa4#,##,##0.00",ebu:"\xa4#,##0.00;(\xa4#,##0.00)",ee:"\xa4#,##0.00;(\xa4#,##0.00)","ee-TG":"\xa4#,##0.00;(\xa4#,##0.00)",el:"#,##0.00\xa0\xa4","el-CY":"#,##0.00\xa0\xa4",en:"\xa4#,##0.00;(\xa4#,##0.00)","en-001":"\xa4#,##0.00;(\xa4#,##0.00)","en-150":"#,##0.00\xa0\xa4","en-AE":"\xa4#,##0.00;(\xa4#,##0.00)","en-AG":"\xa4#,##0.00;(\xa4#,##0.00)","en-AI":"\xa4#,##0.00;(\xa4#,##0.00)","en-AS":"\xa4#,##0.00;(\xa4#,##0.00)","en-AT":"\xa4\xa0#,##0.00","en-AU":"\xa4#,##0.00;(\xa4#,##0.00)","en-BB":"\xa4#,##0.00;(\xa4#,##0.00)","en-BE":"#,##0.00\xa0\xa4","en-BI":"\xa4#,##0.00;(\xa4#,##0.00)","en-BM":"\xa4#,##0.00;(\xa4#,##0.00)","en-BS":"\xa4#,##0.00;(\xa4#,##0.00)","en-BW":"\xa4#,##0.00;(\xa4#,##0.00)","en-BZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-CA":"\xa4#,##0.00;(\xa4#,##0.00)","en-CC":"\xa4#,##0.00;(\xa4#,##0.00)","en-CH":"\xa4\xa0#,##0.00;\xa4-#,##0.00","en-CK":"\xa4#,##0.00;(\xa4#,##0.00)","en-CM":"\xa4#,##0.00;(\xa4#,##0.00)","en-CX":"\xa4#,##0.00;(\xa4#,##0.00)","en-CY":"\xa4#,##0.00;(\xa4#,##0.00)","en-DE":"#,##0.00\xa0\xa4","en-DG":"\xa4#,##0.00;(\xa4#,##0.00)","en-DK":"#,##0.00\xa0\xa4","en-DM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ER":"\xa4#,##0.00;(\xa4#,##0.00)","en-FI":"#,##0.00\xa0\xa4","en-FJ":"\xa4#,##0.00;(\xa4#,##0.00)","en-FK":"\xa4#,##0.00;(\xa4#,##0.00)","en-FM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GB":"\xa4#,##0.00;(\xa4#,##0.00)","en-GD":"\xa4#,##0.00;(\xa4#,##0.00)","en-GG":"\xa4#,##0.00;(\xa4#,##0.00)","en-GH":"\xa4#,##0.00;(\xa4#,##0.00)","en-GI":"\xa4#,##0.00;(\xa4#,##0.00)","en-GM":"\xa4#,##0.00;(\xa4#,##0.00)","en-GU":"\xa4#,##0.00;(\xa4#,##0.00)","en-GY":"\xa4#,##0.00;(\xa4#,##0.00)","en-HK":"\xa4#,##0.00;(\xa4#,##0.00)","en-IE":"\xa4#,##0.00;(\xa4#,##0.00)","en-IL":"\xa4#,##0.00;(\xa4#,##0.00)","en-IM":"\xa4#,##0.00;(\xa4#,##0.00)","en-IN":"\xa4#,##0.00;(\xa4#,##0.00)","en-IO":"\xa4#,##0.00;(\xa4#,##0.00)","en-JE":"\xa4#,##0.00;(\xa4#,##0.00)","en-JM":"\xa4#,##0.00;(\xa4#,##0.00)","en-KE":"\xa4#,##0.00;(\xa4#,##0.00)","en-KI":"\xa4#,##0.00;(\xa4#,##0.00)","en-KN":"\xa4#,##0.00;(\xa4#,##0.00)","en-KY":"\xa4#,##0.00;(\xa4#,##0.00)","en-LC":"\xa4#,##0.00;(\xa4#,##0.00)","en-LR":"\xa4#,##0.00;(\xa4#,##0.00)","en-LS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MG":"\xa4#,##0.00;(\xa4#,##0.00)","en-MH":"\xa4#,##0.00;(\xa4#,##0.00)","en-MO":"\xa4#,##0.00;(\xa4#,##0.00)","en-MP":"\xa4#,##0.00;(\xa4#,##0.00)","en-MS":"\xa4#,##0.00;(\xa4#,##0.00)","en-MT":"\xa4#,##0.00;(\xa4#,##0.00)","en-MU":"\xa4#,##0.00;(\xa4#,##0.00)","en-MW":"\xa4#,##0.00;(\xa4#,##0.00)","en-MY":"\xa4#,##0.00;(\xa4#,##0.00)","en-NA":"\xa4#,##0.00;(\xa4#,##0.00)","en-NF":"\xa4#,##0.00;(\xa4#,##0.00)","en-NG":"\xa4#,##0.00;(\xa4#,##0.00)","en-NL":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","en-NR":"\xa4#,##0.00;(\xa4#,##0.00)","en-NU":"\xa4#,##0.00;(\xa4#,##0.00)","en-NZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-PG":"\xa4#,##0.00;(\xa4#,##0.00)","en-PH":"\xa4#,##0.00;(\xa4#,##0.00)","en-PK":"\xa4#,##0.00;(\xa4#,##0.00)","en-PN":"\xa4#,##0.00;(\xa4#,##0.00)","en-PR":"\xa4#,##0.00;(\xa4#,##0.00)","en-PW":"\xa4#,##0.00;(\xa4#,##0.00)","en-RW":"\xa4#,##0.00;(\xa4#,##0.00)","en-SB":"\xa4#,##0.00;(\xa4#,##0.00)","en-SC":"\xa4#,##0.00;(\xa4#,##0.00)","en-SD":"\xa4#,##0.00;(\xa4#,##0.00)","en-SE":"#,##0.00\xa0\xa4","en-SG":"\xa4#,##0.00;(\xa4#,##0.00)","en-SH":"\xa4#,##0.00;(\xa4#,##0.00)","en-SI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","en-SL":"\xa4#,##0.00;(\xa4#,##0.00)","en-SS":"\xa4#,##0.00;(\xa4#,##0.00)","en-SX":"\xa4#,##0.00;(\xa4#,##0.00)","en-SZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-TC":"\xa4#,##0.00;(\xa4#,##0.00)","en-TK":"\xa4#,##0.00;(\xa4#,##0.00)","en-TO":"\xa4#,##0.00;(\xa4#,##0.00)","en-TT":"\xa4#,##0.00;(\xa4#,##0.00)","en-TV":"\xa4#,##0.00;(\xa4#,##0.00)","en-TZ":"\xa4#,##0.00;(\xa4#,##0.00)","en-UG":"\xa4#,##0.00;(\xa4#,##0.00)","en-UM":"\xa4#,##0.00;(\xa4#,##0.00)","en-US-POSIX":"\xa4#,##0.00;(\xa4#,##0.00)","en-VC":"\xa4#,##0.00;(\xa4#,##0.00)","en-VG":"\xa4#,##0.00;(\xa4#,##0.00)","en-VI":"\xa4#,##0.00;(\xa4#,##0.00)","en-VU":"\xa4#,##0.00;(\xa4#,##0.00)","en-WS":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZA":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZM":"\xa4#,##0.00;(\xa4#,##0.00)","en-ZW":"\xa4#,##0.00;(\xa4#,##0.00)",eo:"\xa4\xa0#,##0.00",es:"#,##0.00\xa0\xa4","es-419":"\xa4#,##0.00","es-AR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-BO":"\xa4#,##0.00","es-BR":"\xa4#,##0.00","es-BZ":"\xa4#,##0.00","es-CL":"\xa4#,##0.00","es-CO":"\xa4#,##0.00","es-CR":"\xa4#,##0.00","es-CU":"\xa4#,##0.00","es-DO":"\xa4#,##0.00;(\xa4#,##0.00)","es-EA":"#,##0.00\xa0\xa4","es-EC":"\xa4#,##0.00","es-GQ":"#,##0.00\xa0\xa4","es-GT":"\xa4#,##0.00","es-HN":"\xa4#,##0.00","es-IC":"#,##0.00\xa0\xa4","es-MX":"\xa4#,##0.00","es-NI":"\xa4#,##0.00","es-PA":"\xa4#,##0.00","es-PE":"\xa4#,##0.00","es-PH":"#,##0.00\xa0\xa4","es-PR":"\xa4#,##0.00","es-PY":"\xa4#,##0.00","es-SV":"\xa4#,##0.00","es-US":"\xa4#,##0.00","es-UY":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","es-VE":"\xa4#,##0.00",et:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",eu:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",ewo:"#,##0.00\xa0\xa4",fa:"\u200e\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)","fa-AF":"\xa4\xa0#,##0.00;\u200e(\xa4\xa0#,##0.00)",ff:"#,##0.00\xa0\xa4","ff-Latn":"#,##0.00\xa0\xa4","ff-Latn-BF":"#,##0.00\xa0\xa4","ff-Latn-CM":"#,##0.00\xa0\xa4","ff-Latn-GH":"#,##0.00\xa0\xa4","ff-Latn-GM":"#,##0.00\xa0\xa4","ff-Latn-GN":"#,##0.00\xa0\xa4","ff-Latn-GW":"#,##0.00\xa0\xa4","ff-Latn-LR":"#,##0.00\xa0\xa4","ff-Latn-MR":"#,##0.00\xa0\xa4","ff-Latn-NE":"#,##0.00\xa0\xa4","ff-Latn-NG":"#,##0.00\xa0\xa4","ff-Latn-SL":"#,##0.00\xa0\xa4",fi:"#,##0.00\xa0\xa4",fil:"\xa4#,##0.00;(\xa4#,##0.00)",fo:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fo-DK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-BL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CI":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-CM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DJ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-DZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GP":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-HT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-KM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-ML":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MR":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-MU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-NE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-PM":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RE":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-RW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SC":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-SY":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TG":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-TN":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-VU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-WF":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","fr-YT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",fur:"\xa4\xa0#,##0.00",fy:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",ga:"\xa4#,##0.00;(\xa4#,##0.00)","ga-GB":"\xa4#,##0.00;(\xa4#,##0.00)",gd:"\xa4#,##0.00;(\xa4#,##0.00)",gl:"#,##0.00\xa0\xa4",gsw:"#,##0.00\xa0\xa4","gsw-FR":"#,##0.00\xa0\xa4","gsw-LI":"#,##0.00\xa0\xa4",gu:"\xa4#,##,##0.00;(\xa4#,##,##0.00)",guz:"\xa4#,##0.00;(\xa4#,##0.00)",gv:"\xa4#,##0.00",ha:"\xa4\xa0#,##0.00","ha-GH":"\xa4\xa0#,##0.00","ha-NE":"\xa4\xa0#,##0.00",haw:"\xa4#,##0.00;(\xa4#,##0.00)",he:"#,##0.00\xa0\xa4",hi:"\xa4#,##,##0.00",hr:"#,##0.00\xa0\xa4","hr-BA":"#,##0.00\xa0\xa4",hsb:"#,##0.00\xa0\xa4",hu:"#,##0.00\xa0\xa4",hy:"#,##0.00\xa0\xa4",ia:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",id:"\xa4#,##0.00",ig:"\xa4#,##0.00;(\xa4#,##0.00)",ii:"\xa4\xa0#,##0.00",is:"#,##0.00\xa0\xa4",it:"#,##0.00\xa0\xa4","it-CH":"#,##0.00\xa0\xa4","it-SM":"#,##0.00\xa0\xa4","it-VA":"#,##0.00\xa0\xa4",ja:"\xa4#,##0.00;(\xa4#,##0.00)",jgo:"\xa4\xa0#,##0.00",jmc:"\xa4#,##0.00",jv:"\xa4\xa0#,##0.00",ka:"#,##0.00\xa0\xa4",kab:"#,##0.00\xa4",kam:"\xa4#,##0.00;(\xa4#,##0.00)",kde:"\xa4#,##0.00;(\xa4#,##0.00)",kea:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",khq:"#,##0.00\xa4",ki:"\xa4#,##0.00;(\xa4#,##0.00)",kk:"#,##0.00\xa0\xa4",kkj:"\xa4\xa0#,##0.00",kl:"\xa4#,##0.00;\xa4-#,##0.00",kln:"\xa4#,##0.00;(\xa4#,##0.00)",km:"#,##0.00\xa4;(#,##0.00\xa4)",kn:"\xa4#,##0.00;(\xa4#,##0.00)",ko:"\xa4#,##0.00;(\xa4#,##0.00)","ko-KP":"\xa4#,##0.00;(\xa4#,##0.00)",kok:"\xa4#,##0.00;(\xa4#,##0.00)",ks:"\xa4\xa0#,##,##0.00",ksb:"#,##0.00\xa4",ksf:"#,##0.00\xa0\xa4",ksh:"#,##0.00\xa0\xa4",ku:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",kw:"\xa4#,##0.00",ky:"#,##0.00\xa0\xa4",lag:"\xa4\xa0#,##0.00",lb:"#,##0.00\xa0\xa4",lg:"#,##0.00\xa4",lkt:"\xa4\xa0#,##0.00",ln:"#,##0.00\xa0\xa4","ln-AO":"#,##0.00\xa0\xa4","ln-CF":"#,##0.00\xa0\xa4","ln-CG":"#,##0.00\xa0\xa4",lo:"\xa4#,##0.00;\xa4-#,##0.00",lrc:"\xa4\xa0#,##0.00","lrc-IQ":"\xa4\xa0#,##0.00",lt:"#,##0.00\xa0\xa4",lu:"#,##0.00\xa4",luo:"#,##0.00\xa4",luy:"\xa4#,##0.00;\xa4-\xa0#,##0.00",lv:"#,##0.00\xa0\xa4",mas:"\xa4#,##0.00;(\xa4#,##0.00)","mas-TZ":"\xa4#,##0.00;(\xa4#,##0.00)",mer:"\xa4#,##0.00;(\xa4#,##0.00)",mfe:"\xa4\xa0#,##0.00",mg:"\xa4#,##0.00",mgh:"\xa4\xa0#,##0.00",mgo:"\xa4\xa0#,##0.00",mi:"\xa4\xa0#,##0.00",mk:"#,##0.00\xa0\xa4",ml:"\xa4#,##0.00;(\xa4#,##0.00)",mn:"\xa4\xa0#,##0.00",mr:"\xa4#,##0.00;(\xa4#,##0.00)",ms:"\xa4#,##0.00;(\xa4#,##0.00)","ms-BN":"\xa4#,##0.00;(\xa4#,##0.00)","ms-SG":"\xa4#,##0.00;(\xa4#,##0.00)",mt:"\xa4#,##0.00",mua:"\xa4#,##0.00;(\xa4#,##0.00)",my:"\xa4\xa0#,##0.00",mzn:"\xa4\xa0#,##0.00",naq:"\xa4#,##0.00",nb:"\xa4\xa0#,##0.00","nb-SJ":"\xa4\xa0#,##0.00",nd:"\xa4#,##0.00;(\xa4#,##0.00)",nds:"\xa4\xa0#,##0.00","nds-NL":"\xa4\xa0#,##0.00",ne:"\xa4\xa0#,##0.00","ne-IN":"\xa4\xa0#,##0.00",nl:"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-AW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BE":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-BQ":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-CW":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SR":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)","nl-SX":"\xa4\xa0#,##0.00;(\xa4\xa0#,##0.00)",nmg:"#,##0.00\xa0\xa4",nn:"#,##0.00\xa0\xa4",nnh:"\xa4\xa0#,##0.00",nus:"\xa4#,##0.00;(\xa4#,##0.00)",nyn:"\xa4#,##0.00",om:"\xa4#,##0.00","om-KE":"\xa4#,##0.00",or:"\xa4#,##0.00;(\xa4#,##0.00)",os:"\xa4\xa0#,##0.00","os-RU":"\xa4\xa0#,##0.00",pa:"\xa4\xa0#,##0.00","pa-Arab":"\xa4\xa0#,##0.00","pa-Guru":"\xa4\xa0#,##0.00",pl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",prg:"\xa4\xa0#,##0.00",ps:"\xa4#,##0.00;(\xa4#,##0.00)","ps-PK":"\xa4#,##0.00;(\xa4#,##0.00)",pt:"\xa4\xa0#,##0.00","pt-AO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CH":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-CV":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GQ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-GW":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-LU":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MO":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-MZ":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-PT":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-ST":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","pt-TL":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",qu:"\xa4\xa0#,##0.00","qu-BO":"\xa4\xa0#,##0.00","qu-EC":"\xa4\xa0#,##0.00",rm:"#,##0.00\xa0\xa4",rn:"#,##0.00\xa4",ro:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","ro-MD":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",rof:"\xa4#,##0.00",root:"\xa4\xa0#,##0.00",ru:"#,##0.00\xa0\xa4","ru-BY":"#,##0.00\xa0\xa4","ru-KG":"#,##0.00\xa0\xa4","ru-KZ":"#,##0.00\xa0\xa4","ru-MD":"#,##0.00\xa0\xa4","ru-UA":"#,##0.00\xa0\xa4",rw:"\xa4\xa0#,##0.00",rwk:"#,##0.00\xa4",sah:"#,##0.00\xa0\xa4",saq:"\xa4#,##0.00;(\xa4#,##0.00)",sbp:"#,##0.00\xa4",sd:"\xa4\xa0#,##0.00",se:"#,##0.00\xa0\xa4","se-FI":"#,##0.00\xa0\xa4","se-SE":"#,##0.00\xa0\xa4",seh:"#,##0.00\xa4",ses:"#,##0.00\xa4",sg:"\xa4#,##0.00;\xa4-#,##0.00",shi:"#,##0.00\xa4","shi-Latn":"#,##0.00\xa4","shi-Tfng":"#,##0.00\xa4",si:"\xa4#,##0.00;(\xa4#,##0.00)",sk:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sl:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",smn:"#,##0.00\xa0\xa4",sn:"\xa4#,##0.00;(\xa4#,##0.00)",so:"\xa4#,##0.00;(\xa4#,##0.00)","so-DJ":"\xa4#,##0.00;(\xa4#,##0.00)","so-ET":"\xa4#,##0.00;(\xa4#,##0.00)","so-KE":"\xa4#,##0.00;(\xa4#,##0.00)",sq:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-MK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sq-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sr:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Cyrl-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-BA":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-ME":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)","sr-Latn-XK":"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",sv:"#,##0.00\xa0\xa4","sv-AX":"#,##0.00\xa0\xa4","sv-FI":"#,##0.00\xa0\xa4",sw:"\xa4\xa0#,##0.00","sw-CD":"\xa4\xa0#,##0.00","sw-KE":"\xa4\xa0#,##0.00","sw-UG":"\xa4\xa0#,##0.00",ta:"\xa4#,##0.00;(\xa4#,##0.00)","ta-LK":"\xa4#,##0.00;(\xa4#,##0.00)","ta-MY":"\xa4#,##0.00;(\xa4#,##0.00)","ta-SG":"\xa4#,##0.00;(\xa4#,##0.00)",te:"\xa4#,##0.00;(\xa4#,##0.00)",teo:"\xa4#,##0.00;(\xa4#,##0.00)","teo-KE":"\xa4#,##0.00;(\xa4#,##0.00)",tg:"#,##0.00\xa0\xa4",th:"\xa4#,##0.00;(\xa4#,##0.00)",ti:"\xa4#,##0.00","ti-ER":"\xa4#,##0.00",tk:"#,##0.00\xa0\xa4",to:"\xa4\xa0#,##0.00",tr:"\xa4#,##0.00;(\xa4#,##0.00)","tr-CY":"\xa4#,##0.00;(\xa4#,##0.00)",tt:"#,##0.00\xa0\xa4",twq:"#,##0.00\xa4",tzm:"#,##0.00\xa0\xa4",ug:"\xa4#,##0.00;(\xa4#,##0.00)",uk:"#,##0.00\xa0\xa4",ur:"\xa4#,##0.00;(\xa4#,##0.00)","ur-IN":"\xa4#,##0.00;(\xa4#,##0.00)",uz:"#,##0.00\xa0\xa4","uz-Arab":"\xa4\xa0#,##0.00","uz-Cyrl":"#,##0.00\xa0\xa4","uz-Latn":"#,##0.00\xa0\xa4",vai:"\xa4#,##0.00;(\xa4#,##0.00)","vai-Latn":"\xa4#,##0.00;(\xa4#,##0.00)","vai-Vaii":"\xa4#,##0.00;(\xa4#,##0.00)",vi:"#,##0.00\xa0\xa4",vo:"\xa4\xa0#,##0.00",vun:"\xa4#,##0.00",wae:"\xa4\xa0#,##0.00",wo:"\xa4\xa0#,##0.00",xh:"\xa4#,##0.00",xog:"#,##0.00\xa0\xa4",yav:"#,##0.00\xa0\xa4;(#,##0.00\xa0\xa4)",yi:"\xa4\xa0#,##0.00",yo:"\xa4#,##0.00;(\xa4#,##0.00)","yo-BJ":"\xa4#,##0.00;(\xa4#,##0.00)",yue:"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","yue-Hant":"\xa4#,##0.00;(\xa4#,##0.00)",zgh:"#,##0.00\xa4",zh:"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-MO":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hans-SG":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-HK":"\xa4#,##0.00;(\xa4#,##0.00)","zh-Hant-MO":"\xa4#,##0.00;(\xa4#,##0.00)",zu:"\xa4#,##0.00;(\xa4#,##0.00)"}},function(t,e,n){"use strict";var i,o=n(69),r=(i=o)&&i.__esModule?i:{default:i},a=n(7),s=n(4);var l=r.default.inherit({_initMarkup:function(){this._deferredItems=[],this.callBase()},_renderItemContent:function(t){var e=new a.Deferred,n=new a.Deferred;this._deferredItems[t.index]=n;var i=this.callBase.call(this,t);return n.done((function(){e.resolve(i)})),e.promise()},_createItemByTemplate:function(t,e){var n=this;return t.render({model:e.itemData,container:e.container,index:e.index,onRendered:function(){n._deferredItems[e.index].resolve()}})},_postProcessRenderItems:s.noop,_renderItemsAsync:function(){var t=this,e=new a.Deferred;return a.when.apply(this,this._deferredItems).done((function(){t._postProcessRenderItems(),e.resolve()})),e.promise()},_clean:function(){this.callBase(),this._deferredItems=[]}});t.exports=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(663),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Autocomplete=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,buttons:r.array,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayValue:r.string,dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,grouped:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,items:r.array,maxItemCount:r.number,maxLength:r.oneOfType([r.number,r.string]),minSearchLength:r.number,name:r.string,onChange:r.func,onClosed:r.func,onContentReady:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onItemClick:r.func,onKeyDown:r.func,onKeyUp:r.func,onOpened:r.func,onOptionChanged:r.func,onPaste:r.func,onSelectionChanged:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith"]),searchTimeout:r.number,showClearButton:r.bool,showDropDownButton:r.bool,spellcheck:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.string,valueChangeEvent:r.string,valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapItemText:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=x,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(8),a=n(0).extend,s=n(263),l=n(7).Deferred,u=s.inherit({_supportedKeys:function(){var t=this._list?this._list.option("focusedElement"):null,e=this.callBase();return t=t&&i(t),a({},e,{upArrow:function(e){return e.preventDefault(),e.stopPropagation(),!(t&&!this._calcNextItem(-1))||(this._clearFocusedItem(),!1)},downArrow:function(e){return e.preventDefault(),e.stopPropagation(),!(t&&!this._calcNextItem(1))||(this._clearFocusedItem(),!1)},enter:function(){return t||this.close(),e.enter.apply(this,arguments),this.option("opened")}})},_getDefaultOptions:function(){return a(this.callBase(),{minSearchLength:1,maxItemCount:10,noDataText:"",showDropDownButton:!1,searchEnabled:!0})},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-autocomplete"),this.setAria("autocomplete","inline")},_displayGetterExpr:function(){return this.option("valueExpr")},_popupConfig:function(){return a(this.callBase(),{closeOnOutsideClick:function(t){return!i(t.target).closest(this.$element()).length}.bind(this)})},_renderDimensions:function(){this.callBase(),this._dimensionChanged()},_popupWrapperClass:function(){return this.callBase()+" dx-autocomplete-popup-wrapper"},_listConfig:function(){return a(this.callBase(),{pageLoadMode:"none"})},_listItemClickHandler:function(t){var e=this._displayGetter(t.itemData);this.option("value",e),this.close()},_setListDataSource:function(){this._list&&(this._list.option("selectedItems",[]),this.callBase())},_refreshSelected:o,_searchCanceled:function(){this.callBase(),this.close()},_loadItem:function(t,e){var n=this._getItemFromPlain(t,e);return(new l).resolve(n).promise()},_dataSourceOptions:function(){return{paginate:!0,pageSize:this.option("maxItemCount")}},_searchDataSource:function(){this._dataSource.pageSize(this.option("maxItemCount")),this.callBase(),this._clearFocusedItem()},_clearFocusedItem:function(){this._list&&(this._list.option("focusedElement",null),this._list.option("selectedIndex",-1))},_renderValueEventName:function(){return"input keyup"},_valueChangeEventHandler:function(t){var e=this._input().val()||null;return this.callBase(t,e)},_optionChanged:function(t){switch(t.name){case"maxItemCount":this._searchDataSource();break;case"valueExpr":this._compileDisplayGetter(),this._setListOption("displayExpr",this._displayGetterExpr()),this.callBase(t);break;default:this.callBase(t)}},reset:function(){this.callBase(),this.close()}});r("dxAutocomplete",u),t.exports=u,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=l(n(3)),o=l(n(6)),r=l(n(12)),a=l(n(222)),s=l(n(42));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,a,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_attachEvents",value:function(t){var e=this.editor;t.option("onClick",(function(t){!e.option("openOnFieldClick")&&e._openHandler(t)})),o.default.on(t.$element(),"mousedown",(function(t){e.$element().is(".dx-state-focused")&&t.preventDefault()}))}},{key:"_create",value:function(){var t=this.editor,e=(0,i.default)("<div>"),n=this._getOptions();this._addToContainer(e);var o=t._createComponent(e,s.default,n);return o.setAria("label",r.default.format("dxDropDownEditor-selectLabel")),this._legacyRender(t.$element(),e,n.visible),{$element:e,instance:o}}},{key:"_getOptions",value:function(){var t=this.editor,e=this._isVisible();return{focusStateEnabled:!1,hoverStateEnabled:!1,activeStateEnabled:!1,useInkRipple:!1,disabled:t.option("readOnly"),visible:e,template:t._getTemplateByOption("dropDownButtonTemplate")}}},{key:"_isVisible",value:function(){var t=this.editor;return h(g(u.prototype),"_isVisible",this).call(this)&&t.option("showDropDownButton")}},{key:"_legacyRender",value:function(t,e,n){t.toggleClass("dx-dropdowneditor-button-visible",n),e&&(e.removeClass("dx-button"),e.addClass("dx-dropdowneditor-button"))}},{key:"update",value:function(){if(h(g(u.prototype),"update",this).call(this)){var t=this.editor,e=this.instance,n=t.$element(),i=this._getOptions();e&&e.option(i),this._legacyRender(n,e&&e.$element(),i.visible)}}}])&&d(e.prototype,n),a&&d(e,a),u}(a.default);e.default=_},function(t,e,n){"use strict";var i=n(3),o=n(10),r=o.getWindow(),a=o.getNavigator(),s=n(31),l=n(6),u=n(18),c=n(16).inArray,d=n(0).extend,h=n(8),f=n(375),p=n(11),m=a.userAgent,g=["backspace","tab","enter","pageUp","pageDown","end","home","leftArrow","rightArrow","downArrow","upArrow","del"],_=f.inherit({ctor:function(t,e){e&&(this._showClearButton=e.showClearButton),this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return d(this.callBase(),{value:"",mode:"text",maxLength:null})},_initMarkup:function(){this.$element().addClass("dx-textbox"),this.callBase(),this.setAria("role","textbox")},_renderContentImpl:function(){this._renderMaxLengthHandlers(),this.callBase()},_renderInputType:function(){this.callBase(),this._renderSearchMode()},_renderMaxLengthHandlers:function(){this._isAndroidOrIE()&&(l.on(this._input(),p.addNamespace("keydown",this.NAME),this._onKeyDownCutOffHandler.bind(this)),l.on(this._input(),p.addNamespace("change",this.NAME),this._onChangeCutOffHandler.bind(this)))},_renderProps:function(){this.callBase(),this._toggleMaxLengthProp()},_toggleMaxLengthProp:function(){var t=this._getMaxLength();t&&t>0?this._input().attr("maxLength",t):this._input().removeAttr("maxLength")},_renderSearchMode:function(){var t=this._$element;"search"===this.option("mode")?(t.addClass("dx-searchbox"),this._renderSearchIcon(),void 0===this._showClearButton&&(this._showClearButton=this.option("showClearButton"),this.option("showClearButton",!0))):(t.removeClass("dx-searchbox"),this._$searchIcon&&this._$searchIcon.remove(),this.option("showClearButton",void 0===this._showClearButton?this.option("showClearButton"):this._showClearButton),delete this._showClearButton)},_renderSearchIcon:function(){var t=i("<div>").addClass("dx-icon").addClass("dx-icon-search");t.prependTo(this._input().parent()),this._$searchIcon=t},_optionChanged:function(t){switch(t.name){case"maxLength":this._toggleMaxLengthProp(),this._renderMaxLengthHandlers();break;case"mask":this.callBase(t),this._toggleMaxLengthProp();break;default:this.callBase(t)}},_onKeyDownCutOffHandler:function(t){var e=this._getMaxLength();if(e){var n=i(t.target),o=p.normalizeKeyName(t);return this._cutOffExtraChar(n),n.val().length<e||-1!==c(o,g)||""!==r.getSelection().toString()}return!0},_onChangeCutOffHandler:function(t){var e=i(t.target);this.option("maxLength")&&this._cutOffExtraChar(e)},_cutOffExtraChar:function(t){var e=this._getMaxLength(),n=t.val();e&&n.length>e&&t.val(n.substr(0,e))},_getMaxLength:function(){return!!this.option("mask")?null:this.option("maxLength")},_isAndroidOrIE:function(){var t=u.real(),e=t.version.join(".");return s.msie||"android"===t.platform&&e&&/^(2\.|4\.1)/.test(e)&&!/chrome/i.test(m)}});h("dxTextBox",_),t.exports=_},function(t,e,n){"use strict";var i=n(3),o=n(376),r=n(5).each,a=n(11),s=n(6),l=n(0).extend,u=n(91).focused,c=n(2).isDefined,d=n(12),h=n(4).noop,f=n(55),p=n(154),m=n(667),g=n(668),_=n(672).isInputEventsL2Supported,v=n(673).default,y=n(674).default,b=function(){return{}},w={0:/[0-9]/,9:/[0-9\s]/,"#":/[-+0-9\s]/,L:function(t){return C(t)},l:function(t){return C(t)||S(t)},C:/\S/,c:/./,A:function(t){return C(t)||x(t)},a:function(t){return C(t)||x(t)||S(t)}};function x(t){return/[0-9]/.test(t)}function C(t){var e=t.charCodeAt();return 64<e&&e<91||96<e&&e<123||e>127}function S(t){return" "===t}var k=g.inherit({_getDefaultOptions:function(){return l(this.callBase(),{mask:"",maskChar:"_",maskRules:{},maskInvalidMessage:d.format("validation-mask"),useMaskedValue:!1,showMaskMode:"always"})},_supportedKeys:function(){var t=this,e={backspace:t._maskStrategy.getHandler("backspace"),del:t._maskStrategy.getHandler("del"),enter:t._changeHandler},n=t.callBase();return r(e,(function(e,i){var o=n[e];n[e]=function(e){t.option("mask")&&i.call(t,e),o&&o(e)}})),n},_getSubmitElement:function(){return this.option("mask")?this._$hiddenElement:this.callBase()},_init:function(){this.callBase(),this._initMaskStrategy()},_initMaskStrategy:function(){this._maskStrategy=_()?new y(this):new v(this)},_initMarkup:function(){this._renderHiddenElement(),this.callBase()},_attachMouseWheelEventHandlers:function(){if(this._onMouseWheel!==h){var t=this._input(),e=a.addNamespace(p.name,this.NAME),n=this._createAction(function(e){if(u(t)){var n=e.event;this._onMouseWheel(n),n.preventDefault(),n.stopPropagation()}}.bind(this));s.off(t,e),s.on(t,e,(function(t){n({event:t})}))}},_onMouseWheel:h,_render:function(){this._renderMask(),this.callBase(),this._attachMouseWheelEventHandlers()},_renderHiddenElement:function(){this.option("mask")&&(this._$hiddenElement=i("<input>").attr("type","hidden").appendTo(this._inputWrapper()))},_removeHiddenElement:function(){this._$hiddenElement&&this._$hiddenElement.remove()},_renderMask:function(){this.$element().removeClass("dx-texteditor-masked"),this._maskRulesChain=null,this._maskStrategy.detachEvents(),this.option("mask")&&(this.$element().addClass("dx-texteditor-masked"),this._maskStrategy.attachEvents(),this._parseMask(),this._renderMaskedValue())},_suppressCaretChanging:function(t,e){var n=o;o=b;try{t.apply(this,e)}finally{o=n}},_changeHandler:function(t){var e=this._input(),n=e.val();if(n!==this._changedValue){this._changedValue=n;var i=a.createEvent(t,{type:"change"});s.trigger(e,i)}},_parseMask:function(){this._maskRules=l({},w,this.option("maskRules")),this._maskRulesChain=this._parseMaskRule(0)},_parseMaskRule:function(t){var e=this.option("mask");if(t>=e.length)return new m.EmptyMaskRule;var n=e[t],i="\\"===n,o=i?new m.StubMaskRule({maskChar:e[t+1]}):this._getMaskRule(n);return o.next(this._parseMaskRule(t+1+i)),o},_getMaskRule:function(t){var e;return r(this._maskRules,(function(n,i){if(n===t)return e={pattern:n,allowedChars:i},!1})),c(e)?new m.MaskRule(l({maskChar:this.option("maskChar")},e)):new m.StubMaskRule({maskChar:t})},_renderMaskedValue:function(){if(this._maskRulesChain){var t=this.option("value")||"";this._maskRulesChain.clear(this._normalizeChainArguments());var e={length:t.length};e[this._isMaskedValueMode()?"text":"value"]=t,this._handleChain(e),this._displayMask()}},_replaceSelectedText:function(t,e,n){return void 0===n?t:t.slice(0,e.start)+n+t.slice(e.end)},_isMaskedValueMode:function(){return this.option("useMaskedValue")},_displayMask:function(t){t=t||this._caret(),this._renderValue(),this._caret(t)},_isValueEmpty:function(){return f.isEmpty(this._value)},_shouldShowMask:function(){return"onFocus"!==this.option("showMaskMode")||(u(this._input())||!this._isValueEmpty())},_showMaskPlaceholder:function(){if(this._shouldShowMask()){var t=this._maskRulesChain.text();this.option("text",t),"onFocus"===this.option("showMaskMode")&&this._renderDisplayText(t)}},_renderValue:function(){if(this._maskRulesChain){var t=this._maskRulesChain.text();if(this._showMaskPlaceholder(),this._$hiddenElement){var e=this._maskRulesChain.value(),n=this._isMaskedValueMode()?t:e;this._$hiddenElement.val(f.isEmpty(e)?"":n)}}return this.callBase()},_valueChangeEventHandler:function(t){this._maskRulesChain?(this._saveValueChangeEvent(t),this.option("value",this._convertToValue().replace(/\s+$/,""))):this.callBase.apply(this,arguments)},_isControlKeyFired:function(t){return this._isControlKey(a.normalizeKeyName(t))||t.ctrlKey||t.metaKey},_handleChain:function(t){var e=this._maskRulesChain.handle(this._normalizeChainArguments(t));return this._value=this._maskRulesChain.value(),this._textValue=this._maskRulesChain.text(),e},_normalizeChainArguments:function(t){return(t=t||{}).index=0,t.fullText=this._maskRulesChain.text(),t},_convertToValue:function(t){return t=this._isMaskedValueMode()?this._replaceMaskCharWithEmpty(t||this._textValue||""):t||this._value||""},_replaceMaskCharWithEmpty:function(t){return t.replace(new RegExp(this.option("maskChar"),"g")," ")},_maskKeyHandler:function(t,e){var n=this;if(!this.option("readOnly")){this.setForwardDirection(),t.preventDefault(),this._handleSelection();var i=this._input().val(),o=function(){i!==n._input().val()&&n._maskStrategy.runWithoutEventProcessing((function(){return s.trigger(n._input(),"input")}))},r=e();r?r.then(o):(this.setForwardDirection(),this._adjustCaret(),this._displayMask(),this._maskRulesChain.reset(),o())}},_handleKey:function(t,e){this._direction(e||"forward"),this._adjustCaret(t),this._handleKeyChain(t),this._moveCaret()},_handleSelection:function(){if(this._hasSelection()){var t=this._caret(),e=new Array(t.end-t.start+1).join(" ");this._handleKeyChain(e)}},_handleKeyChain:function(t){var e=this._caret(),n=this.isForwardDirection()?e.start:e.start-1,i=this.isForwardDirection()?e.end:e.end-1,o=n===i?1:i-n;this._handleChain({text:t,start:n,length:o})},_tryMoveCaretBackward:function(){this.setBackwardDirection();var t=this._caret().start;return this._adjustCaret(),!t||t!==this._caret().start},_adjustCaret:function(t){var e=this._maskRulesChain.adjustedCaret(this._caret().start,this.isForwardDirection(),t);this._caret({start:e,end:e})},_moveCaret:function(){var t=this._caret().start,e=t+(this.isForwardDirection()?0:-1),n=this._maskRulesChain.isAccepted(e)?t+(this.isForwardDirection()?1:-1):t;this._caret({start:n,end:n})},_caret:function(t){var e=this._input();if(e.length)return arguments.length?void o(e,t):o(e)},_hasSelection:function(){var t=this._caret();return t.start!==t.end},_direction:function(t){if(!arguments.length)return this._typingDirection;this._typingDirection=t},setForwardDirection:function(){this._direction("forward")},setBackwardDirection:function(){this._direction("backward")},isForwardDirection:function(){return"forward"===this._direction()},_clean:function(){this._maskStrategy&&this._maskStrategy.clean(),this.callBase()},_validateMask:function(){if(this._maskRulesChain){var t=f.isEmpty(this.option("value"))||this._maskRulesChain.isValid(this._normalizeChainArguments());this.option({isValid:t,validationError:t?null:{editorSpecific:!0,message:this.option("maskInvalidMessage")}})}},_updateHiddenElement:function(){this._removeHiddenElement(),this.option("mask")&&(this._input().removeAttr("name"),this._renderHiddenElement()),this._setSubmitElementName(this.option("name"))},_updateMaskOption:function(){this._updateHiddenElement(),this._renderMask(),this._validateMask()},_processEmptyMask:function(t){if(!t){var e=this.option("value");this.option({text:e,isValid:!0}),this.validationRequest.fire({value:e,editor:this}),this._renderValue()}},_optionChanged:function(t){switch(t.name){case"mask":this._updateMaskOption(),this._processEmptyMask(t.value);break;case"maskChar":case"maskRules":case"useMaskedValue":this._updateMaskOption();break;case"value":this._renderMaskedValue(),this._validateMask(),this.callBase(t),this._changedValue=this._input().val();break;case"maskInvalidMessage":break;case"showMaskMode":this.option("text",""),this._renderValue();break;default:this.callBase(t)}}});t.exports=k},function(t,e,n){"use strict";var i=n(21),o=n(0).extend,r=n(16).inArray,a=n(2),s=n(4).noop,l=a.isFunction,u=i.inherit({ctor:function(t){this._value=" ",o(this,t)},next:function(t){if(!arguments.length)return this._next;this._next=t},text:s,value:s,rawValue:s,handle:s,_prepareHandlingArgs:function(t,e){e=e||{};var n=Object.prototype.hasOwnProperty.call(t,"value")?"value":"text";return t[n]=a.isDefined(e.str)?e.str:t[n],t.start=a.isDefined(e.start)?e.start:t.start,t.length=a.isDefined(e.length)?e.length:t.length,t.index=t.index+1,t},reset:s,clear:s,first:function(t){return t=t||0,this.next().first(t+1)},isAccepted:function(){return!1},adjustedCaret:function(t,e,n){return e?this._adjustedForward(t,0,n):this._adjustedBackward(t,0,n)},_adjustedForward:s,_adjustedBackward:s,isValid:s}),c=u.inherit({next:s,handle:function(){return 0},text:function(){return""},value:function(){return""},first:function(){return 0},rawValue:function(){return""},adjustedCaret:function(){return 0},isValid:function(){return!0}}),d=u.inherit({text:function(){return(" "!==this._value?this._value:this.maskChar)+this.next().text()},value:function(){return this._value+this.next().value()},rawValue:function(){return this._value+this.next().rawValue()},handle:function(t){var e=Object.prototype.hasOwnProperty.call(t,"value")?t.value:t.text;if(!e||!e.length||!t.length)return 0;if(t.start)return this.next().handle(this._prepareHandlingArgs(t,{start:t.start-1}));var n=e[0],i=e.substring(1);return this._tryAcceptChar(n,t),this._accepted()?this.next().handle(this._prepareHandlingArgs(t,{str:i,length:t.length-1}))+1:this.handle(this._prepareHandlingArgs(t,{str:i,length:t.length-1}))},clear:function(t){this._tryAcceptChar(" ",t),this.next().clear(this._prepareHandlingArgs(t))},reset:function(){this._accepted(!1),this.next().reset()},_tryAcceptChar:function(t,e){if(this._accepted(!1),this._isAllowed(t,e)){var n=" "===t?this.maskChar:t;e.fullText=e.fullText.substring(0,e.index)+n+e.fullText.substring(e.index+1),this._accepted(!0),this._value=t}},_accepted:function(t){if(!arguments.length)return!!this._isAccepted;this._isAccepted=!!t},first:function(t){return" "===this._value?t||0:this.callBase(t)},_isAllowed:function(t,e){return" "===t||this._isValid(t,e)},_isValid:function(t,e){var n=this.allowedChars;return n instanceof RegExp?n.test(t):l(n)?n(t,e.index,e.fullText):Array.isArray(n)?r(t,n)>-1:n===t},isAccepted:function(t){return 0===t?this._accepted():this.next().isAccepted(t-1)},_adjustedForward:function(t,e,n){return e>=t?e:this.next()._adjustedForward(t,e+1,n)||e+1},_adjustedBackward:function(t,e){return e>=t-1?t:this.next()._adjustedBackward(t,e+1)||e+1},isValid:function(t){return this._isValid(this._value,t)&&this.next().isValid(this._prepareHandlingArgs(t))}}),h=d.inherit({value:function(){return this.next().value()},handle:function(t){var e=Object.prototype.hasOwnProperty.call(t,"value"),n=e?t.value:t.text;if(!n.length||!t.length)return 0;if(t.start||e)return this.next().handle(this._prepareHandlingArgs(t,{start:t.start&&t.start-1}));var i=n[0],o=n.substring(1);this._tryAcceptChar(i);var r=this._isAllowed(i)?this._prepareHandlingArgs(t,{str:o,length:t.length-1}):t;return this.next().handle(r)+1},clear:function(t){this._accepted(!1),this.next().clear(this._prepareHandlingArgs(t))},_tryAcceptChar:function(t){this._accepted(this._isValid(t))},_isValid:function(t){return t===this.maskChar},first:function(t){return t=t||0,this.next().first(t+1)},_adjustedForward:function(t,e,n){return e>=t&&n===this.maskChar?e:t===e+1&&this._accepted()?t:this.next()._adjustedForward(t,e+1,n)},_adjustedBackward:function(t,e){return e>=t-1?0:this.next()._adjustedBackward(t,e+1)},isValid:function(t){return this.next().isValid(this._prepareHandlingArgs(t))}});t.exports.MaskRule=d,t.exports.StubMaskRule=h,t.exports.EmptyMaskRule=c},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=k(n(3)),r=k(n(15)),a=k(n(6)),s=k(n(17)),l=n(91),u=n(2),c=n(0),d=n(16),h=n(5),f=k(n(18)),p=k(n(36)),m=k(n(62)),g=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=S();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),_=k(n(28)),v=k(n(669)),y=k(n(670)),b=k(n(51)),w=k(n(23)),x=n(7),C=k(n(81));function S(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return S=function(){return t},t}function k(t){return t&&t.__esModule?t:{default:t}}var I=["dx-editor-outlined","dx-editor-filled","dx-editor-underlined"],T=["KeyDown","KeyPress","KeyUp","Change","Cut","Copy","Paste","Input"],E=["tab","enter","shift","control","alt","escape","pageUp","pageDown","end","home","leftArrow","upArrow","rightArrow","downArrow"];function O(t){if((0,u.isDefined)(t)&&!Array.isArray(t))throw w.default.Error("E1053")}var M=m.default.inherit({ctor:function(t,e){e&&O(e.buttons),this._buttonCollection=new y.default(this,this._getDefaultButtons()),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this.callBase.apply(this,arguments)},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{buttons:void 0,value:"",spellcheck:!1,showClearButton:!1,valueChangeEvent:"change",placeholder:"",inputAttr:{},onFocusIn:null,onFocusOut:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onChange:null,onInput:null,onCut:null,onCopy:null,onPaste:null,onEnterKey:null,mode:"text",hoverStateEnabled:!0,focusStateEnabled:!0,text:void 0,displayValueFormatter:function(t){return(0,u.isDefined)(t)&&!1!==t?t:""},stylingMode:(0,b.default)().editorStylingMode||"outlined",showValidationMark:!0})},_defaultOptionsRules:function(){var t=p.default.current();return this.callBase().concat([{device:function(){return p.default.isMaterial(t)},options:{stylingMode:(0,b.default)().editorStylingMode||"underlined"}}])},_setDeprecatedOptions:function(){this.callBase(),(0,c.extend)(this._deprecatedOptions,{onKeyPress:{since:"20.1",message:"This event is removed from the web standards and will be deprecated in modern browsers soon."}})},_getDefaultButtons:function(){return[{name:"clear",Ctor:v.default}]},_isClearButtonVisible:function(){return this.option("showClearButton")&&!this.option("readOnly")},_input:function(){return this.$element().find(".dx-texteditor-input").first()},_isFocused:function(){return(0,l.focused)(this._input())||this.callBase()},_inputWrapper:function(){return this.$element()},_buttonsContainer:function(){return this._inputWrapper().find(".dx-texteditor-buttons-container").eq(0)},_isControlKey:function(t){return-1!==E.indexOf(t)},_renderStylingMode:function(){var t=this,e=this.option("stylingMode");I.forEach((function(e){return t.$element().removeClass(e)}));var n="dx-editor-"+e;if(-1===I.indexOf(n)){var i=this._getDefaultOptions().stylingMode;n="dx-editor-"+(this._convertRulesToOptions(this._defaultOptionsRules()).stylingMode||i)}this.$element().addClass(n),this._updateButtonsStyling(e)},_initMarkup:function(){this.$element().addClass("dx-texteditor"),this._renderInput(),this._renderStylingMode(),this._renderInputType(),this._renderPlaceholder(),this._renderProps(),this.callBase(),this._renderValue()},_render:function(){this._renderPlaceholder(),this._refreshValueChangeEvent(),this._renderEvents(),this._renderEnterKeyAction(),this._renderEmptinessEvent(),this.callBase()},_renderInput:function(){this._$textEditorContainer=(0,o.default)("<div>").addClass("dx-texteditor-container").appendTo(this.$element()),this._$textEditorInputContainer=(0,o.default)("<div>").addClass("dx-texteditor-input-container").appendTo(this._$textEditorContainer),this._$textEditorInputContainer.append(this._createInput()),this._renderButtonContainers()},_getInputContainer:function(){return this._$textEditorInputContainer},_renderPendingIndicator:function(){this.$element().addClass("dx-validation-pending");var t=this._getInputContainer(),e=(0,o.default)("<div>").addClass("dx-pending-indicator").appendTo(t);this._pendingIndicator=this._createComponent(e,C.default)},_disposePendingIndicator:function(){this._pendingIndicator&&(this._pendingIndicator.dispose(),this._pendingIndicator.$element().remove(),this._pendingIndicator=null,this.$element().removeClass("dx-validation-pending"))},_renderValidationState:function(){this.callBase();var t="pending"===this.option("validationStatus"),e=this.$element();t?(!this._pendingIndicator&&this._renderPendingIndicator(),this._showValidMark=!1):("invalid"===this.option("validationStatus")&&(this._showValidMark=!1),this._showValidMark||!0!==this.option("showValidationMark")||(this._showValidMark="valid"===this.option("validationStatus")&&!!this._pendingIndicator),this._disposePendingIndicator()),e.toggleClass("dx-valid",!!this._showValidMark)},_renderButtonContainers:function(){var t=this.option("buttons");this._$beforeButtonsContainer=this._buttonCollection.renderBeforeButtons(t,this._$textEditorContainer),this._$afterButtonsContainer=this._buttonCollection.renderAfterButtons(t,this._$textEditorContainer)},_clean:function(){this._buttonCollection.clean(),this._disposePendingIndicator(),this._$beforeButtonsContainer=null,this._$afterButtonsContainer=null,this._$textEditorContainer=null,this.callBase()},_createInput:function(){var t=(0,o.default)("<input>");return this._applyInputAttributes(t,this.option("inputAttr")),t},_setSubmitElementName:function(t){var e=this.option("inputAttr.name");return this.callBase(t||e||"")},_applyInputAttributes:function(t,e){var n=(0,c.extend)(this._getDefaultAttributes(),e);t.attr(n).addClass("dx-texteditor-input").css("minHeight",this.option("height")?"0":"")},_getDefaultAttributes:function(){var t={autocomplete:"off"};return f.default.real().ios&&(t.placeholder=" "),t},_updateButtons:function(t){this._buttonCollection.updateButtons(t)},_updateButtonsStyling:function(t){var e=this;(0,h.each)(this.option("buttons"),(function(n,i){if(i.options&&!i.options.stylingMode){var o=e.getButton(i.name);o.option&&o.option("stylingMode","underlined"===t?"text":"contained")}}))},_renderValue:function(){return this._renderInputValue().promise()},_renderInputValue:function(t){t=t||this.option("value");var e=this.option("text"),n=this.option("displayValue"),i=this.option("displayValueFormatter");return void 0!==n&&null!==t?e=i(n):(0,u.isDefined)(e)||(e=i(t)),this.option("text",e),this._input().val()!==((0,u.isDefined)(e)?e:"")?this._renderDisplayText(e):this._toggleEmptinessEventHandler(),(new x.Deferred).resolve()},_renderDisplayText:function(t){this._input().val(t),this._toggleEmptinessEventHandler()},_isValueValid:function(){if(this._input().length){var t=this._input().get(0).validity;if(t)return t.valid}return!0},_toggleEmptiness:function(t){this.$element().toggleClass("dx-texteditor-empty",t),this._togglePlaceholder(t)},_togglePlaceholder:function(t){this._$placeholder&&this._$placeholder.toggleClass("dx-state-invisible",!t)},_renderProps:function(){this._toggleReadOnlyState(),this._toggleSpellcheckState(),this._toggleTabIndex()},_toggleDisabledState:function(t){this.callBase.apply(this,arguments);var e=this._input();t?e.attr("disabled",!0):e.removeAttr("disabled")},_toggleTabIndex:function(){var t=this._input(),e=this.option("disabled"),n=this.option("focusStateEnabled");e||!n?t.attr("tabIndex",-1):t.removeAttr("tabIndex")},_toggleReadOnlyState:function(){this._input().prop("readOnly",this._readOnlyPropValue()),this.callBase()},_readOnlyPropValue:function(){return this.option("readOnly")},_toggleSpellcheckState:function(){this._input().prop("spellcheck",this.option("spellcheck"))},_renderPlaceholder:function(){this._renderPlaceholderMarkup(),this._attachPlaceholderEvents()},_renderPlaceholderMarkup:function(){this._$placeholder&&(this._$placeholder.remove(),this._$placeholder=null);var t=this._input(),e=this.option("placeholder"),n=this._$placeholder=(0,o.default)("<div>").attr("data-dx_placeholder",e);n.insertAfter(t),n.addClass("dx-placeholder")},_attachPlaceholderEvents:function(){var t=this,e=g.addNamespace(_.default.up,this.NAME);a.default.on(this._$placeholder,e,(function(){a.default.trigger(t._input(),"focus")})),this._toggleEmptinessEventHandler()},_placeholder:function(){return this._$placeholder||(0,o.default)()},_clearValueHandler:function(t){var e=this._input();t.stopPropagation(),this._saveValueChangeEvent(t),this._clearValue(),!this._isFocused()&&a.default.trigger(e,"focus"),a.default.trigger(e,"input")},_clearValue:function(){this.reset()},_renderEvents:function(){var t=this,e=this._input();(0,h.each)(T,(function(n,i){if(t.hasActionSubscription("on"+i)){var o=t._createActionByOption("on"+i,{excludeValidators:["readOnly"]});a.default.on(e,g.addNamespace(i.toLowerCase(),t.NAME),(function(e){t._disposed||o({event:e})}))}}))},_refreshEvents:function(){var t=this,e=this._input();(0,h.each)(T,(function(n,i){a.default.off(e,g.addNamespace(i.toLowerCase(),t.NAME))})),this._renderEvents()},_keyPressHandler:function(){this.option("text",this._input().val())},_keyDownHandler:function(t){var e=this._input(),n=t.ctrlKey&&"enter"===g.normalizeKeyName(t),i=e.val()!==this.option("value");n&&i&&a.default.trigger(e,"change")},_renderValueChangeEvent:function(){var t=g.addNamespace(this._renderValueEventName(),"".concat(this.NAME,"TextChange")),e=g.addNamespace(this.option("valueChangeEvent"),"".concat(this.NAME,"ValueChange")),n=g.addNamespace("keydown","".concat(this.NAME,"TextChange")),i=this._input();a.default.on(i,t,this._keyPressHandler.bind(this)),a.default.on(i,e,this._valueChangeEventHandler.bind(this)),a.default.on(i,n,this._keyDownHandler.bind(this))},_cleanValueChangeEvent:function(){var t=".".concat(this.NAME,"ValueChange"),e=".".concat(this.NAME,"TextChange");a.default.off(this._input(),t),a.default.off(this._input(),e)},_refreshValueChangeEvent:function(){this._cleanValueChangeEvent(),this._renderValueChangeEvent()},_renderValueEventName:function(){return"input change keypress"},_focusTarget:function(){return this._input()},_focusEventTarget:function(){return this.element()},_preventNestedFocusEvent:function(t){if(t.isDefaultPrevented())return!0;var e=this._isNestedTarget(t.relatedTarget);return"focusin"===t.type&&(e=e&&this._isNestedTarget(t.target)),e&&t.preventDefault(),e},_isNestedTarget:function(t){return!!this.$element().find(t).length},_focusClassTarget:function(){return this.$element()},_focusInHandler:function(t){this._preventNestedFocusEvent(t),this.callBase.apply(this,arguments)},_focusOutHandler:function(t){this._preventNestedFocusEvent(t),this.callBase.apply(this,arguments)},_toggleFocusClass:function(t,e){this.callBase(t,this._focusClassTarget(e))},_hasFocusClass:function(t){return this.callBase((0,o.default)(t||this.$element()))},_renderEmptinessEvent:function(){var t=this._input();a.default.on(t,"input blur",this._toggleEmptinessEventHandler.bind(this))},_toggleEmptinessEventHandler:function(){var t=this._input().val(),e=(""===t||null===t)&&this._isValueValid();this._toggleEmptiness(e)},_valueChangeEventHandler:function(t,e){this._saveValueChangeEvent(t),this.option("value",arguments.length>1?e:this._input().val()),this._saveValueChangeEvent(void 0)},_renderEnterKeyAction:function(){this._enterKeyAction=this._createActionByOption("onEnterKey",{excludeValidators:["readOnly"]}),a.default.off(this._input(),"keyup.onEnterKey.dxTextEditor"),a.default.on(this._input(),"keyup.onEnterKey.dxTextEditor",this._enterKeyHandlerUp.bind(this))},_enterKeyHandlerUp:function(t){this._disposed||"enter"===g.normalizeKeyName(t)&&this._enterKeyAction({event:t})},_updateValue:function(){this.option("text",void 0),this._renderValue()},_dispose:function(){this._enterKeyAction=void 0,this.callBase()},_getSubmitElement:function(){return this._input()},_optionChanged:function(t){var e=t.name;if((0,d.inArray)(e.replace("on",""),T)>-1)this._refreshEvents();else switch(e){case"valueChangeEvent":this._refreshValueChangeEvent(),this._refreshFocusEvent(),this._refreshEvents();break;case"onValueChanged":this._createValueChangeAction();break;case"focusStateEnabled":this.callBase(t),this._toggleTabIndex();break;case"spellcheck":this._toggleSpellcheckState();break;case"mode":this._renderInputType();break;case"onEnterKey":this._renderEnterKeyAction();break;case"placeholder":this._renderPlaceholder();break;case"readOnly":case"disabled":this._updateButtons(),this.callBase(t);break;case"showClearButton":this._updateButtons(["clear"]);break;case"text":break;case"value":this._updateValue(),this.callBase(t);break;case"inputAttr":this._applyInputAttributes(this._input(),t.value);break;case"stylingMode":this._renderStylingMode();break;case"buttons":t.fullName===t.name&&O(t.value),this._$beforeButtonsContainer&&this._$beforeButtonsContainer.remove(),this._$afterButtonsContainer&&this._$afterButtonsContainer.remove(),this._buttonCollection.clean(),this._renderButtonContainers();break;case"displayValueFormatter":this._invalidate();break;case"showValidationMark":break;default:this.callBase(t)}},_renderInputType:function(){this._setInputType(this.option("mode"))},_setInputType:function(t){var e=this._input();"search"===t&&(t="text");try{e.prop("type",t)}catch(n){e.prop("type","text")}},getButton:function(t){return this._buttonCollection.getButton(t)},focus:function(){a.default.trigger(this._input(),"focus")},blur:function(){this._input().is(r.default.getActiveElement())&&s.default.resetActiveElement()},reset:function(){this._showValidMark&&(this._showValidMark=!1,this._renderValidationState());var t=this._getDefaultOptions();this.option("value")===t.value?(this.option("text",""),this._renderValue()):this.option("value",t.value)},on:function(t,e){var n=this.callBase(t,e),i=t.charAt(0).toUpperCase()+t.substr(1);return T.indexOf(i)>=0&&this._refreshEvents(),n}});t.exports=M},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(n(3)),o=u(n(6)),r=u(n(222)),a=n(11),s=n(28),l=n(25);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,r,u=m(c);function c(){return d(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"_create",value:function(){var t=(0,i.default)("<span>").addClass("dx-clear-button-area").append((0,i.default)("<span>").addClass("dx-icon").addClass("dx-icon-clear"));return this._addToContainer(t),this.update(!0),{instance:t,$element:t}}},{key:"_isVisible",value:function(){return this.editor._isClearButtonVisible()}},{key:"_attachEvents",value:function(t,e){var n=this.editor,i=n.NAME;o.default.on(e,(0,a.addNamespace)(s.down,i),(function(t){"mouse"===t.pointerType?t.preventDefault():n._clearValueHandler(t)})),o.default.on(e,(0,a.addNamespace)(l.name,i),(function(t){return n._clearValueHandler(t)}))}},{key:"_legacyRender",value:function(t,e){t.toggleClass("dx-show-clear-button",e)}},{key:"update",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];!t&&f(_(c.prototype),"update",this).call(this);var e=this.editor,n=this.instance,i=e.$element(),o=this._isVisible();n&&n.toggleClass("dx-state-invisible",!o),this._legacyRender(i,o)}}])&&h(e.prototype,n),r&&h(e,r),c}(r.default);e.default=v},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=l(n(3)),o=l(n(671)),r=n(0),a=n(16),s=l(n(23));function l(t){return t&&t.__esModule?t:{default:t}}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(-1!==t.indexOf(e))throw s.default.Error("E1055",e);t.push(e)}var h=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.buttons=[],this.defaultButtonsInfo=n,this.editor=e}var e,n,l;return e=t,(n=[{key:"_compileButtonInfo",value:function(t){var e=this,n=[];return t.map((function(t){var i,l="string"===typeof t;if(l||(i=t,function(){if(!i||"object"!==c(i)||Array.isArray(i))throw s.default.Error("E1053")}(),function(){if(!("name"in i))throw s.default.Error("E1054")}(),function(){if("string"!==typeof i.name)throw s.default.Error("E1055")}(),function(){var t=i.location;"location"in i&&"after"!==t&&"before"!==t&&(i.location="after")}()),l||function(t,e){return!!(0,a.find)(e,(function(e){return e.name===t}))}(t.name,e.defaultButtonsInfo)){var u=(0,a.find)(e.defaultButtonsInfo,(function(e){var n=e.name;return n===t||n===t.name}));if(!u)throw s.default.Error("E1056",e.editor.NAME,t);return d(n,t),u}var h=t.name;return d(n,h),(0,r.extend)(t,{Ctor:o.default})}))}},{key:"_createButton",value:function(t){var e=t.Ctor,n=t.options,i=new e(t.name,this.editor,n);return this.buttons.push(i),i}},{key:"_renderButtons",value:function(t,e,n){var o=this,r=null,a=t?this._compileButtonInfo(t):this.defaultButtonsInfo;return a.forEach((function(t){var a=t.location;(void 0===a?"after":a)===n&&o._createButton(t).render((r=r||(0,i.default)("<div>").addClass("dx-texteditor-buttons-container"),"before"===n?e.prepend(r):e.append(r),r))})),r}},{key:"clean",value:function(){this.buttons.forEach((function(t){return t.dispose()})),this.buttons=[]}},{key:"getButton",value:function(t){var e=(0,a.find)(this.buttons,(function(e){return e.name===t}));return e&&e.instance}},{key:"renderAfterButtons",value:function(t,e){return this._renderButtons(t,e,"after")}},{key:"renderBeforeButtons",value:function(t,e){return this._renderButtons(t,e,"before")}},{key:"updateButtons",value:function(t){this.buttons.forEach((function(e){t&&-1===t.indexOf(e.name)||e.update()}))}}])&&u(e.prototype,n),l&&u(e,l),t}();e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(n(3)),o=c(n(222)),r=c(n(42)),a=n(0),s=c(n(6)),l=c(n(216)),u=c(n(25));function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return(p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(d,t);var e,n,o,c=g(d);function d(){return h(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"_attachEvents",value:function(t,e){var n=this.editor;s.default.on(e,l.default.start,(function(){n.$element().addClass("dx-custom-button-hovered")})),s.default.on(e,l.default.end,(function(){n.$element().removeClass("dx-custom-button-hovered")})),s.default.on(e,u.default.name,(function(t){t.stopPropagation()}))}},{key:"_create",value:function(){var t=this.editor,e=(0,i.default)("<div>");return this._addToContainer(e),{$element:e,instance:t._createComponent(e,r.default,(0,a.extend)({},this.options,{ignoreParentReadOnly:!0,disabled:this._isDisabled(),integrationOptions:this._prepareIntegrationOptions(t)}))}}},{key:"_prepareIntegrationOptions",value:function(t){return(0,a.extend)({},t.option("integrationOptions"),{skipTemplates:["content"]})}},{key:"update",value:function(){var t=p(v(d.prototype),"update",this).call(this);return this.instance&&this.instance.option("disabled",this._isDisabled()),t}},{key:"_isVisible",value:function(){return this.editor.option("visible")}},{key:"_isDisabled",value:function(){return void 0!==this.options.disabled?this.instance?this.instance.option("disabled"):this.options.disabled:this.editor.option("readOnly")}}])&&f(e.prototype,n),o&&f(e,o),d}(o.default);e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isInputEventsL2Supported=function(){return"onbeforeinput"in(0,o.createElement)("input")||function(){var t=a.default.real(),e=t.android,n=t.version;return e&&n[0]>4}()};var i,o=n(15),r=n(18),a=(i=r)&&i.__esModule?i:{default:i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a(n(377)),o=n(11),r=a(n(93));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t))return u(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return u(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(s,t);var e,n,i,a=p(s);function s(){return c(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"_getStrategyName",value:function(){return"default"}},{key:"getHandleEventNames",value:function(){return[].concat(l(h(g(s.prototype),"getHandleEventNames",this).call(this)),["keyPress"])}},{key:"_keyPressHandler",value:function(t){if(!this._keyPressHandled&&(this._keyPressHandled=!0,!this.editor._isControlKeyFired(t))){var e=this.editor;e._maskKeyHandler(t,(function(){return e._handleKey((0,o.getChar)(t))}))}}},{key:"_inputHandler",value:function(t){if(this._backspaceInputHandled(t.originalEvent&&t.originalEvent.inputType)&&this._handleBackspaceInput(t),t.originalEvent&&this._autoFillHandler(t),!this._keyPressHandled){this._keyPressHandled=!0;var e=this.editorInput().val(),n=this.editorCaret();if(n.end){n.start=n.end-1;var i=e.substring(0,n.start)+e.substring(n.end),o=e[n.start],r=this.editor;this.editorInput().val(i),r._caret({start:n.start,end:n.start}),r._maskKeyHandler(t,(function(){return r._handleKey(o)}))}}}},{key:"_backspaceHandler",value:function(t){var e=this,n=this.editor;this._keyPressHandled=!0;var i=function(t,i){t&&(n._direction(e.DIRECTION.FORWARD),n._adjustCaret());var o=e.editorCaret();return new r.default((function(t){clearTimeout(e._backspaceHandlerTimeout),e._backspaceHandlerTimeout=setTimeout((function(){i(o),t()}))}))};n._maskKeyHandler(t,(function(){return n._hasSelection()?i(!0,(function(t){n._displayMask(t),n._maskRulesChain.reset()})):n._tryMoveCaretBackward()?i(!1,(function(t){e.editorCaret(t)})):(n._handleKey(" ",e.DIRECTION.BACKWARD),i(!0,(function(t){n._displayMask(t),n._maskRulesChain.reset()})))}))}},{key:"_backspaceInputHandled",value:function(t){return"deleteContentBackward"===t&&!this._keyPressHandled}},{key:"_handleBackspaceInput",value:function(t){var e=this.editorCaret(),n=e.start,i=e.end;this.editorCaret({start:n+1,end:i+1}),this._backspaceHandler(t)}}])&&d(e.prototype,n),i&&d(e,i),s}(i.default);e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(377),r=(i=o)&&i.__esModule?i:{default:i};function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return l(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(r,t);var e,n,i,o=f(r);function r(){return u(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_getStrategyName",value:function(){return"inputEvents"}},{key:"getHandleEventNames",value:function(){return[].concat(s(d(m(r.prototype),"getHandleEventNames",this).call(this)),["beforeInput"])}},{key:"_beforeInputHandler",value:function(){this._prevCaret=this.editorCaret()}},{key:"_inputHandler",value:function(t){var e=t.originalEvent;if(e){var n=e.inputType,i=e.data,o=this.editorCaret();if("deleteContentBackward"===n){var r=this._prevCaret.end-this._prevCaret.start||1;this.editor.setBackwardDirection(),this._updateEditorMask({start:o.start,length:r,text:this._getEmptyString(r)})}else{if(!o.end)return;this._autoFillHandler(e),this.editorCaret(o);var a=this._prevCaret.end-this._prevCaret.start,s=i+(a?this._getEmptyString(a-i.length):"");this.editor.setForwardDirection(),this._updateEditorMask({start:this._prevCaret.start,length:a||s.length,text:s})||this.editorCaret(this._prevCaret)}}}},{key:"_getEmptyString",value:function(t){return Array(t+1).join(" ")}},{key:"_updateEditorMask",value:function(t){var e=t.text.length,n=this.editor._handleChain(t);if(this.editor.isForwardDirection()){var i=this.editorCaret(),o=i.start,r=i.end,a=n-e;o<=n&&n>1&&this.editorCaret({start:o+a,end:r+a}),this.editor.isForwardDirection()&&this.editor._adjustCaret()}return this.editor._displayMask(),!!n}}])&&c(e.prototype,n),i&&c(e,i),r}(r.default);e.default=g},function(t,e,n){"use strict";var i=n(378),o=n(271),r=i.inherit(o).inherit({_addWidgetPrefix:function(t){return"dx-list-"+t},_getCombinedFilter:function(){var t,e,n=this._dataSource;return n&&(e={filter:n.filter()},n._addSearchFilter(e),t=e.filter),t},_initDataSource:function(){var t=this.option("searchValue"),e=this.option("searchExpr"),n=this.option("searchMode");this.callBase(),this._dataSource&&(t&&t.length&&this._dataSource.searchValue(t),n.length&&this._dataSource.searchOperation(o.getOperationBySearchMode(n)),e&&this._dataSource.searchExpr(e))}});t.exports=r},function(t,e,n){"use strict";var i=n(3),o=n(2).isNumeric,r=n(5).each,a=n(133).queryByOptions,s=n(61),l=n(218),u=function(t){return(t.group<<20)+t.item},c=function(t){return{group:t>>20,item:2303&t}},d=l.inherit({_groupElements:function(){return this._collectionWidget._itemContainer().find(".dx-list-group")},_groupItemElements:function(t){return t.find(".dx-list-item")},getIndexByItemData:function(t){var e=this._collectionWidget.option("items"),n=!1;return!!t&&(t.items&&t.items.length&&(t=t.items[0]),r(e,(function(e,i){return!!i.items&&(r(i.items,(function(i,o){return o!==t||(n={group:e,item:i},!1)})),!n&&void 0)})),n)},getItemDataByIndex:function(t){var e=this._collectionWidget.option("items");return o(t)?this.itemsGetter()[t]:t&&e[t.group]&&e[t.group].items[t.item]||null},itemsGetter:function(){for(var t=[],e=this._collectionWidget.option("items"),n=0;n<e.length;n++)e[n]&&e[n].items?t=t.concat(e[n].items):t.push(e[n]);return t},deleteItemAtIndex:function(t){var e=c(t);this._collectionWidget.option("items")[e.group].items.splice(e.item,1)},getKeysByItems:function(t){var e,n=[];for(e=0;e<t.length;e++)t[e]&&t[e].items?n=n.concat(t[e].items):n.push(t[e]);var i=[];for(e=0;e<n.length;e++)i.push(this._collectionWidget.keyOf(n[e]));return i},getIndexByKey:function(t,e){var n=e||this._collectionWidget.option("items"),i=-1,o=this;return r(n,(function(e,n){if(n.items){var a=o.getKeysByItems(n.items);return r(a,(function(n,r){if(o._equalKeys(r,t))return i={group:e,item:n},!1})),-1===i&&void 0}})),i},_getGroups:function(t){var e=this._collectionWidget.getDataSource(),n=e&&e.group();return n?a(s(t),{group:n}).toArray():this._collectionWidget.option("items")},getItemsByKeys:function(t,e){var n=[];return r(t,function(t,i){var o=function(t){var e=this.getIndexByKey(i,t),n=e&&t[e.group];if(n)return{groupKey:n.key,item:n.items[e.item]}}.bind(this)(this._getGroups(e));if(o){var a,s=o.groupKey,l=o.item;r(n,(function(t,e){if(e.key===s)return a=e,!1})),a||(a={key:s,items:[]},n.push(a)),a.items.push(l)}}.bind(this)),n},moveItemAtIndexToIndex:function(t,e){var n=this._collectionWidget.option("items"),i=c(t),o=c(e),r=n[i.group].items,a=n[o.group].items,s=r[i.item];r.splice(i.item,1),a.splice(o.item,0,s)},_isItemIndex:function(t){return t&&o(t.group)&&o(t.item)},_getNormalizedItemIndex:function(t){var e=i(t),n=e.closest(".dx-list-group");return n.length?u({group:this._groupElements().index(n),item:this._groupItemElements(n).index(e)}):-1},_normalizeItemIndex:function(t){return u(t)},_denormalizeItemIndex:function(t){return c(t)},_getItemByNormalizedIndex:function(t){var e=c(t),n=this._groupElements().eq(e.group);return this._groupItemElements(n).eq(e.item)},_itemsFromSameParent:function(t,e){return c(t).group===c(e).group}});t.exports=d},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(21),a=n(0).extend,s=n(5).each,l=n(23),u=n(115);n(678),n(679),n(680),n(681),n(682),n(687),n(689);var c=[],d=function(t,e,n){c.push({enabled:t,decoratorType:e,decoratorSubType:n})};d((function(){return this.option("menuItems").length}),(function(){return"menu"}),(function(){return this.option("menuMode")})),d((function(){return!this.option("menuItems").length&&this.option("allowItemDeleting")}),(function(){var t=this.option("itemDeleteMode");return"toggle"===t||"slideButton"===t||"swipe"===t||"static"===t?"delete":"menu"}),(function(){var t=this.option("itemDeleteMode");return"slideItem"===t&&(t="slide"),"hold"===t&&(t="context"),t})),d((function(){return"none"!==this.option("selectionMode")&&this.option("showSelectionControls")}),(function(){return"selection"}),(function(){return"default"})),d((function(){return this.option("itemDragging.allowReordering")||this.option("itemDragging.allowDropInsideItem")||this.option("itemDragging.group")}),(function(){return"reorder"}),(function(){return"default"}));var h=r.inherit({ctor:function(t){this._list=t,this._fetchRequiredDecorators()},dispose:function(){this._decorators&&this._decorators.length&&s(this._decorators,(function(t,e){e.dispose()}))},_fetchRequiredDecorators:function(){this._decorators=[],s(c,function(t,e){if(e.enabled.call(this._list)){var n=e.decoratorType.call(this._list),i=e.decoratorSubType.call(this._list),o=this._createDecorator(n,i);this._decorators.push(o)}}.bind(this))},_createDecorator:function(t,e){return new(this._findDecorator(t,e))(this._list)},_findDecorator:function(t,e){var n=u.registry[t][e];if(!n)throw l.Error("E1012",t,e);return n},modifyItemElement:function(t){var e=i(t.itemElement),n={$itemElement:e};this._prependBeforeBags(e,n),this._appendAfterBags(e,n),this._applyDecorators("modifyElement",n)},afterItemsRendered:function(){this._applyDecorators("afterRender")},_prependBeforeBags:function(t,e){var n=this._collectDecoratorsMarkup("beforeBag",e,"dx-list-item-before-bag");t.prepend(n)},_appendAfterBags:function(t,e){var n=this._collectDecoratorsMarkup("afterBag",e,"dx-list-item-after-bag");t.append(n)},_collectDecoratorsMarkup:function(t,e,n){var o=i("<div>");return s(this._decorators,(function(){var r=i("<div>").addClass(n);this[t](a({$container:r},e)),r.children().length&&o.append(r)})),o.children()},_applyDecorators:function(t,e){s(this._decorators,(function(){this[t](e)}))},_handlerExists:function(t){if(!this._decorators)return!1;for(var e=this._decorators,n=e.length,i=0;i<n;i++)if(e[i][t]!==o)return!0;return!1},_eventHandler:function(t,e,n){if(!this._decorators)return!1;for(var i=!1,o=this._decorators,r=o.length,a=0;a<r&&!(i=o[a][t](e,n));a++);return i},handleClick:function(t,e){return this._eventHandler("handleClick",t,e)},handleKeyboardEvents:function(t,e){return this._eventHandler("handleKeyboardEvents",t,e)},handleEnterPressing:function(){return this._eventHandler("handleEnterPressing")},contextMenuHandlerExists:function(){return this._handlerExists("handleContextMenu")},handleContextMenu:function(t,e){return this._eventHandler("handleContextMenu",t,e)},getExcludedItemSelectors:function(){var t=[];return this._applyDecorators("getExcludedSelectors",t),t.join(",")}});t.exports=h},function(t,e,n){"use strict";var i=n(3),o=n(42),r=n(115).register,a=n(161);r("delete","static",a.inherit({afterBag:function(t){var e=t.$itemElement,n=t.$container,r=i("<div>").addClass("dx-list-static-delete-button");this._list._createComponent(r,o,{icon:"remove",onClick:function(t){t.event.stopPropagation(),this._deleteItem(e)}.bind(this),integrationOptions:{}}),n.addClass("dx-list-static-delete-button-container").append(r)},_deleteItem:function(t){t.is(".dx-state-disabled, .dx-state-disabled *")||this._list.deleteItem(t)}}))},function(t,e,n){"use strict";var i=n(3),o=n(47),r=n(42),a=n(12),s=n(115).register,l=n(379),u=l.inherit({_init:function(){this.callBase.apply(this,arguments);var t=i("<div>").addClass("dx-list-switchable-delete-button-container"),e=i("<div>").addClass("dx-list-switchable-delete-button-wrapper"),n=i("<div>").addClass("dx-list-switchable-delete-button-inner-wrapper"),o=i("<div>").addClass("dx-list-switchable-delete-button");this._list._createComponent(o,r,{text:a.format("dxListEditDecorator-delete"),type:"danger",onClick:function(t){this._deleteItem(),t.event.stopPropagation()}.bind(this),integrationOptions:{}}),t.append(e),e.append(n),n.append(o),this._$buttonContainer=t},_enablePositioning:function(t){this.callBase.apply(this,arguments),o.stop(this._$buttonContainer,!0),this._$buttonContainer.appendTo(t)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonContainer.detach()},_animatePrepareDeleteReady:function(){var t=this._isRtlEnabled(),e=this._list.$element().width(),n=this._buttonWidth(),i=t?e:-n,r=t?e-n:0;return o.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:r}})},_animateForgetDeleteReady:function(){var t=this._isRtlEnabled(),e=this._list.$element().width(),n=this._buttonWidth(),i=t?e-n:0,r=t?e:-n;return o.animate(this._$buttonContainer,{type:"custom",duration:200,from:{right:i},to:{right:r}})},_buttonWidth:function(){return this._buttonContainerWidth||(this._buttonContainerWidth=this._$buttonContainer.outerWidth()),this._buttonContainerWidth},dispose:function(){this._$buttonContainer&&this._$buttonContainer.remove(),this.callBase.apply(this,arguments)}});s("delete","toggle",u.inherit({beforeBag:function(t){var e=t.$itemElement,n=t.$container,a=i("<div>").addClass("dx-list-toggle-delete-switch");this._list._createComponent(a,r,{icon:"toggle-delete",onClick:function(t){o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(e),t.event.stopPropagation()}.bind(this),integrationOptions:{}}),n.addClass("dx-list-toggle-delete-switch-container"),n.append(a)}})),s("delete","slideButton",u.inherit({_shouldHandleSwipe:!0,_swipeEndHandler:function(t,e){return 0!==e.targetOffset&&(o.stop(this._$buttonContainer,!1),this._toggleDeleteReady(t)),!0}})),t.exports=u},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(4).noop,a=n(25),s=n(12),l=n(33),u=n(11),c=n(159),d=n(380),h=n(115).register,f=n(379),p=n(47),m=n(36),g=n(260),_=u.addNamespace(a.name,"dxListEditDecorator"),v=u.addNamespace(c.active,"dxListEditDecorator");h("menu","slide",f.inherit({_shouldHandleSwipe:!0,_init:function(){this.callBase.apply(this,arguments),this._$buttonsContainer=i("<div>").addClass("dx-list-slide-menu-buttons-container"),o.on(this._$buttonsContainer,v,r),this._$buttons=i("<div>").addClass("dx-list-slide-menu-buttons").appendTo(this._$buttonsContainer),this._renderMenu(),this._renderDeleteButton()},_renderMenu:function(){if(this._menuEnabled()){var t=this._menuItems();if(1===t.length){var e=t[0];this._renderMenuButton(e.text,function(t){t.stopPropagation(),this._fireAction(e)}.bind(this))}else{var n=i("<div>").addClass("dx-list-slide-menu");this._menu=this._list._createComponent(n,g,{showTitle:!1,items:t,onItemClick:function(t){this._fireAction(t.itemData)}.bind(this),integrationOptions:{}}),n.appendTo(this._list.$element());var o=this._renderMenuButton(s.format("dxListEditDecorator-more"),function(t){t.stopPropagation(),this._menu.show()}.bind(this));this._menu.option("target",o)}}},_renderMenuButton:function(t,e){var n=i("<div>").addClass("dx-list-slide-menu-button").addClass("dx-list-slide-menu-button-menu").text(t);return this._$buttons.append(n),o.on(n,_,e),n},_renderDeleteButton:function(){if(this._deleteEnabled()){var t=i("<div>").addClass("dx-list-slide-menu-button").addClass("dx-list-slide-menu-button-delete").text(m.isMaterial()?"":s.format("dxListEditDecorator-delete"));o.on(t,_,function(t){t.stopPropagation(),this._deleteItem()}.bind(this)),this._$buttons.append(t)}},_fireAction:function(t){this._fireMenuAction(i(this._cachedNode),t.action),this._cancelDeleteReadyItem()},modifyElement:function(t){this.callBase.apply(this,arguments);var e=t.$itemElement;e.addClass("dx-list-slide-menu-wrapper");var n=i("<div>").addClass("dx-list-slide-menu-content");e.wrapInner(n)},_getDeleteButtonContainer:function(){return this._$buttonsContainer},handleClick:function(t,e){return!!i(e.target).closest(".dx-list-slide-menu-content").length&&this.callBase.apply(this,arguments)},_swipeStartHandler:function(t){this._enablePositioning(t),this._cacheItemData(t),this._setPositions(this._getPositions(0))},_swipeUpdateHandler:function(t,e){var n=this._isRtlEnabled()?-1:1,i=this._isReadyToDelete(t);if(this._getCurrentPositions().content!==this._getStartPositions().content||i||!(e.offset*n>0)){var o=this._cachedItemWidth*e.offset,r=i?-this._cachedButtonWidth*n:0,a=(o+r)*n<0?Math.abs((o+r)/this._cachedButtonWidth):0;return this._setPositions(this._getPositions(a)),!0}e.cancel=!0},_getStartPositions:function(){var t=this._isRtlEnabled(),e=t?-1:1;return{content:0,buttonsContainer:t?-this._cachedButtonWidth:this._cachedItemWidth,buttons:-this._cachedButtonWidth*e}},_getPositions:function(t){var e=this._isRtlEnabled()?-1:1,n=this._getStartPositions();return{content:n.content-t*this._cachedButtonWidth*e,buttonsContainer:n.buttonsContainer-Math.min(t,1)*this._cachedButtonWidth*e,buttons:n.buttons+Math.min(t,1)*this._cachedButtonWidth*e}},_getCurrentPositions:function(){return{content:l.locate(this._$cachedContent).left,buttonsContainer:l.locate(this._$buttonsContainer).left,buttons:l.locate(this._$buttons).left}},_setPositions:function(t){l.move(this._$cachedContent,{left:t.content}),l.move(this._$buttonsContainer,{left:t.buttonsContainer}),l.move(this._$buttons,{left:t.buttons})},_cacheItemData:function(t){t[0]!==this._cachedNode&&(this._$cachedContent=t.find(".dx-list-slide-menu-content"),this._cachedItemWidth=t.outerWidth(),this._cachedButtonWidth=this._cachedButtonWidth||this._$buttons.outerWidth(),this._$buttonsContainer.width(this._cachedButtonWidth),this._$cachedContent.length&&(this._cachedNode=t[0]))},_minButtonContainerLeftOffset:function(){return this._cachedItemWidth-this._cachedButtonWidth},_swipeEndHandler:function(t,e){this._cacheItemData(t);var n=this._isRtlEnabled()?1:-1,i=this._cachedItemWidth*e.offset,o=!this._isReadyToDelete(t)&&i*n>.2*this._cachedButtonWidth,r=e.targetOffset===n&&o;return this._toggleDeleteReady(t,r),!0},_enablePositioning:function(t){p.stop(this._$cachedContent,!0),this.callBase.apply(this,arguments),this._$buttonsContainer.appendTo(t)},_disablePositioning:function(){this.callBase.apply(this,arguments),this._$buttonsContainer.detach()},_animatePrepareDeleteReady:function(){return this._animateToPositions(this._getPositions(1))},_animateForgetDeleteReady:function(t){return this._cacheItemData(t),this._animateToPositions(this._getPositions(0))},_animateToPositions:function(t){var e=this,n=this._getCurrentPositions(),i=Math.min(Math.abs(n.content-t.content)/this._cachedButtonWidth,1);return p.animate(this._$cachedContent,{from:n,to:t,easing:"cubic-bezier(0.075, 0.82, 0.165, 1)",duration:400*i,strategy:"frame",draw:function(t){e._setPositions(t)}})},dispose:function(){this._menu&&this._menu.$element().remove(),this._$buttonsContainer&&this._$buttonsContainer.remove(),this.callBase.apply(this,arguments)}}).include(d))},function(t,e,n){"use strict";var i=n(33),o=n(47),r=n(115).register,a=n(161),s=n(7).Deferred;r("delete","swipe",a.inherit({_shouldHandleSwipe:!0,_renderItemPosition:function(t,e,n){var r=new s,a=e*this._itemElementWidth;return n?o.animate(t,{to:{left:a},type:"slide",complete:function(){r.resolve(t,e)}}):(i.move(t,{left:a}),r.resolve()),r.promise()},_swipeStartHandler:function(t){return this._itemElementWidth=t.width(),!0},_swipeUpdateHandler:function(t,e){return this._renderItemPosition(t,e.offset),!0},_swipeEndHandler:function(t,e){var n=e.targetOffset;return this._renderItemPosition(t,n,!0).done(function(t,e){Math.abs(e)&&this._list.deleteItem(t).fail(function(){this._renderItemPosition(t,0,!0)}.bind(this))}.bind(this)),!0}}))},function(t,e,n){"use strict";var i=n(3),o=n(380),r=n(12),a=n(115).register,s=n(161),l=n(80),u=n(265);a("menu","context",s.inherit({_init:function(){var t=i("<div>").addClass("dx-list-context-menu");this._list.$element().append(t),this._menu=this._renderOverlay(t)},_renderOverlay:function(t){return this._list._createComponent(t,l,{shading:!1,deferRendering:!0,closeOnTargetScroll:!0,closeOnOutsideClick:function(t){return!i(t.target).closest(".dx-list-context-menu").length},animation:{show:{type:"slide",duration:300,from:{height:0,opacity:1},to:{height:function(){return this._$menuList.outerHeight()}.bind(this),opacity:1}},hide:{type:"slide",duration:0,from:{opacity:1},to:{opacity:0}}},height:function(){return this._$menuList?this._$menuList.outerHeight():0}.bind(this),width:function(){return this._list.$element().outerWidth()}.bind(this),onContentReady:this._renderMenuContent.bind(this)})},_renderMenuContent:function(t){var e=t.component.$content(),n=this._menuItems().slice();this._deleteEnabled()&&n.push({text:r.format("dxListEditDecorator-delete"),action:this._deleteItem.bind(this)}),this._$menuList=i("<div>"),this._list._createComponent(this._$menuList,u,{items:n,onItemClick:this._menuItemClickHandler.bind(this),height:"auto",integrationOptions:{}}),e.addClass("dx-list-context-menucontent"),e.append(this._$menuList)},_menuItemClickHandler:function(t){this._menu.hide(),this._fireMenuAction(this._$itemWithMenu,t.itemData.action)},_deleteItem:function(){this._list.deleteItem(this._$itemWithMenu)},handleContextMenu:function(t){return this._$itemWithMenu=t,this._menu.option({position:{my:"top",at:"bottom",of:t,collision:"flip"}}),this._menu.show(),!0},dispose:function(){this._menu&&this._menu.$element().remove(),this.callBase.apply(this,arguments)}}).include(o))},function(t,e,n){"use strict";var i=n(3),o=n(160),r=o.inherit({_renderWatchers:function(){this.callBase(),this._startWatcher("badge",this._renderBadge.bind(this)),this._startWatcher("showChevron",this._renderShowChevron.bind(this))},_renderBadge:function(t){if(this._$element.children(".dx-list-item-badge-container").remove(),t){var e=i("<div>").addClass("dx-list-item-badge-container").append(i("<div>").addClass("dx-list-item-badge").addClass("dx-badge").text(t)),n=this._$element.children(".dx-list-item-chevron-container").first();n.length>0?e.insertBefore(n):e.appendTo(this._$element)}},_renderShowChevron:function(t){if(this._$element.children(".dx-list-item-chevron-container").remove(),t){var e=i("<div>").addClass("dx-list-item-chevron-container"),n=i("<div>").addClass("dx-list-item-chevron");e.append(n).appendTo(this._$element)}}});t.exports=r},function(t,e,n){"use strict";var i=n(3),o=n(39),r=n(33),a=n(267),s=n(81),l=n(5).each,u=n(31),c=n(7).Deferred,d=a.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$pullDown=t._$pullDown,this._$bottomPocket=t._$bottomPocket,this._$refreshingText=t._$refreshingText,this._$scrollViewContent=i(t.content()),this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=i("<div>").addClass("dx-scrollview-pull-down-image"),e=i("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new s(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(t).append(e.append(n)).append(o)},_releaseState:function(){this._state=0,this._refreshPullDownText()},_pushBackFromBoundary:function(){this._isLocked()||this._component.isEmpty()||this.callBase()},_refreshPullDownText:function(){var t=this,e=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];l(e,(function(e,n){var i=t._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},update:function(){this.callBase(),this._setTopPocketOffset()},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),u.msie?this._scrollOffset=Math.round(100*(this._$container.height()-this._$content.height()))/100:this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},_setTopPocketOffset:function(){this._$topPocket.css({top:-this._topPocketSize})},handleEnd:function(){this.callBase(),this._complete()},handleStop:function(){this.callBase(),this._complete()},_complete:function(){1===this._state&&(this._setPullDownOffset(this._topPocketSize),clearTimeout(this._pullDownRefreshTimeout),this._pullDownRefreshTimeout=setTimeout(function(){this._pullDownRefreshing()}.bind(this),400))},_setPullDownOffset:function(t){r.move(this._$topPocket,{top:t}),r.move(this._$scrollViewContent,{top:t})},handleScroll:function(t){if(this.callBase(t),2!==this._state){var e=this.location().top,n=(this._location||0)-e;this._location=e,this._isPullDown()?this._pullDownReady():n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isPullDown:function(){return this._pullDownEnabled&&this._location>=this._topPocketSize},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-(this._scrollOffset+this._bottomPocketSize)<=.5},_reachBottom:function(){3!==this._state&&(this._state=3,this.reachBottomCallbacks.fire())},_pullDownReady:function(){1!==this._state&&(this._state=1,this._$pullDown.addClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._releaseState())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},pullDownEnable:function(t){t&&(this._updateDimensions(),this._setTopPocketOffset()),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new c;return this._updateDimensions(),clearTimeout(this._releaseTimeout),3===this._state&&(this._state=0),this._releaseTimeout=setTimeout(function(){this._setPullDownOffset(0),this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),t.resolve()}.bind(this),400),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.exports=d},function(t,e,n){"use strict";var i=n(3),o=n(39),r=n(33),a=n(11),s=n(267),l=n(81),u=n(7).Deferred,c=s.inherit({_init:function(t){this.callBase(t),this._$topPocket=t._$topPocket,this._$bottomPocket=t._$bottomPocket,this._$pullDown=t._$pullDown,this._$scrollViewContent=t.content(),this._initCallbacks(),this._location=0},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this.callBase(),this._renderPullDown(),this._releaseState()},_renderPullDown:function(){var t=i("<div>").addClass("dx-scrollview-pull-down-indicator"),e=new l(i("<div>")).$element();this._$icon=i("<div>").addClass("dx-icon-pulldown"),this._$pullDown.empty().append(this._$icon).append(t.append(e))},_releaseState:function(){this._state=0,this._releasePullDown(),this._updateDimensions()},_releasePullDown:function(){this._$pullDown.css({opacity:0})},_updateDimensions:function(){this.callBase(),this._topPocketSize=this._$topPocket.height(),this._bottomPocketSize=this._$bottomPocket.height(),this._scrollOffset=this._$container.height()-this._$content.height()},_allowedDirections:function(){var t=this.callBase();return t.vertical=t.vertical||this._pullDownEnabled,t},handleInit:function(t){this.callBase(t),0===this._state&&0===this._location&&(this._startClientY=a.eventData(t.originalEvent).y,this._state=4)},handleMove:function(t){this.callBase(t),this._deltaY=a.eventData(t.originalEvent).y-this._startClientY,4===this._state&&(this._pullDownEnabled&&this._deltaY>0?this._state=5:this._complete()),5===this._state&&(t.preventDefault(),this._movePullDown())},_movePullDown:function(){var t=this._getPullDownHeight(),e=Math.min(3*t,this._deltaY+this._getPullDownStartPosition()),n=180*e/t/3;this._$pullDown.css({opacity:1}).toggleClass("dx-scrollview-pull-down-refreshing",e<t),r.move(this._$pullDown,{top:e}),this._$icon.css({transform:"rotate("+n+"deg)"})},_isPullDown:function(){return this._pullDownEnabled&&5===this._state&&this._deltaY>=this._getPullDownHeight()-this._getPullDownStartPosition()},_getPullDownHeight:function(){return Math.round(.05*this._$element.outerHeight())},_getPullDownStartPosition:function(){return-Math.round(1.5*this._$pullDown.outerHeight())},handleEnd:function(){this._isPullDown()&&this._pullDownRefreshing(),this._complete()},handleStop:function(){this._complete()},_complete:function(){4!==this._state&&5!==this._state||this._releaseState()},handleScroll:function(t){if(this.callBase(t),2!==this._state){var e=this.location().top,n=this._location-e;this._location=e,n>0&&this._isReachBottom()?this._reachBottom():this._stateReleased()}},_isReachBottom:function(){return this._reachBottomEnabled&&this._location<=this._scrollOffset+this._bottomPocketSize},_reachBottom:function(){this.reachBottomCallbacks.fire()},_stateReleased:function(){0!==this._state&&(this._$pullDown.removeClass("dx-scrollview-pull-down-loading"),this._releaseState())},_pullDownRefreshing:function(){this._state=2,this._pullDownRefreshHandler()},_pullDownRefreshHandler:function(){this._refreshPullDown(),this.pullDownCallbacks.fire()},_refreshPullDown:function(){this._$pullDown.addClass("dx-scrollview-pull-down-loading"),r.move(this._$pullDown,{top:this._getPullDownHeight()})},pullDownEnable:function(t){this._$topPocket.toggle(t),this._pullDownEnabled=t},reachBottomEnable:function(t){this._reachBottomEnabled=t},pendingRelease:function(){this._state=1},release:function(){var t=new u;return this._updateDimensions(),clearTimeout(this._releaseTimeout),this._releaseTimeout=setTimeout(function(){this._stateReleased(),this.releaseCallbacks.fire(),this._updateAction(),t.resolve()}.bind(this),800),t.promise()},dispose:function(){clearTimeout(this._pullDownRefreshTimeout),clearTimeout(this._releaseTimeout),this.callBase()}});t.exports=c},function(t,e,n){"use strict";var i=n(3),o=n(39),r=n(5).each,a=n(4),s=n(0).extend,l=Math,u=n(382),c=n(81),d=u.Scroller.inherit({ctor:function(){this._topPocketSize=0,this.callBase.apply(this,arguments),this._initCallbacks(),this._releaseState()},_releaseState:function(){this._state=0,this._refreshPullDownText()},_refreshPullDownText:function(){var t=this,e=[{element:this._$pullingDownText,visibleState:0},{element:this._$pulledDownText,visibleState:1},{element:this._$refreshingText,visibleState:2}];r(e,(function(e,n){var i=t._state===n.visibleState?"addClass":"removeClass";n.element[i]("dx-scrollview-pull-down-text-visible")}))},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},_updateBounds:function(){var t="horizontal"!==this._direction;this._topPocketSize=t?Math.round(this._$topPocket[this._dimension]()):0,this._bottomPocketSize=t?Math.round(this._$bottomPocket[this._dimension]()):0,this.callBase(),this._bottomBound=this._minOffset+this._bottomPocketSize},_updateScrollbar:function(){this._scrollbar.option({containerSize:this._containerSize(),contentSize:this._contentSize()-this._topPocketSize-this._bottomPocketSize,scaleRatio:this._getScaleRatio()})},_moveContent:function(){this.callBase(),this._isPullDown()?this._pullDownReady():this._isReachBottom()?this._reachBottomReady():0!==this._state&&this._stateReleased()},_moveScrollbar:function(){this._scrollbar.moveTo(this._topPocketSize+this._location)},_isPullDown:function(){return this._pullDownEnabled&&this._location>=0},_isReachBottom:function(){return this._reachBottomEnabled&&this._location-this._bottomBound<=.5},_scrollComplete:function(){this._inBounds()&&1===this._state?this._pullDownRefreshing():this._inBounds()&&3===this._state?this._reachBottomLoading():this.callBase()},_reachBottomReady:function(){3!==this._state&&(this._state=3,this._minOffset=this._getMinOffset())},_getMaxOffset:function(){return-this._topPocketSize},_getMinOffset:function(){return l.min(this.callBase(),-this._topPocketSize)},_reachBottomLoading:function(){this.reachBottomCallbacks.fire()},_pullDownReady:function(){1!==this._state&&(this._state=1,this._maxOffset=0,this._$pullDown.addClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText())},_stateReleased:function(){0!==this._state&&(this._releaseState(),this._updateBounds(),this._$pullDown.removeClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this.releaseCallbacks.fire())},_pullDownRefreshing:function(){2!==this._state&&(this._state=2,this._$pullDown.addClass("dx-scrollview-pull-down-loading").removeClass("dx-scrollview-pull-down-ready"),this._refreshPullDownText(),this.pullDownCallbacks.fire())},_releaseHandler:function(){return 0===this._state&&this._moveToBounds(),this._update(),this._releaseTask&&this._releaseTask.abort(),this._releaseTask=a.executeAsync(this._release.bind(this)),this._releaseTask.promise},_release:function(){this._stateReleased(),this._scrollComplete()},_reachBottomEnablingHandler:function(t){this._reachBottomEnabled!==t&&(this._reachBottomEnabled=t,this._updateBounds())},_pullDownEnablingHandler:function(t){this._pullDownEnabled!==t&&(this._pullDownEnabled=t,this._considerTopPocketChange(),this._updateHandler())},_considerTopPocketChange:function(){this._location-=this._$topPocket.height()||-this._topPocketSize,this._maxOffset=0,this._move()},_pendingReleaseHandler:function(){this._state=1},dispose:function(){this._releaseTask&&this._releaseTask.abort(),this.callBase()}}),h=u.SimulatedStrategy.inherit({_init:function(t){this.callBase(t),this._$pullDown=t._$pullDown,this._$topPocket=t._$topPocket,this._$bottomPocket=t._$bottomPocket,this._initCallbacks()},_initCallbacks:function(){this.pullDownCallbacks=o(),this.releaseCallbacks=o(),this.reachBottomCallbacks=o()},render:function(){this._renderPullDown(),this.callBase()},_renderPullDown:function(){var t=i("<div>").addClass("dx-scrollview-pull-down-image"),e=i("<div>").addClass("dx-scrollview-pull-down-indicator"),n=new c(i("<div>")).$element(),o=this._$pullDownText=i("<div>").addClass("dx-scrollview-pull-down-text");this._$pullingDownText=i("<div>").text(this.option("pullingDownText")).appendTo(o),this._$pulledDownText=i("<div>").text(this.option("pulledDownText")).appendTo(o),this._$refreshingText=i("<div>").text(this.option("refreshingText")).appendTo(o),this._$pullDown.empty().append(t).append(e.append(n)).append(o)},pullDownEnable:function(t){this._eventHandler("pullDownEnabling",t)},reachBottomEnable:function(t){this._eventHandler("reachBottomEnabling",t)},_createScroller:function(t){var e=this,n=e._scrollers[t]=new d(e._scrollerOptions(t));n.pullDownCallbacks.add((function(){e.pullDownCallbacks.fire()})),n.releaseCallbacks.add((function(){e.releaseCallbacks.fire()})),n.reachBottomCallbacks.add((function(){e.reachBottomCallbacks.fire()}))},_scrollerOptions:function(t){return s(this.callBase(t),{$topPocket:this._$topPocket,$bottomPocket:this._$bottomPocket,$pullDown:this._$pullDown,$pullDownText:this._$pullDownText,$pullingDownText:this._$pullingDownText,$pulledDownText:this._$pulledDownText,$refreshingText:this._$refreshingText})},pendingRelease:function(){this._eventHandler("pendingRelease")},release:function(){return this._eventHandler("release").done(this._updateAction)},location:function(){var t=this.callBase();return t.top+=this._$topPocket.height(),t},dispose:function(){r(this._scrollers,(function(){this.dispose()})),this.callBase()}});t.exports=h},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(25),a=n(0).extend,s=n(23),l=n(138),u=n(688),c=n(11),d=n(115).register,h=n(161),f=c.addNamespace(r.name,"dxListEditDecorator");d("selection","default",h.inherit({_init:function(){this.callBase.apply(this,arguments);var t=this._list.option("selectionMode");this._singleStrategy="single"===t,this._containerClass=this._singleStrategy?"dx-list-select-radiobutton-container":"dx-list-select-checkbox-container",this._controlClass=this._singleStrategy?"dx-list-select-radiobutton":"dx-list-select-checkbox",this._controlWidget=this._singleStrategy?u:l,this._list.$element().addClass("dx-list-select-decorator-enabled")},beforeBag:function(t){var e=t.$itemElement,n=t.$container,o=i("<div>").addClass(this._controlClass);new this._controlWidget(o,a(this._commonOptions(),{value:this._isSelected(e),focusStateEnabled:!1,hoverStateEnabled:!1,onValueChanged:function(t){this._processCheckedState(e,t.value),t.event&&t.event.stopPropagation()}.bind(this)})),n.addClass(this._containerClass),n.append(o)},modifyElement:function(t){this.callBase.apply(this,arguments);var e=t.$itemElement,n=this._controlWidget.getInstance(e.find("."+this._controlClass));o.on(e,"stateChanged",function(t,e){n.option("value",e)}.bind(this))},_updateSelectAllState:function(){this._$selectAll&&this._selectAllCheckBox.option("value",this._list.isSelectAll())},afterRender:function(){"all"===this._list.option("selectionMode")&&(this._$selectAll?this._updateSelectAllState():this._renderSelectAll())},handleKeyboardEvents:function(t,e){var n=!e,i=this._list,o=this._$selectAll,r=i._getLastItemIndex();return!(!o||!(e&&0===t||n&&t===r))&&(i.option("focusedElement",o),i.scrollToItem(i.option("focusedElement")),!0)},handleEnterPressing:function(){if(this._$selectAll&&this._$selectAll.hasClass("dx-state-focused"))return this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value")),!0},_renderSelectAll:function(){var t=this._$selectAll=i("<div>").addClass("dx-list-select-all"),e=this._list,n=e._supportedKeys().downArrow.bind(e);this._selectAllCheckBox=e._createComponent(i("<div>").addClass("dx-list-select-all-checkbox").appendTo(t),l,{focusStateEnabled:!1,hoverStateEnabled:!1}),this._selectAllCheckBox.registerKeyHandler("downArrow",n),i("<div>").addClass("dx-list-select-all-label").text(this._list.option("selectAllText")).appendTo(t),this._list.itemsContainer().prepend(t),this._updateSelectAllState(),this._attachSelectAllHandler()},_attachSelectAllHandler:function(){this._selectAllCheckBox.option("onValueChanged",this._selectAllHandler.bind(this)),o.off(this._$selectAll,f),o.on(this._$selectAll,f,this._selectAllClickHandler.bind(this))},_selectAllHandler:function(t){t.event&&t.event.stopPropagation();var e=this._selectAllCheckBox.option("value");!1!==this._list._createActionByOption("onSelectAllValueChanged")({value:e})&&(!0===e?this._selectAllItems():!1===e&&this._unselectAllItems())},_checkSelectAllCapability:function(){var t=this._list,e=t.getDataSource();return!!("allPages"!==t.option("selectAllMode")||!t.option("grouped")||e&&e.group())||(s.log("W1010"),!1)},_selectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.selectAll("page"===this._list.option("selectAllMode"))},_unselectAllItems:function(){this._checkSelectAllCapability()&&this._list._selection.deselectAll("page"===this._list.option("selectAllMode"))},_selectAllClickHandler:function(){this._selectAllCheckBox.option("value",!this._selectAllCheckBox.option("value"))},_isSelected:function(t){return this._list.isItemSelected(t)},_processCheckedState:function(t,e){e?this._list.selectItem(t):this._list.unselectItem(t)},dispose:function(){this._disposeSelectAll(),this._list.$element().removeClass("dx-list-select-decorator-enabled"),this.callBase.apply(this,arguments)},_disposeSelectAll:function(){this._$selectAll&&(this._$selectAll.remove(),this._$selectAll=null)}}))},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(18),a=n(0).extend,s=n(79),l=n(8),u=n(62),c=n(11),d=n(25),h=u.inherit({_supportedKeys:function(){return a(this.callBase(),{space:function(t){t.preventDefault(),this._clickAction({event:t})}})},_getDefaultOptions:function(){return a(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,value:!1,useInkRipple:!1})},_canValueBeChangedByClick:function(){return!0},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===r.real().deviceType&&!r.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-radiobutton")},_initMarkup:function(){this.callBase(),this._renderIcon(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderCheckedState(this.option("value")),this._renderClick(),this.setAria("role","radio")},_renderInkRipple:function(){this._inkRipple=s.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,wavesNumber:2,isCentered:!0})},_renderInkWave:function(t,e,n,i){if(this._inkRipple){var o={element:t,event:e,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_updateFocusState:function(t,e){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,t,e,0)},_toggleActiveState:function(t,e,n){this.callBase.apply(this,arguments),this._renderInkWave(this._$icon,n,e,1)},_renderIcon:function(){this._$icon=i("<div>").addClass("dx-radiobutton-icon"),i("<div>").addClass("dx-radiobutton-icon-dot").appendTo(this._$icon),this.$element().append(this._$icon)},_renderCheckedState:function(t){this.$element().toggleClass("dx-radiobutton-checked",t).find(".dx-radiobutton-icon").toggleClass("dx-radiobutton-icon-checked",t),this.setAria("checked",t)},_renderClick:function(){var t=c.addNamespace(d.name,this.NAME);this._clickAction=this._createAction(function(t){this._clickHandler(t.event)}.bind(this)),o.off(this.$element(),t),o.on(this.$element(),t,function(t){this._clickAction({event:t})}.bind(this))},_clickHandler:function(t){this._saveValueChangeEvent(t),this.option("value",!0)},_optionChanged:function(t){switch(t.name){case"useInkRipple":this._invalidate();break;case"value":this._renderCheckedState(t.value),this.callBase(t);break;default:this.callBase(t)}},_clean:function(){delete this._inkRipple,this.callBase()}});l("dxRadioButton",h),t.exports=h},function(t,e,n){"use strict";var i=c(n(3)),o=c(n(6)),r=n(0),a=n(11),s=n(115),l=c(n(161)),u=c(n(270));function c(t){return t&&t.__esModule?t:{default:t}}(0,s.register)("reorder","default",l.default.inherit({_init:function(){var t=this._list;this._groupedEnabled=this._list.option("grouped"),this._lockedDrag=!1;var e=this._groupedEnabled?"> .dx-list-group > .dx-list-group-body > .dx-list-item":"> .dx-list-item";this._sortable=t._createComponent(t._scrollView.content(),u.default,(0,r.extend)({component:t,contentTemplate:null,allowReordering:!1,filter:e,container:t.$element(),dragDirection:t.option("itemDragging.group")?"both":"vertical",handle:".".concat("dx-list-reorder-handle"),dragTemplate:this._dragTemplate,onDragStart:this._dragStartHandler.bind(this),onDragChange:this._dragChangeHandler.bind(this),onReorder:this._reorderHandler.bind(this)},t.option("itemDragging")))},_dragTemplate:function(t){return(0,i.default)(t.itemElement).clone().width((0,i.default)(t.itemElement).width()).addClass("dx-list-item-ghost-reordering").addClass("dx-state-hover")},_dragStartHandler:function(t){this._lockedDrag&&(t.cancel=!0)},_dragChangeHandler:function(t){!this._groupedEnabled||this._sameParent(t.fromIndex,t.toIndex)||(t.cancel=!0)},_sameParent:function(t,e){var n=this._list.getItemElementByFlatIndex(t);return this._list.getItemElementByFlatIndex(e).parent().get(0)===n.parent().get(0)},_reorderHandler:function(t){var e=this._list.getItemElementByFlatIndex(t.toIndex);this._list.reorderItem((0,i.default)(t.itemElement),e)},afterBag:function(t){var e=this,n=(0,i.default)("<div>").addClass("dx-list-reorder-handle");o.default.on(n,"dxpointerdown",(function(t){e._lockedDrag=!(0,a.isMouseEvent)(t)})),o.default.on(n,"dxhold",{timeout:30},(function(t){t.cancel=!0,e._lockedDrag=!1})),t.$container.addClass("dx-list-reorder-handle-container").append(n)}}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(691),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator",defaultValues:"values"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},barGaugeTitle:{optionName:"title",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},geometry:{optionName:"geometry",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},legend:{optionName:"legend",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.BarGauge=l,l.propTypes={animation:r.object,backgroundColor:r.string,barSpacing:r.number,baseValue:r.number,disabled:r.bool,elementAttr:r.object,endValue:r.number,export:r.object,geometry:r.object,label:r.object,legend:r.object,loadingIndicator:r.object,margin:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),pathModified:r.bool,redrawOnResize:r.bool,relativeInnerRadius:r.number,resolveLabelOverlapping:r.oneOf(["hide","none"]),rtlEnabled:r.bool,size:r.object,startValue:r.number,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,values:r.array};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={barGaugeTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.BarGaugeTitle=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.BarGaugeTitleSubtitle=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="geometry",e}(s.default);e.Geometry=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="itemTextFormat",e}(s.default);e.ItemTextFormat=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Label=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legend",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},itemTextFormat:{optionName:"itemTextFormat",isCollectionItem:!1},legendBorder:{optionName:"border",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.LegendBorder=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=M,e.default=l},function(t,e,n){"use strict";t.exports=n(692).dxBarGauge,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=Math.PI/180,r=Math.abs,a=Math.round,s=Math.floor,l=Math.min,u=Math.max,c=n(8),d=n(54),h=n(4),f=n(0).extend,p=n(13).normalizeEnum,m=n(162),g=m.dxBaseGauge,_=m.getSampleText,v=m.formatValue,y=m.compareArrays,b=n(397),w=Array.isArray,x=n(13),C=x.convertAngleToRendererSpace,S=x.getCosAndSin,k=x.patchFontOptions,I=Number,T=isFinite,E=h.noop,O=f,M=g.inherit({_rootClass:"dxbg-bar-gauge",_themeSection:"barGauge",_fontFields:["label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initCore:function(){var t=this;t.callBase.apply(t,arguments),t._barsGroup=t._renderer.g().attr({class:"dxbg-bars"}).linkOn(t._renderer.root,"bars"),t._values=[],t._context={renderer:t._renderer,translator:t._translator,tracker:t._tracker,group:t._barsGroup},t._animateStep=function(e){var n,i,o=t._bars;for(n=0,i=o.length;n<i;++n)o[n].animate(e)},t._animateComplete=function(){t._bars.forEach((function(t){return t.endAnimation()})),t._checkOverlap()}},_disposeCore:function(){var t=this;t._barsGroup.linkOff(),t._barsGroup=t._values=t._context=t._animateStep=t._animateComplete=null,t.callBase.apply(t,arguments)},_setupDomainCore:function(){var t=this.option("startValue"),e=this.option("endValue");T(t)||(t=0),T(e)||(e=100),this._translator.setDomain(t,e),this._baseValue=this._translator.adjust(this.option("baseValue")),T(this._baseValue)||(this._baseValue=t<e?t:e)},_getDefaultSize:function(){return{width:300,height:300}},_setupCodomain:b.prototype._setupCodomain,_getApproximateScreenRange:function(){var t=this._area.sides,e=this._canvas.width/(t.right-t.left),n=this._canvas.height/(t.down-t.up),i=e<n?e:n;return-this._translator.getCodomainRange()*i*o},_setupAnimationSettings:function(){var t=this;t.callBase.apply(t,arguments),t._animationSettings&&(t._animationSettings.step=t._animateStep,t._animationSettings.complete=t._animateComplete)},_cleanContent:function(){this._barsGroup.linkRemove(),this._animationSettings&&this._barsGroup.stopAnimation(),this._barsGroup.clear()},_renderContent:function(){var t,e,n=this.option("label"),i=this._context;this._barsGroup.linkAppend(),i.textEnabled=void 0===n||n&&(!("visible"in n)||n.visible),i.textEnabled&&(i.textColor=n&&n.font&&n.font.color||null,n=O(!0,{},this._themeManager.theme().label,n),i.formatOptions={format:void 0!==n.format?n.format:this._defaultFormatOptions,customizeText:n.customizeText},i.textOptions={align:"center"},i.fontStyles=k(O({},this._themeManager.theme().label.font,n.font,{color:null})),this._textIndent=n.indent>0?I(n.indent):0,i.lineWidth=n.connectorWidth>0?I(n.connectorWidth):0,i.lineColor=n.connectorColor||null,e=(t=this._renderer.text(_(this._translator,i.formatOptions),0,0).attr(i.textOptions).css(i.fontStyles).append(this._barsGroup)).getBBox(),t.remove(),i.textY=e.y,i.textWidth=e.width,i.textHeight=e.height),b.prototype._applyMainLayout.call(this),this._renderBars()},_measureMainElements:function(){var t={maxRadius:this._area.radius};return this._context.textEnabled&&(t.horizontalMargin=this._context.textWidth,t.verticalMargin=this._context.textHeight,t.inverseHorizontalMargin=this._context.textWidth/2,t.inverseVerticalMargin=this._context.textHeight/2),t},_renderBars:function(){var t,e=O({},this._themeManager.theme(),this.option()),n=this._area,i=e.relativeInnerRadius>0&&e.relativeInnerRadius<1?I(e.relativeInnerRadius):.1;t=n.radius,this._context.textEnabled&&(this._textIndent=a(l(this._textIndent,t/2)),t-=this._textIndent),this._outerRadius=s(t),this._innerRadius=s(t*i),this._barSpacing=e.barSpacing>0?I(e.barSpacing):0,O(this._context,{backgroundColor:e.backgroundColor,x:n.x,y:n.y,startAngle:n.startCoord,endAngle:n.endCoord,baseAngle:this._translator.translate(this._baseValue)}),this._arrangeBars()},_arrangeBars:function(){var t,e=this._outerRadius-this._innerRadius,n=this._context,i=this._bars.length;this._beginValueChanging(),n.barSize=i>0?u((e-(i-1)*this._barSpacing)/i,1):0;var o=i>1?u(l((e-i*n.barSize)/(i-1),this._barSpacing),0):0,r=l(s((e+o)/n.barSize),i);this._setBarsCount(i),e=this._outerRadius,n.textRadius=e,n.textIndent=this._textIndent,this._palette.reset();var a=n.barSize+o,c=this._palette.generateColors(r);for(t=0;t<r;++t,e-=a)this._bars[t].arrange({radius:e,color:c[t]});for(var d=r;d<i;d++)this._bars[d].hide();this._animationSettings&&!this._noAnimation?this._animateBars():this._updateBars(),this._endValueChanging()},_setBarsCount:function(){this._bars.length>0?this._dummyBackground&&(this._dummyBackground.dispose(),this._dummyBackground=null):(this._dummyBackground||(this._dummyBackground=this._renderer.arc().attr({"stroke-linejoin":"round"})),this._dummyBackground.attr({x:this._context.x,y:this._context.y,outerRadius:this._outerRadius,innerRadius:this._innerRadius,startAngle:this._context.endAngle,endAngle:this._context.startAngle,fill:this._context.backgroundColor}).append(this._barsGroup))},_updateBars:function(){this._bars.forEach((function(t){return t.applyValue()})),this._checkOverlap()},_checkOverlap:function(){var t=this._bars;if("none"!==p(this._getOption("resolveLabelOverlapping",!0)))for(var e=t.concat().sort((function(t,e){return t.getValue()-e.getValue()})),n=0,i=1;n<e.length&&i<e.length;){var o=e[n],r=e[i];o.checkIntersect(r)?(r.hideLabel(),i++):i=(n=i)+1}},_animateBars:function(){var t,e=this._bars.length;if(e>0){for(t=0;t<e;++t)this._bars[t].beginAnimation();this._barsGroup.animate({_:0},this._animationSettings)}},_buildNodes:function(){var t=this,e=t._options.silent();t._palette=t._themeManager.createPalette(e.palette,{useHighlight:!0,extensionMode:e.paletteExtensionMode}),t._palette.reset(),t._bars=t._bars||[],t._animationSettings&&t._barsGroup.stopAnimation();var n=t._values.filter(T),o=n.length;if(t._bars.length>o){for(var r=t._bars.length,a=o;a<r;++a)t._bars[a].dispose();t._bars.splice(o,r-o)}else if(t._bars.length<o)for(var s=t._bars.length;s<o;++s)t._bars.push(new i(s,t._context));t._bars.forEach((function(e,i){e.update({color:t._palette.getNextColor(o),value:n[i]})}))},_updateValues:function(t){var e,n,i=w(t)&&t||T(t)&&[t]||[],o=i.length;for(this._values.length=o,e=0;e<o;++e)n=i[e],this._values[e]=n=I(T(n)?n:this._values[e]);this._resizing||y(this._values,this.option("values"))||this.option("values",this._values.slice()),this._change(["NODES"])},values:function(t){return void 0!==t?(this._updateValues(t),this):this._values.slice(0)},_optionChangesMap:{backgroundColor:"MOSTLY_TOTAL",relativeInnerRadius:"MOSTLY_TOTAL",barSpacing:"MOSTLY_TOTAL",label:"MOSTLY_TOTAL",resolveLabelOverlapping:"MOSTLY_TOTAL",palette:"MOSTLY_TOTAL",paletteExtensionMode:"MOSTLY_TOTAL",values:"VALUES"},_change_VALUES:function(){this._updateValues(this.option("values"))},_factory:d.clone(g.prototype._factory),_optionChangesOrder:["VALUES","NODES"],_initialChanges:["VALUES"],_change_NODES:function(){this._buildNodes()},_change_MOSTLY_TOTAL:function(){this._change(["NODES"]),this.callBase()},_proxyData:[],_getLegendData:function(){var t={},e=this._options.silent(),n=(e.label||{}).format,i=(e.legend||{}).itemTextFormat;return t.format=i||(n||this._defaultFormatOptions),(this._bars||[]).map((function(e){return{id:e.index,item:{value:e.getValue(),color:e.getColor(),index:e.index},text:v(e.getValue(),t),visible:!0,states:{normal:{fill:e.getColor()}}}}))}});function P(t,e,n){t.startAngle=e<n?e:n,t.endAngle=e<n?n:e}function D(t,e){return r(t-e)<1e-4}O((i=function(t,e){this._context=e,this._tracker=e.renderer.arc().attr({"stroke-linejoin":"round"}),this.index=t}).prototype,{dispose:function(){return this._background.dispose(),this._bar.dispose(),this._context.textEnabled&&(this._line.dispose(),this._text.dispose()),this._context.tracker.detach(this._tracker),this._context=this._settings=this._background=this._bar=this._line=this._text=this._tracker=null,this},arrange:function(t){var e=this._context;return this._visible=!0,e.tracker.attach(this._tracker,this,{index:this.index}),this._background=e.renderer.arc().attr({"stroke-linejoin":"round",fill:e.backgroundColor}).append(e.group),this._settings=this._settings||{x:e.x,y:e.y,startAngle:e.baseAngle,endAngle:e.baseAngle},this._bar=e.renderer.arc().attr(O({"stroke-linejoin":"round"},this._settings)).append(e.group),e.textEnabled&&(this._line=e.renderer.path([],"line").attr({"stroke-width":e.lineWidth}).append(e.group),this._text=e.renderer.text().css(e.fontStyles).attr(e.textOptions).append(e.group)),this._angle=isFinite(this._angle)?this._angle:e.baseAngle,this._settings.outerRadius=t.radius,this._settings.innerRadius=t.radius-e.barSize,this._settings.x=e.x,this._settings.y=e.y,this._background.attr(O({},this._settings,{startAngle:e.endAngle,endAngle:e.startAngle,fill:this._context.backgroundColor})),this._bar.attr({x:e.x,y:e.y,outerRadius:this._settings.outerRadius,innerRadius:this._settings.innerRadius,fill:this._color}),this._tracker.attr(this._settings),e.textEnabled&&(this._line.attr({points:[e.x,e.y-this._settings.innerRadius,e.x,e.y-e.textRadius-e.textIndent],stroke:e.lineColor||this._color}).sharp(),this._text.css({fill:e.textColor||this._color})),this},getTooltipParameters:function(){var t=S((this._angle+this._context.baseAngle)/2);return{x:a(this._context.x+(this._settings.outerRadius+this._settings.innerRadius)/2*t.cos),y:a(this._context.y-(this._settings.outerRadius+this._settings.innerRadius)/2*t.sin),offset:0,color:this._color,value:this._value}},setAngle:function(t){var e,n=this._context,i=this._settings;if(this._angle=t,P(i,n.baseAngle,t),this._bar.attr(i),this._tracker.attr(i),n.textEnabled){e=S(t);var o=n.textIndent,a=n.textRadius+o,s=n.x+a*e.cos,l=n.y-a*e.sin,u=.5*n.textWidth,c=n.textHeight,d=n.textY;r(s-n.x)>o&&(s+=s<n.x?-u:u),r(l-n.y)<=o?l-=d+.5*c:l-=l<n.y?d+c:d;var h=v(this._value,n.formatOptions,{index:this.index}),f=""===h?"hidden":null;this._text.attr({text:h,x:s,y:l,visibility:f}),this._line.attr({visibility:f}),this._line.rotate(C(t),n.x,n.y)}return this},hideLabel:function(){this._text.attr({visibility:"hidden"}),this._line.attr({visibility:"hidden"})},checkIntersect:function(t){var e=this.calculateLabelCoords(),n=t.calculateLabelCoords();return!(!e||!n)&&Math.max(0,Math.min(e.bottomRight.x,n.bottomRight.x)-Math.max(e.topLeft.x,n.topLeft.x))*Math.max(0,Math.min(e.bottomRight.y,n.bottomRight.y)-Math.max(e.topLeft.y,n.topLeft.y))!==0},calculateLabelCoords:function(){if(this._text){var t=this._text.getBBox();return{topLeft:{x:t.x,y:t.y},bottomRight:{x:t.x+t.width,y:t.y+t.height}}}},_processValue:function(t){return this._context.translator.translate(this._context.translator.adjust(t))},applyValue:function(){return this._visible?this.setAngle(this._processValue(this.getValue())):this},update:function(t){var e=t.color,n=t.value;this._color=e,this._value=n},hide:function(){this._visible=!1},getColor:function(){return this._color},getValue:function(){return this._value},beginAnimation:function(){if(!this._visible)return this;var t=this._processValue(this.getValue());D(this._angle,t)?(this.animate=E,this.setAngle(this._angle)):(this._start=this._angle,this._delta=t-this._angle,this._tracker.attr({visibility:"hidden"}),this._context.textEnabled&&(this._line.attr({visibility:"hidden"}),this._text.attr({visibility:"hidden"})))},animate:function(t){if(!this._visible)return this;this._angle=this._start+this._delta*t,P(this._settings,this._context.baseAngle,this._angle),this._bar.attr(this._settings)},endAnimation:function(){void 0!==this._delta?D(this._angle,this._start+this._delta)&&(this._tracker.attr({visibility:null}),this.setAngle(this._angle)):delete this.animate,delete this._start,delete this._delta}}),c("dxBarGauge",M),e.dxBarGauge=M,M.addPlugin(n(227).plugin)},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),e._DEBUG_palettes=void 0,e.currentPalette=v,e.generateColors=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{keepLastColorInEnd:!1};return n.type=n.baseColorSet,n.extensionMode=n.paletteExtensionMode,S(t,n).generateColors(e)},e.getPalette=y,e.registerPalette=function(t,e){var n,i={};p(e)?i.simpleSet=e.slice(0):e&&(i.simpleSet=p(e.simpleSet)?e.simpleSet.slice(0):void 0,i.indicatingSet=p(e.indicatingSet)?e.indicatingSet.slice(0):void 0,i.gradientSet=p(e.gradientSet)?e.gradientSet.slice(0):void 0,i.accentColor=e.accentColor);i.accentColor||(i.accentColor=i.simpleSet&&i.simpleSet[0]);(i.simpleSet||i.indicatingSet||i.gradientSet)&&(n=(0,r.normalizeEnum)(t),(0,a.extend)(_[n]=_[n]||{},i))},e.getAccentColor=function(t,e){return(t=y(t,{themeDefault:e})).accentColor||t[0]},e.createPalette=S,e.getDiscretePalette=function(t,e,n){var i=e>0?function(t,e){var n,i=e-1,o=t.length-1,r=[],a=[];function s(t){var e=o*t,n=d(e),i=h(e);a.push(r[n].blend(r[i],e-n).toHex())}for(n=0;n<=o;++n)r.push(new f(t[n]));if(i>0)for(n=0;n<=i;++n)s(n/i);else s(.5);return a}(y(t,{type:"gradientSet",themeDefault:n}),e):[];return{getColor:function(t){return i[t]||null}}},e.getGradientPalette=function(t,e){var n=y(t,{type:"gradientSet",themeDefault:e}),i=new f(n[0]),o=new f(n[1]);return{getColor:function(t){return 0<=t&&t<=1?i.blend(o,t).toHex():null}}};var o,r=n(13),a=n(0),s=n(38),l=(o=s)&&o.__esModule?o:{default:o};function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c,d=Math.floor,h=Math.ceil,f=n(117),p=Array.isArray,m=n(2).isString,g={simpleSet:["#5f8b95","#ba4d51","#af8a53","#955f71","#859666","#7e688c"],indicatingSet:["#a3b97c","#e1b676","#ec7f83"],gradientSet:["#5f8b95","#ba4d51"],accentColor:"#ba4d51"},_=(u(i={},"material",{simpleSet:["#1db2f5","#f5564a","#97c95c","#ffc720","#eb3573","#a63db8"],indicatingSet:["#97c95c","#ffc720","#f5564a"],gradientSet:["#1db2f5","#97c95c"],accentColor:"#1db2f5"}),u(i,"default",g),u(i,"office",g),u(i,"harmony light",{simpleSet:["#fcb65e","#679ec5","#ad79ce","#7abd5c","#e18e92","#b6d623","#b7abea","#85dbd5"],indicatingSet:["#b6d623","#fcb65e","#e18e92"],gradientSet:["#7abd5c","#fcb65e"],accentColor:"#679ec5"}),u(i,"soft pastel",{simpleSet:["#60a69f","#78b6d9","#6682bb","#a37182","#eeba69","#90ba58","#456c68","#7565a4"],indicatingSet:["#90ba58","#eeba69","#a37182"],gradientSet:["#78b6d9","#eeba69"],accentColor:"#60a69f"}),u(i,"pastel",{simpleSet:["#bb7862","#70b3a1","#bb626a","#057d85","#ab394b","#dac599","#153459","#b1d2c6"],indicatingSet:["#70b3a1","#dac599","#bb626a"],gradientSet:["#bb7862","#70b3a1"],accentColor:"#bb7862"}),u(i,"bright",{simpleSet:["#70c92f","#f8ca00","#bd1550","#e97f02","#9d419c","#7e4452","#9ab57e","#36a3a6"],indicatingSet:["#70c92f","#f8ca00","#bd1550"],gradientSet:["#e97f02","#f8ca00"],accentColor:"#e97f02"}),u(i,"soft",{simpleSet:["#cbc87b","#9ab57e","#e55253","#7e4452","#e8c267","#565077","#6babac","#ad6082"],indicatingSet:["#9ab57e","#e8c267","#e55253"],gradientSet:["#9ab57e","#e8c267"],accentColor:"#565077"}),u(i,"ocean",{simpleSet:["#75c099","#acc371","#378a8a","#5fa26a","#064970","#38c5d2","#00a7c6","#6f84bb"],indicatingSet:["#c8e394","#7bc59d","#397c8b"],gradientSet:["#acc371","#38c5d2"],accentColor:"#378a8a"}),u(i,"vintage",{simpleSet:["#dea484","#efc59c","#cb715e","#eb9692","#a85c4c","#f2c0b5","#c96374","#dd956c"],indicatingSet:["#ffe5c6","#f4bb9d","#e57660"],gradientSet:["#efc59c","#cb715e"],accentColor:"#cb715e"}),u(i,"violet",{simpleSet:["#d1a1d1","#eeacc5","#7b5685","#7e7cad","#a13d73","#5b41ab","#e287e2","#689cc1"],indicatingSet:["#d8e2f6","#d0b2da","#d56a8a"],gradientSet:["#eeacc5","#7b5685"],accentColor:"#7b5685"}),u(i,"carmine",{simpleSet:["#fb7764","#73d47f","#fed85e","#d47683","#dde392","#757ab2"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#fb7764","#73d47f"],accentColor:"#f05b41"}),u(i,"dark moon",{simpleSet:["#4ddac1","#f4c99a","#80dd9b","#f998b3","#4aaaa0","#a5aef1"],indicatingSet:["#59d8a4","#f0ad4e","#f9517e"],gradientSet:["#4ddac1","#f4c99a"],accentColor:"#3debd3"}),u(i,"soft blue",{simpleSet:["#7ab8eb","#97da97","#facb86","#e78683","#839bda","#4db7be"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#7ab8eb","#97da97"],accentColor:"#7ab8eb"}),u(i,"dark violet",{simpleSet:["#9c63ff","#64c064","#eead51","#d2504b","#4b6bbf","#2da7b0"],indicatingSet:["#5cb85c","#f0ad4e","#d9534f"],gradientSet:["#9c63ff","#64c064"],accentColor:"#9c63ff"}),u(i,"green mist",{simpleSet:["#3cbab2","#8ed962","#5b9d95","#efcc7c","#f1929f","#4d8dab"],indicatingSet:["#72d63c","#ffc852","#f74a5e"],gradientSet:["#3cbab2","#8ed962"],accentColor:"#3cbab2"}),i);function v(t){if(void 0===t)return c||"material";t=(0,r.normalizeEnum)(t),c=t in _?t:void 0}function y(t,e){var n;t=function(t,e){var n=t||(void 0===c?e:v());"default"===n&&l.default.log("W0016",'"palette"',"Default","18.1",'Use the "Office" value instead.');return n}(t,(e=e||{}).themeDefault);var i=e.type;return p(t)?t.slice(0):(m(t)&&(n=_[(0,r.normalizeEnum)(t)]),n||(n=_[v()]),i?n[i].slice(0):n)}function b(t){var e=0;this.next=function(){var n=t[e++];return e===t.length&&this.reset(),n},this.reset=function(){e=0}}function w(t,e){var n=e.useHighlight?50:0,i=new b([0,n,-n]),o=[];function r(){var e=i.next();o=e?function(t,e){var n,i=[],o=t.length;for(n=0;n<o;++n)i.push(k(t[n],e));return i}(t,e):t.slice(0)}return{getColor:function(e){var n=o[e%t.length];return e%t.length===t.length-1&&r(),n},generateColors:function(t){var n=[];t=t||e.count;for(var i=0;i<t;i++)n.push(this.getColor(i));return n},reset:function(){i.reset(),r()}}}function x(t,e){return{getColor:function(e,n){var i=t.length,o=d((n-1)/i+1),r=t[e%i];return o>1?function(t,e,n){var i=new f(t).hsl,o=i.l/100,r=n-1/n,a=o-.5*r,s=o+.5*r,l=(n-1)/2,u=e-l;return a<Math.min(.5,.9*o)&&(a=Math.min(.5,.9*o)),s>Math.max(.8,o+.15*(1-o))&&(s=Math.max(.8,o+.15*(1-o))),u<0?o-=(a-o)*u/l:o+=u/l*(s-o),i.l=100*o,f.prototype.fromHSL(i).toHex()}(r,d(e/i),o):r},generateColors:function(t){var n=[];t=t||e.count;for(var i=0;i<t;i++)n.push(this.getColor(i,t));return n},reset:function(){}}}function C(t,e){var n=t.length,i=[];function o(t,e,n,i){for(var o,r,a=Math.floor(t/e),s=t-e*a,l=n;l<n+t;)r=a,s>0&&(r+=1,s--),o=r>2?Math.floor(r/2):0,i.push(l+o),l+=r;return i.sort((function(t,e){return t-e}))}function r(t,e,n){for(var i=0,o=e=(n+e)%n;o<2*n;o+=1){var r=(n+o)%n;if(t[r])return[t[r],i];i++}}function a(i){if(i<=n)return t;var a=[],s=n-2,l=0,u=[];u=e.keepLastColorInEnd?o(i-2,s,1,[0,i-1]):o(i-1,n-1,1,[0]);for(var c=0;c<i;c++)u.indexOf(c)>-1&&(a[c]=t[l++]);return a=function(t,e){for(var n=0;n<e;n++){if(!t[n]){var i=t[n-1];if(!i)continue;var o=r(t,n,e),a=new f(o[0]);i=new f(i);for(var s=0;s<o[1];s++,n++)t[n]=i.blend(a,(s+1)/(o[1]+1)).toHex()}}return t}(a,i)}return{getColor:function(t,o){return o=o||e.count||n,i.length!==o&&(i=a(o)),i[t%o]},generateColors:function(t,i){if(t=t||e.count||n,i&&t>n){for(var o=a(n),r=0;r<t-n;r++)o.push(o[r]);return o}return n>0?a(t).slice(0,t):[]},reset:function(){}}}function S(t,e,n){var i={dispose:function(){this._extensionStrategy=null},getNextColor:function(t){return this._extensionStrategy.getColor(this._currentColor++,t)},generateColors:function(t,e){return this._extensionStrategy.generateColors(t,(e||{}).repeat)},reset:function(){return this._currentColor=0,this._extensionStrategy.reset(),this}},o=((e=e||{}).extensionMode||"").toLowerCase(),r=y(t,{type:e.type||"simpleSet",themeDefault:n});return i._extensionStrategy="alternate"===o?w(r,e):"extrapolate"===o?x(r,e):C(r,e),i.reset(),i}function k(t,e){var n,i=new f(t).alter(e),o=.3*(n=i).r+.59*n.g+.11*n.b;return(o>200||o<55)&&(i=new f(t).alter(-e/2)),i.toHex()}},function(t,e,n){"use strict";var i="#ffffff",o="#000000",r="#ff0000",a="none",s="solid",l="top",u="right",c="left",d="center",h=n(82),f=h.registerTheme,p=h.registerThemeAlias;f({name:"generic.light",isDefault:!0,font:{color:"#767676",family:"'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:400,size:12,cursor:"default"},redrawOnResize:!0,backgroundColor:i,primaryTitleColor:"#232323",secondaryTitleColor:"#767676",gridColor:"#d3d3d3",axisColor:"#767676",title:{backgroundColor:i,font:{size:28,family:"'Segoe UI Light', 'Helvetica Neue Light', 'Segoe UI', 'Helvetica Neue', 'Trebuchet MS', Verdana, sans-serif",weight:200},subtitle:{font:{size:16},offset:0,wordWrap:"normal",textOverflow:"ellipsis"},wordWrap:"normal",textOverflow:"ellipsis"},loadingIndicator:{text:"Loading..."},export:{backgroundColor:i,margin:10,font:{size:14,color:"#232323",weight:400},button:{margin:{top:8,left:10,right:10,bottom:8},default:{color:"#333",borderColor:"#ddd",backgroundColor:i},hover:{color:"#333",borderColor:"#bebebe",backgroundColor:"#e6e6e6"},focus:{color:o,borderColor:"#9d9d9d",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#9d9d9d",backgroundColor:"#d4d4d4"}},shadowColor:"#d3d3d3"},tooltip:{enabled:!1,border:{width:1,color:"#d3d3d3",dashStyle:s,visible:!0},font:{color:"#232323"},color:i,arrowLength:10,paddingLeftRight:18,paddingTopBottom:15,textAlignment:"center",shared:!1,location:d,shadow:{opacity:.4,offsetX:0,offsetY:4,blur:2,color:o},interactive:!1},legend:{hoverMode:"includePoints",verticalAlignment:l,horizontalAlignment:u,position:"outside",visible:!0,margin:10,markerSize:12,border:{visible:!1,width:1,cornerRadius:0,dashStyle:s},paddingLeftRight:20,paddingTopBottom:15,columnCount:0,rowCount:0,columnItemSpacing:20,rowItemSpacing:8,title:{backgroundColor:i,margin:{left:0,bottom:9,right:0,top:0},font:{size:18,weight:200},subtitle:{offset:0,font:{size:14},wordWrap:"none",textOverflow:"ellipsis"},wordWrap:"none",textOverflow:"ellipsis"}},"chart:common":{animation:{enabled:!0,duration:1e3,easing:"easeOutCubic",maxPointCountSupported:300},commonSeriesSettings:{border:{visible:!1,width:2},showInLegend:!0,visible:!0,hoverMode:"nearestPoint",selectionMode:"includePoints",hoverStyle:{hatching:{direction:u,width:2,step:6,opacity:.75},border:{visible:!1,width:3}},selectionStyle:{hatching:{direction:u,width:2,step:6,opacity:.5},border:{visible:!1,width:3}},valueErrorBar:{displayMode:"auto",value:1,color:o,lineWidth:2,edgeLength:8},label:{visible:!1,alignment:d,rotationAngle:0,horizontalOffset:0,verticalOffset:0,radialOffset:0,showForZeroValues:!0,customizeText:void 0,maxLabelCount:void 0,position:"outside",font:{color:i},border:{visible:!1,width:1,color:"#d3d3d3",dashStyle:s},connector:{visible:!1,width:1}}},seriesSelectionMode:"single",pointSelectionMode:"single",equalRowHeight:!0,dataPrepareSettings:{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},_rtl:{legend:{itemTextPosition:c}},resolveLabelOverlapping:a},"chart:common:axis":{visible:!0,valueMarginsEnabled:!0,placeholderSize:null,logarithmBase:10,discreteAxisDivisionMode:"betweenLabels",width:1,label:{visible:!0},grid:{visible:!1,width:1},minorGrid:{visible:!1,width:1,opacity:.3},tick:{visible:!0,width:1,length:7,shift:3},minorTick:{visible:!1,width:1,opacity:.3,length:7,shift:3},stripStyle:{paddingLeftRight:10,paddingTopBottom:5},constantLineStyle:{width:1,color:o,dashStyle:s,label:{visible:!0,position:"inside"}},marker:{label:{}}},"chart:common:annotation":{font:{color:"#333333"},tooltipEnabled:!0,border:{width:1,color:"#dddddd",dashStyle:s,visible:!0},color:i,opacity:.9,arrowLength:14,arrowWidth:14,paddingLeftRight:10,paddingTopBottom:10,shadow:{opacity:.15,offsetX:0,offsetY:1,blur:4,color:o},image:{width:30,height:30},wordWrap:"normal",textOverflow:"ellipsis",allowDragging:!1},chart:{commonSeriesSettings:{type:"line",stack:"default",aggregation:{enabled:void 0},point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4}},selectionStyle:{border:{visible:!0,width:4}}},scatter:{},line:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},stackedline:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},stackedspline:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},fullstackedline:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},fullstackedspline:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},stepline:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedarea:{point:{visible:!1},opacity:.5},fullstackedarea:{point:{visible:!1},opacity:.5},fullstackedsplinearea:{point:{visible:!1},opacity:.5},steparea:{border:{visible:!0,width:2},point:{visible:!1},hoverStyle:{border:{visible:!0,width:3}},selectionStyle:{border:{visible:!0,width:3}},opacity:.5},spline:{width:2,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},splinearea:{point:{visible:!1},opacity:.5},stackedsplinearea:{point:{visible:!1},opacity:.5},bar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},stackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:"inside"}},fullstackedbar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}},label:{position:"inside"}},rangebar:{cornerRadius:0,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},rangearea:{point:{visible:!1},opacity:.5},rangesplinearea:{point:{visible:!1},opacity:.5},bubble:{opacity:.5,point:{hoverStyle:{border:{visible:!1}},selectionStyle:{border:{visible:!1}}}},candlestick:{width:1,reduction:{color:r},hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3},point:{border:{visible:!0}}},stock:{width:1,reduction:{color:r},hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3},point:{border:{visible:!0}}}},crosshair:{enabled:!1,color:"#f05b41",width:1,dashStyle:s,label:{visible:!1,font:{color:i,size:12}},verticalLine:{visible:!0},horizontalLine:{visible:!0}},commonAxisSettings:{multipleAxesSpacing:5,forceUserTickInterval:!1,breakStyle:{width:5,color:"#ababab",line:"waved"},label:{displayMode:"standard",overlappingBehavior:"hide",indentFromAxis:10,wordWrap:"normal",textOverflow:"none"},title:{font:{size:16},margin:6,alignment:d},constantLineStyle:{paddingLeftRight:10,paddingTopBottom:10}},horizontalAxis:{position:"bottom",axisDivisionFactor:70,label:{rotationAngle:90,staggeringSpacing:5,alignment:d},stripStyle:{label:{horizontalAlignment:d,verticalAlignment:l}},constantLineStyle:{label:{horizontalAlignment:u,verticalAlignment:l}},constantLines:[]},verticalAxis:{position:c,axisDivisionFactor:40,label:{alignment:u},stripStyle:{label:{horizontalAlignment:c,verticalAlignment:d}},constantLineStyle:{label:{horizontalAlignment:c,verticalAlignment:l}},constantLines:[]},argumentAxis:{endOnTick:!1,workWeek:[1,2,3,4,5]},valueAxis:{grid:{visible:!0},autoBreaksEnabled:!1,maxAutoBreakCount:4},commonPaneSettings:{backgroundColor:a,border:{color:"#d3d3d3",width:1,visible:!1,top:!0,bottom:!0,left:!0,right:!0,dashStyle:s}},scrollBar:{visible:!1,offset:5,color:"gray",width:10},adjustOnZoom:!0,autoHidePointMarkers:!0,rotated:!1,zoomingMode:a,scrollingMode:a,synchronizeMultiAxes:!0,stickyHovering:!0,equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,zoomAndPan:{dragBoxStyle:{color:"#2a2a2a",opacity:.2},panKey:"shift",allowMouseWheel:!0,allowTouchGestures:!0}},pie:{innerRadius:.5,minDiameter:.5,type:"pie",dataPrepareSettings:{_skipArgumentSorting:!0},commonSeriesSettings:{pie:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:u,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:u,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},doughnut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:u,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:u,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},donut:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{direction:u,width:4,step:10,opacity:.75},border:{visible:!1,width:2}},selectionStyle:{hatching:{direction:u,width:4,step:10,opacity:.5},border:{visible:!1,width:2}}},label:{textOverflow:"ellipsis",wordWrap:"normal"}},legend:{hoverMode:"allArgumentPoints",backgroundColor:a},adaptiveLayout:{keepLabels:!1}},gauge:{scale:{tick:{visible:!0,length:5,width:2,opacity:1},minorTick:{visible:!1,length:3,width:1,opacity:1},label:{visible:!0,alignment:d,hideFirstOrLast:"last",overlappingBehavior:"hide"},position:l,endOnTick:!1},rangeContainer:{offset:0,width:5,backgroundColor:"#808080"},valueIndicators:{_default:{color:"#c2c2c2"},rangebar:{space:2,size:10,color:"#cbc5cf",backgroundColor:a,text:{indent:0,font:{size:14,color:null}}},twocolorneedle:{secondColor:"#e18e92"},trianglemarker:{space:2,length:14,width:13,color:"#8798a5"},textcloud:{arrowLength:5,horizontalOffset:6,verticalOffset:3,color:"#679ec5",text:{font:{color:i,size:18}}}},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:d,verticalAlignment:"bottom"},text:{font:{size:18}}},_circular:{scale:{scaleDivisionFactor:17,orientation:"outside",label:{indentFromTick:10}},rangeContainer:{orientation:"outside"},valueIndicatorType:"rectangleneedle",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangleneedle",_default:{offset:20,indentFromCenter:0,width:2,spindleSize:14,spindleGapSize:10,beginAdaptingAtRadius:50},triangleneedle:{width:4},twocolorneedle:{space:2,secondFraction:.4},rangebar:{offset:30},trianglemarker:{offset:6},textcloud:{offset:-6}}},_linear:{scale:{scaleDivisionFactor:25,horizontalOrientation:u,verticalOrientation:"bottom",label:{indentFromTick:-10}},rangeContainer:{horizontalOrientation:u,verticalOrientation:"bottom"},valueIndicatorType:"rangebar",subvalueIndicatorType:"trianglemarker",valueIndicators:{_type:"rectangle",_default:{offset:2.5,length:15,width:15},rectangle:{width:10},rangebar:{offset:10,horizontalOrientation:u,verticalOrientation:"bottom"},trianglemarker:{offset:10,horizontalOrientation:c,verticalOrientation:l},textcloud:{offset:-1,horizontalOrientation:c,verticalOrientation:l}}}},barGauge:{backgroundColor:"#e0e0e0",relativeInnerRadius:.3,barSpacing:4,resolveLabelOverlapping:"hide",label:{indent:20,connectorWidth:2,font:{size:16}},legend:{visible:!1},indicator:{hasPositiveMeaning:!0,layout:{horizontalAlignment:d,verticalAlignment:"bottom"},text:{font:{size:18}}}},rangeSelector:{scale:{valueMarginsEnabled:!0,width:1,color:o,opacity:.1,showCustomBoundaryTicks:!0,label:{overlappingBehavior:"hide",alignment:d,visible:!0,topIndent:7,font:{size:11}},tick:{width:1,color:o,opacity:.17,visible:!0,length:12},minorTick:{width:1,color:o,opacity:.05,visible:!0,length:12},marker:{width:1,color:"#000000",opacity:.1,visible:!0,separatorHeight:33,topIndent:10,textLeftIndent:7,textTopIndent:11,label:{}},logarithmBase:10,workWeek:[1,2,3,4,5],breakStyle:{width:5,color:"#ababab",line:"waved"},endOnTick:!1},selectedRangeColor:"#606060",sliderMarker:{visible:!0,paddingTopBottom:2,paddingLeftRight:4,color:"#606060",invalidRangeColor:r,font:{color:i,size:11}},sliderHandle:{width:1,color:o,opacity:.2},shutter:{opacity:.75},background:{color:"#c0bae1",visible:!0,image:{location:"full"}},behavior:{snapToTicks:!0,animationEnabled:!0,moveSelectedRangeByClick:!0,manualRangeSelectionEnabled:!0,allowSlidersSwap:!0,callValueChanged:"onMovingComplete"},redrawOnResize:!0,chart:{equalBarWidth:!0,barGroupPadding:.3,minBubbleSize:12,maxBubbleSize:.2,topIndent:.1,bottomIndent:0,valueAxis:{inverted:!1,logarithmBase:10},commonSeriesSettings:{type:"area",aggregation:{enabled:void 0},point:{visible:!1},scatter:{point:{visible:!0}}}}},map:{title:{margin:10},background:{borderWidth:1,borderColor:"#cacaca"},layer:{label:{enabled:!1,stroke:i,"stroke-width":1,"stroke-opacity":.7,font:{color:"#2b2b2b",size:12}}},"layer:area":{borderWidth:1,borderColor:i,color:"#d2d2d2",hoveredBorderColor:"#303030",selectedBorderWidth:2,selectedBorderColor:"#303030",label:{"stroke-width":2,font:{size:16}}},"layer:line":{borderWidth:2,color:"#ba8365",hoveredColor:"#a94813",selectedBorderWidth:3,selectedColor:"#e55100",label:{"stroke-width":2,font:{size:16}}},"layer:marker":{label:{enabled:!0,"stroke-width":1,font:{size:12}}},"layer:marker:dot":{borderWidth:2,borderColor:i,size:8,selectedStep:2,backStep:18,backColor:i,backOpacity:.32,shadow:!0},"layer:marker:bubble":{minSize:20,maxSize:50,hoveredBorderWidth:1,hoveredBorderColor:"#303030",selectedBorderWidth:2,selectedBorderColor:"#303030"},"layer:marker:pie":{size:50,hoveredBorderWidth:1,hoveredBorderColor:"#303030",selectedBorderWidth:2,selectedBorderColor:"#303030"},"layer:marker:image":{size:20},legend:{verticalAlignment:"bottom",horizontalAlignment:u,position:"inside",backgroundOpacity:.65,border:{visible:!0},paddingLeftRight:16,paddingTopBottom:12},controlBar:{borderColor:"#5d5d5d",borderWidth:3,color:i,margin:20,opacity:.3},_rtl:{legend:{itemTextPosition:c}}},treeMap:{tile:{border:{width:1,opacity:.2,color:"#000000"},color:"#5f8b95",hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:"right"},border:{opacity:1}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#ffffff",weight:600},shadow:{opacity:.6,offsetX:0,offsetY:1,blur:2,color:"#000000"},wordWrap:"normal",textOverflow:"ellipsis"}},group:{padding:4,border:{width:1},color:"#eeeeee",hoverStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},selectionStyle:{hatching:{opacity:0,step:6,width:2,direction:"right"},border:{}},label:{visible:!0,paddingLeftRight:5,paddingTopBottom:4,font:{color:"#767676",weight:600},textOverflow:"ellipsis"}},title:{subtitle:{}},tooltip:{},loadingIndicator:{}},sparkline:{lineColor:"#666666",lineWidth:2,areaOpacity:.2,minColor:"#e8c267",maxColor:"#e55253",barPositiveColor:"#a9a9a9",barNegativeColor:"#d7d7d7",winColor:"#a9a9a9",lossColor:"#d7d7d7",firstLastColor:"#666666",pointSymbol:"circle",pointColor:i,pointSize:4,type:"line",argumentField:"arg",valueField:"val",winlossThreshold:0,showFirstLast:!0,showMinMax:!1,tooltip:{enabled:!0}},bullet:{color:"#e8c267",targetColor:"#666666",targetWidth:4,showTarget:!0,showZeroLevel:!0,tooltip:{enabled:!0}},polar:{commonSeriesSettings:{type:"scatter",closed:!0,point:{visible:!0,symbol:"circle",size:12,border:{visible:!1,width:1},hoverMode:"onlyPoint",selectionMode:"onlyPoint",hoverStyle:{border:{visible:!0,width:4},size:12},selectionStyle:{border:{visible:!0,width:4},size:12}},scatter:{},line:{width:2,dashStyle:s,hoverStyle:{width:3,hatching:{direction:a}},selectionStyle:{width:3}},area:{point:{visible:!1},opacity:.5},stackedline:{width:2},bar:{opacity:.8},stackedbar:{opacity:.8}},adaptiveLayout:{width:80,height:80,keepLabels:!0},equalBarWidth:!0,barGroupPadding:.3,commonAxisSettings:{visible:!0,forceUserTickInterval:!1,label:{overlappingBehavior:"hide",indentFromAxis:5},grid:{visible:!0},minorGrid:{visible:!0},tick:{visible:!0},title:{font:{size:16},margin:10}},argumentAxis:{startAngle:0,firstPointOnStartAngle:!1,period:void 0},valueAxis:{endOnTick:!1,tick:{visible:!1}},horizontalAxis:{position:l,axisDivisionFactor:50,label:{alignment:d}},verticalAxis:{position:l,axisDivisionFactor:30,label:{alignment:u}}},funnel:{sortData:!0,valueField:"val",colorField:"color",argumentField:"arg",hoverEnabled:!0,selectionMode:"single",item:{border:{visible:!1,width:2,color:i},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:u},border:{}},selectionStyle:{hatching:{opacity:.5,step:6,width:2,direction:u},border:{}}},title:{margin:10},adaptiveLayout:{width:80,height:80,keepLabels:!0},legend:{visible:!1},_rtl:{legend:{itemTextPosition:c}},tooltip:{customizeTooltip:function(t){return{text:t.item.argument+" "+t.valueText}}},inverted:!1,algorithm:"dynamicSlope",neckWidth:0,neckHeight:0,resolveLabelOverlapping:"shift",label:{textOverflow:"ellipsis",wordWrap:"normal",visible:!0,horizontalAlignment:u,horizontalOffset:0,verticalOffset:0,showForZeroValues:!1,customizeText:function(t){return t.item.argument+" "+t.valueText},position:"columns",font:{color:i},border:{visible:!1,width:1,color:"#d3d3d3",dashStyle:s},connector:{visible:!0,width:1,opacity:.5}}},sankey:{sourceField:"source",targetField:"target",weightField:"weight",hoverEnabled:!0,alignment:d,adaptiveLayout:{width:80,height:80,keepLabels:!0},label:{visible:!0,horizontalOffset:8,verticalOffset:0,overlappingBehavior:"ellipsis",useNodeColors:!1,font:{color:o,weight:500},border:{visible:!1,width:2,color:i},customizeText:function(t){return t.title},shadow:{opacity:.2,offsetX:0,offsetY:1,blur:1,color:i}},title:{margin:10,font:{size:28,weight:200},subtitle:{font:{size:16}}},tooltip:{enabled:!0},node:{padding:30,width:8,opacity:1,border:{color:i,width:1,visible:!1},hoverStyle:{hatching:{opacity:.75,step:6,width:2,direction:u},border:{}}},link:{color:"#888888",colorMode:"none",opacity:.3,border:{color:i,width:1,visible:!1},hoverStyle:{opacity:.5,hatching:{opacity:.75,step:6,width:2,direction:u},border:{}}}}}),p("generic.light.compact","generic.light")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias,a="#ffffff";o({name:"generic.dark",font:{color:"#808080"},backgroundColor:"#2a2a2a",primaryTitleColor:"#dedede",secondaryTitleColor:"#a3a3a3",gridColor:"#555555",axisColor:"#a3a3a3",export:{backgroundColor:"#2a2a2a",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#2e2e2e"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#444"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#444444"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#555555"}},shadowColor:"#292929"},tooltip:{color:"#2b2b2b",border:{color:"#494949"},font:{color:"#929292"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#494949"}},valueErrorBar:{color:a}}},"chart:common:axis":{constantLineStyle:{color:a}},"chart:common:annotation":{font:{color:"#929292"},border:{color:"#494949"},color:"#2b2b2b",shadow:{opacity:.008,offsetY:4,blur:8}},chart:{commonPaneSettings:{border:{color:"#494949"}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:a}}},gauge:{rangeContainer:{backgroundColor:"#b5b5b5"},valueIndicators:{_default:{color:"#b5b5b5"},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.32},minorTick:{color:a,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:"#b5b5b5",sliderMarker:{color:"#b5b5b5",font:{color:"#303030"}},sliderHandle:{color:a,opacity:.2},shutter:{color:"#2b2b2b",opacity:.9}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:a}}},"layer:area":{borderColor:"#303030",color:"#686868",hoveredBorderColor:a,selectedBorderColor:a},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},legend:{border:{color:"#3f3f3f"},font:{color:a}},controlBar:{borderColor:"#c7c7c7",color:"#303030"}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:"#c7c7c7",firstLastColor:"#c7c7c7",barPositiveColor:"#b8b8b8",barNegativeColor:"#8e8e8e",winColor:"#b8b8b8",lossColor:"#8e8e8e",pointColor:"#303030"},bullet:{targetColor:"#8e8e8e"},funnel:{item:{border:{color:"#2a2a2a"}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{color:"#2a2a2a"}},link:{color:"#888888",border:{color:"#2a2a2a"},hoverStyle:{color:"#bbbbbb"}}}},"generic.light"),r("generic.dark.compact","generic.dark")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias,a="#ffffff",s="#000000";o({name:"generic.contrast",defaultPalette:"Bright",font:{color:a},backgroundColor:s,primaryTitleColor:a,secondaryTitleColor:a,gridColor:a,axisColor:a,export:{backgroundColor:s,font:{color:a},button:{default:{color:a,borderColor:a,backgroundColor:s},hover:{color:a,borderColor:a,backgroundColor:"#cf00d7"},focus:{color:a,borderColor:"#cf00d7",backgroundColor:s},active:{color:s,borderColor:a,backgroundColor:a}},borderColor:a,menuButtonColor:s,activeBackgroundColor:a,activeColor:s,selectedBorderColor:"#cf00da",selectedColor:"#cf00da",shadowColor:"none"},tooltip:{border:{color:a},font:{color:a},color:s},"chart:common":{commonSeriesSettings:{valueErrorBar:{color:a},hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}},label:{font:{color:a},border:{color:a}}}},"chart:common:axis":{constantLineStyle:{color:a}},"chart:common:annotation":{font:{color:a},border:{color:a},color:s},chart:{commonSeriesSettings:{},crosshair:{color:"#cf00d7"},commonPaneSettings:{backgroundColor:s,border:{color:a}},scrollBar:{color:a},commonAxisSettings:{breakStyle:{color:"#cf00d7"}},zoomAndPan:{dragBoxStyle:{color:a,opacity:.7}}},pie:{commonSeriesSettings:{pie:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},doughnut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}},donut:{hoverStyle:{hatching:{opacity:.5}},selectionStyle:{hatching:{opacity:.35}}}}},gauge:{rangeContainer:{backgroundColor:a},valueIndicators:{_default:{color:a},rangebar:{color:a,backgroundColor:s},twocolorneedle:{secondColor:a},trianglemarker:{color:a},textcloud:{color:a,text:{font:{color:s}}}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:a,opacity:.4},minorTick:{color:a,opacity:.12},breakStyle:{color:"#cf00d7"}},selectedRangeColor:"#cf00da",sliderMarker:{color:"#cf00da"},sliderHandle:{color:"#cf00da",opacity:1},shutter:{opacity:.75},background:{color:s}},map:{background:{borderColor:a},layer:{label:{stroke:s,font:{color:a}}},"layer:area":{borderColor:s,color:"#686868",hoveredBorderColor:a,selectedBorderColor:a,label:{font:{opacity:1}}},"layer:line":{color:"#267cff",hoveredColor:"#f613ff",selectedColor:a},"layer:marker:dot":{borderColor:s,color:"#f8ca00",backColor:s,backOpacity:.32},"layer:marker:bubble":{color:"#f8ca00",hoveredBorderColor:a,selectedBorderColor:a},"layer:marker:pie":{hoveredBorderColor:a,selectedBorderColor:a},controlBar:{borderColor:a,color:s,opacity:.3}},treeMap:{tile:{color:"#70c92f"},group:{color:"#797979",label:{font:{color:a}}}},sparkline:{pointColor:s},bullet:{},polar:{commonSeriesSettings:{}},funnel:{label:{connector:{opacity:1}}},sankey:{label:{font:{color:a},shadow:{opacity:0}},node:{border:{visible:!0,width:1,color:a}},link:{opacity:.5,border:{visible:!0,width:1,color:a},hoverStyle:{opacity:.9}}}},"generic.light"),r("generic.contrast.compact","generic.contrast")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias;o({name:"generic.carmine",defaultPalette:"Carmine",backgroundColor:"#fff",primaryTitleColor:"#333",secondaryTitleColor:"#8899a8",gridColor:"#dee1e3",axisColor:"#707070",export:{backgroundColor:"#fff",font:{color:"#333"},button:{default:{color:"#333",borderColor:"#b1b7bd",backgroundColor:"#fff"},hover:{color:"#333",borderColor:"#b1b7bd",backgroundColor:"#faf2f0"},focus:{color:"#333",borderColor:"#6d7781",backgroundColor:"#faf2f0"},active:{color:"#333",borderColor:"#6d7781",backgroundColor:"#f5e7e4"}}},legend:{font:{color:"#707070"}},tooltip:{color:"#fff",border:{color:"#dee1e3"},font:{color:"#333"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#dee1e3"}}}},"chart:common:annotation":{font:{color:"#333"},border:{color:"#dee1e3"},color:"#fff"},chart:{commonPaneSettings:{border:{color:"#dee1e3"}},commonAxisSettings:{breakStyle:{color:"#c1c5c7"}}},rangeSelector:{scale:{breakStyle:{color:"#c1c5c7"},tick:{opacity:.12}},selectedRangeColor:"#f05b41",sliderMarker:{color:"#f05b41"},sliderHandle:{color:"#f05b41",opacity:.5}},sparkline:{pointColor:"#fff",minColor:"#f0ad4e",maxColor:"#f74d61"},treeMap:{group:{color:"#dee1e3",label:{font:{color:"#8899a8"}}}},bullet:{color:"#f05b41"},gauge:{valueIndicators:{rangebar:{color:"#f05b41"},textcloud:{color:"#f05b41"}}}},"generic.light"),r("generic.carmine.compact","generic.carmine")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias;o({name:"generic.darkmoon",defaultPalette:"Dark Moon",backgroundColor:"#465672",primaryTitleColor:"#fff",secondaryTitleColor:"#919bac",gridColor:"#596980",axisColor:"#c7ccd4",export:{backgroundColor:"#465672",font:{color:"#fff"},button:{default:{color:"#fff",borderColor:"#7a889e",backgroundColor:"#465672"},hover:{color:"#fff",borderColor:"#9da8b8",backgroundColor:"#596e92"},focus:{color:"#fff",borderColor:"#c4cad4",backgroundColor:"#596e92"},active:{color:"#fff",borderColor:"#c4cad4",backgroundColor:"#6b80a4"}}},legend:{font:{color:"#c7ccd4"}},tooltip:{color:"#62789e",border:{color:"#596980"},font:{color:"#fff"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#596980"}}}},"chart:common:annotation":{font:{color:"#fff"},border:{color:"#596980"},color:"#62789e"},chart:{commonPaneSettings:{border:{color:"#596980"}},commonAxisSettings:{breakStyle:{color:"#73869e"}}},gauge:{valueIndicators:{rangebar:{color:"#3debd3"},textcloud:{color:"#3debd3",text:{font:{color:"#465672"}}}}},barGauge:{backgroundColor:"#526280"},funnel:{item:{border:{color:"#465672"}}},sparkline:{pointColor:"#465672",minColor:"#f0ad4e",maxColor:"#f9517e"},treeMap:{group:{color:"#596980",label:{font:{color:"#fff"}}}},map:{background:{borderColor:"#596980"},"layer:area":{color:"#97a3b6",borderColor:"#465672"}},rangeSelector:{shutter:{color:"#465672"},scale:{breakStyle:{color:"#73869e"},tick:{opacity:.2}},selectedRangeColor:"#3debd3",sliderMarker:{color:"#3debd3",font:{color:"#000"}},sliderHandle:{color:"#3debd3",opacity:.5}},bullet:{color:"#3debd3"},sankey:{link:{border:{color:"#465672"}},node:{border:{color:"#465672"}}}},"generic.dark"),r("generic.darkmoon.compact","generic.darkmoon")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias;o({name:"generic.softblue",defaultPalette:"Soft Blue",backgroundColor:"#fff",primaryTitleColor:"#333",secondaryTitleColor:"#99a1a8",gridColor:"#e8eaeb",axisColor:"#707070",export:{backgroundColor:"#fff",font:{color:"#333"},button:{default:{color:"#333",borderColor:"#c9d0d4",backgroundColor:"#fff"},hover:{color:"#333",borderColor:"#a7b2b9",backgroundColor:"#e6e6e6"},focus:{color:"#333",borderColor:"#82929b",backgroundColor:"#e6e6e6"},active:{color:"#333",borderColor:"#82929b",backgroundColor:"#d4d4d4"}}},legend:{font:{color:"#707070"}},tooltip:{color:"#fff",border:{color:"#e8eaeb"},font:{color:"#333"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#e8eaeb"}}}},"chart:common:annotation":{color:"#fff",border:{color:"#e8eaeb"},font:{color:"#333"}},chart:{commonPaneSettings:{border:{color:"#e8eaeb"}},commonAxisSettings:{breakStyle:{color:"#cfd2d3"}}},rangeSelector:{scale:{breakStyle:{color:"#cfd2d3"},tick:{opacity:.12}},selectedRangeColor:"#7ab8eb",sliderMarker:{color:"#7ab8eb"},sliderHandle:{color:"#7ab8eb",opacity:.5}},sparkline:{pointColor:"#fff",minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:"#e8eaeb",label:{font:{color:"#99a1a8"}}}},bullet:{color:"#7ab8eb"},gauge:{valueIndicators:{rangebar:{color:"#7ab8eb"},textcloud:{color:"#7ab8eb"}}}},"generic.light"),r("generic.softblue.compact","generic.softblue")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias;o({name:"generic.darkviolet",defaultPalette:"Dark Violet",backgroundColor:"#17171f",primaryTitleColor:"#f5f6f7",secondaryTitleColor:"#fff",gridColor:"#343840",axisColor:"#b2b2b6",export:{backgroundColor:"#17171f",font:{color:"#f5f6f7"},button:{default:{color:"#f5f6f7",borderColor:"#414152",backgroundColor:"#17171f"},hover:{color:"#f5f6f7",borderColor:"#5c5c74",backgroundColor:"#2d2d3c"},focus:{color:"#f5f6f7",borderColor:"#7c7c97",backgroundColor:"#2d2d3c"},active:{color:"#f5f6f7",borderColor:"#7c7c97",backgroundColor:"#3c3c51"}}},legend:{font:{color:"#b2b2b6"}},tooltip:{color:"#17171f",border:{color:"#414152"},font:{color:"#f5f6f7"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#343840"}}}},"chart:common:annotation":{font:{color:"#f5f6f7"},border:{color:"#414152"},color:"#17171f"},chart:{commonPaneSettings:{border:{color:"#343840"}},commonAxisSettings:{breakStyle:{color:"#575e6b"}}},funnel:{item:{border:{color:"#17171f"}}},sparkline:{pointColor:"#17171f",minColor:"#f0ad4e",maxColor:"#d9534f"},treeMap:{group:{color:"#343840",label:{font:{color:"#fff"}}}},rangeSelector:{shutter:{color:"#17171f"},scale:{breakStyle:{color:"#575e6b"},tick:{opacity:.2}},selectedRangeColor:"#9c63ff",sliderMarker:{color:"#9c63ff",font:{color:"#fff"}},sliderHandle:{color:"#9c63ff",opacity:.5}},bullet:{color:"#9c63ff"},gauge:{valueIndicators:{rangebar:{color:"#9c63ff"},textcloud:{color:"#9c63ff"}}},sankey:{link:{border:{color:"#17171f"}},node:{border:{color:"#17171f"}}}},"generic.dark"),r("generic.darkviolet.compact","generic.darkviolet")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias;o({name:"generic.greenmist",defaultPalette:"Green Mist",backgroundColor:"#f5f5f5",primaryTitleColor:"#28484f",secondaryTitleColor:"#7eb2be",gridColor:"#dedede",axisColor:"#657c80",export:{backgroundColor:"#f5f5f5",font:{color:"#28484f"},button:{default:{color:"#28484f",borderColor:"#a2b4b8",backgroundColor:"#f5f5f5"},hover:{color:"#28484f",borderColor:"#7f989e",backgroundColor:"rgba(222, 222, 222, 0.4)"},focus:{color:"#28484f",borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.4)"},active:{color:"#28484f",borderColor:"#5f777c",backgroundColor:"rgba(222, 222, 222, 0.8)"}}},legend:{font:{color:"#657c80"}},tooltip:{color:"#fff",border:{color:"#dedede"},font:{color:"#28484f"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#dedede"}}}},"chart:common:annotation":{color:"#fff",border:{color:"#dedede"},font:{color:"#28484f"}},chart:{commonPaneSettings:{border:{color:"#dedede"}},commonAxisSettings:{breakStyle:{color:"#c1c1c1"}}},funnel:{item:{border:{color:"#f5f5f5"}}},sparkline:{pointColor:"#f5f5f5",minColor:"#ffc852",maxColor:"#f74a5e"},treeMap:{group:{color:"#dedede",label:{font:{color:"#7eb2be"}}}},rangeSelector:{shutter:{color:"#f5f5f5"},scale:{breakStyle:{color:"#c1c1c1"},tick:{opacity:.12}},selectedRangeColor:"#3cbab2",sliderMarker:{color:"#3cbab2"},sliderHandle:{color:"#3cbab2",opacity:.5}},bullet:{color:"#3cbab2"},gauge:{valueIndicators:{rangebar:{color:"#3cbab2"},textcloud:{color:"#3cbab2"}}}},"generic.light"),r("generic.greenmist.compact","generic.greenmist")},function(t,e,n){"use strict";var i=n(82),o=i.registerTheme,r=i.registerThemeAlias,a="'Roboto', 'RobotoFallback', 'Helvetica', 'Arial', sans-serif",s="#ffffff";function l(t,e,n){o({name:"material."+t+"."+e,rangeSelector:{selectedRangeColor:n,sliderMarker:{color:n},sliderHandle:{color:n}},map:{"layer:marker:dot":{color:n},"layer:marker:bubble":{color:n},legend:{markerColor:n}},bullet:{color:n},gauge:{valueIndicators:{rangebar:{color:n},textcloud:{color:n}}}},"material."+e)}o({name:"material",defaultPalette:"Material",font:{family:a},title:{margin:{top:20,bottom:20,left:0,right:0},font:{size:20,family:a,weight:500},horizontalAlignment:"left",subtitle:{font:{size:14},horizontalAlignment:"left"}},tooltip:{shadow:{opacity:0},border:{visible:!1},paddingLeftRight:8,paddingTopBottom:6,arrowLength:0,location:"edge",color:"#616161",font:{color:s},cornerRadius:4},chart:{commonAxisSettings:{minorTick:{opacity:.5},label:{font:{size:11}}},commonAnnotationSettings:{font:{color:s},border:{color:"#616161"},color:"#616161",arrowLength:14,arrowWidth:0,shadow:{opacity:.08,offsetY:4,blur:8},cornerRadius:4}},pie:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},polar:{commonAxisSettings:{minorTick:{opacity:.5}},title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},funnel:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},gauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},barGauge:{title:{horizontalAlignment:"center",subtitle:{horizontalAlignment:"center"}}},rangeSelector:{sliderHandle:{opacity:.5}},treeMap:{group:{label:{font:{weight:500}}}}},"generic.light"),o({name:"material.light",gridColor:"#e0e0e0",axisColor:"rgba(0,0,0,0.54)",primaryTitleColor:"rgba(0,0,0,0.87)",legend:{font:{color:"rgba(0,0,0,0.54)"}},chart:{scrollBar:{color:"#bfbfbf",opacity:.7}},gauge:{rangeContainer:{backgroundColor:"rgba(0,0,0,0.2)"}},barGauge:{backgroundColor:"#efefef"}},"material"),o({name:"material.dark",gridColor:"#515159",backgroundColor:"#363640",axisColor:"rgba(255,255,255,0.54)",font:{color:"rgba(255,255,255,0.54)"},primaryTitleColor:"rgba(255,255,255,0.87)",secondaryTitleColor:"rgba(255,255,255,0.87)",tooltip:{color:"#000"},export:{backgroundColor:"#363640",font:{color:"#dbdbdb"},button:{default:{color:"#dedede",borderColor:"#4d4d4d",backgroundColor:"#363640"},hover:{color:"#dedede",borderColor:"#6c6c6c",backgroundColor:"#3f3f4b"},focus:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"},active:{color:"#dedede",borderColor:"#8d8d8d",backgroundColor:"#494956"}},shadowColor:"#292929"},"chart:common":{commonSeriesSettings:{label:{border:{color:"#494949"}},valueErrorBar:{color:s}}},"chart:common:axis":{constantLineStyle:{color:s}},"chart:common:annotation":{border:{color:"#000"},color:"#000"},chart:{commonPaneSettings:{border:{color:"#494949"}},commonAxisSettings:{breakStyle:{color:"#818181"}},zoomAndPan:{dragBoxStyle:{color:s}}},gauge:{rangeContainer:{backgroundColor:"#b5b5b5"},valueIndicators:{_default:{color:"#b5b5b5"},rangebar:{color:"#84788b"},twocolorneedle:{secondColor:"#ba544d"},trianglemarker:{color:"#b7918f"},textcloud:{color:"#ba544d"}}},barGauge:{backgroundColor:"#3c3c3c"},rangeSelector:{scale:{tick:{color:s,opacity:.32},minorTick:{color:s,opacity:.1},breakStyle:{color:"#818181"}},selectedRangeColor:"#b5b5b5",sliderMarker:{color:"#b5b5b5",font:{color:"#363640"}},sliderHandle:{color:s,opacity:.2},shutter:{color:s,opacity:.1}},map:{background:{borderColor:"#3f3f3f"},layer:{label:{stroke:"#000000",font:{color:s}}},"layer:area":{borderColor:"#363640",color:"#686868",hoveredBorderColor:s,selectedBorderColor:s},"layer:line":{color:"#c77244",hoveredColor:"#ff5d04",selectedColor:"#ff784f"},"layer:marker:bubble":{hoveredBorderColor:s,selectedBorderColor:s},"layer:marker:pie":{hoveredBorderColor:s,selectedBorderColor:s},legend:{border:{color:"#3f3f3f"},font:{color:s}},controlBar:{borderColor:"#c7c7c7",color:"#363640"}},treeMap:{group:{color:"#4c4c4c",label:{font:{color:"#a3a3a3"}}}},sparkline:{lineColor:"#c7c7c7",firstLastColor:"#c7c7c7",barPositiveColor:"#b8b8b8",barNegativeColor:"#8e8e8e",winColor:"#b8b8b8",lossColor:"#8e8e8e",pointColor:"#363640"},bullet:{targetColor:"#8e8e8e"},funnel:{item:{border:{color:"#363640"}}},sankey:{label:{font:{color:s}}}},"material");var u={blue:"#03a9f4",lime:"#cddc39",orange:"#ff5722",purple:"#9c27b0",teal:"#009688"};for(var c in u)if(Object.prototype.hasOwnProperty.call(u,c)){var d=u[c];l(c,"light",d),l(c,"dark",d),r("material.".concat(c,".light.compact"),"material.".concat(c,".light")),r("material.".concat(c,".dark.compact"),"material.".concat(c,".dark"))}},function(t,e,n){"use strict";n(82).registerTheme({name:"ios7.default",backgroundColor:"#ffffff",primaryTitleColor:"#000000",secondaryTitleColor:"#767676",gridColor:"#ececec",axisColor:"#767676",legend:{font:{color:"#000000"}},tooltip:{font:{color:"#767676"}},"chart:common":{commonSeriesSettings:{label:{border:{color:"#d3d3d3"}}}},chart:{commonPaneSettings:{border:{color:"#d3d3d3"}}},rangeSelector:{scale:{tick:{color:"#000000",opacity:.1},minorTick:{color:"#000000",opacity:.03}}},treeMap:{group:{label:{font:{color:"#767676"}}}}},"generic.light")},function(t,e,n){"use strict";var i=n(211),o=n(38);t.exports=i(o.ERROR_MESSAGES,{E2001:"Invalid data source",E2002:"Axis type and data type are incompatible",E2003:'The "{0}" data source field contains data of unsupported type',E2004:'The "{0}" data source field is inconsistent',E2005:'The value field "{0}" is absent in the data source or all its values are negative',E2006:"A cycle is detected in provided data",E2007:'The value field "{0}" is absent in the data source',E2008:'The value field "{0}" must be a string',E2009:'The value field "{0}" must be a positive numeric value',E2101:"Unknown series type: {0}",E2102:"Ambiguity occurred between two value axes with the same name",E2103:'The "{0}" option is given an invalid value. Assign a function instead',E2104:"Invalid logarithm base",E2105:'Invalid value of a "{0}"',E2106:"Invalid visible range",E2202:"Invalid {0} scale value",E2203:"The range you are trying to set is invalid",W2002:"The {0} series cannot be drawn because the {1} data field is missing",W2003:"Tick interval is too small",W2101:'The "{0}" pane does not exist; the last pane is used by default',W2102:'A value axis with the "{0}" name was created automatically',W2103:"The chart title was hidden due to the container size",W2104:"The legend was hidden due to the container size",W2105:'The title of the "{0}" axis was hidden due to the container size',W2106:'The labels of the "{0}" axis were hidden due to the container size',W2107:"The export menu was hidden due to the container size",W2108:"The browser does not support exporting images to {0} format.",W2301:"Invalid value range"})},function(t,e,n){"use strict";var i=n(184),o=function(){},r={easeOutCubic:function(t,e,n){return 1===t?n:(1-Math.pow(1-t,3))*(n-e)+ +e},linear:function(t,e,n){return 1===t?n:t*(n-e)+ +e}};e.easingFunctions=r;var a={segments:function(t,e,n,i,o){var r,a,s,l,u=e.from,c=e.to,d=[];for(s=0;s<u.length;s++){if(a=[(r=u[s])[0]],r.length>1)for(l=1;l<r.length;l++)a.push(i(n,r[l],c[s][l]));d.push(a)}o.segments=e.end&&1===n?e.end:d,t.attr({segments:d})},arc:function(t,e,n,i){var o=e.from,r=e.to,a={};for(var s in o)a[s]=i(n,o[s],r[s]);t.attr(a)},transform:function(t,e,n,i,o){var r=e.from,a=e.to,s={};for(var l in r)s[l]=o[l]=i(n,r[l],a[l]);t.attr(s)},base:function(t,e,n,i,o,r){var a={};a[r]=o[r]=i(n,e.from,e.to),t.attr(a)},_:o,complete:function(t,e){t.attr(e)}};function s(t){var e,n=this._animateStep;for(e in this._progress=this._calcProgress(t),this.params){(n[e]||n.base)(this.element,this.params[e],this._progress,this._easing,this._currentParams,e)}return this.options.step&&this.options.step(this._easing(this._progress,0,1),this._progress),1!==this._progress||this.stop()}function l(t){return t-this._startTime>=this.delay&&(this.tick=s),!0}function u(t){return this._startTime=t,this.tick=this.delay?l:s,!0}function c(t,e,n){this._progress=0,this.element=t,this.params=e,this.options=n,this.duration=n.partitionDuration?n.duration*n.partitionDuration:n.duration,this.delay=n.delay&&n.duration*n.delay||0,this._animateStep=n.animateStep||a,this._easing=r[n.easing]||r.easeOutCubic,this._currentParams={},this.tick=u}function d(t){this._animationCount=0,this._timerId=null,this._animations={},this.element=t}c.prototype={_calcProgress:function(t){return Math.min(1,(t-this.delay-this._startTime)/this.duration)},stop:function(t){var e=this.options,n=this._animateStep;this.stop=this.tick=o,n.complete&&n.complete(this.element,this._currentParams),e.complete&&!t&&e.complete()}},e.AnimationController=d,d.prototype={_loop:function(){var t,e=this,n=e._animations,o=0,r=(new Date).getTime(),a=e._endAnimation;for(t in n)n[t].tick(r)||delete n[t],o++;if(0===o)return e.stop(),void(e._endAnimationTimer=a&&setTimeout((function(){0===e._animationCount&&(a(),e._endAnimation=null)})));e._timerId=i.requestAnimationFrame.call(null,(function(){e._loop()}),e.element)},addAnimation:function(t){var e=this;e._animations[e._animationCount++]=t,clearTimeout(e._endAnimationTimer),e._timerId||(clearTimeout(e._startDelay),e._startDelay=setTimeout((function(){e._timerId=1,e._loop()}),0))},animateElement:function(t,e,n){t&&e&&n&&(t.animation&&t.animation.stop(),this.addAnimation(t.animation=new c(t,e,n)))},onEndAnimation:function(t){this._animationCount?this._endAnimation=t:t()},dispose:function(){this.stop(),this.element=null},stop:function(){this._animations={},this._animationCount=0,i.cancelAnimationFrame(this._timerId),clearTimeout(this._startDelay),clearTimeout(this._endAnimationTimer),this._timerId=null},lock:function(){var t,e,n,i=this._animations;for(t in i)e=i[t].options.unstoppable,n=n||e,e||(i[t].stop(!0),delete i[t]);!n&&this.stop()}},e.animationSvgStep=a},function(t,e,n){"use strict";var i=n(13).normalizeEnum,o=Math.min,r=Math.max,a=Math.round,s={left:0,center:1,right:2},l={top:0,center:1,bottom:2},u={horizontal:0,vertical:1},c={};function d(t,e,n){var o=i(t);return o in e?e[o]:n}function h(t){var e,n=d(t.side,u,1),i=[d(t.horizontalAlignment,s,1),d(t.verticalAlignment,l,0)];return{side:n,primary:(e=i[n],e<2?0:2),secondary:i[1-n],weak:t.weak,priority:t.priority||0,header:t.header,position:t.position}}function f(t,e){return(t>0?-1:1)*e}function p(t,e,n){var i=t.side,o=t.element.measure([e[2]-e[0],e[3]-e[1]]),r="indside"===t.position?0:n[i],a=o[i]<e[2+i]-e[i]-r;return a&&("inside"!==t.position&&(e[t.primary+i]+=f(t.primary,o[i])),t.size=o),a}function m(t,e,n){var i,o,r,s,l=t.side,u=1-l,d=[],h=(i=t.secondary,o=n[u],r=n[2+u],s=t.size[u],c[i](o,r,s));return d[l]=a(d[2+l]=e[t.primary+l]+("inside"===t.position?f(t.primary,t.size[l]):0)),d[t.primary+l]=a(e[t.primary+l]-f(t.primary,t.size[l])),"inside"!==t.position&&(e[t.primary+l]=d[t.primary+l]),d[u]=a(h[0]),d[2+u]=a(h[1]),d}function g(t,e,n,i,o,r){var a=m(t,e,n),s=m(t,i,i);o[t.side]>0?(o[t.side]-=t.size[t.side],r[t.primary+t.side]=a[t.primary+t.side],t.element.freeSpace()):t.element.move(a,s)}function _(){this._targets=[]}function v(t,e){var n=e.slice(),i=m(t,n,n);return i[t.side]=e[t.side],i[2+t.side]=e[2+t.side],i}function y(t,e){var n=t.side,i=t.primary,o=t.secondary;return{side:n,primary:i,secondary:o,priority:0,element:{measure:function(o){var r=o.slice(),a=e.element.measure(o.slice());o[i]-=a[i];var s=t.element.measure(o.slice());return r[n]=a[n]=s[n]=Math.max(s[n],a[n]),e.size=a,t.size=s,r},move:function(n,i){if(i[2]-i[0]<t.size[0]+e.size[0]-2)this.freeSpace();else{var o=v(e,i);i[2+e.primary]=o[e.primary];var r=v(t,i);i[2+e.primary]<n[2+e.primary]&&t.size[t.primary]>n[2+t.primary]-n[t.primary]&&(n[2+e.primary]=i[2+e.primary]);var a=v(t,n);a[2+e.primary]>i[2+e.primary]&&(n[2+e.primary]=i[2+e.primary],a=v(t,n)),e.element.move(o),t.element.move(a,r)}},freeSpace:function(){t.element.freeSpace(),e.element.freeSpace()}}}}c[0]=function(t,e,n){return[t,o(e,t+n)]},c[1]=function(t,e,n){return[r(t,(t+e-n)/2),o(e,(t+e+n)/2)]},c[2]=function(t,e,n){return[r(t,e-n),e]},_.prototype={constructor:_,dispose:function(){this._targets=null},add:function(t){this._targets.push(t)},forward:function(t,e){var n,i=t.slice(),o=function(t){var e,n,i=t.length,o=[];for(e=0;e<i;++e)(n=t[e].layoutOptions())&&((n=h(n)).element=t[e],o.push(n));return o.sort((function(t,e){return e.side-t.side||t.priority-e.priority})),o=function(t){var e,n=t.filter((function(t){return!0===t.weak}))[0];n&&(e=t.filter((function(t){return n.primary===t.primary&&t.side===n.side&&t!==n}))[0]);if(n&&e)return[y(e,n)].concat(t.filter((function(t){return!(t===e||t===n)})));return t}(o)}(this._targets),r=o.length,a=[];for(n=0;n<r;++n)p(o[n],i,e)?a.push(o[n]):o[n].element.freeSpace();return this._cache=a.reverse(),i},backward:function(t,e){var n,i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[0,0],r=t.slice(),a=t.slice(),s=this._cache,l=0,u=s.length;for(i=0;i<u;++i)(n=s[i]).side!==l&&(r=t.slice()),g(n,r,e,a,o,t),l=n.side;return o}},t.exports=_},function(t,e,n){"use strict";var i=n(0).extend,o=n(273).BaseThemeManager.inherit({ctor:function(t){this.callBase.apply(this,arguments),this._subTheme=t.subTheme},_initializeTheme:function(){var t,e=this;e._subTheme&&(t=i(!0,{},e._theme[e._subTheme],e._theme),i(!0,e._theme,t)),e.callBase.apply(e,arguments)}});t.exports={ThemeManager:o}},function(t,e,n){"use strict";var i=n(6),o=n(21),r=n(15),a=n(154),s=n(77).add,l=n(11).addNamespace,u=n(28),c="gauge-tooltip",d=o.inherit({ctor:function(t){var e=this;e._element=t.renderer.g().attr({class:"dxg-tracker",stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).linkOn(t.container,{name:"tracker",after:"peripheral"}),e._showTooltipCallback=function(){var t=e._tooltipEvent.target,n=t["gauge-data-target"],i=t["gauge-data-info"];e._targetEvent=null,e._tooltipTarget!==t&&e._callbacks["tooltip-show"](n,i)&&(e._tooltipTarget=t)},e._hideTooltipCallback=function(){e._hideTooltipTimeout=null,e._targetEvent=null,e._tooltipTarget&&(e._callbacks["tooltip-hide"](),e._tooltipTarget=null)},e._dispose=function(){clearTimeout(e._hideTooltipTimeout),e._showTooltipCallback=e._hideTooltipCallback=e._dispose=null}},dispose:function(){return this._dispose(),this.deactivate(),this._element.off("."+c),this._element.linkOff(),this._element=this._context=this._callbacks=null,this},activate:function(){return this._element.linkAppend(),this},deactivate:function(){return this._element.linkRemove().clear(),this},attach:function(t,e,n){return t.data({"gauge-data-target":e,"gauge-data-info":n}).append(this._element),this},detach:function(t){return t.remove(),this},setTooltipState:function(t){if(this._element.off("."+c),t){var e={tracker:this};this._element.on(l([u.move],c),e,f).on(l([u.out],c),e,p).on(l([u.down],c),e,g).on(l([u.up],c),e,_).on(l([a.name],c),e,m)}return this},setCallbacks:function(t){return this._callbacks=t,this},_showTooltip:function(t){clearTimeout(this._hideTooltipTimeout),this._hideTooltipTimeout=null,this._tooltipTarget!==t.target&&(this._tooltipEvent=t,this._showTooltipCallback())},_hideTooltip:function(t){clearTimeout(this._hideTooltipTimeout),t?this._hideTooltipTimeout=setTimeout(this._hideTooltipCallback,t):this._hideTooltipCallback()}}),h=null;function f(t){var e=t.data.tracker;e._x=t.pageX,e._y=t.pageY,e._showTooltip(t)}function p(t){t.data.tracker._hideTooltip(100)}function m(t){t.data.tracker._hideTooltip()}function g(t){(h=t.data.tracker)._touch=!0,f(t)}function _(){h._touch=!1}function v(t){var e=h;e&&!e._touch&&(e._hideTooltip(100),h=null)}s((function(){i.subscribeGlobal(r.getDocument(),l([u.down],c),v)})),t.exports=d},function(t,e,n){"use strict";t.exports={"af-NA":1,agq:1,ak:1,ar:6,"ar-EH":1,"ar-ER":1,"ar-KM":1,"ar-LB":1,"ar-MA":1,"ar-MR":1,"ar-PS":1,"ar-SO":1,"ar-SS":1,"ar-TD":1,"ar-TN":1,asa:1,ast:1,az:1,"az-Cyrl":1,bas:1,be:1,bem:1,bez:1,bg:1,bm:1,br:1,bs:1,"bs-Cyrl":1,ca:1,ce:1,cgg:1,ckb:6,cs:1,cu:1,cy:1,da:1,de:1,dje:1,dsb:1,dua:1,dyo:1,ee:1,el:1,"en-001":1,"en-AE":6,"en-BI":1,"en-MP":1,"en-SD":6,eo:1,es:1,et:1,eu:1,ewo:1,fa:6,ff:1,fi:1,fo:1,fr:1,"fr-DJ":6,"fr-DZ":6,"fr-SY":6,fur:1,fy:1,ga:1,gd:1,gl:1,gsw:1,gv:1,ha:1,hr:1,hsb:1,hu:1,hy:1,ia:1,ig:1,is:1,it:1,jgo:1,jmc:1,ka:1,kab:6,kde:1,kea:1,khq:1,kk:1,kkj:1,kl:1,"ko-KP":1,ksb:1,ksf:1,ksh:1,ku:1,kw:1,ky:1,lag:1,lb:1,lg:1,ln:1,lrc:6,lt:1,lu:1,lv:1,"mas-TZ":1,mfe:1,mg:1,mgo:1,mi:1,mk:1,mn:1,ms:1,mua:1,mzn:6,naq:1,nb:1,nds:1,nl:1,nmg:1,nn:1,nnh:1,nus:1,nyn:1,os:1,pl:1,prg:1,ps:6,"pt-AO":1,"pt-CH":1,"pt-CV":1,"pt-GQ":1,"pt-GW":1,"pt-LU":1,"pt-ST":1,"pt-TL":1,"qu-BO":1,"qu-EC":1,rm:1,rn:1,ro:1,rof:1,ru:1,rw:1,rwk:1,sah:1,sbp:1,se:1,ses:1,sg:1,shi:1,"shi-Latn":1,si:1,sk:1,sl:1,smn:1,so:1,"so-DJ":6,sq:1,sr:1,"sr-Latn":1,sv:1,sw:1,"ta-LK":1,"ta-MY":1,teo:1,tg:1,"ti-ER":1,tk:1,to:1,tr:1,tt:1,twq:1,tzm:1,uk:1,uz:1,"uz-Arab":6,"uz-Cyrl":1,vai:1,"vai-Latn":1,vi:1,vo:1,vun:1,wae:1,wo:1,xog:1,yav:1,yi:1,yo:1,zgh:1}},function(t,e,n){"use strict";var i=n(0),o=n(193);function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var a=/[\u200E\u200F]/g,s=function(t){return function(e){if(!t.timeZoneName){var n=e.getFullYear(),o=String(n).length<3,r=o?n+400:n,a=new Date(Date.UTC(r,e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()));return o&&a.setFullYear(n),u(a,(0,i.extend)({timeZone:"UTC"},t))}return u(e,t)}},l={};function u(t,e){return function(t){var e=(0,o.locale)()+"/"+JSON.stringify(t);return l[e]||(l[e]=new Intl.DateTimeFormat((0,o.locale)(),t).format),l[e]}(e)(t).replace(a,"")}var c=function(t){return new Intl.NumberFormat((0,o.locale)()).format(t)},d=function(){var t={};return function(e){if(!(e in t)){if("0"===c(0))return t[e]=!1,!1;t[e]={};for(var n=0;n<10;++n)t[e][c(n)]=n}return t[e]}}(),h=function(t){var e=d((0,o.locale)());return e?t.split("").map((function(t){return t in e?String(e[t]):t})).join(""):t},f=function(t){return t.replace(/(\D)0+(\d)/g,"$1$2")},p=function(t){return t.replace("d\u2019","de ")},m={day:{day:"numeric"},dayofweek:{weekday:"long"},longdate:{weekday:"long",year:"numeric",month:"long",day:"numeric"},longdatelongtime:{weekday:"long",year:"numeric",month:"long",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},longtime:{hour:"numeric",minute:"numeric",second:"numeric"},month:{month:"long"},monthandday:{month:"long",day:"numeric"},monthandyear:{year:"numeric",month:"long"},shortdate:{},shorttime:{hour:"numeric",minute:"numeric"},shortyear:{year:"2-digit"},year:{year:"numeric"}};Object.defineProperty(m,"shortdateshorttime",{get:function(){var t=Intl.DateTimeFormat((0,o.locale)()).resolvedOptions();return{year:t.year,month:t.month,day:t.day,hour:"numeric",minute:"numeric"}}});var g=function(t){return"string"===typeof t&&m[t.toLowerCase()]},_={standalone:function(t,e){var n=new Date(1999,t,13,1);return s({month:e})(n)},format:function(t,e){var n=new Date(0,t,13,1),i=p(s({day:"numeric",month:e})(n)).split(" ").filter((function(t){return t.indexOf("13")<0}));return 1===i.length?i[0]:2===i.length?i[0].length>i[1].length?i[0]:i[1]:_.standalone(t,e)}};t.exports={engine:function(){return"intl"},getMonthNames:function(t,e){var n={wide:"long",abbreviated:"short",narrow:"narrow"}[t||"wide"];return e="format"===e?e:"standalone",Array.apply(null,new Array(12)).map((function(t,i){return _[e](i,n)}))},getDayNames:function(t){return function(t){return Array.apply(null,new Array(7)).map((function(e,n){return s({weekday:t})(new Date(0,0,n))}))}({wide:"long",abbreviated:"short",short:"narrow",narrow:"narrow"}[t||"wide"])},getPeriodNames:function(){var t=s({hour:"numeric",hour12:!0});return[1,13].map((function(e){var n=c(1),i=t(new Date(0,0,1,e)).split(n);return 2!==i.length?"":(i[0].length>i[1].length?i[0]:i[1]).trim()}))},format:function(t,e){if(t){if(!e)return t;"function"===typeof e||e.formatter||(e=e.type||e);var n=g(e);if(n)return s(n)(t);var i=r(e);return e.formatter||"function"===i||"string"===i?this.callBase.apply(this,arguments):s(e)(t)}},parse:function(t,e){var n,i=this;return e&&!e.parser&&"string"===typeof t&&(t=p(t),n=function(t){return p(i.format(t,e))}),this.callBase(t,n||e)},_parseDateBySimpleFormat:function(t,e){var n=this;t=h(t);var i=this.getFormatParts(e),o=t.split(/\D+/).filter((function(t){return t.length>0}));if(i.length===o.length){var r=this._generateDateArgs(i,o),a=function(i){var o,a,s=function(t,e){var n=e?12:0;return new Date(t.year,t.month,t.day,(t.hours+n)%24,t.minutes,t.seconds)}(r,i);if(o=h(n.format(s,e)),a=t,f(o)===f(a))return s};return a(!1)||a(!0)}},_generateDateArgs:function(t,e){var n=new Date,i={year:n.getFullYear(),month:n.getMonth(),day:n.getDate(),hours:0,minutes:0,seconds:0};return t.forEach((function(t,n){var o=e[n],r=parseInt(o,10);"month"===t&&(r-=1),i[t]=r})),i},formatUsesMonthName:function(t){return"object"!==r(t)||t.type||t.format?this.callBase.apply(this,arguments):"long"===t.month},formatUsesDayName:function(t){return"object"!==r(t)||t.type||t.format?this.callBase.apply(this,arguments):"long"===t.weekday},getFormatParts:function(t){if("string"===typeof t)return this.callBase(t);var e=(0,i.extend)({},m[t.toLowerCase()]),n=new Date(2001,2,4,5,6,7),o=s(e)(n);o=h(o);return[{name:"year",value:1},{name:"month",value:3},{name:"day",value:4},{name:"hours",value:5},{name:"minutes",value:6},{name:"seconds",value:7}].map((function(t){return{name:t.name,index:o.indexOf(t.value)}})).filter((function(t){return t.index>-1})).sort((function(t,e){return t.index-e.index})).map((function(t){return t.name}))}}},function(t,e,n){"use strict";var i=p(n(21)),o=n(10),r=n(2),a=n(0),s=p(n(23)),l=p(n(55)),u=p(n(387)),c=p(n(224)),d=p(n(390)),h=p(n(715)),f=n(7);function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var g='<?xml version="1.0" encoding="utf-8"?>',_="http://schemas.openxmlformats.org",v={boolean:"b",date:"d",number:"n",string:"s"},y=Date.UTC(1899,11,30),b={quarter:"shortDate",quarterAndYear:"shortDate",minute:"longTime",millisecond:"longTime"},w=i.default.inherit({_getXMLTag:function(t,e,n){var i,o,a="<"+t,s=e.length;for(i=0;i<s;i++)void 0!==(o=e[i]).value&&(a=a+" "+o.name+'="'+o.value+'"');return(0,r.isDefined)(n)?a+">"+n+"</"+t+">":a+" />"},_convertToExcelCellRef:function(t,e){for(var n,i,o="";!i;)n=65+(e>=26?e%26:Math.ceil(e)),o=String.fromCharCode(n)+o,e>=26?e=Math.floor(e/26)-1:i=!0;return o+(t+1)},_convertToExcelCellRefAndTrackMaxIndex:function(t,e){return this._maxRowIndex<Number(t)&&(this._maxRowIndex=Number(t)),this._maxColumnIndex<Number(e)&&(this._maxColumnIndex=Number(e)),this._convertToExcelCellRef(t,e)},_getDataType:function(t){return v[t]||v.string},_tryGetExcelCellDataType:function(t){if((0,r.isDefined)(t)){if("number"===typeof t)return isFinite(t)?v.number:v.string;if((0,r.isString)(t))return v.string;if((0,r.isDate)(t))return v.number;if((0,r.isBoolean)(t))return v.boolean}},_formatObjectConverter:function(t,e){var n={format:t,precision:t&&t.precision,dataType:e};return(0,r.isObject)(t)?(0,a.extend)(n,t,{format:t.formatter||t.type,currency:t.currency}):n},_tryConvertToExcelNumberFormat:function(t,e){var n=this._formatObjectConverter(t,e);t=n.format;var i=n.currency;return e=n.dataType,(0,r.isDefined)(t)&&"date"===e&&(t=b[t&&t.type||t]||t),d.default.convertFormat(t,n.precision,e,i)},_appendString:function(t){if((0,r.isDefined)(t)&&(t=String(t)).length)return t=l.default.encodeHtml(t),void 0===this._stringHash[t]&&(this._stringHash[t]=this._stringArray.length,this._stringArray.push(t)),this._stringHash[t]},_tryGetExcelDateValue:function(t){var e;if((0,r.isDate)(t))return(e=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-y)/864e5))<60&&e--,e+(3600*t.getHours()+60*t.getMinutes()+t.getSeconds())/86400},_prepareValue:function(t,e){var n,i=this._dataProvider,o=(i.getCellData(t,e)||{}).cellSourceData,a=(i.getCellData(t,e)||{}).value,s=this._getDataType(i.getCellType(t,e));switch(s!==v.date||(0,r.isDate)(a)||(s=v.string),s){case v.string:n=a,a=this._appendString(a);break;case v.date:n=a,a=this._tryGetExcelDateValue(a),s=v.number}return{value:a,type:s,sourceValue:n,cellSourceData:o}},_callCustomizeExcelCell:function(t){var e=t.dataProvider,n=t.value,i=t.style,o=t.sourceData,a=h.default.copyCellFormat(i),s={value:n,numberFormat:a.numberFormat,clearStyle:function(){this.horizontalAlignment=null,this.verticalAlignment=null,this.wrapTextEnabled=null,this.font=null,this.numberFormat=null}};(0,r.isDefined)(a)&&((0,r.isDefined)(a.alignment)&&(s.horizontalAlignment=a.alignment.horizontal,s.verticalAlignment=a.alignment.vertical,s.wrapTextEnabled=a.alignment.wrapText),s.backgroundColor=a.backgroundColor,s.fillPatternType=a.fillPatternType,s.fillPatternColor=a.fillPatternColor,s.font=a.font),e.customizeExcelCell(s,o);var l=a||{};return l.font=s.font,l.alignment=l.alignment||{},l.alignment.horizontal=s.horizontalAlignment,l.alignment.vertical=s.verticalAlignment,l.alignment.wrapText=s.wrapTextEnabled,l.backgroundColor=s.backgroundColor,l.fillPatternType=s.fillPatternType,l.fillPatternColor=s.fillPatternColor,l.numberFormat=s.numberFormat,{value:s.value,style:l}},_getDataArray:function(){var t,e,n,i,o,a=[],s=this._dataProvider,l=s.getRowsCount(),u=s.getColumns();for(t=0;t<l;t++){for(n=[],o=u.length,e=0;e!==o;e++){i=this._prepareValue(t,e);var c=s.getStyleId(t,e),d=this._styleArrayIndexToCellStyleIdMap[c];if(s.hasCustomizeExcelCell&&s.hasCustomizeExcelCell()){var h=i.sourceValue||i.value,f=this._callCustomizeExcelCell({dataProvider:s,value:h,style:this._styleArray[c],sourceData:i.cellSourceData});if(f.value!==h){if(m(f.value)!==m(h)||"number"===typeof f.value&&!isFinite(f.value)){var p=this._tryGetExcelCellDataType(f.value);(0,r.isDefined)(p)&&(i.type=p)}switch(i.type){case v.string:i.value=this._appendString(f.value);break;case v.date:i.value=f.value;break;case v.number:var g=f.value,_=this._tryGetExcelDateValue(g);(0,r.isDefined)(_)&&(g=_),i.value=g;break;default:i.value=f.value}}d=this._excelFile.registerCellFormat(f.style)}n.push({style:d,value:i.value,type:i.type})}!this._needSheetPr&&s.getGroupLevel(t)>0&&(this._needSheetPr=!0),a.push(n)}return a},_calculateWidth:function(t){return(!(t=parseInt(t,10))||t<5)&&(t=100),Math.min(255,Math.floor((t-5)/7*100+.5)/100)},_prepareStyleData:function(){var t=this,e=this,n=e._dataProvider.getStyles();e._dataProvider.getColumns().forEach((function(t){e._colsArray.push(e._calculateWidth(t.width))}));var i=[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!1},{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor",bold:!0}];this._excelFile.registerFont(i[0]),this._excelFile.registerFont(i[1]),n.forEach((function(t){var n=e._tryConvertToExcelNumberFormat(t.format,t.dataType);(0,r.isDefined)(n)||(n=0),e._styleArray.push({font:i[Number(!!t.bold)],numberFormat:n,alignment:{vertical:"top",wrapText:!!t.wrapText,horizontal:t.alignment||"left"}})})),e._styleArrayIndexToCellStyleIdMap=e._styleArray.map((function(e){return t._excelFile.registerCellFormat(e)}))},_prepareCellData:function(){this._cellsArray=this._getDataArray()},_createXMLRelationships:function(t){return this._getXMLTag("Relationships",[{name:"xmlns",value:_+"/package/2006/relationships"}],t)},_createXMLRelationship:function(t,e,n){return this._getXMLTag("Relationship",[{name:"Id",value:"rId"+t},{name:"Type",value:_+"/officeDocument/2006/relationships/"+e},{name:"Target",value:n}])},_getWorkbookContent:function(){return g+this._getXMLTag("workbook",[{name:"xmlns:r",value:_+"/officeDocument/2006/relationships"},{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],'<bookViews><workbookView xWindow="0" yWindow="0" windowWidth="0" windowHeight="0"/></bookViews><sheets><sheet name="Sheet" sheetId="1" r:id="rId1" /></sheets><definedNames><definedName name="_xlnm.Print_Titles" localSheetId="0">Sheet!$1:$1</definedName><definedName name="_xlnm._FilterDatabase" hidden="0" localSheetId="0">Sheet!$A$1:$F$6332</definedName></definedNames>')},_getContentTypesContent:function(){return g+'<Types xmlns="'+_+'/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" /><Default Extension="xml" ContentType="application/xml" /><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" /><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml" /><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml" /><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" /></Types>'},_generateStylesXML:function(){var t=this._zip.folder("xl"),e="";e+=this._excelFile.generateNumberFormatsXml(),e+=this._excelFile.generateFontsXml(),e+=this._excelFile.generateFillsXml(),e+='<borders count="1"><border><left style="thin"><color rgb="FFD3D3D3"/></left><right style="thin"><color rgb="FFD3D3D3"/></right><top style="thin"><color rgb="FFD3D3D3"/></top><bottom style="thin"><color rgb="FFD3D3D3"/></bottom></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',e+=this._excelFile.generateCellFormatsXml(),e+=this._getXMLTag("cellStyles",[{name:"count",value:1}],this._getXMLTag("cellStyle",[{name:"name",value:"Normal"},{name:"xfId",value:0},{name:"builtinId",value:0}])),e=g+this._getXMLTag("styleSheet",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"}],e),t.file("styles.xml",e),this._styleArray=[]},_generateStringsXML:function(){var t,e=this._zip.folder("xl"),n=this._stringArray.length,i=g;for(t=0;t<n;t++)this._stringArray[t]=this._getXMLTag("si",[],this._getXMLTag("t",[],this._stringArray[t]));i+=this._getXMLTag("sst",[{name:"xmlns",value:_+"/spreadsheetml/2006/main"},{name:"count",value:this._stringArray.length},{name:"uniqueCount",value:this._stringArray.length}],this._stringArray.join("")),e.file("sharedStrings.xml",i),this._stringArray=[]},_getPaneXML:function(){var t=[{name:"activePane",value:"bottomLeft"},{name:"state",value:"frozen"}],e=this._dataProvider.getFrozenArea();return e.x||e.y?(e.x&&t.push({name:"xSplit",value:e.x}),e.y&&t.push({name:"ySplit",value:e.y}),t.push({name:"topLeftCell",value:this._convertToExcelCellRefAndTrackMaxIndex(e.y,e.x)}),this._getXMLTag("pane",t)):""},_getAutoFilterXML:function(t){return this._options.autoFilterEnabled?'<autoFilter ref="A'+this._dataProvider.getHeaderRowCount()+":"+t+'" />':""},_getIgnoredErrorsXML:function(t){return this._options.ignoreErrors?'<ignoredErrors><ignoredError sqref="A1:'+t+'" numberStoredAsText="1" /></ignoredErrors>':""},_generateWorksheetXML:function(){var t,e,n,i,o,a=[],s=this._cellsArray.length,l=this._colsArray.length,u="1:"+l,c=this._dataProvider.getHeaderRowCount?this._dataProvider.getHeaderRowCount():1,d=['<?xml version="1.0" encoding="UTF-8" standalone="yes"?><worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'];for(d.push(this._needSheetPr?'<sheetPr><outlinePr summaryBelow="0"/></sheetPr>':"<sheetPr/>"),d.push('<dimension ref="A1:C1"/>'),d.push("<sheetViews><sheetView "),d.push(this._rtlEnabled?'rightToLeft="1" ':""),d.push('tabSelected="1" workbookViewId="0">'),d.push(this._getPaneXML()),d.push("</sheetView></sheetViews>"),d.push('<sheetFormatPr defaultRowHeight="15"'),d.push(' outlineLevelRow="'+(this._dataProvider.getRowsCount()>0?this._dataProvider.getGroupLevel(0):0)+'"'),d.push(' x14ac:dyDescent="0.25"/>'),t=0;t<l;t++)this._colsArray[t]=this._getXMLTag("col",[{name:"width",value:this._colsArray[t]},{name:"min",value:Number(t)+1},{name:"max",value:Number(t)+1},{name:"customWidth",value:1}]);for(d.push(this._getXMLTag("cols",[],this._colsArray.join(""))+"<sheetData>"),e=0;e<s;e++){for(i=[],o=this._cellsArray[e].length,t=0;t<o;t++)e=Number(e),n=this._cellsArray[e][t],i.push(this._getXMLTag("c",[{name:"r",value:this._convertToExcelCellRefAndTrackMaxIndex(e,t)},{name:"s",value:n.style},{name:"t",value:n.type}],(0,r.isDefined)(n.value)?this._getXMLTag("v",[],n.value):null));a.push(this._getXMLTag("row",[{name:"r",value:Number(e)+1},{name:"spans",value:u},{name:"outlineLevel",value:e>=c?this._dataProvider.getGroupLevel(e):0},{name:"x14ac:dyDescent",value:"0.25"}],i.join(""))),this._cellsArray[e]=null,a.length>1e4&&(d.push(a.join("")),a=[])}d.push(a.join("")),a=[];var h=this._convertToExcelCellRef(this._maxRowIndex,this._maxColumnIndex);d.push("</sheetData>"+this._getAutoFilterXML(h)+this._generateMergingXML()+this._getIgnoredErrorsXML(h)+"</worksheet>"),this._zip.folder("xl").folder("worksheets").file("sheet1.xml",d.join("")),this._colsArray=[],this._cellsArray=[],d=[]},_generateMergingXML:function(){var t,e,n,i,o,a=(0,r.isDefined)(this._dataProvider.getHeaderRowCount)?this._dataProvider.getHeaderRowCount():this._dataProvider.getRowsCount(),s=this._dataProvider.getColumns().length,l=[],u=[],c="";for(i=0;i<a;i++)for(n=0;n!==s;n++)if(!(0,r.isDefined)(l[i])||!(0,r.isDefined)(l[i][n])){var d=this._dataProvider.getCellMerging(i,n);if(d.colspan||d.rowspan)for(u.push({start:this._convertToExcelCellRefAndTrackMaxIndex(i,n),end:this._convertToExcelCellRefAndTrackMaxIndex(i+(d.rowspan||0),n+(d.colspan||0))}),t=i;t<=i+d.rowspan;t++)for(e=n;e<=n+d.colspan;e++)(0,r.isDefined)(l[t])||(l[t]=[]),l[t][e]=!0}var h=u.length;for(o=0;o<h;o++)c+=this._getXMLTag("mergeCell",[{name:"ref",value:u[o].start+":"+u[o].end}]);return c.length?this._getXMLTag("mergeCells",[{name:"count",value:h}],c):""},_generateCommonXML:function(){var t=g+this._createXMLRelationships(this._createXMLRelationship(1,"officeDocument","xl/workbook.xml")),e=this._zip.folder("xl"),n=g;this._zip.folder("_rels").file(".rels",t);var i=this._createXMLRelationship(1,"worksheet","worksheets/sheet1.xml")+this._createXMLRelationship(2,"styles","styles.xml")+this._createXMLRelationship(3,"sharedStrings","sharedStrings.xml");n+=this._createXMLRelationships(i),e.folder("_rels").file("workbook.xml.rels",n),e.file("workbook.xml",this._getWorkbookContent()),this._zip.file("[Content_Types].xml",this._getContentTypesContent())},_generateContent:function(){this._prepareStyleData(),this._prepareCellData(),this._generateWorkXML(),this._generateCommonXML()},_generateWorkXML:function(){this._generateStylesXML(),this._generateStringsXML(),this._generateWorksheetXML()},ctor:function(t,e){this._rtlEnabled=e&&!!e.rtlEnabled,this._options=e,this._maxRowIndex=0,this._maxColumnIndex=0,this._stringArray=[],this._stringHash={},this._styleArray=[],this._colsArray=[],this._cellsArray=[],this._needSheetPr=!1,this._dataProvider=t,this._excelFile=new h.default,(0,r.isDefined)(w.JSZip)?this._zip=new w.JSZip:this._zip=null},_checkZipState:function(){if(!this._zip)throw s.default.Error("E1041","JSZip")},ready:function(){return this._dataProvider.ready()},getData:function(t){var e={type:t?"blob":"base64",compression:"DEFLATE",mimeType:c.default.MIME_TYPES.EXCEL},n=new f.Deferred;return this._checkZipState(),this._generateContent(),this._zip.generateAsync?this._zip.generateAsync(e).then(n.resolve):n.resolve(this._zip.generate(e)),n}});w.JSZip=u.default,e.ExcelCreator=w,e.getData=function(t,n){var i=new e.ExcelCreator(t,n);return i._checkZipState(),i.ready().then((function(){return i.getData((0,r.isFunction)((0,o.getWindow)().Blob))}))}},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=u(t),a=i[0],s=i[1],l=new r(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),c=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=o[t.charCodeAt(n)]<<18|o[t.charCodeAt(n+1)]<<12|o[t.charCodeAt(n+2)]<<6|o[t.charCodeAt(n+3)],l[c++]=e>>16&255,l[c++]=e>>8&255,l[c++]=255&e;2===s&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,l[c++]=255&e);1===s&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,l[c++]=e>>8&255,l[c++]=255&e);return l},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,r=[],a=0,s=n-o;a<s;a+=16383)r.push(c(t,a,a+16383>s?s:a+16383));1===o?(e=t[n-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return r.join("")};for(var i=[],o=[],r="undefined"!==typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)i[s]=a[s],o[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function c(t,e,n){for(var o,r,a=[],s=e;s<n;s+=3)o=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(i[(r=o)>>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,i,o){var r,a,s=8*o-i-1,l=(1<<s)-1,u=l>>1,c=-7,d=n?o-1:0,h=n?-1:1,f=t[e+d];for(d+=h,r=f&(1<<-c)-1,f>>=-c,c+=s;c>0;r=256*r+t[e+d],d+=h,c-=8);for(a=r&(1<<-c)-1,r>>=-c,c+=i;c>0;a=256*a+t[e+d],d+=h,c-=8);if(0===r)r=1-u;else{if(r===l)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,i),r-=u}return(f?-1:1)*a*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var a,s,l,u=8*r-o-1,c=(1<<u)-1,d=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:r-1,p=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-a))<1&&(a--,l*=2),(e+=a+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(e*l-1)*Math.pow(2,o),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;t[n+f]=255&s,f+=p,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;t[n+f]=255&a,f+=p,a/=256,u-=8);t[n+f-p]|=128*m}},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,o=1,r={},a=!1,s=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){c(t)}))}:function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"===typeof n.data&&0===n.data.indexOf(e)&&c(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),i=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){c(t.data)},i=function(e){t.port2.postMessage(e)}}():s&&"onreadystatechange"in s.createElement("script")?function(){var t=s.documentElement;i=function(e){var n=s.createElement("script");n.onreadystatechange=function(){c(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():i=function(t){setTimeout(c,0,t)},l.setImmediate=function(t){"function"!==typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var a={callback:t,args:e};return r[o]=a,i(o),o++},l.clearImmediate=u}function u(t){delete r[t]}function c(t){if(a)setTimeout(c,0,t);else{var e=r[t];if(e){a=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(void 0,n)}}(e)}finally{u(t),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof t?this:t:self)}).call(this,n(56),n(50))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(2),o=u(n(120)),r=u(n(716)),a=u(n(392)),s=u(n(394)),l=u(n(719));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._cellFormatTags=[],this._fillTags=[],this._fontTags=[],this._numberFormatTags=[],this._fillTags.push(a.default.tryCreateTag({patternFill:{patternType:"none"}}))}var e,n,u;return e=t,u=[{key:"copyCellFormat",value:function(t){return r.default.copy(t)}}],(n=[{key:"registerCellFormat",value:function(t){var e,n=r.default.tryCreateTag(t,{registerFill:this.registerFill.bind(this),registerFont:this.registerFont.bind(this),registerNumberFormat:this.registerNumberFormat.bind(this)});if((0,i.isDefined)(n)){for(var o=0;o<this._cellFormatTags.length;o++)if(r.default.areEqual(this._cellFormatTags[o],n)){e=o;break}void 0===e&&(e=this._cellFormatTags.push(n)-1)}return e}},{key:"generateCellFormatsXml",value:function(){var t=this._cellFormatTags.map((function(t){return r.default.toXml(t)}));return o.default.toXml("cellXfs",{count:t.length},t.join(""))}},{key:"registerFill",value:function(t){var e,n=a.default.tryCreateTag(t);if((0,i.isDefined)(n)){for(var o=0;o<this._fillTags.length;o++)if(a.default.areEqual(this._fillTags[o],n)){e=o;break}void 0===e&&(this._fillTags.length<2&&this._fillTags.push(a.default.tryCreateTag({patternFill:{patternType:"Gray125"}})),e=this._fillTags.push(n)-1)}return e}},{key:"generateFillsXml",value:function(){var t=this._fillTags.map((function(t){return a.default.toXml(t)}));return o.default.toXml("fills",{count:t.length},t.join(""))}},{key:"registerFont",value:function(t){var e,n=s.default.tryCreateTag(t);if((0,i.isDefined)(n)){for(var o=0;o<this._fontTags.length;o++)if(s.default.areEqual(this._fontTags[o],n)){e=o;break}void 0===e&&(e=this._fontTags.push(n)-1)}return e}},{key:"generateFontsXml",value:function(){var t=this._fontTags.map((function(t){return s.default.toXml(t)}));return o.default.toXml("fonts",{count:t.length},t.join(""))}},{key:"_convertNumberFormatIndexToId",value:function(t){return 165+t}},{key:"registerNumberFormat",value:function(t){var e,n=l.default.tryCreateTag(t);if((0,i.isDefined)(n)){for(var o=0;o<this._numberFormatTags.length;o++)if(l.default.areEqual(this._numberFormatTags[o],n)){e=this._numberFormatTags[o][l.default.ID_PROPERTY_NAME];break}void 0===e&&(n[l.default.ID_PROPERTY_NAME]=this._convertNumberFormatIndexToId(this._numberFormatTags.length),e=n[l.default.ID_PROPERTY_NAME],this._numberFormatTags.push(n))}return e}},{key:"generateNumberFormatsXml",value:function(){if(this._numberFormatTags.length>0){var t=this._numberFormatTags.map((function(t){return l.default.toXml(t)}));return o.default.toXml("numFmts",{count:t.length},t.join(""))}return""}}])&&c(e.prototype,n),u&&c(e,u),t}();e.default=d,t.exports=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=l(n(120)),r=l(n(717)),a=l(n(392)),s=l(n(394));function l(t){return t&&t.__esModule?t:{default:t}}var u={tryCreateTag:function(t,e){var n=null;if((0,i.isDefined)(t)){var o;o="number"===typeof t.numberFormat?t.numberFormat:e.registerNumberFormat(t.numberFormat);var s=t.fill;(0,i.isDefined)(s)||(s=a.default.tryCreateFillFromSimpleFormat(t)),n={numberFormatId:o,alignment:r.default.tryCreateTag(t.alignment),fontId:e.registerFont(t.font),fillId:e.registerFill(s)},u.isEmpty(n)&&(n=null)}return n},copy:function(t){var e;return null===t?e=null:(0,i.isDefined)(t)&&(e={},void 0!==t.numberFormat&&(e.numberFormat=t.numberFormat),void 0!==t.fill?e.fill=a.default.copy(t.fill):a.default.copySimpleFormat(t,e),void 0!==t.alignment&&(e.alignment=r.default.copy(t.alignment)),void 0!==t.font&&(e.font=s.default.copy(t.font))),e},areEqual:function(t,e){return u.isEmpty(t)&&u.isEmpty(e)||(0,i.isDefined)(t)&&(0,i.isDefined)(e)&&t.fontId===e.fontId&&t.numberFormatId===e.numberFormatId&&t.fillId===e.fillId&&r.default.areEqual(t.alignment,e.alignment)},isEmpty:function(t){return!(0,i.isDefined)(t)||!(0,i.isDefined)(t.fontId)&&!(0,i.isDefined)(t.numberFormatId)&&!(0,i.isDefined)(t.fillId)&&r.default.isEmpty(t.alignment)},toXml:function(t){var e,n=r.default.isEmpty(t.alignment);return(0,i.isDefined)(t.numberFormatId)&&(e=t.numberFormatId>0?1:0),o.default.toXml("xf",{xfId:0,applyAlignment:n?null:1,fontId:t.fontId,applyNumberFormat:e,fillId:t.fillId,numFmtId:t.numberFormatId},n?null:r.default.toXml(t.alignment))}};e.default=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(120),a=(i=r)&&i.__esModule?i:{default:i};var s={tryCreateTag:function(t){var e=null;return(0,o.isDefined)(t)&&(e={vertical:t.vertical,wrapText:t.wrapText,horizontal:t.horizontal},s.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,o.isDefined)(t)&&(e={},void 0!==t.horizontal&&(e.horizontal=t.horizontal),void 0!==t.vertical&&(e.vertical=t.vertical),void 0!==t.wrapText&&(e.wrapText=t.wrapText)),e},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,o.isDefined)(t)&&(0,o.isDefined)(e)&&t.vertical===e.vertical&&t.wrapText===e.wrapText&&t.horizontal===e.horizontal},isEmpty:function(t){return!(0,o.isDefined)(t)||!(0,o.isDefined)(t.vertical)&&!(0,o.isDefined)(t.wrapText)&&!(0,o.isDefined)(t.horizontal)},toXml:function(t){return a.default.toXml("alignment",{vertical:t.vertical,wrapText:(0,o.isDefined)(t.wrapText)?Number(t.wrapText):void 0,horizontal:t.horizontal})}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=a(n(120)),r=a(n(393));function a(t){return t&&t.__esModule?t:{default:t}}var s={tryCreateTag:function(t){var e=null;return(0,i.isDefined)(t)&&(e={patternType:t.patternType,backgroundColor:r.default.tryCreateTag(t.backgroundColor),foregroundColor:r.default.tryCreateTag(t.foregroundColor)},s.isEmpty(e)&&(e=null)),e},copy:function(t){var e=null;return(0,i.isDefined)(t)&&(e={},void 0!==t.patternType&&(e.patternType=t.patternType),void 0!==t.backgroundColor&&(e.backgroundColor=r.default.copy(t.backgroundColor)),void 0!==t.foregroundColor&&(e.foregroundColor=r.default.copy(t.foregroundColor))),e},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,i.isDefined)(t)&&(0,i.isDefined)(e)&&t.patternType===e.patternType&&r.default.areEqual(t.backgroundColor,e.backgroundColor)&&r.default.areEqual(t.foregroundColor,e.foregroundColor)},isEmpty:function(t){return!(0,i.isDefined)(t)||!(0,i.isDefined)(t.patternType)},toXml:function(t){var e=[(0,i.isDefined)(t.foregroundColor)?r.default.toXml("fgColor",t.foregroundColor):"",(0,i.isDefined)(t.backgroundColor)?r.default.toXml("bgColor",t.backgroundColor):""].join("");return o.default.toXml("patternFill",{patternType:t.patternType},e)}};e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(2),r=n(120),a=(i=r)&&i.__esModule?i:{default:i};var s={ID_PROPERTY_NAME:"id",tryCreateTag:function(t){var e=null;return"string"===typeof t&&(e={formatCode:t},s.isEmpty(e)&&(e=null)),e},areEqual:function(t,e){return s.isEmpty(t)&&s.isEmpty(e)||(0,o.isDefined)(t)&&(0,o.isDefined)(e)&&t.formatCode===e.formatCode},isEmpty:function(t){return!(0,o.isDefined)(t)||!(0,o.isDefined)(t.formatCode)||""===t.formatCode},toXml:function(t){return a.default.toXml("numFmt",{numFmtId:t[s.ID_PROPERTY_NAME],formatCode:t.formatCode})}};e.default=s},function(t,e,n){"use strict";var i=n(3),o=n(134),r=n(10).getWindow(),a=n(2).isFunction,s=n(5).each,l=n(275),u=n(7),c=u.when,d=u.Deferred;e.svgCreator={_markup:"",_imageArray:{},_imageDeferreds:[],_getBinaryFile:function(t,e){o.sendRequest({url:t,method:"GET",responseType:"arraybuffer"}).done(e).fail((function(){e(!1)}))},_loadImages:function(){var t=this;s(t._imageArray,(function(e){var n=new d;t._imageDeferreds.push(n),t._getBinaryFile(e,(function(i){if(!i)return delete t._imageArray[e],void n.resolve();var o,a="",s=new Uint8Array(i),l=s.byteLength;for(o=0;o<l;o++)a+=String.fromCharCode(s[o]);t._imageArray[e]="data:image/png;base64,"+r.btoa(a),n.resolve()}))}))},_parseImages:function(t){var e,n=this;"image"===t.tagName&&(e=i(t).attr("href")||i(t).attr("xlink:href"),n._imageArray[e]||(n._imageArray[e]="")),s(t.childNodes,(function(t,e){n._parseImages(e)}))},_prepareImages:function(t){return this._parseImages(t),this._loadImages(),c.apply(i,this._imageDeferreds)},getData:function(t,e){var n,o=this,u=l.getSvgElement(t),c=i(u);return n='<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>'+l.getSvgMarkup(c.get(0),e.backgroundColor),o._prepareImages(u).then((function(){return s(o._imageArray,(function(t,e){var i="href=['|\"]".concat(t,"['|\"]");n=n.replace(new RegExp(i,"gi"),'href="'.concat(e,'"'))})),a(r.Blob)?o._getBlob(n):o._getBase64(n)}))},_getBlob:function(t){return new r.Blob([t],{type:"image/svg+xml"})},_getBase64:function(t){return r.btoa(t)}},e.getData=function(t,n){return e.svgCreator.getData(t,n)}},function(t,e,n){"use strict";var i=n(254),o=n(10).getWindow(),r=n(395).imageCreator,a=n(2).isFunction,s=n(0).extend,l=function t(e,n){return e.length<n?t("0"+e,n):e},u=function(t,e,n){var o,r,a,s=2*(e.margin||0),u=e.width+s,c=e.height+s,d=(.75*u).toFixed(2),h=(.75*c).toFixed(2),f="%PDF-1.3\r\n2 0 obj\r\n<</ProcSet[/PDF/ImageB/ImageC/ImageI]/XObject<</I0 5 0 R>>>>\r\nendobj\r\n4 0 obj\r\n<</Type/Pages/Kids[1 0 R]/Count 1>>\r\nendobj\r\n7 0 obj\r\n<</OpenAction[1 0 R /FitH null]/Type/Catalog/Pages 4 0 R/PageLayout/OneColumn>>\r\nendobj\r\n1 0 obj\r\n<</Type/Page/Resources 2 0 R/MediaBox[0 0 _width_ _height_]/Contents 3 0 R/Parent 4 0 R>>\r\nendobj\r\n".replace("_width_",d).replace("_height_",h),p="3 0 obj\r\n<</Length 52>>stream\r\n0.20 w\n0 G\nq _width_ 0 0 _height_ 0.00 0.00 cm /I0 Do Q\r\nendstream\r\nendobj\r\n".replace("_width_",d).replace("_height_",h),m="6 0 obj\r\n<</CreationDate _date_/Producer(DevExtreme _version_)>>\r\nendobj\r\n".replace("_date_",n).replace("_version_",i),g=f+p+m+("5 0 obj\r\n<</Type/XObject/Subtype/Image/Width _width_/Height _height_/ColorSpace/DeviceRGB/BitsPerComponent 8/Filter/DCTDecode/Length _length_>>stream\r\n".replace("_width_",u).replace("_height_",c).replace("_length_",t.length)+t+"\r\nendstream\r\nendobj\r\n");return g+(o=f.length,r=p.length,a=m.length,"xref\r\n0 8\r\n0000000000 65535 f\r\n0000000241 00000 n\r\n0000000010 00000 n\r\n_main_ 00000 n\r\n0000000089 00000 n\r\n_image_ 00000 n\r\n_info_ 00000 n\r\n0000000143 00000 n\r\n".replace("_main_",l(o+"",10)).replace("_info_",l(o+r+"",10)).replace("_image_",l(o+r+a+"",10)))+"trailer\r\n<<\r\n/Size 8\r\n/Root 7 0 R\r\n/Info 6 0 R\r\n>>\r\nstartxref\r\n_length_\r\n%%EOF".replace("_length_",g.length)};e.getData=function(t,e){return r.getImageData(t,s({},e,{format:"JPEG"})).then((function(t){var n=u(t,e,new Date);return a(o.Blob)?function(t){for(var e=0,n=new Uint8Array(t.length);e<t.length;e++)n[e]=t.charCodeAt(e);return new o.Blob([n.buffer],{type:"application/pdf"})}(n):function(t){return o.btoa(t)}(n)}))}},function(t,e,n){"use strict";var i=n(2).isDefined,o=n(37).adjust,r=Math.round;function a(t){return t}t.exports={translate:function(t,e){var n=this._canvasOptions,o=this._categoriesToPoints[t.valueOf()],a=this.translateSpecialCase(t),s=n.startPointIndex||0,l=this._options.stick?0:.5;if(i(a))return r(a);if(!o&&0!==o)return null;var u=o+l-s+.5*(e=e||0);return r(this._calculateProjection(n.interval*u))},getInterval:function(){return this._canvasOptions.interval},getEventScale:function(t){return 1-(1-(t.deltaScale||1))/(.75+this.visibleCategories.length/this._categories.length)},zoom:function(t,e){var n,i=this._categories,r=this._canvasOptions,a=this._options.stick,s=r.invert,l=r.interval*e,u=t/l,c=(this.visibleCategories||[]).length,d=parseInt((r.startPointIndex||0)+u+.5),h=parseInt(o(r.canvasLength/l)+(a?1:0))||1;s&&(d=parseInt((r.startPointIndex||0)+c-u+.5)-h),d<0&&(d=0),(n=d+h)>i.length&&(d=(n=i.length)-h)<0&&(d=0);var f=i.slice(parseInt(d),parseInt(n)),p=this._getDiscreteInterval(f.length,r);return e=p/r.interval,t=this.translate(s?f[f.length-1]:f[0])*e-(r.startPoint+(a?0:p/2)),{min:f[0],max:f[f.length-1],translate:t,scale:e}},getMinScale:function(t){var e=this._canvasOptions,n=(this.visibleCategories||this._categories).length;return n+=(parseInt(.1*n)||1)*(t?-2:2),e.canvasLength/(Math.max(n,1)*e.interval)},getScale:function(t,e){var n=this._canvasOptions,o=this.getCanvasVisibleArea(),r=!this._options.stick&&1,a=i(t)?this.translate(t,-r):null,s=i(e)?this.translate(e,+r):null;return null===a&&(a=n.invert?o.max:o.min),null===s&&(s=n.invert?o.min:o.max),this.canvasLength/Math.abs(s-a)},isValid:function(t){return!!i(t)&&this._categoriesToPoints[t.valueOf()]>=0},getCorrectValue:a,to:function(t,e){var n=this._canvasOptions,i=this._categoriesToPoints[t.valueOf()],o=n.startPointIndex||0,a=i+(this._options.stick?0:.5)-o+(this._businessRange.invert?-1:1)*e*.5;return r(this._calculateProjection(n.interval*a))},from:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this._canvasOptions,i=n.startPoint,o=this.visibleCategories||this._categories,a=o.length,s=this._options.stick?.5:0,l=r((t-i)/n.interval+s-.5-.5*e);return l>=a&&(l=a-1),l<0&&(l=0),n.invert&&(l=a-l-1),o[l]},_add:function(){return NaN},_toValue:a,isValueProlonged:!0}},function(t,e,n){"use strict";var i=n(2),o=i.isNumeric,r=i.isDefined,a=n(26),s=a.addInterval,l=a.dateToMilliseconds,u=Math.floor,c=n(37).adjust;t.exports={_intervalize:function(t,e){if(r(t))return"datetime"===this._businessRange.dataType?(t=o(t)?new Date(t):new Date(t.getTime()),t=a.correctDateWithUnitBeginning(t,e,null,this._options.firstDayOfWeek)):t=c(u(c(t/e))*e,e),t},translate:function(t,e,n){var i=this.translateSpecialCase(t);return r(i)?Math.round(i):(n=n||this._options.interval,this.isValid(t,n)?this.to(t,e,n):null)},getInterval:function(){return Math.round(this._canvasOptions.ratioOfCanvasRange*(this._businessRange.interval||Math.abs(this._canvasOptions.rangeMax-this._canvasOptions.rangeMin)))},zoom:function(){},getMinScale:function(){},getScale:function(){},_parse:function(t){return"datetime"===this._businessRange.dataType?new Date(t):Number(t)},_fromValue:function(t){return this._parse(t)},_toValue:function(t){return this._parse(t)},isValid:function(t,e){var n=this._canvasOptions,i=n.rangeMin,r=n.rangeMax;return e=e||this._options.interval,null!==t&&!isNaN(t)&&(t="datetime"===this._businessRange.dataType&&o(t)?new Date(t):t,e!==this._options.interval&&(i=this._intervalize(i,e),r=this._intervalize(r,e)),!(t.valueOf()<i||t.valueOf()>=s(r,e)))},to:function(t,e,n){n=n||this._options.interval;var i=this._intervalize(t,n),o=s(i,n),r=this._to(i),a=this._to(o);return e?e>0&&(r=a):r=u((r+a)/2),r},_to:function(t){var e=this._canvasOptions,n=e.rangeMinVisible,i=e.rangeMaxVisible,o=t-n;return t<n?o=0:t>i&&(o=s(i,this._options.interval)-n),this._conversionValue(this._calculateProjection(o*this._canvasOptions.ratioOfCanvasRange))},from:function(t,e){var n,i=this._options.interval,o=i,r=this._canvasOptions,a=r.rangeMinVisible,u=r.rangeMaxVisible;return"datetime"===this._businessRange.dataType&&(o=l(i)),n=this._calculateUnProjection((t-this._canvasOptions.startPoint)/this._canvasOptions.ratioOfCanvasRange),(n=this._intervalize(s(n,o/2,e>0),i))<a?n=a:n>u&&(n=u),n},_add:function(){return NaN},isValueProlonged:!0}},function(t,e,n){"use strict";function i(t){return null!==t?new Date(t):t}t.exports={_fromValue:i,_toValue:i,_add:n(26).addDateInterval}},function(t,e,n){"use strict";var i=n(13),o=n(2).isDefined,r=i.raiseToExt,a=i.getLogExt;t.exports={_fromValue:function(t){return null!==t?a(t,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):t},_toValue:function(t){return null!==t?r(t,this._canvasOptions.base,this._businessRange.allowNegatives,this._businessRange.linearThreshold):t},getMinBarSize:function(t){var e=this.getCanvasVisibleArea(),n=this.from(e.min+t),i=this._canvasOptions;return Math.pow(i.base,i.rangeMinVisible+this._fromValue(this.from(e.min))-this._fromValue(o(n)?n:this.from(e.max)))},checkMinBarSize:function(t,e,n){var i,r,a=this._canvasOptions,s=n-t,l=this.constructor.prototype.checkMinBarSize;return o(e)&&s>0?(i=l(this._fromValue(n/s),this._fromValue(e)-a.rangeMinVisible),r=Math.pow(a.base,this._fromValue(s)+i)-s):r=l(t,e),r}}},function(t,e,n){"use strict";var i,o=n(26),r=(i=o)&&i.__esModule?i:{default:i};var a=[0,1,2,3,4,5,6];function s(t){return(t+1)%7}function l(t,e){for(var n=t.start,i=t.end;n!==i;){if(n===e)return!0;n=s(n)}return!1}function u(t,e){for(var n=0;t!==e;)t=s(t),n++;return n}function c(t){var e,n=(e=t,a.filter((function(t){return!e.some((function(e){return e===t}))})));if(n.length<7)for(;s(n[n.length-1])===n[0];)n.unshift(n.pop());return n}function d(t,e){var n,i=t.slice(),o=function(t){if(t=r.default.trimTime(new Date(t)),i[n].from<=t&&i[n].to>t){var e=function(t,e){var n=[],i=new Date(e);return i.setDate(e.getDate()+1),e>t.from&&n.push({from:t.from,to:e}),i<t.to&&n.push({from:i,to:t.to}),n}(i[n],t);2===e.length?i.splice(n,1,e[0],e[1]):1===e.length?i.splice(n,1,e[0]):i.splice(n,1)}};for(n=0;n<i.length;n++)e.forEach(o);return i}e.generateDateBreaks=function(t,e,n,i,o){var a=c(n),h=function(t,e,n){var i=t.getDate(),o=[];return n.reduce((function(t,e){var n=t[1];return void 0===n.start?(n={start:e,end:s(e)},t[0].push(n),[t[0],n]):n.end===e?(n.end=s(e),t):(n={start:e,end:s(e)},t[0].push(n),[t[0],n])}),[[],{}])[0].forEach((function(n){var a=new Date(t);for(a=r.default.trimTime(a);a<e;){i=a.getDay();var s=a.getDate();if(l(n,i)){var c=new Date(a);a.setDate(s+u(i,n.end));var d=new Date(a);o.push({from:c,to:d})}a.setDate(a.getDate()+1)}})),o}(t,e,a);return h.push.apply(h,function(t,e,n,i){var o,a=function(t){return t===o},s=r.default.trimTime(t),l=r.default.trimTime(e);return l.setDate(e.getDate()+1),n.reduce((function(t,e){var n,u;return e=new Date(e),o=e.getDay(),!i.some(a)&&e>=s&&e<=l&&(n=r.default.trimTime(e),(u=new Date(n)).setDate(n.getDate()+1),t.push({from:n,to:u})),t}),[])}(t,e,o||[],a)),function(t){return t.map((function(t){return{from:t.from,to:t.to,gapSize:r.default.convertMillisecondsToDateUnits(t.to-t.from)}}))}(d(h,i||[]))}},function(t,e,n){"use strict";var i=n(13),o=n(2),r=n(0),a=d(n(280)),s=n(401),l=n(400),u=d(n(226)),c=n(4);function d(t){return t&&t.__esModule?t:{default:t}}var h=Math.PI,f=Math.abs,p=Math.atan,m=Math.round,g=Math.min,_=Math.max;function v(t){var e;return(t=(0,i.normalizeAngle)(t))>=315&&t<=360||t<45&&t>=0?e=1:t>=45&&t<135?e=2:t>=135&&t<225?e=3:t>=225&&t<315&&(e=4),e}var y=e,b=y.circular={_calculateValueMargins:function(t){var e=this._getViewportRange(),n=e.minVisible,i=e.maxVisible;return t&&t.length>1&&(i=(n=n<t[0].value?n:t[0].value)>t[t.length-1].value?i:t[t.length-1].value),{minValue:n,maxValue:i}},applyMargins:function(){var t=this._calculateValueMargins(this._majorTicks),e=this._translator.getBusinessRange();e.addRange({minVisible:t.minValue,maxVisible:t.maxValue,interval:this._calculateRangeInterval(e.interval)}),this._translator.updateBusinessRange(e)},_getTranslatorOptions:function(){return{isHorizontal:!0,conversionValue:!0,addSpiderCategory:this._getSpiderCategoryOption(),stick:this._getStick()}},getCenter:function(){return this._center},getRadius:function(){return this._radius},getAngles:function(){var t=this._options;return[t.startAngle,t.endAngle]},_updateRadius:function(t){var e=g(t.width-t.left-t.right,t.height-t.top-t.bottom)/2;this._radius=e<0?0:e},_updateCenter:function(t){this._center={x:t.left+(t.width-t.right-t.left)/2,y:t.top+(t.height-t.top-t.bottom)/2}},_processCanvas:function(t){return this._updateRadius(t),this._updateCenter(t),{left:0,right:0,width:this._getScreenDelta()}},_createAxisElement:function(){return this._renderer.circle()},_updateAxisElementPosition:function(){var t=this.getCenter();this._axisElement.attr({cx:t.x,cy:t.y,r:this.getRadius()})},_boundaryTicksVisibility:{min:!0},_getSpiderCategoryOption:function(){return this._options.firstPointOnStartAngle},_validateOptions:function(t){var e=t.originValue,n=t.wholeRange={},r=t.period;(0,o.isDefined)(e)&&(e=this.validateUnit(e)),r>0&&t.argumentType===a.default.numeric&&(e=e||0,n.endValue=e+r,this._viewport=(0,i.getVizRangeObject)([e,n.endValue])),(0,o.isDefined)(e)&&(n.startValue=e)},getMargins:function(){var t=this._options.tick,e=_(t.visible?t.length/2+t.shift:0,0),n=this.getRadius(),i=this._center,o=i.x,a=i.y,s=this._majorTicks.map((function(t){return t.label&&t.label.getBBox()})).filter((function(t){return t})),l=(0,r.extend)({},this._canvas,{left:o-n,top:a-n,right:this._canvas.width-(o+n),bottom:this._canvas.height-(a+n)}),c=u.default.calculateCanvasMargins(s,l);return Object.keys(c).forEach((function(t){return c[t]=c[t]<e?e:c[t]})),c},updateSize:function(){var t=this;u.default.Axis.prototype.updateSize.apply(t,arguments),u.default.measureLabels(t._majorTicks),t._adjustLabelsCoord(0,0,!0),this._checkBoundedLabelsOverlapping(this._majorTicks,this._majorTicks.map((function(t){return t.labelBBox})))},_setVisualRange:c.noop,applyVisualRangeSetter:c.noop,_getStick:function(){return this._options.firstPointOnStartAngle||this._options.type!==a.default.discrete},_getTranslatedCoord:function(t,e){return this._translator.translate(t,e)-90},_getCanvasStartEnd:function(){return{start:-90,end:270}},_getStripGraphicAttributes:function(t,e){var n=this.getCenter(),i=this.getAngles()[0],o=this.getRadius();return{x:n.x,y:n.y,innerRadius:0,outerRadius:o,startAngle:-e-i,endAngle:-t-i}},_createStrip:function(t){return this._renderer.arc(t.x,t.y,t.innerRadius,t.outerRadius,t.startAngle,t.endAngle)},_getStripLabelCoords:function(t,e){var n=this._getStripGraphicAttributes(t,e),o=n.startAngle+(n.endAngle-n.startAngle)/2,r=(0,i.getCosAndSin)(o),s=this.getRadius()/2,l=this.getCenter();return{x:m(l.x+s*r.cos),y:m(l.y-s*r.sin),align:a.default.center}},_getConstantLineGraphicAttributes:function(t){var e=this.getCenter(),n=this.getRadius();return{points:[e.x,e.y,e.x+n,e.y]}},_createConstantLine:function(t,e){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,e)},_rotateConstantLine:function(t,e){var n=this.getCenter(),i=n.x,o=n.y;t.rotate(e+this.getAngles()[0],i,o)},_getConstantLineLabelsCoords:function(t){var e=(0,i.getCosAndSin)(-t-this.getAngles()[0]),n=this.getRadius()/2,o=this.getCenter();return{x:m(o.x+n*e.cos),y:m(o.y-n*e.sin)}},_checkAlignmentConstantLineLabels:c.noop,_adjustDivisionFactor:function(t){return 180*t/(this.getRadius()*h)},_getScreenDelta:function(){var t=this.getAngles();return f(t[0]-t[1])},_getTickMarkPoints:function(t,e,n){var i=n.shift,o=void 0===i?0:i,r=this.getCenter(),a=this.getRadius()+e*{inside:-1,center:-.5,outside:0}[this._options.tickOrientation||"center"];return[r.x+a+o,r.y,r.x+a+e+o,r.y]},_getLabelAdjustedCoord:function(t,e,n,o){var r=t.labelCoords,a=r.y,s=r.angle,l=(0,i.getCosAndSin)(s),u=l.cos,c=l.sin,d=t.labelBBox,h=d.width/2,f=d.height/2,p=this._options.label.indentFromAxis||0,m=r.x+p*u,g=a+(a-d.y-f)+p*c,_=0,y=0;switch(v(s)){case 1:_=h,y=f*c;break;case 2:_=h*u,y=f;break;case 3:_=-h,y=f*c;break;case 4:_=h*u,y=-f}if(o){var b=this._canvas,w=m-r.x+_,x=g-r.y+y;d.x+w<b.originalLeft&&(_-=d.x+w-b.originalLeft),d.x+d.width+w>b.width-b.originalRight&&(_-=d.x+d.width+w-(b.width-b.originalRight)),d.y+x<b.originalTop&&(y-=d.y+x-b.originalTop),d.y+d.height+x>b.height-b.originalBottom&&(y-=d.y+d.height+x-(b.height-b.originalBottom))}return{x:m+_,y:g+y}},_getGridLineDrawer:function(){var t=this;return function(e,n){var i=t.getCenter();return t._createPathElement(t._getGridPoints().points,n).rotate(e.coords.angle,i.x,i.y)}},_getGridPoints:function(){var t=this.getRadius(),e=this.getCenter();return{points:[e.x,e.y,e.x+t,e.y]}},_getTranslatedValue:function(t,e){var n=this.getAngles()[0],o=this._translator.translate(t,-e),r=(0,i.convertPolarToXY)(this.getCenter(),n,o,this.getRadius());return{x:r.x,y:r.y,angle:this.getTranslatedAngle(o)}},_getAdjustedStripLabelCoords:function(t){var e=t.labelBBox;return{translateY:t.label.attr("y")-e.y-e.height/2}},coordsIn:function(t,e){return(0,i.convertXYToPolar)(this.getCenter(),t,e).r>this.getRadius()},_rotateTick:function(t,e){var n=this.getCenter();t.rotate(e.angle,n.x,n.y)},_validateOverlappingMode:function(t){return a.default.validateOverlappingMode(t)},_validateDisplayMode:function(){return"standard"},_getStep:function(t){var e=this.getRadius()+(this._options.label.indentFromAxis||0),n=t.reduce((function(t,e){var n=t;return t.width<e.width&&(n.width=e.width),t.height<e.height&&(n.height=e.height),n}),{width:0,height:0}),i=f(2*p(n.height/(2*e-n.width))*180/h),o=f(2*p(n.width/(2*e-n.height))*180/h);return a.default.getTicksCountInRange(this._majorTicks,"angle",_(i,o))},_checkBoundedLabelsOverlapping:function(t,e,n){var i=this._options.label;if("hide"===(n=n||this._validateOverlappingMode(i.overlappingBehavior))){var o=t.reduce((function(t,e,n){return e.label?n:t}),null);o&&a.default.areLabelsOverlap(e[0],e[o],i.minSpacing,a.default.center)&&("first"===i.hideFirstOrLast?t[0].label.remove():t[o].label.remove())}},shift:function(t){this._axisGroup.attr({translateX:t.right,translateY:t.bottom})},getTranslatedAngle:function(t){return t+this.getAngles()[0]-90}};y.circularSpider=(0,r.extend)({},b,{_createAxisElement:function(){return this._renderer.path([],"area")},_updateAxisElementPosition:function(){this._axisElement.attr({points:(0,i.map)(this.getSpiderTicks(),(function(t){return{x:t.coords.x,y:t.coords.y}}))})},_getStick:function(){return!0},_getSpiderCategoryOption:function(){return!0},getSpiderTicks:function(){var t=this.getFullTicks();return this._spiderTicks=t.map((0,l.tick)(this,this.renderer,{},{},this._getSkippedCategory(t),!0)),this._spiderTicks.forEach((function(t){t.initCoords()})),this._spiderTicks},_getStripGraphicAttributes:function(t,e){for(var n,i,o,r,a=this.getCenter(),s=this.getSpiderTicks(),l=[],u=0,c=s.length;u<c;)(r=s[u].coords).angle>=t&&r.angle<=e&&(n||(n=(s[u-1]||s[s.length-1]).coords,l.push((r.x+n.x)/2,(r.y+n.y)/2)),l.push(r.x,r.y),o=(s[u+1]||s[0]).coords,i={x:(r.x+o.x)/2,y:(r.y+o.y)/2}),u++;return l.push(i.x,i.y),l.push(a.x,a.y),{points:l}},_createStrip:function(t){var e=t.points;return this._renderer.path(e,"area")},_getTranslatedCoord:function(t,e){return this._translator.translate(t,e)-90},_setTickOffset:function(){this._tickOffset=!1}}),y.linear={_resetMargins:function(){this._reinitTranslator(this._getViewportRange())},_getStick:s.linear._getStick,_getSpiderCategoryOption:c.noop,_getTranslatorOptions:function(){return{isHorizontal:!0,stick:this._getStick()}},getRadius:b.getRadius,getCenter:b.getCenter,getAngles:b.getAngles,_updateRadius:b._updateRadius,_updateCenter:b._updateCenter,_processCanvas:function(t){return this._updateRadius(t),this._updateCenter(t),{left:0,right:0,startPadding:t.startPadding,endPadding:t.endPadding,width:this.getRadius()}},_createAxisElement:s.linear._createAxisElement,_updateAxisElementPosition:function(){var t=this.getCenter();this._axisElement.attr({points:[t.x,t.y,t.x+this.getRadius(),t.y]}).rotate(this.getAngles()[0]-90,t.x,t.y)},_getScreenDelta:function(){return this.getRadius()},_getTickMarkPoints:function(t,e){return[t.x-e/2,t.y,t.x+e/2,t.y]},_getLabelAdjustedCoord:function(t){var e=t.labelCoords,n=e.y,o=(0,i.getCosAndSin)(e.angle),r=this._options.label.indentFromAxis||0,a=t.labelBBox;return{x:e.x-f(r*o.sin)+f(a.width/2*o.cos)-a.width/2,y:n+(n-a.y)-f(a.height/2*o.sin)+f(r*o.cos)}},_getGridLineDrawer:function(){var t=this;return function(e,n){var i=t._getGridPoints(e.coords);return t._renderer.circle(i.cx,i.cy,i.r).attr(n).sharp()}},_getGridPoints:function(t){var e=this.getCenter(),n=(0,i.getDistance)(e.x,e.y,t.x,t.y);return n>this.getRadius()?{cx:null,cy:null,r:null}:{cx:e.x,cy:e.y,r:n}},_getTranslatedValue:function(t,e){var n=this.getAngles()[0],o=(0,i.convertPolarToXY)(this.getCenter(),n,0,this._translator.translate(t,e));return{x:o.x,y:o.y,angle:n-90}},_getTranslatedCoord:function(t,e){return this._translator.translate(t,e)},_getCanvasStartEnd:function(){var t=this.getTranslator().getBusinessRange().invert,e=[0,this.getRadius()];return t&&e.reverse(),{start:e[0],end:e[1]}},_getStripGraphicAttributes:function(t,e){var n=this.getCenter();return{x:n.x,y:n.y,innerRadius:t,outerRadius:e}},_createStrip:function(t){return this._renderer.arc(t.x,t.y,t.innerRadius,t.outerRadius,0,360)},_getAdjustedStripLabelCoords:b._getAdjustedStripLabelCoords,_getStripLabelCoords:function(t,e){var n=t+(e-t)/2,i=this.getCenter(),o=m(i.y-n);return{x:i.x,y:o,align:a.default.center}},_getConstantLineGraphicAttributes:function(t){var e=this.getCenter();return{cx:e.x,cy:e.y,r:t}},_createConstantLine:function(t,e){var n=this._getConstantLineGraphicAttributes(t);return this._renderer.circle(n.cx,n.cy,n.r).attr(e).sharp()},_getConstantLineLabelsCoords:function(t){var e=this.getCenter(),n=m(e.y-t);return{x:e.x,y:n}},_checkAlignmentConstantLineLabels:c.noop,_rotateTick:function(t,e,n){!n&&t.rotate(e.angle+90,e.x,e.y)},_validateOverlappingMode:b._validateOverlappingMode,_validateDisplayMode:b._validateDisplayMode,_getStep:function(t){var e=v(this.getAngles()[0]),n=this._options.label.minSpacing,i=2===e||4===e?function(t){return t.width+n}:function(t){return t.height},o=t.reduce((function(t,e){return _(t,i(e))}),0);return a.default.getTicksCountInRange(this._majorTicks,2===e||4===e?"x":"y",o)}},y.linearSpider=(0,r.extend)({},y.linear,{_createPathElement:function(t,e){return this._renderer.path(t,"area").attr(e).sharp()},setSpiderTicks:function(t){this._spiderTicks=t},_getGridLineDrawer:function(){var t=this;return function(e,n){return t._createPathElement(t._getGridPoints(e.coords).points,n)}},_getGridPoints:function(t){var e=this.getCenter(),n=(0,i.getDistance)(e.x,e.y,t.x,t.y);return this._getGridPointsByRadius(n)},_getGridPointsByRadius:function(t){var e=this.getCenter();return t>this.getRadius()?{points:null}:{points:(0,i.map)(this._spiderTicks,(function(n){var o=(0,i.getCosAndSin)(n.coords.angle);return{x:m(e.x+t*o.cos),y:m(e.y+t*o.sin)}}))}},_getStripGraphicAttributes:function(t,e){var n=this._getGridPointsByRadius(e).points;return{points:[this._getGridPointsByRadius(t).points,n.reverse()]}},_createStrip:y.circularSpider._createStrip,_getConstantLineGraphicAttributes:function(t){return this._getGridPointsByRadius(t)},_createConstantLine:function(t,e){return this._createPathElement(this._getConstantLineGraphicAttributes(t).points,e)}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,o,r,a=e.label||{},s=a.position||"inside",l=!1;return t._checkAlignmentConstantLineLabels(a),{options:e,labelOptions:a,labelPosition:s,label:null,line:null,getParsedValue:function(){return l||(n=t.validateUnit(e.value,"E2105","constantLine"),l=!0),n},draw:function(){if(!(0,i.isDefined)(e.value)||t._translator.getBusinessRange().isEmpty())return this;var n=t._getCanvasStartEnd(),o=this.getParsedValue();this.coord=t._getConstantLinePos(o,n.start,n.end);var r=e.displayBehindSeries?t._axisConstantLineGroups.under:t._axisConstantLineGroups.above,l=r[s];l||(l=r[t._isHorizontal?a.verticalAlignment:a.horizontalAlignment]);if(!(0,i.isDefined)(this.coord))return this;var u=t._createConstantLine(this.coord,{stroke:e.color,"stroke-width":e.width,dashStyle:e.dashStyle});return this.line=u.append(r.inside),this.label=a.visible?t._drawConstantLineLabels(o,a,this.coord,l):null,this.updatePosition(),this},removeLabel:function(){this.label&&this.label.remove()},updatePosition:function(e){var n=t._getCanvasStartEnd(),o=t._getConstantLinePos(this.getParsedValue(),n.start,n.end);(0,i.isDefined)(o)&&(this.coord=o,e&&r?(this.label&&this.label.attr(t._getConstantLineLabelsCoords(r,this.labelOptions)),this.line&&this.line.attr(t._getConstantLineGraphicAttributes(r)),this.label&&this.label.animate(t._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.animate(t._getConstantLineGraphicAttributes(this.coord))):(this.label&&this.label.attr(t._getConstantLineLabelsCoords(this.coord,this.labelOptions)),this.line&&this.line.attr(t._getConstantLineGraphicAttributes(this.coord)),t._rotateConstantLine(this.line,this.coord)))},saveCoords:function(){o=r,r=this.coord},resetCoordinates:function(){r=o}}};var i=n(2)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var n,a,s=e.label||{};return{options:e,label:null,rect:null,_getCoord:function(){var n=t._getCanvasStartEnd(),i=t._translator.getBusinessRange();return t._getStripPos(e.startValue,e.endValue,n.start,n.end,i)},_drawLabel:function(e){return t._renderer.text(s.text,e.x,e.y).css((0,o.patchFontOptions)((0,r.extend)({},t.getOptions().label.font,s.font))).attr({align:"center",class:s.cssClass}).append(t._axisStripLabelGroup)},draw:function(){if(!t._translator.getBusinessRange().isEmpty()&&((0,i.isDefined)(e.startValue)||(0,i.isDefined)(e.endValue))&&(0,i.isDefined)(e.color)){var n=this._getCoord();if(this.labelCoords=s.text?t._getStripLabelCoords(n.from,n.to,s):null,n.outOfCanvas||!(0,i.isDefined)(n.to)||!(0,i.isDefined)(n.from))return;this.rect=t._createStrip(t._getStripGraphicAttributes(n.from,n.to)).attr({fill:e.color}).append(t._axisStripGroup),this.label=s.text?this._drawLabel(this.labelCoords):null}},removeLabel:function(){},updatePosition:function(i){var o=this._getCoord();i&&n?(this.label&&this.label.attr(t._getStripLabelCoords(n.from,n.to,e.label)),this.rect&&this.rect.attr(t._getStripGraphicAttributes(n.from,n.to)),this.label&&this.label.animate(t._getStripLabelCoords(o.from,o.to,e.label)),this.rect&&this.rect.animate(t._getStripGraphicAttributes(o.from,o.to))):(this.label&&this.label.attr(t._getStripLabelCoords(o.from,o.to,e.label)),this.rect&&this.rect.attr(t._getStripGraphicAttributes(o.from,o.to)))},saveCoords:function(){a=n,n=this._getCoord()},resetCoordinates:function(){n=a}}};var i=n(2),o=n(13),r=n(0)},function(t,e,n){"use strict";var i=n(283),o=i.BaseIndicator,r=i.BaseTextCloudMarker,a=i.BaseRangeBar,s=n(13),l=Number,u=s.getCosAndSin,c=s.convertAngleToRendererSpace,d=o.inherit({_move:function(){var t=this._options,e=c(this._actualPosition);this._rootElement.rotate(e,t.x,t.y),this._trackerElement&&this._trackerElement.rotate(e,t.x,t.y)},_isEnabled:function(){return this._options.width>0},_isVisible:function(t){return t.radius-l(this._options.indentFromCenter)>0},_getTrackerSettings:function(){var t=this._options,e=this._getRadius(),n=this._getIndentFromCenter(),i=t.x,o=t.y-(e+n)/2,r=t.width/2,a=(e-n)/2;return r>10||(r=10),a>10||(a=10),{points:[i-r,o-a,i-r,o+a,i+r,o+a,i+r,o-a]}},_render:function(){this._renderPointer()},_clearPointer:function(){delete this._element},_clear:function(){this._clearPointer()},_getIndentFromCenter:function(t){return Number(this._options.indentFromCenter)||0},_getRadius:function(){return 0},measure:function(t){var e={max:t.radius};return this._options.indentFromCenter<0&&(e.inverseHorizontalOffset=e.inverseVerticalOffset=-l(this._options.indentFromCenter)),e},getTooltipParameters:function(){var t=this._options,e=u(this._actualPosition),n=(this._getRadius()+this._getIndentFromCenter())/2;return{x:t.x+e.cos*n,y:t.y-e.sin*n,value:this._currentValue,color:t.color,offset:t.width/2}}}),h=d.inherit({_isVisible:function(t){var e=this._adjustOffset(Number(this._options.indentFromCenter),t.radius),n=this._adjustOffset(Number(this._options.offset),t.radius);return t.radius-e-n>0},getOffset:function(){return 0},_adjustOffset:function(t,e){var n=e/Number(this._options.beginAdaptingAtRadius);return n<1&&(t=Math.floor(t*n)),t||0},_getIndentFromCenter:function(t){return this._adjustOffset(Number(this._options.indentFromCenter),this._options.radius)},_getRadius:function(){var t=this._options;return t.radius-this._adjustOffset(Number(t.offset),t.radius)},_renderSpindle:function(){var t=this._options,e=t.radius,n=2*this._adjustOffset(l(t.spindleSize)/2,e),i=2*this._adjustOffset(l(t.spindleGapSize)/2,e)||0;i>0&&(i=i<=n?i:n),n>0&&(this._spindleOuter=this._spindleOuter||this._renderer.circle().append(this._rootElement),this._spindleInner=this._spindleInner||this._renderer.circle().append(this._rootElement),this._spindleOuter.attr({class:"dxg-spindle-border",cx:t.x,cy:t.y,r:n/2}),this._spindleInner.attr({class:"dxg-spindle-hole",cx:t.x,cy:t.y,r:i/2,fill:t.containerBackgroundColor}))},_render:function(){this.callBase(),this._renderSpindle()},_clear:function(){this.callBase(),delete this._spindleOuter,delete this._spindleInner}}),f=h.inherit({_renderPointer:function(){var t=this._options,e=t.y-this._getRadius(),n=t.y-this._getIndentFromCenter(),i=t.x-t.width/2,o=i+l(t.width);this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,n,i,e,o,e,o,n]})}}),p=h.inherit({_renderPointer:function(){var t=this._options,e=t.y-this._getRadius(),n=t.y-this._getIndentFromCenter(),i=t.x-t.width/2,o=t.x+t.width/2;this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[i,n,t.x,e,o,n]})}}),m=h.inherit({_renderPointer:function(){var t,e,n=this._options,i=n.x-n.width/2,o=n.x+n.width/2,r=n.y-this._getRadius(),a=n.y-this._getIndentFromCenter(),s=l(n.secondFraction)||0;t=s>=1?e=a:s<=0?e=r:(e=r+(a-r)*s)+l(n.space),this._firstElement=this._firstElement||this._renderer.path([],"area").append(this._rootElement),this._spaceElement=this._spaceElement||this._renderer.path([],"area").append(this._rootElement),this._secondElement=this._secondElement||this._renderer.path([],"area").append(this._rootElement),this._firstElement.attr({points:[i,a,i,t,o,t,o,a]}),this._spaceElement.attr({points:[i,t,i,e,o,e,o,t],class:"dxg-hole",fill:n.containerBackgroundColor}),this._secondElement.attr({points:[i,e,i,r,o,r,o,e],class:"dxg-part",fill:n.secondColor})},_clearPointer:function(){delete this._firstElement,delete this._secondElement,delete this._spaceElement}}),g=d.inherit({_isEnabled:function(){return this._options.length>0&&this._options.width>0},_isVisible:function(t){return t.radius>0},_render:function(){var t=this._options,e=t.x,n=t.y-t.radius,i=t.width/2||0,o=n-l(t.length);this._element=this._element||this._renderer.path([],"area").append(this._rootElement);var r={points:[e,n,e-i,o,e+i,o],stroke:"none","stroke-width":0,"stroke-linecap":"square"};t.space>0&&(r["stroke-width"]=Math.min(t.space,t.width/4)||0,r.stroke=r["stroke-width"]>0&&t.containerBackgroundColor||"none"),this._element.attr(r).sharp()},_clear:function(){delete this._element},_getTrackerSettings:function(){var t=this._options,e=t.x,n=t.y-t.radius-t.length/2,i=t.width/2,o=t.length/2;return i>10||(i=10),o>10||(o=10),{points:[e-i,n-o,e-i,n+o,e+i,n+o,e+i,n-o]}},measure:function(t){return{min:t.radius,max:t.radius+l(this._options.length)}},getTooltipParameters:function(){var t=this._options,e=u(this._actualPosition),n=t.radius+t.length/2,i=this.callBase();return i.x=t.x+e.cos*n,i.y=t.y-e.sin*n,i.offset=t.length/2,i}}),_=r.inherit({_isEnabled:function(){return!0},_isVisible:function(t){return t.radius>0},_getTextCloudOptions:function(){var t=u(this._actualPosition),e=s.normalizeAngle(this._actualPosition);return{x:this._options.x+t.cos*this._options.radius,y:this._options.y-t.sin*this._options.radius,type:e>270?"left-top":e>180?"top-right":e>90?"right-bottom":"bottom-left"}},measure:function(t){var e=l(this._options.arrowLength)||0;this._measureText();var n=this._textFullHeight+e,i=this._textFullWidth+e;return{min:t.radius,max:t.radius,horizontalOffset:i,verticalOffset:n,inverseHorizontalOffset:i,inverseVerticalOffset:n}}}),v=a.inherit({_isEnabled:function(){return this._options.size>0},_isVisible:function(t){return t.radius-l(this._options.size)>0},_createBarItem:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"}).append(this._rootElement)},_createTracker:function(){return this._renderer.arc().attr({"stroke-linejoin":"round"})},_setBarSides:function(){this._maxSide=this._options.radius,this._minSide=this._maxSide-l(this._options.size)},_getSpace:function(){var t=this._options;return t.space>0?180*t.space/t.radius/Math.PI:0},_isTextVisible:function(){return(this._options.text||{}).indent>0},_setTextItemsSides:function(){var t=this._options,e=l(t.text.indent);this._lineFrom=t.y-t.radius,this._lineTo=this._lineFrom-e,this._textRadius=t.radius+e},_getPositions:function(){var t,e,n=this._basePosition,i=this._actualPosition;return n>=i?(t=n,e=i):(t=i,e=n),{start:this._startPosition,end:this._endPosition,main1:t,main2:e,back1:Math.min(t+this._space,this._startPosition),back2:Math.max(e-this._space,this._endPosition)}},_buildItemSettings:function(t,e){return{x:this._options.x,y:this._options.y,innerRadius:this._minSide,outerRadius:this._maxSide,startAngle:e,endAngle:t}},_updateTextPosition:function(){var t=u(this._actualPosition),e=this._options.x+this._textRadius*t.cos,n=this._options.y-this._textRadius*t.sin;e+=t.cos*this._textWidth*.6,n-=t.sin*this._textHeight*.6,this._text.attr({x:e,y:n+this._textVerticalOffset})},_updateLinePosition:function(){var t,e,n=this._options.x;this._basePosition>this._actualPosition?(t=n-2,e=n):this._basePosition<this._actualPosition?(t=n,e=n+2):(t=n-1,e=n+1),this._line.attr({points:[t,this._lineFrom,t,this._lineTo,e,this._lineTo,e,this._lineFrom]}).rotate(c(this._actualPosition),n,this._options.y).sharp()},_getTooltipPosition:function(){var t=u((this._basePosition+this._actualPosition)/2),e=(this._minSide+this._maxSide)/2;return{x:this._options.x+t.cos*e,y:this._options.y-t.sin*e}},measure:function(t){var e={min:t.radius-l(this._options.size),max:t.radius};return this._measureText(),this._hasText&&(e.max+=l(this._options.text.indent),e.horizontalOffset=this._textWidth,e.verticalOffset=this._textHeight),e}});e._default=f,e.rectangleneedle=f,e.triangleneedle=p,e.twocolorneedle=m,e.trianglemarker=g,e.textcloud=_,e.rangebar=v},function(t,e,n){"use strict";var i=n(402),o=Number,r=Math.max,a=n(13).normalizeEnum,s=i.inherit({_processOptions:function(){switch(this._inner=this._outer=0,a(this._options.orientation)){case"inside":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(t){var e=this._options.width;return e=o(e)||r(o(e.start),o(e.end)),t.radius-this._inner*e>0},_createRange:function(t,e){var n=(t.startWidth+t.endWidth)/2;return this._renderer.arc(e.x,e.y,e.radius-this._inner*n,e.radius+this._outer*n,this._translator.translate(t.end),this._translator.translate(t.start)).attr({"stroke-linejoin":"round"})},measure:function(t){var e=this._options.width;return e=o(e)||r(o(e.start),o(e.end)),{min:t.radius-this._inner*e,max:t.radius+this._outer*e}}});t.exports=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(228),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Box=l,l.propTypes={align:r.oneOf(["center","end","space-around","space-between","start"]),crossAlign:r.oneOf(["center","end","start","stretch"]),dataSource:r.oneOfType([r.array,r.object,r.string]),direction:r.oneOf(["col","row"]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(734),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={margin:{optionName:"margin",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Bullet=l,l.propTypes={color:r.string,disabled:r.bool,elementAttr:r.object,endScaleValue:r.number,margin:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,pathModified:r.bool,rtlEnabled:r.bool,showTarget:r.bool,showZeroLevel:r.bool,size:r.object,startScaleValue:r.number,target:r.number,targetColor:r.string,targetWidth:r.number,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),tooltip:r.object,value:r.number};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=m,e.default=l},function(t,e,n){"use strict";t.exports=n(735),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(5).each,o=n(403),r=Number,a=isFinite,s=o.inherit({_rootClassPrefix:"dxb",_rootClass:"dxb-bullet",_themeSection:"bullet",_defaultSize:{width:300,height:30,left:1,right:1,top:2,bottom:2},_disposeWidgetElements:function(){delete this._zeroLevelPath,delete this._targetPath,delete this._barValuePath},_cleanWidgetElements:function(){this._zeroLevelPath.remove(),this._targetPath.remove(),this._barValuePath.remove()},_drawWidgetElements:function(){this._drawBullet(),this._drawn()},_createHtmlElements:function(){var t=this._renderer;this._zeroLevelPath=t.path(void 0,"line").attr({class:"dxb-zero-level","stroke-linecap":"square"}),this._targetPath=t.path(void 0,"line").attr({class:"dxb-target","stroke-linecap":"square"}),this._barValuePath=t.path(void 0,"line").attr({class:"dxb-bar-value","stroke-linecap":"square"})},_prepareOptions:function(){var t,e,n,i,o,a;this._allOptions=t=this.callBase();var s=void 0===this._allOptions.value,l=void 0===this._allOptions.target;this._tooltipEnabled=!(s&&l),s&&(this._allOptions.value=0),l&&(this._allOptions.target=0),t.value=o=r(t.value),t.target=a=r(t.target),void 0===this._allOptions.startScaleValue&&(this._allOptions.startScaleValue=a<o?a:o,this._allOptions.startScaleValue=this._allOptions.startScaleValue<0?this._allOptions.startScaleValue:0),void 0===this._allOptions.endScaleValue&&(this._allOptions.endScaleValue=a>o?a:o),t.startScaleValue=e=r(t.startScaleValue),t.endScaleValue=n=r(t.endScaleValue),n<e&&(i=n,this._allOptions.endScaleValue=e,this._allOptions.startScaleValue=i,this._allOptions.inverted=!0)},_updateRange:function(){var t=this._allOptions;this._ranges={arg:{invert:t.rtlEnabled?!t.inverted:t.inverted,min:t.startScaleValue,max:t.endScaleValue,axisType:"continuous",dataType:"numeric"},val:{min:0,max:1,axisType:"continuous",dataType:"numeric"}}},_drawBullet:function(){var t=this._allOptions,e=t.startScaleValue!==t.endScaleValue,n=a(t.startScaleValue),i=a(t.endScaleValue),o=a(t.value),r=a(t.target);e&&i&&n&&r&&o&&(this._drawBarValue(),this._drawTarget(),this._drawZeroLevel())},_getTargetParams:function(){var t=this._allOptions,e=this._valueAxis.getTranslator(),n=this._argumentAxis.getTranslator().translate(t.target);return{points:[n,e.translate(.02),n,e.translate(.98)],stroke:t.targetColor,"stroke-width":t.targetWidth}},_getBarValueParams:function(){var t,e,n=this._allOptions,i=this._argumentAxis.getTranslator(),o=this._valueAxis.getTranslator(),r=n.startScaleValue,a=n.endScaleValue,s=n.value,l=o.translate(.1),u=o.translate(.9);return s>0?(t=r<=0?0:r,e=s>=a?a:s<t?t:s):(t=a>=0?0:a,e=s<r?r:s>t?t:s),{points:[t=i.translate(t),u,e=i.translate(e),u,e,l,t,l],fill:n.color}},_getCorrectCanvas:function(){return this._canvas},_getZeroLevelParams:function(){var t=this._valueAxis.getTranslator(),e=this._argumentAxis.getTranslator().translate(0);return{points:[e,t.translate(.02),e,t.translate(.98)],stroke:this._allOptions.targetColor,"stroke-width":1}},_drawZeroLevel:function(){var t=this._allOptions;0>t.endScaleValue||0<t.startScaleValue||!t.showZeroLevel||this._zeroLevelPath.attr(this._getZeroLevelParams()).sharp().append(this._renderer.root)},_drawTarget:function(){var t=this._allOptions,e=t.target;e>t.endScaleValue||e<t.startScaleValue||!t.showTarget||this._targetPath.attr(this._getTargetParams()).sharp().append(this._renderer.root)},_drawBarValue:function(){this._barValuePath.attr(this._getBarValueParams()).append(this._renderer.root)},_getTooltipCoords:function(){var t=this._canvas,e=this._renderer.getRootOffset(),n=this._barValuePath.getBBox();return{x:n.x+n.width/2+e.left,y:t.height/2+e.top}},_getTooltipData:function(){var t=this._tooltip,e=this._allOptions,n=e.value,i=e.target,o=t.formatValue(n),r=t.formatValue(i);return{originalValue:n,originalTarget:i,value:o,target:r,valueText:["Actual Value:",o,"Target Value:",r]}},_isTooltipEnabled:function(){return this._tooltipEnabled}});i(["color","targetColor","targetWidth","showTarget","showZeroLevel","value","target","startScaleValue","endScaleValue"],(function(t,e){s.prototype._optionChangesMap[e]="OPTIONS"})),n(8)("dxBullet",s),t.exports=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(42),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._templateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.Button=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,icon:r.string,onClick:r.func,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,stylingMode:r.oneOf(["text","outlined","contained"]),tabIndex:r.number,text:r.string,type:r.oneOf(["back","danger","default","normal","success"]),useSubmitBehavior:r.bool,validationGroup:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(284),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"buttonTemplate",render:"buttonRender",component:"buttonComponent",keyFn:"buttonKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ButtonGroup=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,items:r.array,keyExpr:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,rtlEnabled:r.bool,selectedItemKeys:r.array,selectedItems:r.array,selectionMode:r.oneOf(["multiple","single"]),stylingMode:r.oneOf(["text","outlined","contained"]),tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(285),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value",defaultZoomLevel:"zoomLevel"},e._templateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.Calendar=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,dateSerializationFormat:r.string,disabled:r.bool,disabledDates:r.oneOfType([r.array,r.func]),elementAttr:r.object,firstDayOfWeek:r.oneOf([0,1,2,3,4,5,6]),focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,maxZoomLevel:r.oneOf(["century","decade","month","year"]),minZoomLevel:r.oneOf(["century","decade","month","year"]),name:r.string,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,showTodayButton:r.bool,tabIndex:r.number,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),zoomLevel:r.oneOf(["century","decade","month","year"])},e.default=a},function(t,e,n){"use strict";var i=S(n(3)),o=S(n(45)),r=S(n(8)),a=n(4),s=S(n(2)),l=n(37),u=n(0),c=S(n(42)),d=S(n(62)),h=S(n(164)),f=S(n(740)),p=S(n(741)),m=S(n(33)),g=S(n(31)),_=S(n(26)),v=S(n(67)),y=S(n(18)),b=S(n(47)),w=S(n(10)),x=S(n(12)),C=n(132);function S(t){return t&&t.__esModule?t:{default:t}}var k={month:3,year:2,decade:1,century:0},I="month",T="year",E="decade",O="century",M=d.default.inherit({_activeStateUnit:".dx-calendar-cell",_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{hoverStateEnabled:!0,activeStateEnabled:!0,currentDate:new Date,value:null,dateSerializationFormat:void 0,min:new Date(1e3,0),max:new Date(3e3,0),firstDayOfWeek:void 0,zoomLevel:I,maxZoomLevel:I,minZoomLevel:O,showTodayButton:!1,cellTemplate:"cell",disabledDates:null,onCellClick:null,onContouredChanged:null,hasFocus:function(t){return t.hasClass("dx-state-focused")}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}}])},_supportedKeys:function(){return(0,u.extend)(this.callBase(),{rightArrow:function(t){t.preventDefault(),t.ctrlKey?this._waitRenderView(1):this._moveCurrentDateByOffset(1*this._getRtlCorrection())},leftArrow:function(t){t.preventDefault(),t.ctrlKey?this._waitRenderView(-1):this._moveCurrentDateByOffset(-1*this._getRtlCorrection())},upArrow:function(t){if(t.preventDefault(),t.ctrlKey)this._navigateUp();else{if(b.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(-1*this._view.option("colCount"))}},downArrow:function(t){if(t.preventDefault(),t.ctrlKey)this._navigateDown();else{if(b.default.isAnimating(this._view.$element()))return;this._moveCurrentDateByOffset(1*this._view.option("colCount"))}},home:function(t){t.preventDefault();var e=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("min");if(!this._view.isDateDisabled(n)){var o=_.default.sameView(e,n,i)?i:_.default.getViewFirstCellDate(e,n);this._moveToClosestAvailableDate(o)}},end:function(t){t.preventDefault();var e=this.option("zoomLevel"),n=this.option("currentDate"),i=this._dateOption("max");if(!this._view.isDateDisabled(n)){var o=_.default.sameView(e,n,i)?i:_.default.getViewLastCellDate(e,n);this._moveToClosestAvailableDate(o)}},pageUp:function(t){t.preventDefault(),this._waitRenderView(-1*this._getRtlCorrection())},pageDown:function(t){t.preventDefault(),this._waitRenderView(1*this._getRtlCorrection())},tab:a.noop,enter:function(t){if(this._isMaxZoomLevel()){if(!this._view.isDateDisabled(this.option("currentDate"))){var e=this._updateTimeComponent(this.option("currentDate"));this._dateValue(e,t)}}else this._navigateDown()}})},_getSerializationFormat:function(t){var e=this.option(t||"value");return this.option("dateSerializationFormat")?this.option("dateSerializationFormat"):s.default.isNumeric(e)?"number":s.default.isString(e)?v.default.getDateSerializationFormat(e):void 0},_convertToDate:function(t,e){return v.default.deserializeDate(t)},_dateValue:function(t,e){e&&this._saveValueChangeEvent(e),this._dateOption("value",t)},_dateOption:function(t,e){if(1===arguments.length)return this._convertToDate(this.option(t),t);var n=this._getSerializationFormat(t);this.option(t,v.default.serializeDate(e,n))},_shiftDate:function(t,e,n,i){switch(t){case I:e.setDate(e.getDate()+n*i);break;case T:e.setMonth(e.getMonth()+n*i);break;case E:e.setFullYear(e.getFullYear()+n*i);break;case O:e.setFullYear(e.getFullYear()+10*n*i)}},_moveCurrentDateByOffset:function(t){var e=this.option("currentDate"),n=new Date(e),i=this.option("zoomLevel");this._shiftDate(i,n,t,1);for(var o=this._getMaxDate(),r=this._getMinDate(),a=this._areDatesInNeighborView(i,n,e),s=(0,l.inRange)(n,r,o)&&a,u=new Date(n);s;){if(s&&!this._view.isDateDisabled(u)){n=u;break}this._shiftDate(i,u,t,1),a=this._areDatesInNeighborView(i,u,e),s=(0,l.inRange)(u,r,o)&&a}this._view.isDateDisabled(e)||this._view.isDateDisabled(n)?this._waitRenderView(t>0?1:-1):this.option("currentDate",n)},_areDatesInSameView:function(t,e,n){switch(t){case I:return e.getMonth()===n.getMonth();case T:return e.getYear()===n.getYear();case E:return parseInt(e.getYear()/10)===parseInt(n.getYear()/10);case O:return parseInt(e.getYear()/100)===parseInt(n.getYear()/100)}},_areDatesInNeighborView:function(t,e,n){switch(t){case I:return function(t,e){var n=Math.abs(t-e);return Math.min(n,12-n)}(e.getMonth(),n.getMonth())<=1;case T:return Math.abs(e.getYear()-n.getYear())<=1;case E:return Math.abs(e.getYear()-n.getYear())<=10;case O:return Math.abs(e.getYear()-n.getYear())<=100}},_moveToClosestAvailableDate:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.option("currentDate"),i=new Date(n),o=this.option("zoomLevel"),r=!this._isDateNotAvailable(i),a=r,s=r,l=new Date(i),u=new Date(i);do{if(a){i=l;break}if(s){i=u;break}this._shiftDate(o,l,1,1),this._shiftDate(o,u,1,-1),t=this._areDatesInSameView(o,l,n),e=this._areDatesInSameView(o,u,n),a=t&&!this._isDateNotAvailable(l),s=e&&!this._isDateNotAvailable(u)}while(t||e);this.option("currentDate",i)},_isDateNotAvailable:function(t){var e=this._getMaxDate(),n=this._getMinDate();return!(0,l.inRange)(t,n,e)||this._view.isDateDisabled(t)},_init:function(){this.callBase(),this._correctZoomLevel(),this._initCurrentDate(),this._initActions()},_correctZoomLevel:function(){var t=this.option("minZoomLevel"),e=this.option("maxZoomLevel"),n=this.option("zoomLevel");k[e]<k[t]||(k[n]>k[e]?this.option("zoomLevel",e):k[n]<k[t]&&this.option("zoomLevel",t))},_initCurrentDate:function(){var t=this._getNormalizedDate(this._dateOption("value"))||this._getNormalizedDate(this.option("currentDate"));this.option("currentDate",t)},_getNormalizedDate:function(t){return t=_.default.normalizeDate(t,this._getMinDate(),this._getMaxDate()),s.default.isDefined(t)?new Date(t):t},_initActions:function(){this._cellClickAction=this._createActionByOption("onCellClick"),this._onContouredChanged=this._createActionByOption("onContouredChanged")},_initTemplates:function(){this._templateManager.addDefaultTemplates({cell:new C.FunctionTemplate((function(t){var e=t.model;(0,i.default)(t.container).append((0,i.default)("<span>").text(e&&e.text||String(e)))}))}),this.callBase()},_updateCurrentDate:function(t){if(b.default.isAnimating(this._$viewsWrapper)&&b.default.stop(this._$viewsWrapper,!0),this._getMinDate()>this._getMaxDate())this.option("currentDate",new Date);else{var e=this._getNormalizedDate(t);if(t.getTime()===e.getTime()){var n=this._getViewsOffset(this._view.option("date"),e);0!==n&&!this._isMaxZoomLevel()&&this._isOtherViewCellClicked&&(n=0),this._view&&0!==n&&!this._suppressNavigation?this._navigate(n,e):(this._renderNavigator(),this._setViewContoured(e),this._updateAriaId(e))}else this.option("currentDate",new Date(e))}},_setViewContoured:function(t){this.option("hasFocus")(this._focusTarget())&&this._view.option("contouredDate",t)},_getMinDate:function(){return this.min||(this.min=this._dateOption("min")||new Date(1e3,0)),this.min},_getMaxDate:function(){return this.max||(this.max=this._dateOption("max")||new Date(3e3,0)),this.max},_getViewsOffset:function(t,e){var n,i=this.option("zoomLevel");if(i===I)return this._getMonthsOffset(t,e);switch(i){case O:n=100;break;case E:n=10;break;default:n=1}return parseInt(e.getFullYear()/n)-parseInt(t.getFullYear()/n)},_getMonthsOffset:function(t,e){return 12*(e.getFullYear()-t.getFullYear())+(e.getMonth()-t.getMonth())},_waitRenderView:function(t){var e=this;if(!this._alreadyViewRender){this._alreadyViewRender=!0;var n=this._getDateByOffset(t*this._getRtlCorrection());this._moveToClosestAvailableDate(n),this._waitRenderViewTimeout=setTimeout((function(){e._alreadyViewRender=!1}))}},_getRtlCorrection:function(){return this.option("rtlEnabled")?-1:1},_getDateByOffset:function(t,e){var n=(e=new Date(e||this.option("currentDate"))).getDate(),i=_.default.getDifferenceInMonth(this.option("zoomLevel"))*t;e.setDate(1),e.setMonth(e.getMonth()+i);var o=_.default.getLastMonthDate(e).getDate();return e.setDate(n>o?o:n),e},_focusTarget:function(){return this.$element()},_initMarkup:function(){this._renderSubmitElement(),this.callBase();var t=this.$element();t.addClass("dx-calendar"),this._renderBody(),t.append(this.$body),this._renderViews(),this._renderNavigator(),t.append(this._navigator.$element()),this._renderSwipeable(),this._renderFooter(),this._updateAriaSelected(),this._updateAriaId(),this._moveToClosestAvailableDate()},_render:function(){this.callBase(),this._setViewContoured(this.option("currentDate"))},_renderBody:function(){this._$viewsWrapper||(this.$body=(0,i.default)("<div>").addClass("dx-calendar-body"),this._$viewsWrapper=(0,i.default)("<div>").addClass("dx-calendar-views-wrapper"),this.$body.append(this._$viewsWrapper))},_getKeyboardListeners:function(){return this.callBase().concat([this._view])},_renderViews:function(){this.$element().addClass("dx-calendar-view-"+this.option("zoomLevel"));var t=this.option("currentDate");if(this._view=this._renderSpecificView(t),w.default.hasWindow()){var e=this._getDateByOffset(-1,t);this._beforeView=this._isViewAvailable(e)?this._renderSpecificView(e):null;var n=this._getDateByOffset(1,t);n.setDate(1),this._afterView=this._isViewAvailable(n)?this._renderSpecificView(n):null}this._translateViews()},_renderSpecificView:function(t){return new(0,p.default[this.option("zoomLevel")])((0,i.default)("<div>").appendTo(this._$viewsWrapper),this._viewConfig(t))},_viewConfig:function(t){var e=this.option("disabledDates");return e=s.default.isFunction(e)?this._injectComponent(e.bind(this)):e,{date:t,min:this._getMinDate(),max:this._getMaxDate(),firstDayOfWeek:this.option("firstDayOfWeek"),value:this._dateOption("value"),rtlEnabled:this.option("rtlEnabled"),disabled:this.option("disabled"),tabIndex:void 0,focusStateEnabled:this.option("focusStateEnabled"),hoverStateEnabled:this.option("hoverStateEnabled"),disabledDates:e,onCellClick:this._cellClickHandler.bind(this),cellTemplate:this._getTemplateByOption("cellTemplate"),allowValueSelection:this._isMaxZoomLevel()}},_injectComponent:function(t){var e=this;return function(n){return(0,u.extend)(n,{component:e}),t(n)}},_isViewAvailable:function(t){var e=this.option("zoomLevel"),n=_.default.getViewMinBoundaryDate(e,this._getMinDate()),i=_.default.getViewMaxBoundaryDate(e,this._getMaxDate());return _.default.dateInRange(t,n,i)},_translateViews:function(){m.default.move(this._view.$element(),{left:0,top:0}),this._beforeView&&m.default.move(this._beforeView.$element(),{left:this._getViewPosition(-1),top:0}),this._afterView&&m.default.move(this._afterView.$element(),{left:this._getViewPosition(1),top:0})},_getViewPosition:function(t){return 100*t*(this.option("rtlEnabled")&&!g.default.msie?-1:1)+"%"},_cellClickHandler:function(t){var e=this.option("zoomLevel"),n=_.default.getViewDown(e),i=this._isMaxZoomLevel();if(n&&!i)this._navigateDown(t.event.currentTarget);else{var o=this._updateTimeComponent(t.value);this._dateValue(o,t.event),this._cellClickAction(t)}},_updateTimeComponent:function(t){var e=new Date(t),n=this._dateOption("value");return n&&(e.setHours(n.getHours()),e.setMinutes(n.getMinutes()),e.setSeconds(n.getSeconds()),e.setMilliseconds(n.getMilliseconds())),e},_isMaxZoomLevel:function(){return this.option("zoomLevel")===this.option("maxZoomLevel")},_navigateDown:function(t){var e=this.option("zoomLevel");if(!this._isMaxZoomLevel()){var n=_.default.getViewDown(e);if(n){var o=this._view.option("contouredDate")||this._view.option("date");t&&(o=(0,i.default)(t).data("dxDateValueKey")),this._isOtherViewCellClicked=!0,this.option("currentDate",o),this.option("zoomLevel",n),this._isOtherViewCellClicked=!1,this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate")))}}},_renderNavigator:function(){this._navigator||(this._navigator=new f.default((0,i.default)("<div>"),this._navigatorConfig())),this._navigator.option("text",this._view.getNavigatorCaption()),this._updateButtonsVisibility()},_navigatorConfig:function(){return{text:this._view.getNavigatorCaption(),onClick:this._navigatorClickHandler.bind(this),onCaptionClick:this._navigateUp.bind(this),rtlEnabled:this.option("rtlEnabled")}},_navigatorClickHandler:function(t){var e=this._getDateByOffset(t.direction,this.option("currentDate"));this._moveToClosestAvailableDate(e),this._updateNavigatorCaption(-t.direction*this._getRtlCorrection())},_navigateUp:function(){var t=this.option("zoomLevel"),e=_.default.getViewUp(t);e&&!this._isMinZoomLevel(t)&&(this.option("zoomLevel",e),this._renderNavigator(),this._animateShowView(),this._moveToClosestAvailableDate(),this._setViewContoured(this._getNormalizedDate(this.option("currentDate"))))},_isMinZoomLevel:function(t){var e=this._getMinDate(),n=this._getMaxDate();return _.default.sameView(t,e,n)||this.option("minZoomLevel")===t},_updateButtonsVisibility:function(){this._navigator.toggleButton("next",!s.default.isDefined(this._getRequiredView("next"))),this._navigator.toggleButton("prev",!s.default.isDefined(this._getRequiredView("prev")))},_renderSwipeable:function(){this._swipeable||(this._swipeable=this._createComponent(this.$element(),h.default,{onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._viewWidth.bind(this)}))},_swipeStartHandler:function(t){b.default.stop(this._$viewsWrapper,!0),t.event.maxLeftOffset=this._getRequiredView("next")?1:0,t.event.maxRightOffset=this._getRequiredView("prev")?1:0},_getRequiredView:function(t){var e,n=this.option("rtlEnabled");return"next"===t?e=n?this._beforeView:this._afterView:"prev"===t&&(e=n?this._afterView:this._beforeView),e},_swipeUpdateHandler:function(t){var e=t.event.offset;m.default.move(this._$viewsWrapper,{left:e*this._viewWidth(),top:0}),this._updateNavigatorCaption(e)},_swipeEndHandler:function(t){var e=t.event.targetOffset,n=e?e/Math.abs(e):0;if(0!==n){var i=this._getDateByOffset(-n*this._getRtlCorrection());this._isDateInInvalidRange(i)&&(i=n>=0?new Date(this._getMinDate()):new Date(this._getMaxDate())),this.option("currentDate",i)}else this._animateWrapper(0,250)},_viewWidth:function(){return this._viewWidthValue||(this._viewWidthValue=this.$element().width()),this._viewWidthValue},_updateNavigatorCaption:function(t){t*=this._getRtlCorrection();var e=this._view;t>.5&&this._beforeView?e=this._beforeView:t<-.5&&this._afterView&&(e=this._afterView),this._navigator.option("text",e.getNavigatorCaption())},_isDateInInvalidRange:function(t){if(!this._view.isBoundary(t)){var e=this._getMinDate(),n=this._getMaxDate(),i=_.default.normalizeDate(t,e,n);return i===e||i===n}},_renderFooter:function(){var t=this.option("showTodayButton");if(t){var e=this._createComponent((0,i.default)("<a>"),c.default,{focusStateEnabled:!1,text:x.default.format("dxCalendar-todayButtonText"),onClick:function(){this._toTodayView()}.bind(this),integrationOptions:{}}).$element().addClass("dx-calendar-today-button");this._$footer=(0,i.default)("<div>").addClass("dx-calendar-footer").append(e),this.$element().append(this._$footer)}this.$element().toggleClass("dx-calendar-with-footer",t)},_renderSubmitElement:function(){this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){var e=this._convertToDate(t);this._getSubmitElement().val(v.default.serializeDate(e,"yyyy-MM-dd"))},_getSubmitElement:function(){return this._$submitElement},_animateShowView:function(){return b.default.stop(this._view.$element(),!0),this._popAnimationView(this._view,.6,1,250).promise()},_popAnimationView:function(t,e,n,i){return b.default.animate(t.$element(),{type:"pop",from:{scale:e,opacity:e},to:{scale:n,opacity:n},duration:i})},_navigate:function(t,e){if(0!==t&&1!==Math.abs(t)&&this._isViewAvailable(e)){var n=this._renderSpecificView(e);t>0?(this._afterView&&this._afterView.$element().remove(),this._afterView=n):(this._beforeView&&this._beforeView.$element().remove(),this._beforeView=n),this._translateViews()}var i=-this._getRtlCorrection()*(t>0?1:t<0?-1:0)*this._viewWidth();this._$viewsWrapper.position().left!==i&&(this._preventViewChangeAnimation?this._wrapperAnimationEndHandler(t,e):this._animateWrapper(i,250).done(this._wrapperAnimationEndHandler.bind(this,t,e)))},_animateWrapper:function(t,e){return b.default.animate(this._$viewsWrapper,{type:"slide",from:{left:this._$viewsWrapper.position().left},to:{left:t},duration:e})},_toTodayView:function(){var t=new Date;this._isMaxZoomLevel()?this._dateOption("value",t):(this._preventViewChangeAnimation=!0,this.option("zoomLevel",this.option("maxZoomLevel")),this._dateOption("value",t),this._animateShowView(),this._preventViewChangeAnimation=!1)},_wrapperAnimationEndHandler:function(t,e){this._rearrangeViews(t),this._translateViews(),this._resetLocation(),this._renderNavigator(),this._setViewContoured(e),this._updateAriaId(e)},_rearrangeViews:function(t){var e,n,i;if(0!==t&&(t<0?(e=1,n="_beforeView",i="_afterView"):(e=-1,n="_afterView",i="_beforeView"),this[n])){var o=this[n].option("date");this[i]&&this[i].$element().remove(),t===e?this[i]=this._view:(this[i]=this._renderSpecificView(this._getDateByOffset(e,o)),this._view.$element().remove()),this._view=this[n];var r=this._getDateByOffset(-e,o);this[n]=this._isViewAvailable(r)?this._renderSpecificView(r):null}},_resetLocation:function(){m.default.move(this._$viewsWrapper,{left:0,top:0})},_clean:function(){this.callBase(),this._clearViewWidthCache(),delete this._$viewsWrapper,delete this._navigator,delete this._$footer},_clearViewWidthCache:function(){delete this._viewWidthValue},_disposeViews:function(){this._view.$element().remove(),this._beforeView&&this._beforeView.$element().remove(),this._afterView&&this._afterView.$element().remove(),delete this._view,delete this._beforeView,delete this._afterView},_dispose:function(){clearTimeout(this._waitRenderViewTimeout),this.callBase()},_refreshViews:function(){this._disposeViews(),this._renderViews()},_visibilityChanged:function(){this._translateViews()},_focusInHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",this.option("currentDate"))},_focusOutHandler:function(){this.callBase.apply(this,arguments),this._view.option("contouredDate",null)},_updateViewsValue:function(t){var e=t?new Date(t):null;this._view.option("value",e),this._beforeView&&this._beforeView.option("value",e),this._afterView&&this._afterView.option("value",e)},_updateAriaSelected:function(t,e){t=t||this._dateOption("value");var n=this._view._getCellByDate(e),i=this._view._getCellByDate(t);this.setAria("selected",void 0,n),this.setAria("selected",!0,i),t&&this.option("currentDate").getTime()===t.getTime()&&this._updateAriaId(t)},_updateAriaId:function(t){t=t||this.option("currentDate");var e="dx-"+new o.default,n=this._view._getCellByDate(t);this.setAria("id",e,n),this.setAria("activedescendant",e),this._onContouredChanged(e)},_suppressingNavigation:function(t,e){this._suppressNavigation=!0,t.apply(this,e),delete this._suppressNavigation},_optionChanged:function(t){var e=t.value,n=t.previousValue;switch(t.name){case"width":this.callBase(t),this._clearViewWidthCache();break;case"min":case"max":this.min=void 0,this.max=void 0,this._suppressingNavigation(this._updateCurrentDate,[this.option("currentDate")]),this._refreshViews(),this._renderNavigator();break;case"firstDayOfWeek":this._refreshViews(),this._updateButtonsVisibility();break;case"currentDate":this.setAria("id",void 0,this._view._getCellByDate(n)),this._updateCurrentDate(e);break;case"zoomLevel":this.$element().removeClass("dx-calendar-view-"+n),this._correctZoomLevel(),this._refreshViews(),this._renderNavigator(),this._updateAriaId();break;case"minZoomLevel":case"maxZoomLevel":this._correctZoomLevel(),this._updateButtonsVisibility();break;case"value":e=this._convertToDate(e),n=this._convertToDate(n),this._updateAriaSelected(e,n),this.option("currentDate",s.default.isDefined(e)?new Date(e):new Date),this._updateViewsValue(e),this._setSubmitValue(e),this.callBase(t);break;case"disabled":this._view.option("disabled",e),this.callBase(t);break;case"onCellClick":this._view.option("onCellClick",e);break;case"onContouredChanged":this._onContouredChanged=this._createActionByOption("onContouredChanged");break;case"disabledDates":case"dateSerializationFormat":case"cellTemplate":case"showTodayButton":this._invalidate();break;case"hasFocus":break;default:this.callBase(t)}}});(0,r.default)("dxCalendar",M),t.exports=M},function(t,e,n){"use strict";var i=n(3),o=n(0).extend,r=n(20),a=n(42),s=r.inherit({_getDefaultOptions:function(){return o(this.callBase(),{onClick:null,onCaptionClick:null,text:""})},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this._clickAction=this._createActionByOption("onClick"),this._captionClickAction=this._createActionByOption("onCaptionClick")},_initMarkup:function(){this.callBase(),this.$element().addClass("dx-calendar-navigator"),this._renderButtons(),this._renderCaption()},_renderButtons:function(){var t=this,e=this.option("rtlEnabled")?-1:1;this._prevButton=this._createComponent(i("<a>"),a,{focusStateEnabled:!1,icon:"chevronleft",onClick:function(n){t._clickAction({direction:-e,event:n})},integrationOptions:{}});var n=this._prevButton.$element().addClass("dx-calendar-navigator-previous-view").addClass("dx-calendar-navigator-previous-month");this._nextButton=this._createComponent(i("<a>"),a,{focusStateEnabled:!1,icon:"chevronright",onClick:function(n){t._clickAction({direction:e,event:n})},integrationOptions:{}});var o=this._nextButton.$element().addClass("dx-calendar-navigator-next-view").addClass("dx-calendar-navigator-next-month");this._caption=this._createComponent(i("<a>").addClass("dx-calendar-caption-button"),a,{focusStateEnabled:!1,onClick:function(e){t._captionClickAction({event:e})},integrationOptions:{}});var r=this._caption.$element();this.$element().append(n,r,o)},_renderCaption:function(){this._caption.option("text",this.option("text"))},toggleButton:function(t,e){var n=this["_"+t+"Button"];n&&(n.option("disabled",e),n.$element().toggleClass("dx-calendar-disabled-navigator-link",e))},_optionChanged:function(t){switch(t.name){case"text":this._renderCaption();break;default:this.callBase(t)}}});t.exports=s},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(742)),r=n(4),a=n(26),s=n(0),l=n(43),u=n(67),c=n(2);function d(t){return t&&t.__esModule?t:{default:t}}var h={month:o.default.inherit({_getViewName:function(){return"month"},_getDefaultOptions:function(){return(0,s.extend)(this.callBase(),{firstDayOfWeek:void 0,rowCount:6,colCount:7})},_renderImpl:function(){this.callBase(),this._renderHeader()},_renderBody:function(){this.callBase(),this._$table.find(".".concat("dx-calendar-other-view")).addClass("dx-calendar-other-month")},_renderFocusTarget:r.noop,getCellAriaLabel:function(t){return(0,l.format)(t,"longdate")},_renderHeader:function(){var t=(0,i.default)("<tr>"),e=(0,i.default)("<thead>").append(t);this._$table.prepend(e);for(var n=0,o=this.option("colCount");n<o;n++)this._renderHeaderCell(n,t)},_renderHeaderCell:function(t,e){var n=this._getDayCaption(this._getFirstDayOfWeek()+t),o=n.full,r=n.abbreviated,a=(0,i.default)("<th>").attr({scope:"col",abbr:o}).text(r);this._appendCell(e,a)},getNavigatorCaption:function(){return(0,l.format)(this.option("date"),"monthandyear")},_isTodayCell:function(t){var e=new Date;return(0,a.sameDate)(t,e)},_isDateOutOfRange:function(t){var e=this.option("min"),n=this.option("max");return!(0,a.dateInRange)(t,e,n,"date")},_isOtherView:function(t){return t.getMonth()!==this.option("date").getMonth()},_getCellText:function(t){return(0,l.format)(t,"d")},_getDayCaption:function(t){var e=t%this.option("colCount");return{full:(0,l.getDayNames)()[e],abbreviated:(0,l.getDayNames)("abbreviated")[e]}},_getFirstCellData:function(){var t=(0,a.getFirstMonthDate)(this.option("date")),e=this._getFirstDayOfWeek()-t.getDay(),n=this.option("colCount");return e>=0&&(e-=n),t.setDate(t.getDate()+e),t},_getNextCellData:function(t){return(t=new Date(t)).setDate(t.getDate()+1),t},_getFirstDayOfWeek:function(){return(0,c.isDefined)(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):(0,l.firstDayOfWeekIndex)()},_getCellByDate:function(t){return this._$table.find("td[data-value='".concat((0,u.serializeDate)(t,(0,a.getShortDateFormat)()),"']"))},isBoundary:function(t){return(0,a.sameMonthAndYear)(t,this.option("min"))||(0,a.sameMonthAndYear)(t,this.option("max"))},_getDefaultDisabledDatesHandler:function(t){return function(e){if(t.some((function(t){return(0,a.sameDate)(t,e.date)})))return!0}}}),year:o.default.inherit({_getViewName:function(){return"year"},_isTodayCell:function(t){return(0,a.sameMonthAndYear)(t,new Date)},_isDateOutOfRange:function(t){return!(0,a.dateInRange)(t,(0,a.getFirstMonthDate)(this.option("min")),(0,a.getLastMonthDate)(this.option("max")))},_isOtherView:function(){return!1},_getCellText:function(t){return(0,l.getMonthNames)("abbreviated")[t.getMonth()]},_getFirstCellData:function(){var t=new Date(this.option("date"));return t.setDate(1),t.setMonth(0),t},_getNextCellData:function(t){return(t=new Date(t)).setMonth(t.getMonth()+1),t},_getCellByDate:function(t){var e=new Date(t);return e.setDate(1),this._$table.find("td[data-value='".concat((0,u.serializeDate)(e,(0,a.getShortDateFormat)()),"']"))},getCellAriaLabel:function(t){return(0,l.format)(t,"monthandyear")},getNavigatorCaption:function(){return(0,l.format)(this.option("date"),"yyyy")},isBoundary:function(t){return(0,a.sameYear)(t,this.option("min"))||(0,a.sameYear)(t,this.option("max"))}}),decade:o.default.inherit({_getViewName:function(){return"decade"},_isTodayCell:function(t){return(0,a.sameYear)(t,new Date)},_isDateOutOfRange:function(t){var e=this.option("min"),n=this.option("max");return!(0,a.dateInRange)(t.getFullYear(),e&&e.getFullYear(),n&&n.getFullYear())},_isOtherView:function(t){var e=new Date(t);return e.setMonth(1),!(0,a.sameDecade)(e,this.option("date"))},_getCellText:function(t){return(0,l.format)(t,"yyyy")},_getFirstCellData:function(){var t=(0,a.getFirstYearInDecade)(this.option("date"))-1;return new Date(t,0,1)},_getNextCellData:function(t){return(t=new Date(t)).setFullYear(t.getFullYear()+1),t},getNavigatorCaption:function(){var t=this.option("date"),e=(0,a.getFirstYearInDecade)(t),n=new Date(t),i=new Date(t);return n.setFullYear(e),i.setFullYear(e+9),(0,l.format)(n,"yyyy")+"-"+(0,l.format)(i,"yyyy")},_isValueOnCurrentView:function(t,e){return(0,a.sameDecade)(t,e)},_getCellByDate:function(t){var e=new Date(t);return e.setDate(1),e.setMonth(0),this._$table.find("td[data-value='".concat((0,u.serializeDate)(e,(0,a.getShortDateFormat)()),"']"))},isBoundary:function(t){return(0,a.sameDecade)(t,this.option("min"))||(0,a.sameDecade)(t,this.option("max"))}}),century:o.default.inherit({_getViewName:function(){return"century"},_isTodayCell:function(t){return(0,a.sameDecade)(t,new Date)},_isDateOutOfRange:function(t){var e=(0,a.getFirstYearInDecade)(t),n=(0,a.getFirstYearInDecade)(this.option("min")),i=(0,a.getFirstYearInDecade)(this.option("max"));return!(0,a.dateInRange)(e,n,i)},_isOtherView:function(t){var e=new Date(t);return e.setMonth(1),!(0,a.sameCentury)(e,this.option("date"))},_getCellText:function(t){var e=(0,l.format)(t,"yyyy"),n=new Date(t);return n.setFullYear(n.getFullYear()+9),e+" - "+(0,l.format)(n,"yyyy")},_getFirstCellData:function(){var t=(0,a.getFirstDecadeInCentury)(this.option("date"))-10;return new Date(t,0,1)},_getNextCellData:function(t){return(t=new Date(t)).setFullYear(t.getFullYear()+10),t},_getCellByDate:function(t){var e=new Date(t);return e.setDate(1),e.setMonth(0),e.setFullYear((0,a.getFirstYearInDecade)(e)),this._$table.find("td[data-value='".concat((0,u.serializeDate)(e,(0,a.getShortDateFormat)()),"']"))},getNavigatorCaption:function(){var t=this.option("date"),e=(0,a.getFirstDecadeInCentury)(t),n=new Date(t),i=new Date(t);return n.setFullYear(e),i.setFullYear(e+99),(0,l.format)(n,"yyyy")+"-"+(0,l.format)(i,"yyyy")},isBoundary:function(t){return(0,a.sameCentury)(t,this.option("min"))||(0,a.sameCentury)(t,this.option("max"))}})};t.exports=h},function(t,e,n){"use strict";var i=g(n(3)),o=g(n(15)),r=g(n(6)),a=g(n(57)),s=g(n(17)),l=g(n(20)),u=n(26),c=n(0),d=n(4),h=n(67),f=n(12),p=n(11),m=n(25);function g(t){return t&&t.__esModule?t:{default:t}}var _=l.default.abstract,v=(0,p.addNamespace)(m.name,"dxCalendar"),y=l.default.inherit({_getViewName:function(){return"base"},_getDefaultOptions:function(){return(0,c.extend)(this.callBase(),{date:new Date,focusStateEnabled:!1,cellTemplate:null,disabledDates:null,onCellClick:null,rowCount:3,colCount:4,allowValueSelection:!0})},_init:function(){this.callBase();var t=this.option("value");this.option("value",new Date(t)),this.option("value").valueOf()||this.option("value",new Date(0,0,0,0,0,0))},_initMarkup:function(){this.callBase(),this._renderImpl()},_renderImpl:function(){this.$element().append(this._createTable()),this._createDisabledDatesHandler(),this._renderBody(),this._renderContouredDate(),this._renderValue(),this._renderEvents()},_createTable:function(){return this._$table=(0,i.default)("<table>"),this.setAria({label:(0,f.format)("dxCalendar-ariaWidgetName"),role:"grid"},this._$table),this._$table},_renderBody:function(){this.$body=(0,i.default)("<tbody>").appendTo(this._$table);for(var t={cellDate:this._getFirstCellData(),prevCellDate:null},e=0,n=this.option("rowCount");e<n;e++){t.row=this._createRow();for(var o=0,r=this.option("colCount");o<r;o++)this._renderCell(t,o)}},_createRow:function(){var t=o.default.createElement("tr");return this.setAria("role","row",(0,i.default)(t)),this.$body.get(0).appendChild(t),t},_appendCell:function(t,e){this._appendMethodName||this._cacheAppendMethodName(),(0,i.default)(t)[this._appendMethodName](e)},_cacheAppendMethodName:function(t){this._appendMethodName=(null!==t&&void 0!==t?t:this.option("rtlEnabled"))?"prepend":"append"},_createCell:function(t){var e=o.default.createElement("td"),n=(0,i.default)(e);return e.className=this._getClassNameByDate(t),e.setAttribute("data-value",(0,h.serializeDate)(t,(0,u.getShortDateFormat)())),a.default.data(e,"dxDateValueKey",t),this.setAria({role:"gridcell",label:this.getCellAriaLabel(t)},n),{cell:e,$cell:n}},_renderCell:function(t,e){var n=t.cellDate,i=t.prevCellDate,o=t.row;i&&(0,u.fixTimezoneGap)(i,n),t.prevCellDate=n;var r=this._createCell(n),a=r.cell,s=r.$cell,l=this.option("cellTemplate");this._appendCell(o,a),l?l.render(this._prepareCellTemplateData(n,e,s)):a.innerHTML=this._getCellText(n),t.cellDate=this._getNextCellData(n)},_getClassNameByDate:function(t){var e="dx-calendar-cell";return this._isTodayCell(t)&&(e+=" ".concat("dx-calendar-today")),(this._isDateOutOfRange(t)||this.isDateDisabled(t))&&(e+=" ".concat("dx-calendar-empty-cell")),this._isOtherView(t)&&(e+=" ".concat("dx-calendar-other-view")),e},_prepareCellTemplateData:function(t,e,n){return{model:{text:this._getCellText(t),date:t,view:this._getViewName()},container:s.default.getPublicElement(n),index:e}},_renderEvents:function(){var t=this;this._createCellClickAction(),r.default.off(this._$table,v),r.default.on(this._$table,v,"td",(function(e){(0,i.default)(e.currentTarget).hasClass("dx-calendar-empty-cell")||t._cellClickAction({event:e,value:(0,i.default)(e.currentTarget).data("dxDateValueKey")})}))},_createCellClickAction:function(){this._cellClickAction=this._createActionByOption("onCellClick")},_createDisabledDatesHandler:function(){var t=this.option("disabledDates");this._disabledDatesHandler=Array.isArray(t)?this._getDefaultDisabledDatesHandler(t):t||d.noop},_getDefaultDisabledDatesHandler:function(t){return d.noop},_isTodayCell:_,_isDateOutOfRange:_,isDateDisabled:function(t){var e={date:t,view:this._getViewName()};return this._disabledDatesHandler(e)},_isOtherView:_,_getCellText:_,_getFirstCellData:_,_getNextCellData:_,_renderContouredDate:function(t){if(this.option("focusStateEnabled")){t=t||this.option("contouredDate");var e=this._$table.find(".".concat("dx-calendar-contoured-date")),n=this._getCellByDate(t);e.removeClass("dx-calendar-contoured-date"),n.addClass("dx-calendar-contoured-date")}},_changeValue:function(t){if(t){var e=this.option("value"),n=e?new Date(e):new Date;n.setDate(t.getDate()),n.setMonth(t.getMonth()),n.setFullYear(t.getFullYear()),n.setDate(t.getDate()),this.option("value",n)}else this.option("value",null)},_renderValue:function(){if(this.option("allowValueSelection")){var t=this.option("value"),e=this._getCellByDate(t);this._selectedCell&&this._selectedCell.removeClass("dx-calendar-selected-date"),e.addClass("dx-calendar-selected-date"),this._selectedCell=e}},getCellAriaLabel:function(t){return this._getCellText(t)},_getFirstAvailableDate:function(){var t=this.option("date"),e=this.option("min");return t=(0,u.getFirstDateView)(this._getViewName(),t),new Date(e&&t<e?e:t)},_getCellByDate:_,isBoundary:_,_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"value":this._renderValue();break;case"contouredDate":this._renderContouredDate(n);break;case"onCellClick":this._createCellClickAction();break;case"disabledDates":case"cellTemplate":this._invalidate();break;case"rtlEnabled":this._cacheAppendMethodName(n),this.callBase(t);break;default:this.callBase(t)}}});t.exports=y},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(744),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultArgumentAxis:"argumentAxis",defaultLoadingIndicator:"loadingIndicator",defaultValueAxis:"valueAxis"},e._expectedChildren={adaptiveLayout:{optionName:"adaptiveLayout",isCollectionItem:!1},animation:{optionName:"animation",isCollectionItem:!1},annotation:{optionName:"annotations",isCollectionItem:!0},argumentAxis:{optionName:"argumentAxis",isCollectionItem:!1},chartTitle:{optionName:"title",isCollectionItem:!1},commonAnnotationSettings:{optionName:"commonAnnotationSettings",isCollectionItem:!1},commonAxisSettings:{optionName:"commonAxisSettings",isCollectionItem:!1},commonPaneSettings:{optionName:"commonPaneSettings",isCollectionItem:!1},commonSeriesSettings:{optionName:"commonSeriesSettings",isCollectionItem:!1},crosshair:{optionName:"crosshair",isCollectionItem:!1},dataPrepareSettings:{optionName:"dataPrepareSettings",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},legend:{optionName:"legend",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},pane:{optionName:"panes",isCollectionItem:!0},scrollBar:{optionName:"scrollBar",isCollectionItem:!1},series:{optionName:"series",isCollectionItem:!0},seriesTemplate:{optionName:"seriesTemplate",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1},valueAxis:{optionName:"valueAxis",isCollectionItem:!0},zoomAndPan:{optionName:"zoomAndPan",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Chart=l,l.propTypes={adaptiveLayout:r.object,adjustOnZoom:r.bool,animation:r.oneOfType([r.bool,r.object]),annotations:r.array,argumentAxis:r.object,autoHidePointMarkers:r.bool,barGroupPadding:r.number,barGroupWidth:r.number,commonAnnotationSettings:r.object,commonAxisSettings:r.object,commonPaneSettings:r.object,commonSeriesSettings:r.object,containerBackgroundColor:r.string,crosshair:r.object,customizeAnnotation:r.func,customizeLabel:r.func,customizePoint:r.func,dataPrepareSettings:r.object,dataSource:r.oneOfType([r.array,r.object,r.string]),defaultPane:r.string,disabled:r.bool,elementAttr:r.object,export:r.object,legend:r.object,loadingIndicator:r.object,margin:r.object,maxBubbleSize:r.number,minBubbleSize:r.number,negativesAsZeroes:r.bool,onArgumentAxisClick:r.oneOfType([r.func,r.string]),onDisposing:r.func,onDone:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onLegendClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onPointClick:r.oneOfType([r.func,r.string]),onPointHoverChanged:r.func,onPointSelectionChanged:r.func,onSeriesClick:r.oneOfType([r.func,r.string]),onSeriesHoverChanged:r.func,onSeriesSelectionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,onZoomEnd:r.func,onZoomStart:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),panes:r.oneOfType([r.array,r.object]),pathModified:r.bool,pointSelectionMode:r.oneOf(["multiple","single"]),redrawOnResize:r.bool,resizePanesOnZoom:r.bool,resolveLabelOverlapping:r.oneOf(["hide","none","stack"]),rotated:r.bool,rtlEnabled:r.bool,scrollBar:r.object,series:r.oneOfType([r.array,r.object]),seriesSelectionMode:r.oneOf(["multiple","single"]),seriesTemplate:r.object,size:r.object,stickyHovering:r.bool,synchronizeMultiAxes:r.bool,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,valueAxis:r.oneOfType([r.array,r.object]),zoomAndPan:r.object};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adaptiveLayout",e}(s.default);e.AdaptiveLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="aggregation",e}(s.default);e.Aggregation=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="aggregationInterval",e}(s.default);e.AggregationInterval=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="annotations",e.IsCollectionItem=!0,e.ExpectedChildren={annotationBorder:{optionName:"border",isCollectionItem:!1},annotationImage:{optionName:"image",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"},{tmplOption:"tooltipTemplate",render:"tooltipRender",component:"tooltipComponent",keyFn:"tooltipKeyFn"}],e}(s.default);e.Annotation=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.AnnotationBorder=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e}(s.default);e.AnnotationImage=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentAxis",e.DefaultsProps={defaultVisualRange:"visualRange"},e.ExpectedChildren={aggregationInterval:{optionName:"aggregationInterval",isCollectionItem:!1},axisConstantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},axisLabel:{optionName:"label",isCollectionItem:!1},axisTitle:{optionName:"title",isCollectionItem:!1},break:{optionName:"breaks",isCollectionItem:!0},breakStyle:{optionName:"breakStyle",isCollectionItem:!1},constantLine:{optionName:"constantLines",isCollectionItem:!0},constantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},grid:{optionName:"grid",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},minorGrid:{optionName:"minorGrid",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},minorTickInterval:{optionName:"minorTickInterval",isCollectionItem:!1},minVisualRangeLength:{optionName:"minVisualRangeLength",isCollectionItem:!1},strip:{optionName:"strips",isCollectionItem:!0},stripStyle:{optionName:"stripStyle",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1},tickInterval:{optionName:"tickInterval",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},visualRange:{optionName:"visualRange",isCollectionItem:!1},wholeRange:{optionName:"wholeRange",isCollectionItem:!1}},e}(s.default);e.ArgumentAxis=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentFormat",e}(s.default);e.ArgumentFormat=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLineStyle",e}(s.default);e.AxisConstantLineStyle=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.AxisConstantLineStyleLabel=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.AxisLabel=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.AxisTitle=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="breaks",e.IsCollectionItem=!0,e}(s.default);e.Break=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="breakStyle",e}(s.default);e.BreakStyle=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={chartTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.ChartTitle=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.ChartTitleSubtitle=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonAnnotationSettings",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"},{tmplOption:"tooltipTemplate",render:"tooltipRender",component:"tooltipComponent",keyFn:"tooltipKeyFn"}],e}(s.default);e.CommonAnnotationSettings=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonAxisSettings",e.ExpectedChildren={commonAxisSettingsConstantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},commonAxisSettingsLabel:{optionName:"label",isCollectionItem:!1},commonAxisSettingsTitle:{optionName:"title",isCollectionItem:!1},constantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e}(s.default);e.CommonAxisSettings=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLineStyle",e.ExpectedChildren={commonAxisSettingsConstantLineStyleLabel:{optionName:"label",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.CommonAxisSettingsConstantLineStyle=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.CommonAxisSettingsConstantLineStyleLabel=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.CommonAxisSettingsLabel=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.CommonAxisSettingsTitle=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonPaneSettings",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},paneBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonPaneSettings=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonSeriesSettings",e.ExpectedChildren={aggregation:{optionName:"aggregation",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},commonSeriesSettingsHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},commonSeriesSettingsLabel:{optionName:"label",isCollectionItem:!1},commonSeriesSettingsSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},point:{optionName:"point",isCollectionItem:!1},reduction:{optionName:"reduction",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1},valueErrorBar:{optionName:"valueErrorBar",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettings=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsHoverStyle=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},connector:{optionName:"connector",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsLabel=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsSelectionStyle=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connector",e}(s.default);e.Connector=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLines",e.IsCollectionItem=!0,e}(s.default);e.ConstantLine=V;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.ConstantLineLabel=z;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLineStyle",e}(s.default);e.ConstantLineStyle=j;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="crosshair",e.ExpectedChildren={horizontalLine:{optionName:"horizontalLine",isCollectionItem:!1},horizontalLineLabel:{optionName:"label",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},verticalLine:{optionName:"verticalLine",isCollectionItem:!1}},e}(s.default);e.Crosshair=H;var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dataPrepareSettings",e}(s.default);e.DataPrepareSettings=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dragBoxStyle",e}(s.default);e.DragBoxStyle=U;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=G;var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=K;var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=q;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="grid",e}(s.default);e.Grid=$;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=Y;var Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="height",e}(s.default);e.Height=Z;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="horizontalLine",e.ExpectedChildren={horizontalLineLabel:{optionName:"label",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.HorizontalLine=X;var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.HorizontalLineLabel=J;var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e}(s.default);e.HoverStyle=Q;var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e}(s.default);e.Image=tt;var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=et;var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legend",e.ExpectedChildren={annotationBorder:{optionName:"border",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=nt;var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=it;var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=ot;var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="length",e}(s.default);e.Length=rt;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=at;var st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=st;var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorGrid",e}(s.default);e.MinorGrid=lt;var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.MinorTick=ut;var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTickInterval",e}(s.default);e.MinorTickInterval=ct;var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minVisualRangeLength",e}(s.default);e.MinVisualRangeLength=dt;var ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="panes",e.IsCollectionItem=!0,e}(s.default);e.Pane=ht;var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.PaneBorder=ft;var pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="point",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1},pointHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},pointImage:{optionName:"image",isCollectionItem:!1},pointSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1}},e}(s.default);e.Point=pt;var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.PointBorder=mt;var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointHoverStyle=gt;var _t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e.ExpectedChildren={height:{optionName:"height",isCollectionItem:!1},url:{optionName:"url",isCollectionItem:!1},width:{optionName:"width",isCollectionItem:!1}},e}(s.default);e.PointImage=_t;var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointSelectionStyle=vt;var yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="reduction",e}(s.default);e.Reduction=yt;var bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scrollBar",e}(s.default);e.ScrollBar=bt;var wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e}(s.default);e.SelectionStyle=wt;var xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="series",e.IsCollectionItem=!0,e}(s.default);e.Series=xt;var Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.SeriesBorder=Ct;var St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="seriesTemplate",e}(s.default);e.SeriesTemplate=St;var kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=kt;var It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=It;var Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="strips",e.IsCollectionItem=!0,e}(s.default);e.Strip=Tt;var Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.StripLabel=Et;var Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stripStyle",e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1},stripStyleLabel:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.StripStyle=Ot;var Mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.StripStyleLabel=Mt;var Pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=Pt;var Dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.Tick=Dt;var At=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tickInterval",e}(s.default);e.TickInterval=At;var Rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=Rt;var Bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=Bt;var Nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=Nt;var Lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="url",e}(s.default);e.Url=Lt;var Ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueAxis",e.IsCollectionItem=!0,e.DefaultsProps={defaultVisualRange:"visualRange"},e.ExpectedChildren={axisConstantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},axisLabel:{optionName:"label",isCollectionItem:!1},axisTitle:{optionName:"title",isCollectionItem:!1},break:{optionName:"breaks",isCollectionItem:!0},constantLine:{optionName:"constantLines",isCollectionItem:!0},constantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},minorTickInterval:{optionName:"minorTickInterval",isCollectionItem:!1},minVisualRangeLength:{optionName:"minVisualRangeLength",isCollectionItem:!1},strip:{optionName:"strips",isCollectionItem:!0},tickInterval:{optionName:"tickInterval",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},visualRange:{optionName:"visualRange",isCollectionItem:!1},wholeRange:{optionName:"wholeRange",isCollectionItem:!1}},e}(s.default);e.ValueAxis=Ft;var Vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueErrorBar",e}(s.default);e.ValueErrorBar=Vt;var zt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="verticalLine",e.ExpectedChildren={horizontalLineLabel:{optionName:"label",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.VerticalLine=zt;var jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="visualRange",e.DefaultsProps={defaultEndValue:"endValue",defaultStartValue:"startValue"},e}(s.default);e.VisualRange=jt;var Ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="wholeRange",e.DefaultsProps={defaultEndValue:"endValue",defaultStartValue:"startValue"},e}(s.default);e.WholeRange=Ht;var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="width",e}(s.default);e.Width=Wt;var Ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="zoomAndPan",e.ExpectedChildren={dragBoxStyle:{optionName:"dragBoxStyle",isCollectionItem:!1}},e}(s.default);e.ZoomAndPan=Ut,e.default=l},function(t,e,n){"use strict";var i=n(4),o=n(0),r=n(16),a=n(5),s=y(n(8)),l=n(13),u=n(2),c=n(37),d=n(286),h=y(n(756)),f=n(409),p=y(n(757)),m=y(n(411)),g=n(230),_=y(n(408)),v=y(n(123));function y(t){return t&&t.__esModule?t:{default:t}}var b=[{name:"default",border:{}}],w=Array.isArray;function x(t,e,n){var i=t.getOptions().grid,o=t.getOptions().minorGrid;i.visible=e,o&&(o.visible=n)}function C(t,e){return t.priority-e.priority}function S(t,e){var n=!1;return(0,a.each)(t,(function(t,i){if(i.name===e)return n=!0,!1})),n}function k(t,e,n,i){var o=e[t]||0,r=n[t]||0;return o+r+(o&&r?i:0)}function I(t,e,n){return T(e[t],n[t])}function T(t,e){return Math.max(t||0,e||0)}function E(t){return t.getMargins()}function O(t,e){return t.reduce((function(t,n){var i=e(n),o=t.panes[n.pane]=t.panes[n.pane]||{},r=n.getMultipleAxesSpacing();return o.top=k("top",o,i,r),o.bottom=k("bottom",o,i,r),o.left=I("left",o,i),o.right=I("right",o,i),t.top=I("top",o,t),t.bottom=I("bottom",o,t),t.left=I("left",o,t),t.right=I("right",o,t),t}),{panes:{}})}function M(t){return t.reduce((function(t,e){var n=e.getMargins(),i=t.panes[e.pane]=t.panes[e.pane]||{},o=e.getMultipleAxesSpacing();return i.top=I("top",i,n),i.bottom=I("bottom",i,n),i.left=k("left",i,n,o),i.right=k("right",i,n,o),t.top=I("top",i,t),t.bottom=I("bottom",i,t),t.left=I("left",i,t),t.right=I("right",i,t),t}),{panes:{}})}function P(t,e,n,i,o){t.forEach((function(t){t[e](n&&n[t.pane],i&&i[t.pane]||i,o)}))}function D(t,e,n,i,o){function r(e,n,i){return(-1===(t?["left","right"]:["top","bottom"]).indexOf(e)?n:n.panes[i]||{})[e]}function a(t,e,n,i){return T(r(t,e,i),r(t,n,i))}var s=function(t){return"original".concat(t[0].toUpperCase()).concat(t.slice(1))};function u(t,e,r,u,c,d){(e=e.sort((function(e,n){return t[n][u]-t[e][u]}))).forEach((function(e){var n=t[e];d.forEach((function(t){n[t]=n[s(t)]+a(t,i,o,e)}))}));var h=t[e[0]],f=e.reduce((function(t,e){return t-=a(u,i,o,e)+a(c,i,o,e)}),h[r]-h[s(c)]-t[e[e.length-1]][s(u)])-l.PANE_PADDING*(e.length-1),p=Object.keys(n).reduce((function(t,e){return t+(n[e].unit?n[e].height:0)}),0);f-=p,e.reduce((function(e,s){var d=t[s],p=n[s];return e-=a(c,i,o,s),d[c]=h[r]-e,e-=p.unit?p.height:Math.floor(f*p.height),d[u]=e,e-=a(u,i,o,s)+l.PANE_PADDING}),h[r]-h[s(c)]-(f<0?f:0))}var c=Object.keys(e);return t?u(e,c,"width","left","right",["top","bottom"]):u(e,c,"height","top","bottom",["left","right"]),e}function A(t,e,n,i){e&&(P(t,"createTicks",n),h.default.synchronize(t)),P(t,"draw",!e&&n,i)}function R(t,e){var n={};return function(i){if(!i.customPositionIsAvailable()||i.customPositionEqualsToPredefined()){var o=n[i.pane]=n[i.pane]||{top:0,left:0,bottom:0,right:0},r=i.getMultipleAxesSpacing(),a=i.getMargins();i.shift(o),o[t]=k(t,o,a,r),o[e]=k(e,o,a,r)}else i.shift({top:0,left:0,bottom:0,right:0})}}function B(t,e){var n,i,o=0;for(n in e.panes)i=e.panes[n],o+="height"===t?i.top+i.bottom:i.left+i.right;return o}function N(t,e,n,i){var o=0;t[e]>0&&(o=B(e,i(n,E)),P(n,"hideTitle"),t[e]-=o-B(e,i(n,E))),t[e]>0&&P(n,"hideOuterElements")}var L=f.AdvancedChart.inherit({_themeSection:"chart",_fontFields:["crosshair.label.font"],_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,o.extend)(this._deprecatedOptions,{useAggregation:{since:"18.1",message:"Use the 'commonSeriesSettings.aggregation.enabled' or 'series.aggregation.enabled' option instead"},"argumentAxis.min":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"argumentAxis.max":{since:"18.2",message:"Use the 'argumentAxis.visualRange' option instead"},"valueAxis.min":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},"valueAxis.max":{since:"18.2",message:"Use the 'valueAxis.visualRange' option instead"},zoomingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"},scrollingMode:{since:"18.2",message:"Use the 'zoomAndPan' option instead"}})},_initCore:function(){this.paneAxis={},this.callBase()},_correctAxes:function(){this._correctValueAxes(!0)},_getExtraOptions:i.noop,_createPanes:function(){var t,e=this.option("panes"),n=0;return(!e||w(e)&&!e.length)&&(e=b),this.callBase(),t=this.option("defaultPane"),e=(0,o.extend)(!0,[],w(e)?e:[e]),(0,a.each)(e,(function(t,e){e.name=(0,u.isDefined)(e.name)?e.name:"default"+n++})),(0,u.isDefined)(t)?S(e,t)||(this._incidentOccurred("W2101",[t]),t=e[e.length-1].name):t=e[e.length-1].name,this.defaultPane=t,e=this._isRotated()?e.reverse():e},_getAxisRenderingOptions:function(){return{axisType:"xyAxes",drawingType:"linear"}},_prepareAxisOptions:function(t,e,n){return{isHorizontal:"argumentAxis"===t!==n,containerColor:this._themeManager.getOptions("containerBackgroundColor")}},_checkPaneName:function(t){var e=(0,l.map)(this.panes,(function(t){return t.name}));return t.pane=t.pane||this.defaultPane,-1!==(0,r.inArray)(t.pane,e)},_initCustomPositioningAxes:function(){var t=this,e=t.getArgumentAxis(),n=e.getOptions().customPositionAxis,o=t._valueAxes.filter((function(t){return t.pane===e.pane&&(!n||n===t.name)}))[0];t._valueAxes.forEach((function(t){e!==t.getOrthogonalAxis()&&(t.getOrthogonalAxis=function(){return e},t.customPositionIsBoundaryOrthogonalAxis=function(){return e.customPositionIsBoundary()})})),(0,u.isDefined)(o)&&o!==e.getOrthogonalAxis()?(e.getOrthogonalAxis=function(){return o},e.customPositionIsBoundaryOrthogonalAxis=function(){return t._valueAxes.some((function(t){return t.customPositionIsBoundary()}))}):(0,u.isDefined)(e.getOrthogonalAxis())&&!(0,u.isDefined)(o)&&(e.getOrthogonalAxis=i.noop)},_resetAxesAnimation:function(t){this._argumentAxes.concat(this._valueAxes).forEach((function(e){e.resetApplyingAnimation(t)}))},_axesBoundaryPositioning:function(){var t=this._argumentAxes.concat(this._valueAxes),e=!1;return t.forEach((function(t){if(!t.customPositionIsAvailable())return!1;var n=t.customPositionIsBoundary();t._customBoundaryPosition=t.getCustomBoundaryPosition(),e|=n!==t.customPositionIsBoundary()})),e},_getValueAxis:function(t,e){var n,i,o=this._valueAxes,r=this.option("valueAxis")||{},a=w(r)?r:[r],s=this._isRotated(),l=this._getCrosshairMargins();return(i=function t(e,n,i){var o,r;for(r=0;r<i.length;r++)if((o=i[r]).name===n&&o.pane===e)return o;if(e)return t(void 0,n,i)}(t,e=e||function(t,e,n){for(var i,o=0;o<t.length;o++)if(t[o].pane===e||void 0===t[o].pane&&e===n){i=t[o].name;break}return i||(i=t[0].name),i}(o,t,this.defaultPane),o))||((n=function(t,e,n){var i,o;for(o=0;o<e.length;o++)if(e[o].name===n){(i=e[o]).priority=o;break}if(!i)for(o=0;o<t.length;o++)if(t[o].name===n){(i=t[o].getOptions()).priority=t[o].priority;break}return i}(o,a,e))||(this._incidentOccurred("W2102",[e]),n={name:e,priority:o.length}),(i=this._createAxis(!1,this._populateAxesOptions("valueAxis",n,{pane:t,name:e,optionPath:w(r)?"valueAxis[".concat(n.priority,"]"):"valueAxis",crosshairMargin:s?l.y:l.x},s))).applyVisualRangeSetter(this._getVisualRangeSetter()),o.push(i)),i.setPane(t),i},_correctValueAxes:function(t){var e=this,n=e._themeManager.getOptions("synchronizeMultiAxes"),i=e._valueAxes,o={};e.series.forEach((function(t){var e=t.getValueAxis();o[e.pane]=!0})),e.panes.forEach((function(r){var a=r.name;o[a]||e._getValueAxis(a),t&&n&&function(t){var e=!1,n=[],i=t.some((function(t){var e=t.getOptions().minorGrid;return e&&e.visible})),o=t.some((function(t){var e=t.getOptions().grid;return e&&e.visible}));t.length>1&&(t.forEach((function(t){var r=t.getOptions().grid;e?x(t,!1,!1):r&&r.visible&&(t.getTranslator().getBusinessRange().isEmpty()?(x(t,!1,!1),n.push(t)):(e=!0,x(t,o,i)))})),!e&&n.length&&x(n[0],o,i))}(i.filter((function(t){return t.pane===a})))})),e._valueAxes=i.filter((function(t){return t.pane||t.setPane(e.defaultPane),S(e.panes,t.pane)})).sort(C);var r=this.getValueAxis();e._valueAxes.forEach((function(t){var n=t.getOptions().optionPath;if(n){var i=e._valueAxes.filter((function(t){return t.getOptions().optionPath===n}));i.length>1&&(i.some((function(t){return t===r}))?i.forEach((function(t){t!==r&&(t.getOptions().optionPath=null)})):i.forEach((function(t,e){0!==e&&(t.getOptions().optionPath=null)})))}}))},_getSeriesForPane:function(t){var e=[];return(0,a.each)(this.series,(function(n,i){i.pane===t&&e.push(i)})),e},_createPanesBorderOptions:function(){var t=this._themeManager.getOptions("commonPaneSettings").border,e={};return this.panes.forEach((function(n){return e[n.name]=(0,o.extend)(!0,{},t,n.border)})),e},_createScrollBar:function(){var t=this._themeManager.getOptions("scrollBar")||{},e=this._scrollBarGroup;t.visible?(t.rotated=this._isRotated(),this._scrollBar=(this._scrollBar||new p.default.ScrollBar(this._renderer,e)).update(t)):(e.linkRemove(),this._scrollBar&&this._scrollBar.dispose(),this._scrollBar=null)},_prepareToRender:function(t){var e=this._createPanesBorderOptions();return this._createPanesBackground(),this._appendAxesGroups(),this._adjustViewport(),e},_adjustViewport:function(){var t=this._getVisibleSeries(),e=this.getArgumentAxis(),n=t.some((function(t){return t.useAggregation()})),i=this._themeManager.getOptions("adjustOnZoom"),o=!e.dataVisualRangeIsReduced();(n||i)&&this._valueAxes.forEach((function(t){return t.adjust(o)}))},_recreateSizeDependentObjects:function(t){var e=this,n=e._getVisibleSeries(),i=n.some((function(t){return t.useAggregation()})),o=e._isZooming();i&&(e._argumentAxes.forEach((function(t){t.updateCanvas(e._canvas,!0)})),n.forEach((function(e){e.useAggregation()&&(t||o||!e._useAllAggregatedPoints)&&e.createPoints()})),e._processSeriesFamilies())},_isZooming:function(){var t=this.getArgumentAxis();if(!t||!t.getTranslator())return!1;var e=t.getTranslator().getBusinessRange(),n=t.getViewport(),i=n?n.min:0,o=n?n.max:0;"logarithmic"===e.axisType&&(i=(0,l.getLog)(i,e.base),o=(0,l.getLog)(o,e.base));var r="discrete"===e.axisType?(0,l.getCategoriesInfo)(e.categories,i,o).categories.length:Math.abs(o-i),a=(0,c.getPrecision)(r);a=a>1?Math.pow(10,a-2):1;var s=Math.round((this._zoomLength-r)*a)/a!==0;return this._zoomLength=r,s},_handleSeriesDataUpdated:function(){var t=this,e=new v.default.Range;t.series.forEach((function(t){e.addRange(t.getArgumentRange())})),t._argumentAxes.forEach((function(n){n.updateCanvas(t._canvas,!0),n.setBusinessRange(e,t._axesReinitialized)})),t.callBase()},_isLegendInside:function(){return this._legend&&"inside"===this._legend.getPosition()},_isRotated:function(){return this._themeManager.getOptions("rotated")},_getLayoutTargets:function(){return this.panes},_applyClipRects:function(t){this._drawPanesBorders(t),this._createClipRectsForPanes(),this._applyClipRectsForAxes(),this._fillPanesBackground()},_updateLegendPosition:function(t,e){if(t.drawLegend&&this._legend&&e){var n=this.panes,i=(0,o.extend)({},n[0].canvas),r=new _.default.LayoutManager;i.right=n[n.length-1].canvas.right,i.bottom=n[n.length-1].canvas.bottom,r.layoutInsideLegend(this._legend,i)}},_allowLegendInsidePosition:function(){return!0},_applyExtraSettings:function(t){var e=this._getPaneIndex(t.pane),n=this._panesClipRects,i=n.wide[e];t.setClippingParams(n.base[e].id,i&&i.id,this._getPaneBorderVisibility(e))},_updatePanesCanvases:function(t){t.recreateCanvas&&(0,l.updatePanesCanvases)(this.panes,this._canvas,this._isRotated())},_normalizePanesHeight:function(){(0,l.normalizePanesHeight)(this.panes)},_renderScaleBreaks:function(){this._valueAxes.concat(this._argumentAxes).forEach((function(t){t.drawScaleBreaks()}))},_getArgFilter:function(){return(0,g.getViewPortFilter)(this.getArgumentAxis().visualRange()||{})},_applyPointMarkersAutoHiding:function(){var t=this,e=t.series;t._themeManager.getOptions("autoHidePointMarkers")?t.panes.forEach((function(n){var i=n.borderCoords,r=n.name,a=e.filter((function(t){return t.pane===r&&t.usePointsToDefineAutoHiding()})),s=t.getArgumentAxis(),l=function(t,e,n){var i=[],r={},a=n.visualRange(),s=n.getTranslator(),l=(0,g.getViewPortFilter)(a||{});return e.forEach((function(n){var a=n.getValueAxis(),u=a.getCanvasRange(),c=a.getTranslator(),d=t.indexOf(n),h=(0,g.getViewPortFilter)(u||{});r[d]={},e.forEach((function(e){return r[d][t.indexOf(e)]=0}));var f=[];n.getPoints().filter((function(t){return t.getOptions().visible&&l(t.argument)&&(h(t.getMinValue(!0))||h(t.getMaxValue(!0)))})).forEach((function(t){var e={seriesIndex:d,argument:t.argument,value:t.getMaxValue(!0),size:t.bubbleSize||t.getOptions().size};if(t.getMinValue(!0)!==t.getMaxValue(!0)){var n=(0,o.extend)({},e);n.value=t.getMinValue(!0),n.x=s.to(n.argument,1),n.y=c.to(n.value,1),f.push(n)}e.x=s.to(e.argument,1),e.y=c.to(e.value,1),f.push(e)})),r[d].pointsCount=f.length,r[d].total=0,r[d].continuousSeries=0,i.push({name:n.name,index:d,points:f})})),{series:i,overloadedSeries:r}}(e,a,s);if(function(t,e,n){for(var i=t.width*t.height,o=e.series,r=function(t){var r=n.filter((function(e){return e.name===o[t].name}))[0],a=o[t].points,s=a.length?a[0].size:0;if(s*s*a.length>=i/o.length){var l=o[t].index;r.autoHidePointMarkers=!0,o.splice(t,1),n.splice(n.indexOf(r),1),delete e.overloadedSeries[l]}},a=o.length-1;a>=0;a--)r(a)}(i,l,a),l.series.length){var c=s.visualRange(),d="discrete"===s.getOptions().type?function(t,e){return c.categories.indexOf(t.argument)-c.categories.indexOf(e.argument)}:function(t,e){return t.argument-e.argument},h=[];l.series.forEach((function(t){return h=h.concat(t.points)})),h.sort(d),function(t,e){for(var n=!1,i=0;i<t.length-1;i++){var o=t[i],r=o.size;if((0,u.isDefined)(o.x)&&(0,u.isDefined)(o.y))for(var a=i+1;a<t.length;a++){var s=t[a],l=null===s||void 0===s?void 0:s.x,c=null===s||void 0===s?void 0:s.y;if(!(0,u.isDefined)(l)||Math.abs(o.x-l)>=r){n&=a!==i+1;break}var d=(0,u.isDefined)(l)&&(0,u.isDefined)(c)&&Math.sqrt(Math.pow(o.x-l,2)+Math.pow(o.y-c,2));d&&d<r&&(e[o.seriesIndex][s.seriesIndex]++,e[o.seriesIndex].total++,n||(e[o.seriesIndex].continuousSeries++,n=!0))}}}(h,l.overloadedSeries),function(t,e,n,i){var o=i.getOptions().type;e.forEach((function(e){var r=t.indexOf(e);e.autoHidePointMarkers=!1;var a=i.getTicksValues().majorTicksValues.length;if(e.autoHidePointMarkersEnabled()&&("discrete"===o||n[r].pointsCount>a))for(var s in n[r]){var l=parseInt(s);if(!(isNaN(l)||n[r].total/n[r].continuousSeries<3))if(l===r){if(2*n[l][l]>=n[l].pointsCount){e.autoHidePointMarkers=!0;break}}else if(n[r].total>=n[r].pointsCount){e.autoHidePointMarkers=!0;break}}}))}(e,a,l.overloadedSeries,s)}})):e.forEach((function(t){return t.autoHidePointMarkers=!1}))},_renderAxes:function(t,e){function n(t){return t.map((function(t){if(!t.getTitle)return 0;var e=t.getTitle();return e?e.bBox.width:0}))}var i=this,r=i._isRotated(),a=i._themeManager.getOptions("synchronizeMultiAxes"),s=i._scrollBar?[i._scrollBar]:[],l=i._isArgumentAxisBeforeScrollBar()?i._argumentAxes.concat(s):s.concat(i._argumentAxes),u=r?i._argumentAxes:i._valueAxes,c=r?l:i._valueAxes,d=r?i._valueAxes:i._argumentAxes,h=r?i._valueAxes:l,f=u.concat(d),p=f.concat(s);i._normalizePanesHeight(),i._updatePanesCanvases(t);var m=i.panes.reduce((function(t,e){return t[e.name]=(0,o.extend)({},e.canvas),t}),{}),g=i.panes.reduce((function(t,e){return t[e.name]={height:e.height,unit:e.unit},t}),{}),_=(0,o.extend)(!0,{},m);i._initCustomPositioningAxes();var v=i._axesBoundaryPositioning();if(!t.adjustAxes&&!v)return A(u,!r&&a,m,e),A(d,r&&a,m,e),P(f,"prepareAnimation"),i._renderScaleBreaks(),d.forEach((function(t){return t.resolveOverlappingForCustomPositioning(u)})),u.forEach((function(t){return t.resolveOverlappingForCustomPositioning(d)})),!1;v&&f.forEach((function(t){return t.customPositionIsAvailable()&&t.shift({top:0,left:0,bottom:0,right:0})})),i._scrollBar&&i._scrollBar.setPane(i.panes);var y={panes:{}},b=O(h,(function(t){return t.estimateMargins(m[t.pane])}));m=D(r,m,g,y,b);var w=function(t){A(t?d:u,(t?r:!r)&&a,m,e),t?b=O(h,E):y=M(c),m=D(r,m,g,y,b)};w(!1),w(!0),i._estimateTickIntervals(u,m)&&w(!1);var x=n(u),C=i._getVisibleSeries(),S=i._getPointsToAnimation(C);return P(p,"updateSize",m,function(t,e){var n=e.reduce((function(t,e){return t+e}),0)/e.length;return t.animate&&n<=t.animationPointsLimit}(t,S)),h.forEach(R("top","bottom")),c.forEach(R("left","right")),i._renderScaleBreaks(),i.panes.forEach((function(t){(0,o.extend)(t.canvas,m[t.name])})),i._valueAxes.forEach((function(t){t.setInitRange()})),u.forEach((function(t,e){if(t.hasWrap&&t.hasWrap()){var o=t.getTitle(),a=(o?o.bBox.width:0)-x[e];"right"===t.getOptions().position?y.right+=a:(y.left+=a,i.panes.forEach((function(t){var e=t.name;return y.panes[e].left+=a}))),m=D(r,m,g,y,b),P(p,"updateSize",m,!1,!1),x=n(u)}})),u.some((function(t){return t.customPositionIsAvailable()&&t.getCustomPosition()!==t._axisPosition}))&&P(u,"updateSize",m,!1),d.forEach((function(t){return t.resolveOverlappingForCustomPositioning(u)})),u.forEach((function(t){return t.resolveOverlappingForCustomPositioning(d)})),_},_estimateTickIntervals:function(t,e){return t.some((function(t){return t.estimateTickInterval(e[t.pane])}))},checkForMoreSpaceForPanesCanvas:function(){var t=this._isRotated(),e=!1;if(this.panes.filter((function(t){return t.unit})).length===this.panes.length){var n=0,i=0;if(t){var o=this.getArgumentAxis().getMargins().right,r=Math.min.apply(Math,this.panes.map((function(t){return t.canvas.right})));n=this._canvas.right+o-r}else{var a=this.getArgumentAxis().getMargins().bottom,s=Math.min.apply(Math,this.panes.map((function(t){return t.canvas.bottom})));i=this._canvas.bottom+a-s}if(e=(n>0||i>0)&&{width:n,height:i},0!==i){var u=this.getSize(),c=this.option("size"),d=this._$element[0],h=!!d.style.height||(0,l.checkElementHasPropertyFromStyleSheet)(d,"height");t||c&&c.height||h||(this._forceResize(u.width,u.height+i),e=!1)}}else e=this.layoutManager.needMoreSpaceForPanesCanvas(this._getLayoutTargets(),t,(function(e){return{width:t&&!!e.unit,height:!t&&!!e.unit}}));return e},_forceResize:function(t,e){this._renderer.resize(t,e),this._updateSize(),this._setContentSize(),this._preserveOriginalCanvas(),this._updateCanvasClipRect(this._canvas)},_shrinkAxes:function(t,e){if(t&&e){this._renderer.stopAllAnimations(!0);var n=this._isRotated(),i=this._scrollBar?[this._scrollBar]:[],r=this._isArgumentAxisBeforeScrollBar()?this._argumentAxes.concat(i):i.concat(this._argumentAxes),a=n?r:this._valueAxes,s=n?this._valueAxes:r,l=a.concat(s);if(t.width||t.height){N(t,"height",s,O),N(t,"width",a,M),P(l,"updateSize",e);var u=this.panes.reduce((function(t,e){return t[e.name]={height:e.height,unit:e.unit},t}),{});P(l,"updateSize",e=D(n,e,u,M(a),O(s,E))),s.forEach(R("top","bottom")),a.forEach(R("left","right")),this.panes.forEach((function(t){return(0,o.extend)(t.canvas,e[t.name])}))}}},_isArgumentAxisBeforeScrollBar:function(){var t=this.getArgumentAxis();if(this._scrollBar){var e,n=t.getResolvedBoundaryPosition(),i=null===(e=t.getOptions().label)||void 0===e?void 0:e.position,o=this._scrollBar.getOptions().position;return t.hasCustomPosition()||o===n&&i!==o}return!1},_getPanesParameters:function(){var t,e=this.panes,n=[];for(t=0;t<e.length;t++)this._getPaneBorderVisibility(t)&&n.push({coords:e[t].borderCoords,clipRect:this._panesClipRects.fixed[t]});return n},_createCrosshairCursor:function(){var t=this._themeManager.getOptions("crosshair")||{},e=this.getArgumentAxis(),n=this._isRotated()?[this._valueAxes,[e]]:[[e],this._valueAxes],i={canvas:this._getCommonCanvas(),panes:this._getPanesParameters(),axes:n};t&&t.enabled&&(this._crosshair?this._crosshair.update(t,i):this._crosshair=new m.default.Crosshair(this._renderer,t,i,this._crosshairCursorGroup),this._crosshair.render())},_getCommonCanvas:function(){var t,e,n,i=this.panes;for(t=0;t<i.length;t++)e=i[t].canvas,n?(n.right=e.right,n.bottom=e.bottom):n=(0,o.extend)({},e);return n},_createPanesBackground:function(){var t,e,n,i=this._themeManager.getOptions("commonPaneSettings").backgroundColor,o=this._renderer,r=[];for(this._panesBackgroundGroup.clear(),n=0;n<this.panes.length;n++)(t=this.panes[n].backgroundColor||i)&&"none"!==t?(e=o.rect(0,0,0,0).attr({fill:t,"stroke-width":0}).append(this._panesBackgroundGroup),r.push(e)):r.push(null);this.panesBackground=r},_fillPanesBackground:function(){var t,e=this;(0,a.each)(e.panes,(function(n,i){t=i.borderCoords,null!==e.panesBackground[n]&&e.panesBackground[n].attr({x:t.left,y:t.top,width:t.width,height:t.height})}))},_calcPaneBorderCoords:function(t){var e=t.canvas,n=t.borderCoords=t.borderCoords||{};n.left=e.left,n.top=e.top,n.right=e.width-e.right,n.bottom=e.height-e.bottom,n.width=Math.max(n.right-n.left,0),n.height=Math.max(n.bottom-n.top,0)},_drawPanesBorders:function(t){var e=this,n=e._isRotated();e._panesBorderGroup.linkRemove().clear(),(0,a.each)(e.panes,(function(i,o){var r=t[o.name],s={fill:"none",stroke:r.color,"stroke-opacity":r.opacity,"stroke-width":r.width,dashStyle:r.dashStyle,"stroke-linecap":"square"};if(e._calcPaneBorderCoords(o,n),r.visible){var l=o.borderCoords,u=function(t,e,n,i,o){var r,s=~~((n<i?n:i)/2),l=o.width||0,u=l<s?l:s,c=(t+=u/2)+(n-=u),d=(e+=u/2)+(i-=u),h=[],f=[],p=0,m=0,g={top:[[t,e],[c,e]],right:[[c,e],[c,d]],bottom:[[c,d],[t,d]],left:[[t,d],[t,e]]};switch((0,a.each)(g,(function(t){var e=!!o[t];p=2*p+~~e})),p){case 13:case 9:r=["left","top","right","bottom"];break;case 11:r=["bottom","left","top","right"];break;default:r=["top","right","bottom","left"]}return(0,a.each)(r,(function(t,e){var n=!!o[e];!m&&f.length&&(h.push(f),f=[]),n&&(0,a.each)(g[e].slice(m),(function(t,e){f=f.concat(e)})),m=~~n})),f.length&&h.push(f),1===h.length&&(h=h[0]),{points:h,pathType:15===p?"area":"line"}}(l.left,l.top,l.width,l.height,r);e._renderer.path(u.points,u.pathType).attr(s).append(e._panesBorderGroup)}})),e._panesBorderGroup.linkAppend()},_createClipRect:function(t,e,n,i,o,r){var a=t[e];a?a.attr({x:n,y:i,width:o,height:r}):(a=this._renderer.clipRect(n,i,o,r),t[e]=a)},_createClipRectsForPanes:function(){var t=this,e=t._canvas;(0,a.each)(t.panes,(function(n,i){var o=!1,r=i.borderCoords,s=r.left,l=r.top,u=r.width,c=r.height,d=t._panesClipRects;t._createClipRect(d.fixed,n,s,l,u,c),t._createClipRect(d.base,n,s,l,u,c),(0,a.each)(t.series,(function(t,e){e.pane===i.name&&(e.isFinancialSeries()||e.areErrorBarsVisible())&&(o=!0)})),o?(t._isRotated()?(l=0,c=e.height):(s=0,u=e.width),t._createClipRect(d.wide,n,s,l,u,c)):d.wide[n]=null}))},_applyClipRectsForAxes:function(){for(var t=this._argumentAxes.concat(this._valueAxes),e=t.filter((function(t){return t.hasCustomPosition()})),n=this._getCanvasClipRectID(),i=0;i<t.length;i++){var o=this._getElementsClipRectID(t[i].pane),r=e.indexOf(t[i])>=0?o:n;t[i].applyClipRects(o,r)}},_getPaneBorderVisibility:function(t){var e=this._themeManager.getOptions("commonPaneSettings").border.visible,n=(this.panes[t]||{}).border||{};return"visible"in n?n.visible:e},_getCanvasForPane:function(t){var e,n=this.panes,i=n.length;for(e=0;e<i;e++)if(n[e].name===t)return n[e].canvas},_getTrackerSettings:function(){var t=this._themeManager;return(0,o.extend)(this.callBase(),{chart:this,rotated:this._isRotated(),crosshair:this._getCrosshairOptions().enabled?this._crosshair:null,stickyHovering:t.getOptions("stickyHovering")})},_resolveLabelOverlappingStack:function(){var t=this,e=t._isRotated(),n=e?function(t,e){return{x:t.x-e,y:t.y}}:function(t,e){return{x:t.x,y:t.y-e}};(0,a.each)(t._getStackPoints(),(function(i,o){(0,a.each)(o,(function(i,o){d.overlapping.resolveLabelOverlappingInOneDirection(o,t._getCommonCanvas(),e,n,(function(t,n){var i=e?1:0;return t.labels[0].getFigureCenter()[i]-n.labels[0].getFigureCenter()[i]===0?(t.value()-n.value())*(t.labels[0].getPoint().series.getValueAxis().getTranslator().isInverted()?-1:1):0}))}))}))},_getStackPoints:function(){var t={},e=this._getVisibleSeries();return(0,a.each)(e,(function(e,n){var i=n.getPoints(),o=n.getStackName()||null;(0,a.each)(i,(function(e,n){var i=n.argument;t[i]||(t[i]={}),t[i][o]||(t[i][o]=[]),t[i][o].push(n)}))})),t},_getCrosshairOptions:function(){return this._getOption("crosshair")},zoomArgument:function(t,e){this._initialized&&((0,u.isDefined)(t)||(0,u.isDefined)(e))&&this.getArgumentAxis().visualRange([t,e])},resetVisualRange:function(){var t=this,e=t._argumentAxes,n=t.getArgumentAxis();e.forEach((function(e){e.resetVisualRange(n!==e),t._applyCustomVisualRangeOption(e)})),t.callBase()},getVisibleArgumentBounds:function(){var t=this._argumentAxes[0].getTranslator().getBusinessRange(),e="discrete"===t.axisType,n=t.categories;return{minVisible:e?t.minVisible||n[0]:t.minVisible,maxVisible:e?t.maxVisible||n[n.length-1]:t.maxVisible}},_change_FULL_RENDER:function(){this.callBase(),this._changes.has("VISUAL_RANGE")&&this._raiseZoomEndHandlers()},_getAxesForScaling:function(){return[this.getArgumentAxis()].concat(this._valueAxes)},_applyVisualRangeByVirtualAxes:function(t,e){if(t.isArgumentAxis){if(t!==this.getArgumentAxis())return!0;this._argumentAxes.filter((function(e){return e!==t})).forEach((function(t){return t.visualRange(e,{start:!0,end:!0})}))}return!1},_raiseZoomEndHandlers:function(){this._argumentAxes.forEach((function(t){return t.handleZoomEnd()})),this.callBase()},_setOptionsByReference:function(){this.callBase(),(0,o.extend)(this._optionsByReference,{"argumentAxis.visualRange":!0})},option:function(){var t=this.callBase.apply(this,arguments),e=this._options.silent("valueAxis");if("array"===(0,u.type)(e))for(var n=0;n<e.length;n++){var i="valueAxis[".concat(n,"].visualRange");this._optionsByReference[i]=!0}return t},_notifyVisualRange:function(){var t=this._argumentAxes[0],e=(0,l.convertVisualRangeObject)(t.visualRange(),!w(this.option("argumentAxis.visualRange")));t.skipEventRising&&(0,l.rangesAreEqual)(e,this.option("argumentAxis.visualRange"))?t.skipEventRising=null:this.option("argumentAxis.visualRange",e),this.callBase()}});L.addPlugin(n(758)),L.addPlugin(n(759)),L.addPlugin(n(232).plugins.core),L.addPlugin(n(232).plugins.chart),(0,s.default)("dxChart",L),t.exports=L,t.exports.default=t.exports},function(t,e,n){"use strict";var i={},o=n(140).states,r=n(141),a=n(229),s=n(746),l=n(404),u=n(405),c=n(747),d=n(406),h=n(748),f=n(749),p=n(13).normalizeEnum,m=n(0).extend,g=n(2).isDefined,_=n(4).noop,v=o.selectedMark,y=o.hoverMark,b=o.normalMark,w=o.hover,x=o.normal,C=o.selection,S={chart:{scatter:"symbolPoint",line:"symbolPoint",spline:"symbolPoint",stepline:"symbolPoint",stackedline:"symbolPoint",fullstackedline:"symbolPoint",stackedspline:"symbolPoint",fullstackedspline:"symbolPoint",stackedsplinearea:"symbolPoint",fullstackedsplinearea:"symbolPoint",area:"symbolPoint",splinearea:"symbolPoint",steparea:"symbolPoint",stackedarea:"symbolPoint",fullstackedarea:"symbolPoint",rangearea:"rangeSymbolPoint",bar:"barPoint",stackedbar:"barPoint",fullstackedbar:"barPoint",rangebar:"rangeBarPoint",bubble:"bubblePoint",stock:"stockPoint",candlestick:"candlestickPoint"},pie:{pie:"piePoint",doughnut:"piePoint",donut:"piePoint"},polar:{scatter:"polarSymbolPoint",line:"polarSymbolPoint",area:"polarSymbolPoint",bar:"polarBarPoint",stackedbar:"polarBarPoint"}};function k(t){return"none"===p(t)}function I(t,e,n){this.fullState=b,this.series=t,this.update(e,n),this._viewCounters={hover:0,selection:0},this._emptySettings={fill:null,stroke:null,dashStyle:null}}e.Point=I,i.symbolPoint=r,i.barPoint=a,i.bubblePoint=s,i.piePoint=l,i.rangeSymbolPoint=u,i.rangeBarPoint=c,i.candlestickPoint=d,i.stockPoint=h,i.polarSymbolPoint=f.polarSymbolPoint,i.polarBarPoint=f.polarBarPoint,I.prototype={constructor:I,getColor:function(){return this.hasValue()||this._styles.usePointCustomOptions||this.series.customizePoint(this,this._dataItem),this._styles.normal.fill||this.series.getColor()},_getStyle:function(){return this._styles[this._currentStyle||"normal"]},update:function(t,e){this.updateOptions(e),this.updateData(t)},updateData:function(t){var e=this.argument!==t.argument;this.argument=this.initialArgument=this.originalArgument=t.argument,this.tag=t.tag,this.index=t.index,this._dataItem=t,this.data=t.data,this.lowError=t.lowError,this.highError=t.highError,this.aggregationInfo=t.aggregationInfo,this._updateData(t,e),!this.hasValue()&&this.setInvisibility(),this._fillStyle(),this._updateLabelData()},deleteMarker:function(){this.graphic&&this.graphic.dispose(),this.graphic=null},draw:function(t,e,n,i){return(this._needDeletingOnDraw||this.series.autoHidePointMarkers&&!this.isSelected())&&(this.deleteMarker(),this._needDeletingOnDraw=!1),this._needClearingOnDraw&&(this.clearMarker(),this._needClearingOnDraw=!1),this._hasGraphic()?this._updateMarker(n,this._getStyle(),e.markers):this.getMarkerVisibility()&&!this.series.autoHidePointMarkers&&this._drawMarker(t,e.markers,n,i),this._drawLabel(),this._drawErrorBar(t,e.errorBars,n),this},_getViewStyle:function(){var t=b,e=this.fullState,n=[x,w,C,C];return this._viewCounters.hover&&(t|=y),this._viewCounters.selection&&(t|=v),k(this.getOptions().selectionMode)&&(e&=~v),k(this.getOptions().hoverMode)&&(e&=~y),n[t|=e]},applyView:function(t){var e=this._getViewStyle();this._currentStyle=e,this.graphic||!this.series.autoHidePointMarkers||e!==C&&e!==w||this._drawMarker(this.series.getRenderer(),this.series.getMarkersGroup()),this.graphic&&(this.series.autoHidePointMarkers&&e!==C&&e!==w?this.deleteMarker():("normal"===e?this.clearMarker():this.graphic.toForeground(),this._updateMarker(!0,this._styles[e],void 0,t)))},setView:function(t){this._viewCounters[t]++,this.applyView()},resetView:function(t){var e=this._viewCounters;--e[t],e[t]<0&&(e[t]=0),this.applyView()},releaseHoverState:function(){this.graphic&&!this.isSelected()&&this.graphic.toBackground()},select:function(){this.series.selectPoint(this)},clearSelection:function(){this.series.deselectPoint(this)},hover:function(){this.series.hoverPoint(this)},clearHover:function(){this.series.clearPointHover()},showTooltip:function(){this.series.showPointTooltip(this)},hideTooltip:function(){this.series.hidePointTooltip(this)},_checkLabelsChanging:function(t,e){var n=~e.indexOf("range"),i=~t.indexOf("range");return i&&!n||!i&&n},updateOptions:function(t){if(t){var e=this._options,n=t.widgetType,o=e&&e.type,r=t.type,a=S[n][r];o!==r?(this._needDeletingOnDraw=!0,this._needClearingOnDraw=!1,o&&(this._checkLabelsChanging(o,r)&&this.deleteLabel(),this._resetType(i[S[o]])),this._setType(i[a])):(this._needDeletingOnDraw=this._checkSymbol(e,t),this._needClearingOnDraw=this._checkCustomize(e,t)),this._options=t,this._fillStyle(),this._updateLabelOptions(a)}},translate:function(){this.hasValue()&&(this._translate(),this.translated=!0)},_checkCustomize:function(t,e){return t.styles.usePointCustomOptions&&!e.styles.usePointCustomOptions},_getCustomLabelVisibility:function(){return this._styles.useLabelCustomOptions?!!this._options.label.visible:null},getBoundingRect:function(){return this._getGraphicBBox()},_resetType:function(t){for(var e in t)delete this[e]},_setType:function(t){for(var e in t)this[e]=t[e]},isInVisibleArea:function(){return this.inVisibleArea},isSelected:function(){return!!(this.fullState&v)},isHovered:function(){return!!(this.fullState&y)},getOptions:function(){return this._options},animate:function(t,e,n){this.graphic?this.graphic.animate(e,{partitionDuration:n},t):t&&t()},getCoords:function(t){return t?this._options.rotated?{x:this.minX-(this.x-this.minX?0:1),y:this.y}:{x:this.x,y:this.minY+(this.y-this.minY?0:1)}:{x:this.x,y:this.y}},getDefaultCoords:function(){return this._options.rotated?{x:this.defaultX,y:this.y}:{x:this.x,y:this.defaultY}},setDefaultCoords:function(){var t=this.getDefaultCoords();this.x=t.x,this.y=t.y},_getVisibleArea:function(){return this.series.getVisibleArea()},_getArgTranslator:function(){return this.series.getArgumentAxis().getTranslator()},_getValTranslator:function(){return this.series.getValueAxis().getTranslator()},_calculateVisibility:function(t,e,n,i){var o=this._getVisibleArea(),r=this._options.rotated;o.minX>t+(n||0)||o.maxX<t||o.minY>e+(i||0)||o.maxY<e||r&&g(n)&&0!==n&&(o.minX===t+n||o.maxX===t)||!r&&g(i)&&0!==i&&(o.minY===e+i||o.maxY===e)?this.inVisibleArea=!1:this.inVisibleArea=!0},isArgumentCorrect:function(){return this.series._argumentChecker(this.argument)},isValueCorrect:function(){var t=this.series._valueChecker;return t(this.getMinValue())&&t(this.getMaxValue())},hasValue:function(){return null!==this.value&&null!==this.minValue&&this.isArgumentCorrect()&&this.isValueCorrect()},hasCoords:_,correctPosition:_,correctRadius:_,correctLabelRadius:_,getCrosshairData:_,getPointRadius:_,_populatePointShape:_,_checkSymbol:_,getMarkerCoords:_,hide:_,show:_,hideMarker:_,setInvisibility:_,clearVisibility:_,isVisible:_,resetCorrection:_,correctValue:_,resetValue:_,setPercentValue:_,correctCoordinates:_,coordsIn:_,getTooltipParams:_,applyWordWrap:_,setLabelTrackerData:_,updateLabelCoord:_,drawLabel:_,correctLabelPosition:_,getMinValue:_,getMaxValue:_,_drawErrorBar:_,getMarkerVisibility:_,dispose:function(){this.deleteMarker(),this.deleteLabel(),this._errorBar&&this._errorBar.dispose(),this._options=this._styles=this.series=this._errorBar=null},getTooltipFormatObject:function(t,e){var n=this._getFormatObject(t),i=[],o=[];e&&(e.forEach((function(e){if(e.isVisible()){var n=e._getFormatObject(t);o.push(n),i.push(n.seriesName+": "+n.valueText)}})),m(n,{points:o,valueText:i.join("\n"),stackName:this.series.getStackName()||null}));var r=this.aggregationInfo;if(r){var a=this.series.getArgumentAxis().formatRange(r.intervalStart,r.intervalEnd,r.aggregationInterval);a&&(n.valueText+="\n".concat(a))}return n},setHole:function(t,e){var n=isFinite(this.minValue)?this.minValue:0;g(t)&&("left"===e?(this.leftHole=this.value-t,this.minLeftHole=n-t):(this.rightHole=this.value-t,this.minRightHole=n-t))},resetHoles:function(){this.leftHole=null,this.minLeftHole=null,this.rightHole=null,this.minRightHole=null},getLabel:function(){return this._label},getLabels:function(){return[this._label]},getCenterCoord:function(){return{x:this.x,y:this.y}}}},function(t,e,n){"use strict";var i=n(0).extend,o=n(141),r=i;t.exports=r({},o,{correctCoordinates:function(t){this.bubbleSize=t/2},_drawMarker:function(t,e,n){var i=r({translateX:this.x,translateY:this.y},this._getStyle());this.graphic=t.circle(0,0,n?0:this.bubbleSize).smartAttr(i).data({"chart-data-point":this}).append(e)},getTooltipParams:function(t){var e=this.graphic;if(e){var n=e.getBBox().height;return{x:this.x,y:this.y,offset:n<20||"edge"===t?n/2:0}}},_getLabelFormatObject:function(){var t=o._getLabelFormatObject.call(this);return t.size=this.initialSize,t},_updateData:function(t){o._updateData.call(this,t),this.size=this.initialSize=t.size},_getGraphicBBox:function(){return this._getSymbolBBox(this.x,this.y,this.bubbleSize)},_updateMarker:function(t,e){t||(e=r({r:this.bubbleSize,translateX:this.x,translateY:this.y},e)),this.graphic.smartAttr(e)},_getFormatObject:function(t){var e=o._getFormatObject.call(this,t);return e.sizeText=t.formatValue(this.initialSize),e},_storeTrackerR:function(){return this.bubbleSize},_getLabelCoords:function(t){return"inside"===t.getLayoutOptions().position?this._getLabelCoordOfPosition(t,"inside"):o._getLabelCoords.call(this,t)}})},function(t,e,n){"use strict";var i=n(4).noop,o=n(0).extend,r=n(229),a=n(405),s=o;t.exports=s({},r,{deleteLabel:a.deleteLabel,_getFormatObject:a._getFormatObject,clearVisibility:function(){var t=this.graphic;t&&t.attr("visibility")&&t.attr({visibility:null})},setInvisibility:function(){var t=this.graphic;t&&"hidden"!==t.attr("visibility")&&t.attr({visibility:"hidden"}),this._topLabel.draw(!1),this._bottomLabel.draw(!1)},getTooltipParams:function(t){var e,n,i="edge"===t;return this._options.rotated?(e=i?this.x+this.width:this.x+this.width/2,n=this.y+this.height/2):(e=this.x+this.width/2,n=i?this.y:this.y+this.height/2),{x:e,y:n,offset:0}},_translate:function(){r._translate.call(this),this._options.rotated?this.width=this.width||1:this.height=this.height||1},hasCoords:a.hasCoords,_updateData:a._updateData,_getLabelPosition:a._getLabelPosition,_getLabelMinFormatObject:a._getLabelMinFormatObject,_updateLabelData:a._updateLabelData,_updateLabelOptions:a._updateLabelOptions,getCrosshairData:a.getCrosshairData,_createLabel:a._createLabel,_checkOverlay:a._checkOverlay,_checkLabelsOverlay:a._checkLabelsOverlay,_getOverlayCorrections:a._getOverlayCorrections,_drawLabel:a._drawLabel,_getLabelCoords:a._getLabelCoords,getLabel:a.getLabel,getLabels:a.getLabels,getBoundingRect:i,getMinValue:a.getMinValue,getMaxValue:a.getMaxValue})},function(t,e,n){"use strict";var i=n(0).extend,o=n(2).isNumeric,r=n(406),a=i,s=o;t.exports=a({},r,{_getPoints:function(){var t=this._options.rotated?function(t,e){return[e,t]}:function(t,e){return[t,e]},e=s(this.openY),n=s(this.closeY),i=this.x,o=this.width,r=[].concat(t(i,this.highY));return e&&(r=r.concat(t(i,this.openY))),e&&(r=r.concat(t(i-o/2,this.openY))),e&&(r=r.concat(t(i,this.openY))),n&&(r=r.concat(t(i,this.closeY))),n&&(r=r.concat(t(i+o/2,this.closeY))),n&&(r=r.concat(t(i,this.closeY))),r=r.concat(t(i,this.lowY))},_drawMarkerInGroup:function(t,e,n){this.graphic=n.path(this._getPoints(),"line").attr({"stroke-linecap":"square"}).attr(e).data({"chart-data-point":this}).sharp().append(t)},_getMinTrackerWidth:function(){var t=2+this._styles.normal["stroke-width"];return t+t%2}})},function(t,e,n){"use strict";var i=n(0).extend,o=n(141),r=n(229),a=n(404),s=n(2).isDefined,l=n(13),u=l.normalizeAngle,c=Math,d=c.max,h=n(140).radialLabelIndent;e.polarSymbolPoint=i({},o,{_getLabelCoords:a._getLabelCoords,_moveLabelOnCanvas:function(t,e,n){var i=t.x,o=t.y;return e.minX>i&&(i=e.minX),e.maxX<i+n.width&&(i=e.maxX-n.width),e.minY>o&&(o=e.minY),e.maxY<o+n.height&&(o=e.maxY-n.height),{x:i,y:o}},_getLabelPosition:function(){return"outside"},_getCoords:function(t,e){var n=this.series.getValueAxis(),i=n.getAngles()[0],o=this._getArgTranslator().translate(t),r=this._getValTranslator().translate(e),a=l.convertPolarToXY(n.getCenter(),n.getAngles()[0],o,r);return a.angle=o+i-90,a.radius=r,a},_translate:function(){var t=this.series.getValueAxis().getCenter(),e=this._getCoords(this.argument,this.value),n=this._getValTranslator().translate("canvas_position_end"),i=s(e.radius)&&e.radius>=0?e.radius:null;this.vx=u(e.angle),this.vy=this.radiusOuter=this.radiusLabels=i,this.radiusLabels+=h,this.radius=i,this.middleAngle=-e.angle,this.angle=-e.angle,this.x=e.x,this.y=e.y,this.defaultX=this.centerX=t.x,this.defaultY=this.centerY=t.y,this._translateErrorBars(),this.inVisibleArea=this._checkRadiusForVisibleArea(i,n)},_checkRadiusForVisibleArea:function(t,e){return s(t)&&t<=e},_translateErrorBars:function(){var t=this._options.errorBars,e=this._getValTranslator();t&&(s(this.lowError)&&(this._lowErrorCoord=this.centerY-e.translate(this.lowError)),s(this.highError)&&(this._highErrorCoord=this.centerY-e.translate(this.highError)),this._errorBarPos=this.centerX,this._baseErrorBarPos="stdDeviation"===t.type?this._lowErrorCoord+(this._highErrorCoord-this._lowErrorCoord)/2:this.centerY-this.radius)},_getTranslates:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}},getDefaultCoords:function(){var t=l.getCosAndSin(-this.angle),e=this._getValTranslator().translate("canvas_position_default");return{x:this.defaultX+e*t.cos,y:this.defaultY+e*t.sin}},_addLabelAlignmentAndOffset:function(t,e){return e},_checkLabelPosition:function(t,e){var n=this._getVisibleArea(),i=this._getGraphicBBox();return this._isPointInVisibleArea(n,i)&&(e=this._moveLabelOnCanvas(e,n,t.getBoundingRect())),e},_getErrorBarSettings:function(t,e){var n=o._getErrorBarSettings.call(this,t,e);return n.rotate=90-this.angle,n.rotateX=this.centerX,n.rotateY=this.centerY,n},getCoords:function(t){return t?this.getDefaultCoords():{x:this.x,y:this.y}}}),e.polarBarPoint=i({},r,{_translateErrorBars:e.polarSymbolPoint._translateErrorBars,_getErrorBarSettings:e.polarSymbolPoint._getErrorBarSettings,_moveLabelOnCanvas:e.polarSymbolPoint._moveLabelOnCanvas,_getLabelCoords:a._getLabelCoords,_getLabelConnector:a._getLabelConnector,getTooltipParams:a.getTooltipParams,_getLabelPosition:a._getLabelPosition,_getCoords:e.polarSymbolPoint._getCoords,_translate:function(){var t=this._getValTranslator(),n=t.getBusinessRange(),i=t.translate("canvas_position_end");this.radiusInner=t.translate(this.minValue),e.polarSymbolPoint._translate.call(this),null===this.radiusInner?this.radiusInner=this.radius=i:null===this.radius?this.radius=this.value>=n.minVisible?i:0:this.radius>i&&(this.radius=i),this.radiusOuter=this.radiusLabels=d(this.radiusInner,this.radius),this.radiusLabels+=h,this.radiusInner=this.defaultRadius=c.min(this.radiusInner,this.radius),this.middleAngle=this.angle=-u(this.middleAngleCorrection-this.angle)},_checkRadiusForVisibleArea:function(t){return s(t)||this._getValTranslator().translate(this.minValue)>0},_getErrorBarBaseEdgeLength:function(){var t=this.getMarkerCoords();return c.PI*t.outerRadius*c.abs(t.startAngle-t.endAngle)/180},getMarkerCoords:function(){return{x:this.centerX,y:this.centerY,outerRadius:this.radiusOuter,innerRadius:this.defaultRadius,startAngle:this.middleAngle-this.interval/2,endAngle:this.middleAngle+this.interval/2}},_drawMarker:function(t,e,n){var i=this._getStyle(),o=this.getMarkerCoords(),r=o.innerRadius,a=o.outerRadius,s=this._getCoords(this.argument,"canvas_position_default"),l=o.x,u=o.y;n&&(r=0,a=0,l=s.x,u=s.y),this.graphic=t.arc(l,u,r,a,o.startAngle,o.endAngle).attr(i).data({"chart-data-point":this}).append(e)},_checkLabelPosition:function(t,e){var n=this._getVisibleArea(),i=l.getCosAndSin(this.middleAngle),o=this.centerX+this.defaultRadius*i.cos,r=this.centerY-this.defaultRadius*i.sin;return o>n.minX&&o<n.maxX&&r>n.minY&&r<n.maxY&&(e=this._moveLabelOnCanvas(e,n,t.getBoundingRect())),e},_addLabelAlignmentAndOffset:function(t,e){return e},correctCoordinates:function(t){this.middleAngleCorrection=t.offset,this.interval=t.width},coordsIn:function(t,e){var n=l.convertXYToPolar(this.series.getValueAxis().getCenter(),t,e),i=this.getMarkerCoords(),o=i.startAngle<i.endAngle?-n.phi>=i.startAngle&&-n.phi<=i.endAngle:-n.phi<=i.startAngle&&-n.phi>=i.endAngle;return n.r>=i.innerRadius&&n.r<=i.outerRadius&&o}})},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(0).extend,r=n(2).isDefined,a=n(13).map,s=n(4).noop,l=n(124).chart,u=n(165).chart.bar,c=n(196).chart.area;e.chart={};var d={areErrorBarsVisible:s,_createErrorBarGroup:s,_checkData:function(t,e){var n=this.getValueFields();return l._checkData.call(this,t,e,{minValue:n[0],value:n[1]})&&t.minValue===t.minValue},getValueRangeInitialValue:l.getValueRangeInitialValue,_getPointDataSelector:function(t){var e=this,n=this.getValueFields(),i=n[0],o=n[1],r=this.getTagField(),a=this.getArgumentField();return function(t){return{tag:t[r],minValue:e._processEmptyValue(t[i]),value:e._processEmptyValue(t[o]),argument:t[a],data:t}}},_defaultAggregator:"range",_aggregators:{range:function(t,e){var n,o=t.intervalStart,a=t.data;if(a.length){var s=e.getValueFields(),l=s[0],u=s[1],c=a.reduce((function(t,e){var n=e[l],i=e[u];return r(n)&&r(i)?(t[l]=Math.min(t[l],Math.min(n,i)),t[u]=Math.max(t[u],Math.max(n,i)),t):t}),(i(n={},l,1/0),i(n,u,-1/0),i(n,e.getArgumentField(),o),n));if(!isFinite(c[l])||!isFinite(c[u])){if(a.filter((function(t){return null===t[l]&&null===t[u]})).length!==a.length)return;c[l]=c[u]=null}return c}}},getValueFields:function(){return[this._options.rangeValue1Field||"val1",this._options.rangeValue2Field||"val2"]},getSeriesPairCoord:function(t,e){for(var n=null,i=this._options.rotated,o=!e&&!i||e&&i,r=o?"vy":"vx",a=i?"minX":"minY",s=o?"vx":"vy",l=this.getPoints(),u=0;u<l.length;u++){var c=l[u],d=void 0;if(e)d=c.getCenterCoord()[r[1]]===t?c[s]:void 0;else{var h=[Math.min(c[r],c[a]),Math.max(c[r],c[a])];d=t>=h[0]&&t<=h[1]?c[s]:void 0}if(this._checkAxisVisibleAreaCoord(!e,d)){n=d;break}}return n}};e.chart.rangebar=o({},u,d),e.chart.rangearea=o({},c,{_drawPoint:function(t){var e=t.point;e.isInVisibleArea()?(e.clearVisibility(),e.draw(this._renderer,t.groups),this._drawnPoints.push(e),e.visibleTopMarker||e.hideMarker("top"),e.visibleBottomMarker||e.hideMarker("bottom")):e.setInvisibility()},_prepareSegment:function(t,e){var n=this._processSinglePointsAreaSegment(t,e),i=a(n,(function(t){return t.getCoords(!0)}));return{line:n,bottomLine:i,area:a(n,(function(t){return t.getCoords()})).concat(i.slice().reverse()),singlePointSegment:n!==t}},_getDefaultSegment:function(t){var e=c._getDefaultSegment.call(this,t);return e.bottomLine=e.line,e},_removeElement:function(t){c._removeElement.call(this,t),t.bottomLine&&t.bottomLine.remove()},_drawElement:function(t,e){var n=c._drawElement.call(this,t,e);return n.bottomLine=this._bordersGroup&&this._createBorderElement(t.bottomLine,{"stroke-width":this._styles.normal.border["stroke-width"]}).append(this._bordersGroup),n},_applyStyle:function(t){var e=this._elementsGroup,n=this._bordersGroup;e&&e.smartAttr(t.elements),n&&n.attr(t.border),(this._graphics||[]).forEach((function(e){e.line&&e.line.attr({"stroke-width":t.border["stroke-width"]}),e.bottomLine&&e.bottomLine.attr({"stroke-width":t.border["stroke-width"]})}))},_updateElement:function(t,e,n,i){var o={points:e.bottomLine},r=t.bottomLine;c._updateElement.apply(this,arguments),r&&(n?r.animate(o):r.attr(o))}},d)},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(231).chart.line,r=n(124).chart,a=n(196).chart.area,s=n(165),l=s.chart.bar,u=s.polar.bar,c=n(0).extend,d=n(5).each,h=n(4).noop;e.chart={},e.chart.bubble=c({},r,{_calculateErrorBars:h,_getMainColor:l._getMainColor,_createPointStyles:l._createPointStyles,_updatePointsVisibility:l._updatePointsVisibility,_getOptionsForPoint:l._getOptionsForPoint,_applyMarkerClipRect:o._applyElementsClipRect,_parsePointStyle:u._parsePointStyle,_createLegendState:a._createLegendState,_setMarkerGroupSettings:u._setMarkerGroupSettings,areErrorBarsVisible:h,_createErrorBarGroup:h,_checkData:function(t,e){return r._checkData.call(this,t,e,{value:this.getValueFields()[0],size:this.getSizeField()})},_getPointDataSelector:function(t,e){var n=this.getSizeField(),i=r._getPointDataSelector.call(this);return function(t){var e=i(t);return e.size=t[n],e}},_aggregators:{avg:function(t,e){var n,o=t.data,r=t.intervalStart;if(o.length){var a=e.getValueFields()[0],s=e.getSizeField(),l=o.reduce((function(t,e){return t[0]+=e[a],t[1]+=e[s],t[2]++,t}),[0,0,0]);return i(n={},a,l[0]/l[2]),i(n,s,l[1]/l[2]),i(n,e.getArgumentField(),r),n}}},getValueFields:function(){return[this._options.valueField||"val"]},getSizeField:function(){return this._options.sizeField||"size"},_animate:function(){var t=this,e=t._drawnPoints.length-1,n=t._labelsGroup,i=function(){n&&n.animate({opacity:1},{duration:t._defaultDuration})};d(t._drawnPoints||[],(function(t,n){n.animate(t===e?i:void 0,{r:n.bubbleSize,translateX:n.x,translateY:n.y})}))},_patchMarginOptions:function(t){return t.processBubbleSize=!0,t}})},function(t,e,n){"use strict";var i=n(4).noop,o=n(5).each,r=n(124),a=n(13),s=n(0).extend,l=r.chart,u=n(165).chart.bar,c=s,d=o,h=i,f=a.map,p=isFinite,m=Math.max;e.pie=c({},u,{_setGroupsSettings:function(){l._setGroupsSettings.apply(this,arguments),this._labelsGroup.attr({"pointer-events":null})},_createErrorBarGroup:h,_drawPoint:function(t){var e=t.point,n=this._legendCallback;l._drawPoint.call(this,t),!e.isVisible()&&e.setInvisibility(),e.isSelected()&&n()},_getOldPoint:function(t,e,n){var i=(this._points||[])[n];return i&&(e[i.argument.valueOf()]=e[i.argument.valueOf()].filter((function(t){return t!==i}))),i},adjustLabels:function(t){return(this._points||[]).reduce((function(e,n){if(n._label.isVisible())return n.setLabelTrackerData(),e=n.applyWordWrap(t)||e,n.updateLabelCoord(t),e}),!1)},_applyElementsClipRect:h,getColor:h,areErrorBarsVisible:h,drawLabelsWOPoints:function(){return"inside"!==this._options.label.position&&(this._labelsGroup.append(this._extGroups.labelsGroup),(this._points||[]).forEach((function(t){t.drawLabel()})),!0)},getPointsCount:function(){var t=this;return this._data.filter((function(e){return t._checkData(e)})).length},setMaxPointsCount:function(t){this._pointsCount=t},_getCreatingPointOptions:function(t,e){return this._getPointOptions(t,e)},_updateOptions:function(t){this.labelSpace=0,this.innerRadius="pie"===this.type?0:t.innerRadius},_checkData:function(t,e){var n=u._checkData.call(this,t,e,{value:this.getValueFields()[0]});return this._options.paintNullPoints?n:n&&null!==t.value},_createGroups:l._createGroups,_setMarkerGroupSettings:function(){this._markersGroup.attr({class:"dxc-markers"})},_getMainColor:function(t,e){var n=this.getPointsByArg(t.argument),i=e?n.indexOf(e):n.length;return this._options.mainSeriesColor(t.argument,i,this._pointsCount)},_getPointOptions:function(t){return this._parsePointOptions(this._preparePointOptions(),this._options.label,t)},_getRangeData:function(){return this._rangeData},_createPointStyles:function(t,e,n){var i=t.color||this._getMainColor(e,n);return{normal:this._parsePointStyle(t,i,i),hover:this._parsePointStyle(t.hoverStyle,i,i),selection:this._parsePointStyle(t.selectionStyle,i,i),legendStyles:{normal:this._createLegendState(t,i),hover:this._createLegendState(t.hoverStyle,i),selection:this._createLegendState(t.selectionStyle,i)}}},_getArrangeMinShownValue:function(t,e){var n=this._options.minSegmentSize,i=0,o=0;return e=e||t.length,d(t,(function(t,r){r.isVisible()&&(r.normalInitialValue<n*e/360?i+=n:o+=r.normalInitialValue)})),i<360?n*o/(360-i):0},_applyArrangeCorrection:function(t,e,n){var i,o=this._options,r="anticlockwise"!==o.segmentsDirection,s=p(o.startAngle)?a.normalizeAngle(o.startAngle):0,l=o.minSegmentSize,u=0,c=0;0===n&&(n=t.filter((function(t){return t.isVisible()})).length,c=1),d(r?t:t.concat([]).reverse(),(function(t,o){var r,a=o.isVisible()?c||o.normalInitialValue:0;l&&o.isVisible()&&a<e&&(r=e),i=a/n,o.correctValue(u,i,c+(r||0)),o.shiftedAngle=s,u+=r||a})),this._rangeData={val:{min:0,max:u}}},_removePoint:function(t){var e=this.getPointsByArg(t.argument);e.splice(e.indexOf(t),1),t.dispose()},arrangePoints:function(){for(var t,e=this,n=e._points||[],i=e._options.minSegmentSize,o=!0,r=0,a=n.length;r<a&&o;)o=n[r].value<=0,r++;var s=e._points=f(n,(function(t){return null===t.value||!o&&t.value<0?(e._removePoint(t),null):t})),l=s.reduce((function(t,e){return m(t,Math.abs(e.initialValue))}),0);s.forEach((function(t){t.normalInitialValue=t.initialValue/(0!==l?l:1)}));var u=s.reduce((function(t,e){return t+(e.isVisible()?e.normalInitialValue:0)}),0);i&&(t=this._getArrangeMinShownValue(s,u)),e._applyArrangeCorrection(s,t,u)},correctPosition:function(t,e){d(this._points,(function(e,n){n.correctPosition(t)})),this.setVisibleArea(e)},correctRadius:function(t){this._points.forEach((function(e){e.correctRadius(t)}))},correctLabelRadius:function(t){this._points.forEach((function(e){e.correctLabelRadius(t)}))},setVisibleArea:function(t){this._visibleArea={minX:t.left,maxX:t.width-t.right,minY:t.top,maxY:t.height-t.bottom}},_applyVisibleArea:h,_animate:function(t){var e,n=this,i=n._points,o=i&&i.length,r=function(){n._animateComplete()};e=t?function(t,e){t.animate(e===o-1?r:void 0,.7,(1-.7)*e/(o-1))}:function(t,e){t.animate(e===o-1?r:void 0)},i.forEach(e)},getVisiblePoints:function(){return f(this._points,(function(t){return t.isVisible()?t:null}))},getPointsByKeys:function(t,e){var n=this.getPointsByArg(t);return n[e]&&[n[e]]||[]}}),e.doughnut=e.donut=e.pie},function(t,e,n){"use strict";var i=n(124).chart,o=n(165).chart.bar,r=n(0).extend,a=n(2).isDefined,s=n(13).normalizeEnum,l=n(4).noop;e.stock=r({},i,{_animate:l,_applyMarkerClipRect:function(t){t["clip-path"]=this._forceClipping?this._paneClipRectID:this._widePaneClipRectID},_updatePointsVisibility:o._updatePointsVisibility,_getOptionsForPoint:o._getOptionsForPoint,_createErrorBarGroup:l,areErrorBarsVisible:l,_createGroups:i._createGroups,_setMarkerGroupSettings:function(){var t=this._markersGroup,e=this._createPointStyles(this._getMarkerGroupOptions()),n=r(e.normal,{class:"default-markers"}),i=r(e.positive.normal,{class:"default-positive-markers"}),o=r(e.reduction.normal,{class:"reduction-markers"}),a=r(e.reductionPositive.normal,{class:"reduction-positive-markers"}),s={class:"dxc-markers"};this._applyMarkerClipRect(s),t.attr(s),this._createGroup("defaultMarkersGroup",t,t,n),this._createGroup("reductionMarkersGroup",t,t,o),this._createGroup("defaultPositiveMarkersGroup",t,t,i),this._createGroup("reductionPositiveMarkersGroup",t,t,a)},_setGroupsSettings:function(){i._setGroupsSettings.call(this,!1)},_getCreatingPointOptions:function(){var t,e=this._predefinedPointOptions;return e||(t=this._getPointOptions(),this._predefinedPointOptions=e=r(!0,{styles:{}},t),e.styles.normal=e.styles.positive.normal=e.styles.reduction.normal=e.styles.reductionPositive.normal={"stroke-width":t.styles&&t.styles.normal&&t.styles.normal["stroke-width"]}),e},_checkData:function(t,e){var n=this.getValueFields();return i._checkData.call(this,t,e,{openValue:n[0],highValue:n[1],lowValue:n[2],closeValue:n[3]})&&t.highValue===t.highValue&&t.lowValue===t.lowValue},_getPointDataSelector:function(t,e){var n,i,o=this,r=this,l=r.getValueFields(),u=r.getArgumentField(),c=l[0],d=l[1],h=l[2],f=l[3];switch(r.level=r._options.reduction.level,s(r.level)){case"open":n=c;break;case"high":n=d;break;case"low":n=h;break;default:n=f,r.level="close"}return function(t){var e=t[n],s=!1;return a(e)&&(a(i)&&(s=e<i),i=e),{argument:t[u],highValue:o._processEmptyValue(t[d]),lowValue:o._processEmptyValue(t[h]),closeValue:o._processEmptyValue(t[f]),openValue:o._processEmptyValue(t[c]),reductionValue:e,tag:t[r.getTagField()],isReduction:s,data:t}}},_parsePointStyle:function(t,e,n){return{stroke:t.color||e,"stroke-width":t.width,fill:t.color||n}},_getDefaultStyle:function(t){var e=t.color||this._options.mainSeriesColor;return{normal:this._parsePointStyle(t,e,e),hover:this._parsePointStyle(t.hoverStyle,e,e),selection:this._parsePointStyle(t.selectionStyle,e,e)}},_getReductionStyle:function(t){var e=t.reduction.color;return{normal:this._parsePointStyle({color:e,width:t.width,hatching:t.hatching},e,e),hover:this._parsePointStyle(t.hoverStyle,e,e),selection:this._parsePointStyle(t.selectionStyle,e,e)}},_createPointStyles:function(t){var e=this._options.innerColor,n=this._getDefaultStyle(t),i=r(!0,{},n),o=this._getReductionStyle(t),a=r(!0,{},o);return i.normal.fill=i.hover.fill=i.selection.fill=e,a.normal.fill=a.hover.fill=a.selection.fill=e,n.positive=i,n.reduction=o,n.reductionPositive=a,n},_endUpdateData:function(){delete this._predefinedPointOptions},_defaultAggregator:"ohlc",_aggregators:{ohlc:function(t,e){var n=t.intervalStart,i=t.data;if(i.length){var o={},r=e.getValueFields(),a=r[1],s=r[2];return o[a]=-1/0,o[s]=1/0,(o=i.reduce((function(t,e){return null!==e[a]&&(t[a]=Math.max(t[a],e[a])),null!==e[s]&&(t[s]=Math.min(t[s],e[s])),t}),o))[r[0]]=i[0][r[0]],o[r[3]]=i[i.length-1][r[3]],isFinite(o[a])||(o[a]=null),isFinite(o[s])||(o[s]=null),o[e.getArgumentField()]=n,o}}},getValueFields:function(){var t=this._options;return[t.openValueField||"open",t.highValueField||"high",t.lowValueField||"low",t.closeValueField||"close"]},getArgumentField:function(){return this._options.argumentField||"date"},_patchMarginOptions:function(t){var e=this._getCreatingPointOptions().styles,n=[e.normal,e.hover,e.selection].reduce((function(t,e){return Math.max(t,e["stroke-width"])}),0);return t.size=10+n,t.sizePointNormalState=10,t},getSeriesPairCoord:function(t,e){for(var n=null,i=this.getVisiblePoints(),o=0;o<i.length;o++){var r=i[o],a=void 0;if(e)a=r.vx===t?(r.openY+r.closeY)/2:void 0;else{var s=[Math.min(r.lowY,r.highY),Math.max(r.lowY,r.highY)];a=t>=s[0]&&t<=s[1]?r.vx:void 0}if(this._checkAxisVisibleAreaCoord(!e,a)){n=a;break}}return n},usePointsToDefineAutoHiding:function(){return!1}}),e.candlestick=r({},e.stock,{_parsePointStyle:function(t,n,i){var o=t.color||i,r=e.stock._parsePointStyle.call(this,t,n,o);return r.fill=o,r.hatching=t.hatching,r}})},function(t,e,n){"use strict";var i=n(4).noop,o=n(0).extend,r=n(5).each,a=n(196).chart,s=a.area,l=n(165),u=l.chart.bar,c=n(231).chart,d=n(13),h=n(54),f={_calculateErrorBars:i,_updateOptions:function(t){this._stackName="axis_"+(t.axis||"default")}};e.chart={},e.polar={},e.chart.stackedline=o({},c.line,f,{}),e.chart.stackedspline=o({},c.spline,f,{}),e.chart.fullstackedline=o({},c.line,f,{getValueRangeInitialValue:a.area.getValueRangeInitialValue}),e.chart.fullstackedspline=o({},c.spline,f,{getValueRangeInitialValue:a.area.getValueRangeInitialValue});var p=e.chart.stackedbar=o({},u,f,{_updateOptions:function(t){f._updateOptions.call(this,t),this._stackName=this._stackName+"_stack_"+(t.stack||"default")}});function m(t,e,n,i){return(t=h.clone(t)).value=e,t.minValue=n,t.translate(),t.argument=t.argument+i,t}function g(t){for(var e,n,i=0,o=[],r=t.length;i<r;)n=[e=t[i]],e.leftHole&&(n=[m(e,e.leftHole,e.minLeftHole,"left"),e]),e.rightHole&&n.push(m(e,e.rightHole,e.minRightHole,"right")),o.push(n),i++;return[].concat.apply([],o)}e.chart.fullstackedbar=o({},u,f,{_updateOptions:p._updateOptions}),e.chart.stackedarea=o({},s,f,{_prepareSegment:function(t,e){return s._prepareSegment.call(this,g(t),e)},_appendInGroup:function(){this._group.append(this._extGroups.seriesGroup).toBackground()}}),e.chart.stackedsplinearea=o({},a.splinearea,f,{_prepareSegment:function(t,e){var n,i=this;if(t=g(t),this._prevSeries&&1!==t.length){for(var o=c.spline._calculateBezierPoints(t,e),s=d.map(t,(function(t){var e=t.getCoords(!0);return e.argument=t.argument,e})),l=[],u={},h=0,f=i._prevSeries._segments.length;h<f;)l=l.concat(i._prevSeries._segments[h].line),h++;r(l,(function(t,e){if(null!==e.argument){var n=e.argument.valueOf();u[n]?u[n].push(e):u[n]=[e]}})),i._prevSeries._segmentByArg=u,s=c.spline._calculateBezierPoints(s,e),r(s,(function(t,e){var n,o=e.argument.valueOf();t%3===0&&(n=u[o]||function(t,e){for(var n;!n&&t;)n=t._segmentByArg&&t._segmentByArg[e],t=t._prevSeries;return n}(i._prevSeries,o))&&(s[t-1]&&n[0]&&(s[t-1]=n[0]),s[t+1]&&(s[t+1]=n[2]||e))})),n={line:o,area:o.concat(s.reverse())},i._areaPointsToSplineAreaPoints(n.area)}else n=a.splinearea._prepareSegment.call(this,t,e);return n},_appendInGroup:e.chart.stackedarea._appendInGroup}),e.chart.fullstackedarea=o({},s,f,{_prepareSegment:e.chart.stackedarea._prepareSegment,_appendInGroup:e.chart.stackedarea._appendInGroup}),e.chart.fullstackedsplinearea=o({},a.splinearea,f,{_prepareSegment:e.chart.stackedsplinearea._prepareSegment,_appendInGroup:e.chart.stackedarea._appendInGroup}),e.polar.stackedbar=o({},l.polar.bar,f,{})},function(t,e,n){"use strict";var i=p(n(15)),o=p(n(6)),r=p(n(25)),a=n(0),s=n(5),l=n(140),u=n(13),c=p(n(28)),d=n(11),h=n(2),f=n(4);function p(t){return t&&t.__esModule?t:{default:t}}var m=Math.floor,g=l.states.hoverMark,_=l.states.normalMark,v="dxChartTracker",y=(0,d.addNamespace)([c.default.down,c.default.move],v),b=["includepoints","excludepoints","none"];function w(t,e){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]}function x(t,e){return t.cancel||!e.getOptions()}function C(t){var e=t.getOptions().hoverMode;return"none"===e?e:"allargumentpoints"}var S={ctor:function(t){var e=this,n={tracker:e};e._renderer=t.renderer,e._legend=t.legend,e._tooltip=t.tooltip,e._eventTrigger=t.eventTrigger,e._seriesGroup=t.seriesGroup,t.seriesGroup.off(".dxChartTracker").on((0,d.addNamespace)(l.events.showPointTooltip,v),n,e._showPointTooltip).on((0,d.addNamespace)(l.events.hidePointTooltip,v),n,e._hidePointTooltip),e._renderer.root.off(".dxChartTracker").on(y,n,e._pointerHandler).on((0,d.addNamespace)(c.default.up,v),(function(){return clearTimeout(e._holdTimer)})).on((0,d.addNamespace)(r.default.name,v),n,e._clickHandler)},update:function(t){this._chart=t.chart},updateSeries:function(t,e){var n=this,i=!((null===t||void 0===t?void 0:t.some((function(t){return t===n.hoveredSeries})))||n._hoveredPoint&&n._hoveredPoint.series);n._storedSeries!==t&&(n._storedSeries=t||[]),i&&(n._clean(),n._renderer.initHatching()),e&&(n.clearSelection(),i||(n._hideTooltip(n.pointAtShownTooltip),n.clearHover()))},setCanvases:function(t,e){this._mainCanvas=t,this._canvases=e},repairTooltip:function(){var t=this.pointAtShownTooltip;t&&t.series&&t.isVisible()?this._showTooltip(t):this._hideTooltip(t,!0)},_setHoveredPoint:function(t){t!==this._hoveredPoint&&(this._releaseHoveredPoint(),t.hover(),this._hoveredPoint=t)},_releaseHoveredPoint:function(){this._hoveredPoint&&this._hoveredPoint.getOptions()&&(this._hoveredPoint.clearHover(),this._hoveredPoint=null,this._tooltip.isEnabled()&&this._hideTooltip(this._hoveredPoint))},_setHoveredSeries:function(t,e){this._releaseHoveredSeries(),this._releaseHoveredPoint(),t.hover(e),this.hoveredSeries=t},_releaseHoveredSeries:function(){this.hoveredSeries&&(this.hoveredSeries.clearHover(),this.hoveredSeries=null)},clearSelection:function(){this._storedSeries.forEach((function(t){t&&(t.clearSelection(),t.getPoints().forEach((function(t){return t.clearSelection()})))}))},_clean:function(){this.hoveredPoint=this.hoveredSeries=this._hoveredArgumentPoints=null,this._hideTooltip(this.pointAtShownTooltip)},clearHover:function(){this._resetHoveredArgument(),this._releaseHoveredSeries(),this._releaseHoveredPoint()},_hideTooltip:function(t,e){!this._tooltip||t&&this.pointAtShownTooltip!==t||(!e&&this.pointAtShownTooltip&&(this.pointAtShownTooltip=null),this._tooltip.hide())},_showTooltip:function(t){var e,n={target:t};if(null===t||void 0===t?void 0:t.getOptions()){if(e=t.getTooltipFormatObject(this._tooltip,this._tooltip.isShared()&&this._chart.getStackedPoints(t)),!(0,h.isDefined)(e.valueText)&&!e.points||!t.isVisible())return;var i=t.getTooltipParams(this._tooltip.getLocation()),o=this._renderer.getRootOffset();if(i.x+=o.left,i.y+=o.top,!this._tooltip.show(e,i,n))return;this.pointAtShownTooltip=t}},_showPointTooltip:function(t,e){var n=t.data.tracker,i=n.pointAtShownTooltip;i&&i!==e&&n._hideTooltip(i),n._showTooltip(e)},_hidePointTooltip:function(t,e){t.data.tracker._hideTooltip(e)},_enableOutHandler:function(){if(!this._outHandler){var t=this,e=function(e){var n=t._renderer.getRootOffset(),i=m(e.pageX-n.left),o=m(e.pageY-n.top);(0,u.pointInCanvas)(t._mainCanvas,i,o)||(t._pointerOut(),t._disableOutHandler())};o.default.on(i.default.getDocument(),y,e),this._outHandler=e}},_disableOutHandler:function(){this._outHandler&&o.default.off(i.default.getDocument(),y,this._outHandler),this._outHandler=null},stopCurrentHandling:function(){this._pointerOut(!0)},_pointerOut:function(t){this.clearHover(),(t||this._tooltip.isEnabled())&&this._hideTooltip(this.pointAtShownTooltip)},_triggerLegendClick:function(t,e){var n=this._eventTrigger;n("legendClick",t,(function(){!x(t.event,t.target)&&n(e,t)}))},_hoverLegendItem:function(t,e){var n,i,o=this._legend.getItemByCoord(t,e),r=(i=this._legend.getOptions().hoverMode,b.indexOf(i)>-1?i:"includepoints");o?((n=this._storedSeries[o.id]).isHovered()&&n.lastHoverMode===r||this._setHoveredSeries(n,r),this._tooltip.isEnabled()&&this._hideTooltip(this.pointAtShownTooltip)):this.clearHover()},_hoverArgument:function(t,e){var n=this._getArgumentHoverMode();(0,h.isDefined)(t)&&(this._releaseHoveredPoint(),this._hoveredArgument=t,this._argumentIndex=e,this._notifySeries({action:"pointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{argument:t,fullState:g,argumentIndex:e,getOptions:function(){return{hoverMode:n}}}}))},_resetHoveredArgument:function(){var t;(0,h.isDefined)(this._hoveredArgument)&&(t=this._getArgumentHoverMode(),this._notifySeries({action:"clearPointHover",notifyLegend:this._notifyLegendOnHoverArgument,target:{fullState:_,argumentIndex:this._argumentIndex,argument:this._hoveredArgument,getOptions:function(){return{hoverMode:t}}}}),this._hoveredArgument=null)},_notifySeries:function(t){this._storedSeries.forEach((function(e){e.notify(t)}))},_pointerHandler:function(t){var e,n=t.data.tracker,i=n._renderer.getRootOffset(),o=m(t.pageX-i.left),r=m(t.pageY-i.top),a=n._getCanvas(o,r),s=w(t,"chart-data-series"),l=w(t,"chart-data-point")||(null===(e=s)||void 0===e?void 0:e.getPointByCoord(o,r));if(n._isHolding=!1,clearTimeout(n._holdTimer),t.type===c.default.down&&(n._holdTimer=setTimeout((function(){return n._isHolding=!0}),300)),l&&!l.getMarkerVisibility()&&(l=void 0),n._enableOutHandler(),n._legend.coordsIn(o,r))n._hoverLegendItem(o,r);else if(n.hoveredSeries&&n.hoveredSeries!==n._stuckSeries&&n._releaseHoveredSeries(),!n._hoverArgumentAxis(o,r,t)&&(n._isPointerOut(a,l)&&n._pointerOut(),a||l)){if(s&&!l){if(l=s.getNeighborPoint(o,r),n._stickyHovering||!l||l.coordsIn(o,r)||(l=null),s!==n.hoveredSeries)return void n._setTimeout((function(){n._setHoveredSeries(s),n._setStuckSeries(t,s,o,r),n._pointerComplete(l,o,r)}),s)}else{if(l){if(t.type!==c.default.move&&"touch"!==t.pointerType)return;return void(n.hoveredSeries?n._setTimeout((function(){return n._pointerOnPoint(l,o,r,t)}),l):n._pointerOnPoint(l,o,r,t))}var u;n._setStuckSeries(t,void 0,o,r)&&n._stickyHovering?(s=n._stuckSeries,l=s.getNeighborPoint(o,r),n._releaseHoveredSeries(),(null===(u=l)||void 0===u?void 0:u.getMarkerVisibility())&&n._setHoveredPoint(l)):n._stickyHovering||n._pointerOut()}n._pointerComplete(l,o,r)}},_pointerOnPoint:function(t,e,n){this._resetHoveredArgument(),this._setHoveredPoint(t),this._pointerComplete(t,e,n)},_pointerComplete:function(t){this.pointAtShownTooltip!==t&&this._tooltip.isEnabled()&&this._showTooltip(t)},_clickHandler:function(t){var e,n=t.data.tracker;if(!n._isHolding){var i=n._renderer.getRootOffset(),o=m(t.pageX-i.left),r=m(t.pageY-i.top),a=w(t,"chart-data-point"),s=n._stuckSeries||w(t,"chart-data-series")||(null===(e=a)||void 0===e?void 0:e.series),l=n._argumentAxis;if(n._legend.coordsIn(o,r)){var u=n._legend.getItemByCoord(o,r);u&&n._legendClick(u,t)}else if(null===l||void 0===l?void 0:l.coordsIn(o,r)){var c=w(t,"chart-data-argument");(0,h.isDefined)(c)&&n._eventTrigger("argumentAxisClick",{argument:c,event:t})}else{var d;if(s)(null===(d=a=a||s.getPointByCoord(o,r))||void 0===d?void 0:d.getMarkerVisibility())?n._pointClick(a,t):w(t,"chart-data-series")&&n._eventTrigger("seriesClick",{target:s,event:t})}}},dispose:function(){this._disableOutHandler(),this._renderer.root.off(".dxChartTracker"),this._seriesGroup.off(".dxChartTracker")}},k=function(t){this.ctor(t)};(0,a.extend)(k.prototype,S,{_pointClick:function(t,e){var n=this._eventTrigger,i=t.series;n("pointClick",{target:t,event:e},(function(){!x(e,i)&&n("seriesClick",{target:i,event:e})}))},update:function(t){S.update.call(this,t),this._argumentAxis=t.argumentAxis||{},this._axisHoverEnabled=this._argumentAxis&&"allargumentpoints"===(0,u.normalizeEnum)(this._argumentAxis.getOptions().hoverMode),this._rotated=t.rotated,this._crosshair=t.crosshair,this._stickyHovering=t.stickyHovering},_getCanvas:function(t,e){for(var n=this._canvases||[],i=0;i<n.length;i++){var o=n[i];if((0,u.pointInCanvas)(o,t,e))return o}return null},_isPointerOut:function(t){return!t&&this._stuckSeries},_hideCrosshair:function(){var t;null===(t=this._crosshair)||void 0===t||t.hide()},_moveCrosshair:function(t,e,n){this._crosshair&&(null===t||void 0===t?void 0:t.isVisible())&&this._crosshair.show({point:t,x:e,y:n})},_clean:function(){S._clean.call(this),this._resetTimer(),this._stuckSeries=null},_getSeriesForShared:function(t,e){var n,i=[],o=null,r=1/0;return this._tooltip.isShared()&&!this.hoveredSeries&&((0,s.each)(this._storedSeries,(function(n,o){var r=o.getNeighborPoint(t,e);r&&i.push(r)})),(0,s.each)(i,(function(n,i){var a=i.getCrosshairData(t,e),s=(0,u.getDistance)(t,e,a.x,a.y);s<r&&(o=i,r=s)}))),null===(n=o)||void 0===n?void 0:n.series},_setTimeout:function(t,e){var n=this;n._timeoutKeeper!==e&&(n._resetTimer(),n._hoverTimeout=setTimeout((function(){t(),n._timeoutKeeper=null}),100),n._timeoutKeeper=e)},_resetTimer:function(){clearTimeout(this._hoverTimeout),this._timeoutKeeper=this._hoverTimeout=null},_stopEvent:function(t){(0,h.isDefined)(t.cancelable)&&!t.cancelable||(t.preventDefault(),t.stopPropagation())},_setStuckSeries:function(t,e,n,i){return"mouse"!==t.pointerType?this._stuckSeries=null:this._stuckSeries=e||this._stuckSeries||this._getSeriesForShared(n,i),!!this._stuckSeries},_pointerOut:function(){var t=this;t._stuckSeries=null,t._hideCrosshair(),t._resetTimer(),S._pointerOut.apply(t,arguments)},_hoverArgumentAxis:function(t,e,n){if(this._resetHoveredArgument(),this._axisHoverEnabled&&this._argumentAxis.coordsIn(t,e))return this._hoverArgument(w(n,"chart-data-argument")),!0},_pointerComplete:function(t,e,n){this.hoveredSeries&&this.hoveredSeries.updateHover(e,n),this._resetTimer(),this._moveCrosshair(t,e,n),S._pointerComplete.call(this,t)},_legendClick:function(t,e){var n=this._storedSeries[t.id];this._triggerLegendClick({target:n,event:e},"seriesClick")},_hoverLegendItem:function(t,e){this._stuckSeries=null,this._hideCrosshair(),S._hoverLegendItem.call(this,t,e)},_pointerOnPoint:function(t,e,n,i){this._setStuckSeries(i,t.series,e,n),this._releaseHoveredSeries(),S._pointerOnPoint.call(this,t,e,n,i)},_notifyLegendOnHoverArgument:!1,_getArgumentHoverMode:function(){return C(this._argumentAxis)},dispose:function(){this._resetTimer(),S.dispose.call(this)}});var I=function(t){this.ctor(t)};(0,a.extend)(I.prototype,S,{_isPointerOut:function(t,e){return!e},_legendClick:function(t,e){var n=[];this._storedSeries.forEach((function(e){return n.push.apply(n,e.getPointsByKeys(t.argument,t.argumentIndex))})),this._eventTrigger("legendClick",{target:t.argument,points:n,event:e})},_pointClick:function(t,e){this._eventTrigger("pointClick",{target:t,event:e})},_hoverLegendItem:function(t,e){var n=this._legend.getItemByCoord(t,e);n&&this._hoveredArgument!==n.argument?(this._resetHoveredArgument(),this._hoverArgument(n.argument,n.argumentIndex)):n||this.clearHover()},_getArgumentHoverMode:function(){return C(this._legend)},_hoverArgumentAxis:f.noop,_setStuckSeries:f.noop,_getCanvas:f.noop,_notifyLegendOnHoverArgument:!0}),e.ChartTracker=k,e.PieTracker=I},function(t,e,n){"use strict";n(152);var i=n(2),o=n(5),r=n(13),a=n(37),s=Math,l=s.floor,u=s.max,c=s.abs;var d={transform:function(t,e){return(0,a.adjust)((0,r.getLog)(t,e))},addInterval:function(t,e){return(0,a.adjust)(t+e)},getInterval:function(t,e){return e}},h={transform:function(t,e){return(0,a.adjust)((0,r.raiseTo)(t,e))},addInterval:function(t,e){return(0,a.adjust)(t*e)},getInterval:function(t,e){return s.pow(t,e)}};function f(t,e){if(t.isLogarithmic){var n,i=t.logarithmicBase,o=t.tickValues,r=[];t.minValue=e.transform(t.minValue,i),t.oldMinValue=e.transform(t.oldMinValue,i),t.maxValue=e.transform(t.maxValue,i),t.oldMaxValue=e.transform(t.oldMaxValue,i),t.tickInterval=s.round(t.tickInterval),t.tickInterval<1&&(t.tickInterval=1);var a=e.getInterval(i,t.tickInterval);for(n=e.transform(o[0],i);r.length<o.length;)r.push(n),n=e.addInterval(n,a);r.tickInterval=t.tickInterval,t.tickValues=r}}function p(t){return t.maxValue-t.minValue||1}function m(t){for(var e=0;e<t.length;e++)if(!t[e].stubData)return t[e];return null}var g={synchronize:function(t){(0,o.each)(function(t){var e={};return t.forEach((function(t){var n=t.pane;e[n]||(e[n]=[]),e[n].push(t)})),e}(t),(function(t,e){var n,o;if(e.length>1){if((n=function(t){return t.reduce((function(t,e){var n,o=e.getTicksValues(),r=o.majorTicksValues,a=e.getOptions(),s=e.getTranslator().getBusinessRange(),l=e.getVisibleArea(),u=e._tickInterval,h=a.synchronizedValue;if(r&&r.length>0&&(0,i.isNumeric)(r[0])&&"discrete"!==a.type&&!s.isEmpty()&&(!s.breaks||!s.breaks.length)&&"zoom"!==e.getViewport().action){e.applyMargins();var p=e.getTranslator().from(l[0]),m=e.getTranslator().from(l[1]),g=p<m?p:m,_=p<m?m:p;g===_&&(0,i.isDefined)(h)&&(u=c(r[0]-h)||1,g=r[0]-u,_=r[0]+u),f(n={axis:e,isLogarithmic:"logarithmic"===a.type,logarithmicBase:s.base,tickValues:r,minorValues:o.minorTicksValues,minorTickInterval:e._minorTickInterval,minValue:g,oldMinValue:g,maxValue:_,oldMaxValue:_,inverted:s.invert,tickInterval:u,synchronizedValue:h},d),t.push(n)}return t}),[])}(e)).length<2||!m(n))return;!function(t){var e=t.reduce((function(t,e){return u(t,e.tickValues.length)}),0);t.forEach((function(t){var n,o,r=0,s=t.synchronizedValue,u=t.tickValues,c=t.tickInterval;if((0,i.isDefined)(s))t.baseTickValue=t.invertedBaseTickValue=s,t.tickValues=[t.baseTickValue];else{if(u.length>1&&c){for(o=(n=l((e+1)/u.length))>1?l((e+1)/n):e,r=l((o-u.length)/2);r>0&&0!==u[0];)u.unshift((0,a.adjust)(u[0]-c)),r--;for(;u.length<o;)u.push((0,a.adjust)(u[u.length-1]+c));t.tickInterval=c/n}t.baseTickValue=u[0],t.invertedBaseTickValue=u[u.length-1]}}))}(n),function(t){var e=m(t),n=e.tickInterval;t.forEach((function(t){var o,r,a,s;t!==e&&(n&&t.tickInterval&&(t.stubData&&(0,i.isDefined)(t.synchronizedValue)&&(t.oldMinValue=t.minValue=t.baseTickValue-(e.baseTickValue-e.minValue)/n*t.tickInterval,t.oldMaxValue=t.maxValue=t.baseTickValue-(e.baseTickValue-e.maxValue)/n*t.tickInterval),o=n/p(e)/t.tickInterval*p(t),t.maxValue=t.minValue+p(t)/o),a=e.inverted&&!t.inverted||!e.inverted&&t.inverted?e.maxValue-e.invertedBaseTickValue:e.baseTickValue-e.minValue,s=p(t),r=(a/p(e)-(t.baseTickValue-t.minValue)/s)*s,t.minValue-=r,t.maxValue-=r)}))}(n),o=function(t){var e,n,i=0,o=0;return t.forEach((function(t){var r=t.inverted;e=t.minValue>t.oldMinValue?(t.minValue-t.oldMinValue)/p(t):0,n=t.maxValue<t.oldMaxValue?(t.oldMaxValue-t.maxValue)/p(t):0,i=u(i,r?n:e),o=u(o,r?e:n)})),{start:i,end:o}}(n),function(t,e){t.forEach((function(t){var n=p(t),i=t.inverted;t.minValue=(0,a.adjust)(t.minValue-e[i?"end":"start"]*n),t.maxValue=(0,a.adjust)(t.maxValue+e[i?"start":"end"]*n)}))}(n,o),function(t){var e,n=[];t.forEach((function(t){t.oldMaxValue-t.oldMinValue===0?n.push(t):(0,i.isDefined)(e)||(0,i.isDefined)(t.synchronizedValue)||(e=c((t.maxValue-t.minValue)/(t.tickValues[l(t.tickValues.length/2)]-t.minValue||t.maxValue)))})),(0,i.isDefined)(e)&&n.forEach((function(t){var n=t.tickValues[0],i=n*e;n>0?(t.maxValue=i,t.minValue=0):n<0&&(t.minValue=i,t.maxValue=0)}))}(n),function(t){var e=!1;t.forEach((function(t){e=e||(0,i.isDefined)(t.synchronizedValue)})),t.forEach((function(t){var n,i=t.tickInterval,o=t.tickValues,r=t.maxValue,s=t.minValue;if(e&&i){for(;(n=(0,a.adjust)(o[0]-i))>=s;)o.unshift(n);for(n=o[o.length-1];(n=(0,a.adjust)(n+i))<=r;)o.push(n)}for(;o[0]+i/10<s;)o.shift();for(;o[o.length-1]-i/10>r;)o.pop()}))}(n),function(t){t.forEach((function(t){if(t.minorTickInterval){for(var e=[],n=t.minorTickInterval,i=t.tickInterval/n-1,o=1;o<t.tickValues.length;o++)for(var r=t.tickValues[o-1],a=0;a<i;a++)r+=n,e.push(r);t.minorValues=e}}))}(n),n.forEach((function(t){f(t,h)})),function(t){t.forEach((function(t){var e=t.axis,n=e.getTranslator().getBusinessRange();n.min===n.minVisible&&(n.min=t.minValue),n.max===n.maxVisible&&(n.max=t.maxValue),n.minVisible=t.minValue,n.maxVisible=t.maxValue,n.min>n.minVisible&&(n.min=n.minVisible),n.max<n.maxVisible&&(n.max=n.maxVisible),e.getTranslator().updateBusinessRange(n),e.setTicks({majorTicks:t.tickValues,minorTicks:t.minorValues})}))}(n)}}))}};t.exports=g},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=h(n(6)),r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=d();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),a=n(0),s=h(n(282)),l=n(2),u=n(4),c=h(n(101));function d(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return d=function(){return t},t}function h(t){return t&&t.__esModule?t:{default:t}}var f=Math.min,p=Math.max,m=function(t,e){this._translator=new s.default.Translator2D({},{},{}),this._scroll=t.rect().append(e),this._addEvents()};function g(t,e,n,i){var o=0;return"right"===e?o=t.width-t.right+n:"left"===e&&(o=t.left-n-i),o}function _(t,e,n,i){var o=0;return"top"===e?o=t.top-n:"bottom"===e&&(o=t.height-t.bottom+i+n),o}m.prototype={_addEvents:function(){var t=this,e=this._scroll.element;o.default.on(e,c.default.start,(function(t){r.fireEvent({type:"dxc-scroll-start",originalEvent:t,target:e})})),o.default.on(e,c.default.move,(function(n){var i=-n.offset.x*t._scale,o=-n.offset.y*t._scale,a=t._offset-(t._layoutOptions.vertical?o:i)/t._scale;t._applyPosition(a,a+t._translator.canvasLength/t._scale),r.fireEvent({type:"dxc-scroll-move",originalEvent:n,target:e,offset:{x:i,y:o}})})),o.default.on(e,c.default.end,(function(n){r.fireEvent({type:"dxc-scroll-end",originalEvent:n,target:e,offset:{x:-n.offset.x*t._scale,y:-n.offset.y*t._scale}})}))},update:function(t){var e=t.position,n=t.rotated,i=n?"right":"top";return e!==i&&e!==(n?"left":"bottom")&&(e=i),this._scroll.attr({rotate:t.rotated?0:-90,rotateX:0,rotateY:0,fill:t.color,width:t.width,opacity:t.opacity}),this._layoutOptions={width:t.width,offset:t.offset,vertical:n,position:e},this},init:function(t,e){var n="discrete"===t.axisType;return this._translateWithOffset=n&&!e?1:0,this._translator.update((0,a.extend)({},t,{minVisible:null,maxVisible:null,visibleCategories:null},n&&{min:null,max:null}||{}),this._canvas,{isHorizontal:!this._layoutOptions.vertical,stick:e}),this},getOptions:function(){return this._layoutOptions},setPane:function(t){var e,n=this._layoutOptions.position;return e="left"===n||"top"===n?t[0]:t[t.length-1],this.pane=e.name,this},updateSize:function(t){this._canvas=(0,a.extend)({},t);var e=this._layoutOptions,n=e.position,i=e.offset,o=e.width;this._scroll.attr({translateX:g(t,n,i,o),translateY:_(t,n,i,o)})},getMultipleAxesSpacing:function(){return 0},estimateMargins:function(){return this.getMargins()},getMargins:function(){var t=this._layoutOptions,e={left:0,top:0,right:0,bottom:0};return e[t.position]=t.width+t.offset,e},shift:function(t){var e,n,i=this._layoutOptions,o=i.position,r=i.vertical,a={translateX:null!==(e=this._scroll.attr("translateX"))&&void 0!==e?e:0,translateY:null!==(n=this._scroll.attr("translateY"))&&void 0!==n?n:0},s=t[o];a[r?"translateX":"translateY"]+=("left"===o||"top"===o?-1:1)*s,this._scroll.attr(a)},hideTitle:u.noop,hideOuterElements:u.noop,setPosition:function(t,e){var n=this._translator,i=(0,l.isDefined)(t)?n.translate(t,-this._translateWithOffset):n.translate("canvas_position_start"),o=(0,l.isDefined)(e)?n.translate(e,this._translateWithOffset):n.translate("canvas_position_end");this._offset=f(i,o),this._scale=n.getScale(t,e),this._applyPosition(f(i,o),p(i,o))},customPositionIsAvailable:function(){return!1},dispose:function(){this._scroll.dispose(),this._scroll=this._translator=null},_applyPosition:function(t,e){var n=this._translator.getCanvasVisibleArea();t=p(t,n.min),t=f(t,n.max),e=f(e,n.max),e=p(e,n.min);var i=Math.abs(e-t);this._scroll.attr({y:t,height:i<2?2:i})}},e.ScrollBar=m},function(t,e,n){"use strict";var i=n(101),o=i.start+".shutter-zoom",r=i.move+".shutter-zoom",a=i.end+".shutter-zoom";function s(t,e,n,i){var o=Math.floor(n?i.pageY-t.top:i.pageX-t.left),r=n?e.y1:e.x1,a=n?e.y2:e.x2;return o<r?o=r:o>a&&(o=a),o}function l(t){var e,n=t.chart,i=t.renderer,l=t.rotated,u=i.rect(0,0,0,0).attr(t.shutterOptions),c={rect:u,root:i.root,rotated:l,triggerStart:function(){n._eventTrigger("zoomStart")},triggerEnd:function(){var t=n._argumentAxes[0].getTranslator(),e=Math.min(this.startCoord,this.curCoord),i=Math.max(this.startCoord,this.curCoord);n._eventTrigger("zoomEnd",{rangeStart:t.from(e),rangeEnd:t.from(i)})},dispose:function(){i.root.off(".shutter-zoom"),u.dispose()},getRootOffset:function(){return i.getRootOffset()},getCanvas:function(){var t=n._canvas,e=n.panes,i=e[0].canvas,o=e[e.length-1].canvas;return{x1:i.left,y1:i.top,x2:t.width-o.right,y2:t.height-o.bottom,width:t.width-i.left-o.right,height:t.height-i.top-o.bottom}}};return i.root.off(".shutter-zoom").on(o,{direction:l?"vertical":"horizontal",immediate:!0},(e=c,function(t){var n=e.getRootOffset(),i=e.getCanvas();!function(t,e,n){var i=n.pageX-t.left,o=n.pageY-t.top;return i>=e.x1&&i<=e.x2&&o>=e.y1&&o<=e.y2}(n,i,t)?t.cancel=!0:(e.rootOffset=n,e.canvas=i,e.startCoord=s(n,i,e.rotated,t),e.triggerStart(),e.rect.attr({x:i.x1,y:i.y1,width:i.width,height:i.height}).append(e.root))})).on(r,function(t){return function(e){var n=s(t.rootOffset,t.canvas,t.rotated,e),i={};t.curCoord=n,i[t.rotated?"y":"x"]=Math.min(t.startCoord,n),i[t.rotated?"height":"width"]=Math.abs(t.startCoord-n),t.rect.attr(i)}}(c)).on(a,function(t){return function(e){t.triggerEnd(),t.rect.remove()}}(c)),c}t.exports={name:"shutter_zoom",init:function(){var t=this.option("shutterZoom")||{};t.enabled&&(this._shutterZoom=l({chart:this,renderer:this._renderer,rotated:this.option("rotated"),shutterOptions:t}))},dispose:function(){this._shutterZoom&&this._shutterZoom.dispose()}}},function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(13),a=n(154),s=u(n(760)),l=u(n(101));function u(t){return t&&t.__esModule?t:{default:t}}var c=".zoomAndPanNS",d=l.default.start+c,h=l.default.move+c,f=l.default.end+c,p=s.default.pinchstart+c,m=s.default.pinch+c,g=s.default.pinchend+c,_=Math.min,v=Math.max,y=Math.abs;function b(t){return{x:t.left,y:t.top,width:t.width-t.left-t.right,height:t.height-t.top-t.bottom}}function w(t,e){var n=e.x,i=e.y;return n>=t.x&&n<=t.width+t.x&&i>=t.y&&i<=t.height+t.y}function x(t,e){return e&&(t=t.sort((function(t,n){return t===e?-1:n===e?1:0}))),t}function C(t){return!t.getTranslator().getBusinessRange().isEmpty()}t.exports={name:"zoom_and_pan",init:function(){var t=this,e=this._renderer;function n(t){t.originalEvent&&n(t.originalEvent),!1!==t.cancelable&&(t.cancel=!0)}function s(e,i,o){var r=e.options,a=e.actionData,s=[];r.argumentAxis[i]&&s.push(t.getArgumentAxis()),r.valueAxis[i]&&(s=s.concat(a.valueAxes)),s.reduce((function(t,e){return t||(C(e)?e.handleZooming(null,{end:!0},o,i).isPrevented:t)}),!1)&&n(o)}function l(e,n,a,s,l){function u(t,e,a,l,u){var c={zoomed:!1};return e&&t.filter(C).forEach((function(t){var e=t.getOptions(),d=t.visualRange(),h=t.getTranslator().getEventScale(l),f=-s(l,u,a,h);c=(0,o.extend)(!0,c,t.getTranslator().zoom(f,h,t.getZoomBounds()));var p=t.adjustRange((0,r.getVizRangeObject)([c.min,c.max])),m=t.isZoomingLowerLimitOvercome(n,h,p);if((0,i.isDefined)(d)&&d.startValue.valueOf()===p.startValue.valueOf()&&d.endValue.valueOf()===p.endValue.valueOf()){if("touch"===l.pointerType&&"discrete"===e.type){var g=t.isExtremePosition(!1),_=t.isExtremePosition(!0),v=h>1&&!m,y=h<1&&(!g||!_),b=1===h&&!(g&&(f<0&&!e.inverted||f>0&&e.inverted)||_&&(f>0&&!e.inverted||f<0&&e.inverted));c.enabled=v||y||b}}else t.handleZooming(m?null:p,{start:!0,end:!0},l,n),m||(c.zoomed=!0,c.deltaTranslate=f-c.translate)})),c}function c(t,e,n,i){n.zoomed&&(e.offset[i]=(t.offset?t.offset[i]:e.offset[i])+n.deltaTranslate)}function d(t,e,n,i){n.zoomed&&(e.center[i]=t[i]+n.deltaTranslate)}var h=t.option("rotated"),f=e.actionData,p=e.options,m={},g={};f.fallback||(m=u(t._argumentAxes,p.argumentAxis[n],h?"y":"x",a,f),g=u(f.valueAxes,p.valueAxis[n],h?"x":"y",a,f),t._requestChange(["VISUAL_RANGE"]),c(a,f,m,h?"y":"x"),c(a,f,g,h?"x":"y"));var _=l(a);return d(_,f,m,h?"y":"x"),d(_,f,g,h?"x":"y"),m.zoomed||g.zoomed||(f.center=_),m.zoomed||g.zoomed||f.fallback||m.enabled||g.enabled}function u(e,n,i,o){function r(t,e,i,r,a,s){var l=!1;return e&&t.forEach((function(t){var e=s&&t!==s,u=r.scale||1,c=t.getTranslator().zoom(-o(r,a,i,u),u,t.getZoomBounds()),d={startValue:c.min,endValue:c.max},h=t.isZoomingLowerLimitOvercome(n,u,d);t.handleZooming(h?null:d,{start:!0,end:e},r,n),h?t.handleZoomEnd():l=!0})),l}var a=t.option("rotated"),s=e.actionData,l=e.options,u=!0;if(s.fallback)u&=r(t._argumentAxes,l.argumentAxis[n],a?"y":"x",i,s,t.getArgumentAxis()),u|=r(s.valueAxes,l.valueAxis[n],a?"x":"y",i,s);else{var c=[];l.argumentAxis[n]&&c.push(t.getArgumentAxis()),l.valueAxis[n]&&(c=c.concat(s.valueAxes)),c.filter(C).forEach((function(t){t.handleZooming(null,{start:!0},i,n)})),u=u&&c.length}u&&t._requestChange(["VISUAL_RANGE"])}function S(e,n){var o=t._argumentAxes.filter((function(t){return w(b(t.getCanvas()),e)}));return{fallback:t._lastRenderingTime>300,cancel:!o.length||!(0,i.isDefined)(n),action:n,curAxisRect:o.length&&b(o[0].getCanvas()),valueAxes:o.length&&t._valueAxes.filter((function(t){return w(b(t.getCanvas()),e)})),offset:{x:0,y:0},center:e,startCenter:e}}function k(t,n){var i=e.getRootOffset();return{x:_(v(n.pageX-i.left,t.x),t.width+t.x),y:_(v(n.pageY-i.top,t.y),t.height+t.y)}}function I(t){var n=e.getRootOffset(),i=t.pointers[0].pageX,o=t.pointers[1].pageX,r=t.pointers[0].pageY,a=t.pointers[1].pageY;return{x:_(i,o)+y(o-i)/2-n.left,y:_(r,a)+y(a-r)/2-n.top}}function T(t){var n=e.getRootOffset();return{x:t.pageX-n.left,y:t.pageY-n.top}}function E(t,e,n){return t.offset[n]-e.offset[n]}function O(e){!1!==e.cancelable&&(e.preventDefault(),e.stopPropagation()),t._stopCurrentHandling()}var M={dragStartHandler:function(t){var n,o=M.options,a="touch"===t.pointerType,l=o.argumentAxis.pan||o.valueAxis.pan,u=o.argumentAxis.zoom||o.valueAxis.zoom,c=(0,i.isDefined)(o.panKey)&&t[(0,r.normalizeEnum)(o.panKey)+"Key"],d=o.dragToZoom;(t._cancelPreventDefault=!0,a)?o.allowTouchGestures&&l&&(n=!M.panningVisualRangeEnabled()||M.skipEvent?null:"pan"):d&&l&&c||!d&&l?n="pan":d&&u&&(n="zoom");var h=S(T(t),n);if(h.cancel)return M.skipEvent=!1,void(!1!==t.cancelable&&(t.cancel=!0));M.actionData=h,"zoom"===n?(h.startCoords=k(h.curAxisRect,t),h.rect=e.rect(0,0,0,0).attr(o.dragBoxStyle).append(e.root)):s(M,"pan",t)},dragHandler:function(e){var n=t.option("rotated"),i=M.options,o=M.actionData,r="touch"===e.pointerType;if(e._cancelPreventDefault=!0,o&&(!r||M.panningVisualRangeEnabled()))if("zoom"===o.action){O(e);var a=o.curAxisRect,s=o.startCoords,u=k(a,e),c=i.argumentAxis.zoom,d=i.valueAxis.zoom,h={x:_(s.x,u.x),y:_(s.y,u.y),width:y(s.x-u.x),height:y(s.y-u.y)};c&&d||(!c&&!n||!d&&n?(h.x=a.x,h.width=a.width):(h.y=a.y,h.height=a.height)),o.rect.attr(h)}else if("pan"===o.action){l(M,"pan",e,E,(function(t){return t.offset}));var f=Math.abs(e.offset.y-o.offset.y),p=Math.abs(e.offset.x-o.offset.x);if(r&&(f>5&&f>Math.abs(o.offset.x)||p>5&&p>Math.abs(o.offset.y)))return;O(e)}},dragEndHandler:function(e){var n=t.option("rotated"),i=M.options,o=M.actionData,r="touch"===e.pointerType,a=o&&"pan"===o.action&&!o.fallback&&0===o.offset.x&&0===o.offset.y;if(o&&(!r||M.panningVisualRangeEnabled())&&!a){if((!r||!M.actionData.isNative)&&O(e),"zoom"===o.action){var s=function(t,n,i,r,a,s){t=x(t,s);var l=a[i],u=r[i],c=!1;return n&&y(l-u)>5&&t.some((function(t){var n=t.getTranslator();if(!n.getBusinessRange().isEmpty()){var i=s&&t!==s,r=[n.from(u),n.from(l)],a=t.isZoomingLowerLimitOvercome(o.action,n.getMinScale(!0),r),d=t.handleZooming(a?null:r,{start:!!i,end:!!i},e,o.action);return a?t.handleZoomEnd():c=!0,s&&d.isPrevented}})),c},l=k(o.curAxisRect,e),c=s(t._argumentAxes,i.argumentAxis.zoom,n?"y":"x",o.startCoords,l,t.getArgumentAxis());(s(o.valueAxes,i.valueAxis.zoom,n?"x":"y",o.startCoords,l)||c)&&t._requestChange(["VISUAL_RANGE"]),o.rect.dispose()}else"pan"===o.action&&u(M,"pan",e,E);M.actionData=null}},pinchStartHandler:function(t){var e=S(I(t),"zoom");e.isNative=!M.panningVisualRangeEnabled(),e.cancel?n(t):(M.actionData=e,s(M,"zoom",t))},pinchHandler:function(t){if(M.actionData){var e=l(M,"zoom",t,(function(t,e,n,i){return I(t)[n]-e.center[n]+(e.center[n]-e.center[n]*i)}),I);M.defineTouchBehavior(!e,t),!e&&(M.actionData=null)}},pinchEndHandler:function(t){M.actionData&&(u(M,"zoom",t,(function(t,e,n,i){return e.center[n]-e.startCenter[n]+(e.startCenter[n]-e.startCenter[n]*i)})),M.actionData=null)},cleanup:function(){e.root.off(c),M.actionData&&M.actionData.rect&&M.actionData.rect.dispose(),M.actionData=null,e.root.css({"touch-action":"","-ms-touch-action":""})},setup:function(i){if(M.cleanup(),i.argumentAxis.pan||e.root.on("dxc-scroll-start.zoomAndPanNS",n),!i.argumentAxis.none||!i.valueAxis.none){M.options=i;var o=t.option("rotated");(i.argumentAxis.zoom||i.valueAxis.zoom)&&i.allowMouseWheel&&e.root.on(a.name+c,(function(e){function n(t,n,i,o){t=x(t,o);var r=!1;return t.some((function(t){var a=t.getTranslator();if(!a.getBusinessRange().isEmpty()){var s=o&&t!==o,l=a.getMinScale(i>0),u=a.zoom(-(n-n*l),l,t.getZoomBounds()),c={startValue:u.min,endValue:u.max},d=t.isZoomingLowerLimitOvercome("zoom",l,c),h=t.handleZooming(d?null:c,{start:!!s,end:!!s},e,"zoom");return d?t.handleZoomEnd():r=!0,o&&h.isPrevented}})),!!r}var r,a=T(e),s=!1;if(i.valueAxis.zoom){if(0===(r=t._valueAxes.filter((function(t){return w(b(t.getCanvas()),a)}))).length){var l=t._valueAxes.reduce((function(t,e){return!t&&e.coordsIn(a.x,a.y)&&(t=e.getCanvas()),t}),null);l&&(r=t._valueAxes.filter((function(t){return w(b(t.getCanvas()),{x:l.left,y:l.top})})))}s|=n(r,o?a.x:a.y,e.delta)}i.argumentAxis.zoom&&(s|=t._argumentAxes.some((function(t){return!(!w(b(t.getCanvas()),a)&&!t.coordsIn(a.x,a.y))}))&&n(t._argumentAxes,o?a.y:a.x,e.delta,t.getArgumentAxis()));s&&(t._requestChange(["VISUAL_RANGE"]),M.panningVisualRangeEnabled(r)&&O(e))})),i.allowTouchGestures&&(i.argumentAxis.zoom||i.valueAxis.zoom)&&e.root.on(p,{passive:!1},M.pinchStartHandler).on(m,{passive:!1},M.pinchHandler).on(g,M.pinchEndHandler),e.root.on(d,{immediate:!0,passive:!1},M.dragStartHandler).on(h,{immediate:!0,passive:!1},M.dragHandler).on(f,M.dragEndHandler),i.argumentAxis.pan&&e.root.on("dxc-scroll-start.zoomAndPanNS",(function(t){M.actionData={valueAxes:[],offset:{x:0,y:0},center:{x:0,y:0}},O(t),s(M,"pan",t)})).on("dxc-scroll-move.zoomAndPanNS",(function(t){O(t),l(M,"pan",t,E,(function(t){return t.offset}))})).on("dxc-scroll-end.zoomAndPanNS",(function(t){O(t),u(M,"pan",t,E),M.actionData=null}))}},defineTouchBehavior:function(t,e){M.actionData&&(M.actionData.isNative=t),t||O(e)},panningVisualRangeEnabled:function(e){if(null===e||void 0===e?void 0:e.length)return e.some((function(t){return!t.isExtremePosition(!1)||!t.isExtremePosition(!0)}));var n=t._valueAxes.some((function(t){return!t.isExtremePosition(!1)||!t.isExtremePosition(!0)})),i=t._argumentAxes.some((function(t){return!t.isExtremePosition(!1)||!t.isExtremePosition(!0)}));return n||i}};this._zoomAndPan=M},members:{_setupZoomAndPan:function(){this._zoomAndPan.setup(this._themeManager.getOptions("zoomAndPan"))}},dispose:function(){this._zoomAndPan.cleanup()},customize:function(t){t.addChange({code:"ZOOM_AND_PAN",handler:function(){this._setupZoomAndPan()},isThemeDependent:!0,isOptionChange:!0,option:"zoomAndPan"})}}},function(t,e,n){"use strict";var i=n(37),o=n(5),r=n(38),a=n(11),s=n(186),l=n(131),u="start",c="",d="end",h=[],f=function(t,e){h.push({name:t,args:e})};f("transform",{scale:!0,deltaScale:!0,rotation:!0,deltaRotation:!0,translation:!0,deltaTranslation:!0}),f("translate",{translation:!0,deltaTranslation:!0}),f("zoom",{scale:!0,deltaScale:!0}),f("pinch",{scale:!0,deltaScale:!0}),f("rotate",{rotation:!0,deltaRotation:!0});var p=function(t){var e,n,i=t.pointers;return e=i[0],{x:(n=i[1]).pageX-e.pageX,y:-n.pageY+e.pageY,centerX:.5*(n.pageX+e.pageX),centerY:.5*(n.pageY+e.pageY)}},m=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},g=function(t,e){return m(t)/m(e)},_=function(t,e){var n=t.x*e.x+t.y*e.y,o=m(t)*m(e);return 0===o?0:i.sign(t.x*e.y-e.x*t.y)*Math.acos(i.fitIntoRange(n/o,-1,1))},v=function(t,e){return{x:t.centerX-e.centerX,y:t.centerY-e.centerY}},y=s.inherit({configure:function(t,e){e.indexOf("zoom")>-1&&r.log("W0005",e,"15.1","Use '"+e.replace("zoom","pinch")+"' event instead"),this.callBase(t)},validatePointers:function(t){return a.hasTouches(t)>1},start:function(t){this._accept(t);var e=p(t);this._startVector=e,this._prevVector=e,this._fireEventAliases(u,t)},move:function(t){var e=p(t),n=this._getEventArgs(e);this._fireEventAliases(c,t,n),this._prevVector=e},end:function(t){var e=this._getEventArgs(this._prevVector);this._fireEventAliases(d,t,e)},_getEventArgs:function(t){return{scale:g(t,this._startVector),deltaScale:g(t,this._prevVector),rotation:_(t,this._startVector),deltaRotation:_(t,this._prevVector),translation:v(t,this._startVector),deltaTranslation:v(t,this._prevVector)}},_fireEventAliases:function(t,e,n){n=n||{},o.each(h,function(i,r){var a={};o.each(r.args,(function(t){t in n&&(a[t]=n[t])})),this._fireEvent("dx"+r.name+t,e,a)}.bind(this))}}),b=h.reduce((function(t,e){return[u,c,d].forEach((function(n){t.push("dx"+e.name+n)})),t}),[]);l({emitter:y,events:b}),o.each(b,(function(t,n){e[n.substring("dx".length)]=n}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(138),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.CheckBox=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,name:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(763),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator",defaultSubvalues:"subvalues",defaultValue:"value"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},geometry:{optionName:"geometry",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},rangeContainer:{optionName:"rangeContainer",isCollectionItem:!1},scale:{optionName:"scale",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},subvalueIndicator:{optionName:"subvalueIndicator",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1},valueIndicator:{optionName:"valueIndicator",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.CircularGauge=l,l.propTypes={animation:r.object,containerBackgroundColor:r.string,disabled:r.bool,elementAttr:r.object,export:r.object,geometry:r.object,loadingIndicator:r.object,margin:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,pathModified:r.bool,rangeContainer:r.object,redrawOnResize:r.bool,rtlEnabled:r.bool,scale:r.object,size:r.object,subvalueIndicator:r.object,subvalues:r.array,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,value:r.number,valueIndicator:r.object};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="geometry",e}(s.default);e.Geometry=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Label=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.MinorTick=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="ranges",e.IsCollectionItem=!0,e}(s.default);e.Range=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="rangeContainer",e.ExpectedChildren={range:{optionName:"ranges",isCollectionItem:!0}},e}(s.default);e.RangeContainer=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scale",e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1}},e}(s.default);e.Scale=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Subtitle=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subvalueIndicator",e.ExpectedChildren={text:{optionName:"text",isCollectionItem:!1}},e}(s.default);e.SubvalueIndicator=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="text",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Text=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.Tick=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.Title=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueIndicator",e}(s.default);e.ValueIndicator=M,e.default=l},function(t,e,n){"use strict";t.exports=n(397),t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(412),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1}},e._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ColorBox=l,l.propTypes={acceptCustomValue:r.bool,accessKey:r.string,activeStateEnabled:r.bool,applyButtonText:r.string,applyValueMode:r.oneOf(["instantly","useButtons"]),buttons:r.array,cancelButtonText:r.string,deferRendering:r.bool,disabled:r.bool,dropDownOptions:r.object,editAlphaChannel:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,keyStep:r.number,name:r.string,onChange:r.func,onClosed:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOpened:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,showClearButton:r.bool,showDropDownButton:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=w,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(117),a=n(413),s=n(0).extend,l=n(8),u=n(221),c=a.prototype,d={makeTransparentBackground:c._makeTransparentBackground.bind(c),makeRgba:c._makeRgba.bind(c)},h=u.inherit({_supportedKeys:function(){var t=function(t){if(t.stopPropagation(),this.option("opened"))return t.preventDefault(),!0};return s(this.callBase(),{tab:function(t){this.option("opened")&&(t.preventDefault(),this._colorView._rgbInputs[0].focus())},enter:this._enterKeyHandler,leftArrow:t,rightArrow:t,upArrow:function(t){return this.option("opened")?!t.altKey||(this.close(),!1):(t.preventDefault(),!1)},downArrow:function(t){return this.option("opened")||t.altKey?!(!this.option("opened")&&t.altKey)||(this._validatedOpening(),!1):(t.preventDefault(),!1)}})},_getDefaultOptions:function(){return s(this.callBase(),{editAlphaChannel:!1,applyValueMode:"useButtons",keyStep:1,fieldTemplate:null,buttonsLocation:"bottom after"})},_popupHidingHandler:function(){this.callBase(),"useButtons"===this.option("applyValueMode")&&this._updateColorViewValue(this.option("value"))},_popupConfig:function(){return s(this.callBase(),{height:"auto",width:""})},_contentReadyHandler:function(){this._createColorView(),this._addPopupBottomClasses()},_addPopupBottomClasses:function(){var t=this._popup.bottomToolbar();t&&(t.addClass("dx-colorview-container-cell").addClass("dx-colorview-button-cell").find(".dx-toolbar-items-container").addClass("dx-colorview-buttons-container"),t.find(".dx-popup-done").addClass("dx-colorview-apply-button"),t.find(".dx-popup-cancel").addClass("dx-colorview-cancel-button"))},_createColorView:function(){this._popup.overlayContent().addClass("dx-colorbox-overlay");var t=i("<div>").appendTo(this._popup.$content());this._colorView=this._createComponent(t,a,this._colorViewConfig()),this._colorView.registerKeyHandler("escape",this._escapeHandler.bind(this)),o.on(t,"focus",function(){this.focus()}.bind(this))},_escapeHandler:function(){this.close(),this.focus()},_applyNewColor:function(t){this.option("value",t),t&&d.makeTransparentBackground(this._$colorResultPreview,t),this._colorViewEnterKeyPressed&&(this.close(),this._colorViewEnterKeyPressed=!1)},_colorViewConfig:function(){var t=this;return{value:t.option("value"),matchValue:t.option("value"),editAlphaChannel:t.option("editAlphaChannel"),applyValueMode:t.option("applyValueMode"),focusStateEnabled:t.option("focusStateEnabled"),stylingMode:this.option("stylingMode"),onEnterKeyPressed:function(){t._colorViewEnterKeyPressed=!0,t._colorView.option("value")!==t.option("value")&&(t._applyNewColor(t._colorView.option("value")),t.close())},onValueChanged:function(e){d.makeRgba(e.value)!==e.previousValue&&(("instantly"===t.option("applyValueMode")||t._colorViewEnterKeyPressed)&&t._applyNewColor(e.value))}}},_enterKeyHandler:function(){var t=this._input().val(),e=this.option("value"),n=this.option("editAlphaChannel")?d.makeRgba(e):e;if(!t)return!1;if(!new r(t).colorIsInvalid){if(t!==n&&(this._applyColorFromInput(t),this.option("value",this.option("editAlphaChannel")?d.makeRgba(t):t)),this._colorView){var i=this._colorView.option("value");e!==i&&this.option("value",i)}return this.close(),!1}this._input().val(n)},_applyButtonHandler:function(){this._applyNewColor(this._colorView.option("value")),this.callBase()},_cancelButtonHandler:function(){this._resetInputValue(),this.callBase()},_getKeyboardListeners:function(){return this.callBase().concat([this._colorView])},_init:function(){this.callBase()},_initMarkup:function(){this.$element().addClass("dx-colorbox"),this.callBase()},_renderInput:function(){this.callBase(),this._input().addClass("dx-colorbox-input"),this._renderColorPreview()},_renderColorPreview:function(){this.$element().wrapInner(i("<div>").addClass("dx-colorbox-input-container")),this._$colorBoxInputContainer=this.$element().children().eq(0),this._$colorResultPreview=i("<div>").addClass("dx-colorbox-color-result-preview").appendTo(this._$textEditorInputContainer),this.option("value")?d.makeTransparentBackground(this._$colorResultPreview,this.option("value")):this._$colorBoxInputContainer.addClass("dx-colorbox-color-is-not-defined")},_renderValue:function(){var t=this.option("value");return this.option("text",this.option("editAlphaChannel")?d.makeRgba(t):t),this.callBase()},_resetInputValue:function(){var t=this._input(),e=this.option("value");t.val(e),this._updateColorViewValue(e)},_updateColorViewValue:function(t){this._colorView&&this._colorView.option({value:t,matchValue:t})},_valueChangeEventHandler:function(t){var e=this._input().val();e&&(e=this._applyColorFromInput(e),this._updateColorViewValue(e)),this.callBase(t,e)},_applyColorFromInput:function(t){return new r(t).colorIsInvalid&&(this._resetInputValue(),t=this.option("value")),t},_optionChanged:function(t){var e=t.value,n=t.name;switch(n){case"value":this._$colorBoxInputContainer.toggleClass("dx-colorbox-color-is-not-defined",!e),e?d.makeTransparentBackground(this._$colorResultPreview,e):this._$colorResultPreview.removeAttr("style"),this._updateColorViewValue(e),this.callBase(t);break;case"applyButtonText":case"cancelButtonText":this.callBase(t),this._popup&&this._addPopupBottomClasses();break;case"editAlphaChannel":case"keyStep":this._colorView&&this._colorView.option(n,e);break;default:this.callBase(t)}}});l("dxColorBox",h),t.exports=h},function(t,e,n){"use strict";var i=n(8),o=n(767);i("dxNumberBox",o),t.exports=o},function(t,e,n){"use strict";var i=n(6),o=n(0).extend,r=n(2).isNumeric,a=n(31),s=n(18),l=n(37).fitIntoRange,u=n(37).inRange,c=n(74),d=n(768),h=n(369).getFormat,f=n(769),p=n(11),m=n(2),g=n(4),_=g.ensureDefined,v=g.escapeRegExp,y=a.msie?300:0,b=f.inherit({_getDefaultOptions:function(){return o(this.callBase(),{useMaskBehavior:!0,format:null})},_isDeleteKey:function(t){return"del"===t},_supportedKeys:function(){if(!this._useMaskBehavior())return this.callBase();return o(this.callBase(),{minus:this._revertSign.bind(this),del:this._removeHandler.bind(this),backspace:this._removeHandler.bind(this),leftArrow:this._arrowHandler.bind(this,-1),rightArrow:this._arrowHandler.bind(this,1),home:this._moveCaretToBoundaryEventHandler.bind(this,1),enter:this._updateFormattedValue.bind(this),end:this._moveCaretToBoundaryEventHandler.bind(this,-1)})},_focusInHandler:function(t){this._preventNestedFocusEvent(t)||(this.clearCaretTimeout(),this._caretTimeout=setTimeout(function(){this._caretTimeout=null;var e=this._caret();if(e.start===e.end&&this._useMaskBehavior()){var n=this._getInputVal(),i=c.getDecimalSeparator(),o=n.indexOf(i);o>=0?this._caret({start:o,end:o}):this._moveCaretToBoundaryEventHandler(-1,t)}}.bind(this),y)),this.callBase(t)},_focusOutHandler:function(t){var e=!this._preventNestedFocusEvent(t);e&&(this._focusOutOccurs=!0,this._useMaskBehavior()&&this._updateFormattedValue()),this.callBase(t),e&&(this._focusOutOccurs=!1)},_hasValueBeenChanged:function(t){var e=this._getFormatPattern(),n=this.option("value");return(this._format(n,e)||"")!==t},_updateFormattedValue:function(){var t=this._getInputVal();this._hasValueBeenChanged(t)&&(this._parsedValue=this._tryParse(t,this._caret()),this._adjustParsedValue(),this._setTextByParsedValue(),this._parsedValue!==this.option("value")&&i.trigger(this._input(),"change"))},_arrowHandler:function(t,e){if(this._useMaskBehavior()){var n=this._getInputVal(),i=this._getFormatPattern(),o=d.getCaretWithOffset(this._caret(),t);d.isCaretInBoundaries(o,n,i)||(o=1===t?o.end:o.start,e.preventDefault(),this._caret(d.getCaretInBoundaries(o,n,i)))}},_moveCaretToBoundary:function(t){var e=d.getCaretBoundaries(this._getInputVal(),this._getFormatPattern()),n=d.getCaretWithOffset(1===t?e.start:e.end,0);this._caret(n)},_moveCaretToBoundaryEventHandler:function(t,e){!this._useMaskBehavior()||e&&e.shiftKey||(this._moveCaretToBoundary(t),e&&e.preventDefault())},_shouldMoveCaret:function(t,e){var n=c.getDecimalSeparator(),i=t.charAt(e.end)===n,o="0"===t.charAt(e.end),r=(this._lastKey===n||"."===this._lastKey)&&i,a="0"===this._lastKey&&o;return r||a},_getInputVal:function(){return c.convertDigits(this._input().val(),!0)},_keyboardHandler:function(t){if(this.clearCaretTimeout(),this._lastKey=c.convertDigits(p.getChar(t),!0),this._lastKeyName=p.normalizeKeyName(t),!this._shouldHandleKey(t.originalEvent))return this.callBase(t);var e=this._getInputVal(),n=this._caret(),i="minus"===this._lastKeyName?"":this._lastKey,o=this._tryParse(e,n,i);return this._shouldMoveCaret(e,n)&&(this._moveCaret(1),t.originalEvent.preventDefault()),void 0===o?"minus"!==this._lastKeyName&&t.originalEvent.preventDefault():this._parsedValue=o,this.callBase(t)},_keyPressHandler:function(t){this._useMaskBehavior()||this.callBase(t)},_removeHandler:function(t){var e=this._caret(),n=this._getInputVal(),i=e.start,o=e.end;this._lastKey=p.getChar(t),this._lastKeyName=p.normalizeKeyName(t);var r=this._isDeleteKey(this._lastKeyName),a=!r;if(i===o){if(!(a&&i>0||r&&i<n.length))return void t.preventDefault();r&&o++,a&&i--}var s=n.slice(i,o);if(this._isStub(s))return this._moveCaret(r?1:-1),(this._parsedValue<0||1/this._parsedValue===-1/0)&&(this._revertSign(t),this._setTextByParsedValue()),void t.preventDefault();var l=c.getDecimalSeparator();if(s!==l){if(o-i<n.length)if(this._replaceSelectedText(n,{start:i,end:o},"").search(/[0-9]/)<0&&this._isValueInRange(0))return void(this._parsedValue=this._parsedValue<0||1/this._parsedValue===-1/0?-0:0);var u=this._tryParse(n,{start:i,end:o},"");void 0===u?t.preventDefault():this._parsedValue=u}else{var d=n.indexOf(l);this._isNonStubAfter(d+1)&&(this._moveCaret(r?1:-1),t.preventDefault())}},_isPercentFormat:function(){return-1!==this._getFormatPattern().replace(/'[^']+'/g,"").indexOf("%")},_parse:function(t,e){var n=this.option("format"),i=m.isFunction(n.parser),o=i?n.parser:c.parse;if(!i){var r=e.indexOf("."),a=t.indexOf(c.getDecimalSeparator()),s=-1!==r?r:e.length,l=-1!==a?a:t.length;l>s&&-1===e.indexOf("#")&&(t=t.substr(l-s))}return o(t,e)},_format:function(t,e){var n=this.option("format");return(m.isFunction(null===n||void 0===n?void 0:n.formatter)?n.formatter:c.format)(t,e)},_getFormatPattern:function(){return this._currentFormat||this._updateFormat(),this._currentFormat},_updateFormat:function(){var t=this,e=this.option("format"),n=m.isFunction(null===e||void 0===e?void 0:e.parser),i=m.isString(e)&&(e.indexOf("0")>=0||e.indexOf("#")>=0);this._currentFormat=n||i?e:h((function(n){var i=t._format(n,e);return c.convertDigits(i,!0)}))},_getFormatForSign:function(t){var e=this._getFormatPattern();if(m.isString(e)){var n=e.split(";"),i=c.getSign(t,e);return n[1]=n[1]||"-"+n[0],i<0?n[1]:n[0]}return c.getSign(t)<0?"-":""},_removeStubs:function(t,e){var n=this._getFormatForSign(t),i=c.getThousandsSeparator(),o=this._getStubs(n),r=t;if(o.length){var a=o[0],s=new RegExp("("+v(o[1]||"")+")$","g"),l=new RegExp("[-"+v(e?"":i)+"]","g");r=r.replace(a,"").replace(s,"").replace(l,"")}return r},_getStubs:function(t){var e=/[^']([#0.,]+)/g.exec(t),n=e&&e[0].trim();return t.split(n).map((function(t){return t.replace(/'/g,"")}))},_truncateToPrecision:function(t,e){if(m.isDefined(t)){var n=t.toString(),i=n.indexOf(".");if(n&&i>-1){var o=parseFloat(n.substr(0,i+e+1));return isNaN(o)?t:o}}return t},_tryParse:function(t,e,n){var i=this._replaceSelectedText(t,e,n),o=this._getFormatPattern(),r=e.start!==e.end,a=this._getParsedValue(i,o),s=!o.parser&&this._getPrecisionLimits(i).max,l=a!==this._parsedValue,u=n===c.getDecimalSeparator()&&0===s,d=!r&&!l&&"-"!==n&&!this._isValueIncomplete(i)&&this._isStub(n);if(!u&&!d&&(""===this._removeStubs(i)&&(a=Math.abs(0*this._parsedValue)),!isNaN(a))){var h=null===a?this._parsedValue:a;return a=s?this._truncateToPrecision(h,s):a,!o.parser&&this._isPercentFormat()?a&&a/100:a}},_getParsedValue:function(t,e){var n=c.getSign(t,(null===e||void 0===e?void 0:e.formatter)||e),i=this._removeStubs(t,!0),o=this._parse(i,e);return r(o)?n*o:o},_isValueIncomplete:function(t){if(!this._useMaskBehavior())return this.callBase(t);var e=this._caret(),n=c.getDecimalSeparator(),i=t.indexOf(n),o=i>=0&&i<e.start,r=this._removeStubs(t,!0).split(n);if(!o||2!==r.length)return!1;var a=r[1].length,s=!!this._getFormatPattern().parser,l=!s&&this._getPrecisionLimits(this._getFormatPattern(),t),d=!!s||u(a,l.min,l.max),h="0"===r[1].charAt(a-1);return d&&(h||!a)},_isValueInRange:function(t){var e=_(this.option("min"),-1/0),n=_(this.option("max"),1/0);return u(t,e,n)},_setInputText:function(t){var e=c.convertDigits(t,!0),n=d.getCaretAfterFormat(this._getInputVal(),e,this._caret(),this._getFormatPattern());this._input().val(t),this._toggleEmptinessEventHandler(),this._formattedValue=t,this._focusOutOccurs||this._caret(n)},_useMaskBehavior:function(){return!!this.option("format")&&this.option("useMaskBehavior")},_renderInputType:function(){var t="number"===this.option("mode"),e="desktop"===s.real().deviceType;this._useMaskBehavior()&&t?this._setInputType(e||this._isSupportInputMode()?"text":"tel"):this.callBase()},_isChar:function(t){return m.isString(t)&&1===t.length},_moveCaret:function(t){if(t){var e=d.getCaretWithOffset(this._caret(),t),n=d.getCaretInBoundaries(e,this._getInputVal(),this._getFormatPattern());this._caret(n)}},_shouldHandleKey:function(t){var e=p.normalizeKeyName(t),n=t.ctrlKey||t.shiftKey||t.altKey||!this._isChar(e),i="minus"===e;return this._useMaskBehavior()&&!n&&!i},_renderInput:function(){this.callBase(),this._renderFormatter()},_renderFormatter:function(){this._clearCache(),this._detachFormatterEvents(),this._useMaskBehavior()&&this._attachFormatterEvents()},_detachFormatterEvents:function(){i.off(this._input(),".dxNumberFormatter")},_isInputFromPaste:function(t){var e=t.originalEvent&&t.originalEvent.inputType;return m.isDefined(e)?"insertFromPaste"===e:this._isValuePasted},_attachFormatterEvents:function(){var t=this._input();i.on(t,p.addNamespace("input","dxNumberFormatter"),function(t){this._formatValue(t),this._isValuePasted=!1}.bind(this)),a.msie&&a.version<12&&i.on(t,p.addNamespace("paste","dxNumberFormatter"),function(){this._isValuePasted=!0}.bind(this)),i.on(t,p.addNamespace("dxclick","dxNumberFormatter"),function(){this._caretTimeout||(this._caretTimeout=setTimeout(function(){this._caret(d.getCaretInBoundaries(this._caret(),this._getInputVal(),this._getFormatPattern()))}.bind(this),y))}.bind(this)),i.on(t,"dxdblclick",function(){this.clearCaretTimeout()}.bind(this))},clearCaretTimeout:function(){clearTimeout(this._caretTimeout),this._caretTimeout=null},_forceRefreshInputValue:function(){if(!this._useMaskBehavior())return this.callBase()},_isNonStubAfter:function(t,e){return(e=(e||this._getInputVal()).slice(t))&&!this._isStub(e,!0)},_isStub:function(t,e){var n=v(c.getDecimalSeparator());return new RegExp("^[^0-9"+n+"]+$","g").test(t)&&(e||this._isChar(t))},_parseValue:function(t){return this._useMaskBehavior()?this._parsedValue:this.callBase(t)},_getPrecisionLimits:function(t){var e=(this._getFormatForSign(t).split(".")[1]||"").replace(/[^#0]/g,"");return{min:e.replace(/^(0*)#*/,"$1").length,max:e.length}},_revertSign:function(t){if(this._useMaskBehavior()){var e=this._caret();if(e.start!==e.end){if("minus"===p.normalizeKeyName(t))return void this._applyRevertedSign(t,e,!0);this._caret(d.getCaretInBoundaries(0,this._getInputVal(),this._getFormatPattern()))}this._applyRevertedSign(t,e)}},_applyRevertedSign:function(t,e,n){var o=-1*_(this._parsedValue,null);if(this._isValueInRange(o)){if(this._parsedValue=o,n){var r=this._getFormatPattern(),s=this._getInputVal();this._setTextByParsedValue(),t.preventDefault();var l=this._getInputVal(),u=d.getCaretOffset(s,l,r);e=d.getCaretWithOffset(e,u);var c=d.getCaretInBoundaries(e,l,r);a.msie?(clearTimeout(this._caretTimeout),this._caretTimeout=setTimeout(this._caret.bind(this,c))):this._caret(c)}"Subtract"===t.key&&i.trigger(this._input(),"input")}},_removeMinusFromText:function(t,e){return"minus"===this._lastKeyName&&"-"===t.charAt(e.start-1)?this._replaceSelectedText(t,{start:e.start-1,end:e.start},""):t},_setTextByParsedValue:function(){var t=this._getFormatPattern(),e=this._parseValue(),n=this._format(e,t)||"";this._setInputText(n)},_formatValue:function(t){var e=this._getInputVal(),n=this._caret(),i=this._removeMinusFromText(e,n),o=i!==e;if(e=i,!this._isInputFromPaste(t)&&this._isValueIncomplete(i))return this._formattedValue=e,void(o&&this._setTextByParsedValue());if(c.convertDigits(this._formattedValue,!0)!==e){var r=this._tryParse(e,n,"");m.isDefined(r)&&(this._parsedValue=r)}this._setTextByParsedValue()},_renderDisplayText:function(){this._useMaskBehavior()?this._toggleEmptinessEventHandler():this.callBase.apply(this,arguments)},_renderValue:function(){return this._useMaskBehavior()&&(this._parsedValue=this.option("value"),this._setTextByParsedValue()),this.callBase()},_adjustParsedValue:function(){if(this._useMaskBehavior()){var t=this._removeStubs(this._getInputVal())?this._parseValue():null;r(t)?this._parsedValue=l(t,this.option("min"),this.option("max")):this._parsedValue=t}},_valueChangeEventHandler:function(t){if(!this._useMaskBehavior())return this.callBase(t);var e=this._caret();this._saveValueChangeEvent(t),this._lastKey=null,this._lastKeyName=null,this._adjustParsedValue(),this.option("value",this._parsedValue),e&&this._caret(e)},_optionChanged:function(t){switch(t.name){case"format":case"useMaskBehavior":this._updateFormat(),this._renderFormatter(),this._renderValue();break;case"min":case"max":this._adjustParsedValue(),this.callBase(t);break;default:this.callBase(t)}},_clearCache:function(){delete this._formattedValue,delete this._lastKey,delete this._lastKeyName,delete this._parsedValue,delete this._focusOutOccurs,clearTimeout(this._caretTimeout),delete this._caretTimeout},_clean:function(){this._clearCache(),this.callBase()}});t.exports=b},function(t,e,n){"use strict";var i=n(37).fitIntoRange,o=n(4).escapeRegExp,r=n(74),a=function(t,e){if("string"===typeof e){var n=e.split(";"),i=r.getSign(t,e);n[1]=n[1]||"-"+n[0],e=n[i<0?1:0];e=e.replace(/'([^']*)'/g,(function(t){return t.split("").map((function(){return" "})).join("").substr(2)}));var o=/^[^#0.,]*/.exec(e)[0].length,a=/[^#0.,]*$/.exec(e)[0].length;return{start:o,end:t.length-a}}return{start:0,end:t.length}},s=function(t,e){var n=r.getDecimalSeparator(),i=new RegExp("[^0-9"+o(n)+"]","g");return e.slice(0,t).replace(i,"").length},l=function(t){return t.split("").reverse().join("")},u=function(t,e){if(!t)return-1;for(var n=/[0-9]/g,i=1,o=null,r=n.exec(e);r;){if(o=r.index,!t||i>=t)return o;i++,r=n.exec(e)}return null===o?e.length:o},c=function(t,e){return void 0===t.start&&(t={start:t,end:t}),{start:t.start+e,end:t.end+e}};function d(t,e,n){t=c(t,0);var o=a(e,n);return{start:i(t.start,o.start,o.end),end:i(t.end,o.start,o.end)}}e.getCaretBoundaries=a,e.isCaretInBoundaries=function(t,e,n){var i=d(t=c(t,0),e,n);return t.start>=i.start&&t.end<=i.end},e.getCaretWithOffset=c,e.getCaretInBoundaries=d,e.getCaretAfterFormat=function(t,e,n,i){n=c(n,0);var o=r.getDecimalSeparator(),a=function(t){return 1===t.length&&!!t.match(/^[,.][0-9]*$/g)}(t),h=a?0:t.indexOf(o),f=e.indexOf(o),p=a?t.split(t[h]):t.split(o),m=e.split(o);if(-1!==h&&n.start>h){var g=n.start-h-1,_=s(g,p[1]);return d(m[1]?f+1+u(_,m[1])+1:e.length,e,i)}var v=function(t){return t.replace(/[^0-9e]+$/,"")}(m[0]),y=p[0].length-n.start,b=s(y,l(p[0])),w=u(b,l(v));return d(v.length-(w+1),e,i)},e.getCaretOffset=function(t,e,n){var i=a(t,n);return a(e,n).start-i.start}},function(t,e,n){"use strict";var i=n(3),o=n(15),r=n(6),a=n(4),s=n(2),l=n(37),u=n(0).extend,c=n(16).inArray,d=n(18),h=n(31),f=n(375),p=n(11),m=n(770).default,g=n(12),_=n(7).Deferred,v=Math,y=["tab","del","backspace","leftArrow","rightArrow","home","end","enter"],b=f.inherit({_supportedKeys:function(){return u(this.callBase(),{upArrow:function(t){t.preventDefault(),t.stopPropagation(),this._spinUpChangeHandler(t)},downArrow:function(t){t.preventDefault(),t.stopPropagation(),this._spinDownChangeHandler(t)},enter:function(){}})},_getDefaultOptions:function(){return u(this.callBase(),{value:0,min:void 0,max:void 0,step:1,showSpinButtons:!1,useLargeSpinButtons:!0,mode:"text",invalidValueMessage:g.format("dxNumberBox-invalidValueMessage"),buttons:void 0})},_getDefaultButtons:function(){return this.callBase().concat([{name:"spins",Ctor:m}])},_isSupportInputMode:function(){var t=parseFloat(h.version);return h.chrome&&t>=66||h.safari&&t>=12||h.msie&&t>=75},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return d.real().generic&&!d.isSimulator()},options:{useLargeSpinButtons:!1}},{device:function(){return"desktop"!==d.real().deviceType&&!this._isSupportInputMode()}.bind(this),options:{mode:"number"}}])},_initMarkup:function(){this._renderSubmitElement(),this.$element().addClass("dx-numberbox"),this.callBase()},_getDefaultAttributes:function(){var t=this.callBase();return t.inputmode="decimal",t},_renderContentImpl:function(){this.option("isValid")&&this._validateValue(this.option("value")),this.setAria("role","spinbutton")},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){this._getSubmitElement().val(a.applyServerDecimalSeparator(t))},_getSubmitElement:function(){return this._$submitElement},_keyPressHandler:function(t){this.callBase(t);var e=p.getChar(t);if(!/[\d.,eE\-+]|Subtract/.test(e)){var n=p.normalizeKeyName(t);if(t.metaKey||t.ctrlKey||n&&c(n,y)>=0)return;return t.preventDefault(),!1}this._keyPressed=!0},_onMouseWheel:function(t){t.delta>0?this._spinValueChange(1,t):this._spinValueChange(-1,t)},_renderValue:function(){var t=this._input().val(),e=this.option("value");t.length&&Number(t)===e||(this._forceValueRender(),this._toggleEmptinessEventHandler());var n=s.isDefined(e)?null:g.format("dxNumberBox-noDataText");return this.setAria({valuenow:a.ensureDefined(e,""),valuetext:n}),this.option("text",this._input().val()),this._updateButtons(),(new _).resolve()},_forceValueRender:function(){var t=this.option("value"),e=Number(t),n=isNaN(e)?"":this._applyDisplayValueFormatter(t);this._renderDisplayText(n)},_applyDisplayValueFormatter:function(t){return this.option("displayValueFormatter")(t)},_renderProps:function(){this.callBase(),this._input().prop({min:this.option("min"),max:this.option("max"),step:this.option("step")}),this.setAria({valuemin:a.ensureDefined(this.option("min"),""),valuemax:a.ensureDefined(this.option("max"),"")})},_spinButtonsPointerDownHandler:function(){var t=this._input();this.option("useLargeSpinButtons")||o.getActiveElement()===t[0]||r.trigger(t,"focus")},_spinUpChangeHandler:function(t){this.option("readOnly")||this._spinValueChange(1,t.event||t)},_spinDownChangeHandler:function(t){this.option("readOnly")||this._spinValueChange(-1,t.event||t)},_spinValueChange:function(t,e){var n=parseFloat(this.option("step"));if(0!==n){var i=parseFloat(this._normalizeInputValue())||0;i=this._correctRounding(i,n*t);var o=this.option("min"),r=this.option("max");s.isDefined(o)&&(i=Math.max(o,i)),s.isDefined(r)&&(i=Math.min(r,i)),this._saveValueChangeEvent(e),this.option("value",i)}},_correctRounding:function(t,e){var n=/[,.](.*)/,i=n.test(t),o=n.test(e);if(i||o){var r=i?n.exec(t)[0].length:0,a=o?n.exec(e)[0].length:0,s=v.max(r,a);return t=this._round(t+e,s)}return t+e},_round:function(t,e){e=e||0;var n=Math.pow(10,e);return t*=n,t=Math.round(t)/n},_renderValueChangeEvent:function(){this.callBase();var t=p.addNamespace("focusout","NumberBoxForceValueChange");r.off(this.element(),t),r.on(this.element(),t,this._forceRefreshInputValue.bind(this))},_forceRefreshInputValue:function(){if("number"!==this.option("mode")){var t=this._input(),e=this._applyDisplayValueFormatter(this.option("value"));t.val(null),t.val(e)}},_valueChangeEventHandler:function(t){var e=this._input(),n=this._normalizeText(),i=this._parseValue(n),o="."!==n&&"-"!==n;!this._isValueValid()||this._validateValue(i)?(o&&this.callBase(t,isNaN(i)?null:i),this._applyValueBoundaries(n,i),this.validationRequest.fire({value:i,editor:this})):e.val(this._applyDisplayValueFormatter(i))},_applyValueBoundaries:function(t,e){var n=this._isValueIncomplete(t),i=this._isValueInRange(t);n||i||null===e||Number(t)!==e&&this._input().val(this._applyDisplayValueFormatter(e))},_replaceCommaWithPoint:function(t){return t.replace(",",".")},_inputIsInvalid:function(){var t="number"===this.option("mode"),e=this._input().get(0).validity;return t&&e&&e.badInput},_renderDisplayText:function(t){this._inputIsInvalid()||this.callBase(t)},_isValueIncomplete:function(t){return/(^-$)|(^-?\d*\.$)|(\d+e-?$)/i.test(t)},_isValueInRange:function(t){return l.inRange(t,this.option("min"),this.option("max"))},_isNumber:function(t){return null!==this._parseValue(t)},_validateValue:function(t){var e=this._normalizeText(),n=this._isValueValid(),i=!0,o=this._isNumber(e);return isNaN(Number(t))&&(i=!1),!t&&n?i=!0:o||n||(i=!1),this.option({isValid:i,validationError:i?null:{editorSpecific:!0,message:this.option("invalidValueMessage")}}),i},_normalizeInputValue:function(){return this._parseValue(this._normalizeText())},_normalizeText:function(){var t=this._input().val().trim();return this._replaceCommaWithPoint(t)},_parseValue:function(t){var e=parseFloat(t);return isNaN(e)?null:l.fitIntoRange(e,this.option("min"),this.option("max"))},_clearValue:function(){this._inputIsInvalid()&&(this._input().val(""),this._validateValue()),this.callBase()},reset:function(){null===this.option("value")?(this.option("text",""),this._renderValue()):this.option("value",null)},_optionChanged:function(t){switch(t.name){case"value":this._validateValue(t.value),this._setSubmitValue(t.value),this.callBase(t),this._resumeValueChangeAction();break;case"step":this._renderProps();break;case"min":case"max":this._renderProps(),this.option("value",this._parseValue(this.option("value")));break;case"showSpinButtons":case"useLargeSpinButtons":this._updateButtons(["spins"]);break;case"invalidValueMessage":break;default:this.callBase(t)}}});t.exports=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=c(n(3)),o=c(n(6)),r=c(n(222)),a=c(n(771)),s=n(11),l=n(28),u=n(0);function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return(p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(d,t);var e,n,r,c=g(d);function d(){return h(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"_attachEvents",value:function(t,e){var n=this.editor,i=(0,s.addNamespace)(l.down,n.NAME),r=e.children(),u=n._createAction((function(t){return n._spinButtonsPointerDownHandler(t)}));o.default.off(e,i),o.default.on(e,i,(function(t){return u({event:t})})),a.default.getInstance(r.eq(0)).option("onChange",(function(t){return n._spinUpChangeHandler(t)})),a.default.getInstance(r.eq(1)).option("onChange",(function(t){return n._spinDownChangeHandler(t)}))}},{key:"_create",value:function(){var t=this.editor,e=(0,i.default)("<div>").addClass("dx-numberbox-spin-container"),n=(0,i.default)("<div>").appendTo(e),o=(0,i.default)("<div>").appendTo(e),r=this._getOptions();return this._addToContainer(e),t._createComponent(n,a.default,(0,u.extend)({direction:"up"},r)),t._createComponent(o,a.default,(0,u.extend)({direction:"down"},r)),this._legacyRender(t.$element(),this._isTouchFriendly(),r.visible),{instance:e,$element:e}}},{key:"_getOptions",value:function(){var t=this.editor;return{visible:this._isVisible(),disabled:t.option("disabled")}}},{key:"_isVisible",value:function(){var t=this.editor;return p(v(d.prototype),"_isVisible",this).call(this)&&t.option("showSpinButtons")}},{key:"_isTouchFriendly",value:function(){var t=this.editor;return t.option("showSpinButtons")&&t.option("useLargeSpinButtons")}},{key:"_legacyRender",value:function(t,e,n){t.toggleClass("dx-numberbox-spin-touch-friendly",e),t.toggleClass("dx-numberbox-spin",n)}},{key:"update",value:function(){if(p(v(d.prototype),"update",this).call(this)){var t=this.editor,e=this.instance,n=t.$element(),i=this._isVisible(),o=this._isTouchFriendly(),r=e.children(),s=a.default.getInstance(r.eq(0)),l=a.default.getInstance(r.eq(1)),u=this._getOptions();s.option(u),l.option(u),this._legacyRender(n,o,i)}}}])&&f(e.prototype,n),r&&f(e,r),d}(r.default);e.default=y},function(t,e,n){"use strict";var i=n(3),o=n(15),r=n(6),a=n(20),s=n(0).extend,l=n(11),u=n(28),c=n(159),d=n(135),h=n(7).Deferred,f=l.addNamespace(u.up,"dxNumberBox"),p=l.addNamespace(u.cancel,"dxNumberBox"),m=a.inherit({_getDefaultOptions:function(){return s(this.callBase(),{direction:"up",onChange:null,activeStateEnabled:!0,hoverStateEnabled:!0})},_initMarkup:function(){this.callBase();var t="dx-numberbox-spin-"+this.option("direction");this.$element().addClass("dx-numberbox-spin-button").addClass(t),this._spinIcon=i("<div>").addClass(t+"-icon").appendTo(this.$element())},_render:function(){this.callBase();var t=l.addNamespace(u.down,this.NAME),e=this.$element();r.off(e,t),r.on(e,t,this._spinDownHandler.bind(this)),this._spinChangeHandler=this._createActionByOption("onChange")},_spinDownHandler:function(t){t.preventDefault(),this._clearTimer(),r.on(this.$element(),d.name,function(){this._feedBackDeferred=new h,c.lock(this._feedBackDeferred),this._spinChangeHandler({event:t}),this._holdTimer=setInterval(this._spinChangeHandler,100,{event:t})}.bind(this));var e=o.getDocument();r.on(e,f,this._clearTimer.bind(this)),r.on(e,p,this._clearTimer.bind(this)),this._spinChangeHandler({event:t})},_dispose:function(){this._clearTimer(),this.callBase()},_clearTimer:function(){r.off(this.$element(),d.name);var t=o.getDocument();r.off(t,f),r.off(t,p),this._feedBackDeferred&&this._feedBackDeferred.resolve(),this._holdTimer&&clearInterval(this._holdTimer)},_optionChanged:function(t){switch(t.name){case"onChange":case"direction":this._invalidate();break;default:this.callBase(t)}}});t.exports=m},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(109),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedItem:"selectedItem",defaultVisible:"visible"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0},position:{optionName:"position",isCollectionItem:!1},showEvent:{optionName:"showEvent",isCollectionItem:!1},showSubmenuMode:{optionName:"showSubmenuMode",isCollectionItem:!1}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ContextMenu=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animation:r.object,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),cssClass:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,disabledExpr:r.oneOfType([r.func,r.string]),displayExpr:r.oneOfType([r.func,r.string]),elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,items:r.array,itemsExpr:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemRendered:r.func,onOptionChanged:r.func,onPositioning:r.func,onSelectionChanged:r.func,onShowing:r.func,onShown:r.func,position:r.object,rtlEnabled:r.bool,selectByClick:r.bool,selectedExpr:r.oneOfType([r.func,r.string]),selectedItem:r.object,selectionMode:r.oneOf(["none","single"]),showEvent:r.oneOfType([r.object,r.string]),showSubmenuMode:r.oneOfType([r.object,r.oneOf(["onClick","onHover"])]),submenuDirection:r.oneOf(["auto","left","right"]),tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="delay",e}(s.default);e.Delay=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showEvent",e}(s.default);e.ShowEvent=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showSubmenuMode",e.ExpectedChildren={delay:{optionName:"delay",isCollectionItem:!1}},e}(s.default);e.ShowSubmenuMode=w,e.default=l},function(t,e,n){"use strict";var i=n(21),o=n(4),r=n(5),a=n(5).each,s=n(2),l=n(0).extend,u=n(23),c=n(271).getOperationBySearchMode,d=n(16).inArray,h=n(61),f=n(133),p=n(774),m=i.inherit({ctor:function(t){this.options={},l(this.options,this._defaultOptions(),t),this.options.dataConverter.setDataAccessors(this.options.dataAccessors),this._selectedNodesKeys=[],this._expandedNodesKeys=[],this._dataStructure=[],this._createInternalDataStructure(),this.getTreeNodes()},setOption:function(t,e){this.options[t]=e,"recursiveSelection"===t&&this._updateSelection()},_defaultOptions:function(){return{dataAccessors:void 0,items:[],multipleSelection:!0,recursiveSelection:!1,recursiveExpansion:!1,rootValue:0,searchValue:"",dataType:"tree",searchMode:"contains",dataConverter:new p,onNodeChanged:o.noop,sort:null}},_createInternalDataStructure:function(){this._initialDataStructure=this.options.dataConverter.createPlainStructure(this.options.items,this.options.rootValue,this.options.dataType),this._dataStructure=this.options.searchValue.length?this.search(this.options.searchValue):this._initialDataStructure,this.options.dataConverter._dataStructure=this._dataStructure,this._updateSelection(),this._updateExpansion()},_updateSelection:function(){this.options.recursiveSelection&&(this._setChildrenSelection(),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray("selected")},_updateExpansion:function(t){this.options.recursiveExpansion&&(t?this._updateOneBranch(t):this._setParentExpansion()),this._expandedNodesKeys=this._updateNodesKeysArray("expanded")},_updateNodesKeysArray:function(t){var e=this,n=[];return a(e._getDataBySelectionMode(),(function(i,o){e._isNodeVisible(o)&&o.internalFields[t]&&("expanded"===t||e.options.multipleSelection?n.push(o.internalFields.key):(n.length&&e.toggleSelection(n[0],!1,!0),n=[o.internalFields.key]))})),n},_getDataBySelectionMode:function(){return this.options.multipleSelection?this.getData():this.getFullData()},_isNodeVisible:function(t){return!1!==t.internalFields.item.visible},_getByKey:function(t,e){return t===this._dataStructure?this.options.dataConverter._getByKey(e):this.options.dataConverter.getByKey(t,e)},_setChildrenSelection:function(){var t=this;a(this._dataStructure,(function(e,n){if(n.internalFields.childrenKeys.length){var i=n.internalFields.selected;!0===i&&t._toggleChildrenSelection(n,i)}}))},_setParentSelection:function(){var t=this;a(this._dataStructure,(function(e,n){t.options.dataConverter.getParentNode(n)&&n.internalFields.parentKey!==t.options.rootValue&&t._iterateParents(n,(function(e){var n=t._calculateSelectedState(e);t._setFieldState(e,"selected",n)}))}))},_setParentExpansion:function(){var t=this;a(this._dataStructure,(function(e,n){n.internalFields.expanded&&t._updateOneBranch(n.internalFields.key)}))},_updateOneBranch:function(t){var e=this,n=this.getNodeByKey(t);e._iterateParents(n,(function(t){e._setFieldState(t,"expanded",!0)}))},_iterateChildren:function(t,e,n,i){if(s.isFunction(n)){var o=this,r=t.internalFields.key;-1===(i=i||[]).indexOf(r)&&(i.push(r),a(t.internalFields.childrenKeys,(function(t,r){var a=o.getNodeByKey(r);n(a),a.internalFields.childrenKeys.length&&e&&o._iterateChildren(a,e,n,i)})))}},_iterateParents:function(t,e,n){if(t.internalFields.parentKey!==this.options.rootValue&&s.isFunction(e)){n=n||[];var i=t.internalFields.key;if(-1===n.indexOf(i)){n.push(i);var o=this.options.dataConverter.getParentNode(t);o&&(e(o),o.internalFields.parentKey!==this.options.rootValue&&this._iterateParents(o,e,n))}}},_calculateSelectedState:function(t){for(var e=t.internalFields.childrenKeys.length,n=0,i=0,o=!1,r=0;r<=e-1;r++){var a=this.getNodeByKey(t.internalFields.childrenKeys[r]),s=!1===a.internalFields.item.visible,l=a.internalFields.selected;s?i++:l?n++:void 0===l&&(n+=.5)}return n&&(o=n===e-i||void 0),o},_toggleChildrenSelection:function(t,e){var n=this;this._iterateChildren(t,!0,(function(t){n._isNodeVisible(t)&&n._setFieldState(t,"selected",e)}))},_setFieldState:function(t,e,n){t.internalFields[e]!==n&&(t.internalFields[e]=n,t.internalFields.publicNode&&(t.internalFields.publicNode[e]=n),this.options.dataAccessors.setters[e](t.internalFields.item,n),this.options.onNodeChanged(t))},_markChildren:function(t){var e=this;a(t,(function(t,n){var i=e.getIndexByKey(n),o=e.getNodeByKey(n);e._dataStructure[i]=0,o.internalFields.childrenKeys.length&&e._markChildren(o.internalFields.childrenKeys)}))},_removeNode:function(t){var e=this.getNodeByKey(t);this._dataStructure[this.getIndexByKey(t)]=0,this._markChildren(e.internalFields.childrenKeys);var n=this,i=0,o=l([],this._dataStructure);a(o,(function(t,e){e||(n._dataStructure.splice(t-i,1),i++)}))},_addNode:function(t){var e=this.options.dataConverter,n=e._convertItemToNode(t,this.options.dataAccessors.getters.parentKey(t));this._dataStructure=this._dataStructure.concat(n),this._initialDataStructure=this._initialDataStructure.concat(n),e._dataStructure=e._dataStructure.concat(n)},_updateFields:function(){this.options.dataConverter.updateChildrenKeys(),this._updateSelection(),this._updateExpansion()},getSelectedNodesKeys:function(){return this._selectedNodesKeys},getExpandedNodesKeys:function(){return this._expandedNodesKeys},getData:function(){return this._dataStructure},getFullData:function(){return this._initialDataStructure},getNodeByItem:function(t){var e=null;return a(this._dataStructure,(function(n,i){if(i.internalFields.item===t)return e=i,!1})),e},getNodesByItems:function(t){var e=this,n=[];return a(t,(function(t,i){var o=e.getNodeByItem(i);o&&n.push(o)})),n},getNodeByKey:function(t,e){return this._getByKey(e||this._getDataBySelectionMode(),t)},getTreeNodes:function(){return this.options.dataConverter.convertToPublicNodes(this.getRootNodes())},getItemsCount:function(){return this.options.dataConverter.getItemsCount()},getVisibleItemsCount:function(){return this.options.dataConverter.getVisibleItemsCount()},getPublicNode:function(t){return t.internalFields.publicNode},getRootNodes:function(){return this.getChildrenNodes(this.options.rootValue)},getChildrenNodes:function(t){return h(this._dataStructure).filter(["internalFields.parentKey",t]).toArray()},getIndexByKey:function(t){return this.options.dataConverter.getIndexByKey(t)},addItem:function(t){this._addNode(t),this._updateFields()},removeItem:function(t){this._removeNode(t),this._updateFields()},toggleSelection:function(t,e,n){var i=this._isSingleModeUnselect(e),o=this._getByKey(n||i?this._initialDataStructure:this._dataStructure,t);this._setFieldState(o,"selected",e),this.options.recursiveSelection&&!n&&(e?this._setChildrenSelection():this._toggleChildrenSelection(o,e),this._setParentSelection()),this._selectedNodesKeys=this._updateNodesKeysArray("selected")},_isSingleModeUnselect:function(t){return!this.options.multipleSelection&&!t},toggleNodeDisabledState:function(t,e){var n=this.getNodeByKey(t);this._setFieldState(n,"disabled",e)},toggleSelectAll:function(t){if(s.isDefined(t)){var e=this,n=e._selectedNodesKeys[e._selectedNodesKeys.length-1],i=e._isSingleModeUnselect(t)?this._initialDataStructure:this._dataStructure;a(i,(function(n,i){e._isNodeVisible(i)&&e._setFieldState(i,"selected",t)})),e._selectedNodesKeys=e._updateNodesKeysArray("selected"),!t&&e.options.selectionRequired&&e.toggleSelection(n,!0)}},isAllSelected:function(){return!!this.getSelectedNodesKeys().length&&(this.getSelectedNodesKeys().length===this.getVisibleItemsCount()||void 0)},toggleExpansion:function(t,e){var n=this.getNodeByKey(t);this._setFieldState(n,"expanded",e),e&&this._updateExpansion(t),this._expandedNodesKeys=this._updateNodesKeysArray("expanded")},isFiltered:function(t){return!this.options.searchValue.length||!!this._filterDataStructure(this.options.searchValue,[t]).length},_createCriteria:function(t,e,n){var i=[];return Array.isArray(t)?(r.each(t,(function(t,o){i.push([o,n,e],"or")})),i.pop(),i):[t,n,e]},_filterDataStructure:function(t,e){var n=this.options.searchExpr||this.options.dataAccessors.getters.display,i=c(this.options.searchMode),o=this._createCriteria(n,t,i);return e=e||this._initialDataStructure,h(e).filter(o).toArray()},search:function(t){var e=this,n=this._filterDataStructure(t),i=this.options.dataConverter;return function t(n,o){for(var r=n.length;o<r;){var a=n[o];if(a.internalFields.parentKey!==e.options.rootValue){var s=i.getParentNode(a);s?(s.internalFields.expanded||e._setFieldState(s,"expanded",!0),d(s,n)>-1?o++:(n.splice(o,0,s),t(n,o))):(u.log("W1007",a.internalFields.parentKey,a.internalFields.key),o++)}else o++}}(n,0),this.options.sort&&(n=f.queryByOptions(h(n),{sort:this.options.sort}).toArray()),i._indexByKey={},a(n,(function(t,e){e.internalFields.childrenKeys=[],i._indexByKey[e.internalFields.key]=t})),i._dataStructure=n,i.setChildrenKeys(),i._dataStructure}});t.exports=m},function(t,e,n){"use strict";var i=n(21),o=n(0).extend,r=n(23),a=n(5).each,s=n(2),l=i.inherit({ctor:function(){this._dataStructure=[],this._itemsCount=0,this._visibleItemsCount=0},_indexByKey:{},_convertItemsToNodes:function(t,e){var n=this;a(t,(function(t,i){var o=s.isDefined(e)?e:n._getParentId(i),r=n._convertItemToNode(i,o);n._dataStructure.push(r),n._checkForDuplicateId(r.internalFields.key),n._indexByKey[r.internalFields.key]=n._dataStructure.length-1,n._itemHasChildren(i)&&n._convertItemsToNodes(n._dataAccessors.getters.items(i),r.internalFields.key)}))},_checkForDuplicateId:function(t){if(s.isDefined(this._indexByKey[t]))throw r.Error("E1040",t)},_getParentId:function(t){return"plain"===this._dataType?this._dataAccessors.getters.parentKey(t):void 0},_itemHasChildren:function(t){if("plain"!==this._dataType){var e=this._dataAccessors.getters.items(t);return e&&e.length}},_getUniqueKey:function(t){var e=this._dataAccessors.getters.key,n=e(t);return e&&(n||0===n)&&s.isPrimitive(n)?n:this.getItemsCount()},_convertItemToNode:function(t,e){this._itemsCount++,!1!==t.visible&&this._visibleItemsCount++;var n={internalFields:{disabled:this._dataAccessors.getters.disabled(t,{defaultValue:!1}),expanded:this._dataAccessors.getters.expanded(t,{defaultValue:!1}),selected:this._dataAccessors.getters.selected(t,{defaultValue:!1}),key:this._getUniqueKey(t),parentKey:s.isDefined(e)?e:this._rootValue,item:this._makeObjectFromPrimitive(t),childrenKeys:[]}};return o(n,t),delete n.items,n},setChildrenKeys:function(){var t=this;a(this._dataStructure,(function(e,n){if(n.internalFields.parentKey!==t._rootValue){var i=t.getParentNode(n);i&&i.internalFields.childrenKeys.push(n.internalFields.key)}}))},_makeObjectFromPrimitive:function(t){if(s.isPrimitive(t)){var e=t;t={},this._dataAccessors.setters.key(t,e)}return t},_convertToPublicNode:function(t,e){if(!t)return null;var n={text:this._dataAccessors.getters.display(t),key:t.internalFields.key,selected:t.internalFields.selected,expanded:t.internalFields.expanded,disabled:t.internalFields.disabled,parent:e||null,itemData:t.internalFields.item,children:[],items:[]};return n.parent&&(n.parent.children.push(n),n.parent.items.push(n)),n},convertToPublicNodes:function(t,e){if(!t.length)return[];var n=this,i=[];return a(t,(function(t,o){o=s.isPrimitive(o)?n._getByKey(o):o;var r=n._convertToPublicNode(o,e);r.children=n.convertToPublicNodes(o.internalFields.childrenKeys,r),i.push(r),o.internalFields.publicNode=r})),i},setDataAccessors:function(t){this._dataAccessors=t},_getByKey:function(t){return this._dataStructure[this.getIndexByKey(t)]||null},getParentNode:function(t){return this._getByKey(t.internalFields.parentKey)},getByKey:function(t,e){if(null===e||void 0===e)return null;var n=null,i=this,o=function(t,e){return a(t,(function(t,o){if((o.internalFields&&o.internalFields.key||i._dataAccessors.getters.key(o)).toString()===e.toString())return n=o,!1})),n};return o(t,e)},getItemsCount:function(){return this._itemsCount},getVisibleItemsCount:function(){return this._visibleItemsCount},updateIndexByKey:function(){var t=this;this._indexByKey={},a(this._dataStructure,(function(e,n){t._checkForDuplicateId(n.internalFields.key),t._indexByKey[n.internalFields.key]=e}))},updateChildrenKeys:function(){this._indexByKey={},this.removeChildrenKeys(),this.updateIndexByKey(),this.setChildrenKeys()},removeChildrenKeys:function(){this._indexByKey={},a(this._dataStructure,(function(t,e){e.internalFields.childrenKeys=[]}))},getIndexByKey:function(t){return this._indexByKey[t]},createPlainStructure:function(t,e,n){return this._itemsCount=0,this._visibleItemsCount=0,this._rootValue=e,this._dataType=n,this._indexByKey={},this._convertItemsToNodes(t),this.setChildrenKeys(),this._dataStructure}});t.exports=l},function(t,e,n){"use strict";var i=r(n(3)),o=n(5);function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(h,t);var e,n,r,d=c(h);function h(){return s(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"_getPlainItems",value:function(){return(0,o.map)(this._collectionWidget.option("items"),(function t(e){return e.items?[e].concat((0,o.map)(e.items,t)):e}))}},{key:"_stringifyItem",value:function(t){var e=this;return JSON.stringify(t,(function(t,n){return"template"===t?e._getTemplateString(n):n}))}},{key:"_getTemplateString",value:function(t){return"object"===a(t)?(0,i.default)(t).text():t.toString()}}])&&l(e.prototype,n),r&&l(e,r),h}(r(n(218)).default);t.exports=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(777),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultColumns:"columns",defaultFilterPanel:"filterPanel",defaultFilterValue:"filterValue",defaultFocusedColumnIndex:"focusedColumnIndex",defaultFocusedRowIndex:"focusedRowIndex",defaultFocusedRowKey:"focusedRowKey",defaultPaging:"paging",defaultSearchPanel:"searchPanel",defaultSelectedRowKeys:"selectedRowKeys",defaultSelectionFilter:"selectionFilter"},e._expectedChildren={column:{optionName:"columns",isCollectionItem:!0},columnChooser:{optionName:"columnChooser",isCollectionItem:!1},columnFixing:{optionName:"columnFixing",isCollectionItem:!1},dataGridHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},filterBuilder:{optionName:"filterBuilder",isCollectionItem:!1},filterBuilderPopup:{optionName:"filterBuilderPopup",isCollectionItem:!1},filterPanel:{optionName:"filterPanel",isCollectionItem:!1},filterRow:{optionName:"filterRow",isCollectionItem:!1},grouping:{optionName:"grouping",isCollectionItem:!1},groupPanel:{optionName:"groupPanel",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},keyboardNavigation:{optionName:"keyboardNavigation",isCollectionItem:!1},loadPanel:{optionName:"loadPanel",isCollectionItem:!1},masterDetail:{optionName:"masterDetail",isCollectionItem:!1},pager:{optionName:"pager",isCollectionItem:!1},paging:{optionName:"paging",isCollectionItem:!1},remoteOperations:{optionName:"remoteOperations",isCollectionItem:!1},rowDragging:{optionName:"rowDragging",isCollectionItem:!1},scrolling:{optionName:"scrolling",isCollectionItem:!1},searchPanel:{optionName:"searchPanel",isCollectionItem:!1},selection:{optionName:"selection",isCollectionItem:!1},sortByGroupSummaryInfo:{optionName:"sortByGroupSummaryInfo",isCollectionItem:!0},sorting:{optionName:"sorting",isCollectionItem:!1},stateStoring:{optionName:"stateStoring",isCollectionItem:!1},summary:{optionName:"summary",isCollectionItem:!1}},e._templateProps=[{tmplOption:"rowTemplate",render:"rowRender",component:"rowComponent",keyFn:"rowKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.DataGrid=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowColumnReordering:r.bool,allowColumnResizing:r.bool,autoNavigateToFocusedRow:r.bool,cacheEnabled:r.bool,cellHintEnabled:r.bool,columnAutoWidth:r.bool,columnChooser:r.object,columnFixing:r.object,columnHidingEnabled:r.bool,columnMinWidth:r.number,columnResizingMode:r.oneOf(["nextColumn","widget"]),columns:r.array,columnWidth:r.number,customizeColumns:r.func,dataSource:r.oneOfType([r.array,r.object,r.string]),dateSerializationFormat:r.string,disabled:r.bool,editing:r.object,elementAttr:r.object,errorRowEnabled:r.bool,export:r.object,filterBuilder:r.object,filterBuilderPopup:r.object,filterPanel:r.object,filterRow:r.object,filterSyncEnabled:r.oneOfType([r.bool,r.oneOf(["auto"])]),filterValue:r.oneOfType([r.array,r.func,r.string]),focusedColumnIndex:r.number,focusedRowEnabled:r.bool,focusedRowIndex:r.number,focusStateEnabled:r.bool,grouping:r.object,groupPanel:r.object,headerFilter:r.object,height:r.oneOfType([r.func,r.number,r.string]),highlightChanges:r.bool,hint:r.string,hoverStateEnabled:r.bool,keyboardNavigation:r.object,keyExpr:r.oneOfType([r.array,r.string]),loadPanel:r.object,masterDetail:r.object,noDataText:r.string,onAdaptiveDetailRowPreparing:r.func,onCellClick:r.oneOfType([r.func,r.string]),onCellDblClick:r.func,onCellHoverChanged:r.func,onCellPrepared:r.func,onContentReady:r.func,onContextMenuPreparing:r.func,onDataErrorOccurred:r.func,onDisposing:r.func,onEditingStart:r.func,onEditorPrepared:r.func,onEditorPreparing:r.func,onExporting:r.func,onFocusedCellChanged:r.func,onFocusedCellChanging:r.func,onFocusedRowChanged:r.func,onFocusedRowChanging:r.func,onInitialized:r.func,onInitNewRow:r.func,onKeyDown:r.func,onOptionChanged:r.func,onRowClick:r.oneOfType([r.func,r.string]),onRowCollapsed:r.func,onRowCollapsing:r.func,onRowDblClick:r.func,onRowExpanded:r.func,onRowExpanding:r.func,onRowInserted:r.func,onRowInserting:r.func,onRowPrepared:r.func,onRowRemoved:r.func,onRowRemoving:r.func,onRowUpdated:r.func,onRowUpdating:r.func,onRowValidating:r.func,onSelectionChanged:r.func,onToolbarPreparing:r.func,pager:r.object,paging:r.object,remoteOperations:r.oneOfType([r.bool,r.object,r.oneOf(["auto"])]),renderAsync:r.bool,repaintChangesOnly:r.bool,rowAlternationEnabled:r.bool,rowDragging:r.object,rtlEnabled:r.bool,scrolling:r.object,searchPanel:r.object,selectedRowKeys:r.array,selection:r.object,selectionFilter:r.oneOfType([r.array,r.func,r.string]),showBorders:r.bool,showColumnHeaders:r.bool,showColumnLines:r.bool,showRowLines:r.bool,sortByGroupSummaryInfo:r.array,sorting:r.object,stateStoring:r.object,summary:r.object,tabIndex:r.number,twoWayBindingEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wordWrapEnabled:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"async"},e}(s.default);e.AsyncRule=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Button=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="colCountByScreen",e}(s.default);e.ColCountByScreen=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columns",e.IsCollectionItem=!0,e.DefaultsProps={defaultFilterValue:"filterValue",defaultFilterValues:"filterValues",defaultGroupIndex:"groupIndex",defaultSelectedFilterOperation:"selectedFilterOperation",defaultSortIndex:"sortIndex",defaultSortOrder:"sortOrder",defaultVisible:"visible",defaultVisibleIndex:"visibleIndex"},e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},button:{optionName:"buttons",isCollectionItem:!0},columnHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},columnLookup:{optionName:"lookup",isCollectionItem:!1},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1},formItem:{optionName:"formItem",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"},{tmplOption:"editCellTemplate",render:"editCellRender",component:"editCellComponent",keyFn:"editCellKeyFn"},{tmplOption:"groupCellTemplate",render:"groupCellRender",component:"groupCellComponent",keyFn:"groupCellKeyFn"},{tmplOption:"headerCellTemplate",render:"headerCellRender",component:"headerCellComponent",keyFn:"headerCellKeyFn"}],e}(s.default);e.Column=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columnChooser",e}(s.default);e.ColumnChooser=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columnFixing",e.ExpectedChildren={columnFixingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.ColumnFixing=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.ColumnFixingTexts=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e}(s.default);e.ColumnHeaderFilter=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.ColumnLookup=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"compare"},e}(s.default);e.CompareRule=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cursorOffset",e}(s.default);e.CursorOffset=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="customOperations",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.CustomOperation=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"custom"},e}(s.default);e.CustomRule=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e.ExpectedChildren={dataGridHeaderFilterTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.DataGridHeaderFilter=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.DataGridHeaderFilterTexts=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="editing",e.ExpectedChildren={editingTexts:{optionName:"texts",isCollectionItem:!1},form:{optionName:"form",isCollectionItem:!1},popup:{optionName:"popup",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.Editing=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.EditingTexts=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"email"},e}(s.default);e.EmailRule=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e.ExpectedChildren={exportTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.Export=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.ExportTexts=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fields",e.IsCollectionItem=!0,e.ExpectedChildren={fieldLookup:{optionName:"lookup",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.Field=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.FieldLookup=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterBuilder",e.DefaultsProps={defaultValue:"value"},e.ExpectedChildren={customOperation:{optionName:"customOperations",isCollectionItem:!0},field:{optionName:"fields",isCollectionItem:!0},filterOperationDescriptions:{optionName:"filterOperationDescriptions",isCollectionItem:!1},groupOperationDescriptions:{optionName:"groupOperationDescriptions",isCollectionItem:!1}},e}(s.default);e.FilterBuilder=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterBuilderPopup",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.FilterBuilderPopup=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterOperationDescriptions",e}(s.default);e.FilterOperationDescriptions=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterPanel",e.DefaultsProps={defaultFilterEnabled:"filterEnabled"},e.ExpectedChildren={filterPanelTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.FilterPanel=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.FilterPanelTexts=V;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterRow",e.ExpectedChildren={operationDescriptions:{optionName:"operationDescriptions",isCollectionItem:!1}},e}(s.default);e.FilterRow=z;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="form",e.DefaultsProps={defaultFormData:"formData"},e.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},e}(s.default);e.Form=j;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=H;var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="formItem",e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.FormItem=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="grouping",e.ExpectedChildren={groupingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.Grouping=U;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.GroupingTexts=G;var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groupItems",e.IsCollectionItem=!0,e.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},e}(s.default);e.GroupItem=K;var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groupOperationDescriptions",e}(s.default);e.GroupOperationDescriptions=q;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groupPanel",e}(s.default);e.GroupPanel=$;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e}(s.default);e.HeaderFilter=Y;var Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=Z;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="keyboardNavigation",e}(s.default);e.KeyboardNavigation=X;var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=J;var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadPanel",e}(s.default);e.LoadPanel=Q;var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.Lookup=tt;var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="masterDetail",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.MasterDetail=et;var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=nt;var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"numeric"},e}(s.default);e.NumericRule=it;var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=ot;var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="operationDescriptions",e}(s.default);e.OperationDescriptions=rt;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="pager",e}(s.default);e.Pager=at;var st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="paging",e.DefaultsProps={defaultPageIndex:"pageIndex",defaultPageSize:"pageSize"},e}(s.default);e.Paging=st;var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"pattern"},e}(s.default);e.PatternRule=lt;var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="popup",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.Popup=ut;var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=ct;var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"range"},e}(s.default);e.RangeRule=dt;var ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="remoteOperations",e}(s.default);e.RemoteOperations=ht;var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.RequiredRule=ft;var pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="rowDragging",e.ExpectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],e}(s.default);e.RowDragging=pt;var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scrolling",e}(s.default);e.Scrolling=mt;var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="searchPanel",e.DefaultsProps={defaultText:"text"},e}(s.default);e.SearchPanel=gt;var _t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selection",e}(s.default);e.Selection=_t;var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=vt;var yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="sortByGroupSummaryInfo",e.IsCollectionItem=!0,e}(s.default);e.SortByGroupSummaryInfo=yt;var bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="sorting",e}(s.default);e.Sorting=bt;var wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stateStoring",e}(s.default);e.StateStoring=wt;var xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"stringLength"},e}(s.default);e.StringLengthRule=xt;var Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="summary",e.ExpectedChildren={groupItem:{optionName:"groupItems",isCollectionItem:!0},summaryTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1},totalItem:{optionName:"totalItems",isCollectionItem:!0}},e}(s.default);e.Summary=Ct;var St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.SummaryTexts=St;var kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.Texts=kt;var It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=It;var Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="totalItems",e.IsCollectionItem=!0,e.ExpectedChildren={valueFormat:{optionName:"valueFormat",isCollectionItem:!1}},e}(s.default);e.TotalItem=Tt;var Et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.ValidationRule=Et;var Ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueFormat",e}(s.default);e.ValueFormat=Ot,e.default=l},function(t,e,n){"use strict";t.exports=n(417),t.exports.default=t.exports},function(t,e,n){"use strict";var i=m(n(3)),o=m(n(8)),r=m(n(4)),a=m(n(2)),s=n(5),l=n(0),u=n(152),c=m(n(31)),d=m(n(20)),h=n(27),f=m(h),p=m(n(36));function m(t){return t&&t.__esModule?t:{default:t}}n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787);f.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","grouping","editing","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var g=d.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var t=this.callBase();return(0,s.each)(f.default.modules,(function(){a.default.isFunction(this.defaultOptions)&&(0,l.extend)(!0,t,this.defaultOptions())})),t},_setDeprecatedOptions:function(){this.callBase(),(0,l.extend)(this._deprecatedOptions,{useKeyboard:{since:"19.2",alias:"keyboardNavigation.enabled"}})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{showRowLines:!0}},{device:function(){return p.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}},{device:function(){return c.default.webkit},options:{loadingTimeout:30,loadPanel:{animation:{show:{easing:"cubic-bezier(1, 0, 1, 0)",duration:500,from:{opacity:0},to:{opacity:1}}}}}},{device:function(t){return"desktop"!==t.deviceType},options:{grouping:{expandMode:"rowClick"}}}])},_init:function(){this.callBase(),f.default.processModules(this,f.default),(0,h.callModuleItemsMethod)(this,"init")},_clean:r.default.noop,_optionChanged:function(t){(0,h.callModuleItemsMethod)(this,"optionChanged",[t]),t.handled||this.callBase(t)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(t){t&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var t=this;r.default.deferRender((function(){t._renderContentImpl()}))},_getTemplate:function(t){var e=t;return a.default.isString(e)&&"#"===e[0]&&(e=(0,i.default)(t),u.logger.warn("Specifying grid templates with the jQuery selector name is now deprecated. Use the DOM Node or the jQuery object that references this selector instead.")),this.callBase(e)},_dispose:function(){this.callBase(),(0,h.callModuleItemsMethod)(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),(0,h.callModuleItemsMethod)(this,"beginUpdate")},endUpdate:function(){(0,h.callModuleItemsMethod)(this,"endUpdate"),this.callBase()},getController:function(t){return this._controllers[t]},getView:function(t){return this._views[t]},focus:function(t){this.getController("keyboardNavigation").focus(t)}});g.registerModule=f.default.registerModule.bind(f.default),(0,o.default)("dxDataGrid",g),t.exports=g},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(418));function r(t){return t&&t.__esModule?t:{default:t}}e.ColumnHeadersView=o.default.views.columnHeadersView,i.default.registerModule("columnHeaders",o.default)},function(t,e,n){"use strict";var i=a(n(27)),o=a(n(420)),r=n(0);function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columns",{defaultOptions:function(){return(0,r.extend)(!0,{},o.default.defaultOptions(),{commonColumnSettings:{allowExporting:!0}})},controllers:o.default.controllers})},function(t,e,n){"use strict";var i=s(n(27)),o=s(n(23)),r=s(n(233)),a=s(n(422));function s(t){return t&&t.__esModule?t:{default:t}}e.DataController=a.default.controllers.data.inherit({_getDataSourceAdapter:function(){return r.default},_getSpecificDataSourceOption:function(){var t=this.option("dataSource");return t&&!Array.isArray(t)&&this.option("keyExpr")&&o.default.log("W1011"),this.callBase()}}),i.default.registerModule("data",{defaultOptions:a.default.defaultOptions,controllers:{data:e.DataController}})},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(423));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("sorting",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(425));function r(t){return t&&t.__esModule?t:{default:t}}e.RowsView=o.default.views.rowsView,i.default.registerModule("rows",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(426));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("contextMenu",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(427));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("errorHandling",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(428));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("gridView",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(429));function r(t){return t&&t.__esModule?t:{default:t}}e.HeaderPanel=o.default.views.headerPanel,i.default.registerModule("headerPanel",o.default)},function(t,e,n){"use strict";var i=n(430),o=n(0).extend,r=n(260),a=i.inherit({NAME:"actionSheet",_getMenuItemTemplate:function(){return this._toolbar._getTemplate("actionSheetItem")},render:function(){this._hasVisibleMenuItems()&&this.callBase()},_menuWidgetClass:function(){return r},_menuContainer:function(){return this._toolbar.$element()},_widgetOptions:function(){return o({},this.callBase(),{target:this._$button,showTitle:!1})},_menuButtonOptions:function(){return o({},this.callBase(),{icon:"overflow"})},_toggleMenu:function(){this.callBase.apply(this,arguments),this._menu.toggle(this._menuShown),this._menuShown=!1}});t.exports=a},function(t,e,n){"use strict";var i=n(0).extend,o=n(430),r=n(790),a=n(291),s=o.inherit({NAME:"dropDownMenu",render:function(){this._hasVisibleMenuItems()&&(this._renderMenuButtonContainer(),this._renderWidget())},renderMenuItems:function(){this._menu||this.render(),this.callBase(),this._menu&&!this._menu.option("items").length&&this._menu.close()},_menuWidgetClass:function(){return a},_widgetOptions:function(){var t=this;return i(this.callBase(),{deferRendering:!0,container:t._toolbar.option("menuContainer"),menuWidget:r,onOptionChanged:function(e){"items"===e.name&&t._updateMenuVisibility(e.value)},popupPosition:{at:"bottom right",my:"top right"}})},_updateMenuVisibility:function(t){var e=t||this._getMenuItems(),n=e.length&&this._hasVisibleMenuItems(e);this._toggleMenuVisibility(n)},_toggleMenuVisibility:function(t){this._menuContainer()&&this._menuContainer().toggleClass("dx-state-invisible",!t)},_menuContainer:function(){return this._$menuButtonContainer}});t.exports=s},function(t,e,n){"use strict";var i=n(3),o=n(8),r=n(5).each,a=n(265),s=a.inherit({_activeStateUnit:".dx-toolbar-menu-action",_initMarkup:function(){this._renderSections(),this.callBase()},_getSections:function(){return this._itemContainer().children()},_itemElements:function(){return this._getSections().children(this._itemSelector())},_renderSections:function(){var t=this,e=this._itemContainer();r(["before","center","after","menu"],(function(){var n="_$"+this+"Section",o=t[n];o||(t[n]=o=i("<div>").addClass("dx-toolbar-menu-section")),o.appendTo(e)}))},_renderItems:function(){this.callBase.apply(this,arguments),this._updateSections()},_updateSections:function(){var t=this.$element().find(".dx-toolbar-menu-section");t.removeClass("dx-toolbar-menu-last-section"),t.not(":empty").eq(-1).addClass("dx-toolbar-menu-last-section")},_renderItem:function(t,e,n,i){var o=e.location||"menu",r=this["_$"+o+"Section"],a=this.callBase(t,e,r,i);return this._getItemTemplateName({itemData:e})&&a.addClass("dx-toolbar-menu-custom"),("menu"===o||"dxButton"===e.widget||e.isAction)&&a.addClass("dx-toolbar-menu-action"),"dxButton"===e.widget&&a.addClass("dx-toolbar-hidden-button"),"dxButtonGroup"===e.widget&&a.addClass("dx-toolbar-hidden-button-group"),a.addClass(e.cssClass),a},_getItemTemplateName:function(t){var e=this.callBase(t),n=t.itemData;return n&&n.menuItemTemplate||e},_itemClickHandler:function(t,e,n){i(t.target).closest(".dx-toolbar-menu-action").length&&this.callBase(t,e,n)},_clean:function(){this._getSections().empty(),this.callBase()}});o("dxToolbarMenu",s),t.exports=s},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(431));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("stateStoring",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(433));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("selection",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(434));function r(t){return t&&t.__esModule?t:{default:t}}e.ColumnChooserController=o.default.controllers.columnChooser,e.ColumnChooserView=o.default.views.columnChooserView,i.default.registerModule("columnChooser",o.default)},function(t,e,n){"use strict";var i=S(n(3)),o=n(15),r=n(6),a=S(n(12)),s=S(n(25)),l=S(n(4)),u=S(n(10)),c=n(2),d=n(0),h=n(5),f=n(17),p=S(n(138)),m=S(n(416)),g=n(11),_=n(28),v=S(n(199)),y=S(n(47)),b=S(n(103)),w=S(n(81)),x=n(7),C=S(n(23));function S(t){return t&&t.__esModule?t:{default:t}}var k="".concat("dx-treeview","-node"),I="".concat(k,"-container"),T="".concat(k,"-loadindicator"),E="".concat(k,"-container-opened"),O="".concat(k,"-is-leaf"),M="".concat("dx-treeview","-item"),P="".concat(M,"-with-checkbox"),D="".concat(M,"-without-checkbox"),A="".concat(M,"-data"),R="".concat("dx-treeview","-toggle-item-visibility"),B="".concat("dx-treeview","-loadindicator"),N="".concat("dx-treeview","-loadindicator-wrapper"),L="".concat("dx-treeview","-toggle-item-visibility-opened"),F="".concat("dx-treeview","-select-all-item"),V=m.default.inherit({_supportedKeys:function(t){var e=this,n=function(t){var n=(0,i.default)(e.option("focusedElement"));n.length&&(t.target=n,t.currentTarget=n,e._itemClickHandler(t,n.children("."+M)),e._getEventNameByOption(e.option("expandEvent"))===(0,g.addNamespace)(s.default.name,"dxTreeView_expand")&&e._expandEventHandler(t))},o=function(t){t.preventDefault(),e._changeCheckBoxState((0,i.default)(e.option("focusedElement")))},r=function(t,e){if(this.option("expandAllEnabled")){e.preventDefault();var n=(0,i.default)(this.option("focusedElement"));if(n.length){var o=this._getItemData(n.find(".".concat(M)));this._toggleExpandedNestedItems([o],t)}}};return(0,d.extend)(this.callBase(),{enter:this._showCheckboxes()?o:n,space:this._showCheckboxes()?o:n,asterisk:r.bind(this,!0),minus:r.bind(this,!1)})},_changeCheckBoxState:function(t){var e=this._getCheckBoxInstance(t),n=e.option("value");e.option("disabled")||this._updateItemSelection(!n,t.find("."+M).get(0),!0,t)},_toggleExpandedNestedItems:function(t,e){if(t)for(var n=0,i=t.length;n<i;n++){var o=t[n],r=this._dataAdapter.getNodeByItem(o);this._toggleExpandedState(r,e),this._toggleExpandedNestedItems(o.items,e)}},_getNodeElement:function(t,e){var n=this._encodeString(t.internalFields.key);if(e)return e.$nodeByKey||(e.$nodeByKey={},this.$element().find(".".concat(k)).each((function(){var t=(0,i.default)(this),n=t.attr("data-item-id");e.$nodeByKey[n]=t}))),e.$nodeByKey[n]||(0,i.default)();var o=this.$element().get(0).querySelector("[".concat("data-item-id",'="').concat(n,'"]'));return(0,i.default)(o)},_activeStateUnit:"."+M,_widgetClass:function(){return"dx-treeview"},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{animationEnabled:!0,dataStructure:"tree",deferRendering:!0,expandAllEnabled:!1,hasItemsExpr:"hasItems",selectNodesRecursive:!0,expandNodesRecursive:!0,showCheckBoxesMode:"none",selectAllText:a.default.format("dxList-selectAll"),onItemSelectionChanged:null,onItemExpanded:null,onItemCollapsed:null,scrollDirection:"vertical",virtualModeEnabled:!1,rootValue:0,focusStateEnabled:!1,selectionMode:"multiple",expandEvent:"dblclick",selectByClick:!1,createChildren:null,onSelectAllValueChanged:null})},_initSelectedItems:l.default.noop,_syncSelectionOptions:l.default.asyncNoop,_fireSelectionChanged:function(){var t=this._selectionChangePromise;(0,x.when)(t).done(function(){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})()}.bind(this))},_createSelectAllValueChangedAction:function(){this._selectAllValueChangedAction=this._createActionByOption("onSelectAllValueChanged",{excludeValidators:["disabled","readOnly"]})},_fireSelectAllValueChanged:function(t){this._selectAllValueChangedAction({value:t})},_checkBoxModeChange:function(t,e){if("none"!==e&&"none"!==t){var n=this._$selectAllItem&&this._$selectAllItem.length;switch(t){case"selectAll":!n&&this._renderSelectAllItem();break;case"normal":n&&(this._$selectAllItem.remove(),delete this._$selectAllItem)}}else this.repaint()},_removeSelection:function(){var t=this;(0,h.each)(this._dataAdapter.getFullData(),(function(e,n){t._hasChildren(n)&&t._dataAdapter.toggleSelection(n.internalFields.key,!1,!0)}))},_optionChanged:function(t){var e=t.name,n=t.value,i=t.previousValue;switch(e){case"selectAllText":this._$selectAllItem&&this._$selectAllItem.dxCheckBox("instance").option("text",n);break;case"showCheckBoxesMode":this._checkBoxModeChange(n,i);break;case"scrollDirection":this._scrollableContainer.option("direction",n);break;case"items":delete this._$selectAllItem,this.callBase(t);break;case"dataSource":this.callBase(t),this._initDataAdapter(),this._filter={};break;case"hasItemsExpr":this._initAccessors(),this.repaint();break;case"expandEvent":this._initExpandEvent();break;case"deferRendering":case"dataStructure":case"rootValue":case"createChildren":case"expandNodesRecursive":case"onItemSelectionChanged":case"onItemExpanded":case"onItemCollapsed":case"expandAllEnabled":case"animationEnabled":case"virtualModeEnabled":case"selectByClick":break;case"selectionMode":this._initDataAdapter(),this.callBase(t);break;case"onSelectAllValueChanged":this._createSelectAllValueChangedAction();break;case"selectNodesRecursive":this._dataAdapter.setOption("recursiveSelection",t.value),this.repaint();break;default:this.callBase(t)}},_initDataSource:function(){this._useCustomChildrenLoader()?this._loadChildrenByCustomLoader(null).done(function(t){t&&t.length&&this.option("items",t)}.bind(this)):(this.callBase(),this._isVirtualMode()&&this._initVirtualMode())},_initVirtualMode:function(){var t=this._filter;t.custom||(t.custom=this._dataSource.filter()),t.internal||(t.internal=[this.option("parentIdExpr"),this.option("rootValue")])},_useCustomChildrenLoader:function(){return(0,c.isFunction)(this.option("createChildren"))&&this._isDataStructurePlain()},_loadChildrenByCustomLoader:function(t){var e=this.option("createChildren").call(this,t);return Array.isArray(e)?(new x.Deferred).resolve(e).promise():e&&(0,c.isFunction)(e.then)?(0,x.fromPromise)(e):(new x.Deferred).resolve([]).promise()},_combineFilter:function(){return this._filter.custom&&this._filter.custom.length?[this._filter.custom,this._filter.internal]:this._filter.internal},_dataSourceLoadErrorHandler:function(){this._renderEmptyMessage()},_init:function(){this._filter={},this.callBase(),this._initStoreChangeHandlers()},_dataSourceChangedHandler:function(t){var e=this.option("items");this._initialized&&this._isVirtualMode()&&e.length||this.option("items",t)},_removeTreeViewLoadIndicator:function(){this._treeViewLoadIndicator&&(this._treeViewLoadIndicator.remove(),this._treeViewLoadIndicator=null)},_createTreeViewLoadIndicator:function(){return this._treeViewLoadIndicator=(0,i.default)("<div>").addClass(B),this._createComponent(this._treeViewLoadIndicator,w.default,{}),this._treeViewLoadIndicator},_dataSourceLoadingChangedHandler:function(t){var e;if(this._isVirtualMode()&&(e=this._combineFilter(),this._dataSource.filter(e)),t&&!this._dataSource.isLoaded()){this.option("items",[]);var n=(0,i.default)("<div>").addClass(N);this._createTreeViewLoadIndicator().appendTo(n),this.itemsContainer().append(n),this._isVirtualMode()&&this._dataSource.filter()!==e&&this._dataSource.filter([])}else this._removeTreeViewLoadIndicator()},_initStoreChangeHandlers:function(){var t=this;"plain"===this.option("dataStructure")&&this._dataSource&&this._dataSource.store().on("inserted",(function(e){t.option().items=t.option("items").concat(e),t._dataAdapter.addItem(e),t._dataAdapter.isFiltered(e)&&t._updateLevel(t._parentIdGetter(e))})).on("removed",(function(e){var n=t._dataAdapter.getNodeByKey(e);t.option("items")[t._dataAdapter.getIndexByKey(n.internalFields.key)]=0,t._markChildrenItemsToRemove(n),t._removeItems(),t._dataAdapter.removeItem(e),t._updateLevel(t._parentIdGetter(n))}))},_markChildrenItemsToRemove:function(t){var e=this,n=t.internalFields.childrenKeys;(0,h.each)(n,(function(t,n){e.option("items")[e._dataAdapter.getIndexByKey(n)]=0,e._markChildrenItemsToRemove(e._dataAdapter.getNodeByKey(n))}))},_removeItems:function(){var t=this,e=(0,d.extend)(!0,[],this.option("items")),n=0;(0,h.each)(e,(function(e,i){i||(t.option("items").splice(e-n,1),n++)}))},_updateLevel:function(t){var e=this._getContainerByParentKey(t);this._renderItems(e,this._dataAdapter.getChildrenNodes(t))},_getOldContainer:function(t){return t.length?t.children(".".concat(I)):this._scrollableContainer?this._scrollableContainer.$content().children():(0,i.default)()},_getContainerByParentKey:function(t){var e=this._dataAdapter.getNodeByKey(t),n=e?this._getNodeElement(e):[];this._getOldContainer(n).remove();var i=this._renderNodeContainer(n);return this._isRootLevel(t)&&(this._scrollableContainer||this._renderScrollableContainer(),this._scrollableContainer.$content().append(i)),i},_isRootLevel:function(t){return t===this.option("rootValue")},_getAccessors:function(){var t=this.callBase();return t.push("hasItems"),t},_getDataAdapterOptions:function(){return{rootValue:this.option("rootValue"),multipleSelection:!this._isSingleSelection(),recursiveSelection:this._isRecursiveSelection(),recursiveExpansion:this.option("expandNodesRecursive"),selectionRequired:this.option("selectionRequired"),dataType:this.option("dataStructure"),sort:this._dataSource&&this._dataSource.sort()}},_initMarkup:function(){this._renderScrollableContainer(),this._renderEmptyMessage(this._dataAdapter.getRootNodes()),this.callBase(),this.setAria("role","tree")},_renderContentImpl:function(){var t=this._renderNodeContainer();this._scrollableContainer.$content().append(t),this.option("items")&&this.option("items").length&&(this._renderItems(t,this._dataAdapter.getRootNodes()),this._initExpandEvent(),this._selectAllEnabled()&&(this._createSelectAllValueChangedAction(),this._renderSelectAllItem(t)))},_isVirtualMode:function(){return this.option("virtualModeEnabled")&&this._isDataStructurePlain()&&!!this.option("dataSource")},_isDataStructurePlain:function(){return"plain"===this.option("dataStructure")},_fireContentReadyAction:function(){var t=this.getDataSource(),e=t&&!t.isLoaded();this._scrollableContainer&&u.default.hasWindow()&&this._scrollableContainer.update(),e||this.callBase(),this._scrollableContainer&&u.default.hasWindow()&&this._scrollableContainer.update()},_renderScrollableContainer:function(){this._scrollableContainer=this._createComponent((0,i.default)("<div>").appendTo(this.$element()),b.default,{direction:this.option("scrollDirection"),useKeyboard:!1})},_renderNodeContainer:function(t){var e=(0,i.default)("<ul>").addClass(I);if(this.setAria("role","group",e),t&&t.length){var n=this._getItemData(t.children("."+M));this._expandedGetter(n)&&e.addClass(E),e.appendTo(t)}return e},_createDOMElement:function(t,e){var n=(0,i.default)("<li>").addClass(k).attr("data-item-id",this._encodeString(e.internalFields.key)).prependTo(t);return this.setAria({role:"treeitem",label:this._displayGetter(e.internalFields.item)||"",expanded:e.internalFields.expanded||!1,level:this._getLevel(t)},n),n},_getLevel:function(t){var e=t.parent();return e.hasClass("dx-scrollable-content")?1:parseInt(e.attr("aria-level"))+1},_showCheckboxes:function(){return"none"!==this.option("showCheckBoxesMode")},_selectAllEnabled:function(){return"selectAll"===this.option("showCheckBoxesMode")&&!this._isSingleSelection()},_renderItems:function(t,e){for(var n=e.length-1;n>=0;n--)this._renderItem(n,e[n],t);this._renderedItemsCount+=e.length},_renderItem:function(t,e,n){var i=this._createDOMElement(n,e),o=e.internalFields,r=this._showCheckboxes();i.addClass(r?P:D),i.toggleClass("dx-state-invisible",!1===o.item.visible),r&&this._renderCheckBox(i,e),this.setAria("selected",o.selected,i),this._toggleSelectedClass(i,o.selected),this.callBase(this._renderedItemsCount+t,o.item,i),!1!==o.item.visible&&this._renderChildren(i,e)},_setAriaSelected:function(){},_renderChildren:function(t,e){var n=this;this._hasChildren(e)?(this._renderToggleItemVisibilityIcon(t,e),this.option("deferRendering")&&!e.internalFields.expanded||this._loadSublevel(e).done((function(i){n._renderSublevel(t,n._getActualNode(e),i)}))):this._addLeafClass(t)},_getActualNode:function(t){return this._dataAdapter.getNodeByKey(t.internalFields.key)},_hasChildren:function(t){return this._isVirtualMode()||this._useCustomChildrenLoader()?!1!==this._hasItemsGetter(t.internalFields.item):this.callBase(t)},_loadSublevel:function(t){var e=this,n=new x.Deferred,i=this._getChildNodes(t);return i.length?n.resolve(i):this._loadNestedItems(t).done((function(t){n.resolve(e._dataAdapter.getNodesByItems(t))})),n.promise()},_renderSublevel:function(t,e,n){var i=this._renderNodeContainer(t,e),o=n.filter((function(t){return-1!==e.internalFields.childrenKeys.indexOf(t.internalFields.key)}));if(this._renderItems(i,o),o.length&&!e.internalFields.selected){var r=o[0];this._updateParentsState(r,this._getNodeElement(r))}this._normalizeIconState(t,o.length),e.internalFields.expanded&&i.addClass(E)},_executeItemRenderAction:function(t,e,n){var i=this._getNode(n);this._getItemRenderAction()({itemElement:n,itemIndex:t,itemData:e,node:this._dataAdapter.getPublicNode(i)})},_addLeafClass:function(t){t.addClass(O)},_expandEventHandler:function(t){(0,i.default)(t.currentTarget.parentNode).hasClass(O)||this._toggleExpandedState(t.currentTarget,void 0,t)},_initExpandEvent:function(){var t=this._getEventNameByOption(this.option("expandEvent")),e=this._itemContainer(),n=this._itemSelector();(0,r.off)(e,".dxTreeView_expand",n),(0,r.on)(e,t,n,this._expandEventHandler.bind(this))},_getEventNameByOption:function(t){var e="click"===t?s.default:v.default;return(0,g.addNamespace)(e.name,"dxTreeView_expand")},_getNode:function(t){if(!(0,c.isDefined)(t))return null;if(t.internalFields)return t;if((0,c.isPrimitive)(t))return this._dataAdapter.getNodeByKey(t);var e=(0,i.default)(t).get(0);return e?(0,o.isElementNode)(e)?this._getNodeByElement(e):this._dataAdapter.getNodeByItem(e):null},_getNodeByElement:function(t){var e=(0,i.default)(t).closest("."+k),n=this._decodeString(e.attr("data-item-id"));return this._dataAdapter.getNodeByKey(n)},_toggleExpandedState:function(t,e,n){var i=this._getNode(t);if(!i)return(new x.Deferred).reject().promise();if(i.internalFields.disabled)return(new x.Deferred).reject().promise();var o=i.internalFields.expanded;if(o===e)return(new x.Deferred).resolve().promise();if(this._hasChildren(i)){var r=this._getNodeElement(i);if(r.find(".".concat(T,":not(.").concat("dx-state-invisible",")")).length)return(new x.Deferred).reject().promise();this._createLoadIndicator(r)}return(0,c.isDefined)(e)||(e=!o),this._dataAdapter.toggleExpansion(i.internalFields.key,e),this._updateExpandedItemsUI(i,e,n)},_createLoadIndicator:function(t){var e=t.children("."+R),n=t.children(".".concat(I));e.hasClass(L)||n.not(":empty").length||(this._createComponent((0,i.default)("<div>").addClass(T),w.default,{}).$element().appendTo(t),e.hide())},_renderToggleItemVisibilityIcon:function(t,e){var n=(0,i.default)("<div>").addClass(R).appendTo(t);e.internalFields.expanded&&(n.addClass(L),t.parent().addClass(E)),e.internalFields.disabled&&n.addClass("dx-state-disabled"),this._renderToggleItemVisibilityIconClick(n,e)},_renderToggleItemVisibilityIconClick:function(t,e){var n=this,i=(0,g.addNamespace)(s.default.name,this.NAME);(0,r.off)(t,i),(0,r.on)(t,i,(function(t){n._toggleExpandedState(e.internalFields.key,void 0,t)}))},_updateExpandedItemsUI:function(t,e,n){var i=this._getNodeElement(t),o=!i.length||e&&i.is(":hidden");if(this.option("expandNodesRecursive")&&o){var r=this._getNode(t.internalFields.parentKey);r&&this._updateExpandedItemsUI(r,e,n)}var a=i.children("."+R),s=i.children(".".concat(I));a.toggleClass(L,e);var l=s.length>0,u=new x.Deferred;return!e||l&&!s.is(":empty")?(this._animateNodeContainer(t,e,n,u),u.promise()):this._isVirtualMode()||this._useCustomChildrenLoader()?(this._loadNestedItemsWithUpdate(t,e,n,u),u.promise()):(this._renderSublevel(i,t,this._getChildNodes(t)),this._fireContentReadyAction(),this._animateNodeContainer(t,e,n,u),u.promise())},_loadNestedItemsWithUpdate:function(t,e,n,i){var o=this,r=this._getNodeElement(t);this._loadNestedItems(t).done((function(a){var s=o._getActualNode(t);o._renderSublevel(r,s,o._dataAdapter.getNodesByItems(a)),a&&a.length&&(o._fireContentReadyAction(),o._animateNodeContainer(s,e,n,i))}))},_loadNestedItems:function(t){var e=this;if(this._useCustomChildrenLoader()){var n=this._dataAdapter.getPublicNode(t);return this._loadChildrenByCustomLoader(n).done((function(t){e._areNodesExists(t)||e._appendItems(t)}))}return this._isVirtualMode()?(this._filter.internal=[this.option("parentIdExpr"),t.internalFields.key],this._dataSource.filter(this._combineFilter()),this._dataSource.load().done((function(t){e._areNodesExists(t)||e._appendItems(t)}))):(new x.Deferred).resolve([]).promise()},_areNodesExists:function(t,e){var n=this.keyOf(t[0]),i=this._dataAdapter.getFullData();return!!this._dataAdapter.getNodeByKey(n,i)},_appendItems:function(t){this.option().items=this.option("items").concat(t),this._initDataAdapter()},_animateNodeContainer:function(t,e,n,i){var o=this._getNodeElement(t),r=o.children(".".concat(I));t&&i&&0===r.length&&i.resolve(),r.addClass(E);var a=r.height();y.default.stop(r,!0),y.default.animate(r,{type:"custom",duration:this.option("animationEnabled")?400:0,from:{maxHeight:e?0:a},to:{maxHeight:e?a:0},complete:function(){r.css("maxHeight","none"),r.toggleClass(E,e),this.setAria("expanded",e,o),this._scrollableContainer.update(),this._fireExpandedStateUpdatedEvent(e,t,n),i&&i.resolve()}.bind(this)})},_fireExpandedStateUpdatedEvent:function(t,e,n){if(this._hasChildren(e)){var i=t?"onItemExpanded":"onItemCollapsed";if((0,c.isDefined)(n))this._itemDXEventHandler(n,i,{node:this._dataAdapter.getPublicNode(e)});else{var o=this._getNodeElement(e);this._itemEventHandler(o,i,{event:n,node:this._dataAdapter.getPublicNode(e)})}}},_normalizeIconState:function(t,e){var n=t.find(".dx-loadindicator");(n.length&&w.default.getInstance(n).option("visible",!1),e)?t.find("."+R).show():(t.find("."+R).removeClass(R),t.addClass(O))},_emptyMessageContainer:function(){return this._scrollableContainer?this._scrollableContainer.content():this.callBase()},_renderContent:function(){var t=this.option("items");t&&t.length&&(this._contentAlreadyRendered=!0),this.callBase()},_renderSelectAllItem:function(t){t=t||this.$element().find(".".concat(I)).first(),this._$selectAllItem=(0,i.default)("<div>").addClass(F);var e=this._dataAdapter.isAllSelected();this._createComponent(this._$selectAllItem,p.default,{value:e,text:this.option("selectAllText"),onValueChanged:function(t){this._toggleSelectAll(t),this._fireSelectAllValueChanged(t.value)}.bind(this)}),this._toggleSelectedClass(this._$selectAllItem,e),t.before(this._$selectAllItem)},_toggleSelectAll:function(t){this._dataAdapter.toggleSelectAll(t.value),this._updateItemsUI(),this._fireSelectionChanged()},_renderCheckBox:function(t,e){var n=(0,i.default)("<div>").appendTo(t);this._createComponent(n,p.default,{value:e.internalFields.selected,onValueChanged:this._changeCheckboxValue.bind(this),focusStateEnabled:!1,disabled:this._disabledGetter(e)})},_toggleSelectedClass:function(t,e){t.toggleClass("dx-state-selected",!!e)},_toggleNodeDisabledState:function(t,e){var n=this._getNodeElement(t),i=n.find("."+M).eq(0);(this._dataAdapter.toggleNodeDisabledState(t.internalFields.key,e),i.toggleClass("dx-state-disabled",!!e),this._showCheckboxes())&&this._getCheckBoxInstance(n).option("disabled",!!e)},_itemOptionChanged:function(t,e,n){var i=this._dataAdapter.getNodeByItem(t);e===this.option("disabledExpr")&&this._toggleNodeDisabledState(i,n)},_changeCheckboxValue:function(t){var e=(0,i.default)(t.element).parent("."+k).children("."+M),n=this._getItemData(e),o=this._getNodeByElement(e),r=t.value;o&&o.internalFields.selected===r||this._updateItemSelection(r,n,t.event)},_isSingleSelection:function(){return"single"===this.option("selectionMode")},_isRecursiveSelection:function(){return this.option("selectNodesRecursive")&&"single"!==this.option("selectionMode")},_isLastSelectedBranch:function(t,e,n){var i=e.indexOf(t.key);return i>=0&&e.splice(i,1),n&&(0,h.each)(t.children,function(t,n){this._isLastSelectedBranch(n,e,!0)}.bind(this)),t.parent&&this._isLastSelectedBranch(t.parent,e),0===e.length},_isLastRequired:function(t){var e=this.option("selectionRequired"),n=this._isSingleSelection(),i=this.getSelectedNodeKeys();if(e)return n?1===i.length:this._isLastSelectedBranch(t.internalFields.publicNode,i.slice(),!0)},_updateItemSelection:function(t,e,n){var i=this,o=this._getNode(e);if(!o)return!1;if(o.internalFields.selected===t)return!0;if(!t&&this._isLastRequired(o)){if(this._showCheckboxes()){var r=this._getNodeElement(o),a=this._getCheckBoxInstance(r);a&&a.option("value",!0)}return!1}var s=this.getSelectedNodeKeys();this._isSingleSelection()&&t&&(0,h.each)(s,(function(t,e){i.unselectItem(e)})),this._dataAdapter.toggleSelection(o.internalFields.key,t),this._updateItemsUI();var l=n||this._findItemElementByItem(o.internalFields.item);return(n?this._itemDXEventHandler:this._itemEventHandler).call(this,l,"onItemSelectionChanged",{node:this._dataAdapter.getPublicNode(o),itemData:o.internalFields.item}),this._fireSelectionChanged(),!0},_getCheckBoxInstance:function(t){return t.children(".dx-checkbox").dxCheckBox("instance")},_updateItemsUI:function(){var t=this,e={};(0,h.each)(this._dataAdapter.getData(),(function(n,i){var o=t._getNodeElement(i,e),r=i.internalFields.selected;o.length&&(t._toggleSelectedClass(o,r),t.setAria("selected",r,o),t._showCheckboxes()&&t._getCheckBoxInstance(o).option("value",r))})),this._selectAllEnabled()&&this._$selectAllItem.dxCheckBox("instance").option("value",this._dataAdapter.isAllSelected())},_updateParentsState:function(t,e){if(e){var n=this._dataAdapter.getNodeByKey(t.internalFields.parentKey),o=(0,i.default)(e.parents("."+k)[0]);if(this._showCheckboxes()){var r=n.internalFields.selected;this._getCheckBoxInstance(o).option("value",r),this._toggleSelectedClass(o,r)}n.internalFields.parentKey!==this.option("rootValue")&&this._updateParentsState(n,o)}},_itemEventHandlerImpl:function(t,e,n){var o=(0,i.default)(t).closest("."+k).children("."+M);return e((0,d.extend)(this._extendActionArgs(o),n))},_itemContextMenuHandler:function(t){this._createEventHandler("onItemContextMenu",t)},_itemHoldHandler:function(t){this._createEventHandler("onItemHold",t)},_createEventHandler:function(t,e){var n=this._getNodeByElement(e.currentTarget);this._itemDXEventHandler(e,t,{node:this._dataAdapter.getPublicNode(n)})},_itemClass:function(){return M},_itemDataKey:function(){return A},_attachClickEvent:function(){var t="."+this._itemClass(),e="."+k+", ."+F,n=(0,g.addNamespace)(s.default.name,this.NAME),o=(0,g.addNamespace)(_.down,this.NAME),a=this._itemContainer(),l=this;(0,r.off)(a,n,t),(0,r.off)(a,o,e),(0,r.on)(a,n,t,(function(t){l._itemClickHandler(t,(0,i.default)(this))})),(0,r.on)(a,o,e,(function(t){l._itemPointerDownHandler(t)}))},_itemClickHandler:function(t,e){var n=this._getItemData(e),i=this._getNodeByElement(e);this._itemDXEventHandler(t,"onItemClick",{node:this._dataAdapter.getPublicNode(i)}),this.option("selectByClick")&&!t.isDefaultPrevented()&&this._updateItemSelection(!i.internalFields.selected,n,t)},_updateSelectionToFirstItem:function(t,e){for(var n=e;n>=0;){var o=(0,i.default)(t[n]);this._updateItemSelection(!0,o.find("."+M).get(0)),n--}},_updateSelectionToLastItem:function(t,e){for(var n=t.length,o=e;o<n;){var r=(0,i.default)(t[o]);this._updateItemSelection(!0,r.find("."+M).get(0)),o++}},_focusInHandler:function(t){var e=this;if(this._updateFocusState(t,!0),this.option("focusedElement"))return clearTimeout(this._setFocusedItemTimeout),void(this._setFocusedItemTimeout=setTimeout((function(){e._setFocusedItem((0,i.default)(e.option("focusedElement")))})));var n=this._getActiveItem();this.option("focusedElement",(0,f.getPublicElement)(n.closest("."+k)))},_setFocusedItem:function(t){t&&t.length&&(t.children().hasClass("dx-state-disabled")||this.callBase(t))},_itemPointerDownHandler:function(t){if(this.option("focusStateEnabled")){var e=(0,i.default)(t.target).closest("."+k+", ."+F);if(e.length){var n=e.hasClass("dx-state-disabled")?null:e;this.option("focusedElement",(0,f.getPublicElement)(n))}}},_findNonDisabledNodes:function(t){return t.not((function(){return(0,i.default)(this).children("."+M).hasClass("dx-state-disabled")}))},_moveFocus:function(t,e){var n="up",i="down",o="first",r="last",a=this.option("rtlEnabled")?"right":"left",s=this.option("rtlEnabled")?"left":"right";this.$element().find(".".concat(I)).each((function(){y.default.stop(this,!0)}));var l=this._findNonDisabledNodes(this._nodeElements());if(l&&l.length)switch(t){case n:var u=this._prevItem(l);this.option("focusedElement",(0,f.getPublicElement)(u));var c=this._getNodeItemElement(u);this._scrollableContainer.scrollToElement(c),e.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,c);break;case i:var d=this._nextItem(l);this.option("focusedElement",(0,f.getPublicElement)(d));var h=this._getNodeItemElement(d);this._scrollableContainer.scrollToElement(h),e.shiftKey&&this._showCheckboxes()&&this._updateItemSelection(!0,h);break;case o:var p=l.first();e.shiftKey&&this._showCheckboxes()&&this._updateSelectionToFirstItem(l,l.index(this._prevItem(l))),this.option("focusedElement",(0,f.getPublicElement)(p)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(p));break;case r:var m=l.last();e.shiftKey&&this._showCheckboxes()&&this._updateSelectionToLastItem(l,l.index(this._nextItem(l))),this.option("focusedElement",(0,f.getPublicElement)(m)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(m));break;case s:this._expandFocusedContainer();break;case a:this._collapseFocusedContainer();break;default:return void this.callBase.apply(this,arguments)}},_getNodeItemElement:function(t){return t.find("."+M).get(0)},_nodeElements:function(){return this.$element().find("."+k).not(":hidden")},_expandFocusedContainer:function(){var t=(0,i.default)(this.option("focusedElement"));if(t.length&&!t.hasClass(O)){if(t.find(".".concat(I)).eq(0).hasClass(E)){var e=this._nextItem(this._findNonDisabledNodes(this._nodeElements()));return this.option("focusedElement",(0,f.getPublicElement)(e)),void this._scrollableContainer.scrollToElement(this._getNodeItemElement(e))}var n=this._getNodeByElement(t.children("."+M));this._toggleExpandedState(n,!0)}},_getClosestNonDisabledNode:function(t){do{t=t.parent().closest("."+k)}while(t.children(".dx-treeview-item.dx-state-disabled").length);return t},_collapseFocusedContainer:function(){var t=(0,i.default)(this.option("focusedElement"));if(t.length){var e=t.find(".".concat(I)).eq(0);if(!t.hasClass(O)&&e.hasClass(E)){var n=this._getNodeByElement(t.children("."+M));this._toggleExpandedState(n,!1)}else{var o=this._getClosestNonDisabledNode(t);o.length&&this.option("focusedElement",(0,f.getPublicElement)(o)),this._scrollableContainer.scrollToElement(this._getNodeItemElement(o))}}},_encodeString:function(t){return(0,c.isString)(t)?encodeURI(t):t},_decodeString:function(t){return(0,c.isString)(t)?decodeURI(t):t},updateDimensions:function(){var t=this,e=new x.Deferred;return this._scrollableContainer?this._scrollableContainer.update().done((function(){e.resolveWith(t)})):e.resolveWith(this),e.promise()},selectItem:function(t){return this._updateItemSelection(!0,t)},unselectItem:function(t){return this._updateItemSelection(!1,t)},expandItem:function(t){return this._toggleExpandedState(t,!0)},collapseItem:function(t){return this._toggleExpandedState(t,!1)},getNodes:function(){return this._dataAdapter.getTreeNodes()},getSelectedNodes:function(){var t=this;return this.getSelectedNodeKeys().map((function(e){var n=t._dataAdapter.getNodeByKey(e);return t._dataAdapter.getPublicNode(n)}))},getSelectedNodesKeys:function(){return C.default.log("W0002","dxTreeView","getSelectedNodesKeys","20.1","Use the 'getSelectedNodeKeys' method instead"),this.getSelectedNodeKeys()},getSelectedNodeKeys:function(){return this._dataAdapter.getSelectedNodesKeys()},selectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!0):this._toggleSelectAll({value:!0})},unselectAll:function(){this._selectAllEnabled()?this._$selectAllItem.dxCheckBox("instance").option("value",!1):this._toggleSelectAll({value:!1})},expandAll:function(){var t=this._dataAdapter;(0,h.each)(t.getData(),(function(e,n){return t.toggleExpansion(n.internalFields.key,!0)})),this.repaint()},collapseAll:function(){(0,h.each)(this._dataAdapter.getExpandedNodesKeys(),function(t,e){this._toggleExpandedState(e,!1)}.bind(this))},scrollToItem:function(t){var e=this,n=this._getNode(t);if(!n)return(new x.Deferred).reject().promise();for(var i=[],o=n.internalFields.publicNode.parent;null!=o;)o.expanded||i.push(o.key),o=o.parent;var r=new x.Deferred;return this._expandNodes(i.reverse()).always((function(){var t=e._getNodeElement(n);t&&t.length?(e._scrollableContainer.scrollToElementTopLeft(t),r.resolve()):r.reject()})),r.promise()},_expandNodes:function(t){var e=this;if(!t||0===t.length)return(new x.Deferred).resolve().promise();var n=new x.Deferred,o=t.map((function(t){return e.expandItem(t)}));return x.when.apply(i.default,o).done((function(){return n.resolve()})).fail((function(){return n.reject()})),n.promise()},_dispose:function(){this.callBase(),clearTimeout(this._setFocusedItemTimeout)}});t.exports=V},function(t,e,n){"use strict";var i=m(n(3)),o=m(n(27)),r=n(796),a=n(797),s=m(n(12)),l=m(n(233)),u=n(2),c=n(5),d=m(n(18)),h=n(7),f=n(290),p=n(125);function m(t){return t&&t.__esModule?t:{default:t}}var g={init:function(){this.callBase.apply(this,arguments),this._initGroupingHelper()},_initGroupingHelper:function(t){var e=this._grouping,n=this.option("grouping.autoExpandAll"),i=this.option("focusedRowEnabled"),o=t?t.remoteOperations:this.remoteOperations();!(o.filtering&&o.sorting&&o.paging)||o.grouping||!n&&i?(!e||e instanceof r.GroupingHelper)&&(this._grouping=new a.GroupingHelper(this)):(!e||e instanceof a.GroupingHelper)&&(this._grouping=new r.GroupingHelper(this))},totalItemsCount:function(){var t=this.callBase();return t>0&&this._dataSource.group()&&this._dataSource.requireTotalCount()?t+this._grouping.totalCountCorrection():t},itemsCount:function(){return this._dataSource.group()?this._grouping.itemsCount()||0:this.callBase.apply(this,arguments)},allowCollapseAll:function(){return this._grouping.allowCollapseAll()},isGroupItemCountable:function(t){return this._grouping.isGroupItemCountable(t)},isRowExpanded:function(t){var e=this._grouping.findGroupInfo(t);return e?e.isExpanded:!this._grouping.allowCollapseAll()},collapseAll:function(t){return this._collapseExpandAll(t,!1)},expandAll:function(t){return this._collapseExpandAll(t,!0)},_collapseExpandAll:function(t,e){var n=this._dataSource,i=n.group(),r=o.default.normalizeSortingInfo(i||[]);if(r.length){for(var a=0;a<r.length;a++)void 0===t||t===a?r[a].isExpanded=e:i&&i[a]&&(r[a].isExpanded=i[a].isExpanded);n.group(r),this._grouping.foreachGroups((function(n,i){void 0!==t&&t!==i.length-1||(n.isExpanded=e)}),!1,!0),this.resetPagesCache()}return!0},refresh:function(){return this.callBase.apply(this,arguments),this._grouping.refresh.apply(this._grouping,arguments)},changeRowExpand:function(t){var e=this._dataSource;if(e.group())return e.beginLoading(),this._lastLoadOptions&&(this._lastLoadOptions.groupExpand=!0),this._changeRowExpandCore(t).always((function(){e.endLoading()}))},_changeRowExpandCore:function(t){return this._grouping.changeRowExpand(t)},_hasGroupLevelsExpandState:function(t,e){if(t&&Array.isArray(t))for(var n=0;n<t.length;n++)if(t[n].isExpanded===e)return!0},_customizeRemoteOperations:function(t,e){var n=t.remoteOperations;t.storeLoadOptions.group?(n.grouping&&!t.isCustomLoading&&(n.groupPaging&&!this._hasGroupLevelsExpandState(t.storeLoadOptions.group,!0)||(n.paging=!1)),n.grouping||n.sorting&&n.filtering&&!t.isCustomLoading&&!this._hasGroupLevelsExpandState(t.storeLoadOptions.group,!1)||(n.paging=!1)):!t.isCustomLoading&&n.paging&&e.grouping&&this.resetCache(),this.callBase.apply(this,arguments)},_handleDataLoading:function(t){return this.callBase(t),this._initGroupingHelper(t),this._grouping.handleDataLoading(t)},_handleDataLoaded:function(t){return this._grouping.handleDataLoaded(t,this.callBase.bind(this))},_handleDataLoadedCore:function(t){return this._grouping.handleDataLoadedCore(t,this.callBase.bind(this))}};l.default.extend(g);var _={init:function(){this.callBase(),this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed")},_beforeProcessItems:function(t){var e=this._columnsController.getGroupColumns();return(t=this.callBase(t)).length&&e.length&&(t=this._processGroupItems(t,e.length)),t},_processItem:function(t,e){return(0,u.isDefined)(t.groupIndex)&&(0,u.isString)(t.rowType)&&0===t.rowType.indexOf("group")?(t=this._processGroupItem(t,e),e.dataIndex=0):t=this.callBase.apply(this,arguments),t},_processGroupItem:function(t){return t},_processGroupItems:function(t,e,n){var i=this._columnsController.getGroupColumns(),o=i[i.length-e];if(!n){var r=this.option("scrolling.mode");n={collectContinuationItems:"virtual"!==r&&"infinite"!==r,resultItems:[],path:[],values:[]}}var a=n.resultItems;if(n.data&&(!n.collectContinuationItems&&n.data.isContinuation||a.push({rowType:"group",data:n.data,groupIndex:n.path.length-1,isExpanded:!!n.data.items,key:n.path.slice(0),values:n.values.slice(0)})),t)if(0===e)a.push.apply(a,t);else for(var s=0;s<t.length;s++){var l=t[s];l&&"items"in l?(n.data=l,n.path.push(l.key),n.values.push(o&&o.deserializeValue&&!o.calculateDisplayValue?o.deserializeValue(l.key):l.key),this._processGroupItems(l.items,e-1,n),n.data=void 0,n.path.pop(),n.values.pop()):a.push(l)}return a},publicMethods:function(){return this.callBase().concat(["collapseAll","expandAll","isRowExpanded","expandRow","collapseRow"])},collapseAll:function(t){var e=this._dataSource;e&&e.collapseAll(t)&&(e.pageIndex(0),e.reload())},expandAll:function(t){var e=this._dataSource;e&&e.expandAll(t)&&(e.pageIndex(0),e.reload())},changeRowExpand:function(t){var e=this,n=e.isRowExpanded(t),i={key:t,expanded:n};return e.executeAction(n?"onRowCollapsing":"onRowExpanding",i),i.cancel?(new h.Deferred).resolve():(0,h.when)(e._changeRowExpandCore(t)).done((function(){i.expanded=!n,e.executeAction(n?"onRowCollapsed":"onRowExpanded",i)}))},_changeRowExpandCore:function(t){var e=this,n=this._dataSource,i=new h.Deferred;return n?(0,h.when)(n.changeRowExpand(t)).done((function(){e.load().done(i.resolve).fail(i.reject)})).fail(i.reject):i.resolve(),i},isRowExpanded:function(t){var e=this._dataSource;return e&&e.isRowExpanded(t)},expandRow:function(t){return this.isRowExpanded(t)?(new h.Deferred).resolve():this.changeRowExpand(t)},collapseRow:function(t){return this.isRowExpanded(t)?this.changeRowExpand(t):(new h.Deferred).resolve()},optionChanged:function(t){"grouping"===t.name&&(t.name="dataSource"),this.callBase(t)}},v=function(t,e){var n=this._columnsController;switch(e.itemData.value){case"group":var i=n._dataSource.group()||[];n.columnOption(t.dataField,"groupIndex",i.length);break;case"ungroup":n.columnOption(t.dataField,"groupIndex",-1);break;case"ungroupAll":this.component.clearGrouping()}},y={_getToolbarItems:function(){var t=this.callBase();return this._appendGroupingItem(t)},_appendGroupingItem:function(t){var e=this;if(this._isGroupPanelVisible()){var n=!1,o={template:function(){var t=(0,i.default)("<div>").addClass("dx-datagrid-group-panel");return e._updateGroupPanelContent(t),(0,f.registerKeyboardAction)("groupPanel",e,t,void 0,e._handleActionKeyDown.bind(e)),t},name:"groupPanel",onItemRendered:function(){n&&e.renderCompleted.fire(),n=!0},location:"before",locateInMenu:"never",sortIndex:1};t.push(o)}return t},_handleActionKeyDown:function(t){var e=t.event,n=(0,i.default)(e.target),o=n.closest(".".concat("dx-group-panel-item")).index(),r=this._columnsController.getGroupColumns()[o],a=r&&r.index;n.is(".dx-header-filter")?this.getController("headerFilter").showHeaderFilterMenu(a,!0):this._processGroupItemAction(a),e.preventDefault()},_isGroupPanelVisible:function(){var t,e=this.option("groupPanel");return e&&"auto"===(t=e.visible)&&(t="desktop"===d.default.current().deviceType),t},_renderGroupPanelItems:function(t,e){var n=this;t.empty(),(0,c.each)(e,(function(e,i){n._createGroupPanelItem(t,i)})),(0,p.restoreFocus)(this)},_createGroupPanelItem:function(t,e){var n=(0,i.default)("<div>").addClass(e.cssClass).addClass("dx-group-panel-item").data("columnData",e).appendTo(t).text(e.caption);return(0,p.setTabIndex)(this,n),n},_columnOptionChanged:function(t){if(!this._requireReady&&!o.default.checkChanges(t.optionNames,["width","visibleWidth"])){var e=this.element(),n=e&&e.find(".dx-datagrid-group-panel");n&&n.length&&(this._updateGroupPanelContent(n),this.renderCompleted.fire())}this.callBase()},_updateGroupPanelContent:function(t){var e=this.getController("columns").getGroupColumns(),n=this.option("groupPanel");this._renderGroupPanelItems(t,e),n.allowColumnDragging&&!e.length&&((0,i.default)("<div>").addClass("dx-group-panel-message").text(n.emptyPanelText).appendTo(t),t.closest(".dx-toolbar-label").css("maxWidth","none"),this.updateToolbarDimensions())},allowDragging:function(t){var e=this.option("groupPanel");return this._isGroupPanelVisible()&&e.allowColumnDragging&&t&&t.allowGrouping},getColumnElements:function(){var t=this.element();return t&&t.find(".dx-group-panel-item")},getColumns:function(){return this.getController("columns").getGroupColumns()},getBoundingRect:function(){var t=this.element();if(t&&t.find(".dx-datagrid-group-panel").length){var e=t.offset();return{top:e.top,bottom:e.top+t.height()}}return null},getName:function(){return"group"},getContextMenuItems:function(t){var e,n=this.option("grouping.contextMenuEnabled"),o=(0,i.default)(t.targetElement).closest(".dx-group-panel-item");if(o.length&&(t.column=o.data("columnData")),n&&t.column){var r=t.column;if(!(0,u.isDefined)(r.allowGrouping)||r.allowGrouping){var a=(0,u.isDefined)(r.groupIndex)&&r.groupIndex>-1,s=this.option("grouping.texts"),l=v.bind(this,r);e=[{text:s.ungroup,value:"ungroup",disabled:!a,onItemClick:l},{text:s.ungroupAll,value:"ungroupAll",onItemClick:l}]}}return e},isVisible:function(){return this.callBase()||this._isGroupPanelVisible()},optionChanged:function(t){"groupPanel"===t.name?(this._invalidate(),t.handled=!0):this.callBase(t)}};e.GroupingHeaderPanelExtender=y;var b={getContextMenuItems:function(t){var e;if(this.option("grouping.contextMenuEnabled")&&t.row&&"group"===t.row.rowType){var n=this._columnsController.columnOption("groupIndex:"+t.row.groupIndex);if(n&&n.allowGrouping){var i=this.option("grouping.texts"),o=v.bind(this,n);(e=[]).push({text:i.ungroup,value:"ungroup",onItemClick:o},{text:i.ungroupAll,value:"ungroupAll",onItemClick:o})}}return e},_rowClick:function(t){var e=this.option("grouping.expandMode"),n="infinite"!==this.option("scrolling.mode")&&"rowClick"===e&&(0,i.default)(t.event.target).closest(".dx-group-row").length,o=(0,i.default)(t.event.target).closest(".dx-datagrid-expand").length;(n||o)&&this._changeGroupRowState(t),this.callBase(t)},_changeGroupRowState:function(t){var e=this.getController("data"),n=e.items()[t.rowIndex],i=this._columnsController.columnOption("groupIndex:"+n.groupIndex,"allowCollapsing");("data"===n.rowType||"group"===n.rowType&&!1!==i)&&(e.changeRowExpand(n.key,!0),t.event.preventDefault(),t.handled=!0)}},w={getContextMenuItems:function(t){var e=this.option("grouping.contextMenuEnabled"),n=this.callBase(t);if(e&&t.row&&("header"===t.row.rowType||"detailAdaptive"===t.row.rowType)){var i=t.column;if(!i.command&&(!(0,u.isDefined)(i.allowGrouping)||i.allowGrouping)){var o=this.option("grouping.texts"),r=(0,u.isDefined)(i.groupIndex)&&i.groupIndex>-1,a=v.bind(this,i);(n=n||[]).push({text:o.groupByThisColumn,value:"group",beginGroup:!0,disabled:r,onItemClick:a}),i.showWhenGrouped&&n.push({text:o.ungroup,value:"ungroup",disabled:!r,onItemClick:a}),n.push({text:o.ungroupAll,value:"ungroupAll",onItemClick:a})}}return n}};o.default.registerModule("grouping",{defaultOptions:function(){return{grouping:{autoExpandAll:!0,allowCollapsing:!0,contextMenuEnabled:!1,expandMode:"buttonClick",texts:{groupContinuesMessage:s.default.format("dxDataGrid-groupContinuesMessage"),groupContinuedMessage:s.default.format("dxDataGrid-groupContinuedMessage"),groupByThisColumn:s.default.format("dxDataGrid-groupHeaderText"),ungroup:s.default.format("dxDataGrid-ungroupHeaderText"),ungroupAll:s.default.format("dxDataGrid-ungroupAllText")}},groupPanel:{visible:!1,emptyPanelText:s.default.format("dxDataGrid-groupPanelEmptyText"),allowColumnDragging:!0}}},extenders:{controllers:{data:_,columns:{_getExpandColumnOptions:function(){var t=this.callBase.apply(this,arguments);return t.cellTemplate=o.default.getExpandCellTemplate(),t}}},views:{headerPanel:y,rowsView:b,columnHeadersView:w}}})},function(t,e,n){"use strict";var i,o=n(29),r=n(60),a=n(5),s=n(0),l=n(133),u=n(27),c=n(436),d=n(292),h=n(61),f=(i=h)&&i.__esModule?i:{default:i},p=n(7);var m=function(t,e){var n=new p.Deferred,i=(0,s.extend)({skip:0,take:1,requireTotalCount:!0},e);return t.load(i).done((function(t,e){n.resolve(e&&e.totalCount)})).fail(n.reject.bind(n)),n};e.GroupingHelper=c.GroupingHelper.inherit(function(){var t=function(t,e,n){return t.foreachGroups((function(t){if(!t.isExpanded)return e(t)}),!1,!1,n,!0)},e=function(e,n){var i=0,o=n||0;return n&&(t(e,(function(t){if(t.offset-i>=n)return!1;i+=t.count-1})),o+=i),o},n=function(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;n++)if(!(0,r.keysEqual)(null,t[n],e[n]))return!1;return!0},i=function t(e,i,o,r,a){if(i){for(var s=0;s<i.length;s++){var l=i[s];if("key"in l&&void 0!==l.items){o.push(l.key),a&&n(a.path,o)&&!l.isContinuation&&(a.offset=r);var u=e.findGroupInfo(o);u&&!l.isContinuation&&(u.offset=r),u&&!u.isExpanded?r+=u.count:r=t(e,l.items,o,r,a),o.pop()}else r++}return r}},h=function t(e,n){var i=e.count||e.items.length;if(!e.count&&n>1){i=0;for(var o=0;o<e.items.length;o++)i+=t(e.items[o],n-1)}return i};return{handleDataLoading:function(n){var i,o=n.storeLoadOptions,r=[],c=0,d=!1,h=n.loadOptions.group,f=0;if(function(t,e){if(e.group){var n=(0,u.normalizeSortingInfo)(e.group),i=(0,u.normalizeSortingInfo)(t.sort);t.sort=(0,l.arrangeSortingInfo)(n,i),delete e.group}}(o,n.loadOptions),n.group=n.group||h,!n.isCustomLoading){var p=(0,s.extend)({},o);p.skip=e(this,o.skip),p.skip&&p.take&&h&&(p.skip--,p.take++,d=!0),p.take&&h&&(i=p.take,p.take++),t(this,(function(t){if(t.offset>=p.skip+p.take+f)return!1;t.offset>=p.skip+f&&t.count&&(f+=t.count-1,r.push(t),c+=t.count)})),(0,a.each)(r,(function(){p.filter=function(t,e,n){for(var i=(0,u.normalizeSortingInfo)(n||e.group),o=[],r=0;r<t.length;r++){for(var a=[],s=0;s<=r;s++)a.push([i[s].selector,r===s?"<>":"=",t[s]]);o.push((0,u.combineFilters)(a))}return o=(0,u.combineFilters)(o,"or"),(0,u.combineFilters)([o,e.filter])}(this.path,p,h)})),n.storeLoadOptions=p,n.collapsedGroups=r,n.collapsedItemsCount=c,n.skip=p.skip||0,n.skipFirstItem=d,n.take=i}},handleDataLoaded:function(t,e){var n=t.data,i=t.collapsedGroups,r=(0,u.normalizeSortingInfo)(t.group),a=r.length;function s(t,e,n,i,r){if(t&&e.length&&n.length){var a,l,u=(0,o.toComparable)(e[0],!0);for(l=0;l<t.length&&(a=(0,o.toComparable)(t[l].key,!0),!(r>=i.offset||u===a));l++)r+=h(t[l],n.length);t.length&&u===a||t.splice(l,0,{key:e[0],items:[],count:1===e.length?i.count:void 0}),s(t[l].items,e.slice(1),n.slice(1),i,r)}}if(t.collapsedItemsCount&&t.extra&&t.extra.totalCount>=0&&(t.extra.totalCount+=t.collapsedItemsCount),e(t),a){var c=(0,f.default)(n);if((0,l.multiLevelGroup)(c,r).enumerate().done((function(t){n=t})),i)for(var d=0;d<i.length;d++)s(n,i[d].path,r,i[d],t.skip);t.isCustomLoading||function t(e,n,i,o,r,a){for(var s=0,l=!1,u=0;u<n.length;u++){var c=n[u];if(void 0!==c.items){i.push(c.key);var d=e.findGroupInfo(i);if(d&&!d.isExpanded)c.collapsedItems=c.items,c.items=null,o+=d.count,--a<0&&s++,r&&(l=!0);else if(c.items){var h=t(e,c.items,i,o,r,a);r&&(h.offset-o>1?c.isContinuation=!0:l=!0),o=h.offset,(a=h.take)<0&&(c.items.length?c.isContinuationOnNextPage=!0:s++)}i.pop()}else r&&(l=!0),o++,--a<0&&s++;r=!1}return l&&n.splice(0,1),s&&n.splice(-s,s),{offset:o,take:a}}(this,n,[],t.skip,t.skipFirstItem,t.take),t.data=n}},isGroupItemCountable:function(t){return null===t.items},updateTotalItemsCount:function(){var e=0;t(this,(function(t){t.count&&(e-=t.count-1)})),this.callBase(e)},changeRowExpand:function(t){var n,o=this,r=o._dataSource,a=r.beginPageIndex?r.beginPageIndex():r.pageIndex(),s=r.items(),l=e(o,a*r.pageSize()),u=o.findGroupInfo(t);return n=u&&!u.isExpanded?(new p.Deferred).resolve(u.count):m(r,{filter:(0,d.createGroupFilter)(t,{filter:r.filter(),group:r.group()})}),(0,p.when)(n).done((function(e){e=parseInt(e.length?e[0]:e),u?(i(o,s,[],l),u.isExpanded=!u.isExpanded,u.count=e):(i(o,s,[],l,u={offset:-1,count:e,path:t,isExpanded:!1}),u.offset>=0&&o.addGroupInfo(u)),o.updateTotalItemsCount()})).fail((function(){r._eventsStrategy.fireEvent("loadError",arguments)}))},allowCollapseAll:function(){return!1},refresh:function(e,n){var i=this,o=e.storeLoadOptions,r=i._dataSource;if(this.callBase.apply(this,arguments),n.reload)return t(i,(function(t){var e=m(r,{filter:(0,d.createGroupFilter)(t.path,o)}),n=m(r,{filter:(0,c.createOffsetFilter)(t.path,o)});return(0,p.when)(n,e).done((function(e,n){e=parseInt(e.length?e[0]:e),n=parseInt(n.length?n[0]:n),t.offset=e,t.count!==n&&(t.count=n,i.updateTotalItemsCount())}))}),!0)}}}())},function(t,e,n){"use strict";var i,o=n(0),r=n(5),a=n(27),s=n(436),l=n(292),u=n(23),c=(i=u)&&i.__esModule?i:{default:i},d=n(78),h=n(7);e.GroupingHelper=s.GroupingHelper.inherit(function(){var t=function(t,e,n){return t.foreachGroups((function(t,n){if(t.isExpanded)return e(t,n)}),!0,!1,n,n)},e=function t(e,n,i,o,r,a,s){var l;if(o.items=o.items||[],o.paths=o.paths||[],o.count=o.count||0,o.lastCount=o.lastCount||0,i)for(var u=0;u<n.length;u++){var c=n[u];if(void 0!==c.items){if(r.push(c.key),a)l=!0;else{var d=e.findGroupInfo(r);l=d&&d.isExpanded}l?c.items?t(e,c.items,i-1,o,r,a,s):1!==i||!c.count||a&&!s||(o.items.push(c),o.paths.push(r.slice(0)),o.count+=o.lastCount,o.lastCount=c.count):(c.collapsedItems=c.items,c.items=null),r.pop()}}},n=function(t,e,n,i,o){var r,a=t.findGroupInfo(i);a?(n?a.count=e.count>0?e.count:e.items&&e.items.length||0:e.count=a.count||e.count,a.offset=o):(n&&(r=e.count>0?e.count:e.items.length),t.addGroupInfo({isExpanded:t._isGroupExpanded(i.length-1),path:i.slice(0),offset:o,count:r||0}))},i=function t(e,i,o,r,a,s,l){var u,c=(i.group?i.group.length:0)===r,d=0,h=0;if(a=a||0,s=s||[],i.remoteOperations.paging&&!l&&(d=0===a?i.skip||0:i.skips[a-1]||0),a>=r)return o.length;for(var f=0;f<o.length;f++){var p=o[f];if(p){if(s.push(p.key),!p.count&&!p.items||void 0===p.items)return-1;if(n(e,p,c,s,d+f),(u=p.items?t(e,i,p.items,r,a+1,s,f):p.count||-1)<0)return-1;h+=u,s.pop()}}return h},u=function(t,e){return t&&t.length&&t[e]&&!!t[e].isExpanded},f=function(t,e,n){for(var i,o=n,r=0;r<t.length;r++)i=t[r].offset+1,r>0&&(i+=t[r-1].childrenTotalCount,e&&(i+=p(o,e,i,r-1)*r)),o+=i;return o};function p(t,e,n,i){if(i=i||0,e>1&&n>0){var o=t-Math.floor(t/e)*e||e;return(o+=n-i-2)<0&&(o+=e),Math.floor(o/(e-i-1))}return 0}function m(t,e,n,i){var o=e.items[i],r=t.skips&&t.skips[n],a=t.takes&&t.takes[n],s=i===e.items.length-1,l=0===i,u=l&&r||0,c=o.count>a+u;l&&void 0!==r&&(o.isContinuation=!0),s&&void 0!==a&&c&&(o.isContinuationOnNextPage=!0)}function g(t){return!Array.isArray(t)}function _(t){g(t.data)||(t.data=new h.Deferred)}function v(t,n,s,u,c,d){n.isCustomLoading||(e(t,d,s,u={},[]),function(t,e,n){var i=n-1,o=t.group?t.group.length:0;e.skip=t.skips&&t.skips[i],t.takes&&void 0!==t.takes[i]&&(e.take=o===n&&e.count?e.count-(e.skip||0):0,e.take+=t.takes[i])}(n,u,s));var f=n.group?n.group.length:0;u.paths.length&&f-s>0?(_(n),function(t,e,n,o,a,s){var u=e.group||[],c=u[a+1],d=[];(0,r.each)(n.paths,(function(i){var o={requireTotalCount:!1,requireGroupCount:!0,group:[c],groupSummary:e.storeLoadOptions.groupSummary,filter:(0,l.createGroupFilter)(n.paths[i],{filter:e.storeLoadOptions.filter,group:u}),select:e.storeLoadOptions.select};0===i&&(o.skip=n.skip||0),i===n.paths.length-1&&(o.take=n.take);var r=0===o.take?[]:t._dataSource.loadFromStore(o);(0,h.when)(r).done((function(t){var o=n.items[i];m(e,n,a,i),o.items=t})),d.push(r)})),h.when.apply(null,d).done((function(){i(t,e,s,o+1),v(t,e,o+1,n,a+1,s)}))}(t,n,u,s,c,d)):u.paths.length&&n.storeLoadOptions.group?(_(n),function(t,e,n,i){var s=[],u=e.group||[];(0,r.each)(n.paths,(function(t,n){s.push((0,l.createGroupFilter)(n,{group:e.isCustomLoading?e.storeLoadOptions.group:u}))}));var c=e.storeLoadOptions.filter;e.storeLoadOptions.isLoadingAll||(c=(0,a.combineFilters)([c,(0,a.combineFilters)(s,"or")]));var d=(0,o.extend)({},e.storeLoadOptions,{requireTotalCount:!1,requireGroupCount:!1,group:null,sort:u.concat((0,a.normalizeSortingInfo)(e.storeLoadOptions.sort||[])),filter:c}),f=t._dataSource.isLastLevelGroupItemsPagingLocal();f||(d.skip=n.skip,d.take=n.take);(0,h.when)(0===n.take?[]:t._dataSource.loadFromStore(d)).done((function(o,a){f&&(o=t._dataSource.sortLastLevelGroupItems(o,u,n.paths),o=n.skip?o.slice(n.skip):o,o=n.take?o.slice(0,n.take):o),(0,r.each)(n.items,(function(t,i){var r=i.count-(0===t&&n.skip||0),a=o.splice(0,r);m(e,n,u.length-1,t),i.items=a})),e.data.resolve(i)})).fail(e.data.reject)}(t,n,u,d)):g(n.data)&&n.data.resolve(d)}var y=function(t,e){var n=new h.Deferred,i=!(!e.group||!e.group.length),r=(0,o.extend)({skip:0,take:1,requireGroupCount:i,requireTotalCount:!i},e,{group:i?e.group:null});return t.load(r).done((function(t,e){var o=e&&(i?e.groupCount:e.totalCount);isFinite(o)?n.resolve(o):n.reject(d.errors.Error(i?"E4022":"E4021"))})).fail(n.reject.bind(n)),n};return{updateTotalItemsCount:function(e){var n=0,i=e.extra&&e.extra.totalCount||0,o=e.extra&&e.extra.groupCount||0,r=this._dataSource.pageSize(),a=this._isVirtualPaging();t(this,(function(t){t.childrenTotalCount=0})),t(this,(function(t,e){var i=f(e,a?0:r,n),o=t.count+t.childrenTotalCount;a||(o+=p(i,r,o,e.length-1)),e[e.length-2]?e[e.length-2].childrenTotalCount+=o:n+=o})),this.callBase(n-i+o)},_isGroupExpanded:function(t){var e=this._dataSource.group();return u(e,t)},_updatePagingOptions:function(e,n){var i=this._isVirtualPaging(),o=this._dataSource.pageSize(),r=[],a=[],s=0,l=0;e.take&&(t(this,(function(t){t.childrenTotalCount=0,t.skipChildrenTotalCount=0})),t(this,(function(t,u){var c,d=0,h=0,m=f(u,i?0:o,l),g=0,_=0,v=t.count+t.childrenTotalCount,y=v;n&&n(t,m);var b=e.skip-m;m<=e.skip+e.take&&v&&(c=e.take,i||(v+=(g=p(m,o,v,u.length-1))*u.length,y+=g,o&&b>=0&&(d=u.length,h=u.length-1,_=Math.floor(b/o))),b>=0?(m+v>e.skip&&r.unshift(b-_*d-t.skipChildrenTotalCount),m+v>=e.skip+c&&a.unshift(c-d-t.childrenTotalCount+t.skipChildrenTotalCount)):m+v>=e.skip+c&&a.unshift(c+b-t.childrenTotalCount)),m<=e.skip&&(u[u.length-2]?u[u.length-2].skipChildrenTotalCount+=Math.min(y,b+1-_*h):s+=Math.min(y,b+1)),m<=e.skip+c&&(v=Math.min(y,b+c-(_+1)*h),u[u.length-2]?u[u.length-2].childrenTotalCount+=v:l+=v)})),e.skip-=s,e.take-=l-s),e.skips=r,e.takes=a},changeRowExpand:function(t){var e=this.findGroupInfo(t),n=this._dataSource,i=n.remoteOperations().groupPaging,o=(0,a.normalizeSortingInfo)(n.group());return e?(e.isExpanded=!e.isExpanded,i&&e.isExpanded&&t.length<o.length?y(n,{filter:(0,l.createGroupFilter)(t,{filter:n.lastLoadOptions().filter,group:n.group()}),group:[o[t.length]],select:n.select()}).done((function(t){e.count=t})):(new h.Deferred).resolve()):(new h.Deferred).reject()},handleDataLoading:function(t){var e=t.storeLoadOptions,n=(0,a.normalizeSortingInfo)(e.group||t.loadOptions.group);if(!t.isCustomLoading&&n.length){if(t.remoteOperations.grouping){var i=this._dataSource.remoteOperations().paging;e.group=(0,a.normalizeSortingInfo)(e.group),e.group.forEach((function(t,n){var o=n===e.group.length-1;t.isExpanded=!i||!o}))}t.group=t.group||n,t.remoteOperations.paging?(t.skip=e.skip,t.take=e.take,e.requireGroupCount=!0,e.group=n.slice(0,1),this._updatePagingOptions(t),e.skip=t.skip,e.take=t.take):this.foreachGroups((function(t){t.count=0}))}},handleDataLoadedCore:function(t,n){var o,r=(0,a.normalizeSortingInfo)(t.storeLoadOptions.group||t.loadOptions.group).length,s=t.group?t.group.length:0,l={};if(t.isCustomLoading)n(t),e(this,t.data,r,l,[],t.isCustomLoading,t.storeLoadOptions.isLoadingAll);else{if((o=i(this,t,t.data,r))<0)return void(t.data=(new h.Deferred).reject(c.default.Error("E1037")));if(t.remoteOperations.paging||r&&t.extra&&t.loadOptions.requireTotalCount&&(t.extra.totalCount=o,t.extra.groupCount=t.data.length),s&&t.storeLoadOptions.requireGroupCount&&!isFinite(t.extra.groupCount))return void(t.data=(new h.Deferred).reject(d.errors.Error("E4022")));this.updateTotalItemsCount(t),t.remoteOperations.paging||this._updatePagingOptions(t),n(t),t.remoteOperations.paging||this._processPaging(t,r)}v(this,t,r,l,0,t.data)},_processSkips:function(t,e,n){if(n){var i=t[0],o=e[0],r=i&&i.items;void 0!==o&&(i.isContinuation=!0,r&&(i.items=r.slice(o),this._processSkips(i.items,e.slice(1),n-1)))}},_processTakes:function(t,e,n,i,o){if(i&&t){o=o||[];var r=t[t.length-1],a=r&&r.items,s=n[0],l=e[0];if(r){var u=r.count-(r.isContinuation&&l||0)||a.length;void 0!==s&&u>s&&(r.isContinuationOnNextPage=!0,o.forEach((function(t){t.isContinuationOnNextPage=!0})),a&&(a=a.slice(0,s),r.items=a)),o.push(r),this._processTakes(a,e.slice(1),n.slice(1),i-1,o)}}},_processPaging:function(t,e){this._processSkips(t.data,t.skips,e),this._processTakes(t.data,t.skips,t.takes,e)},isLastLevelGroupItemsPagingLocal:function(){return!1},sortLastLevelGroupItems:function(t){return t},refresh:function(e,n){var i,o,r=this,c=r._dataSource,d=e.storeLoadOptions,f=e.group||e.storeLoadOptions.group,p=(0,a.normalizeSortingInfo)(r._group);function m(t,e){e.length===o+1&&(t.isExpanded=i)}for(o=0;o<p.length;o++)i=u(f,o),u(r._group,o)!==i&&r.foreachGroups(m);if(r.callBase.apply(this,arguments),f&&e.remoteOperations.paging&&n.reload)return t(r,(function(t){var n=y(c,{filter:(0,l.createGroupFilter)(t.path,{filter:d.filter,group:f}),group:f.slice(t.path.length),select:d.select}),i=y(c,{filter:(0,s.createOffsetFilter)(t.path,{filter:d.filter,group:f}),group:f.slice(t.path.length-1,t.path.length),select:d.select});return(0,h.when)(i,n).done((function(n,i){n=parseInt(n.length?n[0]:n),i=parseInt(i.length?i[0]:i),t.offset=n,t.count!==i&&(t.count=i,r.updateTotalItemsCount(e))}))}),!0)}}}())},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(437));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("masterDetail",o.default)},function(t,e,n){"use strict";n(800);var i=a(n(27)),o=a(n(441)),r=n(0);function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("editing",(0,r.extend)(!0,{},o.default,{extenders:{controllers:{data:{_changeRowExpandCore:function(t){var e=this._editingController;return Array.isArray(t)&&e&&e.refresh(),this.callBase.apply(this,arguments)}}}}}))},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(438));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("editorFactory",o.default)},function(t,e,n){"use strict";var i=n(8),o=n(802);i("dxDateBox",o),t.exports=o},function(t,e,n){"use strict";var i=n(11),o=n(2),r=n(17),a=n(0),s=n(37),l=g(n(6)),u=n(803),c=g(n(43)),d=n(277),h=n(276),f=g(n(804)),p=g(n(74)),m=g(n(18));function g(t){return t&&t.__esModule?t:{default:t}}var _=f.default.inherit({_supportedKeys:function(t){var e=this,n=this.callBase(t),o=function(t){var o=n[(0,i.normalizeKeyName)(t)];return o&&o.apply(e,[t])},r=function(t,n){return e._shouldUseOriginalHandler(t)?o.apply(e,[t]):n.apply(e,[t])};return(0,a.extend)({},n,{del:function(t){return r(t,(function(t){e._revertPart(1),e._isAllSelected()||t.preventDefault()}))},backspace:function(t){return r(t,(function(t){e._revertPart(-1),e._isAllSelected()||t.preventDefault()}))},home:function(t){return r(t,(function(t){e._selectFirstPart(),t.preventDefault()}))},end:function(t){return r(t,(function(t){e._selectLastPart(),t.preventDefault()}))},escape:function(t){return r(t,(function(t){e._revertChanges(t)}))},enter:function(t){return r(t,(function(t){e._enterHandler(t)}))},leftArrow:function(t){return r(t,(function(t){e._selectNextPart(-1),t.preventDefault()}))},rightArrow:function(t){return r(t,(function(t){e._selectNextPart(1),t.preventDefault()}))},upArrow:function(t){return r(t,(function(t){e._upDownArrowHandler(1),t.preventDefault()}))},downArrow:function(t){return r(t,(function(t){e._upDownArrowHandler(-1),t.preventDefault()}))}})},_shouldUseOriginalHandler:function(t){var e=this.option("opened")&&t&&-1===["backspace","del"].indexOf((0,i.normalizeKeyName)(t));return!this._useMaskBehavior()||e||t&&t.altKey},_upDownArrowHandler:function(t){this._setNewDateIfEmpty();var e=this._getActivePartValue(this._initialMaskValue),n=this._getActivePartValue()-e;this._loadMaskValue(this._initialMaskValue),this._partIncrease(n+t,!0)},_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{useMaskBehavior:!1,emptyDateValue:new Date(2e3,0,1,0,0,0)})},_isSingleCharKey:function(t){var e=t.originalEvent.data||t.originalEvent.key;return"string"===typeof e&&1===e.length&&!t.ctrl&&!t.alt},_useBeforeInputEvent:function(){var t=m.default.real();return t.android&&t.version[0]>4},_keyboardHandler:function(t){var e=t.originalEvent.key,n=this.callBase(t);return this._useMaskBehavior()&&!this._useBeforeInputEvent()&&this._isSingleCharKey(t)?(this._processInputKey(e),t.originalEvent.preventDefault(),n):n},_maskBeforeInputHandler:function(t){var e=this;this._maskInputHandler=null;var n=t.originalEvent.inputType;"insertCompositionText"===n&&(this._maskInputHandler=function(){e._renderDisplayText(e._getDisplayedText(e._maskValue)),e._selectNextPart()});var i="deleteContentBackward"===n;if(i||"deleteContentForward"===n){var o=i?-1:1;this._maskInputHandler=function(){e._revertPart(),e._selectNextPart(o)}}if(this._useMaskBehavior()&&this._isSingleCharKey(t)){var r=t.originalEvent.data;return this._processInputKey(r),t.preventDefault(),!0}},_keyPressHandler:function(t){this.callBase(t),this._maskInputHandler&&(this._maskInputHandler(),this._maskInputHandler=null)},_processInputKey:function(t){this._isAllSelected()&&(this._activePartIndex=0),this._setNewDateIfEmpty(),isNaN(parseInt(t))?this._searchString(t):this._searchNumber(t)},_isAllSelected:function(){var t=this._caret();return t.end-t.start===this.option("text").length},_getFormatPattern:function(){if(this._formatPattern)return this._formatPattern;var t=this._strategy.getDisplayFormat(this.option("displayFormat")),e=(0,o.isString)(t)&&!c.default._getPatternByFormat(t);return this._formatPattern=e?t:(0,h.getFormat)((function(e){return c.default.format(e,t)})),this._formatPattern},_setNewDateIfEmpty:function(){if(!this._maskValue){var t="time"===this.option("type")?new Date(null):new Date;this._maskValue=t,this._initialMaskValue=t,this._renderDateParts()}},_partLimitsReached:function(t){var e=String(t).length,n=this._getActivePartProp("pattern").length,i=1===n?e:Math.min(n,e),o=this._searchValue.length===i,r=parseInt(this._searchValue+"0")>t;return o||r},_searchNumber:function(t){var e=this._getActivePartLimits().max,n=String(e).length;this._searchValue=(this._searchValue+t).substr(-n),isNaN(this._searchValue)&&(this._searchValue=t),this._setActivePartValue(this._searchValue),this._partLimitsReached(e)&&this._selectNextPart(1)},_searchString:function(t){if(isNaN(parseInt(this._getActivePartProp("text")))){for(var e=this._getActivePartProp("limits")(this._maskValue),n=this._searchValue+t.toLowerCase(),i=e.max-e.min,o=0;o<=i;o++)if(this._loadMaskValue(this._initialMaskValue),this._partIncrease(o+1),0===this._getActivePartProp("text").toLowerCase().indexOf(n))return void(this._searchValue=n);this._setNewDateIfEmpty(),this._searchValue&&(this._clearSearchValue(),this._searchString(t))}},_clearSearchValue:function(){this._searchValue=""},_revertPart:function(t){if(!this._isAllSelected()){var e=this._getActivePartValue(this.option("emptyDateValue"));this._setActivePartValue(e),this._selectNextPart(t)}this._clearSearchValue()},_useMaskBehavior:function(){return this.option("useMaskBehavior")&&"text"===this.option("mode")},_prepareRegExpInfo:function(){this._regExpInfo=(0,d.getRegExpInfo)(this._getFormatPattern(),c.default);var t=this._regExpInfo.regexp.flags,e=p.default.convertDigits(this._regExpInfo.regexp.source,!1);this._regExpInfo.regexp=RegExp(e,t)},_initMaskState:function(){this._activePartIndex=0,this._formatPattern=null,this._prepareRegExpInfo(),this._loadMaskValue()},_renderMask:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState(),this._useMaskBehavior()&&(this._attachMaskEvents(),this._initMaskState(),this._renderDateParts())},_renderDateParts:function(){if(this._useMaskBehavior()){var t=this.option("text")||this._getDisplayedText(this._maskValue);t&&(this._dateParts=(0,u.renderDateParts)(t,this._regExpInfo),this._isFocused()&&this._selectNextPart())}},_detachMaskEvents:function(){l.default.off(this._input(),".dateBoxMask")},_attachMaskEvents:function(){var t=this;l.default.on(this._input(),(0,i.addNamespace)("dxclick","dateBoxMask"),this._maskClickHandler.bind(this)),l.default.on(this._input(),(0,i.addNamespace)("paste","dateBoxMask"),this._maskPasteHandler.bind(this)),l.default.on(this._input(),(0,i.addNamespace)("drop","dateBoxMask"),(function(){t._renderDisplayText(t._getDisplayedText(t._maskValue)),t._selectNextPart()})),this._useBeforeInputEvent()&&l.default.on(this._input(),(0,i.addNamespace)("beforeinput","dateBoxMask"),this._maskBeforeInputHandler.bind(this))},_selectLastPart:function(){this.option("text")&&(this._activePartIndex=this._dateParts.length,this._selectNextPart(-1))},_selectFirstPart:function(){this.option("text")&&(this._activePartIndex=-1,this._selectNextPart(1))},_onMouseWheel:function(t){this._useMaskBehavior()&&this._partIncrease(t.delta>0?1:-1,t)},_selectNextPart:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.option("text")&&!this._disposed){t&&(this._initialMaskValue=new Date(this._maskValue));var e=(0,s.fitIntoRange)(this._activePartIndex+t,0,this._dateParts.length-1);if(this._dateParts[e].isStub){var n=0===e&&t<0||e===this._dateParts.length-1&&t>0;if(!n)return void this._selectNextPart(t>=0?t+1:t-1);e=this._activePartIndex}this._activePartIndex!==e&&this._clearSearchValue(),this._activePartIndex=e,this._caret(this._getActivePartProp("caret"))}},_getRealLimitsPattern:function(){if("d"===this._getActivePartProp("pattern")[0])return"dM"},_getActivePartLimits:function(t){return this._getActivePartProp("limits")(this._maskValue,t&&this._getRealLimitsPattern())},_getActivePartValue:function(t){t=t||this._maskValue;var e=this._getActivePartProp("getter");return(0,o.isFunction)(e)?e(t):t[e]()},_addLeadingZeroes:function(t){var e=this._searchValue.match(/^0+/),n=this._getActivePartLimits(),i=String(n.max).length;return((e&&e[0]||"")+String(t)).substr(-i)},_setActivePartValue:function(t,e){e=e||this._maskValue;var n=this._getActivePartProp("setter"),i=this._getActivePartLimits();t=(0,s.inRange)(t,i.min,i.max)?t:t%10,t=this._addLeadingZeroes((0,s.fitIntoRange)(t,i.min,i.max)),(0,o.isFunction)(n)?n(e,t):e[n](t),this._renderDisplayText(this._getDisplayedText(e)),this._renderDateParts()},_getActivePartProp:function(t){if(this._dateParts&&this._dateParts[this._activePartIndex])return this._dateParts[this._activePartIndex][t]},_loadMaskValue:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.dateOption("value");this._maskValue=t&&new Date(t),this._initialMaskValue=t&&new Date(t)},_saveMaskValue:function(){var t=this._maskValue&&new Date(this._maskValue);t&&"date"===this.option("type")&&t.setHours(0,0,0,0),this._initialMaskValue=new Date(t),this.dateOption("value",t)},_revertChanges:function(){this._loadMaskValue(),this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts()},_renderDisplayText:function(t){this.callBase(t),this._useMaskBehavior()&&this.option("text",t)},_partIncrease:function(t,e){this._setNewDateIfEmpty();var n=this._getActivePartLimits(e),i=n.max,o=n.min,r=i-o;1===r&&r++;var a=t+this._getActivePartValue();a>i?a=this._applyLimits(a,{limitBase:o,limitClosest:i,limitDelta:r}):a<o&&(a=this._applyLimits(a,{limitBase:i,limitClosest:o,limitDelta:r})),this._setActivePartValue(a)},_applyLimits:function(t,e){var n=e.limitBase,i=e.limitClosest,o=(t-i)%e.limitDelta;return o?n+o-1*(0,s.sign)(o):i},_maskClickHandler:function(){this.option("text")&&(this._activePartIndex=(0,u.getDatePartIndexByPosition)(this._dateParts,this._caret().start),this._caret(this._getActivePartProp("caret")))},_maskPasteHandler:function(t){var e=this._replaceSelectedText(this.option("text"),this._caret(),(0,r.clipboardText)(t)),n=c.default.parse(e,this._getFormatPattern());n&&(this._maskValue=n,this._renderDisplayText(this._getDisplayedText(this._maskValue)),this._renderDateParts(),this._selectNextPart()),t.preventDefault()},_isValueDirty:function(){var t=this.dateOption("value");return(this._maskValue&&this._maskValue.getTime())!==(t&&t.getTime())},_fireChangeEvent:function(){this._clearSearchValue(),this._isValueDirty()&&l.default.trigger(this._input(),"change")},_enterHandler:function(t){this._fireChangeEvent(),this._selectNextPart(1),t.preventDefault()},_focusOutHandler:function(t){this.callBase(t),this._useMaskBehavior()&&!t.isDefaultPrevented()&&(this._fireChangeEvent(),this._selectFirstPart(t))},_valueChangeEventHandler:function(t){var e=this.option("text");this._useMaskBehavior()?(this._saveValueChangeEvent(t),e?null===this._maskValue&&this._loadMaskValue(e):this._maskValue=null,this._saveMaskValue()):this.callBase(t)},_optionChanged:function(t){switch(t.name){case"useMaskBehavior":this._renderMask();break;case"displayFormat":case"mode":this.callBase(t),this._renderMask();break;case"value":this._loadMaskValue(),this.callBase(t),this._renderDateParts();break;case"emptyDateValue":break;default:this.callBase(t)}},_clearMaskState:function(){this._clearSearchValue(),delete this._dateParts,delete this._activePartIndex,delete this._maskValue},reset:function(){this.callBase(),this._clearMaskState(),this._activePartIndex=0},_clean:function(){this.callBase(),this._detachMaskEvents(),this._clearMaskState()}});t.exports=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.renderDateParts=e.getDatePartIndexByPosition=void 0;var i=n(277),o=n(0),r=n(37),a=n(4),s=function(t){return t.getMonth()+1},l=function(t,e){var n=t.getDate(),i=h("M",t),o=(0,r.fitIntoRange)(parseInt(e),i.min,i.max);t.setMonth(o-1,1);var a=h("dM",t),s=a.min,l=a.max,u=(0,r.fitIntoRange)(n,s,l);t.setDate(u)},u={a:function(t){return t.getHours()<12?0:1},E:"getDay",y:"getFullYear",M:s,L:s,d:"getDate",H:"getHours",h:"getHours",m:"getMinutes",s:"getSeconds",S:"getMilliseconds"},c=(0,o.extend)({},(0,i.getPatternSetters)(),{a:function(t,e){var n=t.getHours();n>=12!==!!parseInt(e)&&t.setHours((n+12)%24)},d:function(t,e){e>h("dM",t).max&&t.setMonth(t.getMonth()+1),t.setDate(e)},h:function(t,e){var n=t.getHours()>=12;t.setHours(+e%12+(n?12:0))},M:l,L:l,E:function(t,e){e<0||t.setDate(t.getDate()-t.getDay()+parseInt(e))},y:function(t,e){var n=t.getFullYear(),i=String(e).length,o=String(h("y",t).max).length,r=parseInt(String(n).substr(0,o-i)+e);t.setFullYear(r)}}),d=function(t){return u[t]||function(){return t}},h=function(t,e,n){var i={y:{min:0,max:9999},M:{min:1,max:12},L:{min:1,max:12},d:{min:1,max:31},dM:{min:1,max:new Date(e.getFullYear(),e.getMonth()+1,0).getDate()},E:{min:0,max:6},H:{min:0,max:23},h:{min:0,max:23},m:{min:0,max:59},s:{min:0,max:59},S:{min:0,max:999},a:{min:0,max:1}};return i[n||t]||i.getAmPm};e.getDatePartIndexByPosition=function(t,e){for(var n=0;n<t.length;n++){var i=t[n].caret.end>=e;if(!t[n].isStub&&i)return n}return null},e.renderDateParts=function(t,e){for(var n=e.regexp.exec(t),i=0,o=0,r=[],s=1;s<n.length;s++){o=(i=o)+n[s].length;var l=e.patterns[s-1].replace(/^'|'$/g,""),u=d(l[0]);r.push({index:s-1,isStub:l===n[s],caret:{start:i,end:o},pattern:l,text:n[s],limits:h.bind(void 0,l[0]),setter:c[l[0]]||a.noop,getter:u})}return r}},function(t,e,n){"use strict";var i=n(10),o=i.getWindow(),r=n(8),a=n(2),s=n(17),l=n(5).each,u=n(187).compare,c=n(0).extend,d=n(58),h=n(18),f=n(51),p=n(26),m=n(143),g=n(67),_=n(221),v=n(43),y=n(12),b={calendar:"calendar",rollers:"rollers",list:"list",native:"native"},w={date:"date",datetime:"datetime",time:"time"},x="Calendar",C="DateView",S="Native",k="CalendarWithTime",I="List",T={Calendar:n(440),DateView:n(805),Native:n(808),CalendarWithTime:n(809),List:n(811)},E=_.inherit({_supportedKeys:function(){return c(this.callBase(),this._strategy.supportedKeys())},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{maxZoomLevel:{since:"18.1",alias:"calendarOptions.maxZoomLevel"},minZoomLevel:{since:"18.1",alias:"calendarOptions.minZoomLevel"}})},_renderButtonContainers:function(){this.callBase.apply(this,arguments),this._strategy.customizeButtons()},_getDefaultOptions:function(){return c(this.callBase(),{type:"date",showAnalogClock:!0,value:null,dateSerializationFormat:void 0,min:void 0,max:void 0,displayFormat:null,interval:30,disabledDates:null,maxZoomLevel:"month",minZoomLevel:"century",pickerType:b.calendar,invalidDateMessage:y.format("dxDateBox-validation-datetime"),dateOutOfRangeMessage:y.format("validation-range"),applyButtonText:y.format("OK"),adaptivityEnabled:!1,calendarOptions:{},useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"ios"},options:{"dropDownOptions.showTitle":!0}},{device:{platform:"android"},options:{buttonsLocation:"bottom after"}},{device:function(){var t=h.real().platform;return"ios"===t||"android"===t},options:{pickerType:b.native}},{device:function(t){var e=h.real(),n=e.platform,i=e.version;return"generic"===n&&"desktop"!==t.deviceType||"android"===n&&u(i,[4,4])<0},options:{pickerType:b.rollers}},{device:{platform:"generic",deviceType:"desktop"},options:{buttonsLocation:"bottom after"}}])},_initOptions:function(t){this._userOptions=c({},t),this.callBase(t),this._updatePickerOptions()},_updatePickerOptions:function(){var t=this.option("pickerType"),e=this.option("type");t!==b.list||e!==w.datetime&&e!==w.date||(t=b.calendar),e===w.time&&t===b.calendar&&(t=b.list),this.option("showDropDownButton","generic"!==h.real().platform||t!==b.native),this._pickerType=t},_init:function(){this._initStrategy(),this.option(c({},this._strategy.getDefaultOptions(),this._userOptions)),delete this._userOptions,this.callBase()},_toLowerCaseFirstLetter:function(t){return t.charAt(0).toLowerCase()+t.substr(1)},_initStrategy:function(){var t=this._getStrategyName(this._getFormatType()),e=T[t];this._strategy&&this._strategy.NAME===t||(this._strategy=new e(this))},_getFormatType:function(){var t=this.option("type"),e=/h|m|s/g.test(t),n="";return/d|M|Y/g.test(t)&&(n+=w.date),e&&(n+=w.time),n},_getStrategyName:function(t){var e=this._pickerType;return e===b.rollers?C:e===b.native?S:t===w.date?x:t===w.datetime?k:I},_initMarkup:function(){this.$element().addClass("dx-datebox"),this.callBase(),this._refreshFormatClass(),this._refreshPickerTypeClass(),this._strategy.renderInputMinMax(this._input())},_render:function(){this.callBase(),this._formatValidationIcon()},_renderDimensions:function(){var t;this.callBase(),this.$element().toggleClass("dx-auto-width",!this.option("width")),null===(t=this._strategy)||void 0===t||t._dimensionChanged()},_refreshFormatClass:function(){var t=this.$element();l(w,(function(e,n){t.removeClass("dx-datebox-"+n)})),t.addClass("dx-datebox-"+this.option("type"))},_refreshPickerTypeClass:function(){var t=this.$element();l(b,(function(e,n){t.removeClass("dx-datebox-"+n)})),t.addClass("dx-datebox-"+this._pickerType)},_formatValidationIcon:function(){if(i.hasWindow()){var t=this._input().get(0),e=this.option("rtlEnabled"),n=this._getClearButtonWidth(),r=this._getLongestElementDimensions(),a=parseFloat(o.getComputedStyle(t).width)-n,s=r.width>a,l=t.style;this.$element().toggleClass("dx-show-invalid-badge",!s),s?(void 0===this._storedPadding&&(this._storedPadding=e?r.leftPadding:r.rightPadding),e?l.paddingLeft=0:l.paddingRight=0):e?l.paddingLeft=this._storedPadding+"px":l.paddingRight=this._storedPadding+"px"}},_getClearButtonWidth:function(){var t=0;if(this._isClearButtonVisible()&&""===this._input().val()){var e=this.$element().find(".dx-clear-button-area").get(0);t=parseFloat(o.getComputedStyle(e).width)}return t},_getLongestElementDimensions:function(){var t=this._strategy.getDisplayFormat(this.option("displayFormat")),e=v.format(m.getLongestDate(t,v.getMonthNames(),v.getDayNames()),t),n=this._input(),i=n.get(0),r=s.createTextElementHiddenCopy(n,e),a=void 0!==this._storedPadding?this._storedPadding:0;r.appendTo(this.$element());var l=parseFloat(o.getComputedStyle(r.get(0)).width),u=parseFloat(o.getComputedStyle(i).paddingRight),c=parseFloat(o.getComputedStyle(i).paddingLeft),d=l+c+u+a;return r.remove(),{width:d,leftPadding:c,rightPadding:u}},_getKeyboardListeners:function(){return this.callBase().concat([this._strategy&&this._strategy.getKeyboardListener()])},_renderPopup:function(){this.callBase(),this._popup._wrapper().addClass("dx-datebox-wrapper"),this._renderPopupWrapper()},_popupConfig:function(){var t=this.callBase();return c(this._strategy.popupConfig(t),{title:this._getPopupTitle(),dragEnabled:!1})},_renderPopupWrapper:function(){if(this._popup){var t=this.$element(),e=c({},w,b);l(e,function(e,n){t.removeClass("dx-datebox-wrapper-"+n)}.bind(this)),this._popup._wrapper().addClass("dx-datebox-wrapper-"+this.option("type")).addClass("dx-datebox-wrapper-"+this._pickerType)}},_renderPopupContent:function(){this.callBase(),this._strategy.renderPopupContent()},_getFirstPopupElement:function(){return this._strategy.getFirstPopupElement()||this.callBase()},_getLastPopupElement:function(){return this._strategy.getLastPopupElement()||this.callBase()},_popupShowingHandler:function(){this.callBase(),this._strategy.popupShowingHandler()},_popupHiddenHandler:function(){this.callBase(),this._strategy.popupHiddenHandler()},_visibilityChanged:function(t){t&&this._formatValidationIcon()},_clearValueHandler:function(t){this.option("text",""),this.callBase(t)},_readOnlyPropValue:function(){if(this._pickerType===b.rollers)return!0;var t=h.real().platform;return this._isNativeType()&&("ios"===t||"android"===t)?this.option("readOnly"):this.callBase()},_isClearButtonVisible:function(){return this.callBase()&&!this._isNativeType()},_renderValue:function(){var t=this.dateOption("value");return this.option("text",this._getDisplayedText(t)),this._strategy.renderValue(),this.callBase()},_setSubmitValue:function(){var t=this.dateOption("value"),e=this.option("dateSerializationFormat"),n=m.SUBMIT_FORMATS_MAP[this.option("type")],i=e?g.serializeDate(t,e):m.toStandardDateFormat(t,n);this._getSubmitElement().val(i)},_getDisplayedText:function(t){var e,n=this.option("mode");if("text"===n){var i=this._strategy.getDisplayFormat(this.option("displayFormat"));e=v.format(t,i)}else{var o=this._getFormatByMode(n);e=o?v.format(t,o):m.toStandardDateFormat(t,n)}return e},_getFormatByMode:function(t){return d.inputType(t)?null:m.FORMATS_MAP[t]},_valueChangeEventHandler:function(t){var e=this.option("text"),n=this.dateOption("value");if(e!==this._getDisplayedText(n)){var i=this._getParsedDate(e),o=n||this._getDateByDefault(),r=this.option("type"),a=m.mergeDates(o,i,r),s=i&&"time"===r?a:i;if(this._applyInternalValidation(s)){var l=this._getDisplayedText(a);o&&a&&o.getTime()===a.getTime()&&l!==e?this._renderValue():this.dateValue(a,t)}}else this._applyInternalValidation(n)},_getDateByDefault:function(){return this._strategy.useCurrentDateByDefault()&&this._strategy.getDefaultDate()},_getParsedDate:function(t){var e=this._strategy.getDisplayFormat(this.option("displayFormat")),n=this._strategy.getParsedText(t,e);return a.isDefined(n)?n:void 0},_applyInternalValidation:function(t){var e=!!this.option("text")&&null!==t,n=!!t&&a.isDate(t)&&!isNaN(t.getTime()),i=n&&p.dateInRange(t,this.dateOption("min"),this.dateOption("max"),this.option("type")),o=!e&&!t||i,r="";return n?i||(r=this.option("dateOutOfRangeMessage")):r=this.option("invalidDateMessage"),this.option({isValid:o,validationError:o?null:{editorSpecific:!0,message:r}}),o},_applyCustomValidation:function(t){this.validationRequest.fire({editor:this,value:this._serializeDate(t)})},_isValueChanged:function(t){var e=this.dateOption("value");return(e&&e.getTime())!==(t&&t.getTime())},_isTextChanged:function(t){return this.option("text")!==(t&&this._getDisplayedText(t)||"")},_renderProps:function(){this.callBase(),this._input().attr("autocomplete","off")},_renderOpenedState:function(){this._isNativeType()||this.callBase(),this._strategy.isAdaptivityChanged()&&this._refreshStrategy(),this._strategy.renderOpenedState()},_getPopupTitle:function(){var t=this.option("placeholder");if(t)return t;var e=this.option("type");return e===w.time?y.format("dxDateBox-simulatedDataPickerTitleTime"):e===w.date||e===w.datetime?y.format("dxDateBox-simulatedDataPickerTitleDate"):""},_renderPlaceholder:function(){this._popup&&this._popup.option("title",this._getPopupTitle()),this.callBase()},_refreshStrategy:function(){this._strategy.dispose(),this._initStrategy(),this.option(this._strategy.getDefaultOptions()),this._refresh()},_applyButtonHandler:function(t){var e=this._strategy.getValue();this._applyInternalValidation(e)&&this.dateValue(e,t.event),this.callBase()},_dispose:function(){this._strategy&&this._strategy.dispose(),this.callBase()},_isNativeType:function(){return this._pickerType===b.native},_optionChanged:function(t){switch(t.name){case"showClearButton":case"buttons":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"pickerType":this._updatePickerOptions({pickerType:t.value}),this._refreshStrategy(),this._refreshPickerTypeClass(),this._invalidate();break;case"type":this._updatePickerOptions({format:t.value}),this._refreshStrategy(),this._refreshFormatClass(),this._renderPopupWrapper(),this._formatValidationIcon(),this._updateValue();break;case"placeholder":this._renderPlaceholder();break;case"min":case"max":var e=this.option("isValid");this._applyInternalValidation(this.dateOption("value")),e||this._applyCustomValidation(this.dateOption("value")),this._invalidate();break;case"dateSerializationFormat":case"interval":case"disabledDates":case"calendarOptions":case"minZoomLevel":case"maxZoomLevel":this._invalidate();break;case"displayFormat":this.option("text",this._getDisplayedText(this.dateOption("value"))),this._renderInputValue();break;case"text":this._strategy.textChangedHandler(t.value),this.callBase.apply(this,arguments);break;case"isValid":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"showDropDownButton":this._formatValidationIcon(),this.callBase.apply(this,arguments);break;case"readOnly":this.callBase.apply(this,arguments),this._formatValidationIcon();break;case"invalidDateMessage":case"dateOutOfRangeMessage":case"adaptivityEnabled":case"showAnalogClock":break;default:this.callBase.apply(this,arguments)}},_getSerializationFormat:function(){var t=this.option("value");return this.option("dateSerializationFormat")&&f().forceIsoDateParsing?this.option("dateSerializationFormat"):a.isNumeric(t)?"number":a.isString(t)?g.getDateSerializationFormat(t):void 0},_updateValue:function(t){this.callBase(),this._applyInternalValidation(t||this.dateOption("value"))},dateValue:function(t,e){var n=this._isValueChanged(t);return n&&e&&this._saveValueChangeEvent(e),n||(this._isTextChanged(t)?this._updateValue(t):""===this.option("text")&&this._applyCustomValidation(t)),this.dateOption("value",t)},dateOption:function(t,e){if(1===arguments.length)return g.deserializeDate(this.option(t));this.option(t,this._serializeDate(e))},_serializeDate:function(t){var e=this._getSerializationFormat();return g.serializeDate(t,e)},reset:function(){this.callBase(),this._updateValue(this.dateOption("value"))}});r("dxDateBox",E),t.exports=E},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(806),a=n(235),s=n(58),l=n(0).extend,u=n(143),c=n(12),d=a.inherit({NAME:"DateView",getDefaultOptions:function(){return l(this.callBase(),{openOnFieldClick:!0,applyButtonText:c.format("OK"),"dropDownOptions.showTitle":!0})},getDisplayFormat:function(t){return t||u.FORMATS_MAP[this.dateBox.option("type")]},popupConfig:function(t){return{toolbarItems:this.dateBox._popupToolbarItemsConfig(),onInitialized:t.onInitialized,defaultOptionsRules:[{device:{platform:"android"},options:{width:333,height:331}},{device:function(t){var e=t.platform;return"generic"===e||"ios"===e},options:{width:"auto",height:"auto"}},{device:function(t){var e=t.platform,n=t.phone;return"generic"===e&&n},options:{width:333,maxWidth:"100%",maxHeight:"100%",height:"auto",position:{collision:"flipfit flip"}}},{device:{platform:"ios",phone:!0},options:{width:"100%",position:{my:"bottom",at:"bottom",of:o}}}]}},_renderWidget:function(){if(s.inputType(this.dateBox.option("mode"))&&this.dateBox._isNativeType()||this.dateBox.option("readOnly"))this._widget&&(this._widget.$element().remove(),this._widget=null);else{var t=this._getPopup();if(this._widget)this._widget.option(this._getWidgetOptions());else{var e=i("<div>").appendTo(t.$content());this._widget=this._createWidget(e)}this._widget.$element().appendTo(this._getWidgetContainer())}},_getWidgetName:function(){return r},renderOpenedState:function(){this.callBase(),this._widget&&this._widget.option("value",this._widget._getCurrentDate())},_getWidgetOptions:function(){return{value:this.dateBoxValue()||new Date,type:this.dateBox.option("type"),minDate:this.dateBox.dateOption("min")||new Date(1900,0,1),maxDate:this.dateBox.dateOption("max")||new Date(Date.now()+50*u.ONE_YEAR),onDisposing:function(){this._widget=null}.bind(this)}}});t.exports=d},function(t,e,n){"use strict";var i=n(3),o=n(62),r=n(807),a=n(26),s=n(5).each,l=n(0).extend,u=n(143),c=n(8),d=n(43),h="date",f="year",p="month",m="day",g="hours",_=o.inherit({_valueOption:function(){var t=this.option("value"),e=new Date(t);return!t||isNaN(e)?this._getDefaultDate():e},_getDefaultDate:function(){var t=new Date;return this.option("type")===h?new Date(t.getFullYear(),t.getMonth(),t.getDate()):t},_getDefaultOptions:function(){return l(this.callBase(),{minDate:u.MIN_DATEVIEW_DEFAULT_DATE,maxDate:u.MAX_DATEVIEW_DEFAULT_DATE,type:h,value:new Date,applyCompactClass:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return"desktop"!==t.deviceType},options:{applyCompactClass:!0}}])},_render:function(){this.callBase(),this.$element().addClass("dx-dateview"),this._toggleFormatClasses(this.option("type")),this._toggleCompactClass()},_toggleFormatClasses:function(t,e){this.$element().addClass("dx-dateview-"+t),e&&this.$element().removeClass("dx-dateview-"+e)},_toggleCompactClass:function(){this.$element().toggleClass("dx-dateview-compact",this.option("applyCompactClass"))},_wrapper:function(){return this._$wrapper},_renderContentImpl:function(){this._$wrapper=i("<div>").addClass("dx-dateview-wrapper"),this._renderRollers(),this._$wrapper.appendTo(this.$element())},_renderRollers:function(){this._$rollersContainer||(this._$rollersContainer=i("<div>").addClass("dx-dateview-rollers")),this._$rollersContainer.empty(),this._createRollerConfigs(),this._rollers={};var t=this;s(t._rollerConfigs,(function(e){var n=i("<div>").appendTo(t._$rollersContainer).addClass("dx-dateviewroller-"+t._rollerConfigs[e].type);t._rollers[t._rollerConfigs[e].type]=t._createComponent(n,r,{items:t._rollerConfigs[e].displayItems,selectedIndex:t._rollerConfigs[e].selectedIndex,showScrollbar:!1,onStart:function(n){var i=n.component;i._toggleActive(!0),t._setActiveRoller(t._rollerConfigs[e],i.option("selectedIndex"))},onEnd:function(t){t.component._toggleActive(!1)},onClick:function(n){var i=n.component;i._toggleActive(!0),t._setActiveRoller(t._rollerConfigs[e],i.option("selectedIndex")),t._setRollerState(t._rollerConfigs[e],i.option("selectedIndex")),i._toggleActive(!1)},onSelectedIndexChanged:function(n){var i=n.component;t._setRollerState(t._rollerConfigs[e],i.option("selectedIndex"))}})})),t._$rollersContainer.appendTo(t._wrapper())},_createRollerConfigs:function(t){var e=this;t=t||e.option("type"),e._rollerConfigs={},d.getFormatParts(u.FORMATS_MAP[t]).forEach((function(t){e._createRollerConfig(t)}))},_createRollerConfig:function(t){for(var e=u.DATE_COMPONENTS_INFO[t],n=this._calculateRollerConfigValueRange(t),i=n.startValue,o=n.endValue,r=e.formatter,a=this._getCurrentDate(),s={type:t,setValue:e.setter,valueItems:[],displayItems:[],getIndex:function(t){return t[e.getter]()-i}},l=i;l<=o;l++)s.valueItems.push(l),s.displayItems.push(r(l,a));s.selectedIndex=s.getIndex(a),this._rollerConfigs[t]=s},_setActiveRoller:function(t){var e=t&&this._rollers[t.type];s(this._rollers,(function(){this.toggleActiveState(this===e)}))},_updateRollersPosition:function(){var t=this;s(this._rollers,(function(e){var n=t._rollerConfigs[e].getIndex(t._getCurrentDate());this.option("selectedIndex",n)}))},_setRollerState:function(t,e){if(e!==t.selectedIndex){var n=t.valueItems[e],i=t.setValue,o=new Date(this._getCurrentDate()),r=o.getDate(),s=this.option("minDate"),l=this.option("maxDate");t.type===p?r=Math.min(r,u.getMaxMonthDay(o.getFullYear(),n)):t.type===f&&(r=Math.min(r,u.getMaxMonthDay(n,o.getMonth()))),o.setDate(r),o[i](n);var c=a.normalizeDate(o,s,l);o=u.mergeDates(c,o,"time"),o=a.normalizeDate(o,s,l),this.option("value",o),t.selectedIndex=e}t.type===f&&this._refreshRollers(),t.type===p&&(this._refreshRoller(m),this._refreshRoller(g))},_refreshRoller:function(t){var e=this._rollers[t];if(e){this._createRollerConfig(t);var n=this._rollerConfigs[t];t!==m&&n.displayItems.toString()===e.option("items").toString()||e.option({items:n.displayItems,selectedIndex:n.selectedIndex})}},_getCurrentDate:function(){var t=this._valueOption(),e=this.option("minDate"),n=this.option("maxDate");return a.normalizeDate(t,e,n)},_calculateRollerConfigValueRange:function(t){var e=this._getCurrentDate(),n=this.option("minDate"),i=this.option("maxDate"),o=a.sameYear(e,n),r=o&&e.getMonth()===n.getMonth(),s=a.sameYear(e,i),l=s&&e.getMonth()===i.getMonth(),c=r&&e.getDate()===n.getDate(),d=l&&e.getDate()===i.getDate(),h=u.DATE_COMPONENTS_INFO[t],_=h.startValue,v=h.endValue;return t===f&&(_=n.getFullYear(),v=i.getFullYear()),t===p&&(o&&(_=n.getMonth()),s&&(v=i.getMonth())),t===m&&(v=u.getMaxMonthDay(e.getFullYear(),e.getMonth()),o&&r&&(_=n.getDate()),s&&l&&(v=i.getDate())),t===g&&(_=c?n.getHours():_,v=d?i.getHours():v),{startValue:_,endValue:v}},_refreshRollers:function(){this._refreshRoller(p),this._refreshRoller(m),this._refreshRoller(g)},_optionChanged:function(t){switch(t.name){case"minDate":case"maxDate":case"type":this._renderRollers(),this._toggleFormatClasses(t.value,t.previousValue);break;case"visible":this.callBase(t),t.value&&this._renderRollers();break;case"value":this.option("value",this._valueOption()),this._refreshRollers(),this._updateRollersPosition();break;default:this.callBase(t)}},_clean:function(){this.callBase(),delete this._$rollersContainer},_dispose:function(){clearTimeout(this._deferredRenderDayTimeout),clearTimeout(this._deferredRenderMonthTimeout),this.callBase()}});c("dxDateView",_),t.exports=_},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(8),a=n(0).extend,s=n(5).each,l=n(24).getBoundingRect,u=n(11),c=n(25),d=n(103),h=n(47),f=n(33),p=d.inherit({_getDefaultOptions:function(){return a(this.callBase(),{showScrollbar:!1,useNative:!1,selectedIndex:0,bounceEnabled:!1,items:[],showOnClick:!1,onClick:null,onSelectedIndexChanged:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"generic"},options:{scrollByContent:!0}}])},_init:function(){this.callBase(),this._renderSelectedItemFrame()},_render:function(){this.callBase(),this.$element().addClass("dx-dateviewroller"),this._renderContainerClick(),this._renderItems(),this._renderSelectedValue(),this._renderItemsClick(),this._wrapAction("_endAction",this._endActionHandler.bind(this)),this._renderSelectedIndexChanged()},_renderSelectedIndexChanged:function(){this._selectedIndexChanged=this._createActionByOption("onSelectedIndexChanged")},_renderContainerClick:function(){if(this.option("showOnClick")){var t=u.addNamespace(c.name,this.NAME),e=this._createActionByOption("onClick");o.off(this._$container,t),o.on(this._$container,t,(function(t){e({event:t})}))}},_wrapAction:function(t,e){var n=this._strategy,i=n[t];n[t]=function(){return e.apply(this,arguments),i.apply(this,arguments)}},_renderItems:function(){var t=this.option("items")||[],e=i();this._$content.empty(),t.forEach((function(t){e=e.add(i("<div>").addClass("dx-dateview-item").append(t))})),this._$content.append(e),this._$items=e,this.update()},_renderSelectedItemFrame:function(){i("<div>").addClass("dx-dateview-item-selected-frame").append(i("<div>").addClass("dx-dateview-item-selected-border")).appendTo(this._$container)},_renderSelectedValue:function(t){var e=this._fitIndex(t||this.option("selectedIndex"));this._moveTo({top:this._getItemPosition(e)}),this._renderActiveStateItem()},_fitIndex:function(t){var e=(this.option("items")||[]).length;return t>=e?e-1:t<0?0:t},_getItemPosition:function(t){return Math.round(this._itemHeight()*t)},_renderItemsClick:function(){var t=this._getItemSelector(),e=u.addNamespace(c.name,this.NAME);o.off(this.$element(),e,t),o.on(this.$element(),e,t,this._itemClickHandler.bind(this))},_getItemSelector:function(){return".dx-dateview-item"},_itemClickHandler:function(t){this.option("selectedIndex",this._itemElementIndex(t.currentTarget))},_itemElementIndex:function(t){return this._itemElements().index(t)},_itemElements:function(){return this.$element().find(this._getItemSelector())},_renderActiveStateItem:function(){var t=this.option("selectedIndex");s(this._$items,(function(e){i(this).toggleClass("dx-dateview-item-selected",t===e)}))},_moveTo:function(t){t=this._normalizeLocation(t);var e=this._location(),n={x:-(e.left-t.left),y:-(e.top-t.top)};if(this._isVisible()&&(n.x||n.y))if(this._strategy._prepareDirections(!0),this._animation){var i=this;h.stop(this._$content),h.animate(this._$content,{duration:200,type:"slide",to:{top:Math.floor(n.y)},complete:function(){f.resetPosition(i._$content),i._strategy.handleMove({delta:n})}}),delete this._animation}else this._strategy.handleMove({delta:n})},_validate:function(t){return this._strategy.validate(t)},_endActionHandler:function(){var t=this.option("selectedIndex"),e=-this._location().top/this._itemHeight(),n=Math.round(e);this._animation=!0,n===t?this._renderSelectedValue(n):this.option("selectedIndex",n)},_itemHeight:function(){var t=this._$items.first();return t.get(0)&&l(t.get(0)).height||0},_toggleActive:function(t){this.$element().toggleClass("dx-state-active",t)},_isVisible:function(){return this._$container.is(":visible")},_fireSelectedIndexChanged:function(t,e){this._selectedIndexChanged({value:t,previousValue:e,event:void 0})},_visibilityChanged:function(t){this.callBase(t),t&&this._renderSelectedValue(this.option("selectedIndex")),this.toggleActiveState(!1)},toggleActiveState:function(t){this.$element().toggleClass("dx-dateviewroller-current",t)},_refreshSelectedIndex:function(){var t=this.option("selectedIndex"),e=this._fitIndex(t);e===t?this._renderActiveStateItem():this.option("selectedIndex",e)},_optionChanged:function(t){switch(t.name){case"selectedIndex":this._fireSelectedIndexChanged(t.value,t.previousValue),this._renderSelectedValue(t.value);break;case"items":this._renderItems(),this._refreshSelectedIndex();break;case"onClick":case"showOnClick":this._renderContainerClick();break;case"onSelectedIndexChanged":this._renderSelectedIndexChanged();break;default:this.callBase(t)}}});r("dxDateViewRoller",p),t.exports=p},function(t,e,n){"use strict";var i=n(4).noop,o=n(235),r=n(58),a=n(16).inArray,s=n(143),l=n(67),u=o.inherit({NAME:"Native",popupConfig:i,getParsedText:function(t,e){return t?"datetime"===this.dateBox.option("type")?new Date(t.replace(/-/g,"/").replace("T"," ").split(".")[0]):this._isTextInput()?this.callBase(t,e):s.fromStandardDateFormat(t):null},_isTextInput:function(){return"text"===this.dateBox._input().prop("type")},renderPopupContent:i,_getWidgetName:i,_getWidgetOptions:i,_getDateBoxType:function(){var t=this.dateBox.option("type");return-1===a(t,s.SUPPORTED_FORMATS)?t="date":"datetime"!==t||r.inputType(t)||(t="datetime-local"),t},customizeButtons:function(){var t=this.dateBox.getButton("dropDown");t&&t.on("click",function(){this.dateBox._input().get(0).click()}.bind(this))},getDefaultOptions:function(){return{mode:this._getDateBoxType()}},getDisplayFormat:function(t){var e=this._getDateBoxType();return t||s.FORMATS_MAP[e]},renderInputMinMax:function(t){t.attr({min:l.serializeDate(this.dateBox.dateOption("min"),"yyyy-MM-dd"),max:l.serializeDate(this.dateBox.dateOption("max"),"yyyy-MM-dd")})}});t.exports=u},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(440),a=n(810),s=n(43),l=n(0).extend,u=n(228),c=n(143),d=r.inherit({NAME:"CalendarWithTime",getDefaultOptions:function(){return l(this.callBase(),{applyValueMode:"useButtons",buttonsLocation:"bottom after","dropDownOptions.showTitle":!1})},getDisplayFormat:function(t){return t||"shortdateshorttime"},_is24HourFormat:function(){return s.is24HourFormat(this.getDisplayFormat(this.dateBox.option("displayFormat")))},_renderWidget:function(){this.callBase(),this._timeView=this.dateBox._createComponent(i("<div>"),a,{value:this.dateBoxValue(),_showClock:!this._isShrinkView(),use24HourFormat:this._is24HourFormat(),onValueChanged:this._valueChangedHandler.bind(this),stylingMode:this.dateBox.option("stylingMode")}),this._timeView.registerKeyHandler("escape",this._escapeHandler.bind(this))},renderOpenedState:function(){this.callBase();var t=this._getPopup();t&&t._wrapper().toggleClass("dx-datebox-adaptivity-mode",this._isSmallScreen()),clearTimeout(this._repaintTimer),this._repaintTimer=setTimeout(function(){this._getPopup()&&this._getPopup().repaint()}.bind(this),0)},isAdaptivityChanged:function(){var t=this._isShrinkView(),e=this._currentAdaptiveMode;return t!==e?(this._currentAdaptiveMode=t,void 0!==e):this.callBase()},_updateValue:function(t){var e=this.dateBoxValue();e||t||(e=new Date,c.normalizeTime(e)),this.callBase(),this._timeView&&(e&&this._timeView.option("value",e),this._timeView.option("use24HourFormat",this._is24HourFormat()))},_isSmallScreen:function(){return i(o).width()<=573},_isShrinkView:function(){return!this.dateBox.option("showAnalogClock")||this.dateBox.option("adaptivityEnabled")&&this._isSmallScreen()},_getBoxItems:function(){var t=[{ratio:0,shrink:0,baseSize:"auto",name:"calendar"}];return this._isShrinkView()||t.push({ratio:0,shrink:0,baseSize:"auto",name:"time"}),t},renderPopupContent:function(){this.callBase(),this._currentAdaptiveMode=this._isShrinkView();var t=this._getPopup().$content();this._box=this.dateBox._createComponent(i("<div>").appendTo(t),u,{direction:"row",crossAlign:"start",items:this._getBoxItems(),itemTemplate:function(t){var e=i("<div>");switch(t.name){case"calendar":e.append(this._widget.$element()),this._isShrinkView()&&e.append(this._timeView.$element());break;case"time":e.append(this._timeView.$element())}return e}.bind(this)}),this._attachTabHandler()},popupConfig:function(t){var e=this.callBase(t);return l(e,{onShowing:function(){if("fallback"===this._box.option("_layoutStrategy")){var t=this._getPopup().$content().find(".dx-timeview-clock").css("minWidth");this._timeView.$element().css("maxWidth",t)}}.bind(this)})},getFirstPopupElement:function(){return this._timeView._hourBox.$element().find("input")},_attachTabHandler:function(){var t=this.dateBox;this._timeView._hourBox.registerKeyHandler("tab",(function(e){e.shiftKey&&(e.preventDefault(),t.focus())}))},_preventFocusOnPopup:function(t){i(t.target).hasClass("dx-texteditor-input")||(this.callBase.apply(this,arguments),this.dateBox._hasFocusClass()||this.dateBox.focus())},getValue:function(){var t=this._widget.option("value"),e=this._timeView.option("value");return(t=t?new Date(t):new Date).setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t},dispose:function(){clearTimeout(this._removeMinWidthTimer),clearTimeout(this._repaintTimer),this.callBase()}});t.exports=d},function(t,e,n){"use strict";var i=h(n(3)),o=h(n(62)),r=h(n(142)),a=h(n(110)),s=h(n(228)),l=n(0),u=h(n(8)),c=n(43),d=n(143);function h(t){return t&&t.__esModule?t:{default:t}}var f=function(t,e,n){p(t,e,n)},p=function(t,e,n){t.css("transform","rotate("+e+"deg) translate(0,"+n+"px)")},m=o.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{value:new Date(Date.now()),use24HourFormat:!0,_showClock:!0,_arrowOffset:0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:{platform:"android"},options:{_arrowOffset:15}},{device:{platform:"generic"},options:{_arrowOffset:5}}])},_getValue:function(){return this.option("value")||new Date},_init:function(){this.callBase(),this.$element().addClass("dx-timeview")},_render:function(){this.callBase(),this._renderBox(),this._updateTime()},_renderBox:function(){var t=(0,i.default)("<div>").appendTo(this.$element()),e=[];this.option("_showClock")&&e.push({ratio:1,shrink:0,baseSize:"auto",template:this._renderClock.bind(this)}),e.push({ratio:0,shrink:0,baseSize:50,template:this._renderField.bind(this)}),this._createComponent(t,s.default,{height:"100%",width:"100%",direction:"col",items:e})},_renderClock:function(t,e,n){this._$hourArrow=(0,i.default)("<div>").addClass("dx-timeview-hourarrow"),this._$minuteArrow=(0,i.default)("<div>").addClass("dx-timeview-minutearrow");var o=(0,i.default)(n);o.addClass("dx-timeview-clock").append(this._$hourArrow).append(this._$minuteArrow),this.setAria("role","presentation",o)},_updateClock:function(){var t=this._getValue(),e=t.getHours()/12*360+t.getMinutes()/60*30,n=t.getMinutes()/60*360;f(this._$hourArrow,e,this.option("_arrowOffset")),f(this._$minuteArrow,n,this.option("_arrowOffset"))},_getBoxItems:function(t){var e=this,n=[{ratio:0,shrink:0,baseSize:"auto",template:function(){return e._hourBox.$element()}},{ratio:0,shrink:0,baseSize:"auto",template:(0,i.default)("<div>").addClass("dx-timeview-time-separator").text((0,c.getTimeSeparator)())},{ratio:0,shrink:0,baseSize:"auto",template:function(){return e._minuteBox.$element()}}];return t&&n.push({ratio:0,shrink:0,baseSize:"auto",template:function(){return e._format12.$element()}}),n},_renderField:function(){var t=!this.option("use24HourFormat");return this._createHourBox(),this._createMinuteBox(),t&&this._createFormat12Box(),this._createComponent((0,i.default)("<div>").addClass("dx-timeview-field"),s.default,{direction:"row",align:"center",crossAlign:"center",items:this._getBoxItems(t)}).$element()},_createHourBox:function(){var t=this;(this._hourBox=this._createComponent((0,i.default)("<div>"),r.default,(0,l.extend)({min:-1,max:24,value:this._getValue().getHours(),onValueChanged:this._onHourBoxValueChanged.bind(this),onKeyboardHandled:function(e){return t._keyboardHandler(e)}},this._getNumberBoxConfig()))).setAria("label","hours")},_isPM:function(){return!this.option("use24HourFormat")&&1===this._format12.option("value")},_onHourBoxValueChanged:function(t){var e=this._getValue(),n=new Date(e),i=this._convertMaxHourToMin(t.value);this._isPM()&&(i+=12),n.setHours(i),(0,d.normalizeTime)(n),this.option("value",n)},_convertMaxHourToMin:function(t){var e=this.option("use24HourFormat")?24:12;return(e+t)%e},_createMinuteBox:function(){var t=this;(this._minuteBox=this._createComponent((0,i.default)("<div>"),r.default,(0,l.extend)({min:-1,max:60,value:this._getValue().getMinutes(),onKeyboardHandled:function(e){return t._keyboardHandler(e)},onValueChanged:function(e){var n=(60+e.value)%60;e.component.option("value",n);var i=new Date(t._getValue());i.setMinutes(n),(0,d.normalizeTime)(i),t.option("value",i)}},this._getNumberBoxConfig()))).setAria("label","minutes")},_createFormat12Box:function(){var t=this,e=(0,c.getPeriodNames)();(this._format12=this._createComponent((0,i.default)("<div>").addClass("dx-timeview-format12"),a.default,{items:[{value:-1,text:e[0]},{value:1,text:e[1]}],valueExpr:"value",displayExpr:"text",onKeyboardHandled:function(e){return t._keyboardHandler(e)},onValueChanged:function(e){var n=e.value,i=t._getValue().getHours(),o=new Date(t._getValue()),r=(i+12*n)%24;o.setHours(r),t.option("value",o)},value:this._getValue().getHours()>=12?1:-1,stylingMode:this.option("stylingMode")})).setAria("label","type")},_refreshFormat12:function(){if(!this.option("use24HourFormat")){var t=this._getValue().getHours()>=12?1:-1;this._silentEditorValueUpdate(this._format12,t)}},_silentEditorValueUpdate:function(t,e){t&&(t._suppressValueChangeAction(),t.option("value",e),t._resumeValueChangeAction())},_getNumberBoxConfig:function(){return{showSpinButtons:!0,displayValueFormatter:function(t){return(t<10?"0":"")+t},stylingMode:this.option("stylingMode")}},_normalizeHours:function(t){return this.option("use24HourFormat")?t:t%12||12},_updateField:function(){var t=this._normalizeHours(this._getValue().getHours());this._silentEditorValueUpdate(this._hourBox,t),this._silentEditorValueUpdate(this._minuteBox,this._getValue().getMinutes()),this._refreshFormat12()},_updateTime:function(){this.option("_showClock")&&this._updateClock(),this._updateField()},_visibilityChanged:function(t){t&&this._updateTime()},_optionChanged:function(t){switch(t.name){case"value":this._updateTime(),this.callBase(t);break;case"_arrowOffset":break;case"use24HourFormat":case"_showClock":case"stylingMode":this._invalidate();break;default:this.callBase(t)}}});(0,u.default)("dxTimeView",m),t.exports=m},function(t,e,n){"use strict";var i=n(3),o=n(10).getWindow(),r=n(108),a=n(235),s=n(4).noop,l=n(4).ensureDefined,u=n(2).isDate,c=n(0).extend,d=n(143),h=n(43),f=n(67),p={min:new Date(0,0,0,0,0),max:new Date(0,0,0,23,59)},m=a.inherit({NAME:"List",supportedKeys:function(){return{tab:function(){this.option("opened")&&this.close()},space:s,home:s,end:s}},getDefaultOptions:function(){return c(this.callBase(),{applyValueMode:"instantly"})},getDisplayFormat:function(t){return t||"shorttime"},popupConfig:function(t){return t},useCurrentDateByDefault:function(){return!0},getDefaultDate:function(){return new Date(null)},popupShowingHandler:function(){this._dimensionChanged()},_renderWidget:function(){this.callBase(),this._refreshItems()},_getWidgetName:function(){return r},_getWidgetOptions:function(){return{itemTemplate:this._timeListItemTemplate.bind(this),onItemClick:this._listItemClickHandler.bind(this),tabIndex:-1,onFocusedItemChanged:this._refreshActiveDescendant.bind(this),selectionMode:"single"}},_refreshActiveDescendant:function(t){this.dateBox.setAria("activedescendant",""),this.dateBox.setAria("activedescendant",t.actionValue)},_refreshItems:function(){this._widgetItems=this._getTimeListItems(),this._widget.option("items",this._widgetItems)},renderOpenedState:function(){this._widget&&(this._widget.option("focusedElement",null),this._setSelectedItemsByValue(),this._widget.option("templatesRenderAsynchronously")?this._asyncScrollTimeout=setTimeout(this._scrollToSelectedItem.bind(this)):this._scrollToSelectedItem())},dispose:function(){this.callBase(),clearTimeout(this._asyncScrollTimeout)},_updateValue:function(){this._widget&&(this._refreshItems(),this._setSelectedItemsByValue(),this._scrollToSelectedItem())},_setSelectedItemsByValue:function(){var t=this.dateBoxValue(),e=this._getDateIndex(t);-1===e?this._widget.option("selectedItems",[]):this._widget.option("selectedIndex",e)},_scrollToSelectedItem:function(){this._widget.scrollToItem(this._widget.option("selectedIndex"))},_getDateIndex:function(t){for(var e=-1,n=0,i=this._widgetItems.length;n<i;n++)if(this._areDatesEqual(t,this._widgetItems[n])){e=n;break}return e},_areDatesEqual:function(t,e){return u(t)&&u(e)&&t.getHours()===e.getHours()&&t.getMinutes()===e.getMinutes()},_getTimeListItems:function(){var t=this.dateBox.dateOption("min")||this._getBoundaryDate("min"),e=this.dateBox.dateOption("max")||this._getBoundaryDate("max"),n=this.dateBox.dateOption("value")||null,i=e-t,o=t.getMinutes()%this.dateBox.option("interval");return i<0?[]:(i>d.ONE_DAY&&(i=d.ONE_DAY),n-t<d.ONE_DAY||((t=this._getBoundaryDate("min")).setMinutes(o),n&&Math.abs(n-e)<d.ONE_DAY&&(i=(60*e.getHours()+Math.abs(e.getMinutes()-o))*d.ONE_MINUTE)),this._getRangeItems(t,new Date(t),i))},_getRangeItems:function(t,e,n){for(var i=[],o=this.dateBox.option("interval");e-t<=n;)i.push(new Date(e)),e.setMinutes(e.getMinutes()+o);return i},_getBoundaryDate:function(t){var e=p[t],n=new Date(l(this.dateBox.dateOption("value"),0));return new Date(n.getFullYear(),n.getMonth(),n.getDate(),e.getHours(),e.getMinutes())},_timeListItemTemplate:function(t){var e=this.dateBox.option("displayFormat");return h.format(t,this.getDisplayFormat(e))},_listItemClickHandler:function(t){this.dateBox.option("opened",!1);var e=this.dateBox.option("value"),n=t.itemData,i=n.getHours(),o=n.getMinutes(),r=n.getSeconds(),a=n.getFullYear(),s=n.getMonth(),l=n.getDate();e?((e=this.dateBox.option("dateSerializationFormat")?f.deserializeDate(e):new Date(e)).setHours(i),e.setMinutes(o),e.setSeconds(r),e.setFullYear(a),e.setMonth(s),e.setDate(l)):e=new Date(a,s,l,i,o,0,0),this.dateBoxValue(e,t.event)},getKeyboardListener:function(){return this._widget},_dimensionChanged:function(){this._getPopup()&&this._updatePopupHeight()},_updatePopupHeight:function(){this.dateBox._setPopupOption("height","auto");var t=this._widget.$element().outerHeight(),e=.45*i(o).height();this.dateBox._setPopupOption("height",Math.min(t,e)),this.dateBox._timeList&&this.dateBox._timeList.updateDimensions()},getParsedText:function(t,e){var n=this.callBase(t,e);return n&&(n=d.mergeDates(n,new Date(null),"date")),n}});t.exports=m},function(t,e,n){"use strict";var i=T(n(3)),o=T(n(6)),r=T(n(8)),a=T(n(45)),s=n(4),l=n(2),u=n(5),c=n(16),d=n(0),h=n(55),f=T(n(31)),p=n(17),m=T(n(12)),g=T(n(20)),_=T(n(62)),v=n(10),y=T(n(136)),b=(T(n(813)),T(n(443))),w=T(n(293)),x=T(n(103)),C=n(7),S=T(n(36)),k=T(n(816)),I=n(447);function T(t){return t&&t.__esModule?t:{default:t}}function E(t){return function(t){if(Array.isArray(t))return O(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return O(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n(294),n(448);var M=["items","isRequired","validationRules","visible"],P=g.default.inherit({_init:function(){this.callBase(),this._cachedColCountOptions=[],this._itemsRunTimeInfo=new b.default,this._groupsColCount=[],this._attachSyncSubscriptions()},_initOptions:function(t){"screenByWidth"in t||(t.screenByWidth=v.defaultScreenFactorFunc),this.callBase(t)},_getDefaultOptions:function(){return(0,d.extend)(this.callBase(),{formID:"dx-"+new a.default,formData:{},colCount:1,screenByWidth:null,colCountByScreen:void 0,labelLocation:"left",readOnly:!1,onFieldDataChanged:null,customizeItem:null,onEditorEnterKey:null,minColWidth:200,alignItemLabels:!0,alignItemLabelsInAllGroups:!0,showColonAfterLabel:!0,showRequiredMark:!0,showOptionalMark:!1,requiredMark:"*",optionalMark:m.default.format("dxForm-optionalMark"),requiredMessage:m.default.getFormatter("dxForm-requiredMessage"),showValidationSummary:!1,items:void 0,scrollingEnabled:!1,validationGroup:void 0,stylingMode:void 0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return S.default.isMaterial()},options:{showColonAfterLabel:!1,labelLocation:"top"}}])},_setOptionsByReference:function(){this.callBase(),(0,d.extend)(this._optionsByReference,{formData:!0,validationGroup:!0})},_getGroupColCount:function(t){return parseInt(t.attr("group-col-count"))},_createHiddenElement:function(t){this._$hiddenElement=(0,i.default)("<div>").addClass("dx-widget").addClass("dx-layout-manager-hidden-label").appendTo("body");var e=t._renderLabel({text:" ",location:this._labelLocation()}).appendTo(this._$hiddenElement);this._hiddenLabelText=e.find(".dx-field-item-label-text")[0]},_removeHiddenElement:function(){this._$hiddenElement.remove(),this._hiddenLabelText=null},_getLabelWidthByText:function(t){return this._hiddenLabelText.innerHTML=t,this._hiddenLabelText.offsetWidth},_getLabelsSelectorByCol:function(t,e){return"."+((e=e||{}).inOneColumn?"dx-field-item":"dx-col-"+t)+(e.excludeTabbed?":not(.dx-field-item-tab)":"")+"> .dx-field-item-label > .dx-field-item-label-content"},_getLabelText:function(t){var e,n,i=t.children.length,o="";for(n=0;n<i;n++)e=t.children[n],o+=(0,h.isEmpty)(e.innerText)?e.innerHTML:e.innerText;return o},_applyLabelsWidthByCol:function(t,e,n){var i,o,r=t.find(this._getLabelsSelectorByCol(e,n)),a=r.length,s=0;for(o=0;o<a;o++)(i=this._getLabelWidthByText(this._getLabelText(r[o])))>s&&(s=i);for(o=0;o<a;o++)r[o].style.width=s+"px"},_applyLabelsWidth:function(t,e,n,i){i=n?1:i||this._getGroupColCount(t);var o,r={excludeTabbed:e,inOneColumn:n};for(o=0;o<i;o++)this._applyLabelsWidthByCol(t,o,r)},_getGroupElementsInColumn:function(t,e,n){var i=".dx-col-"+e+" > .dx-field-item-content > .dx-form-group"+((0,l.isDefined)(n)?".dx-group-colcount-"+n:"");return t.find(i)},_applyLabelsWidthWithGroups:function(t,e,n){if(this.option("alignItemLabelsInAllGroups"))this._applyLabelsWidthWithNestedGroups(t,e,n);else{var i,o=this.$element().find(".dx-form-group");for(i=0;i<o.length;i++)this._applyLabelsWidth(o.eq(i),n)}},_applyLabelsWidthWithNestedGroups:function(t,e,n){var i,o,r,a,s={excludeTabbed:n};for(i=0;i<e;i++)for(a=this._getGroupElementsInColumn(t,i),this._applyLabelsWidthByCol(a,0,s),o=0;o<this._groupsColCount.length;o++){a=this._getGroupElementsInColumn(t,i,this._groupsColCount[o]);var l=this._getGroupColCount(a);for(r=1;r<l;r++)this._applyLabelsWidthByCol(a,r,s)}},_labelLocation:function(){return this.option("labelLocation")},_alignLabelsInColumn:function(t){var e=t.layoutManager,n=t.inOneColumn,i=t.$container,o=t.excludeTabbed,r=t.items;(0,v.hasWindow)()&&"top"!==this._labelLocation()&&(this._createHiddenElement(e),n?this._applyLabelsWidth(i,o,!0):this._checkGrouping(r)?this._applyLabelsWidthWithGroups(i,e._getColCount(),o):this._applyLabelsWidth(i,o,!1,e._getColCount()),this._removeHiddenElement())},_prepareFormData:function(){(0,l.isDefined)(this.option("formData"))||this.option("formData",{})},_initMarkup:function(){y.default.addGroup(this._getValidationGroup()),this._clearCachedInstances(),this._prepareFormData(),this.$element().addClass("dx-form"),this.callBase(),this.setAria("role","form",this.$element()),this.option("scrollingEnabled")&&this._renderScrollable(),this._renderLayout(),this._renderValidationSummary(),this._lastMarkupScreenFactor=this._targetScreenFactor||this._getCurrentScreenFactor()},_getCurrentScreenFactor:function(){return(0,v.hasWindow)()?(0,v.getCurrentScreenFactor)(this.option("screenByWidth")):"lg"},_clearCachedInstances:function(){this._itemsRunTimeInfo.clear(),this._cachedLayoutManagers=[]},_alignLabels:function(t,e){this._alignLabelsInColumn({$container:this.$element(),layoutManager:t,excludeTabbed:!0,items:this.option("items"),inOneColumn:e})},_clean:function(){this.callBase(),this._groupsColCount=[],this._cachedColCountOptions=[],this._lastMarkupScreenFactor=void 0},_renderScrollable:function(){var t=this.option("useNativeScrolling");this._scrollable=new x.default(this.$element(),{useNative:!!t,useSimulatedScrollbar:!t,useKeyboard:!1,direction:"both",bounceEnabled:!1})},_getContent:function(){return this.option("scrollingEnabled")?this._scrollable.$content():this.$element()},_renderValidationSummary:function(){var t=this.$element().find(".dx-form-validation-summary");if(t.length>0&&t.remove(),this.option("showValidationSummary")){var e=(0,i.default)("<div>").addClass("dx-form-validation-summary").appendTo(this._getContent());this._validationSummary=e.dxValidationSummary({validationGroup:this._getValidationGroup()}).dxValidationSummary("instance")}},_prepareItems:function(t,e,n,i){if(t){for(var o=[],r=0;r<t.length;r++){var a=t[r],s=(0,I.concatPaths)(n,(0,I.createItemPathByIndex)(r,i)),u=this._itemsRunTimeInfo.add({item:a,itemIndex:r,path:s});if((0,l.isString)(a)&&(a={dataField:a}),(0,l.isObject)(a)){var c=(0,d.extend)({},a);c.guid=u,this._tryPrepareGroupItem(c),this._tryPrepareTabbedItem(c,s),this._tryPrepareItemTemplate(c),e&&(c.cssItemClass="dx-field-item-tab"),c.items&&(c.items=this._prepareItems(c.items,e,s)),o.push(c)}else o.push(a)}return o}},_tryPrepareGroupItem:function(t){"group"===t.itemType&&(t.alignItemLabels=(0,s.ensureDefined)(t.alignItemLabels,!0),t.template&&(t.groupContentTemplate=this._getTemplate(t.template)),t.template=this._itemGroupTemplate.bind(this,t))},_tryPrepareTabbedItem:function(t,e){"tabbed"===t.itemType&&(t.template=this._itemTabbedTemplate.bind(this,t),t.tabs=this._prepareItems(t.tabs,!0,e,!0))},_tryPrepareItemTemplate:function(t){t.template&&(t.template=this._getTemplate(t.template))},_checkGrouping:function(t){if(t)for(var e=0;e<t.length;e++){if("group"===t[e].itemType)return!0}},_renderLayout:function(){var t=this,e=t.option("items"),n=t._getContent();e=t._prepareItems(e),t._rootLayoutManager=t._renderLayoutManager(e,n,{colCount:t.option("colCount"),alignItemLabels:t.option("alignItemLabels"),screenByWidth:this.option("screenByWidth"),colCountByScreen:this.option("colCountByScreen"),onLayoutChanged:function(e){t._alignLabels.bind(t)(t._rootLayoutManager,e)},onContentReady:function(e){t._alignLabels(e.component,e.component.isSingleColumnMode())}})},_tryGetItemsForTemplate:function(t){return t.items||[]},_itemTabbedTemplate:function(t,e,n){var o=this,r=(0,i.default)("<div>").appendTo(n),a=(0,d.extend)({},t.tabPanelOptions,{dataSource:t.tabs,onItemRendered:function(t){return(0,p.triggerShownEvent)(t.itemElement)},itemTemplate:function(t,e,n){var r=(0,i.default)(n),a=(0,s.ensureDefined)(t.alignItemLabels,!0),l=o._renderLayoutManager(o._tryGetItemsForTemplate(t),r,{colCount:t.colCount,alignItemLabels:a,screenByWidth:o.option("screenByWidth"),colCountByScreen:t.colCountByScreen,cssItemClass:t.cssItemClass,onLayoutChanged:function(e){o._alignLabelsInColumn({$container:r,layoutManager:l,items:t.items,inOneColumn:e})}});o._itemsRunTimeInfo&&o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(t.guid,{layoutManager:l}),a&&o._alignLabelsInColumn({$container:r,layoutManager:l,items:t.items,inOneColumn:l.isSingleColumnMode()})}}),l=function(t,e){Array.isArray(t)&&t.forEach((function(t){return o._itemsRunTimeInfo.extendRunTimeItemInfoByKey(t.guid,{widgetInstance:e})}))},u=this._createComponent(r,w.default,a);u.on("optionChanged",(function(t){"dataSource"===t.fullName&&l(t.value,t.component)})),l([{guid:t.guid}].concat(E(t.tabs)),u)},_itemGroupTemplate:function(t,e,n){var o,r,a=(0,i.default)("<div>").toggleClass("dx-form-group-with-caption",(0,l.isDefined)(t.caption)&&t.caption.length).addClass("dx-form-group").appendTo(n);t.caption&&(0,i.default)("<span>").addClass("dx-form-group-caption").text(t.caption).appendTo(a);var s=(0,i.default)("<div>").addClass("dx-form-group-content").appendTo(a);if(t.groupContentTemplate){var u={formData:this.option("formData"),component:this};t.groupContentTemplate.render({model:u,container:(0,p.getPublicElement)(s)})}else r=this._renderLayoutManager(this._tryGetItemsForTemplate(t),s,{colCount:t.colCount,colCountByScreen:t.colCountByScreen,alignItemLabels:t.alignItemLabels,cssItemClass:t.cssItemClass}),this._itemsRunTimeInfo&&this._itemsRunTimeInfo.extendRunTimeItemInfoByKey(t.guid,{layoutManager:r}),o=r._getColCount(),-1===(0,c.inArray)(o,this._groupsColCount)&&this._groupsColCount.push(o),a.addClass("dx-group-colcount-"+o),a.attr("group-col-count",o)},_renderLayoutManager:function(t,e,n){var o=(0,i.default)("<div>"),r=this,a=r._getLayoutManagerConfig(t,n),s={lg:n.colCount,md:n.colCount,sm:n.colCount,xs:1};r._cachedColCountOptions.push({colCountByScreen:(0,d.extend)(s,n.colCountByScreen)}),o.appendTo(e);var l=r._createComponent(o,"dxLayoutManager",a);return l.on("autoColCountChanged",(function(){r._refresh()})),r._cachedLayoutManagers.push(l),l},_getValidationGroup:function(){return this.option("validationGroup")||this},_getLayoutManagerConfig:function(t,e){var n=this,i={form:this,validationGroup:this._getValidationGroup(),showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark"),requiredMessage:this.option("requiredMessage"),screenByWidth:this.option("screenByWidth"),layoutData:this.option("formData"),labelLocation:this.option("labelLocation"),customizeItem:this.option("customizeItem"),minColWidth:this.option("minColWidth"),showColonAfterLabel:this.option("showColonAfterLabel"),onEditorEnterKey:this.option("onEditorEnterKey"),onFieldDataChanged:function(t){n._isDataUpdating||n._triggerOnFieldDataChanged(t)},validationBoundary:this.option("scrollingEnabled")?this.$element():void 0};return(0,d.extend)(i,{items:t,onContentReady:function(t){n._itemsRunTimeInfo.addItemsOrExtendFrom(t.component._itemsRunTimeInfo),e.onContentReady&&e.onContentReady(t)},onDisposing:function(t){var e=t.component.getItemsRunTimeInfo();n._itemsRunTimeInfo.removeItemsByItems(e)},colCount:e.colCount,alignItemLabels:e.alignItemLabels,cssItemClass:e.cssItemClass,colCountByScreen:e.colCountByScreen,onLayoutChanged:e.onLayoutChanged,width:e.width})},_createComponent:function(t,e,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(t,e,n)},_attachSyncSubscriptions:function(){var t=this;t.on("optionChanged",(function(e){var n=e.fullName;"formData"===n&&((0,l.isDefined)(e.value)||t._options.silent("formData",e.value={}),t._triggerOnFieldDataChangedByDataSet(e.value)),t._cachedLayoutManagers.length&&(0,u.each)(t._cachedLayoutManagers,(function(i,o){"formData"===n&&(t._isDataUpdating=!0,o.option("layoutData",e.value),t._isDataUpdating=!1),"readOnly"!==e.name&&"disabled"!==e.name||o.option(n,e.value)}))}))},_optionChanged:function(t){var e=this._getRootLevelOfExpectedComplexOption(t.fullName,["formData","items"]);if(e)this._customHandlerOfComplexOption(t,e);else switch(t.name){case"formData":this.option("items")?(0,l.isEmptyObject)(t.value)&&this._resetValues():this._invalidate();break;case"items":case"colCount":case"onFieldDataChanged":case"onEditorEnterKey":case"labelLocation":case"alignItemLabels":case"showColonAfterLabel":case"customizeItem":case"alignItemLabelsInAllGroups":case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":case"requiredMessage":case"scrollingEnabled":case"formID":case"colCountByScreen":case"screenByWidth":case"stylingMode":this._invalidate();break;case"showValidationSummary":this._renderValidationSummary();break;case"minColWidth":"auto"===this.option("colCount")&&this._invalidate();break;case"readOnly":break;case"width":this.callBase(t),this._rootLayoutManager.option(t.name,t.value),this._alignLabels(this._rootLayoutManager,this._rootLayoutManager.isSingleColumnMode());break;case"visible":this.callBase(t),t.value&&(0,p.triggerShownEvent)(this.$element());break;case"validationGroup":y.default.removeGroup(t.previousValue||this),this._invalidate();break;default:this.callBase(t)}},_getRootLevelOfExpectedComplexOption:function(t,e){var n,i=t.split(".");if(i.length>1){var o,r=i[0];for(o=0;o<e.length;o++)-1!==r.search(e[o])&&(n=e[o])}return n},_tryCreateItemOptionAction:function(t,e,n,i,o){return"tabs"===t&&(this._itemsRunTimeInfo.removeItemsByPathStartWith("".concat(o,".tabs")),n=this._prepareItems(n,!0,o,!0)),(0,k.default)(t,{item:e,value:n,previousValue:i,itemsRunTimeInfo:this._itemsRunTimeInfo})},_tryExecuteItemOptionAction:function(t){return t&&t.tryExecute()},_updateValidationGroupAndSummaryIfNeeded:function(t){var e=(0,I.getOptionNameFromFullName)(t);M.indexOf(e)>-1&&(y.default.addGroup(this._getValidationGroup()),this.option("showValidationSummary")&&this._validationSummary&&this._validationSummary._initGroupRegistration())},_setLayoutManagerItemOption:function(t,e,n,i){var o=this;if(this._updateLockCount>0){!t._updateLockCount&&t.beginUpdate();var r=this._itemsRunTimeInfo.getKeyByPath(i);this.postponedOperations.add(r,(function(){return!t._disposed&&t.endUpdate(),(new C.Deferred).resolve()}))}t.on("contentReady",(function t(e){if(e.component.off("contentReady",t),(0,I.isFullPathContainsTabs)(i)){var n=(0,I.tryGetTabPath)(i),r=o._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(n);o._alignLabelsInColumn({items:r.option("items"),layoutManager:r,$container:r.$element(),inOneColumn:r.isSingleColumnMode()})}else o._alignLabels(o._rootLayoutManager,o._rootLayoutManager.isSingleColumnMode())})),t.option(e,n),this._updateValidationGroupAndSummaryIfNeeded(e)},_tryChangeLayoutManagerItemOption:function(t,e){var n=t.split("."),i=(0,I.getOptionNameFromFullName)(t);if("items"===i&&n.length>1){var o=this._getItemPath(n),r=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(o);if(r){this._itemsRunTimeInfo.removeItemsByItems(r.getItemsRunTimeInfo());var a=this._prepareItems(e,!1,o);return this._setLayoutManagerItemOption(r,i,a,o),!0}}else if(n.length>2){var s=n.length-2,l=this._getItemPath(n.slice(0,s)),u=this._itemsRunTimeInfo.getGroupOrTabLayoutManagerByPath(l);if(u){var c=(0,I.getFullOptionName)(n[s],i);if("editorType"===i&&u.option(c)!==e)return!1;if("visible"===i){var d=this.option((0,I.getFullOptionName)(l,"items"));if(d&&d.length){var h=u.option("items");d.forEach((function(t,e){h[e].visibleIndex=t.visibleIndex}))}}return this._setLayoutManagerItemOption(u,c,e,l),!0}}return!1},_tryChangeLayoutManagerItemOptions:function(t,e){var n,i=this;return this.beginUpdate(),(0,u.each)(e,(function(e,o){if(!(n=i._tryChangeLayoutManagerItemOption((0,I.getFullOptionName)(t,e),o)))return!1})),this.endUpdate(),n},_customHandlerOfComplexOption:function(t,e){var n=t.fullName.split("."),i=t.value;if("items"===e){var o=this._getItemPath(n),r=this.option(o),a=t.fullName.replace(o+".",""),s=a.split(".")[0].replace(/\[\d+]/,""),l=this._tryCreateItemOptionAction(s,r,r[s],t.previousValue,o);if(!this._tryExecuteItemOptionAction(l)&&!this._tryChangeLayoutManagerItemOption(t.fullName,i)&&r){this._changeItemOption(r,a,i);var u=this._generateItemsFromData(this.option("items"));this.option("items",u)}}if("formData"===e){var c=n.slice(1).join("."),d=this.getEditor(c);d?d.option("value",i):this._triggerOnFieldDataChanged({dataField:c,value:i})}},_getItemPath:function(t){var e,n=t[0];for(e=1;e<t.length&&-1!==t[e].search(/items\[\d+]|tabs\[\d+]/);e++)n+="."+t[e];return n},_triggerOnFieldDataChanged:function(t){this._createActionByOption("onFieldDataChanged")(t)},_triggerOnFieldDataChangedByDataSet:function(t){var e=this;t&&(0,l.isObject)(t)&&(0,u.each)(t,(function(t,n){e._triggerOnFieldDataChanged({dataField:t,value:n})}))},_updateFieldValue:function(t,e){if((0,l.isDefined)(this.option("formData"))){var n=this.getEditor(t);if(this.option("formData."+t,e),n)n.option("value")!==e&&n.option("value",e)}},_generateItemsFromData:function(t){var e=this.option("formData"),n=[];return!t&&(0,l.isDefined)(e)&&(0,u.each)(e,(function(t){n.push({dataField:t})})),t&&(0,u.each)(t,(function(t,e){(0,l.isObject)(e)?n.push(e):n.push({dataField:e})})),n},_getItemByField:function(t,e){var n,i=this,o=(0,l.isObject)(t)?t:i._getFieldParts(t),r=o.fieldName,a=o.fieldPath;return e.length&&(0,u.each)(e,(function(t,e){var o=e.itemType;if(a.length){var s=a.slice();e=i._getItemByFieldPath(s,r,e)}else if("group"===o&&!e.caption&&!e.name||"tabbed"===o&&!e.name){var l=i._getSubItemField(o);e.items=i._generateItemsFromData(e.items),e=i._getItemByField({fieldName:r,fieldPath:a},e[l])}if((0,I.isExpectedItem)(e,r))return n=e,!1})),n},_getFieldParts:function(t){for(var e=t,n=e.indexOf("."),i=[];-1!==n;)i.push(e.substr(0,n)),n=(e=e.substr(n+1)).indexOf(".");return{fieldName:e,fieldPath:i.reverse()}},_getItemByFieldPath:function(t,e,n){var i,o=n.itemType,r=this._getSubItemField(o),a="group"===o||"tabbed"===o||n.title;do{if(!a)break;var s=n.name||n.caption||n.title,u=(0,l.isDefined)(s),c=(0,I.getTextWithoutSpaces)(s),d=void 0;if(n[r]=this._generateItemsFromData(n[r]),u&&(d=t.pop()),!t.length&&(i=this._getItemByField(e,n[r])))break;(!u||u&&c===d)&&t.length&&(i=this._searchItemInEverySubItem(t,e,n[r]))}while(t.length&&!(0,l.isDefined)(i));return i},_getSubItemField:function(t){return"tabbed"===t?"tabs":"items"},_searchItemInEverySubItem:function(t,e,n){var i,o=this;return(0,u.each)(n,(function(n,r){if(i=o._getItemByFieldPath(t.slice(),e,r))return!1})),i||(i=!1),i},_changeItemOption:function(t,e,n){(0,l.isObject)(t)&&(t[e]=n)},_dimensionChanged:function(){var t=this._getCurrentScreenFactor();this._lastMarkupScreenFactor!==t&&(this._isColCountChanged(this._lastMarkupScreenFactor,t)&&(this._targetScreenFactor=t,this._refresh(),this._targetScreenFactor=void 0),this._lastMarkupScreenFactor=t)},_isColCountChanged:function(t,e){var n=!1;return(0,u.each)(this._cachedColCountOptions,(function(i,o){if(o.colCountByScreen[t]!==o.colCountByScreen[e])return n=!0,!1})),n},_refresh:function(){o.default.trigger(this.$element().find(".dx-state-focused input, .dx-state-focused textarea"),"change"),this.callBase()},_resetValues:function(){this._itemsRunTimeInfo.each((function(t,e){(0,l.isDefined)(e.widgetInstance)&&e.widgetInstance instanceof _.default&&(e.widgetInstance.reset(),e.widgetInstance.option("isValid",!0))})),y.default.resetGroup(this._getValidationGroup())},_updateData:function(t,e,n){var i=this,o=n?e:t;(0,l.isObject)(o)?(0,u.each)(o,(function(e,o){i._updateData(n?t+"."+e:e,o,(0,l.isObject)(o))})):(0,l.isString)(t)&&i._updateFieldValue(t,e)},registerKeyHandler:function(t,e){this.callBase(t,e),this._itemsRunTimeInfo.each((function(n,i){(0,l.isDefined)(i.widgetInstance)&&i.widgetInstance.registerKeyHandler(t,e)}))},_focusTarget:function(){return this.$element().find(".dx-field-item-content [tabindex]").first()},_visibilityChanged:function(t){t&&f.default.msie&&this._refresh()},_dispose:function(){y.default.removeGroup(this._getValidationGroup()),this.callBase()},resetValues:function(){this._resetValues()},updateData:function(t,e){this._updateData(t,e)},getEditor:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(t)||this._itemsRunTimeInfo.findWidgetInstanceByName(t)},getButton:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByName(t)},updateDimensions:function(){var t=this,e=new C.Deferred;return t._scrollable?t._scrollable.update().done((function(){e.resolveWith(t)})):e.resolveWith(t),e.promise()},itemOption:function(t,e,n){var i=this,o=this._generateItemsFromData(this.option("items")),r=this._getItemByField(t,o),a=this._itemsRunTimeInfo.getPathFromItem(r);if(r)switch(arguments.length){case 1:return r;case 3:var s=this._tryCreateItemOptionAction(e,r,n,r[e],a);this._changeItemOption(r,e,n);var c=(0,I.getFullOptionName)(a,e);this._tryExecuteItemOptionAction(s)||this._tryChangeLayoutManagerItemOption(c,n)||this.option("items",o);break;default:var d;if((0,l.isObject)(e))if(!this._tryChangeLayoutManagerItemOptions(a,e))(0,u.each)(e,(function(t,e){var n=i._tryCreateItemOptionAction(t,r,e,r[t],a);i._changeItemOption(r,t,e),d||i._tryExecuteItemOptionAction(n)||(d=!0)})),d&&this.option("items",o)}},validate:function(){return y.default.validateGroup(this._getValidationGroup())},getItemID:function(t){return"dx_"+this.option("formID")+"_"+(t||new a.default)},getTargetScreenFactor:function(){return this._targetScreenFactor}});(0,r.default)("dxForm",P),t.exports=P},function(t,e,n){"use strict";var i=T(n(3)),o=T(n(6)),r=T(n(45)),a=T(n(443)),s=T(n(8)),l=n(2),u=T(n(17)),c=n(129),d=T(n(10)),h=T(n(55)),f=n(5),p=n(0),m=n(16),g=T(n(29)),_=T(n(185)),v=T(n(25)),y=T(n(23)),b=T(n(12)),w=T(n(130)),x=T(n(46)),C=T(n(20)),S=T(n(236)),k=T(n(444)),I=T(n(36));function T(t){return t&&t.__esModule?t:{default:t}}function E(t){return(E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n(102),n(142),n(138),n(234),n(42);var P="dx-field-item-content",D=["dataSource","items"],A=["dxTagBox","dxRangeSlider"],R=C.default.inherit({_getDefaultOptions:function(){return(0,p.extend)(this.callBase(),{layoutData:{},readOnly:!1,colCount:1,colCountByScreen:void 0,labelLocation:"left",onFieldDataChanged:null,onEditorEnterKey:null,customizeItem:null,alignItemLabels:!0,minColWidth:200,showRequiredMark:!0,screenByWidth:null,showOptionalMark:!1,requiredMark:"*",optionalMark:b.default.format("dxForm-optionalMark"),requiredMessage:b.default.getFormatter("dxForm-requiredMessage")})},_setOptionsByReference:function(){this.callBase(),(0,p.extend)(this._optionsByReference,{layoutData:!0,validationGroup:!0})},_init:function(){var t=this.option("layoutData");this.callBase(),this._itemWatchers=[],this._itemsRunTimeInfo=new a.default,this._updateReferencedOptions(t),this._initDataAndItems(t)},_dispose:function(){this.callBase(),this._cleanItemWatchers()},_initDataAndItems:function(t){this._syncDataWithItems(),this._updateItems(t)},_syncDataWithItems:function(){var t=this,e=this.option("layoutData"),n=this.option("items");(0,l.isDefined)(n)&&n.forEach((function(n){var i;n.dataField&&void 0===t._getDataByField(n.dataField)&&(n.editorOptions&&(i=n.editorOptions.value),((0,l.isDefined)(i)||n.dataField in e)&&t._updateFieldValue(n.dataField,i))}))},_getDataByField:function(t){return t?this.option("layoutData."+t):null},_isCheckboxUndefinedStateEnabled:function(t){if(!0===t.allowIndeterminateState&&"dxCheckBox"===t.editorType){var e=["layoutData"].concat(O(t.dataField.split("."))),n=e.pop(),i=this.option(e.join("."));return i&&n in i}return!1},_updateFieldValue:function(t,e){var n=this.option("layoutData"),i=e;!(0,c.isWrapped)(n[t])&&(0,l.isDefined)(t)?this.option("layoutData."+t,i):(0,c.isWritableWrapped)(n[t])&&(i=(0,l.isFunction)(i)?i():i,n[t](i)),this._triggerOnFieldDataChanged({dataField:t,value:i})},_triggerOnFieldDataChanged:function(t){this._createActionByOption("onFieldDataChanged")(t)},_updateItems:function(t){var e=this,n=this.option("items"),i=(0,l.isDefined)(n),o=e.option("customizeItem"),r=i?n:this._generateItemsByData(t);if((0,l.isDefined)(r)){var a=[];(0,f.each)(r,(function(t,n){e._isAcceptableItem(n)&&(n=e._processItem(n),o&&o(n),(0,l.isObject)(n)&&!1!==(0,c.unwrap)(n.visible)&&a.push(n))})),e._itemWatchers.length&&i||e._updateItemWatchers(r),this._items=a,this._sortItems()}},_cleanItemWatchers:function(){this._itemWatchers.forEach((function(t){t()})),this._itemWatchers=[]},_updateItemWatchers:function(t){var e=this,n=e._getWatch();t.forEach((function(t){(0,l.isObject)(t)&&(0,l.isDefined)(t.visible)&&(0,l.isFunction)(n)&&e._itemWatchers.push(n((function(){return(0,c.unwrap)(t.visible)}),(function(){e._updateItems(e.option("layoutData")),e.repaint()}),{skipImmediate:!0}))}))},_generateItemsByData:function(t){var e=[];return(0,l.isDefined)(t)&&(0,f.each)(t,(function(t){e.push({dataField:t})})),e},_isAcceptableItem:function(t){var e=t.dataField||t,n=this._getDataByField(e);return!((0,l.isFunction)(n)&&!(0,c.isWrapped)(n))},_processItem:function(t){if("string"===typeof t&&(t={dataField:t}),"object"!==E(t)||t.itemType||(t.itemType="simple"),!(0,l.isDefined)(t.editorType)&&(0,l.isDefined)(t.dataField)){var e=this._getDataByField(t.dataField);t.editorType=(0,l.isDefined)(e)?this._getEditorTypeByDataType((0,l.type)(e)):"dxTextBox"}var n;"dxCheckBox"===t.editorType&&(t.allowIndeterminateState=null===(n=t.allowIndeterminateState)||void 0===n||n);return t},_getEditorTypeByDataType:function(t){switch(t){case"number":return"dxNumberBox";case"date":return"dxDateBox";case"boolean":return"dxCheckBox";default:return"dxTextBox"}},_sortItems:function(){(0,m.normalizeIndexes)(this._items,"visibleIndex"),this._sortIndexes()},_sortIndexes:function(){this._items.sort((function(t,e){var n=t.visibleIndex,i=e.visibleIndex;return n>i?1:n<i?-1:0}))},_initMarkup:function(){this._itemsRunTimeInfo.clear(),this.$element().addClass("dx-layout-manager"),this.callBase(),this._renderResponsiveBox()},_hasBrowserFlex:function(){return"flex"===w.default.styleProp("flex")},_renderResponsiveBox:function(){var t=[];if(this._items&&this._items.length){var e=this._getColCount(),n=(0,i.default)("<div>").appendTo(this.$element());this._prepareItemsWithMerging(e);var o=this._generateLayoutItems();this._extendItemsWithDefaultTemplateOptions(o,this._items),this._responsiveBox=this._createComponent(n,k.default,this._getResponsiveBoxConfig(o,e,t)),d.default.hasWindow()||this._renderTemplates(t)}},_extendItemsWithDefaultTemplateOptions:function(t,e){e.forEach((function(e){e.merged||((0,l.isDefined)(e.disabled)&&(t[e.visibleIndex].disabled=e.disabled),(0,l.isDefined)(e.visible)&&(t[e.visibleIndex].visible=e.visible))}))},_itemStateChangedHandler:function(t){this._refresh()},_renderTemplate:function(t,e){switch(e.itemType){case"empty":this._renderEmptyItem(t);break;case"button":this._renderButtonItem(e,t);break;default:this._renderFieldItem(e,t)}},_renderTemplates:function(t){var e=this;(0,f.each)(t,(function(t,n){e._renderTemplate(n.container,n.formItem)}))},_getResponsiveBoxConfig:function(t,e,n){var o=this,r=o.option("colCountByScreen"),a=r&&r.xs;return{onItemStateChanged:this._itemStateChangedHandler.bind(this),_layoutStrategy:o._hasBrowserFlex()?"flex":"fallback",onLayoutChanged:function(){var t=o.option("onLayoutChanged"),e=o.isSingleColumnMode();t&&(o.$element().toggleClass("dx-layout-manager-one-col",e),t(e))},onContentReady:function(t){d.default.hasWindow()&&o._renderTemplates(n),o.option("onLayoutChanged")&&o.$element().toggleClass("dx-layout-manager-one-col",o.isSingleColumnMode(t.component))},itemTemplate:function(t,r,a){if(t.location){var s=(0,i.default)(a),l=t.location.row*e,u=o._items[t.location.col+l],c=(0,i.default)("<div>").addClass(u.cssClass).appendTo(s);n.push({container:c,formItem:u}),s.toggleClass("dx-single-column-item-content",o.isSingleColumnMode(this)),0===t.location.row&&c.addClass("dx-first-row"),0===t.location.col&&c.addClass("dx-first-col");var d=t.location.col===e-1||t.location.col+t.location.colspan===e,h=o._getRowsCount(),f=t.location.row===h-1;d&&c.addClass("dx-last-col"),f&&c.addClass("dx-last-row")}},cols:o._generateRatio(e),rows:o._generateRatio(o._getRowsCount(),!0),dataSource:t,screenByWidth:o.option("screenByWidth"),singleColumnScreen:!a&&"xs"}},_getColCount:function(){var t=this.option("colCount"),e=this.option("colCountByScreen");if(e){var n=this.option("form").getTargetScreenFactor();n||(n=d.default.hasWindow()?d.default.getCurrentScreenFactor(this.option("screenByWidth")):"lg"),t=e[n]||t}if("auto"===t){if(this._cashedColCount)return this._cashedColCount;this._cashedColCount=t=this._getMaxColCount()}return t<1?1:t},_getMaxColCount:function(){if(!d.default.hasWindow())return 1;var t=this.option("minColWidth"),e=this.$element().width(),n=this._items.length,i=Math.floor(e/t)||1;return n<i?n:i},isCachedColCountObsolete:function(){return this._cashedColCount&&this._getMaxColCount()!==this._cashedColCount},_prepareItemsWithMerging:function(t){var e,n,i,o,r=this._items.slice(0),a=[];for(o=0;o<r.length;o++)if(e=r[o],a.push(e),(this.option("alignItemLabels")||e.alignItemLabels||e.colSpan)&&(e.col=this._getColByIndex(a.length-1,t)),e.colSpan>1&&e.col+e.colSpan<=t){for(n=[],i=0;i<e.colSpan-1;i++)n.push({merged:!0});a=a.concat(n)}else delete e.colSpan;this._items=a},_getColByIndex:function(t,e){return t%e},_generateLayoutItems:function(){var t,e,n=this._items,i=this._getColCount(),o=[];for(e=0;e<n.length;e++)if(!(t=n[e]).merged){var r={location:{row:parseInt(e/i),col:this._getColByIndex(e,i)}};(0,l.isDefined)(t.colSpan)&&(r.location.colspan=t.colSpan),(0,l.isDefined)(t.rowSpan)&&(r.location.rowspan=t.rowSpan),o.push(r)}return o},_renderEmptyItem:function(t){return t.addClass("dx-field-empty-item").html(" ")},_getButtonHorizontalAlignment:function(t){return(0,l.isDefined)(t.horizontalAlignment)?t.horizontalAlignment:(0,l.isDefined)(t.alignment)?(y.default.log("W0001","dxForm","alignment","18.1","Use the 'horizontalAlignment' option in button items instead."),t.alignment):"right"},_getButtonVerticalAlignment:function(t){switch(t.verticalAlignment){case"center":return"center";case"bottom":return"flex-end";default:return"flex-start"}},_renderButtonItem:function(t,e){var n=(0,i.default)("<div>").appendTo(e),o={validationGroup:this.option("validationGroup")};e.addClass("dx-field-button-item").css("textAlign",this._getButtonHorizontalAlignment(t)),e.parent().css("justifyContent",this._getButtonVerticalAlignment(t));var r=this._createComponent(n,"dxButton",(0,p.extend)(o,t.buttonOptions));return this._itemsRunTimeInfo.add({item:t,widgetInstance:r,guid:t.guid,$itemContainer:e}),this._addItemClasses(e,t.col),n},_addItemClasses:function(t,e){t.addClass("dx-field-item").addClass(this.option("cssItemClass")).addClass((0,l.isDefined)(e)?"dx-col-"+e:"")},_renderFieldItem:function(t,e){var n,o=this._getName(t),a=this.getItemID(o),s=(0,l.isDefined)(t.isRequired)?t.isRequired:!!this._hasRequiredRuleInSet(t.validationRules),u=this._getLabelOptions(t,a,s),c=(0,i.default)("<div>"),d=t.helpText?"dx-"+new r.default:null;this._addItemClasses(e,t.col),e.addClass(s?"dx-field-item-required":"dx-field-item-optional"),u.visible&&u.text&&(n=this._renderLabel(u).appendTo(e)),"simple"===t.itemType&&(this._isLabelNeedBaselineAlign(t)&&"top"!==u.location&&e.addClass("dx-field-item-label-align"),this._hasBrowserFlex()&&e.addClass("dx-flex-layout")),c.data("dx-form-item",t),this._appendEditorToField({$fieldItem:e,$label:n,$editor:c,labelOptions:u});var h=this._renderEditor({$container:c,dataField:t.dataField,name:t.name,editorType:t.editorType,editorOptions:t.editorOptions,template:this._getTemplateByFieldItem(t),isRequired:s,helpID:d,labelID:u.labelID,id:a,validationBoundary:this.option("validationBoundary"),allowIndeterminateState:t.allowIndeterminateState});this._itemsRunTimeInfo.add({item:t,widgetInstance:h,guid:t.guid,$itemContainer:e});var f=c.children().first(),p=f.hasClass("dx-template-wrapper")?f.children().first():f;p&&p.data("dx-validation-target")&&this._renderValidator(p,t),this._renderHelpText(t,c,d),this._attachClickHandler(n,c,t.editorType)},_hasRequiredRuleInSet:function(t){var e;return t&&t.length&&(0,f.each)(t,(function(t,n){if("required"===n.type)return e=!0,!1})),e},_getName:function(t){return t.dataField||t.name},_isLabelNeedBaselineAlign:function(t){return!!t.helpText&&!this._hasBrowserFlex()||-1!==(0,m.inArray)(t.editorType,["dxTextArea","dxRadioGroup","dxCalendar","dxHtmlEditor"])},_isLabelNeedId:function(t){return-1!==(0,m.inArray)(t.editorType,["dxRadioGroup","dxCheckBox","dxLookup","dxSlider","dxRangeSlider","dxSwitch","dxHtmlEditor"])},_getLabelOptions:function(t,e,n){var i=(0,p.extend)({showColon:this.option("showColonAfterLabel"),location:this.option("labelLocation"),id:e,visible:!0,isRequired:n},t?t.label:{});return this._isLabelNeedId(t)&&(i.labelID="dx-label-".concat(new r.default)),!i.text&&t.dataField&&(i.text=x.default.captionize(t.dataField)),i.text&&(i.text+=i.showColon?":":""),i},_renderLabel:function(t){var e=t.text,n=t.id,o=t.location,r=t.alignment,a=t.isRequired,s=t.labelID,u=void 0===s?null:s;if((0,l.isDefined)(e)&&e.length>0){var c="dx-field-item-label dx-field-item-label-location-"+o,d=(0,i.default)("<label>").addClass(c).attr("for",n).attr("id",u),h=(0,i.default)("<span>").addClass("dx-field-item-label-content").appendTo(d);return(0,i.default)("<span>").addClass("dx-field-item-label-text").text(e).appendTo(h),r&&d.css("textAlign",r),h.append(this._renderLabelMark(a)),d}},_renderLabelMark:function(t){var e,n=this._getRequiredMarksConfig(),o=n.showRequiredMark&&t,r=n.showOptionalMark&&!t;if(o||r){var a=o?"dx-field-item-required-mark":"dx-field-item-optional-mark",s=o?n.requiredMark:n.optionalMark;e=(0,i.default)("<span>").addClass(a).html(" "+s)}return e},_getRequiredMarksConfig:function(){return this._cashedRequiredConfig||(this._cashedRequiredConfig={showRequiredMark:this.option("showRequiredMark"),showOptionalMark:this.option("showOptionalMark"),requiredMark:this.option("requiredMark"),optionalMark:this.option("optionalMark")}),this._cashedRequiredConfig},_renderEditor:function(t){var e=this._getDataByField(t.dataField),n=void 0!==e||this._isCheckboxUndefinedStateEnabled(t)?{value:e}:{};-1!==A.indexOf(t.editorType)&&(n.value=n.value||[]);var i=this.option("form"),o=(0,p.extend)(!0,n,t.editorOptions,{inputAttr:{id:t.id},validationBoundary:t.validationBoundary,stylingMode:i&&i.option("stylingMode")});this._replaceDataOptions(t.editorOptions,o);var r={editorType:t.editorType,dataField:t.dataField,template:t.template,name:t.name,helpID:t.helpID,labelID:t.labelID,isRequired:t.isRequired};return this._createEditor(t.$container,r,o)},_replaceDataOptions:function(t,e){t&&D.forEach((function(n){e[n]&&(e[n]=t[n])}))},_renderValidator:function(t,e){var n=this._getFieldLabelName(e),i=this._prepareValidationRules(e.validationRules,e.isRequired,e.itemType,n);Array.isArray(i)&&i.length&&this._createComponent(t,S.default,{validationRules:i,validationGroup:this.option("validationGroup"),dataGetter:function(){return{formItem:e}}})},_getFieldLabelName:function(t){var e=t.label&&t.label.text,n=e?null:this._getName(t);return e?t.label.text:n&&x.default.captionize(n)},_prepareValidationRules:function(t,e,n,i){var o;if("simple"===n)if(t)o=t;else{var r=h.default.format(this.option("requiredMessage"),i||"");o=e?[{type:"required",message:r}]:null}return o},_addWrapperInvalidClass:function(t){var e=function(t){(0,i.default)(t.element).parents(".dx-field-item-content-wrapper").toggleClass("dx-invalid",t.component._isFocused()&&!1===t.component.option("isValid"))};t.on("focusIn",e).on("focusOut",e).on("enterKey",e)},_createEditor:function(t,e,n){var o,r=e.template;if(e.dataField&&!n.name&&(n.name=e.dataField),this._addItemContentClasses(t),r){var a={dataField:e.dataField,editorType:e.editorType,editorOptions:n,component:this._getComponentOwner(),name:e.name};r.render({model:a,container:u.default.getPublicElement(t)})}else{var s=(0,i.default)("<div>").appendTo(t);try{(o=this._createComponent(s,e.editorType,n)).setAria("describedby",e.helpID),o.setAria("labelledby",e.labelID),o.setAria("required",e.isRequired),I.default.isMaterial()&&this._addWrapperInvalidClass(o),e.dataField&&this._bindDataField(o,e,t)}catch(l){y.default.log("E1035",l.message)}}return o},_getComponentOwner:function(){return this.option("form")||this},_bindDataField:function(t,e,n){var i=this._getComponentOwner();t.on("enterKey",(function(t){i._createActionByOption("onEditorEnterKey")((0,p.extend)(t,{dataField:e.dataField}))})),this._createWatcher(t,n,e),this.linkEditorToDataField(t,e.dataField,e.editorType)},_createWatcher:function(t,e,n){var i=this,r=i._getWatch();if((0,l.isFunction)(r)){var a=r((function(){return i._getDataByField(n.dataField)}),(function(){t.option("value",i._getDataByField(n.dataField))}),{deep:!0,skipImmediate:!0});o.default.on(e,_.default,a)}},_getWatch:function(){if(!(0,l.isDefined)(this._watch)){var t=this.option("form");this._watch=t&&t.option("integrationOptions.watchMethod")}return this._watch},_addItemContentClasses:function(t){var e=this._getItemContentLocationSpecificClass();t.addClass([P,e].join(" "))},_getItemContentLocationSpecificClass:function(){return"dx-field-item-content-location-"+{right:"left",left:"right",top:"bottom"}[this.option("labelLocation")]},_createComponent:function(t,e,n){var i=this.option("readOnly"),o=this.callBase(t,e,n);return i&&o.option("readOnly",i),this.on("optionChanged",(function(t){"readOnly"!==t.name||(0,l.isDefined)(n.readOnly)||o.option(t.name,t.value)})),o},_getTemplateByFieldItem:function(t){return t.template?this._getTemplate(t.template):null},_appendEditorToField:function(t){if(t.$label){var e=t.labelOptions.location;"top"!==e&&"left"!==e||t.$fieldItem.append(t.$editor),"right"===e&&t.$fieldItem.prepend(t.$editor),this._addInnerItemAlignmentClass(t.$fieldItem,e)}else t.$fieldItem.append(t.$editor)},_addInnerItemAlignmentClass:function(t,e){"top"===e?t.addClass("dx-label-v-align"):t.addClass("dx-label-h-align")},_renderHelpText:function(t,e,n){var o=t.helpText,r="simple"===t.itemType;if(o&&r){var a=(0,i.default)("<div>").addClass("dx-field-item-content-wrapper");e.wrap(a),(0,i.default)("<div>").addClass("dx-field-item-help-text").attr("id",n).text(o).appendTo(e.parent())}},_attachClickHandler:function(t,e,n){t&&("dxCheckBox"===n||"dxSwitch"===n)&&o.default.on(t,v.default.name,(function(){o.default.trigger(e.children(),v.default.name)}))},_generateRatio:function(t,e){var n,i,o=[];for(i=0;i<t;i++)n={ratio:1},e&&(n.baseSize="auto"),o.push(n);return o},_getRowsCount:function(){return Math.ceil(this._items.length/this._getColCount())},_updateReferencedOptions:function(t){var e=this,n=this.option("layoutData");(0,l.isObject)(n)&&Object.getOwnPropertyNames(n).forEach((function(t){return delete e._optionsByReference["layoutData."+t]})),(0,l.isObject)(t)&&Object.getOwnPropertyNames(t).forEach((function(t){return e._optionsByReference["layoutData."+t]=!0}))},_resetWidget:function(t){this._disableEditorValueChangedHandler=!0,t.reset(),this._disableEditorValueChangedHandler=!1,t.option("isValid",!0)},_optionChanged:function(t){var e=this;if(0!==t.fullName.search("layoutData."))switch(t.name){case"showRequiredMark":case"showOptionalMark":case"requiredMark":case"optionalMark":this._cashedRequiredConfig=null,this._invalidate();break;case"layoutData":this._updateReferencedOptions(t.value),this.option("items")?(0,l.isEmptyObject)(t.value)||this._itemsRunTimeInfo.each((function(n,i){if((0,l.isDefined)(i.item)){var o=i.item.dataField;if(o&&(0,l.isDefined)(i.widgetInstance)){var r=g.default.compileGetter(o)(t.value);void 0!==r||e._isCheckboxUndefinedStateEnabled(i.item)?i.widgetInstance.option("value",r):e._resetWidget(i.widgetInstance)}}})):(this._initDataAndItems(t.value),this._invalidate());break;case"items":this._cleanItemWatchers(),this._initDataAndItems(t.value),this._invalidate();break;case"alignItemLabels":case"labelLocation":case"requiredMessage":this._invalidate();break;case"customizeItem":this._updateItems(this.option("layoutData")),this._invalidate();break;case"colCount":this._resetColCount();break;case"minColWidth":"auto"===this.option("colCount")&&this._resetColCount();break;case"readOnly":break;case"width":this.callBase(t),"auto"===this.option("colCount")&&this._resetColCount();break;case"onFieldDataChanged":break;default:this.callBase(t)}},_resetColCount:function(){this._cashedColCount=null,this._invalidate()},linkEditorToDataField:function(t,e){var n=this;this.on("optionChanged",(function(n){n.fullName==="layoutData.".concat(e)&&t._setOptionWithoutOptionChange("value",n.value)})),t.on("valueChanged",(function(t){var i=(0,l.isObject)(t.value)||Array.isArray(t.value);n._disableEditorValueChangedHandler||i&&t.value===t.previousValue||n._updateFieldValue(e,t.value)}))},_dimensionChanged:function(){"auto"===this.option("colCount")&&this.isCachedColCountObsolete()&&this._eventsStrategy.fireEvent("autoColCountChanged")},getItemID:function(t){var e=this.option("form");return e&&e.getItemID(t)},updateData:function(t,e){var n=this;(0,l.isObject)(t)?(0,f.each)(t,(function(t,e){n._updateFieldValue(t,e)})):"string"===typeof t&&n._updateFieldValue(t,e)},getEditor:function(t){return this._itemsRunTimeInfo.findWidgetInstanceByDataField(t)||this._itemsRunTimeInfo.findWidgetInstanceByName(t)},isSingleColumnMode:function(t){var e=this._responsiveBox||t;if(e)return e.option("currentScreenFactor")===e.option("singleColumnScreen")},getItemsRunTimeInfo:function(){return this._itemsRunTimeInfo}});(0,s.default)("dxLayoutManager",R),t.exports=R},function(t,e,n){"use strict";var i=o(n(39));function o(t){return t&&t.__esModule?t:{default:t}}var r=o(n(21)).default.inherit({ctor:function(t,e){var n=this;this.editor=t,this.validator=e,this.validationRequestsCallbacks=(0,i.default)();var o=function(t){n.validationRequestsCallbacks.fire(t)};t.validationRequest.add(o),t.on("disposing",(function(){t.validationRequest.remove(o)}))},getValue:function(){return this.editor.option("value")},getCurrentValidationError:function(){return this.editor.option("validationError")},bypass:function(){return this.editor.option("disabled")},applyValidationResults:function(t){this.editor.option({validationErrors:t.brokenRules,validationStatus:t.status})},reset:function(){this.editor.reset()},focus:function(){this.editor.focus()}});t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,o=n(160),r=(i=o)&&i.__esModule?i:{default:i},a=n(4);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(r,t);var e,n,i,o=h(r);function r(){return l(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_renderWatchers",value:function(){return this._startWatcher("badge",a.noop),c(p(r.prototype),"_renderWatchers",this).call(this)}}])&&u(e.prototype,n),i&&u(e,i),r}(r.default);e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(817),r=(i=o)&&i.__esModule?i:{default:i},a=n(57),s=n(0),l=n(447);function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function f(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){f(n,t);var e=m(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"tryExecute",value:function(){var t=this._options.value,e=this.findInstance();return!!e&&(e.option(t),!0)}}]),n}(r.default),y=function(t){f(n,t);var e=m(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"tryExecute",value:function(){var t=this.findInstance();if(t){var e=this._options,n=e.optionName,i=e.item,o=e.value,r=this._itemsRunTimeInfo.findItemIndexByItem(i);if(r>=0)return t.option((0,l.getFullOptionName)("items[".concat(r,"]"),n),o),!0}return!1}}]),n}(r.default),b=function(t){f(n,t);var e=m(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"tryExecute",value:function(){var t=this.findInstance();if(t){var e=this._options.value;return t.option("dataSource",e),!0}return!1}}]),n}(r.default),w=function(t){f(n,t);var e=m(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"tryExecute",value:function(){var t=this._options.item,e=this.findInstance(),n=e&&(0,a.data)(e.$element()[0],"dxValidator");if(n&&t){var i=function(t){return"required"===t.type},o=(n.option("validationRules")||[]).some(i),r=(t.validationRules||[]).some(i);if(!o&&!r||o&&r)return n.option("validationRules",t.validationRules),!0}return!1}}]),n}(r.default),x=function(t){f(n,t);var e=m(n);function n(){return c(this,n),e.apply(this,arguments)}return h(n,[{key:"tryExecute",value:function(){var t=this.findItemContainer(),e=this._options,n=e.previousValue,i=e.value;return!!t&&(t.removeClass(n).addClass(i),!0)}}]),n}(r.default);e.default=function(t,e){switch(t){case"editorOptions":case"buttonOptions":return new v(e);case"validationRules":return new w(e);case"cssClass":return new x(e);case"badge":case"disabled":case"icon":case"template":case"tabTemplate":case"title":return new y((0,s.extend)(e,{optionName:t}));case"tabs":return new b(e);default:return null}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(21);function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var r=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._options=e,this._itemsRunTimeInfo=this._options.itemsRunTimeInfo}var e,n,r;return e=t,(n=[{key:"findInstance",value:function(){return this._itemsRunTimeInfo.findWidgetInstanceByItem(this._options.item)}},{key:"findItemContainer",value:function(){return this._itemsRunTimeInfo.findItemContainerByItem(this._options.item)}},{key:"tryExecute",value:function(){(0,i.abstract)()}}])&&o(e.prototype,n),r&&o(e,r),t}();e.default=r},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(449));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("validating",o.default)},function(t,e,n){"use strict";var i=a(n(27)),o=a(n(233)),r=a(n(451));function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("virtualScrolling",r.default),o.default.extend(r.default.extenders.dataSourceAdapter)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(453));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterRow",o.default)},function(t,e,n){"use strict";var i=u(n(3)),o=n(4),r=n(17),a=n(90),s=n(0),l=u(n(109));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,l,u=m(c);function c(){return d(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"_getDefaultOptions",value:function(){return(0,s.extend)(f(_(c.prototype),"_getDefaultOptions",this).call(this),{orientation:"horizontal",tabIndex:null,onHoverStart:o.noop})}},{key:"_initDataAdapter",value:function(){this._dataAdapter=this.option("_dataAdapter"),this._dataAdapter||f(_(c.prototype),"_initDataAdapter",this).call(this)}},{key:"_renderContentImpl",value:function(){this._renderContextMenuOverlay(),f(_(c.prototype),"_renderContentImpl",this).call(this);var t=this._dataAdapter.getNodeByKey(this.option("_parentKey"));t&&this._renderItems(this._getChildNodes(t)),this._renderDelimiter()}},{key:"_renderDelimiter",value:function(){this.$contentDelimiter=(0,i.default)("<div>").appendTo(this._itemContainer()).addClass("dx-context-menu-content-delimiter")}},{key:"_getOverlayOptions",value:function(){return(0,s.extend)(f(_(c.prototype),"_getOverlayOptions",this).call(this),{onPositioned:this._overlayPositionedActionHandler.bind(this)})}},{key:"_overlayPositionedActionHandler",value:function(t){this._showDelimiter(t)}},{key:"_hoverEndHandler",value:function(t){f(_(c.prototype),"_hoverEndHandler",this).call(this,t),this._toggleFocusClass(!1,t.currentTarget)}},{key:"_isMenuHorizontal",value:function(){return"horizontal"===this.option("orientation")}},{key:"_hoverStartHandler",value:function(t){this.option("onHoverStart")(t),f(_(c.prototype),"_hoverStartHandler",this).call(this,t),this._toggleFocusClass(!0,t.currentTarget)}},{key:"_drawSubmenu",value:function(t){this._actions.onShowing({rootItem:(0,r.getPublicElement)(t),submenu:this}),f(_(c.prototype),"_drawSubmenu",this).call(this,t),this._actions.onShown({rootItem:(0,r.getPublicElement)(t),submenu:this})}},{key:"_hideSubmenu",value:function(t){this._actions.onHiding({cancel:!0,rootItem:(0,r.getPublicElement)(t),submenu:this}),f(_(c.prototype),"_hideSubmenu",this).call(this,t),this._actions.onHidden({rootItem:(0,r.getPublicElement)(t),submenu:this})}},{key:"_showDelimiter",value:function(t){if(this.$contentDelimiter){var e=this._itemContainer().children(".".concat("dx-submenu")).eq(0),n=this.option("position").of,i={of:e},o=t.position,r=o.v.location,s=o.h.location,l=n.offset(),u=Math.round(l.left),c=Math.round(l.top),d=n.width(),h=n.height(),f=e.width(),p=e.height();this.$contentDelimiter.css("display","block"),this.$contentDelimiter.width(this._isMenuHorizontal()?d<f?d-2:f:2),this.$contentDelimiter.height(this._isMenuHorizontal()?2:h<p?h-2:p),this._isMenuHorizontal()?r>c?Math.round(s)===u?(i.offset="1 -1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="right top"):(this.$contentDelimiter.height(5),Math.round(s)===u?(i.offset="1 4",i.at=i.my="left bottom"):(i.offset="-1 2",i.at=i.my="right bottom")):s>u?Math.round(r)===c?(i.offset="-1 1",i.at=i.my="left top"):(i.offset="-1 -1",i.at=i.my="left bottom"):Math.round(r)===c?(i.offset="1 1",i.at=i.my="right top"):(i.offset="1 -1",i.at=i.my="right bottom"),(0,a.setup)(this.$contentDelimiter,i)}}},{key:"_getContextMenuPosition",value:function(){return this.option("position")}},{key:"isOverlayVisible",value:function(){return this._overlay.option("visible")}},{key:"getOverlayContent",value:function(){return this._overlay.$content()}}])&&h(e.prototype,n),l&&h(e,l),c}(l.default);t.exports=v},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(456));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("headerFilter",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(458));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterSync",o.default)},function(t,e,n){"use strict";var i=n(3),o=n(0).extend;function r(t,e){var n=i("<div>").addClass("dx-filterbuilder-range-start"),r=i("<div>").addClass("dx-filterbuilder-range-end"),a=t.value||[],s=function(t){return t&&t.length>0?t[0]:null},l=function(t){return t&&2===t.length?t[1]:null};e.append(n),e.append(i("<span>").addClass("dx-filterbuilder-range-separator").text("\u2013")),e.append(r),e.addClass("dx-filterbuilder-range"),this._editorFactory.createEditor.call(this,n,o({},t.field,t,{value:s(a),parentType:"filterBuilder",setValue:function(e){a=[e,l(a)],t.setValue(a)}})),this._editorFactory.createEditor.call(this,r,o({},t.field,t,{value:l(a),parentType:"filterBuilder",setValue:function(e){a=[s(a),e],t.setValue(a)}}))}e.getConfig=function(t,e){return{name:"between",caption:t,icon:"range",valueSeparator:"\u2013",dataTypes:["number","date","datetime"],editorTemplate:r.bind(e),notForLookup:!0}}},function(t,e,n){"use strict";var i={"=":"equal","<>":"notequal","<":"less","<=":"lessorequal",">":"greater",">=":"greaterorequal",notcontains:"doesnotcontain",contains:"contains",startswith:"startswith",endswith:"endswith",isblank:"isblank",isnotblank:"isnotblank"},o={"=":"equal","<>":"notEqual","<":"lessThan","<=":"lessThanOrEqual",">":"greaterThan",">=":"greaterThanOrEqual",startswith:"startsWith",contains:"contains",notcontains:"notContains",endswith:"endsWith",isblank:"isBlank",isnotblank:"isNotBlank",between:"between"};t.exports={getIconByFilterOperation:function(t){return i[t]},getNameByFilterOperation:function(t){return o[t]}}},function(t,e,n){"use strict";var i=n(459),o=n(3),r=n(12),a=n(0).extend,s=n(92).DataSource,l=n(7),u=n(238);function c(t){var e=function(t,e){return e?e+"/"+t:t},n=t&&t.getController("headerFilter");return{dataTypes:["string","date","datetime","number","boolean","object"],calculateFilterExpression:function(t,e,n){var i=[],o=t.length-1;return t&&t.forEach((function(t,r){if(u.isCondition(t)||u.isGroup(t)){var a=u.getFilterExpression(t,n,[],"headerFilter");i.push(a)}else i.push(u.getFilterExpression([e.dataField,"=",t],n,[],"headerFilter"));r!==o&&i.push("or")})),1===i.length&&(i=i[0]),i},editorTemplate:function(e,r){var s=o("<div>").addClass("dx-filterbuilder-item-value-text").appendTo(r),l=a(!0,{},t.columnOption(e.field.dataField));(0,i.renderValueText)(s,e.text&&e.text.split("|"));return l.filterType="include",l.filterValues=e.value?e.value.slice():[],n.showHeaderFilterMenuBase({columnElement:s,column:l,apply:function(){var t;t=this.filterValues,e.setValue(t),n.hideHeaderFilterMenu(),e.closeEditor()},onHidden:function(){e.closeEditor()},isFilterBuilder:!0}),r},customizeText:function(i){var o=i.value,r=t.columnOption(i.field.dataField),u=r&&r.headerFilter,c=r&&r.lookup;if(u&&u.dataSource||c&&c.dataSource){r=a({},r,{filterType:"include",filterValues:[o]});var d=n.getDataSource(r);d.paginate=!1;var h=new s(d),f=new l.Deferred,p=h.store().key();return p&&h.filter([p,"=",i.value]),h.load().done((function(t){f.resolve(function t(n,i){var o=[];return n.forEach((function(n){if(n.items){var r=t(n.items,e(n.text,i));o=o.concat(r)}n.selected&&o.push(e(n.text,i))})),o}(t)[0])})),f}return n.getHeaderItemText(o,r,0,t.option("headerFilter"))}}}e.anyOf=function(t){return a(c(t),{name:"anyof",icon:"selectall",caption:r.format("dxFilterBuilder-filterOperationAnyOf")})},e.noneOf=function(t){var e=c(t);return a({},e,{calculateFilterExpression:function(t,n,i){var o=e.calculateFilterExpression(t,n,i);return o&&0!==o.length?"!"===o[0]?o:["!",o]:null},name:"noneof",icon:"unselectall",caption:r.format("dxFilterBuilder-filterOperationNoneOf")})}},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(460));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterBuilder",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(462));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterPanel",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(463));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("search",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(464));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("pager",o.default)},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(21),a=n(55),s=n(8),l=n(4),u=n(5).each,c=n(2),d=n(0).extend,h=n(25),f=n(28),p=n(12),m=n(20),g=n(110),_=n(142),v=n(11),y=n(125),b=r.inherit({ctor:function(t,e){this.index=e,this._$page=i("<div>").text(t).addClass("dx-page")},value:function(t){if(!c.isDefined(t)){var e=this._$page.text();return c.isNumeric(e)?parseInt(e):e}this._$page.text(t)},element:function(){return this._$page},select:function(t){this._$page.toggleClass("dx-selection",t)},render:function(t,e){e?this._$page.prependTo(t):this._$page.appendTo(t)}}),w=m.inherit({_getDefaultOptions:function(){return d(this.callBase(),{visible:!0,pagesNavigatorVisible:"auto",pageIndex:1,maxPagesCount:10,pageCount:10,totalCount:0,pageSize:5,showPageSizes:!0,pageSizes:[5,10],hasKnownLastPage:!0,showNavigationButtons:!1,showInfo:!1,infoText:p.getFormatter("dxPager-infoText"),pagesCountText:p.getFormatter("dxPager-pagesCountText"),rtlEnabled:!1,lightModeEnabled:!1,pageIndexChanged:l.noop,pageSizeChanged:l.noop})},_toggleVisibility:function(t){var e=this.$element();e&&e.css("display",t?"":"none")},_getPages:function(t,e){var n,i,o=[],r=!this.option("hasKnownLastPage");if(e>0||r)if(e<=this.option("maxPagesCount")){for(i=1;i<=e;i++)o.push(new b(i,i-1));r&&o.push(new b(">",i-1))}else{for(o.push(new b(1,0)),n=t?t.value()-t.index:1,i=1;i<=4;i++)o.push(new b(n+i,i));o.push(new b(e,5)),r&&o.push(new b(">",5))}return o},_getPageByValue:function(t){var e,n;for(n=0;n<this._pages.length;n++)if((e=this._pages[n]).value()===t)return e},_processSelectedPage:function(t,e,n){var i,o=!1;this._pages&&(u(this._pages,(function(t,n){e===n.value()&&(o=!0)})),o||(this.selectedPage=null)),c.isDefined(this.selectedPage)?e===n&&n>t&&5!==this.selectedPage.index&&(this.selectedPage.index=5):e>4&&e<n&&(i=n-4<e?4-(n-e)+1:2,this.selectedPage=new b(e,i))},_selectPageByValue:function(t){var e,n,i,o=this._getPageByValue(t),r=this._pages,a=r.length;if(c.isDefined(o)){var s=this._pages[o.index-1];if((n=this._pages[o.index+1])&&">"===n.value()&&(i=n,n=void 0,a--,r.pop()),this.selectedPage&&this.selectedPage.select(!1),o.select(!0),this.selectedPage=o,n&&n.value()-t>1)if(0!==o.index)for(s.value(t+1),this._pages.splice(o.index,1),this._pages.splice(o.index-1,0,o),this._pages[o.index].index=o.index,o.index=o.index-1,e=o.index-1;e>0;e--)this._pages[e].value(this._pages[e+1].value()-1);else for(e=0;e<a-1;e++)this._pages[e].value(e+1);if(s&&t-s.value()>1)if(o.index!==a-1)for(n.value(t-1),this._pages.splice(o.index,1),this._pages.splice(o.index+1,0,o),this._pages[o.index].index=o.index,o.index=o.index+1,e=o.index+1;e<a-1;e++)this._pages[e].value(this._pages[e-1].value()+1);else for(e=1;e<=a-2;e++)this._pages[a-1-e].value(this._pages[a-1].value()-e);i&&r.push(i)}},_updatePagesTabIndices:function(){var t=this,e=this.selectedPage._$page;o.on(e,"focus",(function n(){var r=i(t.element()).find("[role=button]:not(.dx-button-disable)");u(r,(function(t,e){return i(e).attr("tabindex",0)})),o.off(e,"focus",n)}))},_nextPage:function(t){var e=this.option("pageIndex"),n=this.option("pageCount");c.isDefined(e)&&(e="next"===t?++e:--e)>0&&e<=n&&this.option("pageIndex",e)},_wrapClickAction:function(t){var e=this;return function(n){if("dxpointerup"===n.type)e._pointerUpHappened=!0;else if(e._pointerUpHappened)return void(e._pointerUpHappened=!1);t({event:n})}},_renderPages:function(t){var e,n,r=this,a=t.length,s=r._createAction((function(t){var e=t.event,n=i(e.target).text(),o=">"===n?r.option("pageCount")+1:Number(n);r.option("pageIndex",o)}));a>1&&(r._pageClickHandler=this._wrapClickAction(s),o.on(r._$pagesChooser,v.addNamespace([f.up,h.name],r.Name+"Pages"),".dx-page",r._pageClickHandler),y.registerKeyboardAction("pager",r,r._$pagesChooser,".dx-page",s));for(var l=0;l<a;l++)(n=t[l]).render(r._$pagesChooser,r.option("rtlEnabled")),r.setAria({role:"button",label:"Page "+n.value()},n.element()),y.setTabIndex(r,n.element()),t[l+1]&&t[l+1].value()-n.value()>1&&(e=i("<div>").text(". . .").addClass("dx-separator"),r.option("rtlEnabled")?e.prependTo(r._$pagesChooser):e.appendTo(r._$pagesChooser))},_calculateLightPagesWidth:function(t,e){return Number(t.css("minWidth").replace("px",""))+10*e.toString().length},_renderLightPages:function(){var t=this,e=this.option("pageCount"),n=this.option("pageIndex"),r=t._createAction((function(){t.option("pageIndex",e)})),a=this.option("pagesCountText"),s=i("<div>").addClass("dx-light-pages").appendTo(this._$pagesChooser),l=i("<div>").addClass("dx-page-index").appendTo(s);t._pageIndexEditor=t._createComponent(l,_,{value:n,min:1,max:e,width:t._calculateLightPagesWidth(l,e),onValueChanged:function(e){t.option("pageIndex",e.value)}}),i("<span>").text(a).addClass("dx-info-text dx-info").appendTo(s);var u=i("<span>").addClass("dx-pages-count").text(e);o.on(u,v.addNamespace(h.name,t.Name+"PagesCount"),(function(t){r({event:t})})),y.registerKeyboardAction("pager",t,u,void 0,r),u.appendTo(s),t.setAria({role:"button",label:"Navigates to the last page"},u)},_renderPagesChooser:function(){var t=this.option("lightModeEnabled"),e=this.option("pagesNavigatorVisible"),n=this.$element();this._$pagesChooser&&this._$pagesChooser.remove(),e&&(this._pages&&0===this._pages.length?this.selectedPage=null:(this._$pagesChooser=i("<div>").addClass("dx-pages").appendTo(n),"auto"===e&&this._$pagesChooser.css("visibility",1===this.option("pageCount")?"hidden":""),t||this._renderInfo(),this._renderNavigateButton("prev"),t?this._renderLightPages():this._renderPages(this._pages),this._renderNavigateButton("next"),this._updatePagesChooserWidth()))},_renderPageSizes:function(){var t,e,n,r=this,a=r.option("pageSizes"),s=a&&a.length,l=r.option("pageSize"),u=r._createAction((function(t){var n=t.event;e=parseInt(i(n.target).text()),r.option("pageSize",e)}));for(o.on(r._$pagesSizeChooser,v.addNamespace(h.name,r.Name+"PageSize"),".dx-page-size",(function(t){u({event:t})})),y.registerKeyboardAction("pager",r,r._$pagesSizeChooser,".dx-page-size",u),t=0;t<s;t++)n=i("<div>").text(a[t]).addClass("dx-page-size"),r.setAria({role:"button",label:"Display "+a[t]+" items on page"},n),y.setTabIndex(r,n),l===a[t]&&n.addClass("dx-selection"),r._$pagesSizeChooser.append(n)},_calculateLightPageSizesWidth:function(t){return Number(this._$pagesSizeChooser.css("minWidth").replace("px",""))+10*Math.max.apply(Math,t).toString().length},_renderLightPageSizes:function(){var t=this,e=t.option("pageSizes"),n=i("<div>").appendTo(t._$pagesSizeChooser);t._pageSizeEditor=t._createComponent(n,g,{dataSource:e,value:t.option("pageSize"),onSelectionChanged:function(e){t.option("pageSize",e.selectedItem)},width:t._calculateLightPageSizesWidth(e)})},_renderPagesSizeChooser:function(){var t=this.option("pageSizes"),e=this.option("showPageSizes"),n=t&&t.length,o=this.$element();this._$pagesSizeChooser&&this._$pagesSizeChooser.remove(),e&&n&&(this._$pagesSizeChooser=i("<div>").addClass("dx-page-sizes").appendTo(o),this.option("lightModeEnabled")?this._renderLightPageSizes():this._renderPageSizes(),this._pagesSizeChooserWidth=this._$pagesSizeChooser.width())},_renderInfo:function(){var t=this.option("infoText");this.option("showInfo")&&c.isDefined(t)&&(this._$info=i("<div>").css("display",this._isInfoHide?"none":"").addClass("dx-info").text(a.format(t,this.selectedPage&&this.selectedPage.value(),this.option("pageCount"),this.option("totalCount"))).appendTo(this._$pagesChooser),this._isInfoHide||(this._infoWidth=this._$info.outerWidth(!0)))},_renderNavigateButton:function(t){var e,n=this,r=n._createAction((function(){n._nextPage(t)}));(n.option("showNavigationButtons")||n.option("lightModeEnabled"))&&(e=i("<div>").addClass("dx-navigate-button"),o.on(e,v.addNamespace([f.up,h.name],n.Name+"Pages"),n._wrapClickAction(r)),y.registerKeyboardAction("pager",n,e,void 0,r),n.setAria({role:"button",label:"prev"===t?"Previous page":" Next page"},e),y.setTabIndex(n,e),n.option("rtlEnabled")?(e.addClass("prev"===t?"dx-next-button":"dx-prev-button"),e.prependTo(this._$pagesChooser)):(e.addClass("prev"===t?"dx-prev-button":"dx-next-button"),e.appendTo(this._$pagesChooser)))},_renderContentImpl:function(){this.$element().toggleClass("dx-light-mode",this.option("lightModeEnabled")),this._toggleVisibility(this.option("visible")),this._updatePageSizes(!0),this._updatePages(!0),y.restoreFocus(this)},_initMarkup:function(){var t=this.$element();t.addClass("dx-pager");var e=i("<div>").addClass("dx-page");this._$pagesChooser=i("<div>").addClass("dx-pages").append(e).appendTo(t)},_render:function(){this.option().lightModeEnabled=!1,this.callBase(),this._updateLightMode()},_updatePageSizes:function(t){var e=this.option("lightModeEnabled"),n=this.option("pageSize"),i=this.option("pageSizes");e&&this._pageSizeEditor&&this._pageSizeEditor.option({value:n,dataSource:i,width:this._calculateLightPageSizesWidth(i)}),e&&!t||this._renderPagesSizeChooser()},_updatePages:function(t){var e=this.option("pageCount"),n=this.option("pageIndex"),i=this.option("lightModeEnabled");i?this._pageIndexEditor&&this._pageIndexEditor.option({value:n,width:this._calculateLightPagesWidth(this._pageIndexEditor.$element(),e)}):(this._processSelectedPage(this.option("maxPagesCount"),n,e),this._pages=this._getPages(this.selectedPage,e),this._selectPageByValue(n)),i&&!t||this._renderPagesChooser(),this._updateButtonsState(n)},_isPageIndexInvalid:function(t,e){var n="next"===t,i=this.option("rtlEnabled");return i&&n||!i&&!n?e<=1:e>=this.option("pageCount")},_updateButtonsState:function(t){var e=this.$element().find(".dx-next-button"),n=this.$element().find(".dx-prev-button");e.toggleClass("dx-button-disable",this._isPageIndexInvalid("next",t)),n.toggleClass("dx-button-disable",this._isPageIndexInvalid("prev",t))},_optionChanged:function(t){switch(t.name){case"visible":this._toggleVisibility(t.value);break;case"pageIndex":var e=this.option("pageIndexChanged");e&&e(t.value),this._updatePages();break;case"maxPagesCount":case"pageCount":case"totalCount":case"hasKnownLastPage":case"pagesNavigatorVisible":case"showNavigationButtons":this._updatePages();break;case"pageSize":var n=this.option("pageSizeChanged");n&&n(t.value),this._updatePageSizes();break;case"pageSizes":this._updatePageSizes();break;case"lightModeEnabled":this._renderContentImpl(),!t.value&&this._updateLightMode();break;default:this._invalidate()}},_clean:function(){this._$pagesChooser&&(o.off(this._$pagesChooser,v.addNamespace([f.up,h.name],this.Name+"Pages"),".dx-page",this._pageClickHandler),y.registerKeyboardAction("pager",this,this._$pagesChooser,".dx-page",this._pageKeyDownHandler)),this.callBase()},_getMinPagerWidth:function(){return(c.isDefined(this._pagesChooserWidth)?this._pagesChooserWidth:0)+(c.isDefined(this._pagesSizeChooserWidth)?this._pagesSizeChooserWidth:0)},_updatePagesChooserWidth:l.deferUpdater((function(){var t=this._pages&&this._pages.length>0?this._pages[this._pages.length-1]._$page.width():0;this._pagesChooserWidth=this._$pagesChooser.width()+t})),_updateLightMode:l.deferUpdater((function(){var t=this,e=this.$element().width(),n=c.isDefined(this._infoWidth)?this._infoWidth:0;l.deferRender((function(){t._isInfoHide&&e>t._getMinPagerWidth()+n&&(t._$info.show(),t._updatePagesChooserWidth(),t._isInfoHide=!1),!t._isInfoHide&&e>t._getMinPagerWidth()-n&&e<t._getMinPagerWidth()&&(t._$info.hide(),t._updatePagesChooserWidth(),t._isInfoHide=!0),l.deferUpdate((function(){l.deferRender((function(){t.option("lightModeEnabled")&&e>t._previousWidth?t.option("lightModeEnabled",!1):e<t._getMinPagerWidth()&&t.option("lightModeEnabled",!0),t._previousWidth=e}))}))}))})),_dimensionChanged:function(){this._updateLightMode()},getHeight:function(){return this.option("visible")?this.$element().outerHeight():0}});t.exports=w,s("dxPager",w)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(465));function r(t){return t&&t.__esModule?t:{default:t}}e.DraggingHeaderView=o.default.views.draggingHeaderView,e.DraggingHeaderViewController=o.default.controllers.draggingHeader,e.ColumnsSeparatorView=o.default.views.columnsSeparatorView,e.TablePositionViewController=o.default.controllers.tablePosition,e.ColumnsResizerViewController=o.default.controllers.columnsResizer,e.TrackerView=o.default.views.trackerView,i.default.registerModule("columnsResizingReordering",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(466));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("keyboardNavigation",o.default)},function(t,e,n){"use strict";var i=v(n(3)),o=n(4),r=n(2),a=n(5),s=n(0),l=n(29),u=v(n(23)),c=v(n(27)),d=v(n(12)),h=v(n(233)),f=v(n(198)),p=v(n(835)),m=v(n(61)),g=n(133),_=n(60);function v(t){return t&&t.__esModule?t:{default:t}}var y=function(t,e){var n=(0,i.default)(t),o=e.column,r=e.summaryItems,a=[];if(!o.command&&r){for(var s=0;s<r.length;s++){var l=r[s];a.push((0,i.default)("<div>").css("textAlign",l.alignment||o.alignment).addClass("dx-datagrid-summary-item").addClass("dx-datagrid-text-content").addClass(l.cssClass).toggleClass("dx-datagrid-group-text-content","group"===e.rowType).text(c.default.getSummaryText(l,e.summaryTexts)))}n.append(a)}},b=function(t,e){var n=t.option("summary.texts")||{};return{totalItem:e.row,summaryItems:e.row.summaryCells[e.columnIndex],summaryTexts:n}},w=function(t){return t.summary||t.aggregates||[]},x=function(t){return t.option("summary.recalculateWhileEditing")};e.FooterView=f.default.ColumnsView.inherit({_getRows:function(){return this._dataController.footerItems()},_getCellOptions:function(t){return(0,s.extend)(this.callBase(t),b(this,t))},_renderCellContent:function(t,e){y(t,e),this.callBase(t,e)},_renderCore:function(t){var e=this._dataController.footerItems()[0];t&&t.columnIndices||this.element().empty().addClass("dx-datagrid-total-footer").toggleClass("dx-datagrid-nowrap",!this.option("wordWrapEnabled")),e&&e.summaryCells&&e.summaryCells.length&&this._updateContent(this._renderTable({change:t}),t)},_updateContent:function(t,e){if(!e||"update"!==e.changeType||!e.columnIndices)return this.callBase.apply(this,arguments);var n=this._getTableElement().find(".dx-row"),i=t.find(".dx-row");this._updateCells(n,i,e.columnIndices[0])},_rowClick:function(t){var e=this._dataController.footerItems()[t.rowIndex]||{};this.executeAction("onRowClick",(0,s.extend)({},t,e))},_columnOptionChanged:function(t){var e=t.optionNames;t.changeTypes.grouping||(e.width||e.visibleWidth)&&this.callBase(t)},_handleDataChanged:function(t){var e=t.changeType;"update"===t.changeType&&t.repaintChangesOnly?t.totalColumnIndices?t.totalColumnIndices.length&&this.render(null,{changeType:"update",columnIndices:[t.totalColumnIndices]}):this.render():"refresh"!==e&&"append"!==e&&"prepend"!==e||this.render()},getHeight:function(){return this.getElementHeight()},isVisible:function(){return!!this._dataController.footerItems().length}});var C={init:function(){this.callBase.apply(this,arguments),this._totalAggregates=[],this._summaryGetter=o.noop},summaryGetter:function(t){if(!arguments.length)return this._summaryGetter;(0,r.isFunction)(t)&&(this._summaryGetter=t)},summary:function(t){if(!arguments.length)return this._summaryGetter();this._summaryGetter=function(){return t}},totalAggregates:function(){return this._totalAggregates},isLastLevelGroupItemsPagingLocal:function(){var t=this.summary(),e=t&&t.sortByGroups();return e&&e.length},sortLastLevelGroupItems:function(t,e,n){var i=(0,g.multiLevelGroup)((0,m.default)(t),e).toArray(),o=[];return n.forEach((function(t){!function t(e,n,i,o){o=o||[];for(var r=0;r<e.length;r++)o.push(e[r].key),1===n?i(o,e[r].items):t(e[r].items,n-1,i,o),o.pop()}(i,e.length,(function(e,n){t.toString()===e.toString()&&(o=o.concat(n))}))})),o}},S=function(){var t=function(t,e,n,i){var o;if(x(t)){var r=t.getController("editing");if(r){var a=r.getInsertedData();a.length&&(n=function t(e,n,i){return i?t(e,n.map((function(t){return{items:[t]}}),i-1)):e.concat(n)}(n,a,i));var l=r.getRemovedData();l.length&&(n=function t(e,n,i){return i?e.map((function(e){var o={},r=t(e.items||[],n,i-1);return Object.defineProperty(o,"aggregates",{get:function(){return e.aggregates},set:function(t){e.aggregates=t}}),(0,s.extend)(o,e,{items:r})})):e.filter((function(t){return n.indexOf(t)<0}))}(n,l,i))}}return e&&(o=new p.default({totalAggregates:e.totalAggregates,groupAggregates:e.groupAggregates,data:n,groupLevel:i})).calculate(),o?o.totalAggregates():[]},e=function(t,e,n){var i=n&&n.sortByGroups&&n.sortByGroups();return i&&i.length?function t(e,n,i){if(!e||!n.length)return e;var o,r=n[0],s=i[0];return r&&s&&s.length&&(o=(0,m.default)(e),(0,a.each)(s,(function(t){o=0===t?o.sortBy(this.selector,this.desc):o.thenBy(this.selector,this.desc)})),o.enumerate().done((function(t){e=t}))),n=n.slice(1),i=i.slice(1),n.length&&i.length&&(0,a.each)(e,(function(){this.items=t(this.items,n,i)})),e}(t,e,i):t};return{_customizeRemoteOperations:function(t){var e=this.summary();e&&(t.remoteOperations.summary?t.isCustomLoading&&!t.storeLoadOptions.isLoadingAll||(t.storeLoadOptions.group&&(t.remoteOperations.grouping?t.storeLoadOptions.groupSummary=e.groupAggregates:e.groupAggregates.length&&(t.remoteOperations.paging=!1)),t.storeLoadOptions.totalSummary=e.totalAggregates):(e.totalAggregates.length||e.groupAggregates.length&&t.storeLoadOptions.group)&&(t.remoteOperations.paging=!1)),this.callBase.apply(this,arguments);var n=t.cachedPagesData.extra;n&&n.summary&&!t.isCustomLoading&&(t.storeLoadOptions.totalSummary=void 0)},_handleDataLoadedCore:function(n){var i,o=(0,_.normalizeSortingInfo)(n.storeLoadOptions.group||n.loadOptions.group||[]),a=n.remoteOperations||{},s=this.summaryGetter()(a);n.isCustomLoading&&!n.storeLoadOptions.isLoadingAll||(a.summary?!a.paging&&o.length&&s&&(a.grouping||t(this,{groupAggregates:s.groupAggregates},n.data,o.length),n.data=e(n.data,o,s)):a.paging||(i=t(this,s,n.data,o.length),n.data=e(n.data,o,s),n.extra=(0,r.isPlainObject)(n.extra)?n.extra:{},n.extra.summary=i)),n.isCustomLoading||(this._totalAggregates=n.extra&&n.extra.summary||this._totalAggregates),this.callBase(n)}}}();h.default.extend(C),h.default.extend(S),e.renderSummaryCell=y,c.default.registerModule("summary",{defaultOptions:function(){return{summary:{groupItems:void 0,totalItems:void 0,calculateCustomSummary:void 0,skipEmptyValues:!0,recalculateWhileEditing:!1,texts:{sum:d.default.getFormatter("dxDataGrid-summarySum"),sumOtherColumn:d.default.getFormatter("dxDataGrid-summarySumOtherColumn"),min:d.default.getFormatter("dxDataGrid-summaryMin"),minOtherColumn:d.default.getFormatter("dxDataGrid-summaryMinOtherColumn"),max:d.default.getFormatter("dxDataGrid-summaryMax"),maxOtherColumn:d.default.getFormatter("dxDataGrid-summaryMaxOtherColumn"),avg:d.default.getFormatter("dxDataGrid-summaryAvg"),avgOtherColumn:d.default.getFormatter("dxDataGrid-summaryAvgOtherColumn"),count:d.default.getFormatter("dxDataGrid-summaryCount")}},sortByGroupSummaryInfo:void 0}},views:{footerView:e.FooterView},extenders:{controllers:{data:{_isDataColumn:function(t){return t&&(!(0,r.isDefined)(t.groupIndex)||t.showWhenGrouped)},_isGroupFooterVisible:function(){for(var t=this.option("summary.groupItems")||[],e=0;e<t.length;e++){var n=t[e],i=this._columnsController.columnOption(n.showInColumn||n.column);if(n.showInGroupFooter&&this._isDataColumn(i))return!0}return!1},_processGroupItems:function(t,e,n){var i=n&&n.data,o=this.callBase.apply(this,arguments);return n&&(void 0===n.isGroupFooterVisible&&(n.isGroupFooterVisible=this._isGroupFooterVisible()),i&&i.items&&n.isGroupFooterVisible&&(n.collectContinuationItems||!i.isContinuationOnNextPage)&&o.push({rowType:"groupFooter",key:n.path.slice(),data:i,groupIndex:n.path.length-1,values:[]})),o},_processGroupItem:function(t,e){var n=this;if(e.summaryGroupItems||(e.summaryGroupItems=n.option("summary.groupItems")||[]),"group"===t.rowType){var i=-1,o=-1;(0,a.each)(e.visibleColumns,(function(n){var r=e.visibleColumns[n-1];t.groupIndex===this.groupIndex&&(i=this.index),n>0&&"expand"===r.command&&"expand"!==this.command&&(o=this.index)})),t.summaryCells=this._calculateSummaryCells(e.summaryGroupItems,w(t.data),e.visibleColumns,(function(t,e){return t.showInGroupFooter?-1:t.alignByColumn&&e&&!(0,r.isDefined)(e.groupIndex)&&e.index!==o?e.index:i}))}return"groupFooter"===t.rowType&&(t.summaryCells=this._calculateSummaryCells(e.summaryGroupItems,w(t.data),e.visibleColumns,(function(t,e){return t.showInGroupFooter&&n._isDataColumn(e)?e.index:-1}))),t},_calculateSummaryCells:function(t,e,n,i){var o=this,l=[],u={};return(0,a.each)(t,(function(t,n){var a=o._columnsController.columnOption(n.column),l=n.showInColumn&&o._columnsController.columnOption(n.showInColumn)||a,d=i(n,l);if(d>=0){u[d]||(u[d]=[]);var h,f=e[t];f===f&&((0,r.isDefined)(n.valueFormat)?h=n.valueFormat:"count"!==n.summaryType&&(h=c.default.getFormatByDataType(a&&a.dataType)),u[d].push((0,s.extend)({},n,{value:(0,r.isString)(f)&&a&&a.deserializeValue?a.deserializeValue(f):f,valueFormat:h,columnCaption:a&&a.index!==d?a.caption:void 0})))}})),(0,r.isEmptyObject)(u)||(0,a.each)(n,(function(){l.push(u[this.index]||[])})),l},_getSummaryCells:function(t,e){var n=this,i=n._columnsController;return n._calculateSummaryCells(t,e,i.getVisibleColumns(),(function(t,e){return n._isDataColumn(e)?e.index:-1}))},_updateItemsCore:function(t){var e,n=this._dataSource,i=this._footerItems,o=i&&i[0]&&i[0].summaryCells,r=this.option("summary.totalItems");if(this._footerItems=[],n&&r&&r.length){var a=n.totalAggregates();e=this._getSummaryCells(r,a),t&&t.repaintChangesOnly&&o&&(t.totalColumnIndices=e.map((function(t,e){return JSON.stringify(t)!==JSON.stringify(o[e])?e:-1})).filter((function(t){return t>=0}))),e.length&&this._footerItems.push({rowType:"totalFooter",summaryCells:e})}this.callBase(t)},_prepareUnsavedDataSelector:function(t){if(x(this)){var e=this.getController("editing");if(e)return function(n){return n=e.getUpdatedData(n),t(n)}}return t},_prepareAggregateSelector:function(t,e){return t=this._prepareUnsavedDataSelector(t),"avg"===e||"sum"===e?function(e){var n=t(e);return(0,r.isDefined)(n)?Number(n):n}:t},_getAggregates:function(t,e){var n=this,i=n.getController("columns"),o=n.option("summary.calculateCustomSummary"),s=n.option("summary.skipEmptyValues");return(0,a.map)(t||[],(function(t){var a=i.columnOption(t.column),c=a&&a.calculateCellValue?a.calculateCellValue.bind(a):(0,l.compileGetter)(a?a.dataField:t.column),d=t.summaryType||"count",h=t.column,f=(0,r.isDefined)(t.skipEmptyValues)?t.skipEmptyValues:s;if(e)return{selector:t.column,summaryType:d};if(h=n._prepareAggregateSelector(c,d),"custom"===d){o||(u.default.log("E1026"),o=function(){});var p={component:n.component,name:t.name};o(p),p.summaryProcess="calculate",d={seed:function(t){return p.summaryProcess="start",p.totalValue=void 0,p.groupIndex=t,delete p.value,o(p),p.totalValue},step:function(t,e){return p.summaryProcess="calculate",p.totalValue=t,p.value=e,o(p),p.totalValue},finalize:function(t){return p.summaryProcess="finalize",p.totalValue=t,delete p.value,o(p),p.totalValue}}}return{selector:h,aggregator:d,skipEmptyValues:f}}))},_addSortInfo:function(t,e,n,i){if(e){var o=e.groupIndex;i=i||e.sortOrder,(0,r.isDefined)(o)&&(t[o]=t[o]||[],t[o].push({selector:n,desc:"desc"===i}))}},_findSummaryItem:function(t,e){var n=-1;return(0,r.isDefined)(e)&&(0,a.each)(t||[],(function(t){if(this.name===e||t===e||this.summaryType===e||this.column===e||function(t){var e=t.summaryType,n=t.column;return e&&n&&e+"_"+n}(this)===e)return n=t,!1})),n},_getSummarySortByGroups:function(t,e){var n=this,i=n._columnsController,o=i.getGroupColumns(),s=[];if(e&&e.length)return(0,a.each)(t||[],(function(){var t=this.sortOrder,l=this.groupColumn,u=n._findSummaryItem(e,this.summaryItem);if(!(u<0)){var c=function(t){return w(t)[u]};(0,r.isDefined)(l)?(l=i.columnOption(l),n._addSortInfo(s,l,c,t)):(0,a.each)(o,(function(e,i){n._addSortInfo(s,i,c,t)}))}})),s},_createDataSourceAdapterCore:function(t,e){var n=this,i=this.callBase(t,e);return i.summaryGetter((function(t){return n._getSummaryOptions(t||e)})),i},_getSummaryOptions:function(t){var e=this,n=e.option("summary.groupItems"),i=e.option("summary.totalItems"),o=e.option("sortByGroupSummaryInfo"),r=e._getAggregates(n,t&&t.grouping&&t.summary),a=e._getAggregates(i,t&&t.summary);if(r.length||a.length)return{groupAggregates:r,totalAggregates:a,sortByGroups:function(){return e._getSummarySortByGroups(o,n)}}},publicMethods:function(){var t=this.callBase();return t.push("getTotalSummaryValue"),t},getTotalSummaryValue:function(t){var e=this._findSummaryItem(this.option("summary.totalItems"),t),n=this._dataSource.totalAggregates();if(n.length&&e>-1)return n[e]},optionChanged:function(t){"summary"!==t.name&&"sortByGroupSummaryInfo"!==t.name||(t.name="dataSource"),this.callBase(t)},init:function(){this._footerItems=[],this.callBase()},footerItems:function(){return this._footerItems}},editing:{_refreshSummary:function(){x(this)&&!this.isSaving()&&this._dataController.refresh({load:!0,changesOnly:!0})},_addEditData:function(t){var e=this.callBase.apply(this,arguments);return t.type&&this._refreshSummary(),e},_removeEditDataItem:function(){var t=this.callBase.apply(this,arguments);return this._refreshSummary(),t},cancelEditData:function(){var t=this.callBase.apply(this,arguments);return this._refreshSummary(),t}}},views:{rowsView:{_createRow:function(t){var e=this.callBase(t);return t&&e.addClass("groupFooter"===t.rowType?"dx-datagrid-group-footer":""),e},_renderCells:function(t,e){this.callBase.apply(this,arguments),"group"===e.row.rowType&&e.row.summaryCells&&e.row.summaryCells.length&&this._renderGroupSummaryCells(t,e)},_hasAlignByColumnSummaryItems:function(t,e){return!(0,r.isDefined)(e.columns[t].groupIndex)&&e.row.summaryCells[t].length},_getAlignByColumnCellCount:function(t,e){for(var n=0,i=1;i<t;i++){var o=e.row.summaryCells.length-i;n=this._hasAlignByColumnSummaryItems(o,e)?i:n}return n},_renderGroupSummaryCells:function(t,e){var n=t.children().last(),i=Number(n.attr("colSpan"))||1,o=this._getAlignByColumnCellCount(i,e);this._renderGroupSummaryCellsCore(n,e,i,o)},_renderGroupSummaryCellsCore:function(t,e,n,i){if(i>0){t.attr("colSpan",n-i);for(var o=0;o<i;o++){var r=e.columns.length-i+o;this._renderCell(t.parent(),(0,s.extend)({column:e.columns[r],columnIndex:this._getSummaryCellIndex(r,e.columns)},e))}}},_getSummaryCellIndex:function(t){return t},_getCellTemplate:function(t){return!t.column.command&&!(0,r.isDefined)(t.column.groupIndex)&&t.summaryItems&&t.summaryItems.length?y:this.callBase(t)},_getCellOptions:function(t){var e=this.callBase(t);return t.row.summaryCells?(0,s.extend)(e,b(this,t)):e}}}}})},function(t,e,n){"use strict";var i,o=n(21),r=(i=o)&&i.__esModule?i:{default:i},a=n(29),s=n(2),l=n(78),u=n(60);function c(t,e,n,i){var o=0;if(t<e)for(;o<n.items.length;o++)c(t+1,e,n.items[o],i);t===e&&i(n)}function d(t,e){var n;if("map"in t)return t.map(e);var i=new Array(t.length);for(n in t)i[n]=e(t[n],n);return i}function h(t){var e=(0,a.compileGetter)(t.selector),n=!("skipEmptyValues"in t)||t.skipEmptyValues,i=t.aggregator;if("string"===typeof i&&!(i=u.aggregators[i]))throw l.errors.Error("E4001",t.aggregator);return{selector:e,aggregator:i,skipEmptyValues:n}}t.exports=r.default.inherit({ctor:function(t){this._data=t.data,this._groupLevel=t.groupLevel||0,this._totalAggregates=d(t.totalAggregates||[],h),this._groupAggregates=d(t.groupAggregates||[],h),this._totals=[]},calculate:function(){this._totalAggregates.length&&this._calculateTotals(0,{items:this._data}),this._groupAggregates.length&&this._groupLevel>0&&this._calculateGroups({items:this._data})},totalAggregates:function(){return this._totals},_aggregate:function(t,e,n){for(var i=e.items?e.items.length:0,o=0;o<t.length;o++)if(t[o].aggregator!==u.aggregators.count)for(var r=0;r<i;r++)this._accumulate(o,t[o],n,e.items[r]);else n[o]=(n[o]||0)+i},_calculateTotals:function(t,e){if(0===t&&(this._totals=this._seed(this._totalAggregates)),t===this._groupLevel)this._aggregate(this._totalAggregates,e,this._totals);else for(var n=0;n<e.items.length;n++)this._calculateTotals(t+1,e.items[n]);0===t&&(this._totals=this._finalize(this._totalAggregates,this._totals))},_calculateGroups:function(t){var e=this._groupLevel,n=e+1,i=this._seed.bind(this,this._groupAggregates),o=this._aggregate.bind(this,this._groupAggregates),r=this._finalize.bind(this,this._groupAggregates);function a(t){t.aggregates=i(n-1),n===e?o(t,t.aggregates):c(n,e,t,(function(e){o(e,t.aggregates)})),t.aggregates=r(t.aggregates)}for(;--n>0;)c(0,n,t,a)},_seed:function(t,e){return d(t,(function(t){var n=t.aggregator;return"seed"in n?(0,s.isFunction)(n.seed)?n.seed(e):n.seed:NaN}))},_accumulate:function(t,e,n,i){var o,r=e.selector(i),a=e.aggregator;(!e.skipEmptyValues||(o=r)===o&&""!==o&&null!==o&&void 0!==o)&&(n[t]!==n[t]?n[t]=r:n[t]=a.step(n[t],r))},_finalize:function(t,e){return d(t,(function(t,n){var i=t.aggregator.finalize;return i?i(e[n]):e[n]}))}})},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(467));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columnFixing",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(468));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("adaptivity",o.default)},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(469));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("virtualColumns",o.default)},function(t,e,n){"use strict";var i=_(n(3)),o=_(n(21)),r=n(2),a=n(0),s=n(24),l=_(n(16)),u=_(n(27)),c=_(n(471)),d=n(278),h=_(n(12)),f=_(n(42)),p=_(n(108)),m=_(n(109)),g=n(7);function _(t){return t&&t.__esModule?t:{default:t}}e.DataProvider=o.default.inherit({_getGroupValue:function(t){var e=t.key,n=t.data,i=t.rowType,o=t.groupIndex,r=t.summaryCells,a=this._options.groupColumns[o],s=u.default.getDisplayValue(a,a.deserializeValue?a.deserializeValue(e[o]):e[o],n,i),l=a.caption+": "+u.default.formatValue(s,a);return r&&r[0]&&r[0].length&&(l+=" "+u.default.getGroupRowSummaryText(r[0],this._options.summaryTexts)),l},_correctCellIndex:function(t){return t},_initOptions:function(){var t=this._exportController,e=t._columnsController.getGroupColumns(),n=t.option("export.excelWrapTextEnabled");this._options={columns:t._getColumns(this._initialColumnWidthsByColumnIndex),groupColumns:e,items:this._selectedRowsOnly||t._selectionOnly?t._getSelectedItems():t._getAllItems(),getVisibleIndex:t._columnsController.getVisibleIndex.bind(t._columnsController),isHeadersVisible:t.option("showColumnHeaders"),summaryTexts:t.option("summary.texts"),customizeExportData:t.option("customizeExportData"),rtlEnabled:t.option("rtlEnabled"),wrapTextEnabled:(0,r.isDefined)(n)?n:!!t.option("wordWrapEnabled"),customizeExcelCell:t.option("export.customizeExcelCell")}},hasCustomizeExcelCell:function(){return(0,r.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(t,e){this._options.customizeExcelCell&&(t.gridCell=e,(0,r.isDefined)(this._exportController)&&(0,r.isDefined)(this._exportController.component)&&(t.component=this._exportController.component),this._options.customizeExcelCell(t))},ctor:function(t,e,n){this._exportController=t,this._initialColumnWidthsByColumnIndex=e,this._selectedRowsOnly=n},getStyles:function(){var t=this._options.wrapTextEnabled,e=["center","left","right"].map((function(t){return{bold:!0,alignment:t,wrapText:!0}}));return this.getColumns().forEach((function(n){e.push({alignment:n.alignment||"left",format:n.format,wrapText:t,dataType:n.dataType})})),e.push({bold:!0,wrapText:!1,alignment:(0,s.getDefaultAlignment)(this._options.rtlEnabled)}),e},_getTotalCellStyleId:function(t){var e=this.getColumns()[t]&&this.getColumns()[t].alignment||"right";return["center","left","right"].indexOf(e)},getStyleId:function(t,e){return t<this.getHeaderRowCount()?0:this.isTotalCell(t-this.getHeaderRowCount(),e)?this._getTotalCellStyleId(e):this.isGroupRow(t-this.getHeaderRowCount())?3+this.getColumns().length:e+3},getColumns:function(t){var e=this._options.columns;return t?e:e[e.length-1]},getColumnsWidths:function(){var t=this.getColumns();return(0,r.isDefined)(t)?t.map((function(t){return t.width})):void 0},getRowsCount:function(){return this._options.items.length+this.getHeaderRowCount()},getHeaderRowCount:function(){return this.isHeadersVisible()?this._options.columns.length-1:0},isGroupRow:function(t){return t<this._options.items.length&&"group"===this._options.items[t].rowType},getGroupLevel:function(t){var e=this._options.items[t-this.getHeaderRowCount()],n=e&&e.groupIndex;return e&&"totalFooter"===e.rowType?0:(0,r.isDefined)(n)?n:this._options.groupColumns.length},getCellType:function(t,e){var n=this.getColumns();if(t<this.getHeaderRowCount())return"string";if(t-=this.getHeaderRowCount(),e<n.length){var i=this._options.items.length&&this._options.items[t],o=n[e];return i&&"data"===i.rowType&&isFinite(i.values[this._correctCellIndex(e)])&&!(0,r.isDefined)(o.customizeText)?(0,r.isDefined)(o.lookup)?o.lookup.dataType:o.dataType:"string"}},ready:function(){var t=this;t._initOptions();var e=t._options;return(0,g.when)(e.items).done((function(n){e.customizeExportData&&e.customizeExportData(t.getColumns(t.getHeaderRowCount()>1),n),e.items=n})).fail((function(){e.items=[]}))},_convertFromGridGroupSummaryItems:function(t){if((0,r.isDefined)(t)&&t.length>0)return t.map((function(t){return{value:t.value,name:t.name}}))},getCellData:function(t,e,n){var i,o,a={cellSourceData:{},value:o},s=this.getColumns(),l=this._correctCellIndex(e);if(t<this.getHeaderRowCount()){i=this.getColumns(!0)[t][e],a.cellSourceData.rowType="header",a.cellSourceData.column=i&&i.gridColumn,a.value=i&&i.caption}else{t-=this.getHeaderRowCount();var c=this._options.items.length&&this._options.items[t];if(c){var d=c.values;switch(a.cellSourceData.rowType=c.rowType,a.cellSourceData.column=s[e]&&s[e].gridColumn,c.rowType){case"groupFooter":case"totalFooter":l<d.length&&(o=d[l],(0,r.isDefined)(o)?(a.cellSourceData.value=o.value,a.cellSourceData.totalSummaryItemName=o.name,a.value=u.default.getSummaryText(o,this._options.summaryTexts)):a.cellSourceData.value=void 0);break;case"group":if(a.cellSourceData.groupIndex=c.groupIndex,e<1)a.cellSourceData.column=this._options.groupColumns[c.groupIndex],a.cellSourceData.value=c.key[c.groupIndex],a.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(c.summaryCells[0]),a.value=this._getGroupValue(c);else{var h=c.values[l];if(Array.isArray(h)){a.cellSourceData.groupSummaryItems=this._convertFromGridGroupSummaryItems(h),o="";for(var f=0;f<h.length;f++)o+=(f>0?n?"\n":" \n ":"")+u.default.getSummaryText(h[f],this._options.summaryTexts);a.value=o}else a.cellSourceData.value=void 0}break;default:if(i=s[e]){var p=d[l],m=u.default.getDisplayValue(i,p,c.data,c.rowType);!isFinite(m)||(0,r.isDefined)(i.customizeText)?n&&(0,r.isDefined)(i.customizeText)&&i.customizeText===this._exportController._columnsController.getCustomizeTextByDataType("boolean")?a.value=m:a.value=u.default.formatValue(m,i):a.value=m,a.cellSourceData.value=p}a.cellSourceData.data=c.data}}}return a},isHeadersVisible:function(){return this._options.isHeadersVisible},isTotalCell:function(t,e){var n=this._options.items[t],i=this._correctCellIndex(e),o=n.summaryCells&&n.summaryCells[i]&&n.summaryCells[i].length>0&&n.summaryCells[i][0].alignByColumn;return n&&"groupFooter"===n.rowType||"totalFooter"===n.rowType||o},getCellMerging:function(t,e){var n=this._options.columns,i=n[t]&&n[t][e];return i?{colspan:(i.exportColspan||1)-1,rowspan:(i.rowspan||1)-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){return{x:0,y:this.getHeaderRowCount()}}}),e.ExportController=u.default.ViewController.inherit({}).include(c.default).inherit({_getEmptyCell:function(){return{caption:"",colspan:1,rowspan:1}},_updateColumnWidth:function(t,e){t.width=e},_getColumns:function(t){var e,n,i=[],o=this._columnsController,s=o.getRowCount();for(e=0;e<=s;e++){var l=[];n=o.getVisibleColumns(e,!0);var u=void 0;if(e===s)if(this._updateLockCount)u=t;else{var c=this._getColumnWidths(this._headersView,this._rowsView);if(c&&c.length){u={};for(var d=0;d<n.length;d++)u[n[d].index]=c[d]}}for(var h=0;h<n.length;h++){var f=(0,a.extend)({},n[h],{dataType:"datetime"===n[h].dataType?"date":n[h].dataType,gridColumn:n[h]});if(this._needColumnExporting(f)){var p=this._calculateExportColspan(f);(0,r.isDefined)(p)&&(f.exportColspan=p),u&&this._updateColumnWidth(f,u[f.index]),l.push(f)}}i.push(l)}return n=i[s],(i=this._prepareItems(i.slice(0,-1))).push(n),i},_calculateExportColspan:function(t){var e=this;if(t.isBand){var n=this._columnsController.getChildrenByBandColumn(t.index,!0);if((0,r.isDefined)(n))return n.reduce((function(t,n){return e._needColumnExporting(n)?t+(e._calculateExportColspan(n)||1):t}),0)}},_needColumnExporting:function(t){return!t.command&&(t.allowExporting||void 0===t.allowExporting)},_getFooterSummaryItems:function(t,e){var n=[],i=1,o=0;do{for(var r=[],a=0;a<t.length;a++){var s=t[a],l=s.length;i<l&&(i=l),r.push(s[o])}n.push({values:r,rowType:e?"totalFooter":"groupFooter"})}while(o++<i-1);return n},_hasSummaryGroupFooters:function(){var t=this.option("summary.groupItems");if((0,r.isDefined)(t))for(var e=0;e<t.length;e++)if(t[e].showInGroupFooter)return!0;return!1},_getItemsWithSummaryGroupFooters:function(t){for(var e=[],n=[],i=[],o=0;o<t.length;o++){var r=t[o];"groupFooter"===r.rowType?(i=this._getFooterSummaryItems(r.summaryCells),e=e.concat(n,i),n=[]):n.push(r)}return e.length?e:n},_updateGroupValuesWithSummaryByColumn:function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],o=i.summaryCells;if("group"===i.rowType&&o&&o.length>1){for(var r=i.values.length,a=1;a<o.length;a++)for(var s=0;s<o[a].length;s++){var u=o[a][s];u&&u.alignByColumn&&(Array.isArray(e[a-r])||(e[a-r]=[]),e[a-r].push(u))}e.length>0&&(l.default.merge(i.values,e),e=[])}}},_processUnExportedItems:function(t){for(var e,n,i=this._columnsController.getVisibleColumns(null,!0),o=this._columnsController.getGroupColumns(),r=0;r<t.length;r++){var a=t[r];e=[],n=[];for(var s=0;s<i.length;s++){var l=i[s];this._needColumnExporting(l)&&(a.values&&("group"!==a.rowType||e.length?e.push(a.values[s]):e.push(a.key[a.groupIndex])),a.summaryCells&&("group"!==a.rowType||n.length?n.push(a.summaryCells[s]):n.push(a.summaryCells[s-o.length+a.groupIndex])))}e.length&&(a.values=e),n.length&&(a.summaryCells=n)}},_getAllItems:function(t){var e,n=this,i=new g.Deferred,o=this.getController("data"),a=o.footerItems(),s=a.length&&a[0],l=n.option("summary.totalItems");return(0,g.when)(t).done((function(t){o.loadAll(t).done((function(t,a){n._updateGroupValuesWithSummaryByColumn(t),n._hasSummaryGroupFooters()&&(t=n._getItemsWithSummaryGroupFooters(t)),e=s&&s.summaryCells,(0,r.isDefined)(a)&&l&&(e=o._getSummaryCells(l,a));var u=s&&n._getFooterSummaryItems(e,!0);u&&(t=t.concat(u)),n._processUnExportedItems(t),i.resolve(t)})).fail(i.reject)})).fail(i.reject),i},_getSelectedItems:function(){var t=this.getController("selection").getSelectedRowsData();return this._getAllItems(t)},_getColumnWidths:function(t,e){return t&&t.isVisible()?t.getColumnWidths():e.getColumnWidths()},init:function(){this._columnsController=this.getController("columns"),this._rowsView=this.getView("rowsView"),this._headersView=this.getView("columnHeadersView"),this.createAction("onExporting",{excludeValidators:["disabled","readOnly"]}),this.createAction("onExported",{excludeValidators:["disabled","readOnly"]}),this.createAction("onFileSaving",{excludeValidators:["disabled","readOnly"]})},callbackNames:function(){return["selectionOnlyChanged"]},getExportFormat:function(){return["EXCEL"]},getDataProvider:function(t){var n,i=this._getColumnWidths(this._headersView,this._rowsView);if(i&&i.length){n={};for(var o=this._columnsController.getVisibleColumns(this._columnsController.getRowCount(),!0),r=0;r<o.length;r++)n[o[r].index]=i[r]}return new e.DataProvider(this,n,t)},exportToExcel:function(t){this._selectionOnly=t,(0,d.export)(this.component.getDataProvider(),{fileName:this.option("export.fileName"),proxyUrl:this.option("export.proxyUrl"),format:"EXCEL",autoFilterEnabled:!!this.option("export.excelFilterEnabled"),rtlEnabled:this.option("rtlEnabled"),ignoreErrors:this.option("export.ignoreExcelErrors"),exportingAction:this.getAction("onExporting"),exportedAction:this.getAction("onExported"),fileSavingAction:this.getAction("onFileSaving")},d.excel.getData)},publicMethods:function(){return["getDataProvider","getExportFormat","exportToExcel"]},selectionOnly:function(t){if(!(0,r.isDefined)(t))return this._isSelectedRows;this._isSelectedRows=t,this.selectionOnlyChanged.fire()}}),u.default.registerModule("export",{defaultOptions:function(){return{export:{enabled:!1,fileName:"DataGrid",excelFilterEnabled:!1,excelWrapTextEnabled:void 0,proxyUrl:void 0,allowExportSelectedData:!1,ignoreExcelErrors:!0,texts:{exportTo:h.default.format("dxDataGrid-exportTo"),exportAll:h.default.format("dxDataGrid-exportAll"),exportSelectedRows:h.default.format("dxDataGrid-exportSelectedRows")}}}},controllers:{export:e.ExportController},extenders:{controllers:{editing:{callbackNames:function(){var t=this.callBase();return(0,r.isDefined)(t)?t.push("editingChanged"):["editingChanged"]},_updateEditButtons:function(){this.callBase(),this.editingChanged.fire(this.hasChanges())}}},views:{headerPanel:{_getToolbarItems:function(){var t=this.callBase();return this._appendExportItems(t)},_appendExportItems:function(t){var e=this,n=e.option("export");if(n.enabled){var o=[];n.allowExportSelectedData?o.push({template:function(t,n,o){var r=(0,i.default)(o);e._renderButton(t,r),e._renderExportMenu(r)},menuItemTemplate:function(t,n,o){e._renderList(t,(0,i.default)(o))},name:"exportButton",allowExportSelected:!0,location:"after",locateInMenu:"auto",sortIndex:30}):o.push({template:function(t,n,o){e._renderButton(t,(0,i.default)(o))},menuItemTemplate:function(t,n,o){e._renderButton(t,(0,i.default)(o),!0)},name:"exportButton",location:"after",locateInMenu:"auto",sortIndex:30}),t=t.concat(o),e._correctItemsPosition(t)}return t},_renderButton:function(t,e,n){var o=this._getButtonOptions(t.allowExportSelected),r=this._getButtonContainer().addClass("dx-datagrid-export-button").appendTo(e);if(n){var a=(0,i.default)("<div>").addClass("dx-toolbar-item-auto-hide");e.wrapInner(a).parent().addClass("dx-toolbar-menu-action dx-toolbar-menu-button dx-toolbar-hidden-button"),o.text=o.hint}this._createComponent(r,f.default,o)},_renderList:function(t,e){var n=this,o=n.option("export.texts"),r=[{template:function(t,e,o){n._renderFakeButton(t,(0,i.default)(o),"xlsxfile")},text:o.exportAll},{template:function(t,e,o){n._renderFakeButton(t,(0,i.default)(o),"exportselected")},text:o.exportSelectedRows,exportSelected:!0}];n._createComponent(e,p.default,{items:r,onItemClick:function(t){n._exportController.exportToExcel(t.itemData.exportSelected)},scrollingEnabled:!1})},_renderFakeButton:function(t,e,n){var o=(0,i.default)("<div>").addClass("dx-icon dx-icon-"+n),r=(0,i.default)("<span>").addClass("dx-button-text").text(t.text),a=(0,i.default)("<div>").addClass("dx-button-content").append(o).append(r),s=(0,i.default)("<div>").addClass("dx-button dx-button-has-text dx-button-has-icon dx-datagrid-toolbar-button").append(a),l=(0,i.default)("<div>").addClass("dx-toolbar-item-auto-hide").append(s);e.append(l).parent().addClass("dx-toolbar-menu-custom dx-toolbar-hidden-button")},_correctItemsPosition:function(t){t.sort((function(t,e){return t.sortIndex-e.sortIndex}))},_renderExportMenu:function(t){var e=this,n=t.find(".dx-button"),o=e.option("export.texts"),r=[{text:o.exportAll,icon:"xlsxfile"},{text:o.exportSelectedRows,exportSelected:!0,icon:"exportselected"}],a=(0,i.default)("<div>").appendTo(t);e._contextMenu=e._createComponent(a,m.default,{showEvent:"dxclick",items:r,cssClass:"dx-datagrid-export-menu",onItemClick:function(t){e._exportController.exportToExcel(t.itemData.exportSelected)},target:n,position:{at:"left bottom",my:"left top",offset:"0 3",collision:"fit",boundary:e._$parent,boundaryOffset:"1 1"}})},_isExportButtonVisible:function(){return this.option("export.enabled")},_getButtonOptions:function(t){var e=this,n=e.option("export.texts");return t?{hint:n.exportTo,icon:"export-to"}:{hint:n.exportAll,icon:"export-excel-button",onClick:function(){e._exportController.exportToExcel()}}},optionChanged:function(t){this.callBase(t),"export"===t.name&&(t.handled=!0,this._invalidate())},init:function(){var t=this;this.callBase(),this._exportController=this.getController("export"),this._editingController=this.getController("editing"),this._editingController.editingChanged.add((function(e){t.setToolbarItemDisabled("exportButton",e)}))},isVisible:function(){return this.callBase()||this._isExportButtonVisible()}}}}})},function(t,e,n){"use strict";var i=d(n(27)),o=d(n(472)),r=n(7),a=n(2),s=n(4),l=n(292),u=n(29),c=n(0);function d(t){return t&&t.__esModule?t:{default:t}}var h=Number.MAX_SAFE_INTEGER||9007199254740991;i.default.registerModule("focus",(0,c.extend)(!0,{},o.default,{extenders:{controllers:{data:{changeRowExpand:function(t,e){if(this.option("focusedRowEnabled")&&Array.isArray(t)&&this.isRowExpanded(t)){var n=this.getController("keyboardNavigation");e&&n.isKeyboardEnabled()||!this._isFocusedRowInsideGroup(t)||this.option("focusedRowKey",t)}return this.callBase.apply(this,arguments)},_isFocusedRowInsideGroup:function(t){var e=this.getController("columns"),n=this.option("focusedRowKey"),i=this.getRowIndexByKey(n),o=i>=0&&this.getVisibleRows()[i],r=e.getGroupDataSourceParameters(!0);if(o)for(var a=0;a<t.length;++a){if((0,u.compileGetter)(r[a]&&r[a].selector)(o.data)!==t[a])return!1}return!0},_getGroupPath:function(t){for(var e=[t.key],n=t.items;n&&n[0];){var i=n[0];void 0!==i.key&&e.push(i.key),n=i.items}return e},_expandGroupByPath:function(t,e,n){var i=new r.Deferred;return n++,t.expandRow(e.slice(0,n)).done((function(){n===e.length?i.resolve():t._expandGroupByPath(t,e,n).done(i.resolve).fail(i.reject)})).fail(i.reject),i.promise()},_calculateGlobalRowIndexByGroupedData:function(t){var e=this,n=e._dataSource,i=e._generateFilterByKey(t),o=new r.Deferred,s=Array.isArray(t),l=n.group();return s?o.resolve(-1).promise():n._grouping._updatePagingOptions?(n.load({filter:e._concatWithCombinedFilter(i),group:l}).done((function(n){if(!n||0===n.length||!(0,a.isDefined)(n[0].key)||-1===n[0].key)return o.resolve(-1).promise();var i=e._getGroupPath(n[0]);e._expandGroupByPath(e,i,0).done((function(){e._calculateExpandedRowGlobalIndex(o,t,i,l)})).fail(o.reject)})).fail(o.reject),o.promise()):(e._calculateGlobalRowIndexByFlatData(t,null,!0).done(o.resolve).fail(o.reject),o)},_calculateExpandedRowGlobalIndex:function(t,e,n,i){var o,r=(0,l.createGroupFilter)(n,{group:i}),a=this._dataSource,u=this.option("scrolling.mode"),c="virtual"===u||"infinite"===u,d=a.pageSize();a._grouping._updatePagingOptions({skip:0,take:h},(function(t,e){(0,s.equalByValue)(t.path,n)&&(o=e)})),this._calculateGlobalRowIndexByFlatData(e,r).done((function(e){var i,r;e<0?t.resolve(-1):(i=(o%d||d)+e-n.length,r=c?0:Math.floor(i/(d-n.length))*n.length,i=o+e+r,t.resolve(i))})).fail(t.reject)}}}}}))},function(t,e,n){"use strict";var i=r(n(27)),o=r(n(473));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("rowDragging",o.default)},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(234),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},calendarOptions:{optionName:"calendarOptions",isCollectionItem:!1},displayFormat:{optionName:"displayFormat",isCollectionItem:!1},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1}},e._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.DateBox=l,l.propTypes={acceptCustomValue:r.bool,accessKey:r.string,activeStateEnabled:r.bool,adaptivityEnabled:r.bool,applyButtonText:r.string,applyValueMode:r.oneOf(["instantly","useButtons"]),buttons:r.array,calendarOptions:r.object,cancelButtonText:r.string,dateOutOfRangeMessage:r.string,dateSerializationFormat:r.string,deferRendering:r.bool,disabled:r.bool,disabledDates:r.oneOfType([r.array,r.func]),displayFormat:r.oneOfType([r.object,r.func,r.string]),dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,interval:r.number,invalidDateMessage:r.string,isValid:r.bool,maxLength:r.oneOfType([r.number,r.string]),name:r.string,onChange:r.func,onClosed:r.func,onContentReady:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOpened:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,pickerType:r.oneOf(["calendar","list","native","rollers"]),placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,showAnalogClock:r.bool,showClearButton:r.bool,showDropDownButton:r.bool,spellcheck:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,type:r.oneOf(["date","datetime","time"]),useMaskBehavior:r.bool,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueChangeEvent:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="calendarOptions",e.DefaultsProps={defaultValue:"value",defaultZoomLevel:"zoomLevel"},e.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"}],e}(s.default);e.CalendarOptions=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="displayFormat",e}(s.default);e.DisplayFormat=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=C,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(844),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.DeferRendering=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animation:r.object,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onRendered:r.func,onShown:r.func,rtlEnabled:r.bool,showLoadIndicator:r.bool,staggerItemSelector:r.string,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=u,e.default=l},function(t,e,n){"use strict";var i=v(n(845)),o=v(n(8)),r=v(n(15)),a=v(n(3)),s=v(n(4)),l=v(n(7)),u=n(0),c=n(5),d=n(2),h=v(n(10)),f=v(n(6)),p=v(n(81)),m=v(n(20)),g=n(24),_=v(n(17));function v(t){return t&&t.__esModule?t:{default:t}}var y=l.default.Deferred,b=h.default.getWindow(),w=["onRendered","onShown"],x=m.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{showLoadIndicator:!1,renderWhen:void 0,animation:void 0,staggerItemSelector:void 0,onRendered:null,onShown:null})},_getAnonymousTemplateName:function(){return"content"},_init:function(){this.transitionExecutor=new i.default.TransitionExecutor,this._initElement(),this._initRender(),this._$initialContent=this.$element().clone().contents(),this._initActions(),this.callBase()},_initElement:function(){this.$element().addClass("dx-deferrendering")},_initRender:function(){var t=this,e=this.$element(),n=this.option("renderWhen"),i=function(){return t._renderDeferredContent()};(0,d.isPromise)(n)?l.default.fromPromise(n).done(i):(e.data("dx-render-delegate",i),void 0===n&&e.addClass("dx-pending-rendering-manual"))},_initActions:function(){this._actions={},(0,c.each)(w,function(t,e){this._actions[e]=this._createActionByOption(e)||s.default.noop}.bind(this))},_initMarkup:function(){this.callBase(),this._initContent||(this._initContent=this._renderContent,this._renderContent=function(){}),this._initContent()},_renderContentImpl:function(){this.$element().removeClass("dx-widget"),this.$element().append(this._$initialContent),this._setLoadingState()},_renderDeferredContent:function(){var t=this,e=this.$element(),n=new y;return e.removeClass("dx-pending-rendering-manual"),e.addClass("dx-pending-rendering-active"),this._abortRenderTask(),this._renderTask=s.default.executeAsync((function(){t._renderImpl().done((function(){var i={element:e};t._actions.onShown([i]),n.resolve(i)})).fail((function(){n.rejectWith(n,arguments)}))})),n.promise()},_isElementInViewport:function(t){var e=(0,g.getBoundingRect)(t);return e.bottom>=0&&e.right>=0&&e.top<=(b.innerHeight||r.default.getDocumentElement().clientHeight)&&e.left<=(b.innerWidth||r.default.getDocumentElement().clientWidth)},_animate:function(){var t,e=this,n=this.$element(),i=h.default.hasWindow()&&this.option("animation"),o=this.option("staggerItemSelector");return e.transitionExecutor.stop(),i?(o?n.find(o).each((function(){e._isElementInViewport(this)&&e.transitionExecutor.enter((0,a.default)(this),i)})):e.transitionExecutor.enter(n,i),t=e.transitionExecutor.start()):t=(new y).resolve().promise(),t},_renderImpl:function(){var t=this.$element(),e={element:t},n=this._getTemplate(this._templateManager.anonymousTemplateName);return n&&n.render({container:t.empty(),noModel:!0}),this._setRenderedState(t),f.default.trigger(t,"dxcontentrendered"),this._actions.onRendered([e]),this._isRendered=!0,this._animate()},_setLoadingState:function(){var t=this.$element(),e=!!t.find(".dx-visible-while-pending-rendering").length;t.addClass("dx-pending-rendering"),e||t.children().addClass("dx-invisible-while-pending-rendering"),this.option("showLoadIndicator")&&this._showLoadIndicator(t)},_showLoadIndicator:function(t){this._$loadIndicator=new p.default((0,a.default)("<div>"),{visible:!0}).$element().addClass("dx-deferrendering-load-indicator"),(0,a.default)("<div>").addClass("dx-loadindicator-container").addClass("dx-deferrendering-loadindicator-container").append(this._$loadIndicator).appendTo(t)},_setRenderedState:function(){var t=this.$element();this._$loadIndicator&&this._$loadIndicator.remove(),t.removeClass("dx-pending-rendering"),t.removeClass("dx-pending-rendering-active"),_.default.triggerShownEvent(t.children())},_optionChanged:function(t){var e=t.value,n=t.previousValue;switch(t.name){case"renderWhen":!1===n&&!0===e?this._renderOrAnimate():!0===n&&!1===e&&(this.transitionExecutor.stop(),this._setLoadingState());break;case"showLoadIndicator":case"onRendered":case"onShown":break;default:this.callBase(t)}},_renderOrAnimate:function(){var t;return this._isRendered?(this._setRenderedState(),t=this._animate()):t=this._renderDeferredContent(),t},renderContent:function(){return this._renderOrAnimate()},_abortRenderTask:function(){this._renderTask&&(this._renderTask.abort(),this._renderTask=void 0)},_dispose:function(){this.transitionExecutor.stop(!0),this._abortRenderTask(),this._actions=void 0,this._$initialContent=void 0,this.callBase()}});(0,o.default)("dxDeferRendering",x),t.exports=x,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(21),r=n(0).extend,a=n(4),s=n(2),l=n(5),u=n(47),c=n(846),d=n(7),h=d.when,f=d.Deferred,p={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},m=o.inherit({ctor:function(){this._accumulatedDelays={enter:0,leave:0},this._animations=[],this.reset()},_createAnimations:function(t,e,n,o){var r=this,a=[];n=n||{};var s=this._prepareElementAnimationConfig(e,n,o);return s&&t.each((function(){var t=r._createAnimation(i(this),s,n);t&&(t.element.addClass("dx-animating"),t.setup(),a.push(t))})),a},_prepareElementAnimationConfig:function(t,e,n){var i;if("string"===typeof t){var o=t;t=c.presets.getPreset(o)}if(t)if(s.isFunction(t[n]))i=t[n];else{if(!(i=r({skipElementInitialStyles:!0,cleanupWhen:this._completePromise},t,e)).type||"css"===i.type){var a="dx-"+n,l=(i.extraCssClasses?" "+i.extraCssClasses:"")+p[i.direction];i.type="css",i.from=(i.from||a)+l,i.to=i.to||a+"-active"}i.staggerDelay=i.staggerDelay||0,i.delay=i.delay||0,i.staggerDelay&&(i.delay+=this._accumulatedDelays[n],this._accumulatedDelays[n]+=i.staggerDelay)}else i=void 0;return i},_createAnimation:function(t,e,n){var i;return s.isPlainObject(e)?i=u.createAnimation(t,e):s.isFunction(e)&&(i=e(t,n)),i},_startAnimations:function(){for(var t=this._animations,e=0;e<t.length;e++)t[e].start()},_stopAnimations:function(t){for(var e=this._animations,n=0;n<e.length;n++)e[n].stop(t)},_clearAnimations:function(){for(var t=this._animations,e=0;e<t.length;e++)t[e].element.removeClass("dx-animating");this._animations.length=0},reset:function(){this._accumulatedDelays.enter=0,this._accumulatedDelays.leave=0,this._clearAnimations(),this._completeDeferred=new f,this._completePromise=this._completeDeferred.promise()},enter:function(t,e,n){var i=this._createAnimations(t,e,n,"enter");this._animations.push.apply(this._animations,i)},leave:function(t,e,n){var i=this._createAnimations(t,e,n,"leave");this._animations.push.apply(this._animations,i)},start:function(){var t,e=this;if(this._animations.length){var n=l.map(this._animations,(function(t){var e=new f;return t.deferred.always((function(){e.resolve()})),e.promise()}));t=h.apply(i,n).always((function(){e._completeDeferred.resolve(),e.reset()})),a.executeAsync((function(){e._startAnimations()}))}else e.reset(),t=(new f).resolve().promise();return t},stop:function(t){this._stopAnimations(t)}});e.TransitionExecutor=m},function(t,e,n){"use strict";var i=n(189),o=n(5).each,r=n(0).extend,a=n(18),s=n(47),l={forward:" dx-forward",backward:" dx-backward",none:" dx-no-direction",undefined:" dx-no-direction"},u=i.inherit({ctor:function(){this.callBase.apply(this,arguments),this._registeredPresets=[],this.resetToDefaults()},_getDefaultOptions:function(){return r(this.callBase(),{defaultAnimationDuration:400,defaultAnimationDelay:0,defaultStaggerAnimationDuration:300,defaultStaggerAnimationDelay:40,defaultStaggerAnimationStartDelay:500})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(t){return t.phone},options:{defaultStaggerAnimationDuration:350,defaultStaggerAnimationDelay:50,defaultStaggerAnimationStartDelay:0}},{device:function(){return a.current().android||a.real.android},options:{defaultAnimationDelay:100}}])},_getPresetOptionName:function(t){return"preset_"+t},_createAndroidSlideAnimationConfig:function(t,e){var n=this,i=function(t){return{type:"slide",delay:void 0===t.delay?n.option("defaultAnimationDelay"):t.delay,duration:void 0===t.duration?n.option("defaultAnimationDuration"):t.duration}};return{enter:function(n,o){var r=n.parent().width()*e,a=o.direction,l=i(o);return l.to={left:0,opacity:1},l.from="forward"===a?{left:r,opacity:t}:"backward"===a?{left:-r,opacity:t}:{left:0,opacity:0},s.createAnimation(n,l)},leave:function(n,o){var r=n.parent().width()*e,a=o.direction,l=i(o);return l.from={left:0,opacity:1},l.to="forward"===a?{left:-r,opacity:t}:"backward"===a?{left:r,opacity:t}:{left:0,opacity:0},s.createAnimation(n,l)}}},_createOpenDoorConfig:function(){var t=this,e=function(e){return{type:"css",extraCssClasses:"dx-opendoor-animation",delay:void 0===e.delay?t.option("defaultAnimationDelay"):e.delay,duration:void 0===e.duration?t.option("defaultAnimationDuration"):e.duration}};return{enter:function(t,n){var i=n.direction,o=e(n);return o.delay="none"===i?o.delay:o.duration,o.from="dx-enter dx-opendoor-animation"+l[i],o.to="dx-enter-active",s.createAnimation(t,o)},leave:function(t,n){var i=n.direction,o=e(n);return o.from="dx-leave dx-opendoor-animation"+l[i],o.to="dx-leave-active",s.createAnimation(t,o)}}},_createWinPopConfig:function(){var t=this,e={type:"css",extraCssClasses:"dx-win-pop-animation",duration:t.option("defaultAnimationDuration")};return{enter:function(n,i){var o=e,r=i.direction;return o.delay="none"===r?t.option("defaultAnimationDelay"):t.option("defaultAnimationDuration")/2,o.from="dx-enter dx-win-pop-animation"+l[r],o.to="dx-enter-active",s.createAnimation(n,o)},leave:function(n,i){var o=e,r=i.direction;return o.delay=t.option("defaultAnimationDelay"),o.from="dx-leave dx-win-pop-animation"+l[r],o.to="dx-leave-active",s.createAnimation(n,o)}}},resetToDefaults:function(){this.clear(),this.registerDefaultPresets(),this.applyChanges()},clear:function(t){var e=this,n=[];o(this._registeredPresets,(function(i,o){t&&t!==o.name?n.push(o):e.option(e._getPresetOptionName(o.name),void 0)})),this._registeredPresets=n,this.applyChanges()},registerPreset:function(t,e){this._registeredPresets.push({name:t,config:e})},applyChanges:function(){var t=this,e=[];o(this._registeredPresets,(function(n,i){var o={device:i.config.device,options:{}};o.options[t._getPresetOptionName(i.name)]=i.config.animation,e.push(o)})),this._setOptionsByDevice(e)},getPreset:function(t){for(var e=t;"string"===typeof e;)e=this.option(this._getPresetOptionName(e));return e},registerDefaultPresets:function(){this.registerPreset("pop",{animation:{extraCssClasses:"dx-android-pop-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("openDoor",{animation:this._createOpenDoorConfig()}),this.registerPreset("win-pop",{animation:this._createWinPopConfig()}),this.registerPreset("fade",{animation:{extraCssClasses:"dx-fade-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("slide",{device:function(){return a.current().android||a.real.android},animation:this._createAndroidSlideAnimationConfig(1,1)}),this.registerPreset("slide",{device:function(){return!a.current().android&&!a.real.android},animation:{extraCssClasses:"dx-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-slide",{animation:{extraCssClasses:"dx-ios7-slide-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("overflow",{animation:{extraCssClasses:"dx-overflow-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return!a.current().android&&!a.real.android},animation:{extraCssClasses:"dx-ios7-toolbar-animation",delay:this.option("defaultAnimationDelay"),duration:this.option("defaultAnimationDuration")}}),this.registerPreset("ios7-toolbar",{device:function(){return a.current().android||a.real.android},animation:this._createAndroidSlideAnimationConfig(0,.4)}),this.registerPreset("stagger-fade",{animation:{extraCssClasses:"dx-fade-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-slide",{animation:{extraCssClasses:"dx-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-slide",{animation:{extraCssClasses:"dx-fade-slide-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-drop",{animation:{extraCssClasses:"dx-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-drop",{animation:{extraCssClasses:"dx-fade-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-rise",{animation:{extraCssClasses:"dx-fade-rise-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-3d-drop",{animation:{extraCssClasses:"dx-3d-drop-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}}),this.registerPreset("stagger-fade-zoom",{animation:{extraCssClasses:"dx-fade-zoom-animation",staggerDelay:this.option("defaultStaggerAnimationDelay"),duration:this.option("defaultStaggerAnimationDuration"),delay:this.option("defaultStaggerAnimationStartDelay")}})}});e.PresetCollection=u;var c=new u;e.presets=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(848),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={contextMenu:{optionName:"contextMenu",isCollectionItem:!1},contextToolbox:{optionName:"contextToolbox",isCollectionItem:!1},customShape:{optionName:"customShapes",isCollectionItem:!0},defaultItemProperties:{optionName:"defaultItemProperties",isCollectionItem:!1},edges:{optionName:"edges",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},gridSize:{optionName:"gridSize",isCollectionItem:!1},historyToolbar:{optionName:"historyToolbar",isCollectionItem:!1},mainToolbar:{optionName:"mainToolbar",isCollectionItem:!1},nodes:{optionName:"nodes",isCollectionItem:!1},pageSize:{optionName:"pageSize",isCollectionItem:!1},propertiesPanel:{optionName:"propertiesPanel",isCollectionItem:!1},toolbox:{optionName:"toolbox",isCollectionItem:!1},viewToolbar:{optionName:"viewToolbar",isCollectionItem:!1},zoomLevel:{optionName:"zoomLevel",isCollectionItem:!1}},e._templateProps=[{tmplOption:"customShapeTemplate",render:"customShapeRender",component:"customShapeComponent",keyFn:"customShapeKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Diagram=l,l.propTypes={autoZoomMode:r.oneOf(["fitContent","fitWidth","disabled"]),contextMenu:r.object,contextToolbox:r.object,customShapes:r.array,defaultItemProperties:r.object,disabled:r.bool,edges:r.object,elementAttr:r.object,export:r.object,fullScreen:r.bool,gridSize:r.oneOfType([r.number,r.object]),hasChanges:r.bool,height:r.oneOfType([r.func,r.number,r.string]),historyToolbar:r.object,mainToolbar:r.object,nodes:r.object,onContentReady:r.func,onCustomCommand:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.func,onItemDblClick:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,pageColor:r.string,pageOrientation:r.oneOf(["portrait","landscape"]),pageSize:r.object,propertiesPanel:r.object,readOnly:r.bool,rtlEnabled:r.bool,showGrid:r.bool,simpleView:r.bool,snapToGrid:r.bool,toolbox:r.object,units:r.oneOf(["in","cm","px"]),viewToolbar:r.object,viewUnits:r.oneOf(["in","cm","px"]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),zoomLevel:r.oneOfType([r.number,r.object])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="autoLayout",e}(s.default);e.AutoLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commands",e.IsCollectionItem=!0,e}(s.default);e.Command=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e}(s.default);e.CommandItem=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connectionPoints",e.IsCollectionItem=!0,e}(s.default);e.ConnectionPoint=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="contextMenu",e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0}},e}(s.default);e.ContextMenu=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="contextToolbox",e}(s.default);e.ContextToolbox=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="customShapes",e.IsCollectionItem=!0,e.ExpectedChildren={connectionPoint:{optionName:"connectionPoints",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.CustomShape=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="defaultItemProperties",e}(s.default);e.DefaultItemProperties=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="edges",e}(s.default);e.Edges=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="gridSize",e}(s.default);e.GridSize=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groups",e.IsCollectionItem=!0,e}(s.default);e.Group=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="historyToolbar",e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0}},e}(s.default);e.HistoryToolbar=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e}(s.default);e.Item=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="mainToolbar",e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0}},e}(s.default);e.MainToolbar=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="nodes",e.ExpectedChildren={autoLayout:{optionName:"autoLayout",isCollectionItem:!1}},e}(s.default);e.Nodes=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="pageSize",e.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0},pageSizeItem:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.PageSize=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e}(s.default);e.PageSizeItem=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="propertiesPanel",e.ExpectedChildren={tab:{optionName:"tabs",isCollectionItem:!0}},e}(s.default);e.PropertiesPanel=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tabs",e.IsCollectionItem=!0,e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0},group:{optionName:"groups",isCollectionItem:!0},tabGroup:{optionName:"groups",isCollectionItem:!0}},e}(s.default);e.Tab=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groups",e.IsCollectionItem=!0,e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0}},e}(s.default);e.TabGroup=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbox",e.ExpectedChildren={group:{optionName:"groups",isCollectionItem:!0},toolboxGroup:{optionName:"groups",isCollectionItem:!0}},e}(s.default);e.Toolbox=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groups",e.IsCollectionItem=!0,e}(s.default);e.ToolboxGroup=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="viewToolbar",e.ExpectedChildren={command:{optionName:"commands",isCollectionItem:!0}},e}(s.default);e.ViewToolbar=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="zoomLevel",e}(s.default);e.ZoomLevel=A,e.default=l},function(t,e,n){"use strict";t.exports=n(849),t.exports.default=t.exports},function(t,e,n){"use strict";var i=z(n(3)),o=z(n(20)),r=z(n(81)),a=z(n(8)),s=n(0),l=z(n(2)),u=z(n(29)),c=z(n(90)),d=z(n(213)),h=n(104),f=n(10),p=z(n(17)),m=z(n(6)),g=V(n(11)),_=z(n(12)),v=z(n(74)),y=V(n(373)),b=z(n(371)),w=z(n(201)),x=z(n(851)),C=z(n(852)),S=z(n(853)),k=z(n(854)),I=n(855),T=z(n(856)),E=z(n(857)),O=z(n(858)),M=z(n(859)),P=z(n(860)),D=z(n(861)),A=z(n(862)),R=z(n(863)),B=z(n(144)),N=z(n(864)),L=z(n(865));function F(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return F=function(){return t},t}function V(t){if(t&&t.__esModule)return t;if(null===t||"object"!==j(t)&&"function"!==typeof t)return{default:t};var e=F();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if(Object.prototype.hasOwnProperty.call(t,o)){var r=i?Object.getOwnPropertyDescriptor(t,o):null;r&&(r.get||r.set)?Object.defineProperty(n,o,r):n[o]=t[o]}return n.default=t,e&&e.set(t,n),n}function z(t){return t&&t.__esModule?t:{default:t}}function j(t){return(j="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function H(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function W(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function U(t,e,n){return(U="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=$(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function G(t,e){return(G=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=$(t);if(e){var o=$(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==j(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $(t){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Y=g.addNamespace("fullscreenchange","dxDiagramEvent"),Z=g.addNamespace("msfullscreenchange","dxDiagramEvent"),X=g.addNamespace("webkitfullscreenchange","dxDiagramEvent"),J=g.addNamespace("mozfullscreenchange","dxDiagramEvent"),Q=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&G(t,e)}(g,t);var e,n,o,a=K(g);function g(){return H(this,g),a.apply(this,arguments)}return e=g,(n=[{key:"_init",value:function(){this._updateDiagramLockCount=0,this._browserResizeTimer=-1,this._toolbars=[],U($(g.prototype),"_init",this).call(this),this._initDiagram(),this._createCustomCommand()}},{key:"_initMarkup",value:function(){var t=this;U($(g.prototype),"_initMarkup",this).call(this),this._toolbars=[],delete this._isMobileScreenSize;var e=!(0,f.hasWindow)();this.$element().addClass("dx-diagram"),delete this._mainToolbar,this.option("mainToolbar.visible")&&this._renderMainToolbar();var n=(0,i.default)("<div>").addClass("dx-diagram-content-wrapper").appendTo(this.$element());if(delete this._historyToolbar,delete this._historyToolbarResizeCallback,this._isHistoryToolbarVisible()&&this._renderHistoryToolbar(n),delete this._propertiesToolbar,delete this._propertiesToolbarResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesToolbar(n),delete this._viewToolbar,delete this._viewToolbarResizeCallback,this.option("viewToolbar.visible")&&this._renderViewToolbar(n),delete this._toolbox,delete this._toolboxResizeCallback,this._isToolboxEnabled()&&this._renderToolbox(n),delete this._propertiesPanel,delete this._propertiesPanelResizeCallback,this._isPropertiesPanelEnabled()&&this._renderPropertiesPanel(n),this._$content=(0,i.default)("<div>").addClass("dx-diagram-content").appendTo(n),delete this._contextMenu,this.option("contextMenu.enabled")&&this._renderContextMenu(n),delete this._contextToolbox,this.option("contextToolbox.enabled")&&this._renderContextToolbox(n),this._renderDialog(n),!e){var o=(0,i.default)("<div>").addClass("dx-diagram-scroll-view").appendTo(this._$content);this._createComponent(o,O.default,{onCreateDiagram:function(e){t._diagramInstance.createDocument(e.$parent[0],e.scrollView)}})}(0,f.hasWindow)()&&d.default.add((function(){t._killBrowserResizeTimer(),t._browserResizeTimer=setTimeout((function(){return t._processBrowserResize()}),100)})),this._setCustomCommandChecked(B.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,this._isPropertiesPanelVisible()),this._setCustomCommandChecked(B.default.SHOW_TOOLBOX_COMMAND_NAME,this._isToolboxVisible())}},{key:"_processBrowserResize",value:function(){this._isMobileScreenSize=void 0,this._processDiagramResize(),this._killBrowserResizeTimer()}},{key:"_processDiagramResize",value:function(){this._historyToolbarResizeCallback&&this._historyToolbarResizeCallback.call(this),this._propertiesToolbarResizeCallback&&this._propertiesToolbarResizeCallback.call(this),this._propertiesPanelResizeCallback&&this._propertiesPanelResizeCallback.call(this),this._viewToolbarResizeCallback&&this._viewToolbarResizeCallback.call(this),this._toolboxResizeCallback&&this._toolboxResizeCallback.call(this)}},{key:"_killBrowserResizeTimer",value:function(){this._browserResizeTimer>-1&&clearTimeout(this._browserResizeTimer),this._browserResizeTimer=-1}},{key:"isMobileScreenSize",value:function(){return void 0===this._isMobileScreenSize&&(this._isMobileScreenSize=(0,f.hasWindow)()&&this.$element().outerWidth()<576),this._isMobileScreenSize}},{key:"_diagramCaptureFocus",value:function(){this._diagramInstance&&this._diagramInstance.captureFocus()}},{key:"notifyBarCommandExecuted",value:function(){this._diagramCaptureFocus()}},{key:"_registerToolbar",value:function(t){this._registerBar(t),this._toolbars.push(t)}},{key:"_registerBar",value:function(t){t.bar.onChanged.add(this),this._diagramInstance.registerBar(t.bar)}},{key:"_getExcludeCommands",value:function(){var t=[];return this._isToolboxEnabled()||t.push(B.default.SHOW_TOOLBOX_COMMAND_NAME),this._isPropertiesPanelEnabled()||t.push(B.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME),t}},{key:"_getToolbarBaseOptions",value:function(){var t=this;return{onContentReady:function(e){var n=e.component;return t._registerToolbar(n)},onSubMenuVisibilityChanging:function(e){var n=e.component;return t._diagramInstance.updateBarItemsState(n.bar)},onPointerUp:this._onPanelPointerUp.bind(this),export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this),isMobileView:this.isMobileScreenSize()}}},{key:"_onInternalCommand",value:function(t){switch(t.command){case B.default.SHOW_TOOLBOX_COMMAND_NAME:this._toolbox&&this._toolbox.toggle();break;case B.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME:this._propertiesPanel&&this._propertiesPanel.toggle()}}},{key:"_onCustomCommand",value:function(t){this._customCommandAction({name:t.name})}},{key:"_renderMainToolbar",value:function(){var t=(0,i.default)("<div>").addClass("dx-diagram-toolbar-wrapper").appendTo(this.$element());this._mainToolbar=this._createComponent(t,x.default,(0,s.extend)(this._getToolbarBaseOptions(),{commands:this.option("mainToolbar.commands"),skipAdjustSize:!0}))}},{key:"_isHistoryToolbarVisible",value:function(){return this.option("historyToolbar.visible")&&!this.isReadOnlyMode()}},{key:"_renderHistoryToolbar",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=(0,i.default)("<div>").addClass("dx-diagram-floating-toolbar-container").appendTo(t);this._historyToolbar=this._createComponent(o,C.default,(0,s.extend)(this._getToolbarBaseOptions(),{commands:this.option("historyToolbar.commands"),locateInMenu:"never"})),this._updateHistoryToolbarPosition(o,t,n),this._historyToolbarResizeCallback=function(){e._historyToolbar.option("isMobileView",e.isMobileScreenSize())}}},{key:"_updateHistoryToolbarPosition",value:function(t,e,n){n||c.default.setup(t,{my:"left top",at:"left top",of:e,offset:"12 12"})}},{key:"_isToolboxEnabled",value:function(){return"disabled"!==this.option("toolbox.visibility")&&!this.isReadOnlyMode()}},{key:"_isToolboxVisible",value:function(){return"visible"===this.option("toolbox.visibility")||"auto"===this.option("toolbox.visibility")&&!this.isMobileScreenSize()}},{key:"_renderToolbox",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=(0,i.default)("<div>").appendTo(t),r=this._getToolboxBounds(t,n);this._toolbox=this._createComponent(o,P.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isToolboxVisible(),container:this.$element(),height:r.height,offsetParent:t,offsetX:r.offsetX,offsetY:r.offsetY,toolboxGroups:this._getToolboxGroups(),onShapeCategoryRendered:function(t){n||e._diagramInstance.createToolbox(t.$element[0],"texts"===t.displayMode,t.shapes||t.category,{shapeIconSpacing:12,shapeIconCountInRow:3,shapeIconAttributes:{"data-toggle":t.dataToggle}})},onFilterChanged:function(t){n||e._diagramInstance.applyToolboxFilter(t.text,t.filteringToolboxes)},onVisibilityChanging:function(t){n||(e._setCustomCommandChecked(B.default.SHOW_TOOLBOX_COMMAND_NAME,t.visible),e._propertiesPanel&&t.visible&&e.isMobileScreenSize()&&e._propertiesPanel.hide(),e._historyToolbar&&t.visible&&e.isMobileScreenSize()&&(e._historyToolbarZIndex=y.create(b.default.baseZIndex()),e._historyToolbar.$element().css("zIndex",e._historyToolbarZIndex),e._historyToolbar.$element().css("boxShadow","none")),e._viewToolbar&&(e._viewToolbar.$element().css("opacity",t.visible&&e.isMobileScreenSize()?"0":"1"),e._viewToolbar.$element().css("pointerEvents",t.visible&&e.isMobileScreenSize()?"none":"")))},onVisibilityChanged:function(t){t.visible||e._textInputStarted||e._diagramCaptureFocus(),n||e._historyToolbar&&!t.visible&&e.isMobileScreenSize()&&e._historyToolbarZIndex&&(y.remove(e._historyToolbarZIndex),e._historyToolbar.$element().css("zIndex",""),e._historyToolbar.$element().css("boxShadow",""),e._historyToolbarZIndex=void 0)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._toolboxResizeCallback=function(){var i=e._getToolboxBounds(t,n);e._toolbox.option("height",i.height),e._toolbox.option("isMobileView")!==e.isMobileScreenSize()&&(e._toolbox.option({isMobileView:e.isMobileScreenSize(),isVisible:e._isToolboxVisible()}),e._setCustomCommandChecked(B.default.SHOW_TOOLBOX_COMMAND_NAME,e._isToolboxVisible())),e._toolbox.updateMaxHeight()}}},{key:"_getToolboxBounds",value:function(t,e){var n={offsetX:12,offsetY:12,height:e?0:t.height()-24};return this._historyToolbar&&!e&&(n.offsetY+=this._historyToolbar.$element().outerHeight()+12,n.height-=this._historyToolbar.$element().outerHeight()+12),this._viewToolbar&&!e&&(n.height-=this._viewToolbar.$element().outerHeight()+this._getViewToolbarYOffset(e)),n}},{key:"_renderViewToolbar",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=(0,i.default)("<div>").addClass("dx-diagram-floating-toolbar-container").appendTo(t);this._viewToolbar=this._createComponent(o,S.default,(0,s.extend)(this._getToolbarBaseOptions(),{commands:this.option("viewToolbar.commands"),locateInMenu:"never"})),this._updateViewToolbarPosition(o,t,n),this._viewToolbarResizeCallback=function(){e._updateViewToolbarPosition(o,t,n)}}},{key:"_getViewToolbarYOffset",value:function(t){if(!t){var e=12;return this._viewToolbar&&this._propertiesToolbar&&(e+=(this._propertiesToolbar.$element().outerHeight()-this._viewToolbar.$element().outerHeight())/2),e}}},{key:"_updateViewToolbarPosition",value:function(t,e,n){n||c.default.setup(t,{my:"left bottom",at:"left bottom",of:e,offset:"12 -"+this._getViewToolbarYOffset(n)})}},{key:"_isPropertiesPanelEnabled",value:function(){return"disabled"!==this.option("propertiesPanel.visibility")&&!this.isReadOnlyMode()}},{key:"_isPropertiesPanelVisible",value:function(){return"visible"===this.option("propertiesPanel.visibility")}},{key:"_renderPropertiesToolbar",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=(0,i.default)("<div>").addClass("dx-diagram-floating-toolbar-container").addClass("dx-diagram-properties-panel-toolbar-container").appendTo(t);this._propertiesToolbar=this._createComponent(o,k.default,(0,s.extend)(this._getToolbarBaseOptions(),{buttonStylingMode:"contained",buttonType:"default",locateInMenu:"never"})),this._updatePropertiesToolbarPosition(o,t,n),this._propertiesToolbarResizeCallback=function(){e._updatePropertiesToolbarPosition(o,t,n)}}},{key:"_updatePropertiesToolbarPosition",value:function(t,e,n){n||c.default.setup(t,{my:"right bottom",at:"right bottom",of:e,offset:"-12 -12"})}},{key:"_renderPropertiesPanel",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=(0,i.default)("<div>").appendTo(t),r=24+(n?0:this._propertiesToolbar.$element().outerHeight());this._propertiesPanel=this._createComponent(o,D.default,{isMobileView:this.isMobileScreenSize(),isVisible:this._isPropertiesPanelVisible(),container:this.$element(),offsetParent:t,offsetX:12,offsetY:r,propertyTabs:this.option("propertiesPanel.tabs"),onCreateToolbar:function(t){t.toolbar=e._createComponent(t.$parent,w.default,(0,s.extend)(e._getToolbarBaseOptions(),{commands:t.commands,locateInMenu:"never",editorStylingMode:"outlined"}))},onVisibilityChanging:function(t){n||(e._updatePropertiesPanelGroupBars(t.component),e._setCustomCommandChecked(B.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,t.visible),e._toolbox&&t.visible&&e.isMobileScreenSize()&&e._toolbox.hide())},onVisibilityChanged:function(t){t.visible||e._textInputStarted||e._diagramCaptureFocus()},onSelectedGroupChanged:function(t){var n=t.component;return e._updatePropertiesPanelGroupBars(n)},onPointerUp:this._onPanelPointerUp.bind(this)}),this._propertiesPanelResizeCallback=function(){e._propertiesPanel.option("isMobileView")!==e.isMobileScreenSize()&&(e._propertiesPanel.option({isMobileView:e.isMobileScreenSize(),isVisible:e._isPropertiesPanelVisible()}),e._setCustomCommandChecked(B.default.SHOW_PROPERTIES_PANEL_COMMAND_NAME,e._isPropertiesPanelVisible()))}}},{key:"_updatePropertiesPanelGroupBars",value:function(t){var e=this;t.getActiveToolbars().forEach((function(t){e._diagramInstance.updateBarItemsState(t.bar)}))}},{key:"_onPanelPointerUp",value:function(){var t=this;this._captureFocusTimeout=setTimeout((function(){t._diagramCaptureFocus(),delete t._captureFocusTimeout}),100)}},{key:"_killCaptureFocusTimeout",value:function(){this._captureFocusTimeout&&(clearTimeout(this._captureFocusTimeout),delete this._captureFocusTimeout)}},{key:"_renderContextMenu",value:function(t){var e=this,n=(0,i.default)("<div>").appendTo(t);this._contextMenu=this._createComponent(n,I.DiagramContextMenuWrapper,{commands:this.option("contextMenu.commands"),onContentReady:function(t){var n=t.component;return e._registerBar(n)},onVisibilityChanging:function(t){var n=t.component;return e._diagramInstance.updateBarItemsState(n.bar)},onItemClick:function(t){return e._onBeforeCommandExecuted(t.command)},export:this.option("export"),excludeCommands:this._getExcludeCommands(),onInternalCommand:this._onInternalCommand.bind(this),onCustomCommand:this._onCustomCommand.bind(this)})}},{key:"_renderContextToolbox",value:function(t){var e=this,n=!(0,f.hasWindow)(),o=this.option("contextToolbox.category"),r=this.option("contextToolbox.displayMode"),a=this.option("contextToolbox.shapes"),s=(0,i.default)("<div>").appendTo(t);this._contextToolbox=this._createComponent(s,T.default,{onShown:function(t){if(!n){var s=(0,i.default)(t.$element),l="texts"===r;if(!a&&!o&&!l){var u=e._getToolboxGroups().filter((function(e){return e.category===t.category}))[0];u&&(l="texts"===u.displayMode)}e._diagramInstance.createContextToolbox(s[0],l,a||o||t.category,{shapeIconSpacing:12,shapeIconCountInRow:4},(function(n){t.callback(n),e._diagramCaptureFocus(),t.hide()}))}}})}},{key:"_setCustomCommandChecked",value:function(t,e){this._toolbars.forEach((function(n){n.setCommandChecked(t,e)}))}},{key:"_onBeforeCommandExecuted",value:function(t){var e=R.default.getDialogParameters(t);return e&&this._showDialog(e),!!e}},{key:"_renderDialog",value:function(t){var e=(0,i.default)("<div>").appendTo(t);this._dialogInstance=this._createComponent(e,E.default,{})}},{key:"_showDialog",value:function(t){this._dialogInstance&&(this._dialogInstance.option("onGetContent",t.onGetContent),this._dialogInstance.option("onHidden",function(){this._diagramCaptureFocus()}.bind(this)),this._dialogInstance.option("command",this._diagramInstance.getCommand(t.command)),this._dialogInstance.option("title",t.title),this._dialogInstance._show())}},{key:"_showLoadingIndicator",value:function(){this._loadingIndicator=(0,i.default)("<div>").addClass("dx-diagram-loading-indicator"),this._createComponent(this._loadingIndicator,r.default,{}),(this._$content||this.$element()).append(this._loadingIndicator)}},{key:"_hideLoadingIndicator",value:function(){this._loadingIndicator&&(this._loadingIndicator.remove(),this._loadingIndicator=null)}},{key:"_initDiagram",value:function(){var t=(0,h.getDiagram)().DiagramControl;this._diagramInstance=new t,this._diagramInstance.onChanged=this._raiseDataChangeAction.bind(this),this._diagramInstance.onEdgeInserted=this._raiseEdgeInsertedAction.bind(this),this._diagramInstance.onEdgeUpdated=this._raiseEdgeUpdatedAction.bind(this),this._diagramInstance.onEdgeRemoved=this._raiseEdgeRemovedAction.bind(this),this._diagramInstance.onNodeInserted=this._raiseNodeInsertedAction.bind(this),this._diagramInstance.onNodeUpdated=this._raiseNodeUpdatedAction.bind(this),this._diagramInstance.onNodeRemoved=this._raiseNodeRemovedAction.bind(this),this._diagramInstance.onToolboxDragStart=this._raiseToolboxDragStart.bind(this),this._diagramInstance.onToolboxDragEnd=this._raiseToolboxDragEnd.bind(this),this._diagramInstance.onTextInputStart=this._raiseTextInputStart.bind(this),this._diagramInstance.onTextInputEnd=this._raiseTextInputEnd.bind(this),this._diagramInstance.onToggleFullscreen=this._onToggleFullScreen.bind(this),this._diagramInstance.onShowContextMenu=this._onShowContextMenu.bind(this),this._diagramInstance.onHideContextMenu=this._onHideContextMenu.bind(this),this._diagramInstance.onShowContextToolbox=this._onShowContextToolbox.bind(this),this._diagramInstance.onHideContextToolbox=this._onHideContextToolbox.bind(this),this._diagramInstance.onNativeAction.add({notifyItemClick:this._raiseItemClickAction.bind(this),notifyItemDblClick:this._raiseItemDblClickAction.bind(this),notifySelectionChanged:this._raiseSelectionChanged.bind(this)}),this._updateEventSubscriptionMethods(),this._updateDefaultItemProperties(),this._updateShapeTexts(),this._updateUnitItems(),this._updateFormatUnitsMethod(),"in"!==this.option("units")&&this._updateUnitsState(),this.isReadOnlyMode()&&this._updateReadOnlyState(),this.option("pageSize")&&(this.option("pageSize.items")&&this._updatePageSizeItemsState(),this.option("pageSize.width")&&this.option("pageSize.height")&&this._updatePageSizeState()),"portrait"!==this.option("pageOrientation")&&this._updatePageOrientationState(),"#ffffff"!==this.option("pageColor")&&this._updatePageColorState(),"in"!==this.option("viewUnits")&&this._updateViewUnitsState(),this.option("showGrid")||this._updateShowGridState(),this.option("snapToGrid")||this._updateSnapToGridState(),this.option("gridSize")&&(this.option("gridSize.items")&&this._updateGridSizeItemsState(),this._updateGridSizeState()),this.option("zoomLevel.items")&&this._updateZoomLevelItemsState(),this.option("simpleView")&&this._updateSimpleViewState(),1!==this.option("zoomLevel")&&this._updateZoomLevelState(),"disabled"!==this.option("autoZoomMode")&&this._updateAutoZoomState(),this.option("fullScreen")&&this._updateFullscreenState(),this.optionsUpdateBar=new A.default(this),this._diagramInstance.registerBar(this.optionsUpdateBar),this._updateCustomShapes(this._getCustomShapes()),this._refreshDataSources()}},{key:"_clean",value:function(){this._diagramInstance&&this._diagramInstance.cleanMarkup(),U($(g.prototype),"_clean",this).call(this)}},{key:"_dispose",value:function(){this._killCaptureFocusTimeout(),U($(g.prototype),"_dispose",this).call(this),this._diagramInstance=void 0}},{key:"_executeDiagramCommand",value:function(t,e){this._diagramInstance.getCommand(t).execute(e)}},{key:"getNodeDataSource",value:function(){return this._nodesOption&&this._nodesOption.getDataSource()}},{key:"getEdgeDataSource",value:function(){return this._edgesOption&&this._edgesOption.getDataSource()}},{key:"_refreshDataSources",value:function(){this._beginUpdateDiagram(),this._refreshNodesDataSource(),this._refreshEdgesDataSource(),this._endUpdateDiagram()}},{key:"_refreshNodesDataSource",value:function(){this._nodesOption&&(this._nodesOption._disposeDataSource(),delete this._nodesOption),this.option("nodes.dataSource")&&(this._nodesOption=new N.default(this),this._nodesOption.option("dataSource",this.option("nodes.dataSource")),this._nodesOption._refreshDataSource()),this.option("hasChanges",!1)}},{key:"_refreshEdgesDataSource",value:function(){this._edgesOption&&(this._edgesOption._disposeDataSource(),delete this._edgesOption),this.option("edges.dataSource")&&(this._edgesOption=new L.default(this),this._edgesOption.option("dataSource",this.option("edges.dataSource")),this._edgesOption._refreshDataSource()),this.option("hasChanges",!1)}},{key:"_getDiagramData",value:function(){var t,e=(0,h.getDiagram)().DiagramCommand;return this._executeDiagramCommand(e.Export,(function(e){t=e})),t}},{key:"_setDiagramData",value:function(t,e){var n=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(n.Import,{data:t,keepExistingItems:e})}},{key:"isReadOnlyMode",value:function(){return this.option("readOnly")||this.option("disabled")}},{key:"_onDataSourceChanged",value:function(){this._bindDiagramData()}},{key:"_createOptionGetter",value:function(t){var e=this.option(t);return e&&u.default.compileGetter(e)}},{key:"_createOptionSetter",value:function(t){var e=this.option(t);return l.default.isFunction(e)?e:e&&u.default.compileSetter(e)}},{key:"_bindDiagramData",value:function(){if(!this._updateDiagramLockCount&&this._isBindingMode()){var t,e,n,i,o,r,a,s,l=(0,h.getDiagram)(),u=l.DiagramCommand,c=l.ConnectorLineOption,d=l.ConnectorLineEnding,f={nodeDataSource:this._nodesOption&&this._nodesOption.getItems(),edgeDataSource:this._edgesOption&&this._edgesOption.getItems(),nodeDataImporter:{getKey:this._createOptionGetter("nodes.keyExpr"),setKey:this._createOptionSetter("nodes.keyExpr"),getLocked:this._createOptionGetter("nodes.lockedExpr"),setLocked:this._createOptionSetter("nodes.lockedExpr"),getStyle:this._createOptionGetter("nodes.styleExpr"),setStyle:this._createOptionSetter("nodes.styleExpr"),getStyleText:this._createOptionGetter("nodes.textStyleExpr"),setStyleText:this._createOptionSetter("nodes.textStyleExpr"),getZIndex:this._createOptionGetter("nodes.zIndexExpr"),setZIndex:this._createOptionSetter("nodes.zIndexExpr"),getType:this._createOptionGetter("nodes.typeExpr"),setType:this._createOptionSetter("nodes.typeExpr"),getText:this._createOptionGetter("nodes.textExpr"),setText:this._createOptionSetter("nodes.textExpr"),getImage:this._createOptionGetter("nodes.imageUrlExpr"),setImage:this._createOptionSetter("nodes.imageUrlExpr"),getLeft:this._createOptionGetter("nodes.leftExpr"),setLeft:this._createOptionSetter("nodes.leftExpr"),getTop:this._createOptionGetter("nodes.topExpr"),setTop:this._createOptionSetter("nodes.topExpr"),getWidth:this._createOptionGetter("nodes.widthExpr"),setWidth:this._createOptionSetter("nodes.widthExpr"),getHeight:this._createOptionGetter("nodes.heightExpr"),setHeight:this._createOptionSetter("nodes.heightExpr"),getParentKey:this._createOptionGetter("nodes.parentKeyExpr"),setParentKey:this._createOptionSetter("nodes.parentKeyExpr"),getItems:this._createOptionGetter("nodes.itemsExpr"),setItems:this._createOptionSetter("nodes.itemsExpr"),getContainerKey:a=this._createOptionGetter("nodes.containerKeyExpr"),setContainerKey:s=this._createOptionSetter("nodes.containerKeyExpr"),getChildren:!a&&!s&&this._createOptionGetter("nodes.containerChildrenExpr"),setChildren:!a&&!s&&this._createOptionSetter("nodes.containerChildrenExpr")},edgeDataImporter:{getKey:this._createOptionGetter("edges.keyExpr"),setKey:this._createOptionSetter("edges.keyExpr"),getLocked:this._createOptionGetter("edges.lockedExpr"),setLocked:this._createOptionSetter("edges.lockedExpr"),getStyle:this._createOptionGetter("edges.styleExpr"),setStyle:this._createOptionSetter("edges.styleExpr"),getStyleText:this._createOptionGetter("edges.textStyleExpr"),setStyleText:this._createOptionSetter("edges.textStyleExpr"),getZIndex:this._createOptionGetter("edges.zIndexExpr"),setZIndex:this._createOptionSetter("edges.zIndexExpr"),getFrom:this._createOptionGetter("edges.fromExpr"),setFrom:this._createOptionSetter("edges.fromExpr"),getFromPointIndex:this._createOptionGetter("edges.fromPointIndexExpr"),setFromPointIndex:this._createOptionSetter("edges.fromPointIndexExpr"),getTo:this._createOptionGetter("edges.toExpr"),setTo:this._createOptionSetter("edges.toExpr"),getToPointIndex:this._createOptionGetter("edges.toPointIndexExpr"),setToPointIndex:this._createOptionSetter("edges.toPointIndexExpr"),getPoints:this._createOptionGetter("edges.pointsExpr"),setPoints:this._createOptionSetter("edges.pointsExpr"),getText:this._createOptionGetter("edges.textExpr"),setText:this._createOptionSetter("edges.textExpr"),getLineOption:(t=this._createOptionGetter("edges.lineTypeExpr"))&&function(e){var n=t(e);return this._getConnectorLineOption(n)}.bind(this),setLineOption:(e=this._createOptionSetter("edges.lineTypeExpr"))&&function(t,n){switch(n){case c.Straight:n="straight";break;case c.Orthogonal:n="orthogonal"}e(t,n)}.bind(this),getStartLineEnding:(n=this._createOptionGetter("edges.fromLineEndExpr"))&&function(t){var e=n(t);return this._getConnectorLineEnding(e)}.bind(this),setStartLineEnding:(i=this._createOptionSetter("edges.fromLineEndExpr"))&&function(t,e){switch(e){case d.Arrow:e="arrow";break;case d.OutlinedTriangle:e="outlinedTriangle";break;case d.FilledTriangle:e="filledTriangle";break;case d.None:e="none"}i(t,e)}.bind(this),getEndLineEnding:(o=this._createOptionGetter("edges.toLineEndExpr"))&&function(t){var e=o(t);return this._getConnectorLineEnding(e)}.bind(this),setEndLineEnding:(r=this._createOptionSetter("edges.toLineEndExpr"))&&function(t,e){switch(e){case d.Arrow:e="arrow";break;case d.OutlinedTriangle:e="outlinedTriangle";break;case d.FilledTriangle:e="filledTriangle";break;case d.None:e="none"}r(t,e)}.bind(this)},layoutParameters:this._getDataBindingLayoutParameters()};this._executeDiagramCommand(u.BindDocument,f)}}},{key:"_getConnectorLineOption",value:function(t){var e=(0,h.getDiagram)().ConnectorLineOption;switch(t){case"straight":return e.Straight;default:return e.Orthogonal}}},{key:"_getConnectorLineEnding",value:function(t){var e=(0,h.getDiagram)().ConnectorLineEnding;switch(t){case"arrow":return e.Arrow;case"outlinedTriangle":return e.OutlinedTriangle;case"filledTriangle":return e.FilledTriangle;default:return e.None}}},{key:"_getDataBindingLayoutParameters",value:function(){var t=(0,h.getDiagram)(),e=t.DataLayoutType,n=t.DataLayoutOrientation,i=this.option("nodes.autoLayout")||"off",o=i.type||i;if(!("off"===o||"auto"===o&&this._hasNodePositionExprs())){var r={};switch(o){case"tree":r.type=e.Tree;break;default:r.type=e.Sugiyama}switch(i.orientation){case"vertical":r.orientation=n.Vertical;break;case"horizontal":r.orientation=n.Horizontal}return(this.option("edges.fromPointIndexExpr")||this.option("edges.toPointIndexExpr"))&&(r.skipPointIndices=!0),r}}},{key:"_hasNodePositionExprs",value:function(){return this.option("nodes.topExpr")&&this.option("nodes.leftExpr")}},{key:"_getAutoZoomValue",value:function(t){var e=(0,h.getDiagram)().AutoZoomMode;switch(t){case"fitContent":return e.FitContent;case"fitWidth":return e.FitToWidth;default:return e.Disabled}}},{key:"_isBindingMode",value:function(){return this._nodesOption&&this._nodesOption.hasItems()||this._edgesOption&&this._nodesOption.hasItems()}},{key:"_beginUpdateDiagram",value:function(){this._updateDiagramLockCount++}},{key:"_endUpdateDiagram",value:function(){this._updateDiagramLockCount=Math.max(this._updateDiagramLockCount-1,0),this._updateDiagramLockCount||this._bindDiagramData()}},{key:"_getCustomShapes",value:function(){return this.option("customShapes")||[]}},{key:"_getToolboxGroups",value:function(){return M.default.getGroups(this.option("toolbox.groups"))}},{key:"_updateCustomShapes",value:function(t,e){var n=this;Array.isArray(e)&&this._diagramInstance.removeCustomShapes(e.map((function(t){return t.type}))),Array.isArray(t)&&this._diagramInstance.addCustomShapes(t.map((function(t){var e=t.template||n.option("customShapeTemplate"),o=e&&n._getTemplate(e);return{category:t.category,type:t.type,baseType:t.baseType,title:t.title,svgUrl:t.backgroundImageUrl,svgToolboxUrl:t.backgroundImageToolboxUrl,svgLeft:t.backgroundImageLeft,svgTop:t.backgroundImageTop,svgWidth:t.backgroundImageWidth,svgHeight:t.backgroundImageHeight,defaultWidth:t.defaultWidth,defaultHeight:t.defaultHeight,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,allowResize:t.allowResize,defaultText:t.defaultText,allowEditText:t.allowEditText,textLeft:t.textLeft,textTop:t.textTop,textWidth:t.textWidth,textHeight:t.textHeight,defaultImageUrl:t.defaultImageUrl,allowEditImage:t.allowEditImage,imageLeft:t.imageLeft,imageTop:t.imageTop,imageWidth:t.imageWidth,imageHeight:t.imageHeight,connectionPoints:t.connectionPoints&&t.connectionPoints.map((function(t){return{x:t.x,y:t.y}})),createTemplate:o&&function(t,e){o.render({model:n._nativeItemToDiagramItem(e),container:p.default.getPublicElement((0,i.default)(t))})},templateLeft:t.templateLeft,templateTop:t.templateTop,templateWidth:t.templateWidth,templateHeight:t.templateHeight}})))}},{key:"_onToggleFullScreen",value:function(t){this._changeNativeFullscreen(t),this.$element().toggleClass("dx-diagram-fullscreen",t),this._diagramInstance.updateLayout(!0),this._processDiagramResize(),this._toolbox&&this._toolbox.repaint(),this._propertiesPanel&&this._propertiesPanel.repaint()}},{key:"_changeNativeFullscreen",value:function(t){var e=(0,f.getWindow)();e.self!==e.top&&t!==this._inNativeFullscreen()&&(t?this._subscribeFullscreenNativeChanged():this._unsubscribeFullscreenNativeChanged(),this._setNativeFullscreen(t))}},{key:"_setNativeFullscreen",value:function(t){var e=(0,f.getWindow)(),n=e.self.document,i=e.self.document.body;t?i.requestFullscreen?i.requestFullscreen():i.mozRequestFullscreen?i.mozRequestFullscreen():i.webkitRequestFullscreen?i.webkitRequestFullscreen():i.msRequestFullscreen&&i.msRequestFullscreen():n.exitFullscreen?n.exitFullscreen():n.mozCancelFullscreen?n.mozCancelFullscreen():n.webkitExitFullscreen?n.webkitExitFullscreen():n.msExitFullscreen&&n.msExitFullscreen()}},{key:"_inNativeFullscreen",value:function(){var t=(0,f.getWindow)().document;return!((t.fullscreenElement||t.msFullscreenElement||t.webkitFullscreenElement)!==t.body&&!t.webkitIsFullscreen)}},{key:"_subscribeFullscreenNativeChanged",value:function(){var t=(0,f.getWindow)().document,e=this._onNativeFullscreenChangeHandler.bind(this);m.default.on(t,Y,e),m.default.on(t,Z,e),m.default.on(t,X,e),m.default.on(t,J,e)}},{key:"_unsubscribeFullscreenNativeChanged",value:function(){var t=(0,f.getWindow)().document;m.default.off(t,Y),m.default.off(t,Z),m.default.off(t,X),m.default.off(t,J)}},{key:"_onNativeFullscreenChangeHandler",value:function(){this._inNativeFullscreen()||(this._unsubscribeFullscreenNativeChanged(),this.option("fullScreen",!1))}},{key:"_onShowContextMenu",value:function(t,e,n){this._contextMenu&&this._contextMenu._show(t,e,n)}},{key:"_onHideContextMenu",value:function(){this._contextMenu&&this._contextMenu._hide()}},{key:"_onShowContextToolbox",value:function(t,e,n,i,o){this._contextToolbox&&this._contextToolbox._show(t,e,n,i,o)}},{key:"_onHideContextToolbox",value:function(){this._contextToolbox&&this._contextToolbox._hide()}},{key:"_getDiagramUnitValue",value:function(t){var e=(0,h.getDiagram)().DiagramUnit;switch(t){case"in":return e.In;case"cm":return e.Cm;case"px":return e.Px;default:return e.In}}},{key:"_updateReadOnlyState",value:function(){var t=(0,h.getDiagram)().DiagramCommand,e=this.isReadOnlyMode();this._executeDiagramCommand(t.ToggleReadOnly,e)}},{key:"_updateZoomLevelState",value:function(){var t=this.option("zoomLevel.value");t||(t=this.option("zoomLevel"));var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ZoomLevel,t)}},{key:"_updateZoomLevelItemsState",value:function(){var t=this.option("zoomLevel.items");if(Array.isArray(t)){var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.ZoomLevelItems,t)}}},{key:"_updateAutoZoomState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.SwitchAutoZoom,this._getAutoZoomValue(this.option("autoZoomMode")))}},{key:"_updateSimpleViewState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ToggleSimpleView,this.option("simpleView"))}},{key:"_updateFullscreenState",value:function(){var t=(0,h.getDiagram)().DiagramCommand,e=this.option("fullScreen");this._executeDiagramCommand(t.Fullscreen,e),this._onToggleFullScreen(e)}},{key:"_updateShowGridState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ShowGrid,this.option("showGrid"))}},{key:"_updateSnapToGridState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.SnapToGrid,this.option("snapToGrid"))}},{key:"_updateGridSizeState",value:function(){var t=this.option("gridSize.value");t||(t=this.option("gridSize"));var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.GridSize,t)}},{key:"_updateGridSizeItemsState",value:function(){var t=this.option("gridSize.items");if(Array.isArray(t)){var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.GridSizeItems,t)}}},{key:"_updateUnitItems",value:function(){var t=(0,h.getDiagram)().DiagramLocalizationService,e=this._getUnitItems();this._unitItems!==e&&(this._unitItems=e,t.unitItems=e)}},{key:"_getUnitItems",value:function(){var t=(0,h.getDiagram)().DiagramUnit,e={};return e[t.In]=_.default.format("dxDiagram-unitIn"),e[t.Cm]=_.default.format("dxDiagram-unitCm"),e[t.Px]=_.default.format("dxDiagram-unitPx"),e}},{key:"_updateFormatUnitsMethod",value:function(){(0,h.getDiagram)().DiagramLocalizationService.formatUnit=function(t){return v.default.format(t)}}},{key:"_updateViewUnitsState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.ViewUnits,this._getDiagramUnitValue(this.option("viewUnits")))}},{key:"_updateUnitsState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.Units,this._getDiagramUnitValue(this.option("units")))}},{key:"_updatePageSizeState",value:function(){var t=this.option("pageSize");if(t&&t.width&&t.height){var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageSize,t)}}},{key:"_updatePageSizeItemsState",value:function(){var t=this.option("pageSize.items");if(Array.isArray(t)){var e=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(e.PageSizeItems,t)}}},{key:"_updatePageOrientationState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageLandscape,"landscape"===this.option("pageOrientation"))}},{key:"_updatePageColorState",value:function(){var t=(0,h.getDiagram)().DiagramCommand;this._executeDiagramCommand(t.PageColor,this.option("pageColor"))}},{key:"_updateShapeTexts",value:function(){var t=(0,h.getDiagram)().DiagramLocalizationService,e=this._getShapeTexts();this._shapeTexts!==e&&(this._shapeTexts=e,t.shapeTexts=e)}},{key:"_getShapeTexts",value:function(){var t=(0,h.getDiagram)().ShapeTypes,e={};return e[t.Text]=_.default.format("dxDiagram-shapeText"),e[t.Rectangle]=_.default.format("dxDiagram-shapeRectangle"),e[t.Ellipse]=_.default.format("dxDiagram-shapeEllipse"),e[t.Cross]=_.default.format("dxDiagram-shapeCross"),e[t.Triangle]=_.default.format("dxDiagram-shapeTriangle"),e[t.Diamond]=_.default.format("dxDiagram-shapeDiamond"),e[t.Heart]=_.default.format("dxDiagram-shapeHeart"),e[t.Pentagon]=_.default.format("dxDiagram-shapePentagon"),e[t.Hexagon]=_.default.format("dxDiagram-shapeHexagon"),e[t.Octagon]=_.default.format("dxDiagram-shapeOctagon"),e[t.Star]=_.default.format("dxDiagram-shapeStar"),e[t.ArrowLeft]=_.default.format("dxDiagram-shapeArrowLeft"),e[t.ArrowUp]=_.default.format("dxDiagram-shapeArrowUp"),e[t.ArrowRight]=_.default.format("dxDiagram-shapeArrowRight"),e[t.ArrowDown]=_.default.format("dxDiagram-shapeArrowDown"),e[t.ArrowUpDown]=_.default.format("dxDiagram-shapeArrowUpDown"),e[t.ArrowLeftRight]=_.default.format("dxDiagram-shapeArrowLeftRight"),e[t.Process]=_.default.format("dxDiagram-shapeProcess"),e[t.Decision]=_.default.format("dxDiagram-shapeDecision"),e[t.Terminator]=_.default.format("dxDiagram-shapeTerminator"),e[t.PredefinedProcess]=_.default.format("dxDiagram-shapePredefinedProcess"),e[t.Document]=_.default.format("dxDiagram-shapeDocument"),e[t.MultipleDocuments]=_.default.format("dxDiagram-shapeMultipleDocuments"),e[t.ManualInput]=_.default.format("dxDiagram-shapeManualInput"),e[t.Preparation]=_.default.format("dxDiagram-shapePreparation"),e[t.Data]=_.default.format("dxDiagram-shapeData"),e[t.Database]=_.default.format("dxDiagram-shapeDatabase"),e[t.HardDisk]=_.default.format("dxDiagram-shapeHardDisk"),e[t.InternalStorage]=_.default.format("dxDiagram-shapeInternalStorage"),e[t.PaperTape]=_.default.format("dxDiagram-shapePaperTape"),e[t.ManualOperation]=_.default.format("dxDiagram-shapeManualOperation"),e[t.Delay]=_.default.format("dxDiagram-shapeDelay"),e[t.StoredData]=_.default.format("dxDiagram-shapeStoredData"),e[t.Display]=_.default.format("dxDiagram-shapeDisplay"),e[t.Merge]=_.default.format("dxDiagram-shapeMerge"),e[t.Connector]=_.default.format("dxDiagram-shapeConnector"),e[t.Or]=_.default.format("dxDiagram-shapeOr"),e[t.SummingJunction]=_.default.format("dxDiagram-shapeSummingJunction"),e[t.Container]=_.default.format("dxDiagram-shapeContainerDefaultText"),e[t.VerticalContainer]=_.default.format("dxDiagram-shapeVerticalContainer"),e[t.HorizontalContainer]=_.default.format("dxDiagram-shapeHorizontalContainer"),e[t.Card]=_.default.format("dxDiagram-shapeCardDefaultText"),e[t.CardWithImageOnLeft]=_.default.format("dxDiagram-shapeCardWithImageOnLeft"),e[t.CardWithImageOnTop]=_.default.format("dxDiagram-shapeCardWithImageOnTop"),e[t.CardWithImageOnRight]=_.default.format("dxDiagram-shapeCardWithImageOnRight"),e}},{key:"_updateEventSubscriptionMethods",value:function(){var t=(0,h.getDiagram)().RenderHelper;t.addEventListener=function(t,e,n){m.default.on(t,e,n)},t.removeEventListener=function(t,e,n){m.default.off(t,e,n)}}},{key:"_updateDefaultItemProperties",value:function(){this.option("defaultItemProperties.style")&&this._diagramInstance.setInitialStyleProperties(this.option("defaultItemProperties.style")),this.option("defaultItemProperties.textStyle")&&this._diagramInstance.setInitialTextStyleProperties(this.option("defaultItemProperties.textStyle")),this._diagramInstance.setInitialConnectorProperties({lineOption:this._getConnectorLineOption(this.option("defaultItemProperties.connectorLineType")),startLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineStart")),endLineEnding:this._getConnectorLineEnding(this.option("defaultItemProperties.connectorLineEnd"))})}},{key:"focus",value:function(){this._diagramCaptureFocus()}},{key:"export",value:function(){return this._getDiagramData()}},{key:"exportTo",value:function(t,e){var n=this._getDiagramExportToCommand(t);this._executeDiagramCommand(n,e)}},{key:"_getDiagramExportToCommand",value:function(t){var e=(0,h.getDiagram)().DiagramCommand;switch(t){case"png":return e.ExportPng;case"jpg":return e.ExportJpg;default:return e.ExportSvg}}},{key:"import",value:function(t,e){this._setDiagramData(t,e),this._raiseDataChangeAction()}},{key:"_getDefaultOptions",value:function(){return(0,s.extend)(U($(g.prototype),"_getDefaultOptions",this).call(this),{readOnly:!1,zoomLevel:1,simpleView:!1,autoZoomMode:"disabled",fullScreen:!1,showGrid:!0,snapToGrid:!0,units:"in",viewUnits:"in",pageOrientation:"portrait",pageColor:"#ffffff",hasChanges:!1,nodes:{dataSource:null,keyExpr:"id",lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,typeExpr:"type",textExpr:"text",imageUrlExpr:void 0,parentKeyExpr:void 0,itemsExpr:void 0,leftExpr:void 0,topExpr:void 0,widthExpr:void 0,heightExpr:void 0,containerKeyExpr:void 0,containerChildrenExpr:"children",autoLayout:"auto"},edges:{dataSource:null,keyExpr:"id",lockedExpr:void 0,styleExpr:void 0,textStyleExpr:void 0,zIndexExpr:void 0,fromExpr:"from",fromPointIndexExpr:void 0,toExpr:"to",toPointIndexExpr:void 0,pointsExpr:void 0,textExpr:void 0,lineTypeExpr:void 0,fromLineEndExpr:void 0,toLineEndExpr:void 0},customShapes:[],toolbox:{visibility:"auto"},mainToolbar:{visible:!1},historyToolbar:{visible:!0},viewToolbar:{visible:!0},contextMenu:{enabled:!0},contextToolbox:{enabled:!0},propertiesPanel:{visibility:"auto"},defaultItemProperties:{connectorLineType:"orthogonal",connectorLineStart:"none",connectorLineEnd:"arrow"},export:{fileName:"Diagram",proxyUrl:void 0},onItemClick:null,onItemDblClick:null,onSelectionChanged:null})}},{key:"_raiseDataChangeAction",value:function(){this._initialized&&this.option("hasChanges",!0)}},{key:"_raiseEdgeInsertedAction",value:function(t,e,n){this._edgesOption&&this._edgesOption.insert(t,e,n)}},{key:"_raiseEdgeUpdatedAction",value:function(t,e,n,i){this._edgesOption&&this._edgesOption.update(t,e,n,i)}},{key:"_raiseEdgeRemovedAction",value:function(t,e,n,i){this._edgesOption&&this._edgesOption.remove(t,e,n,i)}},{key:"_raiseNodeInsertedAction",value:function(t,e,n){this._nodesOption&&this._nodesOption.insert(t,e,n)}},{key:"_raiseNodeUpdatedAction",value:function(t,e,n,i){this._nodesOption&&this._nodesOption.update(t,e,n,i)}},{key:"_raiseNodeRemovedAction",value:function(t,e,n,i){this._nodesOption&&this._nodesOption.remove(t,e,n,i)}},{key:"_raiseToolboxDragStart",value:function(){this._toolbox&&(this._toolbox._raiseToolboxDragStart(),this.isMobileScreenSize()&&(this._toolbox.hide(),this._toolboxDragHidden=!0))}},{key:"_raiseToolboxDragEnd",value:function(){this._toolbox&&(this._toolbox._raiseToolboxDragEnd(),this._toolboxDragHidden&&(this._toolbox.show(),delete this._toolboxDragHidden))}},{key:"_raiseTextInputStart",value:function(){this._textInputStarted=!0,this._propertiesPanel&&this.isMobileScreenSize()&&this._propertiesPanel.isVisible()&&(this._propertiesPanel.hide(),this._propertiesPanelTextInputHidden=!0),this._toolbox&&this.isMobileScreenSize()&&this._toolbox.isVisible()&&(this._toolbox.hide(),this._toolboxTextInputHidden=!0)}},{key:"_raiseTextInputEnd",value:function(){this._propertiesPanel&&this._propertiesPanelTextInputHidden&&(this._propertiesPanel.show(),delete this._propertiesPanelTextInputHidden),this._toolbox&&this._toolboxTextInputHidden&&(this._toolbox.show(),delete this._toolboxTextInputHidden),this._textInputStarted=!1}},{key:"_createItemClickAction",value:function(){this._itemClickAction=this._createActionByOption("onItemClick")}},{key:"_createItemDblClickAction",value:function(){this._itemDblClickAction=this._createActionByOption("onItemDblClick")}},{key:"_createSelectionChangedAction",value:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}},{key:"_createCustomCommand",value:function(){this._customCommandAction=this._createActionByOption("onCustomCommand")}},{key:"_raiseItemClickAction",value:function(t){this._itemClickAction||this._createItemClickAction(),this._itemClickAction({item:this._nativeItemToDiagramItem(t)})}},{key:"_raiseItemDblClickAction",value:function(t){this._itemDblClickAction||this._createItemDblClickAction(),this._itemDblClickAction({item:this._nativeItemToDiagramItem(t)})}},{key:"_raiseSelectionChanged",value:function(t){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({items:t.map(this._nativeItemToDiagramItem.bind(this))})}},{key:"_nativeItemToDiagramItem",value:function(t){var e=t instanceof(0,h.getDiagram)().NativeShape?this._nativeShapeToDiagramShape.bind(this):this._nativeConnectorToDiagramConnector.bind(this);return(0,s.extend)({id:t.id},e(t))}},{key:"_nativeShapeToDiagramShape",value:function(t){return{dataItem:this._nodesOption&&this._nodesOption.findItem(t.key),itemType:"shape",text:t.text,type:t.type}}},{key:"_nativeConnectorToDiagramConnector",value:function(t){return{dataItem:this._edgesOption&&this._edgesOption.findItem(t.key),itemType:"connector",texts:t.texts,fromKey:t.fromKey,toKey:t.toKey}}},{key:"_invalidateContextMenuCommands",value:function(){this._contextMenu&&this._contextMenu.option({commands:this.option("contextMenu.commands")})}},{key:"_invalidatePropertiesPanelTabs",value:function(){this._propertiesPanel&&this._propertiesPanel.option({propertyTabs:this.option("propertiesPanel.tabs")})}},{key:"_invalidateMainToolbarCommands",value:function(){this._mainToolbar&&this._mainToolbar.option({commands:this.option("mainToolbar.commands")})}},{key:"_invalidateHistoryToolbarCommands",value:function(){this._historyToolbar&&this._historyToolbar.option({commands:this.option("historyToolbar.commands")})}},{key:"_invalidateViewToolbarCommands",value:function(){this._viewToolbar&&this._viewToolbar.option({commands:this.option("viewToolbar.commands")})}},{key:"_invalidateToolboxGroups",value:function(){this._toolbox&&this._toolbox.option({toolboxGroups:this._getToolboxGroups()})}},{key:"_optionChanged",value:function(t){if(!this.optionsUpdateBar.isUpdateLocked()){this.optionsUpdateBar.beginUpdate();try{this._optionChangedCore(t)}finally{this.optionsUpdateBar.endUpdate()}}}},{key:"_optionChangedCore",value:function(t){switch(t.name){case"readOnly":case"disabled":this._updateReadOnlyState(),this._invalidate();break;case"zoomLevel":"zoomLevel"!==t.fullName&&"zoomLevel.items"!==t.fullName||this._updateZoomLevelItemsState(),"zoomLevel"!==t.fullName&&"zoomLevel.value"!==t.fullName||this._updateZoomLevelState();break;case"autoZoomMode":this._updateAutoZoomState();break;case"simpleView":this._updateSimpleViewState();break;case"fullScreen":this._updateFullscreenState();break;case"showGrid":this._updateShowGridState();break;case"snapToGrid":this._updateSnapToGridState();break;case"gridSize":"gridSize"!==t.fullName&&"gridSize.items"!==t.fullName||this._updateGridSizeItemsState(),"gridSize"!==t.fullName&&"gridSize.value"!==t.fullName||this._updateGridSizeState();break;case"viewUnits":this._updateViewUnitsState();break;case"units":this._updateUnitsState();break;case"pageSize":"pageSize"!==t.fullName&&"pageSize.items"!==t.fullName||this._updatePageSizeItemsState(),"pageSize"!==t.fullName&&"pageSize.width"!==t.fullName&&"pageSize.height"!==t.fullName||this._updatePageSizeState();break;case"pageOrientation":this._updatePageOrientationState();break;case"pageColor":this._updatePageColorState();break;case"nodes":"nodes.autoLayout"===t.fullName?this._refreshDataSources():this._refreshNodesDataSource();break;case"edges":this._refreshEdgesDataSource();break;case"customShapes":this._updateCustomShapes(t.value,t.previousValue),this._invalidate();break;case"contextMenu":"contextMenu.commands"===t.fullName?this._invalidateContextMenuCommands():this._invalidate();break;case"contextToolbox":"contextToolbox.enabled"===t.fullName&&this._invalidate();break;case"propertiesPanel":"propertiesPanel.tabs"===t.name?this._invalidatePropertiesPanelTabs():this._invalidate();break;case"toolbox":"toolbox.groups"===t.fullName?this._invalidateToolboxGroups():this._invalidate();break;case"mainToolbar":"mainToolbar.commands"===t.fullName?this._invalidateMainToolbarCommands():this._invalidate();break;case"historyToolbar":"historyToolbar.commands"===t.fullName?this._invalidateHistoryToolbarCommands():this._invalidate();break;case"viewToolbar":"viewToolbar.commands"===t.fullName?this._invalidateViewToolbarCommands():this._invalidate();break;case"onItemClick":this._createItemClickAction();break;case"onItemDblClick":this._createItemDblClickAction();break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"onCustomCommand":this._createCustomCommand();break;case"defaultItemProperties":this._updateDefaultItemProperties();break;case"export":this._mainToolbar&&this._mainToolbar.option("export",t.value);break;case"hasChanges":break;default:U($(g.prototype),"_optionChanged",this).call(this,t)}}}])&&W(e.prototype,n),o&&W(e,o),g}(o.default);(0,a.default)("dxDiagram",Q),t.exports=Q},function(t,e,n){var i;window,i=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=4)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.width=t,this.height=e}return t.prototype.clone=function(){return new t(this.width,this.height)},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.offset=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),new t(Math.max(0,this.width+e),Math.max(0,this.height+n))},t.prototype.multiply=function(e,n){return void 0===e&&(e=1),void 0===n&&(n=e),new t(this.width*e,this.height*n)},t.prototype.equals=function(t){return t.width===this.width&&t.height===this.height},t.prototype.transform=function(e){return new t(e(this.width),e(this.height))},t}();e.Size=i;var o=function(){function t(t,e){this.x=t,this.y=e}return t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.offset=function(e,n){return void 0===e&&(e=0),void 0===n&&(n=0),new t(this.x+e,this.y+n)},t.prototype.multiply=function(e,n){return void 0===e&&(e=1),void 0===n&&(n=e),new t(this.x*e,this.y*n)},t.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},t.prototype.transform=function(e){return new t(e(this.x),e(this.y))},t.empty=function(){return new t(0,0)},t.plus=function(e,n){return new t(e.x+n.x,e.y+n.y)},t.minus=function(e,n){return new t(e.x-n.x,e.y-n.y)},t}();e.Point=o;var r=function(){function t(t,e,n,i){this.left=t,this.top=e,this.right=n,this.bottom=i}return Object.defineProperty(t.prototype,"horizontal",{get:function(){return this.left+this.right},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this.top+this.bottom},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.left,this.top,this.right,this.bottom)},t.prototype.transform=function(e){return new t(e(this.left),e(this.top),e(this.right),e(this.bottom))},t.prototype.offset=function(t,e){var n=this.clone();return e?(n.left+=t.left,n.right+=t.right,n.top+=t.top,n.bottom+=t.bottom):(n.left-=t.left,n.right-=t.right,n.top-=t.top,n.bottom-=t.bottom),n},t.prototype.multiply=function(e,n){return void 0===e&&(e=1),void 0===n&&(n=e),new t(this.left*e,this.top*n,this.right*e,this.bottom*n)},t.prototype.isEmpty=function(){return 0===this.left&&0===this.right&&0===this.top&&0===this.bottom},t.prototype.equals=function(t){return this.left===t.left&&this.top===t.top&&this.right===t.right&&this.bottom===t.bottom},t.prototype.toString=function(){return"left: "+this.left+" top: "+this.top+" right: "+this.right+" bottom: "+this.bottom},t.empty=function(){return new t(0,0,0,0)},t.fromNumber=function(e){return new t(e,e,e,e)},t.fromSide=function(e,n){return new t(e,n,e,n)},t}();e.Offset=r;var a=function(){function t(t,e){this.position=t,this.size=e}return Object.defineProperty(t.prototype,"left",{get:function(){return this.position.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.position.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.position.x+this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.position.y+this.size.height},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"center",{get:function(){return new o(this.position.x+this.size.width/2,this.position.y+this.size.height/2)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.size.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.size.height},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.position.clone(),this.size.clone())},t.prototype.toString=function(){return JSON.stringify(this)},t.prototype.contains=function(t){return this.left<=t.x&&t.x<=this.right&&this.top<=t.y&&t.y<=this.bottom},t.prototype.intersectX=function(t){return!(this.left>t.right||t.left>this.right)},t.prototype.intersectY=function(t){return!(this.top>t.bottom||t.top>this.bottom)},t.prototype.intersect=function(t){return this.intersectX(t)&&this.intersectY(t)},t.prototype.inflate=function(e,n){return n=void 0===n?e:n,new t(this.position.offset(-e,-n),this.size.offset(2*e,2*n))},t.prototype.resize=function(e,n){return new t(this.position,this.size.offset(e,n))},t.prototype.offset=function(e,n){return new t(this.position.offset(e,n),this.size)},t.prototype.multiply=function(e){return new t(this.position.multiply(e),this.size.multiply(e))},t.prototype.equals=function(t){return this.left===t.left&&this.top===t.top&&this.width===t.width&&this.height===t.height},t.prototype.transform=function(e){return new t(this.position.transform(e),this.size.transform(e))},t.prototype.merge=function(e){return t.createByPositions(Math.min(this.left,e.left),Math.min(this.top,e.top),Math.max(this.right,e.right),Math.max(this.bottom,e.bottom))},t.create=function(e,n,r,a){return new t(new o(e,n),new i(r,a))},t.createByPoints=function(e,n){return t.createByPositions(e.x,e.y,n.x,n.y)},t.createByPositions=function(e,n,i,o){var r=Math.min(e,i),a=Math.min(n,o),s=Math.abs(i-e),l=Math.abs(o-n);return t.create(r,a,s,l)},t}();e.Rectangle=a;var s=function(){function t(t,e){this.from=t,this.to=void 0!==e?e:t}return Object.defineProperty(t.prototype,"length",{get:function(){return Math.abs(this.to-this.from)},enumerable:!0,configurable:!0}),t.prototype.extend=function(t){this.from=Math.min(t.from,this.from),this.to=Math.max(t.to,this.to)},t.fromLength=function(e,n){return new t(e,e+n)},t}();e.Range=s;var l=function(){function t(t,e){this.startPoint=t,this.endPoint=e}return Object.defineProperty(t.prototype,"distance",{get:function(){return d.getDistance(this.startPoint,this.endPoint)},enumerable:!0,configurable:!0}),t.prototype.intersect=function(t){return!!(this.startPoint.equals(t.startPoint)||this.endPoint.equals(t.startPoint)||this.startPoint.equals(t.endPoint)||this.endPoint.equals(t.endPoint))||this.intersectCore(t)&&t.intersectCore(this)},t.prototype.intersectRect=function(e){var n=e.position,i=new o(e.left,e.bottom),r=new o(e.right,e.top),a=new o(e.right,e.bottom);return e.contains(this.startPoint)||e.contains(this.endPoint)||this.intersect(new t(n,i))||this.intersect(new t(i,a))||this.intersect(new t(a,r))||this.intersect(new t(r,n))},t.prototype.intersectCore=function(t){if(this.startPoint.x===this.endPoint.x){if(this.startPoint.x-t.endPoint.x!==0)return(this.startPoint.x-t.startPoint.x)/(this.startPoint.x-t.endPoint.x)<=0;if(t.endPoint.y-this.endPoint.y!==0)return(t.endPoint.y-this.startPoint.y)/(t.endPoint.y-this.endPoint.y)<=0}if(this.startPoint.y===this.endPoint.y){if(this.startPoint.y-t.endPoint.y!==0)return(this.startPoint.y-t.startPoint.y)/(this.startPoint.y-t.endPoint.y)<=0;if(t.endPoint.x-this.endPoint.x!==0)return(t.endPoint.x-this.startPoint.x)/(t.endPoint.x-this.endPoint.x)<=0}var e=(this.endPoint.y-this.startPoint.y)/(this.endPoint.x-this.startPoint.x),n=this.startPoint.y+(t.startPoint.x-this.startPoint.x)*e,i=this.startPoint.y+(t.endPoint.x-this.startPoint.x)*e,o=t.startPoint.y-n,r=t.endPoint.y-i;return 0===o&&0===r?(this.startPoint.y-n)/(this.endPoint.y-n)<=0||(this.startPoint.y-i)/(this.endPoint.y-i)<=0:0===o||0===r||o/r<0},t.create=function(e,n,i,r){return new t(new o(e,n),new o(i,r))},t.createByPoints=function(e,n){return t.create(e.x,e.y,n.x,n.y)},t}();e.Segment=l;var u=function(){function t(){this.listeners=[]}return t.prototype.add=function(t){if(!t)throw new Error("Not Implemented");this.hasEventListener(t)||this.listeners.push(t)},t.prototype.remove=function(t){for(var e,n=0;e=this.listeners[n];n++)if(e===t){this.listeners.splice(n,1);break}},t.prototype.raise=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i,o=0;i=this.listeners[o];o++){var r=i[t];r&&r.apply(i,e)}},t.prototype.raise1=function(t){for(var e,n=0;e=this.listeners[n];n++)t(e)},t.prototype.hasEventListener=function(t){for(var e=0,n=this.listeners.length;e<n;e++)if(this.listeners[e]===t)return!0;return!1},t}();e.EventDispatcher=u;var c=function(){function t(){}return t.binaryIndexOf=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=-2);var o=0==n;for(-2==i&&(i=t.length-1);n<=i;){var r=n+(i-n>>1),a=e(t[r]);if(a<0)n=r+1;else{if(!(a>0))return r;i=r-1}}return o?~n:-1},t.normedBinaryIndexOf=function(e,n,i,o){void 0===i&&(i=0),void 0===o&&(o=-2);var r=t.binaryIndexOf(e,n,i,o);return t.binaryIndexNormalizator(r)},t.binaryIndexNormalizator=function(t){return t<0?~t-1:t},t.flatten=function(t){return[].concat.apply([],t)},t}();e.Utils=c;var d=function(){function t(){}return t.getCommonRectangle=function(t){if(!t.length)return a.create(0,0,0,0);var e=Number.MAX_VALUE,n=-Number.MAX_VALUE,i=Number.MAX_VALUE,o=-Number.MAX_VALUE;return t.forEach((function(t){e=Math.min(e,t.left),n=Math.max(n,t.right),i=Math.min(i,t.top),o=Math.max(o,t.bottom)})),a.create(e,i,n-e,o-i)},t.findFreeSpace=function(t,e,n,i){var r=[i?i.left:0],a=[i?i.top:0];t.forEach((function(t){r.push(t.left),r.push(t.right),a.push(t.top),a.push(t.bottom)})),r=r.sort((function(t,e){return t-e})).reduce((function(t,e,n){return r[n-1]!==e&&t.push(e)&&t||t}),[]);for(var s=(a=a.sort((function(t,e){return t-e})).reduce((function(t,e,n){return a[n-1]!==e&&t.push(e)&&t||t}),[])).map((function(t){return r.map((function(t,e){return r[e+1]-t}))})),l=function(t,e){for(var n=c.binaryIndexOf(r,(function(t){return t-e.left})),i=c.binaryIndexOf(r,(function(t){return t-e.right})),o=c.binaryIndexOf(a,(function(t){return t-e.top})),l=c.binaryIndexOf(a,(function(t){return t-e.bottom})),u=o;u<l;u++)for(var d=n;d<i;d++)s[u][d]*=-1},u=0,d=void 0;d=t[u];u++)l(0,d);for(var h=0;h<a.length;h++)for(var f=0;f<r.length-1;f++){var p=this.checkRect(s,a,r,h,f,e,n);if(p>0)f=p;else if(0===p)return new o(r[f],a[h])}return null},t.checkRect=function(t,e,n,i,o,r,a){for(var s=0,l=0,u=n.length-2,c=i;c<e.length;c++){s=e[c+1]-e[i];for(var d=o;d<=u;d++){if(t[c][d]<0)return 0===d?-1:d;if(l=n[d+1]-n[o],r.width<=l||!a&&d===n.length-2&&r.width/2<=l){if(r.height<=s||!a&&c===e.length-2&&r.height/2<=s)return 0;u=d}}}},t.getArrowPoints=function(t,e,n,i){if(t.x===e.x&&t.y===e.y)return{point1:t.clone(),point2:t.clone(),point3:t.clone()};var r=e.x-t.x,a=e.y-t.y,s=Math.sqrt(Math.pow(r,2)+Math.pow(a,2)),l=r/s,u=a/s,c=t.x+n*l+i*u,d=t.y+n*u-i*l,h=t.x+n*l-i*u,f=t.y+n*u+i*l,p=t.x+n*l,m=t.y+n*u;return{point1:new o(c,d),point2:new o(h,f),point3:new o(p,m)}},t.removeUnnecessaryLinePoints=function(t,e,n){void 0===n&&(n=function(t){return void 0!==t}),this.removeDuplicatedPoints(t,e,n),this.removeOneLinePoints(t,e,n),this.removeBackwardPoints(t,e,n)},t.removeBackwardPoints=function(t,e,n){void 0===n&&(n=function(t){return void 0!==t});for(var i,o=0;(i=t[o])&&!(t.length<=2);){var r=this.getNextPoint(t,o,!0,n),a=this.getNextPoint(t,o,!1,n);if(a&&r){if(i.x==a.x&&i.x==r.x&&(i.y>a.y&&i.y>r.y||i.y<a.y&&i.y<r.y)&&e(t[o],o))continue;if(i.y==a.y&&i.y==r.y&&(i.x>a.x&&i.x>r.x||i.x<a.x&&i.x<r.x)&&e(t[o],o))continue}o++}},t.removeOneLinePoints=function(t,e,n){void 0===n&&(n=function(t){return void 0!==t});for(var i,o=0;(i=t[o])&&!(t.length<=2);){var r=this.getNextPoint(t,o,!0,n),a=this.getNextPoint(t,o,!1,n);if(a&&r){if((i.x==a.x&&i.x==r.x||i.y==a.y&&i.y==r.y)&&e(t[o],o))continue;var s=(r.y-a.y)/(r.x-a.x);if(r.y-t[o].y==(r.x-t[o].x)*s&&e(t[o],o))continue}o++}},t.removeDuplicatedPoints=function(t,e,n){void 0===n&&(n=function(t){return void 0!==t});for(var i,o=0;(i=t[o])&&!(t.length<=2);){var r=this.getNextPoint(t,o,!0,n);if(r&&i.x==r.x&&i.y==r.y){var a=o+1;if(a===t.length-1&&a--,e(t[a],a))continue}o++}},t.getNextPoint=function(t,e,n,i){for(var o,r=e+(n?1:-1);o=t[r];){if(i(o))return o;r+=n?1:-1}},t.getDistance=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},t.getPathLength=function(e){var n,i=0;return e.forEach((function(e){if(void 0!==n){var o=t.getDistance(e,n);i+=o}n=e})),i},t.getPathPointByPosition=function(e,n){if(!e.length)throw new Error("Invalid points");if(0>n||n>1)throw new Error("Invalid relative position");var i=this.getPathLength(e);if(e.length<=2&&0===i||0===n)return[e[0],0];for(var r=i*n,a=0,s=1;s<e.length;s++){var l=t.getDistance(e[s],e[s-1]);if(a+l>=r){var u=r-a,c=(e[s].x-e[s-1].x)/l,d=(e[s].y-e[s-1].y)/l;return[new o(e[s-1].x+c*u,e[s-1].y+d*u),s]}a+=l}return[e[e.length-1],e.length-1]},t.getLineAngle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},t.getTriangleBeginAngle=function(t,e,n){var i=this.getLineAngle(t,e),o=this.getLineAngle(t,n);return Math.abs(o-i)},t.getTriangleEndAngle=function(t,e,n){var i=this.getLineAngle(t,e),o=this.getLineAngle(n,e);return Math.abs(i-o)},t.getPathPointByPoint=function(e,n){if(!e.length)throw new Error("Invalid points");if(1===e.length)return e[0];for(var i,o=Number.MAX_VALUE,r=1;r<e.length;r++){var a=e[r-1],s=e[r];if(n.equals(a)){i=a.clone();break}if(n.equals(s)){i=s.clone();break}var l=this.getTriangleBeginAngle(a,s,n),u=this.getTriangleEndAngle(a,s,n),c=t.getDistance(n,a),d=t.getDistance(n,s),h=c*Math.sin(l),f=void 0;if((f=Math.PI/2<=l&&l<=3*Math.PI/2?c:Math.PI/2<=u&&u<=3*Math.PI/2?d:Math.abs(h))<o)if(o=f,Math.PI/2<=l&&l<=3*Math.PI/2)i=a.clone();else if(Math.PI/2<=u&&u<=3*Math.PI/2)i=s.clone();else{var p=Math.fround||Math.round,m=this.getLineAngle(a,s),g=p(Math.abs(h*Math.sin(m))),_=p(Math.abs(h*Math.cos(m))),v=n.y-a.y<p((n.x-a.x)*Math.tan(m));0<=m&&m<=Math.PI/2?(g*=v?-1:1,_*=v?1:-1):Math.PI/2<=m&&m<=Math.PI||0>=m&&m>=-Math.PI/2?(g*=v?1:-1,_*=v?1:-1):-Math.PI/2>=m&&m>=-Math.PI&&(g*=v?-1:1,_*=v?1:-1),i=n.offset(g,_)}}return i},t.getPathPositionByPoint=function(e,n,i){void 0===i&&(i=100),n=this.getPathPointByPoint(e,n);for(var o=this.getPathLength(e),r=0,a=1;a<e.length;a++){var s=e[a-1],l=e[a],u=t.getDistance(l,s),c=Math.atan((l.y-s.y)/(l.x-s.x)),d=Math.fround||Math.round;if(n.x===l.x&&n.x===s.x||n.y===l.y&&n.y===s.y||d(n.y-s.y)===d((n.x-s.x)*Math.tan(c)))return 0!==Math.sin(c)?r+=Math.abs((n.y-s.y)/Math.sin(c)):r+=Math.abs(n.x-s.x),Math.round(r*i/o)/i;r+=u}return 1},t.arePointsEqual=function(t,e){var n=t.length;if(n!=e.length)return!1;for(var i=0;i<n;i++)if(!t[i].equals(e[i]))return!1;return!0},t}();e.GeometryUtils=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.General="general",t.Flowchart="flowchart",t.OrgChart="orgChart",t.Containers="containers",t.Custom="custom",t}();e.ShapeCategories=i;var o=function(){function t(){}return t.Text="text",t.Rectangle="rectangle",t.Ellipse="ellipse",t.Cross="cross",t.Triangle="triangle",t.Diamond="diamond",t.Heart="heart",t.Pentagon="pentagon",t.Hexagon="hexagon",t.Octagon="octagon",t.Star="star",t.ArrowLeft="arrowLeft",t.ArrowUp="arrowTop",t.ArrowRight="arrowRight",t.ArrowDown="arrowBottom",t.ArrowUpDown="arrowNorthSouth",t.ArrowLeftRight="arrowEastWest",t.Process="process",t.Decision="decision",t.Terminator="terminator",t.PredefinedProcess="predefinedProcess",t.Document="document",t.MultipleDocuments="multipleDocuments",t.ManualInput="manualInput",t.Preparation="preparation",t.Data="data",t.Database="database",t.HardDisk="hardDisk",t.InternalStorage="internalStorage",t.PaperTape="paperTape",t.ManualOperation="manualOperation",t.Delay="delay",t.StoredData="storedData",t.Display="display",t.Merge="merge",t.Connector="connector",t.Or="or",t.SummingJunction="summingJunction",t.Container="container",t.VerticalContainer="verticalContainer",t.HorizontalContainer="horizontalContainer",t.Card="card",t.CardWithImageOnLeft="cardWithImageOnLeft",t.CardWithImageOnTop="cardWithImageOnTop",t.CardWithImageOnRight="cardWithImageOnRight",t}();e.ShapeTypes=o,function(t){t[t.text=0]="text",t[t.rectangle=1]="rectangle",t[t.ellipse=2]="ellipse",t[t.cross=3]="cross",t[t.triangle=4]="triangle",t[t.diamond=5]="diamond",t[t.heart=6]="heart",t[t.pentagon=7]="pentagon",t[t.hexagon=8]="hexagon",t[t.octagon=9]="octagon",t[t.star=10]="star",t[t.arrowLeft=11]="arrowLeft",t[t.arrowTop=12]="arrowTop",t[t.arrowRight=13]="arrowRight",t[t.arrowBottom=14]="arrowBottom",t[t.arrowNorthSouth=15]="arrowNorthSouth",t[t.arrowEastWest=16]="arrowEastWest",t[t.process=17]="process",t[t.decision=18]="decision",t[t.terminator=19]="terminator",t[t.predefinedProcess=20]="predefinedProcess",t[t.document=21]="document",t[t.multipleDocuments=22]="multipleDocuments",t[t.manualInput=23]="manualInput",t[t.preparation=24]="preparation",t[t.data=25]="data",t[t.database=26]="database",t[t.hardDisk=27]="hardDisk",t[t.internalStorage=28]="internalStorage",t[t.paperTape=29]="paperTape",t[t.manualOperation=30]="manualOperation",t[t.delay=31]="delay",t[t.storedData=32]="storedData",t[t.display=33]="display",t[t.merge=34]="merge",t[t.connector=35]="connector",t[t.or=36]="or",t[t.summingJunction=37]="summingJunction",t[t.verticalContainer=38]="verticalContainer",t[t.horizontalContainer=39]="horizontalContainer",t[t.cardWithImageOnLeft=40]="cardWithImageOnLeft",t[t.cardWithImageOnTop=41]="cardWithImageOnTop",t[t.cardWithImageOnRight=42]="cardWithImageOnRight"}(e.ShapeType||(e.ShapeType={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=n(21),a=n(87),s=function(t){function e(e,n,i,o,r){var a=t.call(this,n,i,o,r)||this;return a.commands=e.map((function(t){return t.style=n,t})),a}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"path")},e.prototype.applyElementProperties=function(e,n){e.setAttribute("d",this.commands.map((function(t){return t.toString()})).join(" ")),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(r.SvgPrimitive);e.PathPrimitive=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(a.PrimitiveObject);e.PathPrimitiveCommand=l;var u=function(t){function e(e,n){var i=t.call(this)||this;return i.x=e,i.y=n,i}return i(e,t),e.prototype.toString=function(){return"M "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},e.fromPoint=function(t){return new e(t.x,t.y)},e}(l);e.PathPrimitiveMoveToCommand=u;var c=function(t){function e(e,n){var i=t.call(this)||this;return i.x=e,i.y=n,i}return i(e,t),e.prototype.toString=function(){return"L "+this.getUnitVaue(this.x)+" "+this.getUnitVaue(this.y)},e.fromPoint=function(t){return new e(t.x,t.y)},e}(l);e.PathPrimitiveLineToCommand=c;var d=function(t){function e(e,n,i,o,r,a){var s=t.call(this)||this;return s.x1=e,s.y1=n,s.x2=i,s.y2=o,s.x3=r,s.y3=a,s}return i(e,t),e.prototype.toString=function(){return"C "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)+","+this.getUnitVaue(this.x3)+" "+this.getUnitVaue(this.y3)},e}(l);e.PathPrimitiveCubicCurveToCommand=d;var h=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.x1=e,r.y1=n,r.x2=i,r.y2=o,r}return i(e,t),e.prototype.toString=function(){return"Q "+this.getUnitVaue(this.x1)+" "+this.getUnitVaue(this.y1)+","+this.getUnitVaue(this.x2)+" "+this.getUnitVaue(this.y2)},e}(l);e.PathPrimitiveQuadraticCurveToCommand=h;var f=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this)||this;return l.rx=e,l.ry=n,l.xAxisRotation=i,l.largeArcFlag=o,l.sweepFag=r,l.x=a,l.y=s,l}return i(e,t),e.prototype.toString=function(){return"A "+this.getUnitVaue(this.rx)+" "+this.getUnitVaue(this.ry)+" "+this.getUnitVaue(this.xAxisRotation)+" "+(this.largeArcFlag?"1":"0")+" "+(this.sweepFag?"1":"0")+this.getUnitVaue(this.x)+","+this.getUnitVaue(this.y)},e}(l);e.PathPrimitiveArcToCommand=f;var p=function(t){function e(){return t.call(this)||this}return i(e,t),e.prototype.toString=function(){return"z"},e}(l);e.PathPrimitiveClosePathCommand=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){this.uniqueId=-1}return t.prototype.changeModified=function(){return!0},t.prototype.getName=function(){return this.constructor.name},t}();e.HistoryItem=o;var r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.historyItems=[],e}return i(e,t),e.prototype.changeModified=function(){for(var t,e=0;t=this.historyItems[e];e++)if(t.changeModified())return!0;return!1},e.prototype.redo=function(t){for(var e,n=0;e=this.historyItems[n];n++)e.redo(t)},e.prototype.undo=function(t){for(var e,n=this.historyItems.length-1;e=this.historyItems[n];n--)e.undo(t)},e.prototype.add=function(t){if(null==t)throw new Error("cannot be null");this.historyItems.push(t)},e}(o);e.CompositionHistoryItem=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(63);e.DiagramCommand=i.DiagramCommand;var o=n(266);e.DiagramControl=o.DiagramControl;var r=n(0);e.EventDispatcher=r.EventDispatcher,e.Size=r.Size,e.Point=r.Point;var a=n(1);e.ShapeTypes=a.ShapeTypes,e.ShapeCategories=a.ShapeCategories,e.ShapeType=a.ShapeType;var s=n(14);e.UnitConverter=s.UnitConverter;var l=n(22);e.Browser=l.Browser;var u=n(35);e.AutoZoomMode=u.AutoZoomMode;var c=n(119);e.DataLayoutType=c.DataLayoutType;var d=n(17);e.DataLayoutOrientation=d.DataLayoutOrientation,n(319);var h=n(19);e.DiagramUnit=h.DiagramUnit,e.PageOrientation=h.PageOrientation;var f=n(25);e.ConnectorLineEnding=f.ConnectorLineEnding,e.ConnectorLineOption=f.ConnectorLineOption;var p=n(37);e.ColorHelper=p.ColorHelper;var m=n(64);e.Diagnostics=m.Diagnostics;var g=n(66);e.NativeShape=g.NativeShape,e.NativeConnector=g.NativeConnector;var _=n(320);e.DiagramLocalizationService=_.DiagramLocalizationService;var v=n(12);e.RenderHelper=v.RenderHelper},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0),r=n(24);!function(t){t[t.Undefined=-1]="Undefined",t[t.North=0]="North",t[t.East=1]="East",t[t.South=2]="South",t[t.West=3]="West"}(i=e.ConnectionPointSide||(e.ConnectionPointSide={})),e.DEFAULT_ZINDEX=0;var a=function(){function t(){this.key=void 0,this.dataKey=void 0,this.attachedConnectors=[],this.zIndex=e.DEFAULT_ZINDEX,this.locked=!1,this.container=void 0,this.style=new r.Style,this.styleText=new r.TextStyle}return t.prototype.assign=function(t){t.key=this.key,t.dataKey=this.dataKey,t.locked=this.locked,t.attachedConnectors=this.attachedConnectors.slice(),t.style=this.style.clone(),t.styleText=this.styleText.clone(),t.zIndex=this.zIndex,t.container=this.container},t.prototype.invalidatePrimitives=function(){this.primitives&&this.primitives.forEach((function(t){t.dispose()})),delete this.primitives,delete this.selectorPrimitives},t.prototype.getPrimitives=function(){return this.primitives||(this.primitives=this.createPrimitives()),this.primitives},t.prototype.getSelectorPrimitives=function(){return this.selectorPrimitives||(this.selectorPrimitives=this.createSelectorPrimitives()),this.selectorPrimitives},t.prototype.getConnectionPointPosition=function(t,e){return this.getConnectionPoint(t,e).toPoint()},t.prototype.getConnectionPoint=function(t,e){t<0&&e&&(t=this.getNearestConnectionPoint(e));var n=this.getConnectionPoints();return n[t]||n[0]},t.prototype.getNearestConnectionPoint=function(t){var e,n=Number.MAX_VALUE;return this.getConnectionPoints().forEach((function(i,r){var a=o.GeometryUtils.getDistance(i,t);a<n&&(n=a,e=r)})),e},t.prototype.getConnectionPointIndex=function(t){var e=this.getConnectionPoints();return e.reduce((function(n,o,r){return t===i.North&&o.y<e[n].y||t===i.South&&o.y>e[n].y||t===i.West&&o.x<e[n].x||t===i.East&&o.x>e[n].x?r:n}),0)},t.prototype.getConnectionPointSideByIndex=function(t,e){var n=this.getConnectionPoint(t,e);return this.getConnectionPointSide(n,e)},t.prototype.getConnectionPointIndexForSide=function(t){return t},Object.defineProperty(t.prototype,"enableText",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEditText",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableChildren",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLocked",{get:function(){return this.locked||this.container&&this.container.isLocked},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeHorizontally",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowResizeVertically",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.style.strokeWidth},enumerable:!0,configurable:!0}),t.prototype.intersectedByRect=function(t){return this.rectangle.intersect(t)},t}();e.DiagramItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(5),a=n(0),s=n(14),l=n(141),u=n(142),c=n(25),d=n(148),h=n(45),f=n(10),p=n(15),m=n(32),g=n(66),_=n(2),v=n(46),y=n(152);!function(t){t[t.Begin=0]="Begin",t[t.End=1]="End"}(o=e.ConnectorPosition||(e.ConnectorPosition={})),e.CONNECTOR_DEFAULT_TEXT_POSITION=.5;var b=function(t){function n(e){var n=t.call(this)||this;if(n.beginConnectionPointIndex=-1,n.endConnectionPointIndex=-1,n.properties=new c.ConnectorProperties,n.points=e.map((function(t){return t.clone()})),e.length<2)throw Error("Points count should be greater than 1");return n.texts=new d.ConnectorTexts,n}return i(n,t),n.prototype.assign=function(e){t.prototype.assign.call(this,e),e.beginItem=this.beginItem,e.beginConnectionPointIndex=this.beginConnectionPointIndex,e.endItem=this.endItem,e.endConnectionPointIndex=this.endConnectionPointIndex,e.properties=this.properties.clone(),e.texts=this.texts.clone()},n.prototype.clone=function(){var t=new n(this.points);return this.assign(t),t},n.prototype.getRenderPoints=function(t){return void 0===t&&(t=!1),void 0===this.renderPoints&&(this.renderPoints=this.getCalculator().getPoints(),this.renderPointsWithoutSkipped=this.renderPoints.filter((function(t){return!t.skipped}))),t?this.renderPoints:this.renderPointsWithoutSkipped},n.prototype.getTextCount=function(){return this.texts.count()},n.prototype.getText=function(t){void 0===t&&(t=e.CONNECTOR_DEFAULT_TEXT_POSITION);var n=this.texts.get(t);return n?n.value:""},n.prototype.setText=function(t,n){void 0===n&&(n=e.CONNECTOR_DEFAULT_TEXT_POSITION),t&&""!==t?this.texts.set(n,new d.ConnectorText(n,t)):this.texts.remove(n)},n.prototype.getTextPoint=function(t){var e=this.getRenderPoints();return a.GeometryUtils.getPathPointByPosition(e,t)[0]},n.prototype.getTextPositionByPoint=function(t){var e=this.getRenderPoints(),n=a.GeometryUtils.getPathLength(e),i=a.GeometryUtils.getPathPositionByPoint(e,t),o=s.UnitConverter.pointsToTwips(parseInt(this.styleText["font-size"]));return o>i*n?o/n:o>n-i*n?(n-o)/n:i},n.prototype.getTextRectangle=function(t){return new a.Rectangle(this.getTextPoint(t),new a.Size(0,0))},n.prototype.getCalculator=function(){return this.properties.lineOption===c.ConnectorLineOption.Straight?new l.ConnectorPointsCalculator(this):new u.ConnectorPointsOrthogonalCalculator(this)},n.prototype.invalidateRenderPoints=function(){delete this.renderPoints,delete this.renderPointsWithoutSkipped,this.invalidatePrimitives()},n.prototype.createPrimitives=function(){var t=[],e=this.getRenderPoints(),n=new _.PathPrimitive(e.map((function(t,e){return 0==e?new _.PathPrimitiveMoveToCommand(t.x,t.y):new _.PathPrimitiveLineToCommand(t.x,t.y)})),this.style);return t.push(n),t=(t=t.concat(this.createLineEndingPrimitives(e,n))).concat(this.createTextPrimitives())},n.prototype.createLineEndingPrimitives=function(t,e){var n=[];return t.length>1&&[{strategy:this.createLineEndingStrategy(this.properties.startLineEnding),point1:t[0],point2:t[1]},{strategy:this.createLineEndingStrategy(this.properties.endLineEnding),point1:t[t.length-1],point2:t[t.length-2]}].forEach((function(t){var i=t.strategy;if(i.hasCommands()){var o=e;i.needCreateSeparatePrimitive()&&n.push(o=i.createPrimitive()),o.commands=o.commands.concat(i.createCommands(t.point1,t.point2))}})),n},n.prototype.createLineEndingStrategy=function(t){switch(t){case c.ConnectorLineEnding.None:return new y.ConnectorLineEndingNoneStrategy(this.style);case c.ConnectorLineEnding.Arrow:return new y.ConnectorLineEndingArrowStrategy(this.style);case c.ConnectorLineEnding.OutlinedTriangle:return new y.ConnectorLineEndingOutlinedTriangleStrategy(this.style);case c.ConnectorLineEnding.FilledTriangle:return new y.ConnectorLineEndingFilledTriangleStrategy(this.style);default:return new y.ConnectorLineEndingStrategy(this.style)}},n.prototype.createSelectorPrimitives=function(){var t=[],e=this.getRenderPoints();return t.push(new _.PathPrimitive(e.map((function(t,e){return 0==e?new _.PathPrimitiveMoveToCommand(t.x,t.y):new _.PathPrimitiveLineToCommand(t.x,t.y)})),null,"selector")),t},n.prototype.createTextPrimitives=function(){var t=this;if(!this.enableText)return[];var e=[];return this.texts.forEach((function(n){var i=t.getText(n.position);if(i&&""!==i){var o=t.getTextPoint(n.position);e=e.concat([new h.TextPrimitive(o.x,o.y,i,v.TextOwner.Connector,void 0,void 0,void 0,t.styleText,!0,null,m.PAGE_BG_TEXTFLOOR_FILTER_ID,void 0,(function(e){p.RenderUtils.setElementEventData(e,f.MouseEventElementType.ConnectorText,t.key,n.position)}))])}})),e},n.prototype.getExtremeItem=function(t){return t===o.Begin?this.beginItem:t===o.End?this.endItem:null},n.prototype.getExtremeConnectionPointIndex=function(t){return t===o.Begin?this.beginConnectionPointIndex:t===o.End?this.endConnectionPointIndex:-1},Object.defineProperty(n.prototype,"rectangle",{get:function(){var t=this.getRenderPoints(),e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=e.reduce((function(t,e){return Math.min(t,e)}),Number.MAX_VALUE),o=e.reduce((function(t,e){return Math.max(t,e)}),-Number.MAX_VALUE),r=n.reduce((function(t,e){return Math.min(t,e)}),Number.MAX_VALUE),s=n.reduce((function(t,e){return Math.max(t,e)}),-Number.MAX_VALUE);return a.Rectangle.create(i,r,o-i,s-r)},enumerable:!0,configurable:!0}),n.prototype.getMinX=function(){return this.getRenderPoints().map((function(t){return t.x})).reduce((function(t,e){return Math.min(t,e)}),Number.MAX_VALUE)},n.prototype.getMinY=function(){return this.getRenderPoints().map((function(t){return t.y})).reduce((function(t,e){return Math.min(t,e)}),Number.MAX_VALUE)},n.prototype.getConnectionPoints=function(){return[]},n.prototype.getConnectionPointSide=function(t,e){return r.ConnectionPointSide.Undefined},n.prototype.getSegments=function(){var t=this.getRenderPoints(),e=[];return t.forEach((function(n,i){i>0&&e.push(a.Segment.createByPoints(t[i-1],n))})),e},n.prototype.intersectedByRect=function(t){var e=!1;return this.getSegments().forEach((function(n){n.intersectRect(t)&&(e=!0)})),e},n.prototype.toNative=function(){var t=new g.NativeConnector(this.key,this.dataKey);return t.fromKey=this.beginItem&&this.beginItem.dataKey,t.toKey=this.endItem&&this.endItem.dataKey,t.texts=this.texts.map((function(t){return t})).sort((function(t,e){return t.position-e.position})).map((function(t){return t.value})),t},n.minOffset=s.UnitConverter.pixelsToTwips(24),n.minTextHeight=s.UnitConverter.pixelsToTwips(12),n}(r.DiagramItem);e.Connector=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(139),o=n(36),r=n(47),a=n(153),s=n(154),l=n(19),u=n(6),c=n(0),d=n(155),h=n(156),f=n(90),p=n(91),m=n(157),g=n(48),_=n(11),v=n(25),y=n(14),b=n(42),w=n(49),x=n(50),C=n(18),S=n(158),k=n(159),I=n(92),T=n(68),E=n(51),O=n(52),M=n(69),P=n(94),D=n(160),A=n(29),R=function(){function t(){}return t.setShapePosition=function(t,e,n,o){n.position.equals(o)||t.addAndRedo(new i.MoveShapeHistoryItem(n.key,o))},t.setShapeSize=function(t,e,n,i,o){n.size.equals(o)&&n.position.equals(i)||t.addAndRedo(new h.ResizeShapeHistoryItem(n.key,i,o))},t.setConnectorPoint=function(t,e,n,i){e.points[n].equals(i)||t.addAndRedo(new r.MoveConnectorPointHistoryItem(e.key,n,i))},t.updateConnectorAttachedPoints=function(t,e,n){t.beginTransaction();var i=n.beginItem&&e.findItemCollapsedContainer(n.beginItem),o=i&&(!n.endItem||!e.isContainerItem(i,n.endItem)),r=n.endItem&&e.findItemCollapsedContainer(n.endItem),a=r&&(!n.beginItem||!e.isContainerItem(r,n.beginItem));o?this.updateConnectorBeginPoint(t,n,i,a&&r||n.endItem,(function(t){return i.getConnectionPointIndexForItem(n.beginItem,t)})):this.updateConnectorBeginPoint(t,n,n.beginItem,a&&r||n.endItem),a?this.updateConnectorEndPoint(t,n,r,(function(t){return r.getConnectionPointIndexForItem(n.beginItem,t)})):this.updateConnectorEndPoint(t,n,n.endItem),t.endTransaction()},t.updateConnectorBeginPoint=function(t,e,n,i,o){if(n){var a=void 0!==o?o(e.beginConnectionPointIndex):e.beginConnectionPointIndex,s=e.points[1];i&&2===e.points.length&&(s=-1!==e.endConnectionPointIndex?i.getConnectionPointPosition(e.endConnectionPointIndex,c.Point.empty()):i.rectangle.center);var l=n.getConnectionPointPosition(a,s);e.points[0].equals(l)||t.addAndRedo(new r.MoveConnectorPointHistoryItem(e.key,0,l))}},t.updateConnectorEndPoint=function(t,e,n,i){if(n){var o=void 0!==i?i(e.endConnectionPointIndex):e.endConnectionPointIndex,a=n.getConnectionPointPosition(o,e.points[e.points.length-2]);e.points[e.points.length-1].equals(a)||t.addAndRedo(new r.MoveConnectorPointHistoryItem(e.key,e.points.length-1,a))}},t.updateContainerConnectorsAttachedPoints=function(t,e,n,i){var o=this;void 0===i&&(i=n),t.beginTransaction(),e.getChildren(i).forEach((function(r){r instanceof _.Shape&&(r.attachedConnectors.forEach((function(r){var a=r.beginItem&&e.isContainerItem(i,r.beginItem),s=r.endItem&&e.isContainerItem(i,r.endItem);if(a&&!s){var l=e.findItemTopCollapsedContainer(r.beginItem),u=r.endItem&&e.findItemTopCollapsedContainer(r.endItem);l?o.updateConnectorBeginPoint(t,r,l,u||r.endItem,(function(t){return n.getConnectionPointIndexForItem(r.beginItem,t)})):o.updateConnectorBeginPoint(t,r,r.beginItem,u||r.endItem)}s&&!a&&((l=e.findItemTopCollapsedContainer(r.endItem))?o.updateConnectorEndPoint(t,r,l,(function(t){return n.getConnectionPointIndexForItem(r.endItem,t)})):o.updateConnectorEndPoint(t,r,r.endItem))})),o.updateContainerConnectorsAttachedPoints(t,e,n,r))})),t.endTransaction()},t.getConnectorsWithoutBeginItemInfo=function(t){return t.findConnectorsWithoutBeginItem().map((function(t){return{connector:t,point:t.points[0].clone()}}))},t.getConnectorsWithoutEndItemInfo=function(t){return t.findConnectorsWithoutEndItem().map((function(t){return{connector:t,point:t.points[t.points.length-1].clone()}}))},t.updateShapeAttachedConnectors=function(e,n,i){i.attachedConnectors.forEach((function(i){t.removeConnectorIntermediatePoints(e,i),t.updateConnectorAttachedPoints(e,n,i)}))},t.updateMovingShapeConnections=function(t,e,n,i,a,s){var l=this;a(),n.forEach((function(n){var i=l.getMovingShapeConnectionPointIndex(e,n.point);e.rectangle.contains(n.point)||i>-1?(s(e,i),i!==n.connector.beginConnectionPointIndex&&n.connector.beginItem&&t.addAndRedo(new f.DeleteConnectionHistoryItem(n.connector,u.ConnectorPosition.Begin)),t.addAndRedo(new o.AddConnectionHistoryItem(n.connector,e,i,u.ConnectorPosition.Begin))):n.connector.beginItem&&(t.addAndRedo(new f.DeleteConnectionHistoryItem(n.connector,u.ConnectorPosition.Begin)),t.addAndRedo(new r.MoveConnectorPointHistoryItem(n.connector.key,0,n.point)))})),i.forEach((function(n){var i=l.getMovingShapeConnectionPointIndex(e,n.point);e.rectangle.contains(n.point)||i>-1?(s(e,i),i!==n.connector.endConnectionPointIndex&&n.connector.endItem&&t.addAndRedo(new f.DeleteConnectionHistoryItem(n.connector,u.ConnectorPosition.End)),t.addAndRedo(new o.AddConnectionHistoryItem(n.connector,e,i,u.ConnectorPosition.End))):n.connector.endItem&&(t.addAndRedo(new f.DeleteConnectionHistoryItem(n.connector,u.ConnectorPosition.End)),t.addAndRedo(new r.MoveConnectorPointHistoryItem(n.connector.key,n.connector.points.length-1,n.point)))}))},t.getMovingShapeConnectionPointIndex=function(t,e){var n=this,i=-1;return t.getConnectionPoints().forEach((function(t,o){c.GeometryUtils.getDistance(e,t)<n.connectionPointActionSize&&(i=o)})),i},t.removeUnnecessaryConnectorPoints=function(t,e,n,i){t.beginTransaction(),c.GeometryUtils.removeUnnecessaryLinePoints(e.points,(function(o,r){var a=!0;if(n&&n.forEach((function(t){t&&t.equals(o)&&(a=!1)})),a)return t.addAndRedo(new d.DeleteConnectorPointHistoryItem(e.key,r)),void 0!==i&&i(r),!0})),t.endTransaction()},t.shouldRemoveConnectorIntermediatePoints=function(t){return t.properties.lineOption===v.ConnectorLineOption.Orthogonal&&t.points.length>2&&(this.isShapeIntersectConnectorPointsLine(t.beginItem,t)||this.isShapeIntersectConnectorPointsLine(t.endItem,t))},t.removeConnectorIntermediatePoints=function(t,e){this.shouldRemoveConnectorIntermediatePoints(e)&&this.removeConnectorIntermediatePointsCore(t,e)},t.removeConnectorIntermediatePointsCore=function(t,e){for(t.beginTransaction();e.points.length>2;)t.addAndRedo(new d.DeleteConnectorPointHistoryItem(e.key,1));t.endTransaction()},t.isShapeIntersectConnectorPointsLine=function(t,e){if(!t)return!1;for(var n,i=u.Connector.minOffset-y.UnitConverter.pixelsToTwips(1),o=t.rectangle.inflate(i,i),r=1;r<e.points.length-1;r++){if(void 0!==n){if(n.x===e.points[r].x&&o.left<=n.x&&n.x<=o.right)return!0;if(n.y===e.points[r].y&&o.top<=n.y&&n.y<=o.bottom)return!0}n=e.points[r]}return!1},t.getSnappedPos=function(t,e,n,i){var o=i?t.snapStartPoint.x:t.snapStartPoint.y;return Math.round((n-o)/e)*e+o},t.tryUpdateModelSize=function(t,e,n){var i=t.modelManipulator.getModelSizeUpdateOffset();i.isEmpty()||(t.addAndRedo(new a.ModelResizeHistoryItem(i)),(i.left||i.top)&&(t.addAndRedo(new s.UpdatePositionsOnPageResizeHistoryItem(i.left,i.top)),void 0!==n&&n(i.left,i.top)),t.modelManipulator.raiseModelRectangleChanged(e.getRectangle(!0)))},t.deleteItems=function(t,e,n,i,o){t.beginTransaction(),this.deleteItemsCore(t,e,i,o),this.tryUpdateModelSize(t,e),t.addAndRedo(new g.SetSelectionHistoryItem(n,[])),t.endTransaction()},t.deleteItemsCore=function(t,e,n,i){var o=this;n.forEach((function(n){if(n.container&&o.removeFromContainer(t,e,n),n instanceof _.Shape){var r=e.getChildren(n);r.length&&(r.forEach((function(n){t.addAndRedo(new k.RemoveFromContainerHistoryItem(n)),o.updateAttachedConnectorsContainer(t,e,n)})),o.deleteItemsCore(t,e,r.filter((function(t){return!t.locked||i})),i)),e.findItem(n.key)&&o.deleteShape(t,n)}n instanceof u.Connector&&e.findItem(n.key)&&o.deleteConnector(t,n)}))},t.detachConnectors=function(t,e){for(;e.attachedConnectors.length>0;){var n=e.attachedConnectors[0];t.addAndRedo(new f.DeleteConnectionHistoryItem(n,n.beginItem===e?u.ConnectorPosition.Begin:u.ConnectorPosition.End))}},t.deleteShape=function(t,e){this.detachConnectors(t,e),t.addAndRedo(new p.DeleteShapeHistoryItem(e.key))},t.deleteConnector=function(t,e){e.beginItem&&t.addAndRedo(new f.DeleteConnectionHistoryItem(e,u.ConnectorPosition.Begin)),e.endItem&&t.addAndRedo(new f.DeleteConnectionHistoryItem(e,u.ConnectorPosition.End)),t.addAndRedo(new m.DeleteConnectorHistoryItem(e.key))},t.deleteAllItems=function(t,e,n){this.deleteItems(t,e,n,e.items.slice(),!0)},t.deleteSelection=function(t,e,n){this.deleteItems(t,e,n,n.getSelectedItems())},t.changeSelectionLocked=function(e,n,i,o){e.beginTransaction(),i.getSelectedItems(!0).forEach((function(t){e.addAndRedo(new P.ChangeLockedHistoryItem(t,o))})),t.updateSelection(e,i),e.endTransaction()},t.copyStylesToItem=function(t,e,n,i){var o=e.findItem(i);n.styleText.forEach((function(e){n.styleText[e]!==o.styleText[e]&&t.addAndRedo(new E.ChangeStyleTextHistoryItem(i,e,n.styleText[e]))})),n.style.forEach((function(e){n.style[e]!==o.style[e]&&t.addAndRedo(new T.ChangeStyleHistoryItem(i,e,n.style[e]))}))},t.updateSelection=function(t,e){t.addAndRedo(new g.SetSelectionHistoryItem(e,e.getKeys(),!0))},t.cloneShapeToOffset=function(t,e,n,i,o){t.beginTransaction();var r=n.position.offset(i,o),a=new b.AddShapeHistoryItem(n.description,r,n.text);t.addAndRedo(a);var s=a.shapeKey;return t.addAndRedo(new h.ResizeShapeHistoryItem(s,r,n.size.clone())),t.addAndRedo(new I.ChangeShapeParametersHistoryItem(s,n.parameters.clone())),this.copyStylesToItem(t,e,n,s),t.endTransaction(),s},t.cloneConnectorToOffset=function(t,e,n,i,r,a,s){t.beginTransaction();var l=n.points.map((function(t){return t.offset(a,s)})),c=new w.AddConnectorHistoryItem(l);t.addAndRedo(c);var d=c.connectorKey,h=e.findConnector(d);if(n.properties.forEach((function(e){n.properties[e]!==h.properties[e]&&t.addAndRedo(new M.ChangeConnectorPropertyHistoryItem(d,e,n.properties[e]))})),i){var f=e.findShape(i);t.addAndRedo(new o.AddConnectionHistoryItem(h,f,n.beginConnectionPointIndex,u.ConnectorPosition.Begin))}if(r){var p=e.findShape(r);t.addAndRedo(new o.AddConnectionHistoryItem(h,p,n.endConnectionPointIndex,u.ConnectorPosition.End))}return n.texts.clone().forEach((function(e){t.addAndRedo(new O.ChangeConnectorTextHistoryItem(h,e.position,e.value))})),this.copyStylesToItem(t,e,n,d),t.endTransaction(),d},t.cloneSelectionToOffset=function(e,n,i,o,r){var a=this;e.beginTransaction();var s={},l=[];i.getSelectedShapes().forEach((function(t){var i=a.cloneShapeToOffset(e,n,t,o,r);s[t.key]=i,l.push(i)})),i.getSelectedConnectors().forEach((function(t){var i=t.beginItem?s[t.beginItem.key]:null,u=t.endItem?s[t.endItem.key]:null,c=a.cloneConnectorToOffset(e,n,t,i,u,o,r);l.push(c)})),e.addAndRedo(new g.SetSelectionHistoryItem(i,l)),t.tryUpdateModelSize(e,n),e.endTransaction()},t.findContainerByEventKey=function(e,n,i){var o=e.findContainer(i);if(o&&!o.isLocked)return o;var r=e.findShape(i);return r&&r.container&&!n.hasKey(r.key)?t.findContainerByEventKey(e,n,r.container.key):void 0},t.canInsertToContainer=function(t,e,n){return e!==n&&!(e instanceof _.Shape&&t.findChild(e,n.key))},t.canInsertSelectionToContainer=function(t,e,n){var i=!0;return e.getSelectedItems().forEach((function(e){e!==n?e instanceof _.Shape&&t.findChild(e,n.key)&&(i=!1):i=!1})),i},t.insertToContainer=function(t,e,n,i){if(!i.enableChildren)throw Error("Inpossible to add children to non-container shape.");if(this.canInsertToContainer(e,n,i)){var o=n.container;o!==i&&(t.beginTransaction(),o&&t.addAndRedo(new k.RemoveFromContainerHistoryItem(n)),t.addAndRedo(new S.InsertToContainerHistoryItem(n,i)),this.updateAttachedConnectorsContainer(t,e,n),t.endTransaction())}},t.removeFromContainer=function(t,e,n){n.container&&(t.beginTransaction(),t.addAndRedo(new k.RemoveFromContainerHistoryItem(n)),this.updateAttachedConnectorsContainer(t,e,n),t.endTransaction())},t.insertSelectionToContainer=function(t,e,n,i){var o=this;t.beginTransaction();var r=n.getSelectedItems();r.filter((function(t){return!t.container||-1===r.indexOf(t.container)})).forEach((function(n){o.insertToContainer(t,e,n,i)})),t.endTransaction()},t.removeSelectionFromContainer=function(t,e,n){var i=this;t.beginTransaction(),n.getSelectedItems().forEach((function(o){o.container&&!n.hasKey(o.container.key)&&(t.addAndRedo(new k.RemoveFromContainerHistoryItem(o)),i.updateAttachedConnectorsContainer(t,e,o))})),t.endTransaction()},t.getConnectorContainer=function(t){if(t.beginItem&&t.endItem&&t.beginItem.container===t.endItem.container)return t.beginItem.container},t.updateAttachedConnectorsContainer=function(t,e,n){var i=this;t.beginTransaction(),n.attachedConnectors.forEach((function(n){i.updateConnectorContainer(t,e,n)})),t.endTransaction()},t.updateConnectorContainer=function(t,e,n){var i=this.getConnectorContainer(n);i?t.addAndRedo(new S.InsertToContainerHistoryItem(n,i)):n.container&&t.addAndRedo(new k.RemoveFromContainerHistoryItem(n))},t.updateNewShapeProperties=function(t,e,n){e.inputPosition.getDefaultStyle().forEach((function(i){t.addAndRedo(new T.ChangeStyleHistoryItem(n,i,e.inputPosition.getDefaultStylePropertyValue(i)))})),e.inputPosition.getDefaultTextStyle().forEach((function(i){t.addAndRedo(new E.ChangeStyleTextHistoryItem(n,i,e.inputPosition.getDefaultTextStylePropertyValue(i)))}))},t.updateNewConnectorProperties=function(t,e,n){e.inputPosition.getDefaultConnectorProperties().forEach((function(i){t.addAndRedo(new M.ChangeConnectorPropertyHistoryItem(n,i,e.inputPosition.getDefaultConnectorPropertyValue(i)))})),e.inputPosition.getDefaultStyle().forEach((function(i){t.addAndRedo(new T.ChangeStyleHistoryItem(n,i,e.inputPosition.getDefaultStylePropertyValue(i)))})),e.inputPosition.getDefaultTextStyle().forEach((function(i){t.addAndRedo(new E.ChangeStyleTextHistoryItem(n,i,e.inputPosition.getDefaultTextStylePropertyValue(i)))}))},t.applyLayout=function(t,e,n,i,o,r,a,s,l,u){t.beginTransaction();var c=this.getOccupiedRectangles(r,n);return o=this.offsetLayoutToFreeSpace(o,n&&n.clientRectangle,c,a.containerPadding),s&&this.adjustLayoutToSnapGrid(e,o,l),n&&this.resizeContainerOnLayout(t,e,o,n,a.containerPadding),this.applyLayoutToNodes(t,e,o,i.edges.map((function(t){return e.findConnector(t.key)}))),this.applyLayoutToConnectors(t,e,o,i.edges.map((function(t){return e.findConnector(t.key)})),u),t.endTransaction(),o.getRectangle(!0)},t.getNonGraphItems=function(t,e,n,i,o){return(e?t.getChildren(e):t.items.filter((function(t){return!t.container}))).filter((function(t){return t instanceof u.Connector?(!t.beginItem||!n[t.beginItem.key])&&(!t.endItem||!n[t.endItem.key])&&-1===o.indexOf(t):t instanceof _.Shape?!n[t.key]&&-1===i.indexOf(t):void 0}))},t.getOccupiedRectangles=function(t,e){var n=t.map((function(t){return t.rectangle}));if(e&&n.length){var i=e.clientRectangle;n.push(c.Rectangle.create(i.right,i.top,1,1)),n.push(c.Rectangle.create(i.right,i.bottom,1,1))}return n},t.offsetLayoutToFreeSpace=function(t,e,n,i){var o=t.getRectangle(!0),r=c.GeometryUtils.findFreeSpace(n,o.size.offset(i,i),!1,e);if(r){var a=r.x+i,s=r.y+i;return t.offsetNodes(a,s)}var l=n&&n.length?n.reduce((function(t,e){return e.right>t?e.right:t}),0):e?e.left:0,u=e?e.top:Math.max(0,o.top);return t.offsetNodes(l+i,u+i)},t.resizeContainerOnLayout=function(e,n,i,o,r){var a=i.getRectangle(!0),s=o.children.filter((function(t){return t instanceof _.Shape?-1===i.nodeKeys.indexOf(t.key):!!(t instanceof u.Connector&&t.beginItem&&t.endItem)&&-1===i.nodeKeys.indexOf(t.beginItem.key)&&-1===i.nodeKeys.indexOf(t.endItem.key)})).map((function(t){return t.rectangle})),l=s.map((function(t){return t.right})).reduce((function(t,e){return Math.max(t,e)}),a.right),d=s.map((function(t){return t.bottom})).reduce((function(t,e){return Math.max(t,e)}),a.bottom),h=o.rectangle.width+l+r-o.rectangle.right,f=o.rectangle.height+d+r-o.rectangle.bottom;t.setShapeSize(e,n,o,o.position,new c.Size(h,f)),t.updateShapeAttachedConnectors(e,n,o)},t.applyLayoutToNodes=function(t,e,n,i){var o=this,r=i.reduce((function(t,e){return t[e.key]=t}),{});n.forEachNode((function(n,i){var a=e.findShape(i);o.applyLayoutToNode(t,e,a,n.position,r)}))},t.applyLayoutToNode=function(e,n,i,o,a){var s=this,l=o.offset(-i.position.x,-i.position.y);t.setShapePosition(e,n,i,o),0===l.x&&0===l.y||(i.attachedConnectors.filter((function(t){return!a[t.key]})).forEach((function(i){t.updateConnectorAttachedPoints(e,n,i);for(var o=i.beginItem?1:0,a=i.endItem?i.points.length-2:i.points.length-1,s=o;s<=a;s++)e.addAndRedo(new r.MoveConnectorPointHistoryItem(i.key,s,i.points[s].offset(l.x,l.y)))})),n.getChildren(i).forEach((function(t){if(t instanceof _.Shape){var i=t.position.offset(l.x,l.y);s.applyLayoutToNode(e,n,t,i,a)}})))},t.applyLayoutToConnectors=function(t,e,n,i,r){var a=this;i.filter((function(t){return t.beginItem||t.endItem})).forEach((function(i){var s=n.edgeToPosition[i.key];if(i.beginItem&&i.endItem&&!r&&s){var l=i.beginItem.getConnectionPointIndexForSide(s.beginIndex);l!==i.beginConnectionPointIndex&&t.addAndRedo(new o.SetConnectionPointIndexHistoryItem(i,l,u.ConnectorPosition.Begin));var c=i.endItem.getConnectionPointIndexForSide(s.endIndex);c!==i.endConnectionPointIndex&&t.addAndRedo(new o.SetConnectionPointIndexHistoryItem(i,c,u.ConnectorPosition.End))}if(a.updateConnectorAttachedPoints(t,e,i),s)for(;i.points.length>2;)t.addAndRedo(new d.DeleteConnectorPointHistoryItem(i.key,1))}))},t.adjustLayoutToSnapGrid=function(t,e,n){var i=this;e.nodeKeys.forEach((function(o){e.nodeToLayout[o].position.x=i.getSnappedPos(t,n,e.nodeToLayout[o].position.x,!0),e.nodeToLayout[o].position.y=i.getSnappedPos(t,n,e.nodeToLayout[o].position.y,!1)}))},t.getGraphInfoByItems=function(t,e,n,i){void 0===i&&(i=!0);var o={};[].concat(e).concat(n).forEach((function(t){var e=t.container&&t.container.key;o[e]||(o[e]=[]),o[e].push(t)}));var r=[];for(var a in o)if(o.hasOwnProperty(a)){var s=a&&t.findContainer(a);if(!s||s.expanded&&!t.findItemCollapsedContainer(s)){var l=s&&s.key,u=this.getGraphByItems(t,o[a],l,!i),c=!1;(u.nodes.length>1||u.nodes.length&&(i||s&&o[s.container&&s.container.key]))&&(c=!0),c&&r.push(new D.GraphInfo(s,u))}}return r.sort((function(t,e){return e.level-t.level}))},t.getGraphByItems=function(t,e,n,i){var o=this,r=new x.Graph([],[]),a={};return e.forEach((function(t){o.extendByConnectedComponents(t,r,n,a,i)})),r.nodes.sort((function(e,n){return t.getItemIndex(t.findItem(e))-t.getItemIndex(t.findItem(n))})),r.edges.sort((function(e,n){return t.getItemIndex(t.findItem(e.key))-t.getItemIndex(t.findItem(n.key))})),r.edges=r.edges.filter((function(t){return r.getNode(t.from)&&r.getNode(t.to)})),r},t.extendByConnectedComponents=function(t,e,n,i,o){var r=this;!t||o&&t.locked||i[t.key]||(i[t.key]=!0,!(t instanceof u.Connector&&(t.container&&t.container.key)===n&&t.beginItem)||t.beginItem.locked&&o||!t.endItem||t.endItem.locked&&o||t.beginItem===t.endItem?t instanceof _.Shape&&(t.container&&t.container.key)===n&&(e.addNode(t),t.attachedConnectors.forEach((function(t){return r.extendByConnectedComponents(t,e,n,i,o)}))):(e.addEdge(new A.Edge(t.key,t.beginItem&&t.beginItem.key,t.endItem&&t.endItem.key)),this.extendByConnectedComponents(t.beginItem,e,n,i,o),this.extendByConnectedComponents(t.endItem,e,n,i,o)))},t.getlUnitValue=function(t,e){switch(t){case l.DiagramUnit.Cm:return y.UnitConverter.twipsToCentimeters(e);case l.DiagramUnit.In:return y.UnitConverter.twipsToInches(e);case l.DiagramUnit.Px:return y.UnitConverter.twipsToPixels(e)}},t.getUnitText=function(t,e,n,i,o){void 0===o&&(o=2);var r=e[t]?" "+e[t]:"",a=this.getlUnitValue(t,i);switch(t){case l.DiagramUnit.Cm:case l.DiagramUnit.In:return n(+a.toFixed(o))+r;case l.DiagramUnit.Px:return n(+a.toFixed(0))+r}},t.getTwipsValue=function(t,e){switch(t){case l.DiagramUnit.Cm:return y.UnitConverter.centimetersToTwips(e);case l.DiagramUnit.In:return y.UnitConverter.inchesToTwips(e);case l.DiagramUnit.Px:return y.UnitConverter.pixelsToTwips(e)}},t.getNextItemKey=function(t,e,n){if(!t.length&&void 0===n)return"0";for(var i=t.length-1;i>=0&&(void 0===(n=n||t[i])||null===n);i--);for(var o=this.generateNextItemKey(n||"0");!e(o);)o=this.generateNextItemKey(o);return o},t.generateNextItemKey=function(t){for(var e=t.length-1;e>=0;e--){if(!this.isDigit(t[e])){e===t.length-1&&(t+="0");break}var n=t.charCodeAt(e),i=String.fromCharCode(n+1);if(i>"9"&&(i="0",0!==e&&this.isDigit(t[e-1])||(i="1"+i)),t=t.substr(0,e)+i+t.substr(e+1),"0"!==i&&"10"!==i)break;"10"===i&&e--}return t},t.isDigit=function(t){return"0"<=t&&t<="9"},t.getGuidItemKey=function(){return C.CreateGuid()},t.connectionPointActionSize=y.UnitConverter.pixelsToTwips(8),t}();e.ModelUtils=R},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(162),r=n(163),a=n(7),s=n(4),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getState=function(){return new r.SimpleCommandState(this.isEnabled(),this.getValue(),this.getDefaultValue(),this.getItems(),this.isVisible())},e.prototype.isVisible=function(){return!0},e.prototype.isEnabled=function(){return!this.control.settings.readOnly||this.isEnabledInReadOnlyMode()},e.prototype.isEnabledInReadOnlyMode=function(){return!1},e.prototype.getValue=function(){},e.prototype.getDefaultValue=function(){},e.prototype.getItems=function(){},e.prototype.getModelUnit=function(t){return a.ModelUtils.getlUnitValue(this.control.model.units,t)},e.prototype.getModelUnitText=function(t){return a.ModelUtils.getUnitText(this.control.model.units,s.DiagramLocalizationService.unitItems,s.DiagramLocalizationService.formatUnit,t)},e.prototype.getModelUnitTwipsValue=function(t){return a.ModelUtils.getTwipsValue(this.control.model.units,t)},e.prototype.getViewUnit=function(t){return a.ModelUtils.getlUnitValue(this.control.settings.viewUnits,t)},e.prototype.getViewUnitText=function(t){return a.ModelUtils.getUnitText(this.control.settings.viewUnits,s.DiagramLocalizationService.unitItems,s.DiagramLocalizationService.formatUnit,t)},e.prototype.getViewUnitTwipsValue=function(t){return a.ModelUtils.getTwipsValue(this.control.settings.viewUnits,t)},e}(o.CommandBase);e.SimpleCommandBase=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(45),r=n(20),a=n(5),s=n(14),l=n(33),u=n(4),c=n(46);e.ShapeDefaultDimension=1440,e.ShapeMinDimension=360,e.ShapeDefaultSize=new i.Size(e.ShapeDefaultDimension,e.ShapeDefaultDimension);var d=function(){function t(t,n){void 0===t&&(t=e.ShapeDefaultSize.clone()),this.defaultSize=t,this.hasDefaultText=n,this.onChanged=new i.EventDispatcher,this.connectionPoints=this.createConnectionPoints()}return Object.defineProperty(t.prototype,"enableText",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEditText",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableImage",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"allowEditImage",{get:function(){return!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enableChildren",{get:function(){return!1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return e.ShapeMinDimension},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return e.ShapeMinDimension},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxHeight",{get:function(){},enumerable:!0,configurable:!0}),t.prototype.getTitle=function(){return u.DiagramLocalizationService.shapeTexts[this.key]},t.prototype.getDefaultText=function(){return this.hasDefaultText?u.DiagramLocalizationService.shapeTexts[this.key]:""},t.prototype.getDefaultImageUrl=function(){return""},t.prototype.getConnectionPoints=function(){return this.connectionPoints},t.prototype.createConnectionPoints=function(){return[new l.ConnectionPoint(.5,0,a.ConnectionPointSide.North),new l.ConnectionPoint(1,.5,a.ConnectionPointSide.East),new l.ConnectionPoint(.5,1,a.ConnectionPointSide.South),new l.ConnectionPoint(0,.5,a.ConnectionPointSide.West)]},t.prototype.processConnectionPoint=function(t,e){},t.prototype.getConnectionPointIndexForItem=function(t,e){return e},t.prototype.getConnectionPointIndexForSide=function(t){return t},t.prototype.createParameters=function(t){},t.prototype.normalizeParameters=function(t,e){},t.prototype.modifyParameters=function(t,e,n,i){throw Error("Not implemented")},t.prototype.changeParameterValue=function(t,e,n){var i=t.get(e);i.value=n(i)},t.prototype.getParameterPoints=function(t){return[]},t.prototype.getExpandedSize=function(t){return t.size},t.prototype.getCollapsedSize=function(t){return t.size},t.prototype.getToolboxHeightToWidthRatio=function(t,e){return e/t},t.prototype.allowResizeHorizontally=function(t){return!0},t.prototype.allowResizeVertically=function(t){return!0},t.prototype.createPrimitives=function(t,e){var n=[];return n=n.concat(this.createShapePrimitives(t,e)),this.enableImage&&(n=n.concat(this.createImagePrimitives(t,e))),this.enableText&&(n=n.concat(this.createTextPrimitives(t,e))),n},t.prototype.createImagePrimitives=function(t,e){return[]},t.prototype.createTextPrimitives=function(e,n){if(void 0===e.text||""===e.text)return[];var i=this.getTextRectangle(e);return[new o.TextPrimitive(i.left,i.top,e.text,c.TextOwner.Shape,i.width,i.height,t.textSpacing,e.styleText,!1,void 0,void 0,this.getTextAngle())]},t.prototype.getTextAngle=function(){return o.TextAngle.Angle0deg},t.prototype.getTextRectangle=function(t){return t.rectangle},t.prototype.getClientRectangle=function(t){return t.rectangle},t.prototype.getTextEditRectangle=function(t){return this.getTextRectangle(t)},t.prototype.createSelectorPrimitives=function(t){return[new r.RectanglePrimitive(t.position.x,t.position.y,t.size.width,t.size.height,null,"selector")]},t.prototype.raiseShapeDescriptionChanged=function(t){this.onChanged.raise1((function(e){return e.notifyShapeDescriptionChanged(t)}))},t.textSpacing=s.UnitConverter.pixelsToTwips(2),t}();e.ShapeDescription=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(13);!function(t){t[t.None=0]="None",t[t.Left=1]="Left",t[t.Right=2]="Right",t[t.Middle=4]="Middle"}(e.MouseButton||(e.MouseButton={})),function(t){t[t.Undefined=0]="Undefined",t[t.Background=1]="Background",t[t.Document=2]="Document",t[t.Connector=3]="Connector",t[t.ConnectorPoint=4]="ConnectorPoint",t[t.ConnectorSide=5]="ConnectorSide",t[t.ConnectorOrthogonalSide=6]="ConnectorOrthogonalSide",t[t.ConnectorText=7]="ConnectorText",t[t.Shape=8]="Shape",t[t.ShapeResizeBox=9]="ShapeResizeBox",t[t.ShapeParameterBox=10]="ShapeParameterBox",t[t.SelectionRect=11]="SelectionRect",t[t.ShapeConnectionPoint=12]="ShapeConnectionPoint",t[t.ShapeExpandButton=13]="ShapeExpandButton"}(e.MouseEventElementType||(e.MouseEventElementType={}));var r=function(t,e,n){this.type=t,this.key=e,this.value=n};e.MouseEventSource=r,function(t){t[t.Undefined=0]="Undefined",t[t.ResizeBox_NW=1]="ResizeBox_NW",t[t.ResizeBox_NE=2]="ResizeBox_NE",t[t.ResizeBox_SE=3]="ResizeBox_SE",t[t.ResizeBox_SW=4]="ResizeBox_SW",t[t.ResizeBox_N=5]="ResizeBox_N",t[t.ResizeBox_E=6]="ResizeBox_E",t[t.ResizeBox_S=7]="ResizeBox_S",t[t.ResizeBox_W=8]="ResizeBox_W"}(e.ResizeEventSource||(e.ResizeEventSource={}));var a=function(t){this.modifiers=t};e.DiagramEvent=a;var s=function(t){function e(e){var n=t.call(this,o.ModifierKey.None)||this;return n.inputText=e,n}return i(e,t),e}(a);e.DiagramFocusEvent=s;var l=function(t,e){this.offsetPoint=t,this.modelPoint=e};e.DiagramMouseEventTouch=l;var u=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.offsetPoint=n,r.modelPoint=i,r.source=o,r}return i(e,t),e}(a);e.DiagramMouseEventBase=u;var c=function(t){function e(e,n,i,o,r,a){void 0===a&&(a=[]);var s=t.call(this,e,i,o,r)||this;return s.button=n,s.touches=a,s.scrollX=0,s.scrollY=0,s}return i(e,t),e}(u);e.DiagramMouseEvent=c;var d=function(t){function e(e,n,i,o,r,a){var s=t.call(this,e,o,r,a)||this;return s.deltaX=n,s.deltaY=i,s}return i(e,t),e}(u);e.DiagramWheelEvent=d;var h=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.eventPoint=n,o.modelPoint=i,o}return i(e,t),e}(a);e.DiagramContextMenuEvent=h;var f=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.keyCode=n,o.inputText=i,o}return i(e,t),e.prototype.getShortcutCode=function(){return this.modifiers|this.keyCode},e}(a);e.DiagramKeyboardEvent=f;var p=function(t){function e(e){var n=t.call(this,o.ModifierKey.None)||this;return n.clipboardData=e,n}return i(e,t),e}(a);e.DiagramClipboardEvent=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(28),a=n(5),s=n(33),l=n(41),u=n(66),c=function(t){function e(e,n){var i=t.call(this)||this;if(i.description=e,i.children=[],i.expanded=!0,i.expandedSize=void 0,!e)throw Error("Shape type is incorrect");return i.position=n.clone(),i.size=e.defaultSize.clone(),i.text=e.getDefaultText(),i.image=new l.ImageInfo(e.getDefaultImageUrl()),i.parameters=new r.ShapeParameters,e.createParameters(i.parameters),i}return i(e,t),e.prototype.assign=function(e){t.prototype.assign.call(this,e),e.size=this.size.clone(),e.text=this.text,e.image=this.image.clone(),e.parameters=this.parameters.clone(),e.children=this.children.slice(),e.expanded=this.expanded,this.expandedSize&&(e.expandedSize=this.expandedSize.clone())},e.prototype.clone=function(){var t=new e(this.description,this.position.clone());return this.assign(t),t},Object.defineProperty(e.prototype,"enableText",{get:function(){return this.description.enableText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowEditText",{get:function(){return this.description.allowEditText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableChildren",{get:function(){return this.description.enableChildren},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableImage",{get:function(){return this.description.enableImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowEditImage",{get:function(){return this.description.allowEditImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.description.minWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.description.minHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.description.maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this.description.maxHeight},enumerable:!0,configurable:!0}),e.prototype.createPrimitives=function(){return this.description.createPrimitives(this)},e.prototype.createSelectorPrimitives=function(){return this.description.createSelectorPrimitives(this)},e.prototype.normalizeX=function(t){return Math.max(this.position.x,Math.min(t,this.position.x+this.size.width))},e.prototype.normalizeY=function(t){return Math.max(this.position.y,Math.min(t,this.position.y+this.size.height))},e.prototype.getConnectionPoints=function(){var t=this;return this.description.getConnectionPoints().map((function(e){var n=new s.ConnectionPoint(t.position.x+e.x*t.size.width,t.position.y+e.y*t.size.height,e.side);return t.description.processConnectionPoint(t,n),n}))},e.prototype.getConnectionPointSide=function(t,e){return t.side!==a.ConnectionPointSide.Undefined?t.side:this.getConnectionPointSideByGeometry(t)},e.prototype.getConnectionPointSideByGeometry=function(t){var e=t.offset(-this.position.x,-this.position.y).multiply(1/this.size.width,1/this.size.height);return e.x>=e.y&&(e.x>0||e.y>0)?e.x<.5||1-e.x>=e.y?a.ConnectionPointSide.North:a.ConnectionPointSide.East:e.x>.5||1-e.x<=e.y?a.ConnectionPointSide.South:a.ConnectionPointSide.West},e.prototype.getConnectionPointIndexForItem=function(t,e){return this.description.getConnectionPointIndexForItem(t,e)},e.prototype.getConnectionPointIndexForSide=function(t){return this.description.getConnectionPointIndexForSide(t)},e.prototype.toggleExpandedSize=function(){this.expanded?(this.size=this.getExpandedSize(),this.expandedSize=void 0):(this.expandedSize=this.size.clone(),this.size=this.getCollapsedSize())},e.prototype.getExpandedSize=function(){return this.description.getExpandedSize(this)},e.prototype.getCollapsedSize=function(){return this.description.getCollapsedSize(this)},e.prototype.getToolboxHeightToWidthRatio=function(){return this.description.getToolboxHeightToWidthRatio(this.size.width,this.size.height)},Object.defineProperty(e.prototype,"allowResizeHorizontally",{get:function(){return this.description.allowResizeHorizontally(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowResizeVertically",{get:function(){return this.description.allowResizeVertically(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rectangle",{get:function(){return new o.Rectangle(this.position,this.size)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"clientRectangle",{get:function(){return this.description.getClientRectangle(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textRectangle",{get:function(){return this.description.getTextRectangle(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textEditRectangle",{get:function(){return this.description.getTextEditRectangle(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"textAngle",{get:function(){return this.description.getTextAngle()},enumerable:!0,configurable:!0}),e.prototype.toNative=function(){var t=new u.NativeShape(this.key,this.dataKey);return t.type=this.description.key,t.text=this.text,t},e}(a.DiagramItem);e.Shape=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(64);e.svgNS="http://www.w3.org/2000/svg";var o=/\s/gm,r=function(){function t(){}return t.createSvgElement=function(t,n){void 0===n&&(n=!1);var i=document.createElementNS(e.svgNS,"svg");return i.className.baseVal="dxdi-canvas"+(n?" export":""),t&&t.appendChild(i),i},t.createMainElement=function(t,e){void 0===e&&(e=!1);var n=document.createElement("div");return n.setAttribute("class","dxdi-control"+(e?" measurer":"")),i.Diagnostics.optimizeLayers&&(n.style.transform="translateZ(0)"),t&&t.appendChild(n),n},t.textToWords=function(t){return t.split(o).filter((function(t){return t.length}))},t.addEventListener=function(t,e,n){t.addEventListener(e,n)},t.removeEventListener=function(t,e,n){t.removeEventListener(e,n)},t}();e.RenderHelper=r},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.Ctrl=65536]="Ctrl",t[t.Shift=262144]="Shift",t[t.Alt=1048576]="Alt",t[t.Meta=16777216]="Meta"}(i=e.ModifierKey||(e.ModifierKey={})),function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Pause=19]="Pause",t[t.CapsLock=20]="CapsLock",t[t.Esc=27]="Esc",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Left=37]="Left",t[t.Up=38]="Up",t[t.Right=39]="Right",t[t.Down=40]="Down",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Key_0=48]="Key_0",t[t.Key_1=49]="Key_1",t[t.Key_2=50]="Key_2",t[t.Key_3=51]="Key_3",t[t.Key_4=52]="Key_4",t[t.Key_5=53]="Key_5",t[t.Key_6=54]="Key_6",t[t.Key_7=55]="Key_7",t[t.Key_8=56]="Key_8",t[t.Key_9=57]="Key_9",t[t.Key_a=65]="Key_a",t[t.Key_b=66]="Key_b",t[t.Key_c=67]="Key_c",t[t.Key_d=68]="Key_d",t[t.Key_e=69]="Key_e",t[t.Key_f=70]="Key_f",t[t.Key_g=71]="Key_g",t[t.Key_h=72]="Key_h",t[t.Key_i=73]="Key_i",t[t.Key_j=74]="Key_j",t[t.Key_k=75]="Key_k",t[t.Key_l=76]="Key_l",t[t.Key_m=77]="Key_m",t[t.Key_n=78]="Key_n",t[t.Key_o=79]="Key_o",t[t.Key_p=80]="Key_p",t[t.Key_q=81]="Key_q",t[t.Key_r=82]="Key_r",t[t.Key_s=83]="Key_s",t[t.Key_t=84]="Key_t",t[t.Key_u=85]="Key_u",t[t.Key_v=86]="Key_v",t[t.Key_w=87]="Key_w",t[t.Key_x=88]="Key_x",t[t.Key_y=89]="Key_y",t[t.Key_z=90]="Key_z",t[t.Windows=91]="Windows",t[t.ContextMenu=93]="ContextMenu",t[t.Numpad_0=96]="Numpad_0",t[t.Numpad_1=97]="Numpad_1",t[t.Numpad_2=98]="Numpad_2",t[t.Numpad_3=99]="Numpad_3",t[t.Numpad_4=100]="Numpad_4",t[t.Numpad_5=101]="Numpad_5",t[t.Numpad_6=102]="Numpad_6",t[t.Numpad_7=103]="Numpad_7",t[t.Numpad_8=104]="Numpad_8",t[t.Numpad_9=105]="Numpad_9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.Decimal=110]="Decimal",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.Semicolon=186]="Semicolon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.ForwardSlash=191]="ForwardSlash",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.BackSlash=220]="BackSlash",t[t.CloseBracket=221]="CloseBracket",t[t.SingleQuote=222]="SingleQuote"}(e.KeyCode||(e.KeyCode={})),e.getKeyModifiers=function(t){var e=0;return t.altKey&&(e|=i.Alt),t.ctrlKey&&(e|=i.Ctrl),t.shiftKey&&(e|=i.Shift),t.metaKey&&(e|=i.Meta),e}},function(t,e,n){"use strict";var i,o=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Centimeter=0]="Centimeter",t[t.Inch=1]="Inch"}(i=e.RichEditUnit||(e.RichEditUnit={}));var r=function(){function t(){}return t.getConverter=function(t){switch(t){case i.Centimeter:return new a;case i.Inch:return new s;default:throw new Error}},t.pixelsToTwips=function(e){return Math.round(t.pixelsToTwipsF(e))},t.inchesToTwips=function(e){return Math.round(t.inchesToTwipsF(e))},t.pointsToTwips=function(e){return Math.round(t.pointsToTwipsF(e))},t.picasToTwips=function(e){return Math.round(1440*e/t.PICAS_PER_INCH)},t.centimetersToTwips=function(e){return Math.round(t.centimetersToTwipsF(e))},t.pixelsToTwipsF=function(e){return 1440*e/t.DPI},t.inchesToTwipsF=function(t){return 1440*t},t.pointsToTwipsF=function(t){return 20*t},t.centimetersToTwipsF=function(e){return 1440*e/t.CENTIMETERS_PER_INCH},t.modelUnitsToDegrees=function(t){return t/6e4},t.modelUnitsToRadians=function(t){return t/6e4*Math.PI/180},t.degreesToModelUnits=function(t){return 6e4*t},t.radiansToModelUnits=function(t){return 6e4*t/Math.PI*180},t.radiansToDegrees=function(t){return t/Math.PI*180},t.fdToModelUnits=function(t){return Math.round(1875*t/2048)},t.emuToTwips=function(t){return t/635},t.twipsToPixels=function(e){return Math.round(t.twipsToPixelsF(e))},t.inchesToPixels=function(e){return Math.round(t.DPI*e)},t.centimeterToPixel=function(e){return Math.round(e/(t.CENTIMETERS_PER_INCH/t.DPI))},t.pointsToPixels=function(e){return Math.round(e*t.DPI/72)},t.pointsToPixelsF=function(e){return e*t.DPI/72},t.twipsToPixelsF=function(e){return e*t.DPI/1440},t.pixelsToPoints=function(e){return Math.round(72*e/t.DPI)},t.twipsToPoints=function(t){return Math.round(this.twipsToPointsF(t))},t.twipsToPointsF=function(t){return t/20},t.twipsToInches=function(t){return t/1440},t.pixelsToInches=function(e){return e/t.DPI},t.twipsToCentimeters=function(e){return e*t.CENTIMETERS_PER_INCH/1440},t.pixelToCentimeters=function(e){return e*t.CENTIMETERS_PER_INCH/t.DPI},t.hundredthsOfMillimeterToModelUnits=function(t){return 15*t/127},t.twipsToEmu=function(t){return 635*t},t.twipsToDegree=function(t){return t/6e4},t.DPI=96,t.CENTIMETERS_PER_INCH=2.54,t.PICAS_PER_INCH=6,t}();e.UnitConverter=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getUnits=function(){return i.Centimeter},e.prototype.twipsToUI=function(t){return r.twipsToCentimeters(t)},e.prototype.UIToTwips=function(t){return r.centimetersToTwips(t)},e}(r);e.UIUnitConverterCentimeter=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.getUnits=function(){return i.Inch},e.prototype.twipsToUI=function(t){return r.twipsToInches(t)},e.prototype.UIToTwips=function(t){return r.inchesToTwips(t)},e}(r);e.UIUnitConverterInch=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),o=n(18),r=n(22),a=function(){function t(){}return t.updateSvgElementSize=function(t,e,n,i){t.style.width=e+"px",t.style.height=n+"px",t.setAttribute("viewBox","0 0 "+e+" "+n),i&&(t.setAttribute("width",e.toString()),t.setAttribute("height",n.toString()))},t.removeElement=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},t.removeContent=function(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)},t.setElementEventData=function(t,e,n,o){e!==i.MouseEventElementType.Undefined&&(t.setAttribute("data-type",e.toString()),void 0!==n&&t.setAttribute("data-key",n.toString()),void 0!==o&&t.setAttribute("data-value",o.toString()))},t.getElementEventData=function(t){if(t.getAttribute&&t.getAttribute("data-type"))return new i.MouseEventSource(parseInt(t.getAttribute("data-type")),t.getAttribute("data-key"),t.getAttribute("data-value"));var e=t.getAttribute&&t.getAttribute("class");return"dxdi-page"===e||"dxdi-main"===e?new i.MouseEventSource(i.MouseEventElementType.Document):void 0},t.getHtmlElementStylePropertyName=function(t){switch(t){case"fill":return"color";case"text-anchor":return"text-align"}return t},t.getTextAnchorValue=function(t,e){if(void 0===e&&(e=!1),e){if("start"===t)return"end";if("end"===t)return"start"}return t},t.getStrokeDasharrayValue=function(t,e){return e?t.split(",").map((function(t){return parseInt(t)/2*e})).join(","):t},t.applyStyleToElement=function(t,e,n){var i=this;void 0===n&&(n=!1);var o=t.getDefaultInstance();t.forEach((function(r){var a=t[r],s=e instanceof HTMLElement?i.getHtmlElementStylePropertyName(r):r;if(void 0!==a&&""!==a&&a!==o[r]){switch(r){case"text-anchor":a=i.getTextAnchorValue(a,n);break;case"stroke-dasharray":a=i.getStrokeDasharrayValue(a,parseInt(t["stroke-width"]))}e.style.setProperty(s,a)}else e.style.setProperty(s,"")}))},t.generateSvgElementId=function(t){return t+"_"+o.CreateGuid()},t.getUrlPathById=function(t){return r.Browser.Safari?"url("+location.protocol+"//"+location.host+location.pathname+"#"+t+")":"url(#"+t+")"},t}();e.RenderUtils=a,e.raiseEvent=function(t,e,n){n(e),e.preventDefault&&t.preventDefault()}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(20),s=n(1),l=function(t){function e(e,n){return void 0===e&&(e=new r.Size(o.ShapeDefaultDimension,.75*o.ShapeDefaultDimension)),t.call(this,e,n)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return s.ShapeTypes.Rectangle},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.width,r=e.height;return[new a.RectanglePrimitive(n,i,o,r,t.style)]},e}(o.ShapeDescription);e.RectangleShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=function(t){this.orientation=s.Vertical,this.direction=a.Forward;var e=t&&2*t>o.Connector.minOffset?2*t:o.Connector.minOffset;this.columnSpacing=e,this.layerSpacing=2*e,this.containerPadding=2*e,this.componentSpacing=2*e};e.LayoutSettings=r;var a,s,l,u=function(t){function e(e){var n=t.call(this,e)||this;return n.alignment=l.Center,n.subTreeColumnSpacing=n.componentSpacing/2,n}return i(e,t),e}(r);e.TreeLayoutSettings=u,function(t){t[t.Backward=0]="Backward",t[t.Forward=1]="Forward"}(a=e.LogicalDirectionKind||(e.LogicalDirectionKind={})),function(t){t[t.Horizontal=0]="Horizontal",t[t.Vertical=1]="Vertical"}(s=e.DataLayoutOrientation||(e.DataLayoutOrientation={})),function(t){t[t.Left=0]="Left",t[t.Center=1]="Center"}(l=e.Alignment||(e.Alignment={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(39),r=n(149),a=n(150),s=n(13),l=n(40);function u(t){return"undefined"!=typeof t&&null!=t}function c(t,e,n,i){if(i){var o=e.search("[A-Z]");-1!=o&&(e=e.replace(e.charAt(o),"-"+e.charAt(o).toLowerCase())),t.style.setProperty?t.style.setProperty(e,n,"important"):t.style.cssText+=";"+e+":"+n+"!important"}else t.style[e]=n}function d(){var t=i.Browser.IE&&"hidden"==f(document.body).overflow&&document.body.scrollTop>0;return i.Browser.WebKitFamily||i.Browser.Edge||t?i.Browser.MacOSMobilePlatform?window.pageYOffset:i.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop}function h(t){if("object"!=typeof t||null==t)return t;var e={};for(var n in t)e[n]=t[n];return e}function f(t){if(t.currentStyle)return t.currentStyle;if(document.defaultView&&document.defaultView.getComputedStyle){var e=document.defaultView.getComputedStyle(t,null);if(!e&&i.Browser.Firefox&&window.frameElement){for(var n=[],o=window.frameElement;!(e=document.defaultView.getComputedStyle(t,null));)n.push([o,o.style.display]),c(o,"display","block",!0),o="BODY"==o.tagName?o.ownerDocument.defaultView.frameElement:o.parentNode;e=h(e);for(var r,a=0;r=n[a];a++)c(r[0],"display",r[1],!1);document.body.offsetWidth}return e}return window.getComputedStyle(t,null)}function p(){var t=i.Browser.IE&&"hidden"==f(document.body).overflow&&document.body.scrollLeft>0;return i.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:i.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft}function m(){try{return document.activeElement}catch(t){return null}}function g(t,e){try{if(t.focus(),i.Browser.IE&&document.activeElement!=t&&t.focus(),e){var n=Selection.GetInfo(t);if(n.startPos==n.endPos)switch(e){case"start":Selection.SetCaretPosition(t,0);break;case"all":Selection.Set(t)}}}catch(o){}}function _(t,e){try{return!!t.className&&-1!=t.className.indexOf(e)}catch(n){return!1}}function v(t,e){t&&"string"===typeof e&&(y(t,e=e.trim())||""===e||(t.className=""===t.className?e:t.className+" "+e))}function y(t,e){try{var n,i=t.classList;if(!i){if(!t.className)return!1;n=t.className.split(" ")}for(var r=e.split(" "),a=r.length-1;a>=0;a--)if(i){if(!i.contains(r[a]))return!1}else if(o.Data.ArrayIndexOf(n,r[a])<0)return!1;return!0}catch(s){return!1}}function b(t,e){if(t){var n=" "+t.className+" ",i=n.replace(" "+e+" "," ");n.length!=i.length&&(t.className=r.Str.Trim(i))}}function w(t){return i.Browser.IE?function(t){return null==t||i.Browser.IE&&null==t.parentNode?0:t.getBoundingClientRect().top+d()}(t):i.Browser.Firefox&&i.Browser.Version>=3?x(t):i.Browser.Opera?function(t){var e=!0;t&&"TR"==t.tagName&&t.cells.length>0&&(t=t.cells[0]);for(var n=C(t,!1);null!=t;)n+=t.offsetTop,e||(n-=t.scrollTop),t=t.offsetParent,e=!1;return n+=document.body.scrollTop}(t):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?function(t){for(var e=C(t,!1),n=!0;null!=t;){if(e+=t.offsetTop,n||null==t.offsetParent||(e-=t.scrollTop),!n&&i.Browser.Firefox){var o=f(t);"DIV"==t.tagName&&"visible"!=o.overflow&&(e+=S(o.borderTopWidth))}n=!1,t=t.offsetParent}return e}(t):i.Browser.WebKitFamily||i.Browser.Edge?x(t):function(t){for(var e=0,n=!0;null!=t;)e+=t.offsetTop,n||null==t.offsetParent||(e-=t.scrollTop),n=!1,t=t.offsetParent;return e}(t)}function x(t){if(null==t)return 0;var e=t.getBoundingClientRect().top+d();return Math.round(e)}function C(t,e){for(var n=0,i=!0;null!=t&&"BODY"!=t.tagName;){var o=f(t);if("absolute"==o.position)break;i||"DIV"!=t.tagName||""!=o.position&&"static"!=o.position||(n-=e?t.scrollLeft:t.scrollTop),t=t.parentNode,i=!1}return n}function S(t){return I(t,parseInt)}function k(t){return I(t,parseFloat)}function I(t,e){var n=0;if(null!=t&&""!=t)try{var i=t.indexOf("px");i>-1&&(n=e(t.substr(0,i)))}catch(o){}return n}function T(t){return i.Browser.IE?function(t){return null==t||i.Browser.IE&&null==t.parentNode?0:t.getBoundingClientRect().left+p()}(t):i.Browser.Firefox&&i.Browser.Version>=3?E(t):i.Browser.Opera?function(t){for(var e=!0,n=C(t,!0);null!=t;)n+=t.offsetLeft,e||(n-=t.scrollLeft),t=t.offsetParent,e=!1;return n+=document.body.scrollLeft}(t):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?function(t){for(var e=C(t,!0),n=!0;null!=t;){if(e+=t.offsetLeft,n||null==t.offsetParent||(e-=t.scrollLeft),!n&&i.Browser.Firefox){var o=f(t);"DIV"==t.tagName&&"visible"!=o.overflow&&(e+=S(o.borderLeftWidth))}n=!1,t=t.offsetParent}return e}(t):i.Browser.WebKitFamily||i.Browser.Edge?E(t):function(t){for(var e=0,n=!0;null!=t;)e+=t.offsetLeft,n||null==t.offsetParent||(e-=t.scrollLeft),n=!1,t=t.offsetParent;return e}(t)}function E(t){if(null==t)return 0;var e=t.getBoundingClientRect().left+p();return Math.round(e)}function O(t,e,n){return t-=function(t,e){var n=function(t){var e=document.createElement("DIV");return e.style.top="0px",e.style.left="0px",e.style.visibility="hidden",e.style.position=f(t).position,e}(t);"static"==n.style.position&&(n.style.position="absolute"),t.parentNode.appendChild(n);var i=e?T(n):w(n);return t.parentNode.removeChild(n),Math.round(i)}(e,n)}function M(t,e){return D(t.childNodes,e)}function P(t,e){return D(t.all||t.getElementsByTagName("*"),e)}function D(t,e){for(var n=[],i=0;i<t.length;i++){var o=t[i];e&&!e(o)||n.push(o)}return n}function A(t,e){for(var n,i=[],o=0;n=t[o];o++)e&&!e(n)||i.push(n);return i}e.IsExists=u,e.IsNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},e.SetStyles=function(t,e,n){for(var o in u(e.cssText)&&(t.style.cssText=e.cssText),u(e.className)&&(t.className=e.className),e)if(e.hasOwnProperty(o)){var r=e[o];switch(o){case"cssText":case"className":break;case"float":V(t,r);break;case"opacity":z(t,r);break;case"zIndex":c(t,o,r,n);break;case"fontWeight":i.Browser.IE&&i.Browser.Version<9&&"number"==typeof e[o]&&(r=e[o].toString());default:c(t,o,r+("number"==typeof r?"px":""),n)}}},e.SetStylesCore=c,e.GetDocumentScrollTop=d,e.CloneObject=h,e.GetCurrentStyle=f,e.GetDocumentScrollLeft=p,e.focusedElement=null,e.GetFocusedElement=function(){var t=m();return t||e.focusedElement},e.GetActiveElement=m,e.SetFocus=function(t,e){i.Browser.MacOSMobilePlatform?g(t,e):window.setTimeout((function(){g(t,e)}),100)},e.GetIsParent=function(t,e){if(!t||!e)return!1;for(;e;){if(e===t)return!0;if("BODY"===e.tagName)return!1;e=e.parentNode}return!1},e.ElementContainsCssClass=_,e.AddClassNameToElement=v,e.ElementHasCssClass=y,e.RemoveClassNameFromElement=b,e.ToggleElementClassName=function(t,e,n){t&&(!1===n||void 0===n&&y(t,e)?b(t,e):(!0===n||void 0===n&&!y(t,e))&&v(t,e))},e.GetAbsolutePositionY=w,e.PxToInt=S,e.PxToFloat=k,e.GetAbsolutePositionX=T,e.SetAbsoluteX=function(t,e){t.style.left=O(e,t,!0)+"px"},e.SetAbsoluteY=function(t,e){t.style.top=O(e,t,!1)+"px"},e.IsPercentageSize=function(t){return t&&-1!=t.indexOf("%")},e.GetChildNodes=M,e.GetNodes=P,e.RetrieveByPredicate=D,e.GetChildNodesByClassName=function(t,e){return t?t.querySelectorAll?A(t.querySelectorAll("."+e),(function(e){return e.parentNode===t})):M(t,(function(t){return t.className&&y(t,e)})):[]},e.GetNodesByClassName=function(t,e){return t.querySelectorAll?A(t.querySelectorAll("."+e),null):P(t,(function(t){return t.className&&y(t,e)}))},e.GetParentByClassName=function(t,e){for(;null!=t;){if("BODY"==t.tagName||"#document"==t.nodeName)return null;if(_(t,e))return t;t=t.parentNode}return null},e.GetParentByTagName=function(t,e){for(e=e.toUpperCase();t;){if("BODY"===t.tagName)return null;if(t.tagName===e)return t;t=t.parentNode}return null};var R,B=null;function N(t,e){t.innerHTML=e}function L(t,e,n,i){if(t)if("string"===typeof e)t.style.display=e;else if(e){if(t.style.display="",n&&"none"===f(t).display){var o=i?"inline-":"";switch(t.tagName){case"TABLE":t.style.display=o+"table";break;default:t.style.display=o+"block"}}}else t.style.display="none"}function F(t,e){u(e)||(e=i.Browser.IE&&9!=i.Browser.MajorVersion&&window.getComputedStyle?window.getComputedStyle(t):f(t));var n=0;return"none"!=e.borderTopStyle&&(n+=k(e.borderTopWidth)),"none"!=e.borderBottomStyle&&(n+=k(e.borderBottomWidth)),n}function V(t,e){u(t.style.cssFloat)?t.style.cssFloat=e:u(t.style.styleFloat)?t.style.styleFloat=e:a.Attr.SetAttribute(t.style,"float",e)}function z(t,e){!i.Browser.IE||i.Browser.Version>8?t.style.opacity=e:"object"===typeof t.filters&&t.filters["DXImageTransform.Microsoft.Alpha"]?t.filters.item("DXImageTransform.Microsoft.Alpha").Opacity=100*e:t.style.filter="alpha(opacity="+100*e+")"}function j(t){return t&&H(t)}function H(t){if(!t)return!1;if(!(i.Browser.Firefox&&i.Browser.Version<4)&&t.ownerDocument&&t.ownerDocument.body&&t.ownerDocument.body.compareDocumentPosition)return t.ownerDocument.body.compareDocumentPosition(t)%2===0;if(!i.Browser.Opera&&!(i.Browser.IE&&i.Browser.Version<9)&&t.offsetParent&&t.parentNode.tagName)return!0;for(;null!=t;){if("BODY"==t.tagName)return!0;t=t.parentNode}return!1}function W(t,e){void 0===e&&(e=function(){return!1});for(var n=t;n&&1==n.nodeType;){if(n==t||!e(n)){var i=n.tagName.toUpperCase();if("BODY"==i)return!0;if(-1!==["INPUT","BUTTON","TEXTAREA","SELECT","OPTION"].indexOf(i)&&n.disabled||!U(n,!1)||!G(n,!1))return!1}n=n.parentNode}return!0}function U(t,e){return e?"none"!=f(t).display:"none"!=t.style.display}function G(t,e){return e?"hidden"!=f(t).visibility:"hidden"!=t.style.visibility}function K(t,e){return q(t,e)+F(t,e)}function q(t,e){var n=e||f(t);return S(n.paddingTop)+S(n.paddingBottom)}function $(t){u(t=r.Str.DecodeHtmlViaTextArea(t))&&""!==t&&alert(t)}function Y(t,e,n,i,o){var r=t;return r|=e?s.ModifierKey.Ctrl:0,r|=n?s.ModifierKey.Shift:0,r|=i?s.ModifierKey.Alt:0,r|=o?s.ModifierKey.Meta:0}e.setInnerHtmlInternal=N,e.SetElementDisplay=L,e.GetInnerText=function(t){if(i.Browser.Safari&&i.Browser.MajorVersion<=5){var e=(null==B&&((B=document.createElement("DIV")).style.width="0",B.style.height="0",B.style.overflow="visible",L(B,!1,!1,!1),document.body.appendChild(B)),B);N(e,t.innerHTML),L(e,!0,!1,!1);var n=e.innerText;return L(e,!1,!1,!1),n}return i.Browser.NetscapeFamily||i.Browser.WebKitFamily||i.Browser.IE&&i.Browser.Version>=9||i.Browser.Edge?t.textContent:t.innerText},e.GetVerticalScrollBarWidth=function(){if("undefined"==typeof R){var t=document.createElement("DIV");t.style.cssText="position: absolute; top: 0px; left: 0px; visibility: hidden; width: 200px; height: 150px; overflow: hidden; box-sizing: content-box",document.body.appendChild(t);var e=document.createElement("P");t.appendChild(e),e.style.cssText="width: 100%; height: 200px;";var n=e.offsetWidth;t.style.overflow="scroll";var i=e.offsetWidth;n==i&&(i=t.clientWidth),R=n-i,document.body.removeChild(t)}return R},e.GetHorizontalBordersWidth=function(t,e){u(e)||(e=i.Browser.IE&&window.getComputedStyle?window.getComputedStyle(t):f(t));var n=0;return"none"!=e.borderLeftStyle&&(n+=k(e.borderLeftWidth)),"none"!=e.borderRightStyle&&(n+=k(e.borderRightWidth)),n},e.GetVerticalBordersWidth=F,e.SetElementVisibility=function(t,e){t&&(t.style.visibility="string"===typeof e?e:e?"visible":"hidden")},e.SetElementFloat=V,e.SetElementOpacity=z,e.CreateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},e.IsUrlContainsClientScript=function(t){return-1!==t.toLowerCase().indexOf("javascript:")},e.IsExistsElement=j,e.IsValidElement=H,e.IsInteractiveControl=function(t){return o.Data.ArrayIndexOf(["A","INPUT","SELECT","OPTION","TEXTAREA","BUTTON","IFRAME"],t.tagName)>-1},e.IsActionElement=function(t){if(!j(t))return!1;var e=parseInt(a.Attr.GetAttribute(t,a.Attr.GetTabIndexAttributeName())),n=!isNaN(e),i=n&&e>-1,o=n&&e<0,r=t.tagName,s=W(t),l=-1!==["BUTTON","SELECT","TEXTAREA","OPTION","IFRAME"].indexOf(r),u="A"===r&&(!!t.href||i),c="INPUT"===r&&"hidden"!==t.type.toLowerCase(),d="INPUT"!==r&&i,h="DIV"==r&&"true"===t.contentEditable;return s&&!o&&(l||u||c||d||h)},e.IsFocusable=W,e.GetElementDisplay=U,e.GetElementVisibility=G,e.GetClearClientHeight=function(t){return t.offsetHeight-K(t)},e.GetTopBottomBordersAndPaddingsSummaryValue=K,e.GetTopBottomPaddings=q,e.ParseShortcutString=function(t){if(!t)return 0;var e=!1,n=!1,i=!1,o=!1,a=null,l=t.toString().split("+");if(l.length>0)for(var u=0;u<l.length;u++){var c=r.Str.Trim(l[u].toUpperCase());switch(c){case"CONTROL":case"CONTROLKEY":case"CTRL":e=!0;break;case"SHIFT":case"SHIFTKEY":n=!0;break;case"ALT":i=!0;break;case"CMD":o=!0;break;case"F1":a=s.KeyCode.F1;break;case"F2":a=s.KeyCode.F2;break;case"F3":a=s.KeyCode.F3;break;case"F4":a=s.KeyCode.F4;break;case"F5":a=s.KeyCode.F5;break;case"F6":a=s.KeyCode.F6;break;case"F7":a=s.KeyCode.F7;break;case"F8":a=s.KeyCode.F8;break;case"F9":a=s.KeyCode.F9;break;case"F10":a=s.KeyCode.F10;break;case"F11":a=s.KeyCode.F11;break;case"F12":a=s.KeyCode.F12;break;case"RETURN":case"ENTER":a=s.KeyCode.Enter;break;case"HOME":a=s.KeyCode.Home;break;case"END":a=s.KeyCode.End;break;case"LEFT":a=s.KeyCode.Left;break;case"RIGHT":a=s.KeyCode.Right;break;case"UP":a=s.KeyCode.Up;break;case"DOWN":a=s.KeyCode.Down;break;case"PAGEUP":a=s.KeyCode.PageUp;break;case"PAGEDOWN":a=s.KeyCode.PageDown;break;case"SPACE":a=s.KeyCode.Space;break;case"TAB":a=s.KeyCode.Tab;break;case"BACKSPACE":case"BACK":a=s.KeyCode.Backspace;break;case"CONTEXT":a=s.KeyCode.ContextMenu;break;case"ESCAPE":case"ESC":a=s.KeyCode.Esc;break;case"DELETE":case"DEL":a=s.KeyCode.Delete;break;case"INSERT":case"INS":a=s.KeyCode.Insert;break;case"PLUS":a="+".charCodeAt(0);break;default:a=c.charCodeAt(0)}}else $("Invalid shortcut");return Y(a,e,n,i,o)},e.ShowErrorAlert=$,e.GetShortcutCode=Y,e.GetShortcutCodeByEvent=function(t){return Y(l.Evt.GetKeyCode(t),t.ctrlKey,t.shiftKey,t.altKey,!(!i.Browser.MacOSPlatform&&!i.Browser.MacOSMobilePlatform)&&t.metaKey)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(11),r=n(6),a=n(0),s=n(7),l=n(34),u=n(37);!function(t){t[t.In=0]="In",t[t.Cm=1]="Cm",t[t.Px=2]="Px"}(i=e.DiagramUnit||(e.DiagramUnit={})),function(t){t[t.Portrait=0]="Portrait",t[t.Landscape=1]="Landscape"}(e.PageOrientation||(e.PageOrientation={}));var c=function(){function t(e){void 0===e&&(e=new a.Size(8391,11906)),this.items=[],this.itemIndexByKey={},this.pageSize=new a.Size(8391,11906),this.pageLandscape=!1,this.pageColor=t.defaultPageColor,this.units=i.In,this.snapStartPoint=new a.Point(0,0),this.pageSize=e,this.size=this.pageSize.clone(),this.rectangle=new a.Rectangle(new a.Point(0,0),new a.Size(0,0))}return Object.defineProperty(t.prototype,"pageWidth",{get:function(){return this.pageLandscape?this.pageSize.height:this.pageSize.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageHeight",{get:function(){return this.pageLandscape?this.pageSize.width:this.pageSize.height},enumerable:!0,configurable:!0}),t.prototype.getRectangle=function(t){return t&&(this.rectangle=a.GeometryUtils.getCommonRectangle(this.items.map((function(t){return t.rectangle})))),this.rectangle},t.getRectangle=function(t){return a.GeometryUtils.getCommonRectangle(t.map((function(t){return t.rectangle})))},t.prototype.pushItem=function(t){var e=this.items.push(t);this.itemIndexByKey[t.key]=e-1,t instanceof o.Shape&&!t.image.isEmpty&&this.cacheShapeImage(t)},t.prototype.removeItem=function(t){var e=this.getItemIndex(t);delete this.itemIndexByKey[t.key],this.items.splice(e,1),this.updateIndicesHash(e)},t.prototype.updateIndicesHash=function(t){for(var e=t;e<this.items.length;e++)this.itemIndexByKey[this.items[e].key]=e},t.prototype.getItemIndex=function(t){return this.itemIndexByKey[t.key]},t.prototype.findShape=function(t){var e=this.findItem(t);return e instanceof o.Shape?e:void 0},t.prototype.findShapesCore=function(t){var e;return e=[],this.items.forEach((function(n){n instanceof o.Shape&&t(n)&&e.push(n)})),e},t.prototype.findShapeCore=function(t){var e;return this.items.forEach((function(n){n instanceof o.Shape&&t(n)&&(e=n)})),e},t.prototype.findShapeAtPosition=function(t){return this.findShapeCore((function(e){return e.position.equals(t)}))},t.prototype.findShapeByDataKey=function(t){return this.findShapeCore((function(e){return e.dataKey===t}))},t.prototype.findShapesByImageUrl=function(t){return this.findShapesCore((function(e){return e.image.url===t}))},t.prototype.findShapesByDescription=function(t){return this.findShapesCore((function(e){return e.description.key===t.key}))},t.prototype.cacheShapeImage=function(t){var e=l.ImageCache.instance.createUnloadedInfoByShapeImageInfo(t.image);e.isLoaded&&t.image.loadBase64Content(e.base64)},t.prototype.loadAllImages=function(t){l.ImageCache.instance.loadAllImages(t)},t.prototype.findContainer=function(t){var e=this.findShape(t);return e&&e.enableChildren?e:void 0},t.prototype.getChildren=function(t){var e=this;return t.children.map((function(t){return e.findItem(t.key)})).filter((function(t){return t}))},t.prototype.findChild=function(t,e,n){var i,r=this;return void 0===n&&(n=!0),t.children.forEach((function(t){i||(t.key!==e?n&&t instanceof o.Shape&&(i=r.findChild(t,e,n)):i=t)})),i},t.prototype.findItemContainerCore=function(t,e){for(var n=t.container;n&&e&&!e(n);)n=n.container;return n},t.prototype.findItemContainer=function(t){return this.findItemContainerCore(t)},t.prototype.findItemCollapsedContainer=function(t){return this.findItemContainerCore(t,(function(t){return!t.expanded}))},t.prototype.findItemTopCollapsedContainer=function(t){for(var e,n=t.container;n;)n.expanded||(e=n),n=n.container;return e},t.prototype.isContainerItem=function(t,e){return void 0!==this.findItemContainerCore(e,(function(e){return e.key===t.key}))},t.prototype.findConnector=function(t){var e=this.findItem(t);return e instanceof r.Connector?e:void 0},t.prototype.findConnectorCore=function(t){var e;return this.items.forEach((function(n){n instanceof r.Connector&&t(n)&&(e=n)})),e},t.prototype.findConnectorAtPoints=function(t){return this.findConnectorCore((function(e){return a.GeometryUtils.arePointsEqual(e.points,t)}))},t.prototype.findConnectorByDataKey=function(t){return this.findConnectorCore((function(e){return e.dataKey===t}))},t.prototype.findConnectorsCore=function(t){var e=[];return this.items.forEach((function(n){n instanceof r.Connector&&t(n)&&e.push(n)})),e},t.prototype.findConnectorsWithoutBeginItem=function(){return this.findConnectorsCore((function(t){return!t.beginItem}))},t.prototype.findConnectorsWithoutEndItem=function(){return this.findConnectorsCore((function(t){return!t.endItem}))},t.prototype.findItem=function(t){return this.items[this.itemIndexByKey[t]]},t.isIntersectedItems=function(t,e){var n=!1;return t instanceof o.Shape?n=e.intersectedByRect(t.rectangle):t instanceof r.Connector&&t.getSegments().forEach((function(t){e instanceof o.Shape?n=n||t.intersectRect(e.rectangle):e instanceof r.Connector&&e.getSegments().forEach((function(e){n=n||t.intersect(e)}))})),n},t.prototype.getIntersectItems=function(e){var n=[];return this.items.forEach((function(i){i.container===e.container&&(e===i||i instanceof r.Connector&&-1!==e.attachedConnectors.indexOf(i)||!t.isIntersectedItems(i,e)||n.push(i))})),n},t.prototype.getIntersectItemsMinZIndex=function(t){return this.getIntersectItems(t).map((function(t){return t.zIndex})).reduce((function(t,e){return Math.min(t,e)}),Number.MAX_VALUE)},t.prototype.getIntersectItemsMaxZIndex=function(t){return this.getIntersectItems(t).map((function(t){return t.zIndex})).reduce((function(t,e){return Math.max(t,e)}),-Number.MAX_VALUE)},t.prototype.iterateItems=function(t){this.items.forEach(t)},t.prototype.invalidateItems=function(){this.iterateItems((function(t){t.invalidatePrimitives(),t instanceof r.Connector&&t.invalidateRenderPoints()}))},t.prototype.getNextKey=function(t){var e=this;return s.ModelUtils.getNextItemKey(this.items.map((function(t){return t.key})),(function(t){return void 0===e.itemIndexByKey[t]}),t)},t.defaultPageColor=u.ColorHelper.LIGHT_COLOR,t}();e.DiagramModel=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s,l){var u=t.call(this,r,a,s,l)||this;return u.x=e,u.y=n,u.width=i,u.height=o,u}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"rect")},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.setUnitAttribute(e,"width",this.width),this.setUnitAttribute(e,"height",this.height),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.RectanglePrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(15),r=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.className=n,r.clipPathId=i,r.onApplyProperties=o,r.children=[],r}return i(e,t),e.prototype.createElement=function(){var t=this.createMainElement();return this.createChildElements(t),t},e.prototype.createChildElements=function(t){for(var e=0;e<this.children.length;e++)t.appendChild(this.children[e].createElement())},e.prototype.applyElementProperties=function(t,e){this.applyElementStyleProperties(t),this.className&&t.setAttribute("class",this.className),"string"===typeof this.clipPathId&&(this.clipPathId?t.setAttribute("clip-path",o.RenderUtils.getUrlPathById(this.clipPathId)):t.removeAttribute("clip-path")),this.onApplyProperties&&this.onApplyProperties(t),this.applyChildrenProperties(t,e)},e.prototype.applyChildrenProperties=function(t,e){for(var n=0;n<this.children.length;n++)this.children[n].applyElementProperties(t.childNodes[n],e)},e.prototype.applyElementStyleProperties=function(t){this.applyElementStylePropertiesCore(t)},e.prototype.applyElementStylePropertiesCore=function(t,e){void 0===e&&(e=!1),this.style&&o.RenderUtils.applyStyleToElement(this.style,t,e)},e.prototype.dispose=function(){this.children&&this.children.forEach((function(t){return t.dispose()}))},e}(n(87).PrimitiveObject);e.SvgPrimitive=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.IdentUserAgent=function(e,n){void 0===n&&(n=!1);var i=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],o={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(e&&0!=e.length){e=e.toLowerCase(),t.indentPlatformMajorVersion(e);try{for(var r,a={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},s="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",l={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+s,Mozilla:"mozilla(?:.*rv:"+s+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+s,Firefox:"firefox(?:/|\\s*)?"+s,Opera:"(?:opera|sopr)(?:/|\\s*)?"+s,Opera10:"opera.*\\s*version(?:/|\\s*)?"+s,IE:"msie\\s*"+s,Edge:"edge(?:/|\\s*)?"+s},u=-1,c=0;c<i.length;c++){var d=i[c],h=new RegExp(l[d],"i");h.compile&&h.compile(l[d],"i");var f=h.exec(e);if(f&&f.index>=0){if("IE"==r&&u>=11&&"Safari"==d)continue;"Opera10"==(r=d)&&(r="Opera"),u=t.GetBrowserVersion(e,f,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",t.getIECompatibleVersionString()),"Mozilla"==r&&u>=11&&(r="IE")}}r||(r="IE");var p,m=-1!=u;m||(u=o[r]);var g=Number.MAX_VALUE;for(var _ in a)if(a.hasOwnProperty(_)){var v="!"==_.substr(0,1),y=e.indexOf((v?_.substr(1):_).toLowerCase());y>=0&&(y<g||v)&&(g=v?0:y,p=a[_])}var b=e.toUpperCase().match("SM-[A-Z]"),w=b&&b.length>0;"WinPhone"==p&&u<9&&(u=Math.floor(t.getVersionFromTrident(e,"trident(?:/|\\s*)?"+s))),!n&&"IE"==r&&u>7&&document.documentMode<u&&(u=document.documentMode),"WinPhone"==p&&(u=Math.max(9,u)),p||(p="Win"),p!=a["cpu os"]||m||(u=4),t.fillUserAgentInfo(i,r,u,p,w)}catch(x){t.fillUserAgentInfo(i,"IE",o.IE,"Win")}}else t.fillUserAgentInfo(i,"IE",o.IE,"Win")},t.GetBrowserVersion=function(e,n,i,o){var r=t.getVersionFromMatches(n);if(o){var a=t.getVersionFromTrident(e,i);if("edge"===o||parseInt(o)===a)return a}return r},t.getIECompatibleVersionString=function(){if(document.compatible)for(var t=0;t<document.compatible.length;t++)if("IE"===document.compatible[t].userAgent&&document.compatible[t].version)return document.compatible[t].version.toLowerCase();return""},t.isTouchEnabled=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},t.fillUserAgentInfo=function(e,n,i,o,r){void 0===r&&(r=!1);for(var a=0;a<e.length;a++){var s=e[a];t[s]=s==n}t.Version=Math.floor(10*i)/10,t.MajorVersion=Math.floor(t.Version),t.WindowsPlatform="Win"==o||"WinPhone"==o,t.MacOSMobilePlatform="MacMobile"==o||"Mac"==o&&t.isTouchEnabled(),t.MacOSPlatform="Mac"==o&&!t.MacOSMobilePlatform,t.AndroidMobilePlatform="Android"==o,t.WindowsPhonePlatform="WinPhone"==o,t.WebKitFamily=t.Safari||t.Chrome||t.Opera&&t.MajorVersion>=15,t.NetscapeFamily=t.Netscape||t.Mozilla||t.Firefox,t.HardwareAcceleration=t.IE&&t.MajorVersion>=9||t.Firefox&&t.MajorVersion>=4||t.AndroidMobilePlatform&&t.Chrome||t.Chrome&&t.MajorVersion>=37||t.Safari&&!t.WindowsPlatform||t.Edge||t.Opera&&t.MajorVersion>=46,t.WebKitTouchUI=t.MacOSMobilePlatform||t.AndroidMobilePlatform;var l=t.IE&&t.MajorVersion>9&&t.WindowsPlatform&&t.UserAgent.toLowerCase().indexOf("touch")>=0;if(t.MSTouchUI=l||t.Edge&&!!window.navigator.maxTouchPoints,t.TouchUI=t.WebKitTouchUI||t.MSTouchUI,t.MobileUI=t.WebKitTouchUI||t.WindowsPhonePlatform,t.AndroidDefaultBrowser=t.AndroidMobilePlatform&&!t.Chrome,t.AndroidChromeBrowser=t.AndroidMobilePlatform&&t.Chrome,r&&(t.SamsungAndroidDevice=r),t.MSTouchUI){var u=t.UserAgent.toLowerCase().indexOf("arm;")>-1;t.VirtualKeyboardSupported=u||t.WindowsPhonePlatform}else t.VirtualKeyboardSupported=t.WebKitTouchUI;t.fillDocumentElementBrowserTypeClassNames(e)},t.indentPlatformMajorVersion=function(e){var n=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(e);n&&(t.PlaformMajorVersion=n[1])},t.prototype.GetBrowserVersion=function(e,n,i,o){var r=t.getVersionFromMatches(n);if(o){var a=t.getVersionFromTrident(e,i);if("edge"===o||parseInt(o)===a)return a}return r},t.getVersionFromMatches=function(t){var e=-1,n="";return t[1]&&(n+=t[1],t[2]&&(n+="."+t[2])),""!=n&&(e=parseFloat(n),isNaN(e)&&(e=-1)),e},t.getVersionFromTrident=function(e,n){var i=new RegExp(n,"i").exec(e);return t.getVersionFromMatches(i)+4},t.fillDocumentElementBrowserTypeClassNames=function(e){for(var n="",i=e.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),o=0;o<i.length;o++){var r=i[o];t[r]&&(n+="dx"+r+" ")}n+="dxBrowserVersion-"+t.MajorVersion,document&&document.documentElement&&(""!=document.documentElement.className&&(n=" "+n),document.documentElement.className+=n,t.Info=n)},t.UserAgent=window.navigator.userAgent.toLowerCase(),t._foo=t.IdentUserAgent(t.UserAgent),t}();e.Browser=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.key=t,this.point=e};e.ShapeParameterPoint=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(37),r=n(85),a=n(14),s=function(){function t(){this.createDefaultProperties()}return t.prototype.clone=function(){var t=this,e=this.createInstance();return this.forEach((function(n){e[n]=t[n]})),e},t.prototype.forEach=function(t){for(var e in this)this.hasOwnProperty(e)&&t(e)},Object.defineProperty(t.prototype,"strokeWidthPx",{get:function(){return 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return a.UnitConverter.pixelsToTwips(this.strokeWidthPx)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOffset",{get:function(){return.5},enumerable:!0,configurable:!0}),t.prototype.toHash=function(){var t=this.toObject();return t?Object.keys(t).map((function(e){return e+"|"+t[e]})).join(""):""},t.prototype.toObject=function(){var t=this,e={},n=!1,i=this.getDefaultInstance();return this.forEach((function(o){t[o]!==i[o]&&(e[o]=t[o],n=!0)})),n?e:null},t.prototype.fromObject=function(t){for(var e in t)if(t.hasOwnProperty(e)&&void 0!==this[e]){var n=r.isColorProperty(e)?o.ColorHelper.stringToHash(t[e]):t[e];this[e]=n}},t}();e.StyleBase=s,e.DEFAULT_STROKE_WIDTH=2,e.DEFAULT_STROKE_DASHARRAY="";var l=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),n.prototype.createInstance=function(){return new n},n.prototype.createDefaultProperties=function(){this.fill="#ffffff",this.stroke="#000000",this["stroke-width"]=e.DEFAULT_STROKE_WIDTH.toString(),this["stroke-dasharray"]=e.DEFAULT_STROKE_DASHARRAY},n.prototype.getDefaultInstance=function(){return n.defaultInstance},n.prototype.isDefaultStrokeDashArray=function(){return this["stroke-dasharray"]===e.DEFAULT_STROKE_DASHARRAY},n.prototype.resetStrokeDashArray=function(){this["stroke-dasharray"]=e.DEFAULT_STROKE_DASHARRAY},Object.defineProperty(n.prototype,"strokeWidthPx",{get:function(){return parseInt(this["stroke-width"])},enumerable:!0,configurable:!0}),n.defaultInstance=new n,n}(s);e.Style=l;var u,c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createInstance=function(){return new e},e.prototype.createDefaultProperties=function(){this.fill="#000000",this["font-family"]="Arial",this["font-size"]="10pt",this["font-weight"]="",this["font-style"]="",this["text-decoration"]="",this["text-anchor"]="middle"},e.prototype.getDefaultInstance=function(){return e.defaultInstance},e.prototype.getAlignment=function(){switch(this["text-anchor"]){case"left":return u.Left;case"right":return u.Right;default:return u.Center}},e.defaultInstance=new e,e}(s);e.TextStyle=c,function(t){t[t.Left=0]="Left",t[t.Right=1]="Right",t[t.Center=2]="Center"}(u=e.TextAlignment||(e.TextAlignment={}));var d=function(t){function e(e,n){var i=t.call(this)||this;return i._strokeWidthPx=e,i._strokeOffset=n,i}return i(e,t),e.prototype.createInstance=function(){return new e},e.prototype.createDefaultProperties=function(){},e.prototype.getDefaultInstance=function(){return c.defaultInstance},Object.defineProperty(e.prototype,"strokeWidthPx",{get:function(){return this._strokeWidthPx||0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeOffset",{get:function(){return this._strokeOffset||0},enumerable:!0,configurable:!0}),e.default1pxInstance=new e(1,.5),e.default1pxNegativeOffsetInstance=new e(1,-.5),e.default2pxInstance=new e(2),e}(l);e.StrokeStyle=d;var h=function(t){function e(e){var n=t.call(this)||this;return e&&Object.keys(e).forEach((function(t){return n[t]=e[t]})),n}return i(e,t),e.prototype.createInstance=function(){return new e},e.prototype.createDefaultProperties=function(){},e.prototype.getDefaultInstance=function(){return c.defaultInstance},e.defaultInstance=new e,e}(l);e.EmptyStyle=h},function(t,e,n){"use strict";var i,o;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Straight=0]="Straight",t[t.Orthogonal=1]="Orthogonal"}(i=e.ConnectorLineOption||(e.ConnectorLineOption={})),function(t){t[t.None=0]="None",t[t.Arrow=1]="Arrow",t[t.OutlinedTriangle=2]="OutlinedTriangle",t[t.FilledTriangle=3]="FilledTriangle"}(o=e.ConnectorLineEnding||(e.ConnectorLineEnding={})),e.DEFAULT_CONNECTOR_LINEOPTION=i.Orthogonal,e.DEFAULT_CONNECTOR_STARTLINEENDING=o.None,e.DEFAULT_CONNECTOR_ENDLINEENDING=o.Arrow;var r=function(){function t(){this.lineOption=e.DEFAULT_CONNECTOR_LINEOPTION,this.startLineEnding=e.DEFAULT_CONNECTOR_STARTLINEENDING,this.endLineEnding=e.DEFAULT_CONNECTOR_ENDLINEENDING}return t.prototype.clone=function(){var e=new t;return e.lineOption=this.lineOption,e.startLineEnding=this.startLineEnding,e.endLineEnding=this.endLineEnding,e},t.prototype.forEach=function(t){for(var e in this)this.hasOwnProperty(e)&&t(e)},t.prototype.toObject=function(){var t={},n=!1;return this.lineOption!==e.DEFAULT_CONNECTOR_LINEOPTION&&(t.lineOption=this.lineOption,n=!0),this.startLineEnding!==e.DEFAULT_CONNECTOR_STARTLINEENDING&&(t.startLineEnding=this.startLineEnding,n=!0),this.endLineEnding!==e.DEFAULT_CONNECTOR_ENDLINEENDING&&(t.endLineEnding=this.endLineEnding,n=!0),n?t:null},t.prototype.fromObject=function(t){"number"===typeof t.lineOption&&(this.lineOption=t.lineOption),"number"===typeof t.startLineEnding&&(this.startLineEnding=t.startLineEnding),"number"===typeof t.endLineEnding&&(this.endLineEnding=t.endLineEnding)},t}();e.ConnectorProperties=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),r=n(10),a=n(14),s=function(t){function e(e,n){var i=t.call(this,e)||this;return i.history=n,i}return i(e,t),e.prototype.onMouseDown=function(t){this.mouseDownPoint=t.modelPoint.clone()},e.prototype.onMouseMove=function(t){t.button!==r.MouseButton.Left?(this.cancelChanges(),this.handler.switchToDefaultState()):t.button===r.MouseButton.Left&&(!this.mouseDownPoint||Math.abs(this.mouseDownPoint.x-t.modelPoint.x)>e.dragStartLimit||Math.abs(this.mouseDownPoint.y-t.modelPoint.y)>e.dragStartLimit)&&(this.onApplyChanges(t),this.modified||this.handler.raiseDragStart(this.getDraggingElementKeys()),this.modified=!0,this.mouseDownPoint=void 0)},e.prototype.cancelChanges=function(){this.history.undoTransaction(),this.modified&&this.handler.raiseDragEnd(this.getDraggingElementKeys()),this.modified=!1},e.prototype.onMouseUp=function(t){this.mouseDownPoint=void 0,this.handler.switchToDefaultState()},e.prototype.start=function(){this.history.beginTransaction()},e.prototype.finish=function(){this.modified?(this.onFinishWithChanges(),this.modified=!1,this.history.endTransaction(),this.handler.raiseDragEnd(this.getDraggingElementKeys())):this.history.endTransaction()},e.prototype.onFinishWithChanges=function(){},e.prototype.getSnappedPoint=function(t,e){return this.handler.getSnappedPoint(t,e)},e.dragStartLimit=a.UnitConverter.pixelsToTwips(4),e}(o.MouseHandlerCancellableState);e.MouseHandlerDraggingState=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i,o){void 0===i&&(i=-1),void 0===o&&(o=!1);var r=t.call(this,e,n)||this;return r.pointIndex=i,r.skipped=o,r}return i(e,t),e.prototype.offset=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),new e(this.x+t,this.y+n)},e.prototype.multiply=function(t,n){return void 0===t&&(t=1),void 0===n&&(n=t),new e(this.x*t,this.y*n)},e.prototype.clone=function(){return new e(this.x,this.y,this.pointIndex)},e}(n(0).Point);e.ConnectorRenderPoint=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.key=t,this.value=e};e.ShapeParameter=i;var o=function(){function t(){this.items={}}return t.prototype.add=function(t){this.items[t.key]=t},t.prototype.addRange=function(t){for(var e=0;e<t.length;e++)this.add(t[e])},t.prototype.get=function(t){return this.items[t]},t.prototype.forEach=function(t){for(var e in this.items)this.items.hasOwnProperty(e)&&t(this.items[e])},t.prototype.clone=function(){var e=new t;return this.forEach((function(t){e.add(new i(t.key,t.value))})),e},t.prototype.toObject=function(){var t={},e=!1;return this.forEach((function(n){t[n.key]={value:n.value},e=!0})),e?t:null},t.prototype.fromObject=function(t){this.forEach((function(e){var n=t[e.key];n&&"number"===typeof n.value&&(e.value=n.value)}))},t}();e.ShapeParameters=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n,i){void 0===i&&(i=1),this.weight=i,this.key=t,this.from=e,this.to=n}return t.prototype.getHashKey=function(){return this.from+"_"+this.to},t.prototype.reverse=function(){return new t(this.key,this.to,this.from,this.weight)},t}();e.Edge=i;var o=function(t,e){this.item=t,this.position=e};e.PositionInfo=o,function(t){t[t.Outgoing=1]="Outgoing",t[t.Incoming=2]="Incoming",t[t.OutgoingAndIncoming=3]="OutgoingAndIncoming"}(e.ConnectionMode||(e.ConnectionMode={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a){var s=t.call(this,null,n,o,r)||this;return s.zIndex=i,s.onBeforeDispose=a,s.children=e,s}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"g")},e.prototype.applyElementProperties=function(e,n){(this.zIndex||0===this.zIndex)&&e.style.setProperty("z-index",this.zIndex.toString()),t.prototype.applyElementProperties.call(this,e,n)},e.prototype.dispose=function(){this.onBeforeDispose&&this.onBeforeDispose(),t.prototype.dispose.call(this)},e}(n(21).SvgPrimitive);e.GroupPrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),r=function(){function t(t){this.handler=t}return t.prototype.start=function(){},t.prototype.finish=function(){},t.prototype.onMouseClick=function(t){},t.prototype.onMouseDblClick=function(t){this.handler.switchToDefaultState()},t.prototype.onMouseDown=function(t){},t.prototype.onMouseUp=function(t){},t.prototype.onMouseMove=function(t){},t.prototype.onMouseWheel=function(t){return!1},t.prototype.onDragStart=function(t){},t.prototype.onDragEnd=function(t){},t.prototype.onShortcut=function(t){return!1},t}();e.MouseHandlerStateBase=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onShortcut=function(t){return t===o.KeyCode.Esc&&(this.cancelChanges(),this.handler.switchToDefaultState(),!0)},e}(r);e.MouseHandlerCancellableState=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(151),o=n(14);e.PAGE_BG_TEXTFLOOR_FILTER_ID="page-text-flood";var r=function(){function t(t,e){this.elements={},this.actualZoom=t,this.dom=e}return t.prototype.createAndChangePrimitivesElements=function(t,e){var n=this;t.forEach((function(t){n.createAndChangePrimitiveElement(t,e)}))},t.prototype.createPrimitiveElement=function(t,e,n){return this.dom.createElement(t,e,n)},t.prototype.createAndChangePrimitiveElement=function(t,e,n){var i=this.createPrimitiveElement(t,e,n);return this.dom.changeByPrimitive(i,t),i},t.prototype.changePrimitiveElement=function(t,e){this.dom.changeByPrimitive(e,t)},t.prototype.getOrCreateElement=function(t,e,n,i){var o=t&&this.elements[t]||(this.elements[t]=this.createPrimitiveElement(e,n,i));return this.changePrimitiveElement(e,o),o},t.prototype.createTextFloodFilter=function(t,n,o){this.getOrCreateElement(t,new i.TextFloodFilterPrimitive(e.PAGE_BG_TEXTFLOOR_FILTER_ID,o),n)},t.prototype.getAbsoluteSize=function(t){return t.transform(o.UnitConverter.twipsToPixelsF).multiply(this.actualZoom)},t}();e.CanvasManagerBase=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(5),a=function(t){function e(e,n,i){void 0===i&&(i=r.ConnectionPointSide.Undefined);var o=t.call(this,e,n)||this;return o.side=i,o}return i(e,t),e.prototype.offset=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=0),new e(this.x+t,this.y+n)},e.prototype.multiply=function(t,n){return void 0===t&&(t=1),void 0===n&&(n=t),new e(this.x*t,this.y*n)},e.prototype.clone=function(){return new e(this.x,this.y,this.side)},e.prototype.toPoint=function(){return new o.Point(this.x,this.y)},e}(o.Point);e.ConnectionPoint=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(89),o=n(41),r=n(0),a=function(){function t(t,e,n,o,r){this._base64=void 0!==t?i.Base64Utils.normalize(t):void 0,this.actualId=e,this._referenceInfo=o,this._isLoaded=void 0!==r&&r,this.imageUrl=n}return Object.defineProperty(t.prototype,"isLoaded",{get:function(){return this._referenceInfo?this._referenceInfo._isLoaded:this._isLoaded},set:function(t){this._isLoaded=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"base64",{get:function(){return this._base64},set:function(t){this._base64=i.Base64Utils.normalize(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"referenceInfo",{get:function(){return this._referenceInfo},set:function(t){this._referenceInfo=t,this._base64=void 0,this._isLoaded=void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isLoading",{get:function(){return this._referenceInfo?this.referenceInfo._isLoading:this._isLoading},enumerable:!0,configurable:!0}),t.prototype.startLoading=function(){this._referenceInfo?this._referenceInfo.startLoading():this._isLoading=!0},t.prototype.finalizeLoading=function(){this._referenceInfo?this._referenceInfo.finalizeLoading():this._isLoading=!1},t}();e.CacheImageInfo=a;var s=function(){function t(){this.emptyImageId=0,this.lastActualId=0,this.onReadyStateChanged=new r.EventDispatcher,this.cache=[],this.nonLoadedImages=[],this.createUnloadedInfoByBase64(o.ImageInfo.transparentOnePixelImage).isLoaded=!0}return t.prototype.reset=function(){this.cache.splice(1),this.nonLoadedImages=[],this.lastActualId=1},Object.defineProperty(t.prototype,"emptyImage",{get:function(){return this.cache[this.emptyImageId]},enumerable:!0,configurable:!0}),t.prototype.getImageData=function(t){return this.cache[t]},t.prototype.createUnloadedInfoByUrl=function(t){var e=this.findInfoByUrl(t);return e||this.registerImageData(new a(void 0,this.getNextActualId(),t))},t.prototype.createUnloadedInfoByBase64=function(t){var e=this.findInfoByBase64(t);return e||this.registerImageData(new a(t,this.getNextActualId()))},t.prototype.createUnloadedInfoByShapeImageInfo=function(t){var e=t.exportUrl;return i.Base64Utils.checkPrependDataUrl(e)?this.createUnloadedInfoByBase64(e):this.createUnloadedInfoByUrl(e)},t.prototype.registerImageData=function(t){var e=this.cache[t.actualId];return e||(e=t),void 0!==t.actualId&&(this.cache[t.actualId]=e),0!==t.actualId&&(this.nonLoadedImages.push(t),1===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!1)),e},t.prototype.loadAllImages=function(t){var e=this;this.cache.forEach((function(n){e.emptyImageId==n.actualId||n.isLoaded||n.isLoading||t.load(n)}))},t.prototype.finalizeLoading=function(t,e){t.finalizeLoading(),t.isLoaded=!0;var n=this.nonLoadedImages.indexOf(t);if(this.nonLoadedImages.splice(n,1),0===this.nonLoadedImages.length&&this.raiseReadyStateChanged(!0),!t.referenceInfo&&e.base64){var o=i.Base64Utils.normalize(e.base64);this.cache.forEach((function(e){var n=e.base64==o&&e!==t&&e.isLoaded;return n&&(t.referenceInfo=e.referenceInfo?e.referenceInfo:e),n})),t.base64=o}},t.prototype.hasNonLoadedImages=function(){return 0!==this.nonLoadedImages.length},t.prototype.getNextActualId=function(){return this.lastActualId++},t.prototype.findInfoByBase64=function(t){return t=i.Base64Utils.normalize(t),this.findInfoCore((function(e){return e.base64===t}))},t.prototype.findInfoByUrl=function(t){return this.findInfoCore((function(e){return e.imageUrl===t}))},t.prototype.findInfoCore=function(t){var e;return this.cache.forEach((function(n){t(n)&&(e=n)})),e},t.prototype.raiseReadyStateChanged=function(t){this.onReadyStateChanged.raise1((function(e){return e.notifyImageCacheReadyStateChanged(t)}))},t.instance=new t,t}();e.ImageCache=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(4),r=n(19),a=n(0),s=function(){function t(){this.onZoomChanged=new o.EventDispatcher,this.onViewChanged=new o.EventDispatcher,this.onReadOnlyChanged=new o.EventDispatcher,this._zoomLevel=1,this._zoomLevelItems=[.5,.75,1,1.25,1.5,2,3],this._simpleView=!1,this._fullscreen=!1,this._readOnly=!1,this._autoZoom=i.Disabled,this._snapToGrid=!0,this._showGrid=!0,this._gridSize=180,this._gridSizeItems=[90,180,360,720],this._pageSizeItems=[{size:new a.Size(12240,15840),text:"US-Letter ({width} x {height})"},{size:new a.Size(12240,20160),text:"US-Legal ({width} x {height})"},{size:new a.Size(15817,24491),text:"US-Tabloid ({width} x {height})"},{size:new a.Size(47679,67408),text:"A0 ({width} x {height})"},{size:new a.Size(33676,47679),text:"A1 ({width} x {height})"},{size:new a.Size(23811,33676),text:"A2 ({width} x {height})"},{size:new a.Size(16838,23811),text:"A3 ({width} x {height})"},{size:new a.Size(11906,16838),text:"A4 ({width} x {height})"},{size:new a.Size(8391,11906),text:"A5 ({width} x {height})"},{size:new a.Size(5953,8391),text:"A6 ({width} x {height})"},{size:new a.Size(4195,5953),text:"A7 ({width} x {height})"}],this._viewUnits=r.DiagramUnit.In}return Object.defineProperty(t.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(e){var n=this;(e=t.correctZoomLevel(e))!==this._zoomLevel&&(this._zoomLevel=e,this.onZoomChanged.raise1((function(t){return t.notifyZoomChanged(e,n._autoZoom)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"zoomLevelItems",{get:function(){return this._zoomLevelItems},set:function(e){(e=e.map((function(e){return t.correctZoomLevel(e)})))!==this._zoomLevelItems&&(this._zoomLevelItems=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoZoom",{get:function(){return this._autoZoom},set:function(t){var e=this;t!==this._autoZoom&&(this._autoZoom=t,this.onZoomChanged.raise1((function(n){return n.notifyZoomChanged(e._zoomLevel,t)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"simpleView",{get:function(){return this._simpleView},set:function(t){t!==this._simpleView&&(this._simpleView=t,this.onViewChanged.raise1((function(e){return e.notifyViewChanged(t)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"readOnly",{get:function(){return this._readOnly},set:function(t){t!==this._readOnly&&(this._readOnly=t,this.onReadOnlyChanged.raise1((function(e){return e.notifyReadOnlyChanged(t)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fullscreen",{get:function(){return this._fullscreen},set:function(t){this._fullscreen=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"snapToGrid",{get:function(){return this._snapToGrid},set:function(t){this._snapToGrid=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showGrid",{get:function(){return this._showGrid},set:function(t){var e=this;t!==this._showGrid&&(this._showGrid=t,this.onViewChanged.raise1((function(t){return t.notifyGridChanged(e.showGrid,e.gridSize)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSize",{get:function(){return this._gridSize},set:function(t){var e=this;t!==this._gridSize&&(this._gridSize=t,this.onViewChanged.raise1((function(t){return t.notifyGridChanged(e.showGrid,e.gridSize)})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"gridSizeItems",{get:function(){return this._gridSizeItems},set:function(t){t!==this._gridSizeItems&&(this._gridSizeItems=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pageSizeItems",{get:function(){return this._pageSizeItems},set:function(t){t!==this._pageSizeItems&&(this._pageSizeItems=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"viewUnits",{get:function(){return this._viewUnits},set:function(t){this._viewUnits=t},enumerable:!0,configurable:!0}),t.correctZoomLevel=function(t){return Math.min(10,Math.max(t,.01))},t}();e.DiagramSettings=s,function(t){t[t.Disabled=0]="Disabled",t[t.FitContent=1]="FitContent",t[t.FitToWidth=2]="FitToWidth"}(i=e.AutoZoomMode||(e.AutoZoomMode={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(6),a=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.connectorKey=e.key,r.itemKey=n.key,r.connectionPointIndex=i,r.position=o,r}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey),n=t.model.findItem(this.itemKey);t.addConnection(e,n,this.connectionPointIndex,this.position)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.deleteConnection(e,this.position)},e}(o.HistoryItem);e.AddConnectionHistoryItem=a;var s=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e.key,o.connectionPointIndex=n,o.position=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===r.ConnectorPosition.Begin?e.beginConnectionPointIndex:e.endConnectionPointIndex,t.setConnectionPointIndex(e,this.connectionPointIndex,this.position)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.setConnectionPointIndex(e,this.oldConnectionPointIndex,this.position)},e}(o.HistoryItem);e.SetConnectionPointIndexHistoryItem=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(140),o=function(){function t(){}return t.constructFromArgbNumber=function(t,e,n,i){return t<<24|e<<16|n<<8|i},t.getPredefinedColor=function(e){return t.hashToColor(e,0)},t.isGray=function(e){var n=t.getRed(e);return n==t.getGreen(e)&&n==t.getBlue(e)},t.getAlpha=function(t){return t>>24&255},t.getRed=function(t){return t>>16&255},t.getGreen=function(t){return t>>8&255},t.getBlue=function(t){return 255&t},t.redPartToString=function(e){var n=t.getRed(e).toString(16);return n.length>1?n:"0"+n},t.greenPartToString=function(e){var n=t.getGreen(e).toString(16);return n.length>1?n:"0"+n},t.bluePartToString=function(e){var n=t.getBlue(e).toString(16);return n.length>1?n:"0"+n},t.colorToHash=function(e){return"#"+t.redPartToString(e)+t.greenPartToString(e)+t.bluePartToString(e)},t.hashToColor=function(t,e){return void 0===e&&(e=255),3===(t="#"==t.charAt(0)?t.substr(1):t).length&&(t=i.StringUtils.repeat(t.charAt(0),2)+i.StringUtils.repeat(t.charAt(1),2)+i.StringUtils.repeat(t.charAt(2),2)),parseInt(t,16)|e<<24},t.getActualForeColor=function(e,n){return e==t.AUTOMATIC_COLOR&&(e=n==t.AUTOMATIC_COLOR||n==t.NO_COLOR||t.calculateLumaY(n)>=t.DEFAULT_BOUNDARY_LUMA?t.DARK_COLOR:t.LIGHT_COLOR),t.getCssString(e,!0)},t.getCssString=function(e,n){return e==t.AUTOMATIC_COLOR?t.colorToHash(n?t.DARK_COLOR:t.LIGHT_COLOR):t.getCssStringInternal(e)},t.stringToHash=function(t){return this.colorToHash(this.stringToColor(t))},t.stringToColor=function(e){var n=this.getRGBAByString(e),i="";return n?(255&n[0])<<16|(255&n[1])<<8|255&n[2]|(255&(n.length>3?n[3]:255))<<24:(/^#([0-9a-f]{6})$/i.test(e)||/^#([0-9a-f]{3})$/i.test(e)?i=e:/^[a-z]+$/i.test(e)&&(i=t.colorNames[e.toLowerCase()]),i?t.hashToColor(i):null)},t.getRGBAByString=function(t){var e=t.replace(/ +/g,"").match(/(rgba?)|(\d+(\.\d+)?%?)|(\.\d+)/g);if(e&&e.length>3){for(var n,i=0,o=[];i<e.length-1;){if((n=-1!=(n=e[++i]).indexOf("%")?Math.round(2.55*parseFloat(n)):parseInt(n))<0||n>255)return null;o.push(n)}if(0===t.indexOf("rgba")){if(isNaN(o[3])||o[3]<0||o[3]>1)return null;o[3]<=1&&(o[3]=Math.round(255*o[3]))}else if(o[3])return null;return o}return null},t.IsDarkColor=function(e){return t.calculateLumaY(e)<t.DEFAULT_BOUNDARY_LUMA},t.getCssStringInternal=function(e){var n=t.getAlpha(e);switch(n){case 0:return"transparent";case 255:return t.colorToHash(e);default:return"rgba("+t.getRed(e)+","+t.getGreen(e)+","+t.getBlue(e)+","+n/255+")"}},t.isEmptyBgColor=function(t){return t===this.AUTOMATIC_COLOR||t===this.NO_COLOR},t.calculateLumaY=function(e){return t.DEFAULT_BOUNDARY_LUMA_RED*t.getRed(e)+t.DEFAULT_BOUNDARY_LUMA_GREEN*t.getGreen(e)+t.DEFAULT_BOUNDARY_LUMA_BLUE*t.getBlue(e)},t.colorNames={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#00ff00",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",windowtext:"#000000"},t.DEFAULT_BOUNDARY_LUMA=3982098.432,t.DEFAULT_BOUNDARY_LUMA_RED=19595.264,t.DEFAULT_BOUNDARY_LUMA_BLUE=7471.104,t.DEFAULT_BOUNDARY_LUMA_GREEN=38469.632,t.DARK_COLOR=-16777216,t.LIGHT_COLOR=-1,t.BLACK_COLOR=-16777216,t.AUTOMATIC_COLOR=0,t.NO_COLOR=16777215,t}();e.ColorHelper=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),o=n(6),r=function(){function t(t){this.parent=t}return Object.defineProperty(t.prototype,"connector",{get:function(){return this.parent.connector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"beginRect",{get:function(){return this.parent.beginRect},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endRect",{get:function(){return this.parent.endRect},enumerable:!0,configurable:!0}),t.prototype.getBeginOffsetPoints=function(t,e,n,o){if(e=this.getCorrectOriginPoint(e,o),t!==i.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(t,e,n,o);if(this.isBeginEndOverlappedPoints(e,n))return this.getOverlappedPointsOffsetPoints(t,e,n,o);if(this.isBeginEndOverlapped())return this.getBeginOverlappedShapeOffsetPoints(t,e,n,o)}else if(this.isOriginRectContainsTargetPoint(o,n))return this.getOverlappedPointsOffsetPoints(t,e,n,o);return this.isOnSidePoint(e,n)?this.getBeginOnSideOffsetPoints(t,e,n,o):this.getBeginOffSideOffsetPoints(t,e,n,o)},t.prototype.getEndOffsetPoints=function(t,e,n,o){if(e=this.getCorrectOriginPoint(e,o),t!==i.ConnectionPointSide.Undefined){if(this.isBeginEndSame())return this.getSameShapeOffsetPoints(t,e,n,o);if(this.isBeginEndOverlappedPoints(n,e))return this.getOverlappedPointsOffsetPoints(t,e,n,o);if(this.isBeginEndOverlapped())return this.getEndOverlappedShapeOffsetPoints(t,e,n,o)}else if(this.isOriginRectContainsTargetPoint(o,n))return this.getOverlappedPointsOffsetPoints(t,e,n,o);return this.isOnSidePoint(e,n)?this.getEndOnSideOffsetPoints(t,e,n,o):this.getEndOffSideOffsetPoints(t,e,n,o)},t.prototype.getSide=function(t,e){return Math.abs(e.x-t.x)>Math.abs(e.y-t.y)?e.x>t.x?i.ConnectionPointSide.East:i.ConnectionPointSide.West:e.y>t.y?i.ConnectionPointSide.South:i.ConnectionPointSide.North},t.prototype.getSideCalculator=function(t,e){return this.parent.getSideCalculator(this.getSide(t,e))},t.prototype.getMinOffset=function(){return o.Connector.minOffset},t.prototype.isBeginEndSame=function(){return this.connector.beginItem===this.connector.endItem},t.prototype.isBeginEndOverlapped=function(){return this.beginRect&&this.endRect&&this.beginRect.intersect(this.endRect)},t.prototype.isBeginEndOverlappedX=function(){return this.beginRect&&this.endRect&&this.beginRect.intersectX(this.endRect)},t.prototype.isBeginEndOverlappedY=function(){return this.beginRect&&this.endRect&&this.beginRect.intersectY(this.endRect)},t.prototype.isBeginEndOverlappedPoints=function(t,e){return this.beginRect&&this.endRect&&(this.beginRect.contains(e)||this.endRect.contains(t))},t.prototype.isOriginRectContainsTargetPoint=function(t,e){return t&&t.contains(e)},t}();e.ConnectorPointsOrthogonalSideCalculatorBase=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=function(){function t(){}return t.ArrayInsert=function(t,e,n){if(0<=n&&n<t.length){for(var i=t.length;i>n;i--)t[i]=t[i-1];t[n]=e}else t.push(e)},t.ArrayRemove=function(e,n){var i=t.ArrayIndexOf(e,n);i>-1&&t.ArrayRemoveAt(e,i)},t.ArrayRemoveAt=function(t,e){if(e>=0&&e<t.length){for(var n=e;n<t.length-1;n++)t[n]=t[n+1];t.pop()}},t.ArrayClear=function(t){for(;t.length>0;)t.pop()},t.ArrayIndexOf=function(t,e,n){if(n){for(i=0;i<t.length;i++)if(n(t[i],e))return i}else for(var i=0;i<t.length;i++)if(t[i]==e)return i;return-1},t.ArrayContains=function(e,n){return t.ArrayIndexOf(e,n)>=0},t.ArrayEqual=function(t,e){var n=t.length;if(n!=e.length)return!1;for(var i=0;i<n;i++)if(t[i]!=e[i])return!1;return!0},t.ArraySame=function(e,n){return e.length===n.length&&e.every((function(e){return t.ArrayContains(n,e)}))},t.ArrayGetIntegerEdgeValues=function(e){var n=t.CollectionToArray(e);return t.ArrayIntegerAscendingSort(n),{start:n[0],end:n[n.length-1]}},t.ArrayIntegerAscendingSort=function(e){t.ArrayIntegerSort(e,!1)},t.ArrayIntegerSort=function(t,e){t.sort((function(t,n){var i=0;return t>n?i=1:t<n&&(i=-1),e&&(i*=-1),i}))},t.CollectionsUnionToArray=function(t,e){for(var n=[],i=t.length,o=e.length,r=0;r<i+o;r++)r<i?n.push(t[r]):n.push(e[r-i]);return n},t.CollectionToArray=function(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n]);return e},t.CreateHashTableFromArray=function(t){for(var e=[],n=0;n<t.length;n++)e[t[n]]=1;return e},t.CreateIndexHashTableFromArray=function(t){for(var e=[],n=0;n<t.length;n++)e[t[n]]=n;return e},t.ArrayToHash=function(t,e,n){return t instanceof Array?t.reduce((function(t,i,o){var r=e(i,o),a=n(i,o);return t[r]=a,t}),{}):{}},t.Sum=function(t,e){return t instanceof Array?t.reduce((function(t,n){var o=e?e(n):n;return i.IsNumber(o)||(o=0),t+o}),0):0},t.Min=function(e,n){return t.CalculateArrayMinMax(e,n,!1)},t.Max=function(e,n){return t.CalculateArrayMinMax(e,n,!0)},t.NearestLeftBinarySearchComparer=function(t,e,n){var i=t[e],o=i<n;return o&&e==t.length-1||o&&t[e+1]>=n?0:i<n?-1:1},t.ArrayBinarySearch=function(e,n,o,r,a){o||(o=t.defaultBinarySearchComparer),i.IsExists(r)||(r=0),i.IsExists(a)||(a=e.length-r);for(var s=r+a-1;r<=s;){var l=r+(s-r>>1),u=o(e,l,n);if(0==u)return l;u<0?r=l+1:s=l-1}return-(r+1)},t.ArrayFlatten=function(t){return[].concat.apply([],t)},t.GetDistinctArray=function(e){for(var n=[],i=0;i<e.length;i++){var o=e[i];-1==t.ArrayIndexOf(n,o)&&n.push(o)}return n},t.ForEach=function(t,e){if(Array.prototype.forEach)Array.prototype.forEach.call(t,e);else for(var n=0,i=t.length;n<i;n++)e(t[n],n,t)},t.MergeHashTables=function(t,e){if(!e||"string"==typeof e)return t;for(var n in t||(t={}),e)n&&!(n in t)&&(t[n]=e[n]);return t},t.Range=function(t,e){return(t=parseInt(t)||0)<0&&(t=0),(e=parseInt(e)||0)<0&&(e=0),Array.apply(null,Array(t)).map((function(t,n){return e+n}))},t.CalculateArrayMinMax=function(t,e,n){if(!(t instanceof Array))return 0;var o=n?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY;return t.reduce((function(t,r){var a=e?e(r):r;return i.IsNumber(a)||(a=o),(n?Math.max:Math.min)(a,t)}),o)},t.defaultBinarySearchComparer=function(t,e,n){var i=t[e];return i==n?0:i<n?-1:1},t.cssTextToObject=function(t){return t?(t=t.replace(/\/\*(.|\s)*?\*\//g,"").replace(/\s+/g," ")).split(";").reduce((function(t,e){if(e){var n=/\s*([^:]+?)\s*:\s*([^;]*)\s*$/.exec(e);if(n){var i=n[1],o=n[2];i&&o&&(t[i.trim()]=o.trim())}return t}return t}),{}):{}},t.objectToCssText=function(t){return t?Object.keys(t).reduce((function(e,n){var i=n.trim(),o=t[n];return i&&o&&e.push(i+": "+o.toString().trim()),e}),[]).join("; "):""},t}();e.Data=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(65),r=n(18),a=function(){function t(){}return t.GetEvent=function(t){return"undefined"!=typeof event&&null!=event&&i.Browser.IE?event:t},t.AttachEventToElement=function(t,e,n,i){void 0===i&&(i=!1),t.addEventListener?t.addEventListener(e,n,!i):t.attachEvent("on"+e,n)},t.AttachEventToDocument=function(e,n){o.TouchUIHelper.onEventAttachingToDocument(e,n)&&t.AttachEventToElement(document,e,n)},t.PreventEvent=function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},t.GetKeyCode=function(t){return i.Browser.NetscapeFamily||i.Browser.Opera?t.which:t.keyCode},t.GetEventSource=function(e,n){return r.IsExists(e)?n&&document.elementFromPoint&&void 0!==t.GetEventX(e)&&void 0!==t.GetEventY(e)?document.elementFromPoint(t.GetEventX(e),t.GetEventY(e)):e.srcElement?e.srcElement:e.target:null},t.GetMouseWheelEventName=function(){return i.Browser.Safari?"mousewheel":i.Browser.NetscapeFamily&&i.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},t.IsLeftButtonPressed=function(e){return!!o.TouchUIHelper.isTouchEvent(e)||!!(e=t.GetEvent(e))&&(i.Browser.IE&&i.Browser.Version<11?!!i.Browser.MSTouchUI||e.button%2==1:i.Browser.WebKitFamily?"pointermove"===e.type?1===e.buttons:1==e.which:i.Browser.NetscapeFamily||i.Browser.Edge||i.Browser.IE&&i.Browser.Version>=11?e.type===o.TouchUIHelper.touchMouseMoveEventName?1===e.buttons:1==e.which:!i.Browser.Opera||0==e.button)},t.PreventEventAndBubble=function(e){return t.PreventEvent(e),e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0,!1},t.clientEventRequiresDocScrollCorrection=function(){var t=i.Browser.Safari&&i.Browser.Version<3,e=i.Browser.MacOSMobilePlatform&&i.Browser.Version<5.1;return i.Browser.AndroidDefaultBrowser||i.Browser.AndroidChromeBrowser||!(t||e)},t.GetEventX=function(e){return o.TouchUIHelper.isTouchEvent(e)?o.TouchUIHelper.getEventX(e):e.clientX+(t.clientEventRequiresDocScrollCorrection()?r.GetDocumentScrollLeft():0)},t.GetEventY=function(e){return o.TouchUIHelper.isTouchEvent(e)?o.TouchUIHelper.getEventY(e):e.clientY+(t.clientEventRequiresDocScrollCorrection()?r.GetDocumentScrollTop():0)},t.CancelBubble=function(t){return t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0,!1},t}();e.Evt=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(89),o=function(){function t(t){this.url=void 0,this.base64=void 0,t&&(i.Base64Utils.checkPrependDataUrl(t)?this.base64=t:this.url=t),this.loadFailed=!1}return t.prototype.clone=function(){var e=new t;return e.url=this.url,e.base64=this.base64,e},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return void 0===this.url&&void 0===this.base64},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"unableToLoad",{get:function(){return this.loadFailed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderUrl",{get:function(){return this.base64||""},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exportUrl",{get:function(){return this.base64?this.base64:this.url},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"actualUrl",{get:function(){return this.url?this.url:this.base64},enumerable:!0,configurable:!0}),Object.defineProperty(t,"transparentOnePixelImage",{get:function(){return this.transparentWhiteImage1_1},enumerable:!0,configurable:!0}),t.prototype.loadBase64Content=function(t){this.base64=i.Base64Utils.normalize(t)},t.prototype.setUnableToLoadFlag=function(){this.loadFailed=!0},t.transparentWhiteImage1_1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAANSURBVBhXY/j///9/AAn7A/0FQ0XKAAAAAElFTkSuQmCC",t}();e.ImageInfo=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(11),a=function(t){function e(e,n,i,o){var r=t.call(this)||this;return r.shapeDescription=e,r.position=n,r.text=i,r.dataKey=o,r}return i(e,t),e.prototype.redo=function(t){var e=new r.Shape(this.shapeDescription,this.position);"string"===typeof this.text&&(e.text=this.text),void 0!==this.dataKey&&(e.dataKey=this.dataKey),t.addShape(e,this.shapeKey),this.shapeKey=e.key},e.prototype.undo=function(t){t.deleteShape(t.model.findShape(this.shapeKey))},e}(o.HistoryItem);e.AddShapeHistoryItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this,r,a,void 0,s)||this;return l.cx=e,l.cy=n,l.rx=i,l.ry=o,l}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"ellipse")},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"cx",this.cx),this.setUnitAttribute(e,"cy",this.cy),this.setUnitAttribute(e,"rx",this.rx),this.setUnitAttribute(e,"ry",this.ry),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.EllipsePrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e}(n(8).SimpleCommandBase);e.ExportImportCommandBase=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(14),a=n(12),s=n(21),l=n(15);!function(t){t[t.Angle0deg=0]="Angle0deg",t[t.Angle90deg=90]="Angle90deg",t[t.Angle180deg=180]="Angle180deg",t[t.Angle270deg=270]="Angle270deg"}(o=e.TextAngle||(e.TextAngle={}));var u=function(t){function e(e,n,i,o,r,a,s,l,u,c,d,h,f){var p=t.call(this,l,"",c,f)||this;return p.x=e,p.y=n,p.text=i,p.owner=o,p.textWidth=r,p.textHeight=a,p.textSpacing=s,p.reverseTextAhchor=u,p.angle=h,p.filterId=d,p.textSegmens=p.text.split("\n").filter((function(t){return t})),p.renderHelper=p.createRenderHelper(),void 0!==p.textWidth&&void 0!==p.textWidth&&(p.x=p.renderHelper.getTextX(p.x),p.y=p.renderHelper.getTextY(p.y)),p}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(a.svgNS,"text")},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.filterId&&e.setAttribute("filter",l.RenderUtils.getUrlPathById(this.filterId)),t.prototype.applyElementProperties.call(this,e,n),e.getAttribute("appliedText")!==this.text||e.getAttribute("appliedSize")!==(this.fitToSize&&this.fitToSize.toString())?(this.createTSpanElements(e,n),e.setAttribute("appliedText",this.text),e.setAttribute("appliedSize",this.fitToSize&&this.fitToSize.toString())):this.prepareTSpanElements(e),this.renderHelper.prepareMainElement(e,this.x,this.y)},e.prototype.createTSpanElements=function(t,e){var n=this;l.RenderUtils.removeContent(t),this.textSegmens.forEach((function(i,o){n.fitToSize?n.lineWrap(i,e,n.fitToSize).forEach((function(e){n.createTSpanElement(t).textContent=e})):n.createTSpanElement(t).textContent=i}));var i=t.firstChild;i&&this.prepareFirstTSpanElement(i,t.childNodes.length)},e.prototype.lineWrap=function(t,e,n){var i=a.RenderHelper.textToWords(t);if(1===i.length)return i;n=r.UnitConverter.twipsToPixels(n);for(var o=e.measureWords(i,this.style,this.owner),s=o[" "].width,l=[],u=0,c=-1,d=0;d<i.length;d++){var h=i[d],f=o[h].width;-1===c||u+s+f>n?(c=l.push(h)-1,u=f):(u+=s+f,l[c]+=" "+h)}return l},e.prototype.createTSpanElement=function(t){var e=document.createElementNS(a.svgNS,"tspan");return t.appendChild(e),this.prepareTSpanElement(e),e},e.prototype.prepareTSpanElements=function(t){for(var e=0;e<t.childNodes.length;e++){var n=t.childNodes[e];this.prepareTSpanElement(n)}var i=t.firstChild;i&&this.prepareFirstTSpanElement(i,t.childNodes.length)},e.prototype.prepareTSpanElement=function(t){this.renderHelper.prepareTSpanElement(t,this.x,this.y)},e.prototype.prepareFirstTSpanElement=function(t,e){this.renderHelper.prepareFirstTSpanElement(t,e)},e.prototype.applyElementStyleProperties=function(t){this.applyElementStylePropertiesCore(t,this.reverseTextAhchor)},Object.defineProperty(e.prototype,"fitToSize",{get:function(){return this.renderHelper.fitToSize},enumerable:!0,configurable:!0}),e.prototype.createRenderHelper=function(){switch(this.angle){case o.Angle90deg:return new d(this);case o.Angle180deg:return new h(this);case o.Angle270deg:return new f(this);default:return new c(this)}},e.baselineCorrection=.35,e}(s.SvgPrimitive);e.TextPrimitive=u;var c=function(){function t(t){this.primitive=t}return Object.defineProperty(t.prototype,"textWidth",{get:function(){return this.primitive.textWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textHeight",{get:function(){return this.primitive.textHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fitToSize",{get:function(){return this.textWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textAnchor",{get:function(){return this.primitive.style["text-anchor"]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textSpacing",{get:function(){return this.primitive.textSpacing},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"angle",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"needRotation",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.prepareMainElement=function(t,e,n){this.needRotation&&t.setAttribute("transform","rotate("+this.angle+", "+r.UnitConverter.twipsToPixels(e)+", "+r.UnitConverter.twipsToPixels(n)+")")},t.prototype.prepareTSpanElement=function(t,e,n){this.primitive.setUnitAttribute(t,"x",e),t.setAttribute("dy","1.05em")},t.prototype.prepareFirstTSpanElement=function(t,e){var n=-(e-1)/2+u.baselineCorrection;t.setAttribute("dy",n.toFixed(2)+"em")},t.prototype.getTextX=function(t){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?t+this.textWidth-this.textSpacing:"start"===this.textAnchor?t+this.textSpacing:t:t+this.textWidth/2},t.prototype.getTextY=function(t){return t+this.textHeight/2},t.prototype.setUnitAttribute=function(t,e,n){this.primitive.setUnitAttribute(t,e,n)},t}();e.TextPrimitiveRenderHelper=c;var d=function(t){function e(e){return t.call(this,e)||this}return i(e,t),Object.defineProperty(e.prototype,"fitToSize",{get:function(){return this.textHeight},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angle",{get:function(){return 90},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needRotation",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.getTextX=function(t){return t+this.textWidth/2},e.prototype.getTextY=function(t){return this.textAnchor&&"middle"!==this.textAnchor?"end"===this.textAnchor?t+this.textHeight-this.textSpacing:"start"===this.textAnchor?t+this.textSpacing:t:t+this.textHeight/2},e}(c);e.TextPrimitive90degRenderHelper=d;var h=function(t){function e(e){return t.call(this,e)||this}return i(e,t),Object.defineProperty(e.prototype,"angle",{get:function(){return 180},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"needRotation",{get:function(){return!0},enumerable:!0,configurable:!0}),e.prototype.getTextX=function(t){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?t+this.textWidth-this.textSpacing:"end"===this.textAnchor?t+this.textSpacing:t:t+this.textWidth/2},e}(c);e.TextPrimitive180degRenderHelper=h;var f=function(t){function e(e){return t.call(this,e)||this}return i(e,t),Object.defineProperty(e.prototype,"angle",{get:function(){return 270},enumerable:!0,configurable:!0}),e.prototype.getTextY=function(t){return this.textAnchor&&"middle"!==this.textAnchor?"start"===this.textAnchor?t+this.textHeight-this.textSpacing:"end"===this.textAnchor?t+this.textSpacing:t:t+this.textHeight/2},e}(d);e.TextPrimitive270degRenderHelper=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Shape=0]="Shape",t[t.Connector=1]="Connector",t[t.ExtensionLine=2]="ExtensionLine",t[t.Resize=3]="Resize"}(e.TextOwner||(e.TextOwner={}))},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e,o.pointIndex=n,o.point=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.oldPoint=e.points[this.pointIndex].clone(),t.moveConnectorPoint(e,this.pointIndex,this.point)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.moveConnectorPoint(e,this.pointIndex,this.oldPoint)},e}(n(3).HistoryItem);e.MoveConnectorPointHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.selectedKeys=n,o.selection=e,o.forceChange=i,o}return i(e,t),e.prototype.redo=function(){this.oldSelection=this.selection.getKeys().slice(0),this.selection.set(this.selectedKeys,this.forceChange)},e.prototype.undo=function(){this.selection.set(this.oldSelection,this.forceChange)},e}(n(3).HistoryItem);e.SetSelectionHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(6),a=function(t){function e(e,n){var i=t.call(this)||this;return i.points=e,i.dataKey=n,i}return i(e,t),e.prototype.redo=function(t){var e=new r.Connector(this.points);void 0!==this.dataKey&&(e.dataKey=this.dataKey),t.addConnector(e,this.connectorKey),this.connectorKey=e.key},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.deleteConnector(e)},e}(o.HistoryItem);e.AddConnectorHistoryItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(29),r=n(11),a=n(0),s=n(67),l=function(){function t(t,e){this.nodeMap={},this.edgeMap={},this.nodes=[],this.edges=[],this.onInit(),t.forEach(this.addNode.bind(this)),e.forEach(this.addEdge.bind(this))}return Object.defineProperty(t.prototype,"items",{get:function(){return this.nodes.map(this.getNode.bind(this))},enumerable:!0,configurable:!0}),t.prototype.onInit=function(){},t.prototype.addEdge=function(t){this.edgeMap[t.key]=t,this.edges.push(t)},t.prototype.addNode=function(t){this.nodeMap[t.key]=t,this.nodes.push(t.key)},t.prototype.getNode=function(t){return this.nodeMap[t]},t.prototype.getEdge=function(t){return this.edgeMap[t]},t.prototype.isEmpty=function(){return!this.nodes.length&&!this.edges.length},t.prototype.getAdjacentEdges=function(t,e){return void 0===e&&(e=o.ConnectionMode.OutgoingAndIncoming),this.edges.filter((function(n){return e&o.ConnectionMode.Incoming&&n.to===t||e&o.ConnectionMode.Outgoing&&n.from===t}))},t}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.cast=function(t,n){var i=this;return new e(this.nodes.map((function(e){return t(i.getNode(e))})),this.edges.map((function(t){return n?n(t):t})))},e.prototype.getConnectedComponents=function(){var t=this.createIterator(o.ConnectionMode.OutgoingAndIncoming);t.visitEachEdgeOnce=!0;for(var n=[],i=function(i){var o=[],a=[];t.onNode=function(t){return o.push(t)},t.onEdge=function(t){return a.push(t)},t.iterate(r.nodes[i]),o.length&&n.push(new e(o,a))},r=this,a=0;a<this.nodes.length;a++)i(a);return n},e.prototype.createIterator=function(t){var e=new d(this,t);return e.comparer=function(t,e){return t.weight-e.weight},e},e.prototype.getSpanningGraph=function(t,n,i){var o=this;if(void 0===i&&(i=void 0),!this.nodes.length)return new e([],[]);i||(i=function(t){return t.weight});var r=[],a=new s.HashSet,l=new s.HashSet([],(function(t){return t.getHashKey()}));for(this.addNodeToSpanningGraph(t,n,r,a,l,i);r.length&&a.length!==this.nodes.length;){var u=r.shift();l.tryPush(u);var c=a.contains(u.from)?u.to:u.from;this.addNodeToSpanningGraph(c,n,r,a,l,i),r=r.filter((function(t){return!a.contains(t.from)||!a.contains(t.to)}))}return new e(a.list().map((function(t){return o.getNode(t)})),l.list())},e.prototype.addNodeToSpanningGraph=function(t,e,n,i,r,s){i.tryPush(t),this.getAdjacentEdges(t,e).filter((function(t){return!r.contains(t)})).forEach((function(t){var e=s(t),i=a.Utils.binaryIndexOf(n,(function(t){return t.weight-e}));for(i=i<0?~i:i;i<n.length&&s(n[i])===e;)i++;n.splice(i,0,new o.Edge(t.key,t.from,t.to,e))}))},e.create=function(t,n){return new e(t,n.filter((function(t){return t.beginItem&&t.endItem instanceof r.Shape&&t.endItem&&t.endItem instanceof r.Shape&&t.beginItem!==t.endItem})).map((function(t){return new o.Edge(t.key,t.beginItem&&t.beginItem.key,t.endItem&&t.endItem.key)})))},e}(l);e.Graph=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onInit=function(){this.parentToChildren={},this.childToParents={}},e.prototype.addEdge=function(e){t.prototype.addEdge.call(this,e),(this.parentToChildren[e.from]||(this.parentToChildren[e.from]=[])).push(e.to),(this.childToParents[e.to]||(this.childToParents[e.to]=[])).push(e.from)},e.prototype.getChildren=function(t){return this.parentToChildren[t]||[]},e.prototype.getParents=function(t){return this.childToParents[t]||[]},e.prototype.createIterator=function(t){return new d(this,t)},e}(l);e.FastGraph=c;var d=function(){function t(t,e){void 0===e&&(e=o.ConnectionMode.OutgoingAndIncoming),this.graph=t,this.connectionMode=e,this.visitEachEdgeOnce=!0,this.visitEachNodeOnce=!0,this.visitedNodes={},this.visitedEdges={}}return t.prototype.iterate=function(t){if(!this.visitEachNodeOnce&&!this.visitEachEdgeOnce&&!this.skipNode)throw"skipNode or visitEachNodeOnce or visitEachEdgeOnce must be set to avoid SOF";this.iterateCore(t)},t.prototype.iterateCore=function(t){var e=this,n=this.graph.getNode(t);if(!(!n||this.skipNode&&this.skipNode(n)||this.visitEachNodeOnce&&this.isNodeVisited(t))){this.visitedNodes[t]=!0,this.onNode&&this.onNode(n);var i=this.graph.getAdjacentEdges(t,this.connectionMode);if(this.skipEdge&&(i=i.filter((function(t){return!e.skipEdge(t)}))),this.connectionMode&o.ConnectionMode.Outgoing){var r=i.filter((function(e){return e.from===t}));this.comparer&&r.sort(this.comparer),r.forEach((function(t){e.visitEachEdgeOnce&&e.visitedEdges[t.key]||(e.visitedEdges[t.key]=!0,e.onEdge&&e.onEdge(t,!0),e.iterateCore(t.to),e.onAfterEdge&&e.onAfterEdge(t,!0))}))}if(this.onAllEdges&&this.onAllEdges(n,!0),this.connectionMode&o.ConnectionMode.Incoming){var a=i.filter((function(e){return e.to===t}));this.comparer&&a.sort(this.comparer),a.forEach((function(t){e.visitEachEdgeOnce&&e.visitedEdges[t.key]||(e.visitedEdges[t.key]=!0,e.onEdge&&e.onEdge(t,!1),e.iterateCore(t.from),e.onAfterEdge&&e.onAfterEdge(t,!1))}))}this.onAllEdges&&this.onAllEdges(n,!1)}},t.prototype.isNodeVisited=function(t){return!!this.visitedNodes[t]},t.prototype.isEdgeVisited=function(t){return!!this.visitedEdges[t]},t}();e.GraphIterator=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.oldStyleValue=e.styleText[this.styleProperty],t.changeStyleText(e,this.styleProperty,this.styleValue)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.changeStyleText(e,this.styleProperty,this.oldStyleValue)},e}(n(93).ChangeStyleHistoryItemBase);e.ChangeStyleTextHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e.key,o.text=i,o.position=n,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.oldText=e.getText(this.position),t.changeConnectorText(e,this.text,this.position)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.changeConnectorText(e,this.oldText,this.position)},e}(n(3).HistoryItem);e.ChangeConnectorTextHistoryItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t,e,n,i){void 0===i&&(i=[]),this.key=t,this.margin=e,this.size=n,this.connectionPoints=i};e.NodeInfo=o;var r=function(){function t(t,e){this.info=t,this.position=e}return Object.defineProperty(t.prototype,"key",{get:function(){return this.info.key},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rectangle",{get:function(){return new i.Rectangle(this.position,this.info.size)},enumerable:!0,configurable:!0}),t}();e.NodeLayout=r;var a=function(t,e,n){this.key=t,this.beginIndex=e,this.endIndex=n};e.EdgeLayout=a;var s=function(){function t(t,e,n,i){void 0===e&&(e=t),void 0===n&&(n=t),void 0===i&&(i=t),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.empty=function(){return new t(0)},t}();e.Margin=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(43),s=n(1),l=function(t){function e(e){return t.call(this,new r.Size(o.ShapeDefaultDimension,.75*o.ShapeDefaultDimension),e)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return s.ShapeTypes.Ellipse},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.width,i=e.height,o=e.center,r=o.x,s=o.y;return[new a.EllipsePrimitive(r,s,n/2,i/2,t.style)]},e}(o.ShapeDescription);e.EllipseShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n){var i=t.call(this)||this;return i.id=e,i.children=n,i}return i(e,t),e.prototype.createMainElement=function(){var t=document.createElementNS(o.svgNS,"clipPath");return t.setAttribute("id",this.id),t},e.prototype.applyElementProperties=function(e,n){this.id&&e.setAttribute("id",this.id),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.ClipPathPrimitive=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(11),o=n(6),r=function(){function t(){}return t.prototype.export=function(t){var e={page:{},connectors:[],shapes:[]};return e.page={width:t.size.width,height:t.size.height,pageColor:t.pageColor,pageWidth:t.pageSize.width,pageHeight:t.pageSize.height,pageLandscape:t.pageLandscape,units:t.units},this.exportItemsCore(t.items,e),JSON.stringify(e)},t.prototype.exportItems=function(t){var e={connectors:[],shapes:[]};return this.exportItemsCore(t,e),JSON.stringify(e)},t.prototype.exportItemsCore=function(t,e){var n=this;t.forEach((function(t){if(t instanceof i.Shape)e.shapes.push(n.exportShape(t));else if(t instanceof o.Connector){var r=n.exportConnector(t);t.beginItem&&(r.beginItemKey=t.beginItem.key,r.beginConnectionPointIndex=t.beginConnectionPointIndex),t.endItem&&(r.endItemKey=t.endItem.key,r.endConnectionPointIndex=t.endConnectionPointIndex),e.connectors.push(r)}}))},t.prototype.exportItem=function(t){return{key:t.key,dataKey:t.dataKey,locked:t.locked,zIndex:t.zIndex}},t.prototype.exportShape=function(t){var e=this.exportItem(t);e.type=t.description.key,e.text=t.text,t.image.isEmpty||(e.imageUrl=t.image.exportUrl),e.x=t.position.x,e.y=t.position.y,e.width=t.size.width,e.height=t.size.height;var n=t.parameters.toObject();n&&(e.parameters=n);var i=t.style.toObject();i&&(e.style=i);var o=t.styleText.toObject();return o&&(e.styleText=o),t.children.length&&(e.childKeys=t.children.map((function(t){return t.key}))),t.expanded||(e.expanded=!1),t.expandedSize&&(e.expandedWidth=t.expandedSize.width,e.expandedHeight=t.expandedSize.height),e},t.prototype.exportConnector=function(t){var e=this.exportItem(t);e.points=t.points.map((function(t){return{x:t.x,y:t.y}}));var n=t.texts.toObject();n&&(e.texts=n);var i=t.properties.toObject();i&&(e.properties=i);var o=t.style.toObject();o&&(e.style=o);var r=t.styleText.toObject();return r&&(e.styleText=r),e},t.prototype.exportSvg=function(t,e,n,i){n.exportSvgImage(t,e,i)},t.prototype.exportPng=function(t,e,n,i){n.exportPngImage(t,e,i)},t.prototype.exportJpg=function(t,e,n,i){n.exportJpgImage(t,e,i)},t}();e.Exporter=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(109),r=n(51),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())===this.getStylePropertyValue()},e.prototype.executeCore=function(t){var e=this;this.control.history.beginTransaction();var n=this.getStyleProperty(),i=t.value?a.TextStyle.defaultInstance[n]:this.getStylePropertyValue();return this.control.selection.getSelectedItems().forEach((function(t){e.control.history.addAndRedo(new r.ChangeStyleTextHistoryItem(t.key,n,i))})),this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),i),this.control.history.endTransaction(),!0},e.prototype.getStyleObj=function(t){return t.styleText},e.prototype.getDefaultStyleObj=function(){return new a.TextStyle},e}(o.StylePropertyCommandBase);e.ToggleStyleTextPropertyCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(110),r=n(68),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentStylePropertyValue(this.getStyleProperty())},e.prototype.getStyleObj=function(t){return t.style},e.prototype.getDefaultStyleObj=function(){return new a.Style},e.prototype.createHistoryItem=function(t,e,n){return new r.ChangeStyleHistoryItem(t.key,e,n)},e.prototype.updateInputPosition=function(t){this.control.selection.inputPosition.setStylePropertyValue(this.getStyleProperty(),t)},e}(o.ChangeStylePropertyCommandBase);e.ChangeStylePropertyCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=n(8),a=n(11),s=n(6),l=n(0),u=n(217),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=this;this.control.history.beginTransaction();var i=this.getAffectedShapes(),r=this.getAffectedConnectors(),a=this.createLayoutSettings(),s=o.ModelUtils.getGraphInfoByItems(this.control.model,i,r,!1);if(s.length){var c,d=this.control.model,h=l.GeometryUtils.getCommonRectangle(l.Utils.flatten(s.map((function(t){return t.graph.items.map((function(t){return d.findItem(t.key)}))}))).concat(s.map((function(t){return t.container}))).filter((function(t){return t})).map((function(t){return t.rectangle})));this.control.history.addAndRedo(new u.ScrollIntoViewOnUndoHistoryItem(this.control.view,h)),s.forEach((function(t){var e=n.createLayout(a,t.graph),s=o.ModelUtils.getNonGraphItems(n.control.model,t.container,e.nodeToLayout,i,r),l=o.ModelUtils.applyLayout(n.control.history,n.control.model,t.container,t.graph,e,s,a,n.control.settings.snapToGrid,n.control.settings.gridSize,!1);c=c&&c.merge(l)||l})),o.ModelUtils.tryUpdateModelSize(this.control.history,this.control.model),this.control.history.addAndRedo(new u.ScrollIntoViewOnRedoHistoryItem(this.control.view,c))}return this.control.history.endTransaction(),!0},e.prototype.getAffectedShapes=function(){return this.control.selection.isEmpty()?this.control.model.items.filter((function(t){return t instanceof a.Shape&&!t.locked})):this.control.selection.getSelectedShapes(!1,!0)},e.prototype.getAffectedConnectors=function(){return this.control.selection.isEmpty()?this.control.model.items.filter((function(t){return t instanceof s.Connector&&!t.locked})):this.control.selection.getSelectedConnectors(!1,!0)},e}(r.SimpleCommandBase);e.AutoLayoutCommandBase=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=this;return this.control.history.beginTransaction(),this.createHistoryItems(e).forEach((function(t){n.control.history.addAndRedo(t)})),o.ModelUtils.tryUpdateModelSize(this.control.history,this.control.model),this.control.history.endTransaction(),!0},e.prototype.getItems=function(){return null},e}(n(8).SimpleCommandBase);e.ChangePagePropertyCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(114),r=n(50),a=n(53),s=n(29),l=n(67),u=n(0),c=n(17),d=n(113),h=n(6),f=n(236),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.build=function(){var t=this,e=0,n=new d.GraphLayout,i=new g;return this.graph.getConnectedComponents().forEach((function(o){var r=f.CycleRemover.removeCycles(o),a=m.getLayers(r.graph),s=i.orderNodes(r.graph,a),l=Object.keys(r.removedEdges).map((function(t){return o.getEdge(t)})),u=i.assignAbsCoordinates(s),c=t.createInfoGraphLayout(u,r.reversedEdges,l);n.extend(t.setComponentOffset(c,e)),e+=t.getComponentOffset(c)})),n},e.prototype.createInfoGraphLayout=function(t,e,n){for(var i=this,o=new u.Point(0,0),r=t.items,a=new l.HashSet(r.map((function(t){return t.layer})).sort()),s=this.getAbsOffsetInfo(t.items),h={},f=0,p=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,m=Number.MIN_SAFE_INTEGER||Number.MAX_VALUE,g=function(t){var e=a.item(t),n=0;r.filter((function(t){return t.layer===e})).sort((function(t,e){return t.position-e.position})).forEach((function(t){var e=i.getDepthNodeSize(t),r=i.chooseDirectionValue(0,e),a=i.getAbsPosition(t.position,i.getBreadthNodeSize(t),s);o=i.setBreadth(o,a);var l=i.setDepthOffset(o,-r);if(h[t.key]=l,!t.isDummy){var u=i.settings.orientation===c.DataLayoutOrientation.Horizontal?l.y:l.x;p=Math.min(p,u),m=Math.max(m,u+i.getBreadthNodeSize(t)),n=Math.max(n,i.getDepthNodeSize(t))}})),f+=n,o=_.setBreadth(o,0),o=_.setDepthOffset(o,_.getDirectionValue(n+_.settings.layerSpacing))},_=this,v=0;v<a.length;v++)g(v);f+=(a.length-1)*this.settings.layerSpacing;var y=new d.GraphLayout;return this.createNodesLayout(t,y,p,f,h),this.createEdgesLayout(t,y,e,n),y},e.prototype.createNodesLayout=function(t,e,n,i,o){var r=this,s=this.settings.orientation===c.DataLayoutOrientation.Vertical?new u.Point(-n,this.chooseDirectionValue(0,i)):new u.Point(this.chooseDirectionValue(0,i),-n);t.items.forEach((function(t){if(!t.isDummy){var n=r.graph.getNode(t.key);e.addNode(new a.NodeLayout(n,o[t.key].offset(s.x,s.y)))}}))},e.prototype.createEdgesLayout=function(t,e,n,i){var o=this.getDirectEdgeLayout(),r=this.getDiffLevelEdgeLayout(!0),s=this.getDiffLevelEdgeLayout(!1),l=this.getSameLevelEdgeLayout(!0),u=this.getSameLevelEdgeLayout(!1),c={};t.edges.filter((function(t){return!t.isDummy})).concat(i.map((function(t){return new y(t.key,!1,t.from,t.to)}))).sort((function(e,n){return t.getNode(e.originFrom).layer-t.getNode(n.originFrom).layer||t.getNode(e.to).layer-t.getNode(n.to).layer})).forEach((function(i){var d=n[i.key],f=t.getNode(d?i.to:i.originFrom),p=t.getNode(d?i.originFrom:i.to);if(p.layer-f.layer===1)e.addEdge(new a.EdgeLayout(i.key,o.from,o.to));else{var m=[];if(p.position-f.position>=1)m.push(r),m.push({from:o.from,to:r.to}),m.push({from:r.from,to:o.to});else if(p.position-f.position<=-1)m.push(s),m.push({from:o.from,to:s.to}),m.push({from:s.from,to:o.to});else{var g=f.position===p.position&&0===p.position?[l,u]:[u,l];g.forEach((function(t){return m.push(t)})),g.forEach((function(t){m.push({from:t.from,to:o.to}),m.push({from:o.from,to:t.to})}))}m.push(o);for(var _=0,v=void 0;v=m[_];_++){var y=f.key+"_"+v.from,b=p.key+"_"+v.to;if(c[y]!==h.ConnectorPosition.End&&c[b]!==h.ConnectorPosition.Begin){e.addEdge(new a.EdgeLayout(i.key,v.from,v.to)),c[y]=h.ConnectorPosition.Begin,c[b]=h.ConnectorPosition.End;break}}}}))},e.prototype.getDirectEdgeLayout=function(){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?this.settings.direction===c.LogicalDirectionKind.Forward?{from:1,to:3}:{from:3,to:1}:this.settings.direction===c.LogicalDirectionKind.Forward?{from:2,to:0}:{from:0,to:2}},e.prototype.getDiffLevelEdgeLayout=function(t){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?t?{from:2,to:0}:{from:0,to:2}:t?{from:3,to:1}:{from:1,to:3}},e.prototype.getSameLevelEdgeLayout=function(t){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?t?{from:0,to:0}:{from:2,to:2}:t?{from:3,to:3}:{from:1,to:1}},e.prototype.getAbsOffsetInfo=function(t){var e=this,n={},i=function(t,i){void 0===n[i]&&(n[i]=e.getBreadthNodeSize(t)),n[i]=Math.max(n[i],e.getBreadthNodeSize(t))};t.forEach((function(t){var e=b(t.position);i(t,e),n[e]%1!==0&&i(t,e+1)}));var o={},r=0;return Object.keys(n).sort().forEach((function(t){o[t]={leftOffset:r,width:n[t]},r+=n[t]+e.settings.columnSpacing})),o},e.prototype.setBreadth=function(t,e){return this.settings.orientation===c.DataLayoutOrientation.Vertical?new u.Point(e,t.y):new u.Point(t.x,e)},e.prototype.setDepthOffset=function(t,e){return this.settings.orientation===c.DataLayoutOrientation.Horizontal?new u.Point(t.x+e,t.y):new u.Point(t.x,t.y+e)},e.prototype.getAbsPosition=function(t,e,n){var i=b(t),o=n[i].leftOffset,r=n[i].width;return t%1===0?o+(r-e)/2:o+r-(e-this.settings.columnSpacing)/2},e.prototype.getBreadthNodeSize=function(t){return t.isDummy?0:this.getBreadthNodeSizeCore(this.graph.getNode(t.key))},e.prototype.getDepthNodeSize=function(t){return t.isDummy?0:this.getDepthNodeSizeCore(this.graph.getNode(t.key))},e}(o.LayoutBuilder);e.SugiyamaLayoutBuilder=p;var m=function(){function t(){}return t.getLayers=function(t){var e=this.getFeasibleTree(t);return this.calcNodesLayers(e)},t.getFeasibleTree=function(t){var e=this.initLayerAssignment(t);return t.getSpanningGraph(t.nodes[0],s.ConnectionMode.OutgoingAndIncoming,(function(t){return e[t.to]-e[t.from]}))},t.initLayerAssignment=function(t){for(var e={},n=0,i={},o=t.nodes.filter((function(e){return!t.getAdjacentEdges(e,s.ConnectionMode.Incoming).length})),r=function(){o.forEach((function(t){e[t]=n,i[t]=!0})),Object.keys(i).forEach((function(n){0===t.getAdjacentEdges(n,s.ConnectionMode.Outgoing).filter((function(t){return void 0===e[t.to]})).length&&delete i[n]}));var r={};Object.keys(i).forEach((function(n){t.getAdjacentEdges(n,s.ConnectionMode.Outgoing).map((function(t){return t.to})).filter((function(n){return void 0===e[n]&&t.getAdjacentEdges(n,s.ConnectionMode.Incoming).reduce((function(t,n){return t&&void 0!==e[n.from]}),!0)})).forEach((function(t){return r[t]=!0}))})),o=Object.keys(r),n++};o.length;)r();return e},t.calcNodesLayers=function(t){var e={},n=Number.MAX_SAFE_INTEGER||Number.MAX_VALUE,i=0,o=t.createIterator(s.ConnectionMode.OutgoingAndIncoming);for(var r in o.visitEachEdgeOnce=!1,o.onNode=function(t){e[t.key]=i,n=Math.min(n,i)},o.skipNode=function(t){return void 0!==e[t.key]},o.skipEdge=function(t){return void 0!==e[t.from]&&void 0!==e[t.to]},o.onEdge=function(t,n){i=n?e[t.from]+1:e[t.to]-1},o.iterate(t.nodes[0]),e)e.hasOwnProperty(r)&&(e[r]-=n);return e},t}();e.SugiyamaLayerDistributor=m;var g=function(){function t(){this.idCounter=-1e4}return t.prototype.orderNodes=function(t,e){for(var n=1,i=this.initGraphInfo(t,e),o=i.items,r=this.initOrder(o),a=this.getNodeToPositionMap(o),s=this.getCrossCount(r,i),l=!0;n<14&&0!=s;){r=this.getNodesOrder(r,i,l);var u=this.getCrossCount(r,i);u<s&&(a=this.getNodeToPositionMap(i.items),s=u),l=!l,n++}return i.items.forEach((function(t){return t.position=a[t.key]})),i},t.prototype.getNodesOrder=function(t,e,n){var i=this,o={},r=function(r){if(!t.hasOwnProperty(r))return"continue";var s={};t[r].forEach((function(t){var o=(n?e.getChildren(t.key):e.getParents(t.key)).map((function(t){return e.getNode(t).position}));s[t.key]=i.getNodePosition(o)})),o[r]=a.sortNodes(s,e)},a=this;for(var s in t)r(s);return o},t.prototype.sortNodes=function(t,e){return Object.keys(t).sort((function(e,n){return t[e]-t[n]})).map((function(t,n){var i=e.getNode(t);return i.position=n,i}))},t.prototype.getNodePosition=function(t){if(!(t=t.sort()).length)return 0;var e=Math.floor(t.length/2);if(2===t.length||t.length%2===1)return t[e];var n=t[e-1]-t[0],i=t[t.length-1]-t[e];return Math.floor((t[e-1]*i+t[e]*n)/(n+i))},t.prototype.initOrder=function(t){var e={};return t.forEach((function(t){return(e[t.layer]||(e[t.layer]=[])).push(t)})),e},t.prototype.getCrossCount=function(t,e){var n=0,i=function(i){if(!t.hasOwnProperty(i))return"continue";var o=[];t[i].forEach((function(t){var i=e.getChildren(t.key).map((function(t){return e.getNode(t).position}));i.forEach((function(t){n+=o.filter((function(e){return t<e})).length})),o.push.apply(o,i)}))};for(var o in t)i(o);return n},t.prototype.initGraphInfo=function(t,e){var n=this,i={},o={},a=[],s=[];return t.nodes.forEach((function(t){var n=e[t];void 0===i[n]&&(i[n]=0);var r=new _(t,!1,n,i[n]++);o[t]=r,a.push(r)})),t.edges.forEach((function(t){var r=e[t.to]-e[t.from];if(r>1){for(var l=o[t.from],u=1;u<r;u++){var c=new _(n.createDummyID(),!0,e[t.from]+u,i[e[t.from]+u]++);s.push(new y(n.createDummyID(),!0,l.key,c.key)),a.push(c),l=c}s.push(new y(t.key,!1,l.key,o[t.to].key,o[t.from].key))}else s.push(new y(t.key,!1,o[t.from].key,o[t.to].key))})),new r.FastGraph(a,s)},t.prototype.createDummyID=function(){return"dummy_"+--this.idCounter},t.prototype.getNodeToPositionMap=function(t){return t.reduce((function(t,e){return t[e.key]=e.position,t}),{})},t.prototype.assignAbsCoordinates=function(t){var e=this.getAbsCoodinate(t);return new r.FastGraph(t.items.map((function(t){return new _(t.key,t.isDummy,t.layer,e[t.key])})),t.edges.slice(0))},t.prototype.getAbsCoodinate=function(t){var e=this,n=t.items.reduce((function(t,e){t[e.layer]=t[e.layer]||[];var n=u.Utils.binaryIndexOf(t[e.layer],(function(t){return t.position-e.position}));return t[e.layer].splice(n<0?~n:n,0,e),t}),{}),i=[v.TopLeft,v.TopRight,v.BottomLeft,v.BottomRight].map((function(i){return e.getPositionByMedian(t,i,n)})),o={};return t.items.forEach((function(t){var e=i.map((function(e){return e[t.key]})).sort();o[t.key]=(e[1]+e[2])/2})),o},t.prototype.getPositionByMedian=function(t,e,n){var i=t.items,o=this.getNodeToPositionMap(i),r=this.getMedians(t,i,e);return r=this.resolveMedianConflicts(t,n,r,e),this.getSortedBlocks(t,i,r,e).forEach((function(t){var e=t.reduce((function(t,e){return o[e.key]>t?o[e.key]:t}),-2);t.forEach((function(t){var i=e-o[t.key];i>0&&n[t.layer].filter((function(e){return e.position>t.position})).forEach((function(t){return o[t.key]+=i})),o[t.key]=e}))})),o},t.prototype.getSortedBlocks=function(t,e,n,i){for(var o=[],r=i===v.BottomLeft||i===v.BottomRight,a=new l.HashSet(e.slice(0).sort((function(t,e){return r?t.layer-e.layer:e.layer-t.layer})),(function(t){return t.key}));a.length;){var s=a.item(0),u=this.getBlock(t,s,n,i);o.push(u),u.forEach((function(t){return a.remove(t)}))}return o.sort((function(t,e){var n=t.reduce((function(t,e){return e.position<t.position?e:t}),t[0]),i=e.filter((function(t){return t.layer==n.layer}))[0];if(i)return n.position-i.position;var o=e.reduce((function(t,e){return e.position<t.position?e:t}),e[0]),r=t.filter((function(t){return t.layer==o.layer}))[0];return r?r.position-o.position:n.layer-o.layer})),o},t.prototype.getBlock=function(t,e,n,i){var o=[],r=null;do{r&&(e=i===v.TopLeft||i===v.TopRight?t.getNode(r.from):t.getNode(r.to)),o.push(e),r=n[e.key]}while(r);return o},t.prototype.resolveMedianConflicts=function(t,e,n,i){var o=this,r={},a=function(a){var s=void 0,l=void 0;if(!e.hasOwnProperty(a))return"continue";var u=e[a];i!==v.TopRight&&i!==v.BottomRight||(u=u.slice(0).sort((function(t,e){return e.position-t.position}))),u.forEach((function(e){var a=n[e.key];if(a){var u=i===v.TopLeft||i===v.TopRight?a.from:a.to,c=t.getNode(u).position;o.checkMedianConfict(s,l,c,i)?r[e.key]=null:(s=void 0===s?c:Math.min(s,c),l=void 0===l?c:Math.max(l,c),r[e.key]=a)}else r[e.key]=null}))};for(var s in e)a(s);return r},t.prototype.checkMedianConfict=function(t,e,n,i){return void 0!==t&&void 0!==e&&(i===v.TopLeft||i===v.BottomLeft?e>=n:t<=n)},t.prototype.getMedians=function(t,e,n){var i=this,o={};return e.forEach((function(e){var r=i.getActualAdjacentEdges(t,e,n),a=i.getMedianPosition(r.length,n);o[e.key]=r[a]})),o},t.prototype.getMedianPosition=function(t,e){if(0===t)return-1;if(t%2!==0)return Math.floor(t/2);if(e===v.TopLeft||e===v.BottomLeft)return Math.floor(t/2)-1;if(e===v.TopRight||e===v.BottomRight)return Math.floor(t/2);throw new Error("Invalid Operation")},t.prototype.getActualAdjacentEdges=function(t,e,n){return n===v.TopLeft||n===v.TopRight?t.getAdjacentEdges(e.key,s.ConnectionMode.Incoming).sort((function(e,n){return t.getNode(e.from).position-t.getNode(n.from).position})):t.getAdjacentEdges(e.key,s.ConnectionMode.Outgoing).sort((function(e,n){return t.getNode(e.to).position-t.getNode(n.to).position}))},t}();e.SugiyamaNodesOrderer=g;var _=function(){function t(t,e,n,i){this.key=t,this.isDummy=e,this.layer=n,this.position=i}return t.prototype.getHashCode=function(){return this.key.toString()},t}();e.NodeOnLayer=_;var v,y=function(){function t(t,e,n,i,o){this.key=t,this.isDummy=e,this.from=n,this.to=i,this._originFrom=o}return t.prototype.getHashCode=function(){return this.from+"-"+this.to},Object.defineProperty(t.prototype,"originFrom",{get:function(){return void 0!==this._originFrom?this._originFrom:this.from},enumerable:!0,configurable:!0}),t}();function b(t){return Math.trunc?Math.trunc(t):isFinite(t)?t-t%1||(t<0?-0:0===t?t:0):t}e.EdgeOnLayer=y,function(t){t[t.TopLeft=0]="TopLeft",t[t.TopRight=1]="TopRight",t[t.BottomLeft=2]="BottomLeft",t[t.BottomRight=3]="BottomRight"}(v||(v={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.suspendUpdateCount=0,this.occurredEvents=0}return t.prototype.beginUpdate=function(){0===this.suspendUpdateCount&&this.onUpdateLocked(),this.suspendUpdateCount<0?this.suspendUpdateCount--:this.suspendUpdateCount++},t.prototype.endUpdate=function(){if(this.suspendUpdateCount<0?this.suspendUpdateCount++:this.suspendUpdateCount>0&&this.suspendUpdateCount--,!this.isUpdateLocked()){var t=this.occurredEvents;this.occurredEvents=0,this.onUpdateUnlocked(t)}},t.prototype.isUpdateLocked=function(){return this.suspendUpdateCount>0},t.prototype.onUpdateLocked=function(){},t.prototype.registerOccurredEvent=function(t){this.occurredEvents|=t},t}();e.BatchUpdatableObject=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(138),r=n(164),a=n(165),s=n(166),l=n(204),u=n(205),c=n(206),d=n(207),h=n(208),f=n(209),p=n(210),m=n(211),g=n(212),_=n(213),v=n(214),y=n(215),b=n(216),w=n(13),x=n(112),C=n(219),S=n(220),k=n(221),I=n(223),T=n(225),E=n(227),O=n(228),M=n(229),P=n(230),D=n(231),A=n(234),R=n(237),B=n(238),N=n(118),L=n(239),F=n(240),V=n(241),z=n(242),j=n(120),H=n(121),W=n(243),U=n(244),G=n(245),K=n(246),q=n(248),$=n(250),Y=n(251),Z=n(252),X=n(253),J=n(254),Q=n(255),tt=n(256),et=n(258),nt=n(259),it=n(260),ot=n(261),rt=n(262),at=n(263),st=n(264),lt=n(265);!function(t){t[t.Undo=0]="Undo",t[t.Redo=1]="Redo",t[t.Cut=2]="Cut",t[t.Copy=3]="Copy",t[t.Paste=4]="Paste",t[t.PasteInPosition=5]="PasteInPosition",t[t.SelectAll=6]="SelectAll",t[t.Delete=7]="Delete",t[t.Import=8]="Import",t[t.ImportBPMN=9]="ImportBPMN",t[t.Export=10]="Export",t[t.ExportSvg=11]="ExportSvg",t[t.ExportPng=12]="ExportPng",t[t.ExportJpg=13]="ExportJpg",t[t.BindDocument=14]="BindDocument",t[t.UnbindDocument=15]="UnbindDocument",t[t.Bold=16]="Bold",t[t.Italic=17]="Italic",t[t.Underline=18]="Underline",t[t.FontName=19]="FontName",t[t.FontSize=20]="FontSize",t[t.FontColor=21]="FontColor",t[t.FillColor=22]="FillColor",t[t.StrokeColor=23]="StrokeColor",t[t.TextLeftAlign=24]="TextLeftAlign",t[t.TextCenterAlign=25]="TextCenterAlign",t[t.TextRightAlign=26]="TextRightAlign",t[t.ConnectorLineOption=27]="ConnectorLineOption",t[t.ConnectorStartLineEnding=28]="ConnectorStartLineEnding",t[t.ConnectorEndLineEnding=29]="ConnectorEndLineEnding",t[t.BringToFront=30]="BringToFront",t[t.SendToBack=31]="SendToBack",t[t.MoveLeft=32]="MoveLeft",t[t.MoveStepLeft=33]="MoveStepLeft",t[t.MoveRight=34]="MoveRight",t[t.MoveStepRight=35]="MoveStepRight",t[t.MoveUp=36]="MoveUp",t[t.MoveStepUp=37]="MoveStepUp",t[t.MoveDown=38]="MoveDown",t[t.MoveStepDown=39]="MoveStepDown",t[t.CloneLeft=40]="CloneLeft",t[t.CloneRight=41]="CloneRight",t[t.CloneUp=42]="CloneUp",t[t.CloneDown=43]="CloneDown",t[t.AutoLayoutTree=44]="AutoLayoutTree",t[t.AutoLayoutFlow=45]="AutoLayoutFlow",t[t.AutoLayoutTreeVertical=46]="AutoLayoutTreeVertical",t[t.AutoLayoutTreeHorizontal=47]="AutoLayoutTreeHorizontal",t[t.AutoLayoutLayeredVertical=48]="AutoLayoutLayeredVertical",t[t.AutoLayoutLayeredHorizontal=49]="AutoLayoutLayeredHorizontal",t[t.Lock=50]="Lock",t[t.Unlock=51]="Unlock",t[t.Units=52]="Units",t[t.ViewUnits=53]="ViewUnits",t[t.PageSize=54]="PageSize",t[t.PageLandscape=55]="PageLandscape",t[t.PageColor=56]="PageColor",t[t.GridSize=57]="GridSize",t[t.ShowGrid=58]="ShowGrid",t[t.SnapToGrid=59]="SnapToGrid",t[t.ZoomLevel=60]="ZoomLevel",t[t.Fullscreen=61]="Fullscreen",t[t.ToggleSimpleView=62]="ToggleSimpleView",t[t.ToggleReadOnly=63]="ToggleReadOnly",t[t.EditShapeImage=64]="EditShapeImage",t[t.FitToScreen=65]="FitToScreen",t[t.SwitchAutoZoom=66]="SwitchAutoZoom",t[t.ToggleAutoZoom=67]="ToggleAutoZoom",t[t.FitToWidth=68]="FitToWidth",t[t.ZoomLevelItems=69]="ZoomLevelItems",t[t.GridSizeItems=70]="GridSizeItems",t[t.PageSizeItems=71]="PageSizeItems",t[t.ImportXML=72]="ImportXML",t[t.InsertShapeImage=73]="InsertShapeImage",t[t.DeleteShapeImage=74]="DeleteShapeImage",t[t.StrokeStyle=75]="StrokeStyle",t[t.StrokeWidth=76]="StrokeWidth",t[t.AutoLayoutTreeVerticalBottomToTop=77]="AutoLayoutTreeVerticalBottomToTop",t[t.AutoLayoutTreeHorizontalRightToLeft=78]="AutoLayoutTreeHorizontalRightToLeft",t[t.AutoLayoutLayeredVerticalBottomToTop=79]="AutoLayoutLayeredVerticalBottomToTop",t[t.AutoLayoutLayeredHorizontalRightToLeft=80]="AutoLayoutLayeredHorizontalRightToLeft",t[t.Zoom25=81]="Zoom25",t[t.Zoom50=82]="Zoom50",t[t.Zoom75=83]="Zoom75",t[t.Zoom100=84]="Zoom100",t[t.Zoom125=85]="Zoom125",t[t.Zoom150=86]="Zoom150",t[t.Zoom200=87]="Zoom200",t[t.AutoZoomToContent=88]="AutoZoomToContent",t[t.AutoZoomToWidth=89]="AutoZoomToWidth",t[t.ZoomLevelInPercentage=90]="ZoomLevelInPercentage"}(i=e.DiagramCommand||(e.DiagramCommand={}));var ut=function(){function t(t){this.commands={},this.shortcutsToCommand={},this.lastCommandsChain=[],this.executingCommandsChain=[],this.executingCommandCounter=0,this.isPublicApiCall=!1,this.createCommand(t,i.Undo,r.UndoCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_z,w.ModifierKey.Meta|w.KeyCode.Key_z),this.createCommand(t,i.Redo,a.RedoCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_y,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Key_z,w.ModifierKey.Meta|w.ModifierKey.Shift|w.KeyCode.Key_z),this.createCommand(t,i.Cut,P.CutSelectionCommand,w.KeyCode.Key_x|w.ModifierKey.Ctrl,w.KeyCode.Key_x|w.ModifierKey.Meta),this.createCommand(t,i.Copy,M.CopySelectionCommand,w.KeyCode.Key_c|w.ModifierKey.Ctrl,w.KeyCode.Key_c|w.ModifierKey.Meta),this.createCommand(t,i.Paste,D.PasteSelectionCommand),this.createCommand(t,i.PasteInPosition,Q.PasteSelectionInPositionCommand),this.createCommand(t,i.SelectAll,b.SelectAllCommand,w.KeyCode.Key_a|w.ModifierKey.Ctrl,w.KeyCode.Key_a|w.ModifierKey.Meta),this.createCommand(t,i.Delete,o.DeleteCommand,w.KeyCode.Delete,w.KeyCode.Backspace),this.createCommand(t,i.Import,s.ImportCommand),this.createCommand(t,i.ImportBPMN,A.ImportBPMNCommand),this.createCommand(t,i.ImportXML,tt.ImportXMLCommand),this.createCommand(t,i.Export,l.ExportCommand),this.createCommand(t,i.ExportSvg,E.ExportSvgCommand),this.createCommand(t,i.ExportPng,T.ExportPngCommand),this.createCommand(t,i.ExportJpg,O.ExportJpgCommand),this.createCommand(t,i.BindDocument,V.BindDocumentCommand),this.createCommand(t,i.UnbindDocument,z.UnbindDocumentCommand),this.createCommand(t,i.Bold,u.ToggleFontBoldCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_b,w.ModifierKey.Meta|w.KeyCode.Key_b),this.createCommand(t,i.Italic,c.ToggleFontItalicCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_i,w.ModifierKey.Meta|w.KeyCode.Key_i),this.createCommand(t,i.Underline,d.ToggleFontUnderlineCommand,w.ModifierKey.Ctrl|w.KeyCode.Key_u,w.ModifierKey.Meta|w.KeyCode.Key_u),this.createCommand(t,i.FontName,h.ChangeFontNameCommand),this.createCommand(t,i.FontSize,f.ChangeFontSizeCommand),this.createCommand(t,i.FontColor,p.ChangeFontColorCommand),this.createCommand(t,i.FillColor,m.ChangeFillColorCommand),this.createCommand(t,i.StrokeColor,g.ChangeStrokeColorCommand),this.createCommand(t,i.StrokeStyle,it.ChangeStrokeStyleCommand),this.createCommand(t,i.StrokeWidth,ot.ChangeStrokeWidthCommand),this.createCommand(t,i.TextLeftAlign,_.TextLeftAlignCommand),this.createCommand(t,i.TextCenterAlign,_.TextCenterAlignCommand),this.createCommand(t,i.TextRightAlign,_.TextRightAlignCommand),this.createCommand(t,i.ConnectorLineOption,y.ChangeConnectorLineOptionCommand),this.createCommand(t,i.ConnectorStartLineEnding,v.ChangeConnectorStartLineEndingCommand),this.createCommand(t,i.ConnectorEndLineEnding,v.ChangeConnectorEndLineEndingCommand),this.createCommand(t,i.BringToFront,B.BringToFrontCommand),this.createCommand(t,i.SendToBack,R.SendToBackCommand),this.createCommand(t,i.MoveLeft,L.MoveLeftCommand,w.ModifierKey.Shift|w.KeyCode.Left),this.createCommand(t,i.MoveStepLeft,L.MoveStepLeftCommand,w.KeyCode.Left),this.createCommand(t,i.MoveRight,L.MoveRightCommand,w.ModifierKey.Shift|w.KeyCode.Right),this.createCommand(t,i.MoveStepRight,L.MoveStepRightCommand,w.KeyCode.Right),this.createCommand(t,i.MoveUp,L.MoveUpCommand,w.ModifierKey.Shift|w.KeyCode.Up),this.createCommand(t,i.MoveStepUp,L.MoveStepUpCommand,w.KeyCode.Up),this.createCommand(t,i.MoveDown,L.MoveDownCommand,w.ModifierKey.Shift|w.KeyCode.Down),this.createCommand(t,i.MoveStepDown,L.MoveStepDownCommand,w.KeyCode.Down),this.createCommand(t,i.CloneLeft,G.CloneLeftCommand,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Left),this.createCommand(t,i.CloneRight,G.CloneRightCommand,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Right),this.createCommand(t,i.CloneUp,G.CloneUpCommand,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Up),this.createCommand(t,i.CloneDown,G.CloneDownCommand,w.ModifierKey.Ctrl|w.ModifierKey.Shift|w.KeyCode.Down),this.createCommand(t,i.Lock,W.LockCommand),this.createCommand(t,i.Unlock,U.UnLockCommand),this.createCommand(t,i.AutoLayoutTree,x.AutoLayoutTreeVerticalCommand),this.createCommand(t,i.AutoLayoutFlow,N.AutoLayoutLayeredHorizontalCommand),this.createCommand(t,i.Units,K.ChangeUnitsCommand),this.createCommand(t,i.ViewUnits,K.ChangeViewUnitsCommand),this.createCommand(t,i.PageSize,I.ChangePageSizeCommand),this.createCommand(t,i.PageLandscape,k.ChangePageLandscapeCommand),this.createCommand(t,i.PageColor,q.ChangePageColorCommand),this.createCommand(t,i.GridSize,S.ChangeGridSizeCommand),this.createCommand(t,i.ShowGrid,$.ChangeShowGridCommand),this.createCommand(t,i.SnapToGrid,C.ChangeSnapToGridCommand),this.createCommand(t,i.ZoomLevel,F.ChangeZoomLevelCommand),this.createCommand(t,i.ZoomLevelInPercentage,F.ChangeZoomLevelInPercentageCommand),this.createCommand(t,i.AutoLayoutTreeVertical,x.AutoLayoutTreeVerticalCommand),this.createCommand(t,i.AutoLayoutTreeVerticalBottomToTop,rt.AutoLayoutTreeVerticalBottomToTopCommand),this.createCommand(t,i.AutoLayoutTreeHorizontal,j.AutoLayoutTreeHorizontalCommand),this.createCommand(t,i.AutoLayoutTreeHorizontalRightToLeft,at.AutoLayoutTreeHorizontalRightToLeftCommand),this.createCommand(t,i.AutoLayoutLayeredVertical,H.AutoLayoutLayeredVerticalCommand),this.createCommand(t,i.AutoLayoutLayeredVerticalBottomToTop,st.AutoLayoutLayeredVerticalBottomToTopCommand),this.createCommand(t,i.AutoLayoutLayeredHorizontal,N.AutoLayoutLayeredHorizontalCommand),this.createCommand(t,i.AutoLayoutLayeredHorizontalRightToLeft,lt.AutoLayoutLayeredHorizontalRightToLeftCommand),this.createCommand(t,i.Fullscreen,Y.ToggleFullscreenCommand,w.KeyCode.F11),this.createCommand(t,i.ToggleSimpleView,Z.ToggleSimpleViewCommand),this.createCommand(t,i.ToggleReadOnly,X.ToggleReadOnlyCommand),this.createCommand(t,i.InsertShapeImage,et.InsertShapeImageCommand),this.createCommand(t,i.EditShapeImage,J.EditShapeImageCommand),this.createCommand(t,i.DeleteShapeImage,nt.DeleteShapeImageCommand),this.createCommand(t,i.FitToScreen,F.FitToScreenCommand),this.createCommand(t,i.FitToWidth,F.FitToWidthCommand),this.createCommand(t,i.SwitchAutoZoom,F.SwitchAutoZoomCommand),this.createCommand(t,i.ToggleAutoZoom,F.ToggleAutoZoomCommand),this.createCommand(t,i.ZoomLevelItems,F.ChangeZoomLevelItemsCommand),this.createCommand(t,i.GridSizeItems,S.ChangeGridSizeItemsCommand),this.createCommand(t,i.PageSizeItems,I.ChangePageSizeItemsCommand),this.createCommand(t,i.Zoom25,F.ChangeZoomLevelTo25Command),this.createCommand(t,i.Zoom50,F.ChangeZoomLevelTo50Command),this.createCommand(t,i.Zoom75,F.ChangeZoomLevelTo75Command),this.createCommand(t,i.Zoom100,F.ChangeZoomLevelTo100Command),this.createCommand(t,i.Zoom125,F.ChangeZoomLevelTo125Command),this.createCommand(t,i.Zoom150,F.ChangeZoomLevelTo150Command),this.createCommand(t,i.Zoom200,F.ChangeZoomLevelTo200Command),this.createCommand(t,i.AutoZoomToContent,F.ToggleAutoZoomToContentCommand),this.createCommand(t,i.AutoZoomToWidth,F.ToggleAutoZoomToWidthCommand)}return t.prototype.getCommand=function(t){return this.commands[t]},t.prototype.beforeExecuting=function(t){this.executingCommandsChain.push(t),this.executingCommandCounter++},t.prototype.afterExecuting=function(){this.executingCommandCounter--,0===this.executingCommandCounter&&(this.lastCommandsChain=this.executingCommandsChain,this.executingCommandsChain=[])},t.prototype.assertLastExecutedCommandsChain=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t&&this.lastCommandsChain.length!==e.length)return!1;for(var i,o=0;i=e[o];o++)if(!this.lastCommandsChain[o]||!(this.lastCommandsChain[o]instanceof i))return!1;return!0},t.prototype.processShortcut=function(t){var e=this.shortcutsToCommand[t];return!!e&&e.execute()},t.prototype.processPaste=function(t){var e=this.getCommand(i.Paste);return e&&e.isEnabled()&&e.performPaste(t),!0},t.prototype.notifySelectionChanged=function(t){this.lastCommandsChain=[]},t.prototype.notifyScrollPositionChanged=function(){},t.prototype.createCommand=function(t,e,n){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];this.commands[e]=new n(t);for(var r=0;r<i.length;r++){var a=i[r];"number"===typeof a&&(this.shortcutsToCommand[a]=this.commands[e])}},t}();e.CommandManager=ut},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Disabled=0]="Disabled",t[t.Console=1]="Console",t[t.Document=2]="Document"}(i||(i={}));var o=function(){function t(){}return t.beginAverage=function(t){this.enableLogsAndTimers&&(this.lastAverageGroupName=t)},t.endAverage=function(){this.enableLogsAndTimers&&(this.lastAverageGroupName=null)},t.tryLogAverage=function(t){var e=this;if(this.lastAverageGroupName!=t){var n=Object.keys(this.timers).map((function(t){return e.timers[t]})).filter((function(e){return e.groupName===t}));if(!n.filter((function(t){return!t.endTime})).length){var i=n.reduce((function(t,e){return t+(e.endTime-e.startTime)}),0)/n.length;this.log("average: "+i)}}},t.timer=function(t){this.enableLogsAndTimers&&(this.lastCreatedTimer={message:t,startTime:performance.now(),groupName:this.lastAverageGroupName})},t.endTimer=function(){var t=this;if(this.enableLogsAndTimers){var e=this.lastCreatedTimer,n=setTimeout((function(){e.endTime=performance.now(),t.showMessage('timer "'+e.message+'": '+(e.endTime-e.startTime)),e.groupName&&t.tryLogAverage(e.groupName)}),0);this.timers[n]=e,this.lastCreatedTimer=null}},t.logPerfInfo=function(){var t=document.querySelector(".dxdi-control > svg").querySelectorAll("*").length,e=performance.memory;this.log("nodes: "+t.toLocaleString()+(e?" memory: ":"")+(e?e.usedJSHeapSize.toLocaleString():""))},t.log=function(t){this.showMessage(t)},t.showMessage=function(e){switch(t.mode){case i.Console:console.log(e);break;case i.Document:var n=this.getElement().innerText;if(this.lastMessage===e){var o=n.indexOf("\r\n");o<0&&(o=n.indexOf("\n"));var r=n.substr(0,o);/( \()([0-9]+)(\))$/.test(r)?r=r.replace(/( \()([0-9]+)(\))$/,(function(t,e,n,i){return e+ ++n+i})):r+=" (1)",this.getElement().innerText=r+n.substr(o)}else this.getElement().innerText=e+"\r\n"+n,this.lastMessage=e}},t.getElement=function(){return this.el||(this.el=document.createElement("pre"),this.el.style.top="0px",this.el.style.right="0px",this.el.style.position="fixed",this.el.style.maxHeight="100px",this.el.style.overflow="auto",document.body.appendChild(this.el)),this.el},t.mode=i.Document,t.optimizeUsingRAF=!0,t.optimizeLayers=!0,t.timers={},t.enableLogsAndTimers=!1,t}();e.Diagnostics=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(18),r=function(){function t(){}return t.onEventAttachingToDocument=function(e,n){return!i.Browser.MacOSMobilePlatform||!t.isTouchEventName(e)||(t.documentTouchHandlers[e]||(t.documentTouchHandlers[e]=[]),t.documentTouchHandlers[e].push(n),t.documentEventAttachingAllowed)},t.isTouchEventName=function(t){return i.Browser.WebKitTouchUI&&(t.indexOf("touch")>-1||t.indexOf("gesture")>-1)},t.isTouchEvent=function(t){return!!t&&i.Browser.WebKitTouchUI&&o.IsExists(t.changedTouches)},t.getEventX=function(t){return i.Browser.IE?t.pageX:t.changedTouches[0].pageX},t.getEventY=function(t){return i.Browser.IE?t.pageY:t.changedTouches[0].pageY},t.touchMouseDownEventName=i.Browser.WebKitTouchUI?"touchstart":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",t.touchMouseUpEventName=i.Browser.WebKitTouchUI?"touchend":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",t.touchMouseMoveEventName=i.Browser.WebKitTouchUI?"touchmove":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",t.msTouchDraggableClassName="dxMSTouchDraggable",t.documentTouchHandlers={},t.documentEventAttachingAllowed=!0,t}();e.TouchUIHelper=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){this.id=t,this.key=e};e.NativeItem=o;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o);e.NativeShape=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o);e.NativeConnector=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){void 0===t&&(t=[]),void 0===e&&(e=function(t){return t.toString()});var n=this;this.items=[],this.map={},this.getHashCode=e,t.forEach((function(t){return n.tryPush(t)}))}return t.prototype.tryPush=function(t){var e=this.getHashCode(t);return void 0===this.map[e]&&(this.map[e]=this.items.push(t)-1,!0)},t.prototype.contains=function(t){return void 0!==this.map[this.getHashCode(t)]},t.prototype.forEach=function(t){this.items.forEach(t)},t.prototype.filter=function(t){return this.items.filter(t)},t.prototype.list=function(){return this.items.slice(0)},t.prototype.item=function(t){return this.items[t]},t.prototype.first=function(){return this.items[0]},t.prototype.remove=function(t){var e=this.getHashCode(t),n=this.map[e];if("number"!==typeof n)throw"Item not found";delete this.map[e],this.items.splice(n,1);for(var i=n;i<this.items.length;i++)this.map[this.getHashCode(this.items[i])]--},Object.defineProperty(t.prototype,"length",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),t}();e.HashSet=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.oldStyleValue=e.style[this.styleProperty],t.changeStyle(e,this.styleProperty,this.styleValue)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.changeStyle(e,this.styleProperty,this.oldStyleValue)},e}(n(93).ChangeStyleHistoryItemBase);e.ChangeStyleHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e,o.propertyName=n,o.value=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.oldValue=e.properties[this.propertyName],t.changeConnectorProperty(e,this.propertyName,this.value)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.changeConnectorProperty(e,this.propertyName,this.oldValue)},e}(n(3).HistoryItem);e.ChangeConnectorPropertyHistoryItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(167),o=n(168),r=n(169),a=n(170),s=n(171),l=n(172),u=n(173),c=n(174),d=n(175),h=n(176),f=n(96),p=n(54),m=n(177),g=n(16),_=n(97),v=n(98),y=n(99),b=n(178),w=n(179),x=n(180),C=n(181),S=n(182),k=n(100),I=n(101),T=n(183),E=n(184),O=n(185),M=n(186),P=n(187),D=n(188),A=n(189),R=n(190),B=n(191),N=n(192),L=n(193),F=n(194),V=n(195),z=n(102),j=n(197),H=n(198),W=n(199),U=n(201),G=n(202),K=n(1),q=n(203),$=n(4),Y=function(){function t(){this.descriptions={},this.descriptionTypes={},this.descriptionCategories={},this.onShapeDecriptionChanged=new $.EventDispatcher,this.register(new _.TextShapeDescription,K.ShapeCategories.General),this.register(new g.RectangleShapeDescription,K.ShapeCategories.General),this.register(new p.EllipseShapeDescription,K.ShapeCategories.General),this.register(new h.CrossShapeDescription,K.ShapeCategories.General),this.register(new k.TriangleShapeDescription,K.ShapeCategories.General),this.register(new f.DiamondShapeDescription,K.ShapeCategories.General),this.register(new m.HeartShapeDescription,K.ShapeCategories.General),this.register(new v.PentagonShapeDescription,K.ShapeCategories.General),this.register(new y.HexagonShapeDescription,K.ShapeCategories.General),this.register(new b.OctagonShapeDescription,K.ShapeCategories.General),this.register(new w.StarShapeDescription,K.ShapeCategories.General),this.register(new d.ArrowUpShapeDescription,K.ShapeCategories.General),this.register(new x.ArrowDownShapeDescription,K.ShapeCategories.General),this.register(new S.ArrowLeftShapeDescription,K.ShapeCategories.General),this.register(new c.ArrowRightShapeDescription,K.ShapeCategories.General),this.register(new u.ArrowUpDownShapeDescription,K.ShapeCategories.General),this.register(new C.ArrowLeftRightShapeDescription,K.ShapeCategories.General),this.register(new i.ProcessShapeDescription,K.ShapeCategories.Flowchart),this.register(new o.DecisionShapeDescription,K.ShapeCategories.Flowchart),this.register(new s.TerminatorShapeDescription,K.ShapeCategories.Flowchart),this.register(new l.PredefinedProcessShapeDescription,K.ShapeCategories.Flowchart),this.register(new I.DocumentShapeDescription,K.ShapeCategories.Flowchart),this.register(new T.MultipleDocumentsShapeDescription,K.ShapeCategories.Flowchart),this.register(new r.ManualInputShapeDescription,K.ShapeCategories.Flowchart),this.register(new E.PreparationShapeDescription,K.ShapeCategories.Flowchart),this.register(new a.DataShapeDescription,K.ShapeCategories.Flowchart),this.register(new M.DatabaseShapeDescription,K.ShapeCategories.Flowchart),this.register(new O.HardDiskShapeDescription,K.ShapeCategories.Flowchart),this.register(new P.InternalStorageShapeDescription,K.ShapeCategories.Flowchart),this.register(new D.PaperTapeShapeDescription,K.ShapeCategories.Flowchart),this.register(new A.ManualOperationShapeDescription,K.ShapeCategories.Flowchart),this.register(new R.DelayShapeDescription,K.ShapeCategories.Flowchart),this.register(new B.StoredDataShapeDescription,K.ShapeCategories.Flowchart),this.register(new L.DisplayShapeDescription,K.ShapeCategories.Flowchart),this.register(new N.MergeShapeDescription,K.ShapeCategories.Flowchart),this.register(new q.ConnectorShapeDescription,K.ShapeCategories.Flowchart),this.register(new F.OrShapeDescription,K.ShapeCategories.Flowchart),this.register(new V.SummingJunctionShapeDescription,K.ShapeCategories.Flowchart),this.register(new W.CardWithImageOnLeftDescription,K.ShapeCategories.OrgChart),this.register(new U.CardWithImageOnRightDescription,K.ShapeCategories.OrgChart),this.register(new G.CardWithImageOnTopDescription,K.ShapeCategories.OrgChart),this.register(new j.VerticalContainerDescription,K.ShapeCategories.Containers),this.register(new H.HorizontalContainerDescription,K.ShapeCategories.Containers)}return Object.defineProperty(t,"default",{get:function(){return t.defaultInstance},enumerable:!0,configurable:!0}),Object.defineProperty(t,"defaultContainer",{get:function(){return t.defaultContainerInstance},enumerable:!0,configurable:!0}),t.prototype.get=function(t){return this.descriptions[t]},t.prototype.getTypesByCategory=function(t){return this.descriptionTypes[t]||[]},t.prototype.getCategoryByType=function(t){return this.descriptionCategories[t]},t.prototype.getCategoryByDescription=function(t){return this.getCategoryByType(t.key)},t.prototype.register=function(t,e,n){if(void 0===n&&(n=t.key),void 0!==this.descriptions[n])throw Error("Description key is duplicated");this.descriptions[n]=t,this.descriptionTypes[e]||(this.descriptionTypes[e]=[]),this.descriptionTypes[e].push(n),this.descriptionCategories[n]=e,t.onChanged.add(this)},t.prototype.registerCustomShape=function(t){if(void 0===t.type)throw Error("Custom shape type is not defined");if(void 0!==this.descriptions[t.type])throw Error("Custom shape type is duplicated");var e=t.baseType&&this.descriptions[t.baseType];t.minWidth>t.maxWidth&&(t.minWidth=t.maxWidth),t.minHeight>t.maxHeight&&(t.minHeight=t.maxHeight),t.defaultWidth<t.minWidth&&(t.defaultWidth=t.minWidth),t.defaultWidth>t.maxWidth&&(t.defaultWidth=t.maxWidth),t.defaultHeight<t.minHeight&&(t.defaultHeight=t.minHeight),t.defaultHeight>t.maxHeight&&(t.defaultHeight=t.maxHeight),this.register(new z.CustomShapeDescription(t,e),t.category||K.ShapeCategories.Custom)},t.prototype.unregisterCustomShape=function(t){var e=this.descriptions[t];if(e instanceof z.CustomShapeDescription){e.onChanged.remove(this);var n=this.descriptionCategories[t];delete this.descriptions[t],delete this.descriptionCategories[t];var i=this.descriptionTypes[n].indexOf(t);this.descriptionTypes[n].splice(i,1),0===this.descriptionTypes[n].length&&delete this.descriptionTypes[n]}},t.prototype.notifyShapeDescriptionChanged=function(t){this.onShapeDecriptionChanged.raise1((function(e){return e.notifyShapeDescriptionChanged(t)}))},t.defaultInstance=new g.RectangleShapeDescription,t.defaultContainerInstance=new j.VerticalContainerDescription,t}();e.ShapeDescriptionManager=Y},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(28),s=n(5);e.ArrowVerticalTriangleHeightParameterName="th",e.ArrowVerticalLineWidthParameterName="lw";var l=function(t){function n(){return t.call(this,new r.Size(.375*o.ShapeDefaultDimension,o.ShapeDefaultDimension))||this}return i(n,t),n.prototype.createParameters=function(t){t.addRange([new a.ShapeParameter(e.ArrowVerticalTriangleHeightParameterName,Math.sqrt(Math.pow(this.defaultSize.width,2)-Math.pow(this.defaultSize.width/2,2))),new a.ShapeParameter(e.ArrowVerticalLineWidthParameterName,this.defaultSize.width/3)])},n.prototype.normalizeParameters=function(t,n){this.changeParameterValue(n,e.ArrowVerticalTriangleHeightParameterName,(function(e){return Math.max(0,Math.min(t.size.height,e.value))})),this.changeParameterValue(n,e.ArrowVerticalLineWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.width,e.value))}))},n.prototype.processConnectionPoint=function(t,n){var i=(t.size.width-t.parameters.get(e.ArrowVerticalLineWidthParameterName).value)/2,o=t.getConnectionPointSide(n);o===s.ConnectionPointSide.East?n.x-=i:o===s.ConnectionPointSide.West&&(n.x+=i)},n}(o.ShapeDescription);e.ArrowVerticalShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(28),s=n(5);e.ArrowVerticalTriangleWidthParameterName="tw",e.ArrowVerticalLineHeightParameterName="lh";var l=function(t){function n(){return t.call(this,new r.Size(o.ShapeDefaultDimension,.375*o.ShapeDefaultDimension))||this}return i(n,t),n.prototype.createParameters=function(t){t.addRange([new a.ShapeParameter(e.ArrowVerticalTriangleWidthParameterName,Math.sqrt(Math.pow(this.defaultSize.height,2)-Math.pow(this.defaultSize.height/2,2))),new a.ShapeParameter(e.ArrowVerticalLineHeightParameterName,this.defaultSize.height/3)])},n.prototype.normalizeParameters=function(t,n){this.changeParameterValue(n,e.ArrowVerticalTriangleWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.width,e.value))})),this.changeParameterValue(n,e.ArrowVerticalLineHeightParameterName,(function(e){return Math.max(0,Math.min(t.size.height,e.value))}))},n.prototype.processConnectionPoint=function(t,n){var i=(t.size.height-t.parameters.get(e.ArrowVerticalLineHeightParameterName).value)/2,o=t.getConnectionPointSide(n);o===s.ConnectionPointSide.North?n.y+=i:o===s.ConnectionPointSide.South&&(n.y-=i)},n}(o.ShapeDescription);e.ArrowHorizontalShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=function(t){function e(e){var n=t.call(this,void 0,e)||this;return n.defaultSize.height=n.calculateHeight(o.ShapeDefaultDimension),n}return i(e,t),Object.defineProperty(e.prototype,"angle",{get:function(){return Math.PI*(this.angleCount-2)/this.angleCount},enumerable:!0,configurable:!0}),e}(o.ShapeDescription);e.PolygonShapeDescription=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(104),s=n(200),l=n(4),u=n(2),c=n(30),d=n(105),h=n(1),f=function(t){function e(e){return void 0===e&&(e=new r.Size(o.ShapeDefaultDimension,26/46*o.ShapeDefaultDimension)),t.call(this,e,!0)||this}return i(e,t),e.prototype.getDefaultText=function(){return l.DiagramLocalizationService.shapeTexts[h.ShapeTypes.Card]},e.prototype.createShapePrimitives=function(t,e){var n=t.rectangle,i=n.left,o=n.top,r=n.width,a=n.height;return[new s.RoundedRectanglePrimitive(i,o,r,a,e?30:60,e?30:60,t.style)]},e.prototype.createImagePlaceholder=function(t){return[new s.RoundedRectanglePrimitive(t.left,t.top,t.width,t.height,l.UnitConverter.pixelsToTwips(2),l.UnitConverter.pixelsToTwips(2),void 0,a.SHAPE_IMAGE_CLASSNAMES.IMAGE_PLACEHOLDER)]},e.prototype.createEmptyImagePrimitive=function(t){return d.ShapeImageIndicator.createUserIconPrimitives(t.left,t.top,this.defaultIconSize,l.UnitConverter.pixelsToTwips(1),a.SHAPE_IMAGE_CLASSNAMES.USER_PIC)},e.prototype.createWarningPrimitive=function(t){return d.ShapeImageIndicator.createWarningIconPrimitives(t.left+this.defaultIconSize/2,t.top+this.defaultIconSize/2,this.defaultIconSize/2,a.SHAPE_IMAGE_CLASSNAMES.WARNING_MARK)},e.prototype.getTextRectangle=function(t){var e=t.rectangle,n=e.clone(),i=this.getTextBlockOffset(e),o=l.UnitConverter.pixelsToTwips(3);return i.left>0&&(n.position.x=n.left+i.left+o),i.top>0&&(n.position.y=n.top+i.top+o),n.size.width=n.width-i.right-i.left-2*o,n.size.height=n.height-i.bottom-i.top-2*o,n.position.x+=o,n.position.y+=o,(i.left>0||i.right>0)&&(n.size.width=Math.max(n.width-o,0)),(i.top>0||i.bottom>0)&&(n.size.height=Math.max(n.height-o,0)),n},e.prototype.createTextPrimitives=function(e,n){return n?this.createGraphicalTextRepresentation(e.rectangle):t.prototype.createTextPrimitives.call(this,e,n)},e.prototype.createGraphicalTextRepresentation=function(t){var e=r.Rectangle.create(0,0,0,0),n=this.getTextBlockOffset(t,!0);if(n.left>0||n.right>0){var i=n.left>0?t.width/2-l.UnitConverter.pixelsToTwips(2):0;e.position.x=t.left+i+l.UnitConverter.pixelsToTwips(4),e.position.y=t.top+l.UnitConverter.pixelsToTwips(5),e.size.width=(n.left||n.right)-l.UnitConverter.pixelsToTwips(4),e.size.height=t.height-l.UnitConverter.pixelsToTwips(6)}else{var o=n.top>0?t.height/2-l.UnitConverter.pixelsToTwips(2):0;e.position.x=t.left+t.width/4,e.position.y=t.top+o+l.UnitConverter.pixelsToTwips(4),e.size.width=t.width/2,e.size.height=(n.top||n.bottom)-l.UnitConverter.pixelsToTwips(2)}return this.createTextRepresentationPrimitives(e)},e.prototype.createTextRepresentationPrimitives=function(t){var e=l.UnitConverter.pixelsToTwips(l.UnitConverter.twipsToPixels(t.height/3));return[new c.GroupPrimitive([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(t.left,t.top),new u.PathPrimitiveLineToCommand(t.left+t.width,t.top)]),new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(t.left,t.top+e),new u.PathPrimitiveLineToCommand(t.left+t.width,t.top+e)]),new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(t.left,t.top+2*e),new u.PathPrimitiveLineToCommand(t.left+.66*t.width,t.top+2*e)])],"dxdi-shape-text")]},e}(a.ShapeWithImageDescription);e.CardBaseDescription=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.parseJSON=function(t){if(!t||""===t)return{};try{return JSON.parse(t)}catch(e){return{}}},t.createDocument=function(t){return(new DOMParser).parseFromString(t,"application/xml")},t}();e.ImportUtils=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(110),r=n(51),a=n(24),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentTextStylePropertyValue(this.getStyleProperty())},e.prototype.getStyleObj=function(t){return t.styleText},e.prototype.getDefaultStyleObj=function(){return new a.TextStyle},e.prototype.createHistoryItem=function(t,e,n){return new r.ChangeStyleTextHistoryItem(t.key,e,n)},e.prototype.updateInputPosition=function(t){this.control.selection.inputPosition.setTextStylePropertyValue(this.getStyleProperty(),t)},e}(o.ChangeStylePropertyCommandBase);e.ChangeStyleTextPropertyCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(113),r=n(218),a=n(53),s=n(0),l=n(114),u=n(29),c=n(5),d=n(17),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.nodeToLevel={},e.levelDepthSize={},e}return i(e,t),e.prototype.build=function(){var t=this,e=new o.GraphLayout,n=0;return this.graph.getConnectedComponents().forEach((function(i){var o=r.Tree.createSpanningTree(i),a=t.processTree(o);e.extend(t.setComponentOffset(a,n)),n+=t.getComponentOffset(a)})),e},e.prototype.preProcessTree=function(t,e,n){var i=this;if((e=e.filter((function(t){return(void 0===i.nodeToLevel[t.key]?i.nodeToLevel[t.key]=n:-1)>=0}))).length){var o=this.getMaxDepthSize(e);this.levelDepthSize[n]=o,this.preProcessTree(t,[].concat.apply([],e.map((function(e){return t.getChildren(e)}))),n+1)}},e.prototype.loadNodes=function(t,e,n){return n?t.getChildren(n.info).map((function(t){return e.hasNode(t.key)?void 0:e.addNode(new a.NodeLayout(t,s.Point.empty()))})).filter((function(t){return t})):[e.addNode(new a.NodeLayout(t.root,s.Point.empty()))]},e.prototype.processTree=function(t){var e=this,n=new o.GraphLayout;if(this.preProcessTree(t,[t.root],0),this.processLevel(t,n,0,new s.Range(0),0),this.settings.direction===d.LogicalDirectionKind.Backward){var i=Object.keys(this.levelDepthSize).map((function(t){return e.levelDepthSize[t]})),r=i.reduce((function(t,e){return t+e}),0)+(i.length-1)*this.settings.layerSpacing;n.forEachNode((function(t){return e.setDepthPos(t,e.getDepthPos(t)+r)}))}return n},e.prototype.processLevel=function(t,e,n,i,o,r){var a,l=this,c=this.addNodes(t,e,o,r),d=r?this.graph.getAdjacentEdges(r.key,u.ConnectionMode.Outgoing):[],h=this.getDirectionValue(this.levelDepthSize[o]),f=this.getDirectionValue(this.settings.layerSpacing);if(c.forEach((function(r){var u=s.Range.fromLength(a?a.to+l.settings.columnSpacing:i.from,l.getBreadthNodeSizeCore(r.info));r.position=l.getNodePosition(u.from,n,h).offset(r.info.margin.left,r.info.margin.top),l.processLevel(t,e,n+h+f,u,o+1,r),l.updateEdgeConnections(e,d,r),i.extend(u),a=u})),r&&c.length){var p=c[c.length-1],m=new s.Range(this.getBreadthPos(c[0]),this.getBreadthPos(p)+this.getBreadthNodeSizeCore(p.info,!0));this.alignParent(r,m,i)}},e.prototype.addNodes=function(t,e,n,i){var o=this;return 0===n?[e.addNode(new a.NodeLayout(t.root,s.Point.empty()))]:t.getChildren(i.info).reduce((function(t,i){return o.nodeToLevel[i.key]!==n||e.hasNode(i.key)||t.push(e.addNode(new a.NodeLayout(i,s.Point.empty()))),t}),[])},e.prototype.getMaxDepthSize=function(t){var e=this;return t.reduce((function(t,n){return Math.max(t,e.getDepthNodeSizeCore(n))}),0)},e.prototype.getNodePosition=function(t,e,n){return this.settings.direction===d.LogicalDirectionKind.Forward?this.settings.orientation===d.DataLayoutOrientation.Vertical?new s.Point(t,e):new s.Point(e,t):this.settings.orientation===d.DataLayoutOrientation.Vertical?new s.Point(t,e+n):new s.Point(e+n,t)},e.prototype.updateEdgeConnections=function(t,e,n){var i=this;e.filter((function(t){return t.to===n.key})).forEach((function(e){var n=i.getBeginEdgeIndex(),o=i.getEndEdgeIndex();t.addEdge(new a.EdgeLayout(e.key,n,o))}))},e.prototype.getBeginEdgeIndex=function(){return this.settings.direction===d.LogicalDirectionKind.Forward?this.isVertical()?c.ConnectionPointSide.South:c.ConnectionPointSide.East:this.isVertical()?c.ConnectionPointSide.North:c.ConnectionPointSide.West},e.prototype.getEndEdgeIndex=function(){return this.settings.direction===d.LogicalDirectionKind.Forward?this.isVertical()?c.ConnectionPointSide.North:c.ConnectionPointSide.West:this.isVertical()?c.ConnectionPointSide.South:c.ConnectionPointSide.East},e.prototype.alignParent=function(t,e,n){if(this.settings.alignment===d.Alignment.Center){var i=e.from+e.length/2-this.getBreadthNodeSizeCore(t.info,!0)/2;this.settings.orientation===d.DataLayoutOrientation.Vertical?(t.position.x=Math.max(n.from+t.info.margin.left,i),t.position.x=Math.min(n.to-t.info.size.width-t.info.margin.right,t.position.x)):(t.position.y=Math.max(n.from+t.info.margin.top,i),t.position.y=Math.min(n.to-t.info.size.height-t.info.margin.bottom,t.position.y))}},e.prototype.getDepthPos=function(t){return this.settings.orientation===d.DataLayoutOrientation.Vertical?t.position.y:t.position.x},e.prototype.getBreadthPos=function(t){return this.settings.orientation===d.DataLayoutOrientation.Vertical?t.position.x:t.position.y},e.prototype.setDepthPos=function(t,e){this.settings.orientation===d.DataLayoutOrientation.Vertical?t.position.y=e:t.position.x=e},e.prototype.isVertical=function(){return this.settings.orientation===d.DataLayoutOrientation.Vertical},e}(l.LayoutBuilder);e.TreeLayoutBuilder=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(115),r=n(226),a=n(44),s=n(56),l=n(12),u=n(80),c=n(79),d=n(34),h=function(t){function e(e){var n=t.call(this,e)||this;return n.exporter=new s.Exporter,n}return i(e,t),e.prototype.isEnabled=function(){return!d.ImageCache.instance.hasNonLoadedImages()},e.prototype.executeCore=function(t,e){var n=this;try{var i=this.getExportManager();this.getExportFunc()(this.control.model.size.clone(),this.control.model.pageColor,i,(function(t){e(t,n.getExtension()),n.tryDispose()}))}catch(o){throw this.tryDispose(),o}return!0},e.prototype.getExportManager=function(){var t=this.getOrCreateMeasurer(),e=this.control.render&&this.control.render.items||this.createItemsManager(t);return this.exportManager||(this.exportManager=new r.CanvasExportManager(e.itemsContainer,t))},e.prototype.createItemsManager=function(t){this.svgElement=l.RenderHelper.createSvgElement(document.body,!0);var e=new o.CanvasItemsManager(this.svgElement,1,new c.ExportDOMManipulator(t));return this.control.modelManipulator.onModelChanged.add(e),this.control.modelManipulator.onLoad(),e},e.prototype.tryDispose=function(){this.svgElement&&(document.body.removeChild(this.svgElement),delete this.svgElement,this.exportManager=void 0),this.tempMeasurer&&(this.tempMeasurer.clean(),this.tempMeasurer=void 0)},e.prototype.getOrCreateMeasurer=function(){return this.control.render&&this.control.render.measurer||(this.tempMeasurer=new u.TextMeasurer(document.body))},e}(a.ExportImportCommandBase);e.ExportImageCommand=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=function(){function t(t){this.measurer=t,this.queue=[]}return t.prototype.createElement=function(t,e,n){var i=t.createElement();return null!=e&&(void 0!==n?e.insertBefore(i,n):e.appendChild(i)),i},t.prototype.changeChildrenByPrimitives=function(t,e){var n=this;t.forEach((function(t,i){var o=e.childNodes[i];n.changeByPrimitive(o,t)}))},t.prototype.changeByFunc=function(t,e){this.doChange(t,e)},t.prototype.changeByPrimitive=function(t,e){this.doChange(t,e)},t.prototype.cancelAnimation=function(){void 0!==this.rafId&&(cancelAnimationFrame(this.rafId),this.queue=[])},t.prototype.doChange=function(t,e){o.Diagnostics.optimizeUsingRAF?(this.queue.push([t,e]),this.requestAnimation()):this.doChangeSync(t,e)},t.prototype.doChangeSync=function(t,e){"function"===typeof e?e(t):e.applyElementProperties(t,this.measurer)},t.prototype.requestAnimation=function(){var t=this;this.rafRequested||(this.rafRequested=!0,this.rafId=requestAnimationFrame((function e(){t.queue.splice(0,2e3).forEach((function(e){return t.doChangeSync(e[0],e[1])})),t.queue.length?t.rafId=requestAnimationFrame(e):(t.rafRequested=!1,t.rafId=void 0)})))},t}();e.DOMManipulator=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.doChange=function(t,e){this.doChangeSync(t,e)},e}(r);e.ExportDOMManipulator=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(11),a=n(6),s=n(46),l=n(12),u=function(){function t(t){this.cache={},this.containers={},this.parent=t,this.createNodes()}return t.prototype.measureWords=function(t,e,n){var i=this,o={},r="string"===typeof t?this.splitToWords(t,!1):t.reduce((function(t,e){return t.concat(i.splitToWords(e,!1))}),[]);r.push(" ");var a=this.tryLoadWordsToMeasurer(r,e,n,this.cache,void 0,void 0,void 0,o);if(a){var s=this.containers[n];this.putElementsInDOM(s,a),this.beforeMeasureInDOM(),this.measureElementsInDOM(a,o),this.afterMeasureInDOM()}return o},t.prototype.measureTextLine=function(t,e,n){var o=this.measureWords(t,e,n);return l.RenderHelper.textToWords(t).reduce((function(t,e,n){var i=o[e];return t.width+=i.width,t.height=Math.max(t.height,i.height),n>0&&(t.width+=o[" "].width),t}),new i.Size(0,0))},t.prototype.onNewModel=function(t,e){e.changeByFunc(null,function(){this.onNewModelCore(t)}.bind(this))},t.prototype.onNewModelCore=function(t){var e=t.filter((function(t){return t instanceof r.Shape})),n=t.filter((function(t){return t instanceof a.Connector})),i=this.cache,o=this.tryLoadShapeTexts(e,i),l=this.tryLoadConnectorTexts(n,i);(o||l)&&(o&&this.putElementsInDOM(this.containers[s.TextOwner.Shape],o),l&&this.putElementsInDOM(this.containers[s.TextOwner.Connector],l),this.beforeMeasureInDOM(),o&&this.measureElementsInDOM(o),l&&this.measureElementsInDOM(l),this.afterMeasureInDOM())},t.prototype.replaceParent=function(t){this.parent!==t&&(this.mainElement.parentNode&&t.appendChild(this.mainElement),this.parent=t)},t.prototype.clean=function(){o.RenderUtils.removeElement(this.mainElement)},t.prototype.tryLoadShapeTexts=function(t,e){var n=this,i={},o=[],r=[];return t.forEach((function(t){return n.tryLoadWordsToMeasurer(n.splitToWords(t.text,!0),t.styleText,s.TextOwner.Shape,e,i,o,r)})),o.length?{elements:o,hashes:r}:null},t.prototype.tryLoadConnectorTexts=function(t,e){var n=this,i={},o=[],r=[];return t.forEach((function(t){var a=t.texts.map((function(t){return t.value})).reduce((function(t,e){return t.concat(n.splitToWords(e,!1))}),[]);a.length&&(a.push(" "),n.tryLoadWordsToMeasurer(a,t.styleText,s.TextOwner.Connector,e,i,o,r))})),o.length?{elements:o,hashes:r}:null},t.prototype.tryLoadWordsToMeasurer=function(t,e,n,i,o,r,a,s){var l=this,u=[];return r=r||[],a=a||[],o=o||{},t.forEach((function(t){return l.tryLoadWordToMeasurer(t,e,n,i,o,r,a,u,s)})),r.length?{elements:r,hashes:a,newWords:u}:null},t.prototype.putElementsInDOM=function(t,e){for(t.parentNode&&t.parentNode.removeChild(t);t.firstChild;)t.removeChild(t.firstChild);e.elements.forEach((function(e){return t.appendChild(e)})),this.svgElement.appendChild(t)},t.prototype.measureElementsInDOM=function(t,e){for(var n=t.hashes,i=t.elements,o=t.newWords,r=n.length,a=0;a<r;a++){var s=this.getSvgTextSize(i[a]);s&&(this.cache[n[a]]=s,e&&(e[o[a]]=s))}},t.prototype.beforeMeasureInDOM=function(){this.parent.appendChild(this.mainElement)},t.prototype.afterMeasureInDOM=function(){this.mainElement.parentNode&&this.mainElement.parentNode.removeChild(this.mainElement)},t.prototype.tryLoadWordToMeasurer=function(t,e,n,i,o,r,a,s,l){var u=this.getHash(t,e,n),c=i[u];c||o[u]?c&&l&&(l[t]=c):(o[u]=!0,a.push(u),r.push(this.createElement(t,e)),s.push(t)),i[u]||o[u]||(o[u]=!0,a.push(u),r.push(this.createElement(t,e)))},t.prototype.getHash=function(t,e,n){return n+"|"+(e&&e.toHash())+"|"+t},t.prototype.createElement=function(t,e){var n=document.createElementNS(l.svgNS,"text");return" "===t&&n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),n.textContent=t,e&&o.RenderUtils.applyStyleToElement(e,n),n},t.prototype.splitToWords=function(t,e){var n=l.RenderHelper.textToWords(t);return e&&n.push(" "),n},t.prototype.getSvgTextSize=function(t){var e;try{e=t.getBBox()}catch(n){}return e?new i.Size(e.width,e.height):null},t.prototype.createNodes=function(){this.mainElement=l.RenderHelper.createMainElement(void 0,!0),this.svgElement=l.RenderHelper.createSvgElement(this.mainElement,!1),this.createContainer(s.TextOwner.Shape,"shape"),this.createContainer(s.TextOwner.Connector,"connector"),this.createContainer(s.TextOwner.ExtensionLine,"extension-line"),this.createContainer(s.TextOwner.Resize,"resize-info")},t.prototype.createContainer=function(t,e){var n=document.createElementNS(l.svgNS,"g");n.setAttribute("class",e),this.containers[t]=n},t}();e.TextMeasurer=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.setClipboardData=function(t){this.control.render&&this.control.render.input.setClipboardData(t),e.clipboardData=t},e.prototype.getClipboardData=function(t){this.control.render&&this.isPasteSupportedByBrowser()?this.control.render.input.getClipboardData(t):t(e.clipboardData)},e.prototype.isPasteSupportedByBrowser=function(){return this.control.render&&this.control.render.input.isPasteSupportedByBrowser()},e}(n(8).SimpleCommandBase);e.ClipboardCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.itemKey=e.key,i.zIndex=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.oldZIndex=e.zIndex,t.changeZIndex(e,this.zIndex)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.changeZIndex(e,this.oldZIndex)},e}(n(3).HistoryItem);e.ChangeZindexHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(123),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.getSelectedShape();return t.prototype.isEnabled.call(this)&&!!e&&!e.locked&&e.enableImage&&e.allowEditImage},e.prototype.getValue=function(){var t=this.getSelectedShape();return t?t.image.exportUrl:void 0},e.prototype.getSelectedShape=function(){var t=this.control.selection.getSelectedShapes(!0);return 1===t.length?t[0]:void 0},e.prototype.executeCore=function(t,e){this.control.history.beginTransaction();var n=this.control.selection.getSelectedShapes(!1);return this.control.history.addAndRedo(new o.ChangeShapeImageHistoryItem(n[0],e)),this.control.history.endTransaction(),!0},e}(n(8).SimpleCommandBase);e.EditShapeImageCommandBase=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=n(13),a=n(130),s=function(t){function e(e,n,i,o,r,a){var s=t.call(this,e,n,i,o,r)||this;return s.model=i,s.selection=o,s.visualizerManager=r,s.moveStartPoint=a,s}return i(e,t),e.isMoveClonedEvent=function(t){return t.modifiers&r.ModifierKey.Ctrl&&t.modifiers&r.ModifierKey.Shift},e.prototype.onMouseDown=function(e){var n=this.moveStartPoint?e.modelPoint.x-this.moveStartPoint.x:0,i=this.moveStartPoint?e.modelPoint.y-this.moveStartPoint.y:0;o.ModelUtils.cloneSelectionToOffset(this.history,this.model,this.selection,n,i),t.prototype.onMouseDown.call(this,e)},e.prototype.validateDraggingShapes=function(){return!0},e.prototype.validateDraggingConnectors=function(){return this.draggingShapes.length>0||this.draggingConnectors.length>0},e.prototype.createDraggingConnector=function(t){return new a.DraggingConnector(t,!1,!1)},e.prototype.registerAttachedConnectorsInSelection=function(){},e}(a.MouseHandlerDragDiagramItemStateBase);e.MouseHandlerMoveClonedDiagramItemState=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={stroke:!0,fill:!0};e.isColorProperty=function(t){return i[t]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.connector=t};e.ConnectorPointsCalculatorBase=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(14),o=function(){function t(t){this.style=t}return Object.defineProperty(t.prototype,"strokeWidthPx",{get:function(){return this.style?this.style.strokeWidthPx:0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeOffset",{get:function(){return this.style?this.style.strokeOffset:0},enumerable:!0,configurable:!0}),t.prototype.getUnitVaue=function(t){return"number"===typeof t?i.UnitConverter.twipsToPixels(t).toString():t},t.prototype.setUnitAttribute=function(t,e,n){void 0!==n&&null!==n&&t.setAttribute(e,this.getUnitVaue(n))},t.prototype.setPositionCorrectionAttribute=function(t){var e=this.strokeWidthPx%2===1?"translate("+this.strokeOffset+", "+this.strokeOffset+")":"";t.setAttribute("transform",e)},t}();e.PrimitiveObject=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r){var a=t.call(this)||this;return a.id=e,a.x=n,a.y=i,a.width=o,a.height=r,a}return i(e,t),e.prototype.createMainElement=function(){var t=document.createElementNS(o.svgNS,"filter");return t.setAttribute("id",this.id),t},e.prototype.applyElementProperties=function(e,n){this.id&&e.setAttribute("id",this.id),this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.setUnitAttribute(e,"width",this.width),this.setUnitAttribute(e,"height",this.height),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.FilterPrimitive=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.normalize=function(e,n){return void 0===n&&(n="image/png"),t.checkPrependDataUrl(e)||(e=t.prepend(e,n)),e},t.prepend=function(t,e){return void 0===e&&(e="image/png"),"data:"+e+";base64,"+t},t.checkPrependDataUrl=function(e){return t.dataUrl.test(e)},t.dataUrl=/data:(.*)(;(.*))?(;base64)?,/,t}();e.Base64Utils=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(6),a=function(t){function e(e,n){var i=t.call(this)||this;return i.connectorKey=e.key,i.position=n,i.itemKey=e.getExtremeItem(i.position).key,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.oldConnectionPointIndex=this.position===r.ConnectorPosition.Begin?e.beginConnectionPointIndex:e.endConnectionPointIndex,t.deleteConnection(e,this.position)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey),n=t.model.findItem(this.itemKey);t.addConnection(e,n,this.oldConnectionPointIndex,this.position)},e}(o.HistoryItem);e.DeleteConnectionHistoryItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.shapeKey=e,n}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.shape=e.clone(),t.deleteShape(e)},e.prototype.undo=function(t){t.addShape(this.shape,this.shape.key)},e}(n(3).HistoryItem);e.DeleteShapeHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.shapeKey=e,i.parameters=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.oldParameters=e.parameters.clone(),t.changeShapeParameters(e,this.parameters)},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.changeShapeParameters(e,this.oldParameters)},e}(n(3).HistoryItem);e.ChangeShapeParametersHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.itemKey=e,o.styleProperty=n,o.styleValue=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.oldStyleValue=e.style[this.styleProperty],t.changeStyle(e,this.styleProperty,this.styleValue)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.changeStyle(e,this.styleProperty,this.oldStyleValue)},e}(n(3).HistoryItem);e.ChangeStyleHistoryItemBase=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.itemKey=e.key,i.locked=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.oldLocked=e.locked,t.changeLocked(e,this.locked)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.changeLocked(e,this.oldLocked)},e}(n(3).HistoryItem);e.ChangeLockedHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(11),r=n(0),a=n(70),s=n(6),l=n(41),u=n(108),c=n(75),d=n(4),h=function(t){function e(e,n){var i=t.call(this,e)||this;return i.obj=c.ImportUtils.parseJSON(n),i}return i(e,t),e.prototype.getObject=function(){return this.obj},e.prototype.getPageObject=function(t){return t.page},e.prototype.getShapeObjects=function(t){return t.shapes},e.prototype.getConnectorObjects=function(t){return t.connectors},e.prototype.importPageSettings=function(t,e){e&&(this.assert(e.width,"number"),this.assert(e.height,"number"),"number"===typeof e.width&&(t.size.width=e.width),"number"===typeof e.height&&(t.size.height=e.height),"number"===typeof e.pageColor?t.pageColor=e.pageColor:"string"===typeof e.pageColor&&(t.pageColor=d.ColorHelper.stringToColor(e.pageColor)),"number"===typeof e.pageWidth&&(t.pageSize.width=e.pageWidth),"number"===typeof e.pageHeight&&(t.pageSize.height=e.pageHeight),"boolean"===typeof e.pageLandscape&&(t.pageLandscape=e.pageLandscape),"number"===typeof e.units&&(t.units=e.units))},e.prototype.importShape=function(t){this.assert(t.key,"string"),this.assert(t.x,"number"),this.assert(t.y,"number"),this.assert(t.type,"string");var e=t.type,n=this.shapeDescriptionManager.get(e),i=new r.Point(t.x,t.y),s=new o.Shape(n||a.ShapeDescriptionManager.default,i);return s.key=t.key,"string"!==typeof t.dataKey&&"number"!==typeof t.dataKey||(s.dataKey=t.dataKey),"boolean"===typeof t.locked&&(s.locked=t.locked),"number"===typeof t.width&&(s.size.width=t.width),"number"===typeof t.height&&(s.size.height=t.height),"string"===typeof t.text&&(s.text=t.text),"string"===typeof t.imageUrl&&(s.image=new l.ImageInfo(t.imageUrl)),t.parameters&&(s.parameters.fromObject(t.parameters),s.description.normalizeParameters(s,s.parameters)),t.style&&s.style.fromObject(t.style),t.styleText&&s.styleText.fromObject(t.styleText),"number"===typeof t.zIndex&&(s.zIndex=t.zIndex),Array.isArray(t.childKeys)&&(s.childKeys=t.childKeys.slice()),"boolean"===typeof t.expanded&&(s.expanded=t.expanded),"number"===typeof t.expandedWidth&&"number"===typeof t.expandedHeight&&(s.expandedSize=new r.Size(t.expandedWidth,t.expandedHeight)),s},e.prototype.importShapeChildren=function(t,e){return[]},e.prototype.importConnector=function(t){var e=this;if(this.assert(t.key,"string"),!Array.isArray(t.points))throw Error("Invalid Format");var n=t.points.map((function(t){return e.assert(t.x,"number"),e.assert(t.y,"number"),new r.Point(t.x,t.y)})),i=new s.Connector(n);return i.key=t.key,"string"!==typeof t.dataKey&&"number"!==typeof t.dataKey||(i.dataKey=t.dataKey),"boolean"===typeof t.locked&&(i.locked=t.locked),i.endConnectionPointIndex="number"===typeof t.endConnectionPointIndex?t.endConnectionPointIndex:-1,i.beginConnectionPointIndex="number"===typeof t.beginConnectionPointIndex?t.beginConnectionPointIndex:-1,void 0!==t.endItemKey&&this.assert(t.endItemKey,"string"),void 0!==t.beginItemKey&&this.assert(t.beginItemKey,"string"),i.endItemKey=t.endItemKey,i.beginItemKey=t.beginItemKey,t.texts&&i.texts.fromObject(t.texts),t.properties&&i.properties.fromObject(t.properties),t.style&&i.style.fromObject(t.style),t.styleText&&i.styleText.fromObject(t.styleText),"number"===typeof t.zIndex&&(i.zIndex=t.zIndex),i},e}(u.ImporterBase);e.Importer=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(2),a=n(1),s=function(t){function e(e,n){return void 0===e&&(e=o.ShapeDefaultSize.clone()),t.call(this,e,n)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.Diamond},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.right,a=e.bottom,s=e.center,l=s.x,u=s.y;return[new r.PathPrimitive([new r.PathPrimitiveMoveToCommand(l,i),new r.PathPrimitiveLineToCommand(o,u),new r.PathPrimitiveLineToCommand(l,a),new r.PathPrimitiveLineToCommand(n,u),new r.PathPrimitiveClosePathCommand],t.style)]},e}(o.ShapeDescription);e.DiamondShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=function(t){function e(){return t.call(this,new r.Size(o.ShapeDefaultDimension,.5*o.ShapeDefaultDimension),!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.Text},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t,e){return[]},e}(o.ShapeDescription);e.TextShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(1),a=n(73),s=n(5),l=function(t){function e(e){var n=t.call(this,e)||this;return n.defaultRatio=n.defaultSize.height/n.defaultSize.width,n}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Pentagon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angleCount",{get:function(){return 5},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,s=e.width,l=e.height,u=e.center.x,c=l/s/this.defaultRatio,d=Math.PI-this.angle,h=s/2*Math.tan(d/2)*c,f=i+h,p=(l-h)/Math.tan(d)/c,m=n+p,g=r-p;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,i),new o.PathPrimitiveLineToCommand(r,f),new o.PathPrimitiveLineToCommand(g,a),new o.PathPrimitiveLineToCommand(m,a),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.processConnectionPoint=function(t,e){var n=t.getConnectionPointSide(e);if(n===s.ConnectionPointSide.East||n===s.ConnectionPointSide.West){var i=t.rectangle,o=i.top,r=i.width,a=i.height/r/this.defaultRatio,l=Math.PI-this.angle,u=o+r/2*Math.tan(l/2)*a;(n===s.ConnectionPointSide.East||n===s.ConnectionPointSide.West)&&(e.y=u)}},e.prototype.calculateHeight=function(t){var e=Math.PI-this.angle;return t/2*Math.tan(e/2)+t/2/Math.cos(e/2)*Math.sin(e)},e}(a.PolygonShapeDescription);e.PentagonShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Hexagon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angleCount",{get:function(){return 6},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,s=e.width,l=(e.height,e.center.y),u=Math.PI-this.angle,c=s/(1+2*Math.cos(u)),d=n+(s-c)/2,h=d+c;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(d,i),new o.PathPrimitiveLineToCommand(h,i),new o.PathPrimitiveLineToCommand(r,l),new o.PathPrimitiveLineToCommand(h,a),new o.PathPrimitiveLineToCommand(d,a),new o.PathPrimitiveLineToCommand(n,l),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.calculateHeight=function(t){var e=Math.PI-this.angle;return t/(1+2*Math.cos(e))*2*Math.sin(e)},e}(n(73).PolygonShapeDescription);e.HexagonShapeDescription=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(2),a=n(1),s=n(33),l=n(5),u=function(t){function e(e){var n=t.call(this,void 0,e)||this;return n.defaultSize.height=n.calculateHeight(o.ShapeDefaultDimension),n}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.Triangle},enumerable:!0,configurable:!0}),e.prototype.createConnectionPoints=function(){return[new s.ConnectionPoint(.5,0,l.ConnectionPointSide.North),new s.ConnectionPoint(.75,.5,l.ConnectionPointSide.East),new s.ConnectionPoint(.5,1,l.ConnectionPointSide.South),new s.ConnectionPoint(.25,.5,l.ConnectionPointSide.West)]},e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.right,a=e.bottom;return[new r.PathPrimitive([new r.PathPrimitiveMoveToCommand(e.center.x,i),new r.PathPrimitiveLineToCommand(o,a),new r.PathPrimitiveLineToCommand(n,a),new r.PathPrimitiveClosePathCommand],t.style)]},e.prototype.calculateHeight=function(t){return Math.sqrt(Math.pow(t,2)-Math.pow(t/2,2))},e.prototype.getTextRectangle=function(t){var e=t.rectangle;return e.resize(0,.25*-e.width).offset(0,.25*e.width)},e}(o.ShapeDescription);e.TriangleShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(5),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Document},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){return this.createDocumentPrimitives(t.rectangle,t.style)},e.prototype.createDocumentPrimitives=function(t,n){var i=t.left,o=t.top,r=t.right,s=t.bottom,l=t.width,u=t.height,c=t.center.x,d=u*e.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(i,o),new a.PathPrimitiveLineToCommand(r,o),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveQuadraticCurveToCommand(r-.25*l,s-2*d,c,s-d),new a.PathPrimitiveQuadraticCurveToCommand(i+.25*l,s+d,i,s-d),new a.PathPrimitiveClosePathCommand],n)])},e.prototype.processConnectionPoint=function(t,n){t.getConnectionPointSide(n)===s.ConnectionPointSide.South&&(n.y-=t.size.height*e.curveOffsetRatio)},e.prototype.getTextRectangle=function(t){var n=t.rectangle;return n.resize(0,-n.height*e.curveOffsetRatio)},e.curveOffsetRatio=.1,e}(o.RectangleShapeDescription);e.DocumentShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(103),r=n(0),a=n(33),s=n(5),l=n(104),u=n(9),c=n(41),d=n(34),h=n(106),f=n(196),p=function(t){function e(e,n){var i=t.call(this,new r.Size(e.defaultWidth||n&&n.defaultSize.width||u.ShapeDefaultDimension,e.defaultHeight||n&&n.defaultSize.height||u.ShapeDefaultDimension))||this;if(i.properties=e,i.baseDescription=n,i.imageLoader=new h.ImageLoader(i.updateSvgImage.bind(i)),i.defaultText=e.defaultText||n&&n.getDefaultText(),i.defaultImageUrl=e.defaultImageUrl||n&&n.getDefaultImageUrl(),i.title=e.title||n&&n.getTitle()||i.defaultText||"",i.connectionPoints=i.createConnectionPoints(),e.svgUrl){i.svgImage=new c.ImageInfo(e.svgUrl);var o=d.ImageCache.instance.createUnloadedInfoByShapeImageInfo(i.svgImage);i.imageLoader.load(o)}return e.svgToolboxUrl&&(i.svgToolboxImage=new c.ImageInfo(e.svgToolboxUrl),o=d.ImageCache.instance.createUnloadedInfoByShapeImageInfo(i.svgToolboxImage),i.imageLoader.load(o)),i}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return this.properties.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowEditText",{get:function(){return!1!==this.properties.allowEditText},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"allowEditImage",{get:function(){return!0===this.properties.allowEditImage},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minWidth",{get:function(){return this.properties.minWidth||this.baseDescription&&this.baseDescription.minWidth||u.ShapeMinDimension},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"minHeight",{get:function(){return this.properties.minHeight||this.baseDescription&&this.baseDescription.minHeight||u.ShapeMinDimension},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxWidth",{get:function(){return this.properties.maxWidth||this.baseDescription&&this.baseDescription.maxWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"maxHeight",{get:function(){return this.properties.maxHeight||this.baseDescription&&this.baseDescription.maxHeight},enumerable:!0,configurable:!0}),e.prototype.getTitle=function(){return void 0!==this.title?this.title:t.prototype.getTitle.call(this)},e.prototype.getDefaultText=function(){return void 0!==this.defaultText?this.defaultText:t.prototype.getDefaultText.call(this)},e.prototype.getDefaultImageUrl=function(){return void 0!==this.defaultImageUrl?this.defaultImageUrl:t.prototype.getDefaultImageUrl.call(this)},e.prototype.allowResizeHorizontally=function(e){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeHorizontally(e):t.prototype.allowResizeHorizontally.call(this,e))},e.prototype.allowResizeVertically=function(e){return!1!==this.properties.allowResize&&(this.baseDescription?this.baseDescription.allowResizeVertically(e):t.prototype.allowResizeVertically.call(this,e))},e.prototype.createConnectionPoints=function(){return this.properties&&this.properties.connectionPoints&&this.properties.connectionPoints.length?this.properties.connectionPoints.map((function(t){if(t&&"number"===typeof t.x&&"number"===typeof t.y){var e="number"===typeof t.side?t.side:s.ConnectionPointSide.Undefined;return new a.ConnectionPoint(t.x,t.y,e)}})).filter((function(t){return t})):t.prototype.createConnectionPoints.call(this)},e.prototype.createImagePrimitives=function(e,n){return this.baseDescription?this.baseDescription.createImagePrimitives(e,n):t.prototype.createImagePrimitives.call(this,e,n)},e.prototype.createShapePrimitives=function(t,e){var n=[],i=t.rectangle,r=i.left,a=i.top,s=i.width,l=i.height,u=!!this.properties.createTemplate,c=!this.baseDescription&&e;if(this.baseDescription)n=this.baseDescription.createShapePrimitives(t,e);else{var d=e&&this.svgToolboxImage?this.svgToolboxImage:this.svgImage;if(d){var h=r+(this.properties.svgLeft&&!c?this.properties.svgLeft*s:0),p=a+(this.properties.svgTop&&!c?this.properties.svgTop*l:0),m=this.properties.svgWidth&&!c?this.properties.svgWidth*s:s,g=this.properties.svgHeight&&!c?this.properties.svgHeight*l:l;n=n.concat([new o.ImagePrimitive(h,p,m,g,d.exportUrl)]),u=u&&!e}}if(u){var _=r+(this.properties.templateLeft&&!c?this.properties.templateLeft*s:0),v=a+(this.properties.templateTop&&!c?this.properties.templateTop*l:0),y=this.properties.templateWidth&&!c?this.properties.templateWidth*s:s,b=this.properties.templateHeight&&!c?this.properties.templateHeight*l:l;n=n.concat([new f.SvgElementPrimitive(_,v,y,b,this.properties.createTemplate,t.toNative())])}return n},e.prototype.createParameters=function(e){return this.baseDescription?this.baseDescription.createParameters(e):t.prototype.createParameters.call(this,e)},e.prototype.normalizeParameters=function(e,n){this.baseDescription?this.baseDescription.normalizeParameters(e,n):t.prototype.normalizeParameters.call(this,e,n)},e.prototype.modifyParameters=function(e,n,i,o){this.baseDescription?this.baseDescription.modifyParameters(e,n,i,o):t.prototype.modifyParameters.call(this,e,n,i,o)},e.prototype.getParameterPoints=function(e){return this.baseDescription?this.baseDescription.getParameterPoints(e):t.prototype.getParameterPoints.call(this,e)},e.prototype.getTextRectangle=function(t){if(this.baseDescription)return this.baseDescription.getTextRectangle(t);var e=t.rectangle,n=e.left,i=e.top,o=e.width,a=e.height;return r.Rectangle.create(n+(this.properties.textLeft?this.properties.textLeft*o:0),i+(this.properties.textTop?this.properties.textTop*a:0),this.properties.textWidth?this.properties.textWidth*o:o,this.properties.textHeight?this.properties.textHeight*a:a)},e.prototype.getRawImageSize=function(t){t.left,t.top;var e=t.width,n=t.height;return new r.Size(this.properties.imageWidth?this.properties.imageWidth*e:e,this.properties.imageHeight?this.properties.imageHeight*n:n)},e.prototype.getImagePlacementRectangle=function(t,e){var n=t.left,i=t.top,o=t.width,a=t.height;return r.Rectangle.create(n+(this.properties.imageLeft&&!e?this.properties.imageLeft*o:0),i+(this.properties.imageTop&&!e?this.properties.imageTop*a:0),this.properties.imageWidth&&!e?this.properties.imageWidth*o:0,this.properties.imageHeight&&!e?this.properties.imageHeight*a:0)},e.prototype.updateSvgImage=function(t){var e=t.imageUrl&&t.imageUrl===this.properties.svgToolboxUrl,n=e?this.svgToolboxImage:this.svgImage;t.base64?n.loadBase64Content(t.base64):n.setUnableToLoadFlag(),e||this.raiseShapeDescriptionChanged(this)},e}(l.ShapeWithImageDescription);e.CustomShapeDescription=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s,l){void 0===a&&(a="none");var u=t.call(this,s,l)||this;return u.x=e,u.y=n,u.width=i,u.height=o,u.url=r,u.preserveAspectRatio=a,u}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"image")},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.setUnitAttribute(e,"width",this.width),this.setUnitAttribute(e,"height",this.height),this.setPositionCorrectionAttribute(e),e.setAttribute("href",this.url),e.setAttribute("preserveAspectRatio",this.preserveAspectRatio),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.ImagePrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(14),s=n(103),l=n(20),u=n(30),c=n(15),d=n(55),h=n(105);e.ShapeDefaultDimension=1440,e.ShapeDefaultSize=new r.Size(e.ShapeDefaultDimension,e.ShapeDefaultDimension),e.SHAPE_IMAGE_CLASSNAMES={IMAGE:"dxdi-image",IMAGE_PLACEHOLDER:"dxdi-image-placeholder",LOADING_INDICATOR:"dxdi-spinner",USER_PIC:"dxdi-user",WARNING_MARK:"dxdi-warning"};var f=function(t){function n(n,i){void 0===n&&(n=e.ShapeDefaultSize.clone());var o=t.call(this,n,i)||this;return o.hasDefaultText=i,o.defaultIconSize=480,o}return i(n,t),Object.defineProperty(n.prototype,"enableImage",{get:function(){return!0},enumerable:!0,configurable:!0}),n.prototype.getImageMargin=function(t){return t?a.UnitConverter.pixelsToTwips(2):a.UnitConverter.pixelsToTwips(3)},n.prototype.createImagePrimitives=function(t,n){if(!this.enableImage)return[];var i=this.getImagePlacementRectangle(t.rectangle,n);if(n)return this.createImagePlaceholder(i);var o=[];if(o=t.image.isEmpty||t.image.unableToLoad?o.concat(this.createEmptyImagePrimitives(i,t.image.unableToLoad)):""===t.image.renderUrl?o.concat(this.createLoadingImagePrimitives(i)):o.concat(this.createLoadedImagePrimitives(i,t.image.renderUrl)),""===t.image.renderUrl){var r=c.RenderUtils.generateSvgElementId("clipImage");return[].concat([new u.GroupPrimitive(o,e.SHAPE_IMAGE_CLASSNAMES.IMAGE,void 0,r),new d.ClipPathPrimitive(r,[new l.RectanglePrimitive(i.left,i.top,i.width,i.height)])])}return o},n.prototype.createImagePlaceholder=function(t){return[]},n.prototype.createLoadedImagePrimitives=function(t,i){return[new s.ImagePrimitive(t.left,t.top,t.width,t.height,i,n.imageScalingRule,void 0,e.SHAPE_IMAGE_CLASSNAMES.IMAGE)]},n.prototype.createLoadingImagePrimitives=function(t){var n=this.getIconPlacementRectangle(t);return[h.ShapeImageIndicator.createLoadingIndicatorPrimitives(n.left,n.top,this.defaultIconSize,a.UnitConverter.pixelsToTwips(5),e.SHAPE_IMAGE_CLASSNAMES.LOADING_INDICATOR)]},n.prototype.createEmptyImagePrimitives=function(t,e){var n=this.getIconPlacementRectangle(t),i=[];return i=i.concat(this.createEmptyImagePrimitive(n)),e&&(i=i.concat(this.createWarningPrimitive(n))),i},n.prototype.createEmptyImagePrimitive=function(t){return new u.GroupPrimitive([])},n.prototype.createWarningPrimitive=function(t){return new u.GroupPrimitive([])},n.prototype.getIconPlacementRectangle=function(t){var e=new r.Rectangle(new r.Point(t.left,t.top),new r.Size(this.defaultIconSize,this.defaultIconSize));return e.width<t.width&&(e.position.x=t.left+(t.width-e.width)/2),e.height<t.height&&(e.position.y=t.top+(t.height-e.height)/2),e},n.prototype.getImagePlacementRectangle=function(t,e){var n=this.getImageSize(t,e),i=r.Rectangle.create(t.left,t.top,n.width,n.height),o=this.getTextBlockOffset(t,e);return o.right>0?i.position.x=t.right-o.right-this.getImageMargin(e):o.left>0&&(i.position.x+=this.getImageMargin(e)),o.bottom>0?i.position.y=t.bottom-o.bottom-this.getImageMargin(e):i.position.y+=this.getImageMargin(e),(o.top>0||o.bottom>0)&&(i.position.x=i.left+(t.width-i.width)/2),i},n.prototype.getImageSize=function(t,e){var n=this.getRawImageSize(t,e);return this.correctImageSize(n)},n.prototype.getRawImageSize=function(t,e){return new r.Size(0,0)},n.prototype.correctImageSize=function(t){return t.width=Math.max(t.width,0),t.height=Math.max(t.height,0),t},n.prototype.getTextBlockOffset=function(t,e){return r.Offset.empty()},n.imageScalingRule="xMidYMid meet",n}(o.ShapeDescription);e.ShapeWithImageDescription=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(43),o=n(2),r=n(4),a=n(30),s=n(22),l=n(20),u=function(){function t(t,e,n,i,o){this.x=t,this.y=e,this.size=n,this.borderThickness=i,this.className=o,this.animationStarted=!1}return t.createLoadingIndicatorPrimitives=function(e,n,i,o,r){return new t(e,n,i,o,r).createLoadingIndicatorPrimitive()},t.createUserIconPrimitives=function(e,n,i,o,r){return new t(e,n,i,o,r).createUserIconPrimitive()},t.createWarningIconPrimitives=function(e,n,i,o){return new t(e,n,i,void 0,o).createWarningIconPrimitive()},t.prototype.rotate=function(t,e,n,i){if(this.animationStarted){var o="rotate("+Math.round(i)%1080/3+" "+e+" "+n+")";t.setAttribute("transform",o),this.animationRequestId=requestAnimationFrame(function(i){this.rotate(t,e,n,i)}.bind(this))}},t.prototype.onApplyLoadingIndicatorElementProperties=function(t){var e=[r.UnitConverter.twipsToPixelsF(this.x+this.size/2),r.UnitConverter.twipsToPixelsF(this.y+this.size/2)],n=e[0],i=e[1];s.Browser.IE?(this.animationRequestId=requestAnimationFrame(function(e){this.rotate(t,n,i,e)}.bind(this)),this.animationStarted=!0):t.style.setProperty("transform-origin",n+"px "+i+"px")},t.prototype.center=function(){return[r.UnitConverter.twipsToPixelsF(this.x+this.size/2),r.UnitConverter.twipsToPixelsF(this.y+this.size/2)]},t.prototype.createLoadingIndicatorPrimitive=function(){var t=this.center(),e=t[0],n=t[1],s=r.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2);return new a.GroupPrimitive([new i.EllipsePrimitive(e+"",n+"",s+"",s+""),new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(e+s+"",n+""),new o.PathPrimitiveArcToCommand(s+"",s+"",0,!1,!1,e+"",n-s+"")])],this.className,void 0,void 0,this.onApplyLoadingIndicatorElementProperties.bind(this),this.onBeforeDispose.bind(this))},t.prototype.createUserIconPrimitive=function(){var t=this.center(),e=t[0],n=t[1],s=r.UnitConverter.twipsToPixelsF(this.size/2-this.borderThickness/2),l=r.UnitConverter.twipsToPixelsF(this.size);return new a.GroupPrimitive([new i.EllipsePrimitive(e+"",n+"",s+"",s+"",void 0,"dxdi-background"),new i.EllipsePrimitive(e+"",n-l/8+"",l/8+"",l/8+""),new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(e+"",n+l/16+""),new o.PathPrimitiveCubicCurveToCommand(e+.1375*l+"",n+l/16+"",e+l/4+"",n+.11875*l+"",e+l/4+"",n+.1875*l+""),new o.PathPrimitiveLineToCommand(e+l/4+"",n+l/4+""),new o.PathPrimitiveLineToCommand(e-l/4+"",n+l/4+""),new o.PathPrimitiveLineToCommand(e-l/4+"",n+.1875*l+""),new o.PathPrimitiveCubicCurveToCommand(e-l/4+"",n+.11875*l+"",e-.1375*l+"",n+l/16+"",e+"",n+l/16+""),new o.PathPrimitiveClosePathCommand])],this.className)},t.prototype.createWarningIconPrimitive=function(){var t=this.center(),e=t[0],n=t[1],o=r.UnitConverter.twipsToPixelsF(this.size/2)-1,s=r.UnitConverter.twipsToPixelsF(this.size/8);return new a.GroupPrimitive([new i.EllipsePrimitive(e+"",n+"",o+"",o+""),new l.RectanglePrimitive(e-s/2+.5+"",n+o-r.UnitConverter.twipsToPixelsF(this.size/4)+"",s+"",s+""),new l.RectanglePrimitive(e-s/2+.5+"",n-o+r.UnitConverter.twipsToPixelsF(this.size/4)-s+"",s+"",o+"")],this.className)},t.prototype.onBeforeDispose=function(){this.animationRequestId&&cancelAnimationFrame(this.animationRequestId),this.animationStarted=!1},t}();e.ShapeImageIndicator=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(34),o=function(){function t(t){this.loadedCallback=t}return t.prototype.load=function(t){t.isLoaded?this.loadedCallback(t):t.isLoading||this.loadInner(t)},t.prototype.loadInner=function(t){var e=this;return t.imageUrl?this.loadPictureByUrl(t,(function(){return e.finalizeLoading(t,t)})):t.base64&&this.loadPictureByBase64(t,(function(){return e.finalizeLoading(t,t)})),t},t.prototype.finalizeLoading=function(t,e){e||(e=i.ImageCache.instance.getImageData(t.actualId)),e.isLoaded||i.ImageCache.instance.finalizeLoading(e,t),this.loadedCallback(e)},t.prototype.loadPictureByBase64=function(t,e){var n=new Image;n.onload=function(){e(t)},n.src=t.base64},t.prototype.loadPictureByUrl=function(t,e){var n=this,i=new XMLHttpRequest;try{i.onload=function(){var o=new FileReader;o.onloadend=function(){t.base64=o.result,n.loadPictureByBase64(t,(function(t){return e(t)}))},o.readAsDataURL(i.response)},i.onerror=function(){return e(t)},i.onloadend=function(){404===i.status&&e(t)},i.open("GET",t.imageUrl,!0),i.responseType="blob",t.startLoading(),i.send()}catch(o){}},t}();e.ImageLoader=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=n(20),l=n(2),u=n(15),c=n(10),d=n(30),h=n(33),f=n(5),p=n(4);e.CONTAINER_HEADER_SIZE=360,e.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO=.2,e.CONTAINER_EXPAND_BUTTON_RECT_RATIO=.5,e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO=.3;var m=function(t){function n(e){return void 0===e&&(e=new r.Size(2*o.ShapeDefaultDimension,1.5*o.ShapeDefaultDimension)),t.call(this,e,!0)||this}return i(n,t),Object.defineProperty(n.prototype,"enableChildren",{get:function(){return!0},enumerable:!0,configurable:!0}),n.prototype.getDefaultText=function(){return p.DiagramLocalizationService.shapeTexts[a.ShapeTypes.Container]},n.prototype.createConnectionPoints=function(){return[new h.ConnectionPoint(.25,0,f.ConnectionPointSide.North),new h.ConnectionPoint(.5,0,f.ConnectionPointSide.North),new h.ConnectionPoint(.75,0,f.ConnectionPointSide.North),new h.ConnectionPoint(1,.25,f.ConnectionPointSide.East),new h.ConnectionPoint(1,.5,f.ConnectionPointSide.East),new h.ConnectionPoint(1,.75,f.ConnectionPointSide.East),new h.ConnectionPoint(.75,1,f.ConnectionPointSide.South),new h.ConnectionPoint(.5,1,f.ConnectionPointSide.South),new h.ConnectionPoint(.25,1,f.ConnectionPointSide.South),new h.ConnectionPoint(0,.75,f.ConnectionPointSide.West),new h.ConnectionPoint(0,.5,f.ConnectionPointSide.West),new h.ConnectionPoint(0,.25,f.ConnectionPointSide.West)]},n.prototype.getConnectionPointIndexForItem=function(t,e){return 4===(t&&t.getConnectionPoints()).length?3*e+1:e},n.prototype.getConnectionPointIndexForSide=function(t){return 3*t+1},n.prototype.createShapePrimitives=function(t,e){var n=t.rectangle,i=n.left,o=n.top,r=n.width,a=n.height,l=[];return t.expanded&&(l=l.concat([new s.RectanglePrimitive(i,o,r,a,t.style)])),l.concat(this.createHeaderPrimitives(t,e))},n.prototype.createExpandButtonPrimitives=function(t,n){var i=[new l.PathPrimitiveMoveToCommand(n.left+n.width*((1-e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2),n.center.y),new l.PathPrimitiveLineToCommand(n.left+n.width*((1-e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO),n.center.y)];t.expanded||(i=i.concat([new l.PathPrimitiveMoveToCommand(n.center.x,n.top+n.height*((1-e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2)),new l.PathPrimitiveLineToCommand(n.center.x,n.top+n.height*((1-e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO)/2+e.CONTAINER_EXPAND_BUTTON_SIGN_RATIO))]));var o=n.inflate(-n.width*(1-e.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2,-n.height*(1-e.CONTAINER_EXPAND_BUTTON_RECT_RATIO)/2);return[new d.GroupPrimitive([new s.RectanglePrimitive(o.left,o.top,o.width,o.height,t.style),new l.PathPrimitive(i,t.style)],"shape-expand-btn",null,null,(function(e){u.RenderUtils.setElementEventData(e,c.MouseEventElementType.ShapeExpandButton,t.key)}))]},n}(o.ShapeDescription);e.ContainerDescription=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(11),r=function(){function t(t){this.shapeDescriptionManager=t}return t.prototype.import=function(){var t=new i.DiagramModel,e=this.getObject();this.importPageSettings(t,this.getPageObject(e));for(var n=this.importShapes(this.getShapeObjects(e)),o=0;o<n.length;o++){var r=n[o];if(t.findItem(r.key))throw Error("Item key is duplicated");t.pushItem(r)}var a=this.importConnectors(this.getConnectorObjects(e));for(o=0;o<a.length;o++){var s=a[o];if(s.endItem=t.findItem(s.endItemKey)||void 0,delete s.endItemKey,s.beginItem=t.findItem(s.beginItemKey)||void 0,delete s.beginItemKey,t.findItem(s.key))throw Error("Item key is duplicated");t.pushItem(s),this.updateConnections(s)}return this.updateChildren(t.items,(function(e){return t.findItem(e)})),t},t.prototype.importItems=function(t){for(var e,n=[],i=this.getObject(),o={},r=this.importShapes(this.getShapeObjects(i)),a=0;a<r.length;a++){var s=r[a],l=s.key;e=t.getNextKey(e),s.key=e,o[l]=s,void 0!==s.dataKey&&(s.dataKey=void 0),n.push(s)}var u=this.importConnectors(this.getConnectorObjects(i));for(a=0;a<u.length;a++){var c=u[a];l=c.key,e=t.getNextKey(e),c.key=e,o[l]=c,void 0!==c.dataKey&&(c.dataKey=void 0);var d=c.endItemKey;c.endItem=o[d],delete c.endItemKey;var h=c.beginItemKey;c.beginItem=o[h],delete c.beginItemKey,n.push(c),this.updateConnections(c)}return this.updateChildren(n,(function(t){return o[t]})),n},t.prototype.importItemsData=function(t){for(var e=this.getObject(),n=this.importShapes(this.getShapeObjects(e)),i=0;i<n.length;i++){var o=n[i],r=void 0;void 0!==o.dataKey&&(r=t.findShapeByDataKey(o.dataKey)),r||(r=t.findShape(o.key)),r&&(r.dataKey=o.dataKey,r.locked=o.locked,r.position=o.position.clone(),r.expanded=o.expanded,o.expandedSize&&(r.expandedSize=o.expandedSize.clone()),r.size=o.size.clone(),r.parameters=o.parameters.clone(),r.style=o.style.clone(),r.styleText=o.styleText.clone(),r.zIndex=o.zIndex,r.text=o.text,r.description=o.description,r.image=o.image.clone())}var a=this.importConnectors(this.getConnectorObjects(e));for(i=0;i<a.length;i++){var s=a[i],l=void 0;void 0!==s.dataKey&&(l=t.findConnectorByDataKey(s.dataKey)),l||(l=t.findConnector(s.key)),l&&(l.dataKey=s.dataKey,l.locked=s.locked,l.points=s.points.slice(),l.properties=s.properties.clone(),l.style=s.style.clone(),l.endConnectionPointIndex=s.endConnectionPointIndex,l.beginConnectionPointIndex=s.beginConnectionPointIndex,l.texts=s.texts.clone(),l.styleText=s.styleText.clone(),l.zIndex=s.zIndex)}},t.prototype.importShapes=function(t){var e=[];if(!t)return e;if(!Array.isArray(t))throw Error("Invalid Format");for(var n=0;n<t.length;n++){var i=t[n],o=this.importShape(i);e.push(o),e=e.concat(this.importShapeChildren(i,o))}return e},t.prototype.importConnectors=function(t){var e=[];if(!t)return e;if(!Array.isArray(t))throw Error("Invalid Format");for(var n=0;n<t.length;n++){var i=t[n];e.push(this.importConnector(i))}return e},t.prototype.updateChildren=function(t,e){t.forEach((function(t){t instanceof o.Shape&&t.childKeys&&(t.childKeys.forEach((function(n){var i=e(n);i&&(t.children.push(i),i.container=t)})),delete t.childKeys)}))},t.prototype.updateConnections=function(t){t.endItem&&(t.endItem instanceof o.Shape?(t.endItem.attachedConnectors.push(t),t.points[t.points.length-1]=t.endItem.getConnectionPointPosition(t.endConnectionPointIndex,t.points[t.points.length-2])):(t.endItem=void 0,t.endConnectionPointIndex=-1)),t.beginItem&&(t.beginItem instanceof o.Shape?(t.beginItem.attachedConnectors.push(t),t.points[0]=t.beginItem.getConnectionPointPosition(t.beginConnectionPointIndex,t.points[1])):(t.beginItem=void 0,t.beginConnectionPointIndex=-1))},t.prototype.assert=function(t,e){if(void 0===t)throw Error("Invalid Format");if(void 0!==e&&typeof t!==e)throw Error("Invalid Format")},t}();e.ImporterBase=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.lockInputPositionUpdating=function(){return!0},e}(n(8).SimpleCommandBase);e.StylePropertyCommandBase=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=this;this.control.history.beginTransaction();var i=this.control.selection.getSelectedItems();return e=this.processParameter(e),i.forEach((function(t){var i=n.getStyleProperty();n.control.history.addAndRedo(n.createHistoryItem(t,i,e))})),this.updateInputPosition(e),this.control.history.endTransaction(),!0},e.prototype.getDefaultValue=function(){return this.getDefaultStyleObj()[this.getStyleProperty()]},e.prototype.processParameter=function(t){return t},e}(n(109).StylePropertyCommandBase);e.ChangeStylePropertyCommandBase=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(69),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.selection.inputPosition.getCurrentConnectorPropertyValue(this.getPropertyName())},e.prototype.getDefaultValue=function(){return this.getPropertyDefaultValue()},e.prototype.executeCore=function(t,e){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedConnectors().forEach((function(t){var i=n.getPropertyName();n.control.history.addAndRedo(new o.ChangeConnectorPropertyHistoryItem(t.key,i,e))})),this.control.selection.inputPosition.setConnectorPropertyValue(this.getPropertyName(),e),this.control.history.endTransaction(),!0},e.prototype.lockInputPositionUpdating=function(){return!0},e}(n(8).SimpleCommandBase);e.ChangeConnectorPropertyCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(59),r=n(77),a=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var t=this.control.settings.snapToGrid?this.control.settings.gridSize:void 0,e=new a.TreeLayoutSettings(t);return e.orientation=a.DataLayoutOrientation.Vertical,e},e.prototype.createLayout=function(t,e){return new r.TreeLayoutBuilder(t,e).build()},e}(o.AutoLayoutCommandBase);e.AutoLayoutTreeVerticalCommand=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(53),r=function(){function t(){this.nodeKeys=[],this.nodeToLayout={},this.edgeToPosition={}}return t.prototype.forEachNode=function(t){var e=this;this.nodeKeys.forEach((function(n){return t(e.nodeToLayout[n],n)}))},t.prototype.reduce=function(t,e){var n=this;return this.nodeKeys.reduce((function(e,i,o){return t(e,n.nodeToLayout[i],o)}),e)},t.prototype.addNode=function(t){if(this.nodeToLayout[t.key])throw Error("Node layout is already registered");return this.nodeKeys.push(t.key),this.nodeToLayout[t.key]=t,t},t.prototype.hasNode=function(t){return!!this.nodeToLayout[t]},t.prototype.addEdge=function(t){if(this.edgeToPosition[t.key])throw Error("Edge layout is already registered");this.edgeToPosition[t.key]=t},t.prototype.getRectangle=function(t){var e=this;return i.GeometryUtils.getCommonRectangle(this.nodeKeys.map((function(t){return e.nodeToLayout[t].rectangle})))},t.prototype.offsetNodes=function(e,n){var i=this;void 0===e&&(e=0),void 0===n&&(n=0);var r=new t;return this.nodeKeys.forEach((function(t){var a=i.nodeToLayout[t];r.addNode(new o.NodeLayout(a.info,a.position.offset(e,n)))})),r.copyEdges(this),r},t.prototype.extend=function(t){var e=this;t.forEachNode((function(t){return e.addNode(t)})),this.copyEdges(t)},t.prototype.copyEdges=function(t){var e=this;Object.keys(t.edgeToPosition).forEach((function(n){var i=t.edgeToPosition[n];e.addEdge(new o.EdgeLayout(i.key,i.beginIndex,i.endIndex))}))},t}();e.GraphLayout=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(17),o=function(){function t(t,e){this.settings=t,this.graph=e}return t.prototype.getBreadthNodeSizeCore=function(t,e){var n=this.settings.orientation===i.DataLayoutOrientation.Vertical?t.size.width:t.size.height;return e||(n+=this.settings.orientation===i.DataLayoutOrientation.Vertical?t.margin.left+t.margin.right:t.margin.top+t.margin.bottom),n},t.prototype.getDepthNodeSizeCore=function(t){return this.settings.orientation===i.DataLayoutOrientation.Horizontal?t.size.width+t.margin.left+t.margin.right:t.size.height+t.margin.top+t.margin.bottom},t.prototype.chooseDirectionValue=function(t,e){return this.settings.direction===i.LogicalDirectionKind.Forward?t:e},t.prototype.getDirectionValue=function(t){return this.settings.direction===i.LogicalDirectionKind.Forward?t:-t},t.prototype.getComponentOffset=function(t){var e=t.getRectangle(!0);return(this.settings.orientation===i.DataLayoutOrientation.Vertical?e.width:e.height)+this.settings.componentSpacing},t.prototype.setComponentOffset=function(t,e){return this.settings.orientation===i.DataLayoutOrientation.Vertical?t.offsetNodes(e):t.offsetNodes(0,e)},t}();e.LayoutBuilder=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(116),r=n(10),a=n(30),s=n(15),l=n(32),u=n(11),c=n(6),d=function(t){function e(e,n,i){var o=t.call(this,n,i)||this;return o.itemSelectorGroupContainers={},o.itemSelectorElements={},o.itemGroupContainers={},o.itemElements={},o.itemChildElements={},o.pendingChanges={},o.updatesLock=0,o.initializeContainerElements(e),o}return i(e,t),e.prototype.initializeContainerElements=function(t){this.itemSelectorsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),t),this.itemsContainer=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null),t)},e.prototype.clear=function(){s.RenderUtils.removeContent(this.itemSelectorsContainer),s.RenderUtils.removeContent(this.itemsContainer),this.itemSelectorGroupContainers={},this.itemSelectorElements={},this.itemGroupContainers={},this.itemElements={},this.itemChildElements={}},e.prototype.beginUpdate=function(){this.updatesLock++},e.prototype.endUpdate=function(){this.updatesLock--,0===this.updatesLock&&this.applyPendingChanges()},e.prototype.getPendingChanges=function(){var t=this;return Object.keys(this.pendingChanges).map((function(e){return t.pendingChanges[e]}))},e.prototype.applyPendingChanges=function(){var t=this.getPendingChanges();this.applyChangesCore(t),this.pendingChanges={}},e.prototype.applyChangesCore=function(t){var e=this,n=[];t.forEach((function(t){e.applyChange(t)||n.push(t)})),n.length&&n.length!==t.length&&this.applyChangesCore(n)},e.prototype.applyChange=function(t){var e=t.item;return!!this.getItemParent(e.zIndex,e.container&&e.container.key)&&(e instanceof u.Shape?this.applyShapeChange(e,t.type):e instanceof c.Connector&&this.applyConnectorChange(e,t.type),!0)},e.prototype.postponeChanges=function(t){var e=this;t.forEach((function(t){e.pendingChanges[t.key]?(t.type===o.ItemChangeType.Create||t.type===o.ItemChangeType.Remove||t.type===o.ItemChangeType.UpdateStructure&&e.pendingChanges[t.key].type===o.ItemChangeType.Update)&&(e.pendingChanges[t.key]=t):e.pendingChanges[t.key]=t}))},e.prototype.notifyModelChanged=function(t){0===this.updatesLock?this.applyChangesCore(t):this.postponeChanges(t)},e.prototype.notifyPageColorChanged=function(t){},e.prototype.notifyPageSizeChanged=function(t,e){},e.prototype.notifyDragStart=function(t){var e=this;t.forEach((function(t){e.itemElements[t]&&(e.itemElements[t].style.pointerEvents="none"),e.itemChildElements[t]&&(e.itemChildElements[t].style.pointerEvents="none"),e.itemSelectorElements[t]&&(e.itemSelectorElements[t].style.display="none")}))},e.prototype.notifyDragEnd=function(t){var e=this;t.forEach((function(t){e.itemElements[t]&&(e.itemElements[t].style.pointerEvents=""),e.itemChildElements[t]&&(e.itemChildElements[t].style.pointerEvents=""),e.itemSelectorElements[t]&&(e.itemSelectorElements[t].style.display="")}))},e.prototype.notifyDragScrollStart=function(){},e.prototype.notifyDragScrollEnd=function(){},e.prototype.notifyTextInputStart=function(t,e,n,i){var o=this.itemElements[t.key],r=o.getAttribute("class");o.setAttribute("class",r+" text-input")},e.prototype.notifyTextInputEnd=function(t){var e=this.itemElements[t.key],n=e.getAttribute("class");e.setAttribute("class",n.replace(" text-input",""))},e.prototype.notifyActualZoomChanged=function(t){var e="scale("+t+")";this.dom.changeByFunc(this.itemsContainer,(function(t){return t.setAttribute("transform",e)})),this.dom.changeByFunc(this.itemSelectorsContainer,(function(t){return t.setAttribute("transform",e)})),this.actualZoom=t},e.prototype.notifyViewAdjusted=function(t){},e.prototype.applyShapeChange=function(t,e){var n=t.key,i=t.container&&t.container.key,a=this.getItemSelectorGroupContainer(t.zIndex,i),s=this.getItemGroupContainer(t.zIndex,i),l="shape";switch(t.enableChildren&&(l+=" container"),t.isLocked&&(l+=" locked"),e){case o.ItemChangeType.Create:this.itemSelectorElements[n]=this.createItemElements(n,t.getSelectorPrimitives(),a,l,r.MouseEventElementType.Shape),this.itemElements[n]=this.createItemElements(n,t.getPrimitives(),s,l,r.MouseEventElementType.Shape),t.enableChildren&&(this.itemChildElements[n]=this.createItemElements(n,[],s,"container-children",r.MouseEventElementType.Undefined),this.changeItemChildrenVisibility(this.itemChildElements[n],t.expanded));break;case o.ItemChangeType.Remove:this.removeItemElements(this.itemSelectorElements[n]),delete this.itemSelectorElements[n],this.removeItemElements(this.itemElements[n]),delete this.itemElements[n],this.itemChildElements[n]&&(this.removeItemElements(this.itemChildElements[n]),delete this.itemChildElements[n],delete this.itemGroupContainers[n],delete this.itemSelectorGroupContainers[n]);break;case o.ItemChangeType.UpdateStructure:case o.ItemChangeType.Update:this.changeItemElements(t.getSelectorPrimitives(),this.itemSelectorElements[n],e===o.ItemChangeType.UpdateStructure),this.changeItemElements(t.getPrimitives(),this.itemElements[n],e===o.ItemChangeType.UpdateStructure,l),this.itemChildElements[n]&&this.changeItemChildrenVisibility(this.itemChildElements[n],t.expanded),a!==(this.itemSelectorElements[n]&&this.itemSelectorElements[n].parentNode)&&this.moveItemElements(a,this.itemSelectorElements[n]),s!==(this.itemElements[n]&&this.itemElements[n].parentNode)&&this.moveItemElements(s,this.itemElements[n]),this.itemChildElements[n]&&s!==this.itemChildElements[n].parentNode&&this.moveItemElements(s,this.itemChildElements[n])}},e.prototype.applyConnectorChange=function(t,e){var n=t.key,i=t.container&&t.container.key,a=this.getItemSelectorGroupContainer(t.zIndex,i),s=this.getItemGroupContainer(t.zIndex,i);switch(e){case o.ItemChangeType.Create:this.itemSelectorElements[n]=this.createItemElements(n,t.getSelectorPrimitives(),a,"connector",r.MouseEventElementType.Connector),this.itemElements[n]=this.createItemElements(n,t.getPrimitives(),s,"connector",r.MouseEventElementType.Connector);break;case o.ItemChangeType.Remove:this.removeItemElements(this.itemSelectorElements[n]),delete this.itemSelectorElements[n],this.removeItemElements(this.itemElements[n]),delete this.itemElements[n];break;case o.ItemChangeType.UpdateStructure:case o.ItemChangeType.Update:this.changeItemElements(t.getSelectorPrimitives(),this.itemSelectorElements[n],e===o.ItemChangeType.UpdateStructure),this.changeItemElements(t.getPrimitives(),this.itemElements[n],e===o.ItemChangeType.UpdateStructure),a!==(this.itemSelectorElements[n]&&this.itemSelectorElements[n].parentNode)&&this.moveItemElements(a,this.itemSelectorElements[n]),s!==(this.itemElements[n]&&this.itemElements[n].parentNode)&&this.moveItemElements(s,this.itemElements[n])}},e.prototype.createItemElements=function(t,e,n,i,o){var r=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],i,void 0,void 0,(function(e){return s.RenderUtils.setElementEventData(e,o,t)})),n);return this.createAndChangePrimitivesElements(e,r),r},e.prototype.changeItemElements=function(t,e,n,i){n||t.length!==e.childNodes.length?(s.RenderUtils.removeContent(e),this.createAndChangePrimitivesElements(t,e)):this.dom.changeChildrenByPrimitives(t,e),i&&this.changePrimitiveElement(new a.GroupPrimitive([],i),e)},e.prototype.removeItemElements=function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.moveItemElements=function(t,e,n){e&&t&&(n?t.insertBefore(e,n):t.appendChild(e))},e.prototype.changeItemChildrenVisibility=function(t,e){t.style.display=e?"":"none"},e.prototype.getItemGroupContainerKey=function(t,e){return void 0!==e?t+"_"+e:t.toString()},e.prototype.getItemGroupContainer=function(t,e){var n=void 0!==e?this.getItemParent(t,e):this.itemsContainer,i=e||"Main";return void 0!==this.itemGroupContainers[i]&&void 0!==this.itemGroupContainers[i][t]||(void 0===this.itemGroupContainers[i]&&(this.itemGroupContainers[i]=[]),this.itemGroupContainers[i][t]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,t),n,this.itemGroupContainers[i][t+1])),this.itemGroupContainers[i][t]},e.prototype.getItemSelectorGroupContainer=function(t,e){var n=void 0!==e?this.getItemSelectorParent(t,e):this.itemSelectorsContainer,i=e||"Main";return void 0!==this.itemSelectorGroupContainers[i]&&void 0!==this.itemSelectorGroupContainers[i][t]||(void 0===this.itemSelectorGroupContainers[i]&&(this.itemSelectorGroupContainers[i]=[]),this.itemSelectorGroupContainers[i][t]=this.createAndChangePrimitiveElement(new a.GroupPrimitive([],null,t),n,this.itemSelectorGroupContainers[i][t+1])),this.itemSelectorGroupContainers[i][t]},e.prototype.getItemParent=function(t,e){return void 0!==e?this.itemChildElements[e]:this.getItemGroupContainer(t)},e.prototype.getItemSelectorParent=function(t,e){return void 0!==e?this.itemChildElements[e]:this.getItemSelectorGroupContainer(t)},e}(l.CanvasManagerBase);e.CanvasItemsManager=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Create=0]="Create",t[t.Update=1]="Update",t[t.UpdateStructure=2]="UpdateStructure",t[t.Remove=3]="Remove"}(e.ItemChangeType||(e.ItemChangeType={}));var i=function(){function t(t,e){this.item=t,this.type=e}return Object.defineProperty(t.prototype,"key",{get:function(){return this.item.key},enumerable:!0,configurable:!0}),t}();e.ItemChange=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(81),r=n(95),a=n(11),s=n(232),l=n(6),u=n(233),c=n(7),d=n(48),h=n(14),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&(this.isPasteSupportedByBrowser()||void 0!==o.ClipboardCommand.clipboardData)},e.prototype.isVisible=function(){return this.isPasteSupportedByBrowser()||void 0!==o.ClipboardCommand.clipboardData},e.prototype.executeCore=function(t,e){var n=this;return this.getClipboardData((function(t){n.performPaste(t,e)})),!0},e.prototype.performPaste=function(t,e){this.control.beginUpdate(!0),this.control.history.beginTransaction();var n=[],i=new r.Importer(this.control.shapeDescriptionManager,t).importItems(this.control.model);this.calculateSelectionOffset(i,this.control.getPastePosition()||e);for(var o=0;o<i.length;o++){var h=i[o];h instanceof a.Shape?(h.position=this.getShapeNewPosition(h.position),this.control.history.addAndRedo(new s.ImportShapeHistoryItem(h))):h instanceof l.Connector&&(this.changeConnectorPoints(h),this.control.history.addAndRedo(new u.ImportConnectorHistoryItem(h)));var f=h.container&&h.container.key;f&&-1!==n.indexOf(f)||n.push(h.key)}c.ModelUtils.tryUpdateModelSize(this.control.history,this.control.model),this.control.history.addAndRedo(new d.SetSelectionHistoryItem(this.control.selection,n)),this.control.history.endTransaction(),this.control.endUpdate(!0),this.control.barManager.updateItemsState()},e.prototype.calculateSelectionOffset=function(t,e){},e.getShapeNewPosition=function(t,n){for(;t.findShapeAtPosition(n);)n=n.offset(e.positionOffset,e.positionOffset);return n},e.changeConnectorPoints=function(t,n){for(;t.findConnectorAtPoints(n.points);)n.points.forEach((function(t){t.x+=e.positionOffset,t.y+=e.positionOffset}))},e.positionOffset=h.UnitConverter.pixelsToTwips(10),e}(o.ClipboardCommand);e.PasteSelectionCommandBase=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(59),r=n(61),a=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var t=new a.LayoutSettings;return t.orientation=a.DataLayoutOrientation.Horizontal,t},e.prototype.createLayout=function(t,e){return new r.SugiyamaLayoutBuilder(t,e).build()},e}(o.AutoLayoutCommandBase);e.AutoLayoutLayeredHorizontalCommand=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(17),r=n(77),a=n(61);!function(t){t[t.Tree=0]="Tree",t[t.Sugiyama=1]="Sugiyama"}(i=e.DataLayoutType||(e.DataLayoutType={}));var s=function(){function t(t){this.layoutType=void 0!==t&&void 0!==t.type?t.type:i.Sugiyama,this.layoutSettings=this.layoutType===i.Sugiyama?new o.LayoutSettings:new o.TreeLayoutSettings,void 0!==t&&(void 0!==t.orientation&&(this.layoutSettings.orientation=t.orientation),this.skipPointIndices=t.skipPointIndices)}return t.prototype.getLayoutBuilder=function(t){return this.layoutType===i.Tree?new r.TreeLayoutBuilder(this.layoutSettings,t):new a.SugiyamaLayoutBuilder(this.layoutSettings,t)},t}();e.DataLayoutParameters=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(59),r=n(77),a=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var t=this.control.settings.snapToGrid?this.control.settings.gridSize:void 0,e=new a.TreeLayoutSettings(t);return e.orientation=a.DataLayoutOrientation.Horizontal,e},e.prototype.createLayout=function(t,e){return new r.TreeLayoutBuilder(t,e).build()},e}(o.AutoLayoutCommandBase);e.AutoLayoutTreeHorizontalCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(59),r=n(61),a=n(17),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var t=new a.LayoutSettings;return t.orientation=a.DataLayoutOrientation.Vertical,t},e.prototype.createLayout=function(t,e){return new r.SugiyamaLayoutBuilder(t,e).build()},e}(o.AutoLayoutCommandBase);e.AutoLayoutLayeredVerticalCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this,n=this.control.selection.getSelectedItems(!0),i=!1;return n.forEach((function(t){t.locked!==e.getLockState()&&(i=!0)})),t.prototype.isEnabled.call(this)&&i},e.prototype.executeCore=function(t,e){return o.ModelUtils.changeSelectionLocked(this.control.history,this.control.model,this.control.selection,this.getLockState()),!0},e}(n(8).SimpleCommandBase);e.ChangeLockedCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(41),a=function(t){function e(e,n){var i=t.call(this)||this;return i.shapeKey=e.key,i.imageUrl=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.oldImage=e.image,t.changeShapeImage(e,new r.ImageInfo(this.imageUrl))},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.changeShapeImage(e,this.oldImage)},e}(o.HistoryItem);e.ChangeShapeImageHistoryItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(270),a=n(271),s=n(272),l=n(273),u=n(274),c=n(275),d=n(276),h=n(277),f=n(127),p=n(129),m=n(13),g=n(84),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.finish=function(){this.visualizerManager.resetConnectionPoints(),t.prototype.finish.call(this)},e.prototype.onMouseDownCore=function(e){if(e.modifiers===m.ModifierKey.Ctrl)this.startScrolling(e);else if(e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ConnectorText){var n=e.source.key;this.modifySelection(e,n),this.handler.switchState(new h.MouseHandlerMoveConnectorTextState(this.handler,this.history,this.model))}else e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ShapeResizeBox?this.handler.switchState(new a.MouseHandlerResizeShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)):e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ShapeParameterBox?this.handler.switchState(new l.MouseHandlerDragParameterPointState(this.handler,this.history,this.model)):e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ConnectorPoint?this.handler.switchState(new r.MouseHandlerMoveConnectorPointState(this.handler,this.history,this.model,this.visualizerManager)):e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ConnectorSide?this.handler.switchState(new s.MouseHandlerMoveConnectorSideState(this.handler,this.history,this.model)):e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ConnectorOrthogonalSide?this.handler.switchState(new c.MouseHandlerMoveConnectorOrthogonalSideState(this.handler,this.history,this.model)):e.button===o.MouseButton.Left&&e.source.type===o.MouseEventElementType.ShapeConnectionPoint?this.handler.switchState(new u.MouseHandlerCreateConnectorState(this.handler,this.history,this.model,this.visualizerManager,this.shapeDescriptionManager,this.selection)):t.prototype.onMouseDownCore.call(this,e)},e.prototype.onShapeMouseDown=function(e){if(e.button===o.MouseButton.Left){var n=e.source.key;g.MouseHandlerMoveClonedDiagramItemState.isMoveClonedEvent(e)?(this.selection.add(n),this.handler.switchToMoveClonedShapeState(),this.handler.state.onMouseDown(e)):(this.modifySelection(e,n),this.selection.getSelectedShapes(!1).length&&(this.handler.switchState(new p.MouseHandlerMoveShapeState(this.handler,this.history,this.model,this.selection,this.visualizerManager)),this.handler.state.onMouseDown(e)))}else t.prototype.onShapeMouseDown.call(this,e)},e.prototype.onDragStart=function(t){this.handler.switchState(new d.MouseHandlerBeforeToolboxDraggingState(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager)),this.handler.state.onDragStart(t)},e.prototype.onMouseMoveCore=function(e){this.updateConnectionsOnMouseMove(e),t.prototype.onMouseMoveCore.call(this,e)},e.prototype.updateConnectionsOnMouseMove=function(t){var e=this.model.findItem(t.source.key);this.visualizerManager.updateConnections(e,t.source.type,t.source.value)},e.prototype.canDragObjectOnMouseDown=function(t){return!0},e.prototype.canExpandContainerOnMouseDown=function(t){return!0},e.prototype.canClearSelectionOnMouseDown=function(){return!1},e.prototype.processOnMouseMoveAfterLimit=function(t){this.startSelection(t)},e.prototype.canSelectOnMouseUp=function(t){return!1},e.prototype.canClearSelectionOnMouseUp=function(){return!0},e}(f.MouseHandlerDefaultStateBase);e.MouseHandlerDefaultState=_},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=n(10),a=n(26),s=n(90),l=n(36),u=n(47),c=n(7),d=n(13),h=function(t){function e(e,n,i,o){var r=t.call(this,e,n)||this;return r.model=i,r.visualizerManager=o,r}return i(e,t),e.prototype.finish=function(){this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),t.prototype.finish.call(this)},e.prototype.onMouseMove=function(e){if(t.prototype.onMouseMove.call(this,e),this.allowAttachToObjects(e,!1,!1)){if(this.connector){var n=this.connector.getExtremeItem(this.pointPosition);this.visualizerManager.setConnectionTarget(n,e.source.type);var i=this.connector.getExtremeConnectionPointIndex(this.pointPosition);(n||-1===this.oppositeConnectionPointIndex)&&this.allowAttachToObjects(e,!0,!1)||(n=this.model.findItem(e.source.key)),this.visualizerManager.setConnectionPoints(n,e.source.type,i,!0)}}else this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints()},e.prototype.onApplyChanges=function(t){var e=this.getSnappedPoint(t,t.modelPoint);if(void 0!==this.pointPosition){void 0===this.oppositePointPosition&&(this.oppositePointPosition=this.getOppositePointPosition(),this.oppositeItem=this.connector.getExtremeItem(this.oppositePointPosition),this.oppositeConnectionPointIndex=this.connector.getExtremeConnectionPointIndex(this.oppositePointPosition)),this.targetItem=this.model.findItem(t.source.key);var n=this.allowAttachToObjects(t,!0,!0)?this.targetItem:void 0,i=-1;t.source.type===r.MouseEventElementType.ShapeConnectionPoint&&(i=parseInt(t.source.value)),!n||t.source.type!==r.MouseEventElementType.Shape&&t.source.type!==r.MouseEventElementType.ShapeConnectionPoint||this.connector.getExtremeItem(this.oppositePointPosition)===n&&(-1===i||-1===this.oppositeConnectionPointIndex||i===this.oppositeConnectionPointIndex)?this.connector.getExtremeItem(this.pointPosition)&&(this.history.addAndRedo(new s.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(this.oppositeConnectionPointIndex)):(this.connector.getExtremeItem(this.pointPosition)===n&&this.connector.getExtremeConnectionPointIndex(this.pointPosition)===i||(this.connector.getExtremeItem(this.pointPosition)&&this.history.addAndRedo(new s.DeleteConnectionHistoryItem(this.connector,this.pointPosition)),this.history.addAndRedo(new l.AddConnectionHistoryItem(this.connector,n,i,this.pointPosition)),this.oppositeItem&&this.updateOppositeItemConnectionPointIndex(i)),e=n.getConnectionPointPosition(i,this.connector.points[this.pointIndex+(this.pointPosition===o.ConnectorPosition.End?-1:1)]),this.visualizerManager.setConnectionPointIndex(i))}this.history.addAndRedo(new u.MoveConnectorPointHistoryItem(this.connector.key,this.pointIndex,e)),c.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,this.connector),this.handler.tryUpdateModelSize()},e.prototype.updateOppositeItemConnectionPointIndex=function(t){this.history.addAndRedo(new s.DeleteConnectionHistoryItem(this.connector,this.oppositePointPosition)),this.history.addAndRedo(new l.AddConnectionHistoryItem(this.connector,this.oppositeItem,-1===t?-1:this.oppositeConnectionPointIndex,this.oppositePointPosition))},e.prototype.onFinishWithChanges=function(){c.ModelUtils.updateConnectorContainer(this.history,this.model,this.connector),c.ModelUtils.removeUnnecessaryConnectorPoints(this.history,this.connector)},e.prototype.getDraggingElementKeys=function(){return this.connector?[this.connector.key]:[]},e.prototype.getOppositePointPosition=function(){return this.pointPosition===o.ConnectorPosition.Begin?o.ConnectorPosition.End:o.ConnectorPosition.Begin},e.prototype.allowAttachToObjects=function(t,e,n){if(t.modifiers&d.ModifierKey.Ctrl||t.modifiers&d.ModifierKey.Shift)return!1;var i=this.connector;if(i&&t.source.type===r.MouseEventElementType.Shape){var o=this.model.findItem(t.source.key);if(e&&this.model.findItemContainerCore(i,(function(t){return t===o})))return!1;if(e&&this.oppositeItem&&this.model.findItemContainerCore(this.oppositeItem,(function(t){return t===o})))return!1;if(n&&this.oppositeItem===o&&-1===this.oppositeConnectionPointIndex)return!1}return!0},e}(a.MouseHandlerDraggingState);e.MouseHandlerMoveConnectorPointStateBase=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e,o.pointIndex=n,o.point=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);t.addConnectorPoint(e,this.pointIndex,this.point.clone())},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.deleteConnectorPoint(e,this.pointIndex)},e}(n(3).HistoryItem);e.AddConnectorPointHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),r=n(10),a=n(13),s=n(279),l=n(281),u=n(282),c=n(128),d=n(14),h=n(283),f=function(t){function e(e,n,i,o,r,a,s,l){var u=t.call(this,e)||this;return u.history=n,u.selection=i,u.model=o,u.view=r,u.visualizerManager=a,u.shapeDescriptionManager=s,u.settings=l,u}return i(e,t),e.prototype.onMouseDown=function(t){this.onMouseDownCore(t),this.handler.state!==this&&this.handler.state.onMouseDown(t)},e.prototype.onMouseDownCore=function(t){t.modifiers===a.ModifierKey.Ctrl?this.startScrolling(t):t.source.type===r.MouseEventElementType.Shape&&this.canDragObjectOnMouseDown(t.source.key)?this.onShapeMouseDown(t):t.source.type===r.MouseEventElementType.Connector&&this.canDragObjectOnMouseDown(t.source.key)?this.onConnectorMouseDown(t):t.button===r.MouseButton.Left&&t.source.type===r.MouseEventElementType.ShapeExpandButton&&this.canExpandContainerOnMouseDown(t.source.key)?this.onShapeExpandBtnMouseDown(t):(t.source.type!==r.MouseEventElementType.Shape&&t.source.type!==r.MouseEventElementType.Connector&&this.canClearSelectionOnMouseDown()&&this.clearSelection(),this.startPoint=t.modelPoint)},e.prototype.onMouseMove=function(t){this.onMouseMoveCore(t),this.handler.state!==this&&(this.handler.state.onMouseDown(this.handler.mouseDownEvent),this.handler.state.onMouseMove(t))},e.prototype.onMouseMoveCore=function(t){this.startPoint&&(Math.abs(this.startPoint.x-t.modelPoint.x)>e.startLimit||Math.abs(this.startPoint.y-t.modelPoint.y)>e.startLimit)&&(this.processOnMouseMoveAfterLimit(t),this.startPoint=void 0)},e.prototype.onMouseUp=function(t){this.onMouseUpCore(t),this.handler.state!==this&&this.handler.state.onMouseUp(t)},e.prototype.onMouseUpCore=function(t){t.source.type===r.MouseEventElementType.Shape&&this.canSelectOnMouseUp(t.source.key)||t.source.type===r.MouseEventElementType.Connector&&this.canSelectOnMouseUp(t.source.key)||t.source.type===r.MouseEventElementType.ShapeExpandButton&&this.canSelectOnMouseUp(t.source.key)?this.modifySelection(t,t.source.key):this.startPoint&&this.canClearSelectionOnMouseUp()&&this.clearSelection(),this.startPoint=void 0},e.prototype.onMouseWheel=function(t){return!!(t.modifiers&a.ModifierKey.Ctrl)&&(this.handler.switchState(new u.MouseHandlerZoomOnWheelState(this.handler,this.settings,this.view)),this.handler.state.onMouseWheel(t),!0)},e.prototype.onLongTouch=function(t){this.modifySelection(t,t.source.key,!0)},e.prototype.onConnectorMouseDown=function(t){this.modifySelection(t,t.source.key),this.handler.switchState(new h.MouseHandlerMoveConnectorState(this.handler,this.history,this.model,this.selection,this.visualizerManager))},e.prototype.onShapeMouseDown=function(t){this.modifySelection(t,t.source.key)},e.prototype.onShapeExpandBtnMouseDown=function(t){this.modifySelection(t,t.source.key),this.handler.switchState(new s.MouseHandlerToggleShapeExpandedState(this.handler,this.history,this.model,this.selection))},e.prototype.finish=function(){this.startPoint=void 0},e.prototype.startSelection=function(t){t.button===r.MouseButton.Left&&this.handler.switchState(new l.MouseHandlerSelectionState(this.handler,this.selection,this.visualizerManager))},e.prototype.startScrolling=function(t){t.button===r.MouseButton.Left&&this.handler.switchState(new c.MouseHandlerScrollingState(this.handler,this.view,this.selection))},e.prototype.modifySelection=function(t,e,n){this.isMultipleSelectionModifier(t)||n?this.selection.hasKey(e)?this.selection.remove(e):this.selection.add(e):this.selection.hasKey(e)||this.selection.set([e])},e.prototype.clearSelection=function(){this.selection.set([])},e.prototype.inSelection=function(t){return this.selection.hasKey(t)},e.prototype.isMultipleSelectionModifier=function(t){return t.modifiers&a.ModifierKey.Ctrl||t.modifiers&a.ModifierKey.Shift},e.startLimit=d.UnitConverter.pixelsToTwips(1),e}(o.MouseHandlerStateBase);e.MouseHandlerDefaultStateBase=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),r=n(10),a=n(0),s=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.view=n,o.selection=i,o.lastOffset=new a.Point(0,0),o}return i(e,t),e.prototype.onMouseDown=function(t){t.preventDefault=!0,this.startPoint=this.getPointByEvent(t)},e.prototype.onMouseMove=function(t){if(t.button===r.MouseButton.Left){var e=this.currentPoint||this.startPoint;t.preventDefault=!0;var n=this.getPointByEvent(t),i=this.view.scrollBy(new a.Point(n.x-e.x,n.y-e.y));this.lastOffset=this.lastOffset.offset(i.x,i.y),this.currentPoint=n}else this.handler.switchToDefaultState()},e.prototype.onMouseUp=function(t){this.handler.switchToDefaultState()},e.prototype.cancelChanges=function(){this.currentPoint&&this.view.scrollBy(this.lastOffset.multiply(-1))},e.prototype.start=function(){this.handler.raiseDragScrollStart(),t.prototype.start.call(this)},e.prototype.finish=function(){this.handler.raiseDragScrollEnd(),this.currentPoint&&this.startPoint&&!this.currentPoint.equals(this.startPoint)||this.selection.set([]),t.prototype.finish.call(this)},e.prototype.getPointByEvent=function(t){return t.offsetPoint},e}(o.MouseHandlerCancellableState);e.MouseHandlerScrollingState=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(13),r=n(84),a=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i,o,r)||this;return a.model=i,a.selection=o,a.visualizerManager=r,a}return i(e,t),e.prototype.onApplyChanges=function(e){this.calculateFixedPosition(e),t.prototype.onApplyChanges.call(this,e)},e.prototype.onMouseMove=function(e){t.prototype.onMouseMove.call(this,e),this.switchToMoveClonedShapeState(e)},e.prototype.switchToMoveClonedShapeState=function(t){r.MouseHandlerMoveClonedDiagramItemState.isMoveClonedEvent(t)&&(this.cancelChanges(),this.handler.switchToMoveClonedShapeState(this.startPoint),this.handler.onMouseDown(t))},e.prototype.getXPosition=function(e,n){return this.fixedX?n:t.prototype.getXPosition.call(this,e,n)},e.prototype.getYPosition=function(e,n){return this.fixedY?n:t.prototype.getYPosition.call(this,e,n)},e.prototype.validateDraggingShapes=function(){return this.draggingShapes.length>0},e.prototype.validateDraggingConnectors=function(){return!0},e.prototype.calculateFixedPosition=function(t){this.fixedX=!1,this.fixedY=!1,t.modifiers&o.ModifierKey.Shift&&(Math.abs(this.startPoint.x-t.modelPoint.x)<Math.abs(this.startPoint.y-t.modelPoint.y)?this.fixedX=!0:this.fixedY=!0)},e}(n(130).MouseHandlerDragDiagramItemStateBase);e.MouseHandlerMoveShapeState=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(10),a=n(26),s=n(7),l=function(t,e,n){this.connector=t,this.hasAllSelectedShapes=e,this.shouldRemoveCustomPoints=n,this.startPoints=t.points.map((function(t){return t.clone()})),this.shouldRestoreCustomPoints=!1};e.DraggingConnector=l;var u=function(t){this.shape=t,this.startPosition=t.position.clone()},c=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n)||this;return a.model=i,a.selection=o,a.visualizerManager=r,a.startScrollLeft=0,a.startScrollTop=0,a}return i(e,t),e.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),t.prototype.finish.call(this)},e.prototype.onMouseDown=function(e){this.startPoint=e.modelPoint,this.draggingShapes=this.selection.getSelectedShapes(!1,!0).map((function(t){return new u(t)})),this.validateDraggingShapes()?(this.draggingConnectors=[],this.draggingConnectorsIndexByKey={},this.registerSelectedConnectors(),this.registerAttachedConnectorsInSelection(),this.validateDraggingConnectors()?(this.modelConnectorsWithoutBeginItemInfo=this.createModelConnectorsWithoutBeginItemInfo(),this.modelConnectorsWithoutEndItemInfo=this.createModelConnectorsWithoutEndItemInfo(),t.prototype.onMouseDown.call(this,e)):this.handler.switchToDefaultState()):this.handler.switchToDefaultState()},e.prototype.onMouseMove=function(e){t.prototype.onMouseMove.call(this,e),this.visualizerManager.setExtensionLines(this.selection.getSelectedShapes(!1,!0));var n=s.ModelUtils.findContainerByEventKey(this.model,this.selection,e.source.key);n&&s.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,n)?this.visualizerManager.setContainerTarget(n,e.source.type):this.visualizerManager.resetContainerTarget()},e.prototype.onApplyChanges=function(t){var e=this;if(this.draggingShapes.length){this.draggingShapes.forEach((function(n){return e.moveShape(n.shape,e.getPosition(t,n.startPosition))}));var n=this.draggingShapes[0],i=n.shape.position,o=n.startPosition.offset(-i.x,-i.y);this.moveConnectors(o)}else i=this.getSnappedPoint(t,t.modelPoint),o=this.startPoint.offset(-i.x,-i.y),this.moveConnectors(o);var r=s.ModelUtils.findContainerByEventKey(this.model,this.selection,t.source.key);r&&s.ModelUtils.canInsertSelectionToContainer(this.model,this.selection,r)?s.ModelUtils.insertSelectionToContainer(this.history,this.model,this.selection,r):s.ModelUtils.removeSelectionFromContainer(this.history,this.model,this.selection),this.handler.tryUpdateModelSize((function(t,n){e.modelConnectorsWithoutBeginItemInfo.forEach((function(e){e.point.x+=t,e.point.y+=n})),e.modelConnectorsWithoutEndItemInfo.forEach((function(e){e.point.x+=t,e.point.y+=n}))}))},e.prototype.getDraggingElementKeys=function(){return this.draggingShapes.map((function(t){return t.shape.key})).concat(this.draggingConnectors.map((function(t){return t.connector.key})))},e.prototype.getXPosition=function(t,e){return e+t.modelPoint.x-this.startPoint.x},e.prototype.getYPosition=function(t,e){return e+t.modelPoint.y-this.startPoint.y},e.prototype.getPosition=function(t,e){return new o.Point(this.handler.getSnappedPos(t,this.getXPosition(t,e.x),!0),this.handler.getSnappedPos(t,this.getYPosition(t,e.y),!1))},e.prototype.registerAttachedConnectorsInSelection=function(){var t=this;if(1!==this.draggingShapes.length||this.draggingConnectors.length)this.draggingShapes.forEach((function(e){var n=e.shape.attachedConnectors;n&&n.forEach((function(e){t.containsDraggingConnectorByKey(e.key)||t.registerConnector(e)}))}));else{var e=this.draggingShapes[0].shape.attachedConnectors;e&&e.forEach((function(e){!t.containsDraggingConnectorByKey(e.key)&&e.beginItem&&e.beginItem===e.endItem&&t.registerConnector(e)}))}},e.prototype.createDraggingConnector=function(t){var e=t.beginItem,n=t.endItem;if(!e&&!n)return new l(t,!1,!1);if(e===n)return new l(t,this.selection.hasKey(e.key),!1);var i=!1;return i=e&&n?this.selection.hasKey(n.key)&&this.selection.hasKey(e.key):e?this.selection.hasKey(e.key):this.selection.hasKey(n.key),new l(t,i,!i)},e.prototype.containsDraggingConnectorByKey=function(t){return void 0!==this.draggingConnectorsIndexByKey[t]},e.prototype.registerSelectedConnectors=function(){var t=this;this.selection.getSelectedConnectors(!1,!0).forEach((function(e){return t.registerConnector(e)}))},e.prototype.registerConnector=function(t){this.draggingConnectorsIndexByKey[t.key]=this.draggingConnectors.push(this.createDraggingConnector(t))-1},e.prototype.createModelConnectorsWithoutBeginItemInfo=function(){var t=this;return this.model.findConnectorsCore((function(e){return!e.beginItem&&!t.containsDraggingConnectorByKey(e.key)})).map((function(t){return{connector:t,point:t.points[0].clone()}}))},e.prototype.createModelConnectorsWithoutEndItemInfo=function(){var t=this;return this.model.findConnectorsCore((function(e){return!e.endItem&&!t.containsDraggingConnectorByKey(e.key)})).map((function(t){return{connector:t,point:t.points[t.points.length-1].clone()}}))},e.prototype.moveConnectors=function(t){var e=this;(t.x||t.y)&&this.draggingConnectors.forEach((function(n){e.changeConnectorPoints(n),e.moveConnector(n.connector,n.startPoints,t)}))},e.prototype.moveShape=function(t,e){var n=this;s.ModelUtils.setShapePosition(this.history,this.model,t,e),s.ModelUtils.updateMovingShapeConnections(this.history,t,this.modelConnectorsWithoutBeginItemInfo,this.modelConnectorsWithoutEndItemInfo,(function(){n.visualizerManager.resetConnectionTarget(),n.visualizerManager.resetConnectionPoints()}),(function(t,e){n.visualizerManager.setConnectionTarget(t,r.MouseEventElementType.Shape),n.visualizerManager.setConnectionPoints(t,r.MouseEventElementType.Shape,e,!0)})),this.draggingConnectors.length||s.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,t)},e.prototype.moveConnector=function(t,e,n){for(var i=t.beginItem?1:0,o=t.endItem?t.points.length-2:t.points.length-1,r=i;r<=o;r++)s.ModelUtils.setConnectorPoint(this.history,t,r,e[r].offset(-n.x,-n.y));s.ModelUtils.updateConnectorAttachedPoints(this.history,this.model,t)},e.prototype.changeConnectorPoints=function(t){t.shouldRemoveCustomPoints&&s.ModelUtils.shouldRemoveConnectorIntermediatePoints(t.connector)&&s.ModelUtils.removeConnectorIntermediatePointsCore(this.history,t.connector)},e}(a.MouseHandlerDraggingState);e.MouseHandlerDragDiagramItemStateBase=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.canDragObjectOnMouseDown=function(t){return!1},e.prototype.canExpandContainerOnMouseDown=function(t){return!1},e.prototype.canClearSelectionOnMouseDown=function(){return!1},e.prototype.processOnMouseMoveAfterLimit=function(t){this.startSelection(t)},e.prototype.canSelectOnMouseUp=function(t){return!0},e.prototype.canClearSelectionOnMouseUp=function(){return!0},e}(n(127).MouseHandlerDefaultStateBase);e.MouseHandlerDefaultReadOnlyState=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(10),a=n(13),s=n(62),l=n(22),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.contextMenuVisible=!1,e.canHideContextMenu=!0,e.onVisibilityChanged=new o.EventDispatcher,e}return i(e,t),e.prototype.onMouseDown=function(t){t.button===r.MouseButton.Left&&t.source.type!==r.MouseEventElementType.Undefined&&this.hideContextMenu()},e.prototype.onMouseUp=function(t){(!l.Browser.MacOSPlatform||l.Browser.MacOSPlatform&&this.canHideContextMenu)&&this.hideContextMenu(),this.canHideContextMenu=!0},e.prototype.onContextMenu=function(t){l.Browser.MacOSPlatform&&(this.canHideContextMenu=!1),this.showContextMenu(t.eventPoint,t.modelPoint)},e.prototype.onFocus=function(t){},e.prototype.onBlur=function(t){},e.prototype.onTextInputFocus=function(t){},e.prototype.onTextInputBlur=function(t){},e.prototype.onLongTouch=function(t){},e.prototype.onKeyDown=function(t){t.keyCode===a.KeyCode.Esc&&this.hideContextMenu()},e.prototype.showContextMenu=function(t,e){this.onVisibilityChanged.raise1((function(n){return n.notifyShowContextMenu(t,e)})),this.contextMenuVisible=!0},e.prototype.hideContextMenu=function(){this.contextMenuVisible&&(this.onVisibilityChanged.raise1((function(t){return t.notifyHideContextMenu()})),this.contextMenuVisible=!1)},e.prototype.notifyDragStart=function(t){},e.prototype.notifyDragEnd=function(t){},e.prototype.notifyDragScrollStart=function(){},e.prototype.notifyDragScrollEnd=function(){},e.prototype.notifyShowContextToolbox=function(t,e,n,i){},e.prototype.notifyHideContextToolbox=function(){},e.prototype.onUpdateUnlocked=function(t){},e}(s.BatchUpdatableObject);e.ContextMenuHandler=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(290),r=n(291),a=n(135),s=n(4),l=n(19),u=n(10),c=n(292),d=n(11),h=n(0),f=n(136),p=n(7),m=n(293),g=n(294),_=function(t){function e(e,n,i,l,u){void 0===u&&(u=l.readOnly);var d=t.call(this)||this;return d.selection=e,d.model=n,d.eventManager=i,d.settings=l,d.readOnly=u,d.onVisualizersUpdate=new s.EventDispatcher,d.connectionPointsVisualizer=new c.ConnectionPointsVisualizer(d.onVisualizersUpdate),d.connectionPointsVisualizer=new c.ConnectionPointsVisualizer(d.onVisualizersUpdate),d.connectionTargetVisualizer=new o.ConnectionTargetVisualizer(d.onVisualizersUpdate),d.containerTargetVisualizer=new r.ContainerTargetVisualizer(d.onVisualizersUpdate),d.extensionLinesVisualizer=new a.ExtensionLinesVisualizer(d.onVisualizersUpdate),d.resizeInfoVisualizer=new m.ResizeInfoVisualizer(d.onVisualizersUpdate),d.selectionRectangleVisualizer=new g.SelectionRectVisualizer(d.onVisualizersUpdate),d}return i(e,t),e.prototype.initialize=function(t){this.model=t},e.prototype.onMouseDown=function(t){},e.prototype.onMouseUp=function(t){},e.prototype.onMouseEnter=function(t){},e.prototype.onMouseLeave=function(t){this.resetConnectionPoints(),this.resetConnectionTarget(),this.resetExtensionLines(),this.resetContainerTarget(),this.resetResizeInfo(),this.resetSelectionRectangle()},e.prototype.onBlur=function(t){},e.prototype.onFocus=function(t){},e.prototype.updateConnections=function(t,e,n){var i=-1;n&&e===u.MouseEventElementType.ShapeConnectionPoint&&(i=parseInt(n));var o=t&&(!t.allowResizeHorizontally&&!t.allowResizeVertically||t.isLocked);this.setConnectionPoints(t,e,i,o)},e.prototype.setConnectionPoints=function(t,e,n,i){if(this.eventManager.isFocused())if(!t||e!==u.MouseEventElementType.Shape&&e!==u.MouseEventElementType.ShapeResizeBox&&e!==u.MouseEventElementType.ShapeConnectionPoint||void 0===t)this.connectionPointsVisualizer.reset();else{var o=t.key,r=this.selection.hasKey(o),a=t.getConnectionPoints();this.connectionPointsVisualizer.setPoints(o,a.map((function(e){return new c.ConnectionPointInfo(e,t.getConnectionPointSide(e))})),n,r&&!i&&t.rectangle)}},e.prototype.setConnectionPointIndex=function(t){this.connectionPointsVisualizer.setPointIndex(t)},e.prototype.updateConnectionPoints=function(){void 0!==this.model.findItem(this.connectionPointsVisualizer.getKey())?this.connectionPointsVisualizer.update():this.connectionPointsVisualizer.reset()},e.prototype.resetConnectionPoints=function(){this.connectionPointsVisualizer.reset()},e.prototype.setConnectionTarget=function(t,e){!t||e!==u.MouseEventElementType.Shape&&e!==u.MouseEventElementType.ShapeConnectionPoint?this.connectionTargetVisualizer.reset():this.connectionTargetVisualizer.setTargetRect(t.key,t.rectangle,t.strokeWidth)},e.prototype.resetConnectionTarget=function(){this.connectionTargetVisualizer.reset()},e.prototype.setContainerTarget=function(t,e){t&&!t.isLocked&&e===u.MouseEventElementType.Shape&&t.enableChildren?this.containerTargetVisualizer.setTargetRect(t.key,t.rectangle,t.strokeWidth):this.containerTargetVisualizer.reset()},e.prototype.resetContainerTarget=function(){this.containerTargetVisualizer.reset()},e.prototype.setExtensionLines=function(t){var e=this;if(this.eventManager.isFocused()){this.extensionLinesVisualizer.reset();var n=l.DiagramModel.getRectangle(t.filter((function(t){return t})));this.addPageExtensionLines(n),this.model.items.forEach((function(i){t.indexOf(i)>-1||i instanceof d.Shape&&e.addShapeExtensionLines(i,n)}))}},e.prototype.addPageExtensionLines=function(t){for(var e=Math.round(this.model.size.width/this.model.pageWidth),n=Math.round(this.model.size.height/this.model.pageHeight),i=0;i<e;i++)for(var o=0;o<n;o++){var r=new h.Point(i*this.model.pageWidth+this.model.pageWidth/2,o*this.model.pageHeight+this.model.pageHeight/2);if(Math.abs(t.center.x-r.x)<this.settings.gridSize/2){var s=new h.Segment(new h.Point(t.center.x,0),new h.Point(t.center.x,this.model.size.height));this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.HorizontalCenterToPageCenter,s,"")}Math.abs(t.center.y-r.y)<this.settings.gridSize/2&&(s=new h.Segment(new h.Point(0,t.center.y),new h.Point(this.model.size.width,t.center.y)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.VerticalCenterToPageCenter,s,"")),Math.abs(t.left-r.x)<this.settings.gridSize/2&&(s=new h.Segment(new h.Point(t.left,0),new h.Point(t.left,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.LeftToPageCenter,s,"")),Math.abs(t.top-r.y)<this.settings.gridSize/2&&(s=new h.Segment(new h.Point(0,t.top),new h.Point(this.model.size.width,t.top)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.TopToPageCenter,s,"")),Math.abs(t.right-r.x)<this.settings.gridSize/2&&(s=new h.Segment(new h.Point(t.right,0),new h.Point(t.right,this.model.size.height)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.RightToPageCenter,s,"")),Math.abs(t.bottom-r.y)<this.settings.gridSize/2&&(s=new h.Segment(new h.Point(0,t.bottom),new h.Point(this.model.size.width,t.bottom)),this.extensionLinesVisualizer.addSegment(a.ExtensionLineType.BottomToPageCenter,s,""))}},e.prototype.addShapeExtensionLines=function(t,e){var n,i,o,r,s,l,u,c,d=t.rectangle,p=t.strokeWidth-f.CanvasSelectionManager.extensionLineWidth,m=!0;if(e.right<d.left?(n=e.right,o=d.left,s=n+p+f.CanvasSelectionManager.extensionLineOffset,u=o-f.CanvasSelectionManager.extensionLineOffset):e.left>d.right&&(n=e.left,o=d.right,s=n-f.CanvasSelectionManager.extensionLineOffset,u=o+p+f.CanvasSelectionManager.extensionLineOffset),e.bottom<d.top?(i=e.bottom,r=d.top,l=i+p+f.CanvasSelectionManager.extensionLineOffset,c=r-f.CanvasSelectionManager.extensionLineOffset):e.top>d.bottom&&(i=e.top,r=d.bottom,l=i-f.CanvasSelectionManager.extensionLineOffset,c=r+p+f.CanvasSelectionManager.extensionLineOffset),void 0!=s&&void 0!==u){var g=this.getViewUnitText(Math.abs(n-o));if(e.center.y===d.center.y){var _=new h.Segment(new h.Point(s,e.center.y),new h.Point(u,d.center.y));this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.VerticalCenterAfter:a.ExtensionLineType.VerticalCenterBefore,_,m?g:""),m=!1}e.top===d.top&&(_=new h.Segment(new h.Point(s,e.top),new h.Point(u,d.top)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.TopToTopAfter:a.ExtensionLineType.TopToTopBefore,_,m?g:"")),e.bottom===d.bottom&&(_=new h.Segment(new h.Point(s,e.bottom+p),new h.Point(u,d.bottom+p)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.BottomToBottomAfter:a.ExtensionLineType.BottomToBottomBefore,_,m?g:"")),e.top===d.bottom&&(_=new h.Segment(new h.Point(s,e.top),new h.Point(u,d.bottom+p)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.TopToBottomAfter:a.ExtensionLineType.TopToBottomBefore,_,m?g:"")),e.bottom===d.top&&(_=new h.Segment(new h.Point(s,e.bottom+p),new h.Point(u,d.top)),this.extensionLinesVisualizer.addSegment(s>u?a.ExtensionLineType.BottomToTopAfter:a.ExtensionLineType.BottomToTopBefore,_,m?g:""))}void 0!=l&&void 0!==c&&(g=this.getViewUnitText(Math.abs(i-r)),e.center.x===d.center.x&&(_=new h.Segment(new h.Point(e.center.x,l),new h.Point(d.center.x,c)),this.extensionLinesVisualizer.addSegment(l>c?a.ExtensionLineType.HorizontalCenterBelow:a.ExtensionLineType.HorizontalCenterAbove,_,m?g:""),m=!1),e.left===d.left&&(_=new h.Segment(new h.Point(e.left,l),new h.Point(d.left,c)),this.extensionLinesVisualizer.addSegment(l>c?a.ExtensionLineType.LeftToLeftBelow:a.ExtensionLineType.LeftToLeftAbove,_,m?g:"")),e.right===d.right&&(_=new h.Segment(new h.Point(e.right+p,l),new h.Point(d.right+p,c)),this.extensionLinesVisualizer.addSegment(l>c?a.ExtensionLineType.RightToRightBelow:a.ExtensionLineType.RightToRightAbove,_,m?g:"")),e.left===d.right&&(_=new h.Segment(new h.Point(e.left,l),new h.Point(d.right+p,c)),this.extensionLinesVisualizer.addSegment(l>c?a.ExtensionLineType.LeftToRightBelow:a.ExtensionLineType.LeftToRightAbove,_,m?g:"")),e.right===d.left&&(_=new h.Segment(new h.Point(e.right+p,l),new h.Point(d.left,c)),this.extensionLinesVisualizer.addSegment(l>c?a.ExtensionLineType.RightToLeftBelow:a.ExtensionLineType.RightToLeftAbove,_,m?g:"")))},e.prototype.resetExtensionLines=function(){this.extensionLinesVisualizer.reset()},e.prototype.setResizeInfo=function(t){var e=l.DiagramModel.getRectangle(t),n=new h.Point(e.center.x,e.bottom+f.CanvasSelectionManager.resizeInfoOffset),i=this.getViewUnitText(e.width)+" x "+this.getViewUnitText(e.height);this.resizeInfoVisualizer.set(n,i)},e.prototype.resetResizeInfo=function(){this.resizeInfoVisualizer.reset()},e.prototype.setSelectionRectangle=function(t){this.selectionRectangleVisualizer.setRectangle(t)},e.prototype.resetSelectionRectangle=function(){this.selectionRectangleVisualizer.reset()},e.prototype.getViewUnitText=function(t){return p.ModelUtils.getUnitText(this.settings.viewUnits,s.DiagramLocalizationService.unitItems,s.DiagramLocalizationService.formatUnit,t)},e.prototype.notifyReadOnlyChanged=function(t){this.readOnly=t},e.prototype.notifyDragStart=function(t){},e.prototype.notifyDragEnd=function(t){},e.prototype.notifyDragScrollStart=function(){},e.prototype.notifyDragScrollEnd=function(){},e.prototype.onUpdateUnlocked=function(t){},e}(n(62).BatchUpdatableObject);e.VisualizerManager=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.dispatcher=t}return t.prototype.getKey=function(){return this.key},t.prototype.setTargetRect=function(t,e,n){this.key!==t&&(this.key=t,this.targetRect=e,this.targetStrokeWidth=n,this.raiseShow())},t.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.targetRect=void 0,this.targetStrokeWidth=0,this.raiseHide())},t}();e.TargetVisualizerBase=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.LeftToLeftAbove=0]="LeftToLeftAbove",t[t.LeftToLeftBelow=1]="LeftToLeftBelow",t[t.RightToRightAbove=2]="RightToRightAbove",t[t.RightToRightBelow=3]="RightToRightBelow",t[t.LeftToRightAbove=4]="LeftToRightAbove",t[t.LeftToRightBelow=5]="LeftToRightBelow",t[t.RightToLeftAbove=6]="RightToLeftAbove",t[t.RightToLeftBelow=7]="RightToLeftBelow",t[t.TopToTopBefore=8]="TopToTopBefore",t[t.TopToTopAfter=9]="TopToTopAfter",t[t.BottomToBottomBefore=10]="BottomToBottomBefore",t[t.BottomToBottomAfter=11]="BottomToBottomAfter",t[t.TopToBottomBefore=12]="TopToBottomBefore",t[t.TopToBottomAfter=13]="TopToBottomAfter",t[t.BottomToTopBefore=14]="BottomToTopBefore",t[t.BottomToTopAfter=15]="BottomToTopAfter",t[t.HorizontalCenterAbove=16]="HorizontalCenterAbove",t[t.HorizontalCenterBelow=17]="HorizontalCenterBelow",t[t.VerticalCenterBefore=18]="VerticalCenterBefore",t[t.VerticalCenterAfter=19]="VerticalCenterAfter",t[t.VerticalCenterToPageCenter=20]="VerticalCenterToPageCenter",t[t.HorizontalCenterToPageCenter=21]="HorizontalCenterToPageCenter",t[t.LeftToPageCenter=22]="LeftToPageCenter",t[t.RightToPageCenter=23]="RightToPageCenter",t[t.TopToPageCenter=24]="TopToPageCenter",t[t.BottomToPageCenter=25]="BottomToPageCenter"}(e.ExtensionLineType||(e.ExtensionLineType={}));var i=function(t,e,n){this.type=t,this.segment=e,this.text=n};e.ExtensionLine=i;var o=function(){function t(t){this.dispatcher=t,this.lines=[],this.lineIndexByType={}}return t.prototype.addSegment=function(t,e,n){var o=this.lineIndexByType[t];if(void 0===o){var r=new i(t,e,n),a=this.lines.push(r);this.lineIndexByType[r.type]=a-1,this.raiseShow()}else e.distance<this.lines[o].segment.distance&&(r=new i(t,e,n),this.lines.splice(o,1,r),this.raiseShow())},t.prototype.update=function(){this.raiseShow()},t.prototype.reset=function(){this.lines.length&&(this.lines=[],this.lineIndexByType={},this.raiseHide())},t.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifyExtensionLinesShow(t.lines)}))},t.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifyExtensionLinesHide()}))},t}();e.ExtensionLinesVisualizer=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(32),r=n(30),a=n(15),s=n(10),l=n(5),u=n(0),c=n(135),d=n(11),h=n(6),f=n(25),p=n(20),m=n(2),g=n(45),_=n(43),v=n(24),y=n(4),b=n(14),w=n(46);e.SELECTION_ELEMENT_CLASSNAMES={SELECTION_RECTANGLE:"selection-rect",CONNECTION_POINT:"connection-point",ACTIVE:"active",CONTAINER_TARGET:"container-target",CONNECTION_TARGET:"connection-target",EXTENSION_LINE:"extension-line",CONNECTION_MARK:"connection-mark",SELECTION_MARK:"selection-mark",LOCKED_SELECTION_MARK:"locked-selection-mark",ITEMS_SELECTION_RECT:"items-selection-rect",CONNECTOR_MULTI_SELECTION:"connector-multi-selection",CONNECTOR_SELECTION:"connector-selection",CONNECTOR_POINT_MARK:"connector-point-mark",CONNECTOR_SELECTION_MASK:"connector-selection-mask",CONNECTOR_SIDE_MARK:"connector-side-mark",ITEM_SELECTION_RECT:"item-selection-rect",ITEM_MULTI_SELECTION:"item-multi-selection-rect"};var x=function(t){function n(e,n,i,o){var r=t.call(this,n,o)||this;return r.readOnly=i,r.connectionPointElements=[],r.extensionLineElements=[],r.selectionMap={},r.initializeContainerElements(e),r}return i(n,t),n.prototype.initializeContainerElements=function(t){this.itemSelectionContainer=this.createAndChangePrimitiveElement(new r.GroupPrimitive([],null),t),this.visualizersContainer=this.createAndChangePrimitiveElement(new r.GroupPrimitive([],null),t),this.selectionMarksContainer=this.createAndChangePrimitiveElement(new r.GroupPrimitive([],null),t)},n.prototype.clear=function(){a.RenderUtils.removeContent(this.itemSelectionContainer),a.RenderUtils.removeContent(this.selectionMarksContainer),a.RenderUtils.removeContent(this.visualizersContainer),this.selectionRectElement=void 0,this.resizeInfoElement=void 0,this.connectionPointElements=[],this.connectionTargetElement=void 0,this.containerTargetElement=void 0,this.extensionLineElements=[],this.selectionMap={}},n.prototype.showSelectionRect=function(t){var n=new p.RectanglePrimitive(t.left,t.top,t.size.width,t.size.height,v.StrokeStyle.default1pxInstance,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_RECTANGLE),i=this.getSelectionRectElement(n);this.changePrimitiveElement(n,i)},n.prototype.hideSelectionRect=function(){void 0!==this.selectionRectElement&&this.dom.changeByFunc(this.selectionRectElement,(function(t){return t.style.display="none"}))},n.prototype.getSelectionRectElement=function(t){return void 0!==this.selectionRectElement?this.dom.changeByFunc(this.selectionRectElement,(function(t){return t.style.display=""})):this.selectionRectElement=this.createPrimitiveElement(t,this.visualizersContainer),this.selectionRectElement},n.prototype.showResizeInfo=function(t,e){var i=new p.RectanglePrimitive(t.x,t.y,0,0,v.StrokeStyle.default1pxInstance),o=new r.GroupPrimitive([i,new g.TextPrimitive(t.x,t.y,e,w.TextOwner.Resize)],"resize-info"),a=this.getResizeInfoElement(o);this.changePrimitiveElement(o,a);var s=this.dom.measurer.measureTextLine(e,null,w.TextOwner.Resize).transform(b.UnitConverter.pixelsToTwips);i.width=s.width+2*n.resizeInfoTextOffset,i.height=s.height+2*n.resizeInfoTextOffset,i.x=t.x-s.width/2-n.resizeInfoTextOffset,i.y=t.y-s.height/2-n.resizeInfoTextOffset;var l=new u.Rectangle(t,s);l=l.inflate(n.resizeInfoTextOffset,n.resizeInfoTextOffset),this.changePrimitiveElement(o,a)},n.prototype.hideResizeInfo=function(){void 0!==this.resizeInfoElement&&this.dom.changeByFunc(this.resizeInfoElement,(function(t){return t.style.display="none"}))},n.prototype.getResizeInfoElement=function(t){return void 0!==this.resizeInfoElement?this.dom.changeByFunc(this.resizeInfoElement,(function(t){return t.style.display=""})):this.resizeInfoElement=this.createPrimitiveElement(t,this.visualizersContainer),this.resizeInfoElement},n.prototype.showConnectionPoint=function(t,i,o,r,a,l){this.showConnectionPointCore(2*t,i.x,i.y,n.connectionPointLargeSize,n.connectionPointLargeSize,s.MouseEventElementType.ShapeConnectionPoint,r,a,e.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+" selector"),this.showConnectionPointCore(2*t+1,i.x,i.y,n.connectionPointSmallSize,n.connectionPointSmallSize,s.MouseEventElementType.ShapeConnectionPoint,r,a,e.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_POINT+(l?" "+e.SELECTION_ELEMENT_CLASSNAMES.ACTIVE:""))},n.prototype.showConnectionPointCore=function(t,e,n,i,o,r,s,l,u){var c=new _.EllipsePrimitive(e,n,i,o,null,u,(function(t){return a.RenderUtils.setElementEventData(t,r,s,l)})),d=this.getConnectionPointElement(c,t);this.changePrimitiveElement(c,d)},n.prototype.hideConnectionPoints=function(){for(var t=0;t<this.connectionPointElements.length;t++)this.dom.changeByFunc(this.connectionPointElements[t],(function(t){return t.style.display="none"}))},n.prototype.getConnectionPointElement=function(t,e){var n=this.connectionPointElements[e];return void 0!==n?this.dom.changeByFunc(n,(function(t){return t.style.display=""})):(n=this.createPrimitiveElement(t,this.visualizersContainer),this.connectionPointElements[e]=n),n},n.prototype.showContainerTarget=function(t,n){var i=new p.RectanglePrimitive(n.left,n.top,n.width,n.height,null,e.SELECTION_ELEMENT_CLASSNAMES.CONTAINER_TARGET),o=this.getContainerTargetElement(i,t);this.changePrimitiveElement(i,o)},n.prototype.hideContainerTarget=function(){this.containerTargetElement&&this.dom.changeByFunc(this.containerTargetElement,(function(t){return t.style.display="none"}))},n.prototype.getContainerTargetElement=function(t,e){return void 0!==this.containerTargetElement?this.dom.changeByFunc(this.containerTargetElement,(function(t){return t.style.display=""})):this.containerTargetElement=this.createPrimitiveElement(t,this.itemSelectionContainer),this.containerTargetElement},n.prototype.showConnectionTarget=function(t,n){var i=new p.RectanglePrimitive(n.left,n.top,n.width,n.height,null,e.SELECTION_ELEMENT_CLASSNAMES.CONNECTION_TARGET),o=this.getConnectionTargetElement(i,t);this.changePrimitiveElement(i,o)},n.prototype.hideConnectionTarget=function(){this.connectionTargetElement&&this.dom.changeByFunc(this.connectionTargetElement,(function(t){return t.style.display="none"}))},n.prototype.getConnectionTargetElement=function(t,e){return void 0!==this.connectionTargetElement?this.dom.changeByFunc(this.connectionTargetElement,(function(t){return t.style.display=""})):this.connectionTargetElement=this.createPrimitiveElement(t,this.itemSelectionContainer),this.connectionTargetElement},n.prototype.showExtensionLine=function(t,i,a,s,l){var u=e.SELECTION_ELEMENT_CLASSNAMES.EXTENSION_LINE;i!==c.ExtensionLineType.VerticalCenterAfter&&i!==c.ExtensionLineType.VerticalCenterBefore&&i!==c.ExtensionLineType.HorizontalCenterAbove&&i!==c.ExtensionLineType.HorizontalCenterBelow||(u+=" center"),i!==c.ExtensionLineType.VerticalCenterToPageCenter&&i!==c.ExtensionLineType.HorizontalCenterToPageCenter&&i!==c.ExtensionLineType.LeftToPageCenter&&i!==c.ExtensionLineType.RightToPageCenter&&i!==c.ExtensionLineType.TopToPageCenter&&i!==c.ExtensionLineType.BottomToPageCenter||(u+=" page");var d=0,h=0,f=0,p=0,_=0,y=0,b=0,x=0;a.y===s.y?(d=a.x-n.extensionLineWidth,h=a.y-n.extensionLineEndingSize,f=a.x-n.extensionLineWidth,p=a.y+n.extensionLineEndingSize,_=s.x-n.extensionLineWidth,y=a.y-n.extensionLineEndingSize,b=s.x-n.extensionLineWidth,x=a.y+n.extensionLineEndingSize):a.x===s.x&&(d=a.x-n.extensionLineEndingSize,h=a.y-n.extensionLineWidth,f=a.x+n.extensionLineEndingSize,p=a.y-n.extensionLineWidth,_=a.x-n.extensionLineEndingSize,y=s.y-n.extensionLineWidth,b=a.x+n.extensionLineEndingSize,x=s.y-n.extensionLineWidth);var C=0,S=0;i!==c.ExtensionLineType.RightToRightAbove&&i!==c.ExtensionLineType.RightToRightBelow||(C-=n.extensionLineWidth),i!==c.ExtensionLineType.BottomToBottomAfter&&i!==c.ExtensionLineType.BottomToBottomBefore||(S-=n.extensionLineWidth);var k=[new m.PathPrimitive([m.PathPrimitiveMoveToCommand.fromPoint(a.offset(C,S)),m.PathPrimitiveLineToCommand.fromPoint(s.offset(C,S))],v.StrokeStyle.default1pxInstance,"size-line"),new m.PathPrimitive([new m.PathPrimitiveMoveToCommand(d,h),new m.PathPrimitiveLineToCommand(f,p),new m.PathPrimitiveMoveToCommand(_,y),new m.PathPrimitiveLineToCommand(b,x)],v.StrokeStyle.default1pxInstance),new g.TextPrimitive((s.x+a.x)/2,(s.y+a.y)/2,l,w.TextOwner.ExtensionLine,void 0,void 0,void 0,null,void 0,null,o.PAGE_BG_TEXTFLOOR_FILTER_ID)],I=new r.GroupPrimitive(k,u),T=this.getExtensionLineElement(I,t);this.changePrimitiveElement(I,T)},n.prototype.clipRectangleFromCenter=function(t,e,n){var i=new u.Point(e.x-t.x,e.y-t.y).multiply(.5,.5).offset(t.x,t.y),o=i.x-n.width/2,r=i.x+n.width/2,a=i.y-n.height/2,s=i.y+n.height/2,l=t.x-e.x,c=-l,d=t.y-e.y,h=-d,f=t.x-o,p=r-t.x,m=t.y-a,g=s-t.y,_=[1],v=[0];if(0!==l){var y=f/l,b=p/c;l<0?(v.push(y),_.push(b)):(v.push(b),_.push(y))}if(0!==d){var w=m/d,x=g/h;d<0?(v.push(w),_.push(x)):(v.push(x),_.push(w))}var C=v.reduce((function(t,e){return t<e?e:t}),0),S=_.reduce((function(t,e){return t>e?e:t}),1);return[new u.Point(t.x+c*C,t.y+h*C),new u.Point(t.x+c*S,t.y+h*S)]},n.prototype.hideExtensionLines=function(){for(var t=0;t<this.extensionLineElements.length;t++)this.extensionLineElements[t]&&this.dom.changeByFunc(this.extensionLineElements[t],(function(t){return t.style.display="none"}))},n.prototype.getExtensionLineElement=function(t,e){var n=this.extensionLineElements[e];return void 0!==n?this.dom.changeByFunc(n,(function(t){return t.style.display=""})):(n=this.createPrimitiveElement(t,this.visualizersContainer),this.extensionLineElements[e]=n),n},n.prototype.getOrCreateShapeSelection=function(t,e){var n=this.selectionMap[t.key];return n||(n=new I(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,t.key,t.isLocked,t.rectangle,t.style,t.allowResizeHorizontally,t.allowResizeVertically,t.description.getParameterPoints(t)),this.selectionMap[t.key]=n),e&&(e[t.key]=!0),n},n.prototype.getOrCreateConnectorSelection=function(t,e){var n=this.selectionMap[t.key],i=t.getRenderPoints();return n||(n=new T(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom,t.key,t.isLocked,t.rectangle,i,t.style,t.styleText,t.enableText,t.texts.map((function(e){var n=u.GeometryUtils.getPathPointByPosition(i,e.position);return{text:t.getText(e.position),point:n[0],pointIndex:n[1],pos:e.position}})).sort((function(t,e){return t.pos-e.pos})),t.points,t.properties.lineOption),this.selectionMap[t.key]=n),e&&(e[t.key]=!0),n},n.prototype.getOrCreateMultipleSelection=function(t){var e=this.selectionMap[-1];return e||(e=new k(this.itemSelectionContainer,this.selectionMarksContainer,this.actualZoom,this.readOnly,this.dom),this.selectionMap[-1]=e),t[-1]=!0,e},n.prototype.getMultipleSelection=function(){return this.selectionMap[-1]},n.prototype.updateShapeSelection=function(t,e){t.key in this.selectionMap&&(this.getOrCreateShapeSelection(t).onModelChanged(t.isLocked,t.rectangle,t.style,t.allowResizeHorizontally,t.allowResizeVertically,t.description.getParameterPoints(t)),e&&e.onModelItemChanged(t.key,t.rectangle))},n.prototype.updateConnectorSelection=function(t,e){if(t.key in this.selectionMap){var n=t.getRenderPoints();this.getOrCreateConnectorSelection(t).onModelChanged(t.isLocked,t.rectangle,n,t.style,t.styleText,t.enableText,t.texts.map((function(e){var i=u.GeometryUtils.getPathPointByPosition(n,e.position);return{text:t.getText(e.position),pointIndex:i[1],pos:e.position,point:i[0]}})).sort((function(t,e){return t.pos-e.pos})),t.points,t.properties.lineOption),e&&e.onModelItemChanged(t.key,t.rectangle)}},n.prototype.hideOutdatedSelection=function(t){var e=this;Object.keys(this.selectionMap).filter((function(e){return!t[e]})).forEach((function(t){e.selectionMap[t].destroy(),delete e.selectionMap[t]}))},n.prototype.selectionCanBeDrawn=function(t){return!t.container||t.container.expanded&&this.selectionCanBeDrawn(t.container)},n.prototype.notifySelectionChanged=function(t){var e=this,n=t.getSelectedItems(!0).filter((function(t){return e.selectionCanBeDrawn(t)})),i={},o=n.length>1,r=t.getSelectedShapes(!0).filter((function(t){return e.selectionCanBeDrawn(t)})),a=t.getSelectedConnectors(!0).filter((function(t){return e.selectionCanBeDrawn(t)}));if(r.forEach((function(t){return e.getOrCreateShapeSelection(t,i).onSelectionChanged(o)})),a.forEach((function(t){return e.getOrCreateConnectorSelection(t,i).onSelectionChanged(o)})),o){var s=n.length>0?n[0].strokeWidth:0,l={};n.filter((function(t){return!t.isLocked})).forEach((function(t){return l[t.key]=t.rectangle})),this.getOrCreateMultipleSelection(i).onSelectionChanged(!!r.filter((function(t){return!t.isLocked})).length,s,l)}this.hideOutdatedSelection(i)},n.prototype.notifyModelChanged=function(t){var e=this,n=this.getMultipleSelection();t.forEach((function(t){t.item instanceof d.Shape?e.updateShapeSelection(t.item,n):t.item instanceof h.Connector&&e.updateConnectorSelection(t.item,n)})),n&&n.onModelChanged()},n.prototype.notifyPageColorChanged=function(t){},n.prototype.notifyPageSizeChanged=function(t,e){},n.prototype.notifyActualZoomChanged=function(t){var e=this;Object.keys(this.selectionMap).forEach((function(n){return e.selectionMap[n].notifyZoomChanged(t)})),this.actualZoom=t},n.prototype.notifyViewAdjusted=function(t){},n.prototype.notifyReadOnlyChanged=function(t){var e=this;this.readOnly=t,Object.keys(this.selectionMap).forEach((function(n){return e.selectionMap[n].notifyReadOnlyChanged(t)}))},n.prototype.notifySelectionRectShow=function(t){this.showSelectionRect(t.multiply(this.actualZoom))},n.prototype.notifySelectionRectHide=function(){this.hideSelectionRect()},n.prototype.notifyResizeInfoShow=function(t,e){this.showResizeInfo(t.multiply(this.actualZoom),e)},n.prototype.notifyResizeInfoHide=function(){this.hideResizeInfo()},n.prototype.notifyConnectionPointsShow=function(t,e,i,o){var r=this;this.hideConnectionPoints(),e.forEach((function(e,a){var s=e.point.multiply(r.actualZoom);if(o)switch(e.side){case l.ConnectionPointSide.North:s.y=o.top*r.actualZoom-n.connectionPointShift;break;case l.ConnectionPointSide.South:s.y=o.bottom*r.actualZoom+n.connectionPointShift;break;case l.ConnectionPointSide.West:s.x=o.left*r.actualZoom-n.connectionPointShift;break;case l.ConnectionPointSide.East:s.x=o.right*r.actualZoom+n.connectionPointShift}r.showConnectionPoint(a,s,e.side,t,a,a===i)}))},n.prototype.notifyConnectionPointsHide=function(){this.hideConnectionPoints()},n.prototype.notifyConnectionTargetShow=function(t,e,i){var o=n.correctSelectionRect(e.multiply(this.actualZoom),i,n.connectionTargetBorderWidth,this.actualZoom,0);this.showConnectionTarget(0,o)},n.prototype.notifyConnectionTargetHide=function(){this.hideConnectionTarget()},n.prototype.notifyContainerTargetShow=function(t,e,i){var o=n.correctSelectionRect(e.multiply(this.actualZoom),i,n.connectionTargetBorderWidth,this.actualZoom,0);this.showContainerTarget(0,o)},n.prototype.notifyContainerTargetHide=function(){this.hideContainerTarget()},n.prototype.notifyExtensionLinesShow=function(t){var e=this;this.hideExtensionLines(),t.forEach((function(t,n){e.showExtensionLine(n,t.type,t.segment.startPoint.multiply(e.actualZoom),t.segment.endPoint.multiply(e.actualZoom),t.text)}))},n.prototype.notifyExtensionLinesHide=function(){this.hideExtensionLines()},n.prototype.notifyDragStart=function(t){this.dom.changeByFunc(this.selectionMarksContainer,(function(t){return t.style.display="none"}))},n.prototype.notifyDragEnd=function(t){this.dom.changeByFunc(this.selectionMarksContainer,(function(t){return t.style.display=""}))},n.prototype.notifyDragScrollStart=function(){},n.prototype.notifyDragScrollEnd=function(){},n.prototype.notifyTextInputStart=function(t,e,n,i){this.dom.changeByFunc(this.visualizersContainer,(function(t){return t.style.display="none"}))},n.prototype.notifyTextInputEnd=function(t){this.dom.changeByFunc(this.visualizersContainer,(function(t){return t.style.display=""}))},n.correctSelectionRect=function(t,e,i,o,r){void 0===r&&(r=n.selectionOffset);var a=b.UnitConverter.twipsToPixels(e)%2!==b.UnitConverter.twipsToPixels(i)%2,s=Math.ceil(e/2*o);t=t.inflate(s,s);var l=Math.floor(i/2);if(t.position.x-=l,t.position.y-=l,t.size.width+=i,t.size.height+=i,a){var u=n.evenOddSelectionCorrection*(b.UnitConverter.twipsToPixels(i)%2===1?-1:1);t=t.offset(u,u)}return t.inflate(r,r)},n.selectionMarkSize=b.UnitConverter.pixelsToTwips(10),n.lockedSelectionMarkSize=b.UnitConverter.pixelsToTwips(8),n.selectionOffset=b.UnitConverter.pixelsToTwips(2),n.selectionRectLineWidth=b.UnitConverter.pixelsToTwips(1),n.multiSelectionRectLineWidth=b.UnitConverter.pixelsToTwips(1),n.connectionPointSmallSize=b.UnitConverter.pixelsToTwips(5),n.connectionPointLargeSize=b.UnitConverter.pixelsToTwips(12),n.connectionPointShift=b.UnitConverter.pixelsToTwips(16),n.connectionTargetBorderWidth=b.UnitConverter.pixelsToTwips(2),n.geomertyMarkSize=b.UnitConverter.pixelsToTwips(8),n.connectorPointMarkSize=b.UnitConverter.pixelsToTwips(6),n.connectorSideMarkSize=b.UnitConverter.pixelsToTwips(6),n.extensionLineWidth=b.UnitConverter.pixelsToTwips(1),n.extensionLineOffset=b.UnitConverter.pixelsToTwips(1),n.extensionLineEndingSize=b.UnitConverter.pixelsToTwips(6),n.resizeInfoOffset=b.UnitConverter.pixelsToTwips(16),n.resizeInfoTextOffset=b.UnitConverter.pixelsToTwips(2),n.resizeInfoLineWidth=b.UnitConverter.pixelsToTwips(1),n.evenOddSelectionCorrection=b.UnitConverter.pixelsToTwips(1),n}(o.CanvasManagerBase);e.CanvasSelectionManager=x;var C=function(){function t(t,e,n,i,o,r){this.rectsContainer=t,this.marksContainer=e,this.key=n,this.zoomLevel=i,this.readOnly=o,this.dom=r,this.elements={},this.updatedElements={}}return t.prototype.notifyZoomChanged=function(t){this.zoomLevel!==t&&(this.zoomLevel=t,this.redraw())},t.prototype.notifyReadOnlyChanged=function(t){this.readOnly=t,this.redraw()},t.prototype.destroy=function(){var t=this;Object.keys(this.elements).forEach((function(e){t.elements[e].parentNode.removeChild(t.elements[e]),delete t.elements[e]}))},t.prototype.redraw=function(){var t=this;this.updatedElements={},this.redrawCore(),Object.keys(this.elements).filter((function(e){return!t.updatedElements[e]})).forEach((function(e){t.elements[e].parentNode.removeChild(t.elements[e]),delete t.elements[e]})),this.updatedElements={}},t.prototype.drawSelectionMarks=function(t,n,i){if(!this.readOnly){var o=n&&t.height>3*x.selectionMarkSize,r=i&&t.width>3*x.selectionMarkSize,a=n||i;a&&this.drawSelectionMark(0,new u.Point(t.left,t.top),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_NW,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),r&&!y.Browser.TouchUI&&this.drawSelectionMark(1,new u.Point(t.left+t.size.width/2,t.top),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_N,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),a&&this.drawSelectionMark(2,new u.Point(t.right,t.top),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_NE,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),o&&!y.Browser.TouchUI&&this.drawSelectionMark(3,new u.Point(t.right,t.top+t.size.height/2),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_E,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),a&&this.drawSelectionMark(4,new u.Point(t.right,t.bottom),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_SE,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),r&&!y.Browser.TouchUI&&this.drawSelectionMark(5,new u.Point(t.left+t.size.width/2,t.bottom),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_S,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),a&&this.drawSelectionMark(6,new u.Point(t.left,t.bottom),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_SW,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK),o&&!y.Browser.TouchUI&&this.drawSelectionMark(7,new u.Point(t.left,t.top+t.size.height/2),x.selectionMarkSize,s.MouseEventElementType.ShapeResizeBox,s.ResizeEventSource.ResizeBox_W,e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK)}},t.prototype.drawSelectionMark=function(t,e,n,i,o,r){var s=this;this.getOrCreateElement("SM"+t,new p.RectanglePrimitive(e.x-n/2,e.y-n/2,n,n,null,r,void 0,(function(t){a.RenderUtils.setElementEventData(t,i,s.key,o)})),this.marksContainer)},t.prototype.drawSelectionRect=function(t,e,n){var i=new p.RectanglePrimitive(t.left,t.top,t.width,t.height,v.StrokeStyle.default1pxInstance,n,void 0,(function(t){a.RenderUtils.setElementEventData(t,e,"-1",-1)}));this.getOrCreateElement("shapeSelection",i,this.rectsContainer)},t.prototype.getOrCreateElement=function(t,e,n){var i=this.elements[t];return i||(i=e.createElement(),this.elements[t]=i,n.appendChild(i)),this.updatedElements[t]=!0,this.dom.changeByPrimitive(i,e),i},t}(),S=function(t){function e(e,n,i,o,r,a,s,l){var u=t.call(this,e,n,i,o,r,a)||this;return u.isLocked=s,u.rectangle=l,u}return i(e,t),e.prototype.onSelectionChanged=function(t){this.isMultipleSelection!==t&&(this.isMultipleSelection=t,this.redraw())},e.prototype.isLockedRender=function(){return this.isLocked&&!this.readOnly},e.prototype.drawLockedSelectionMark=function(t,e,n,i){var o=new m.PathPrimitive([new m.PathPrimitiveMoveToCommand(e.x-n/2,e.y-n/2),new m.PathPrimitiveLineToCommand(e.x+n/2,e.y+n/2),new m.PathPrimitiveMoveToCommand(e.x+n/2,e.y-n/2),new m.PathPrimitiveLineToCommand(e.x-n/2,e.y+n/2)],null,i);this.getOrCreateElement("LSM"+t,o,this.marksContainer)},e}(C),k=function(t){function n(e,n,i,o,r){var a=t.call(this,e,n,"-1",i,o,r)||this;return a.rectangles={},a}return i(n,t),n.prototype.onModelItemChanged=function(t,e){t in this.rectangles&&(this.rectangles[t]=e)},n.prototype.onModelChanged=function(){this.redraw()},n.prototype.onSelectionChanged=function(t,e,n){this.needDrawSelectionMarks=t,this.strokeWidth=e,this.rectangles=n,this.redraw()},n.prototype.redrawCore=function(){var t=this,n=Object.keys(this.rectangles);if(n.length){var i=u.GeometryUtils.getCommonRectangle(n.map((function(e){return t.rectangles[e]}))).multiply(this.zoomLevel),o=x.correctSelectionRect(i,this.strokeWidth,x.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(o,s.MouseEventElementType.SelectionRect,e.SELECTION_ELEMENT_CLASSNAMES.ITEMS_SELECTION_RECT),this.needDrawSelectionMarks&&this.drawSelectionMarks(i,!0,!0)}},n}(C),I=function(t){function n(e,n,i,o,r,a,s,l,u,c,d,h){var f=t.call(this,e,n,a,i,o,r,s,l)||this;return f.style=u,f.allowResizeHorizontally=c,f.allowResizeVertically=d,f.shapeParameterPoints=h,f}return i(n,t),n.prototype.onModelChanged=function(t,e,n,i,o,r){this.isLocked=t,this.rectangle=e,this.style=n,this.allowResizeHorizontally=i,this.allowResizeVertically=o,this.shapeParameterPoints=r,this.redraw()},n.prototype.redrawCore=function(){var t=this.rectangle.multiply(this.zoomLevel);this.isLockedRender()?this.drawLockedSelection(t):this.drawUnlockedSelection(t)},n.prototype.drawLockedSelection=function(t){this.drawLockedSelectionMark(0,new u.Point(t.left,t.top),x.lockedSelectionMarkSize,e.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(1,new u.Point(t.right,t.top),x.lockedSelectionMarkSize,e.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(2,new u.Point(t.right,t.bottom),x.lockedSelectionMarkSize,e.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK),this.drawLockedSelectionMark(3,new u.Point(t.left,t.bottom),x.lockedSelectionMarkSize,e.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)},n.prototype.drawUnlockedSelection=function(t){var n=x.correctSelectionRect(t,this.style.strokeWidth,x.selectionRectLineWidth,this.zoomLevel);this.drawSelectionRect(n,s.MouseEventElementType.SelectionRect,this.isMultipleSelection?e.SELECTION_ELEMENT_CLASSNAMES.ITEM_MULTI_SELECTION:e.SELECTION_ELEMENT_CLASSNAMES.ITEM_SELECTION_RECT),this.isMultipleSelection||this.drawSelectionMarks(t,this.allowResizeHorizontally,this.allowResizeVertically),this.drawShapeParameterPoints()},n.prototype.drawShapeParameterPoints=function(){var t=this;this.readOnly||this.shapeParameterPoints.forEach((function(e,n){var i=e.point.multiply(t.zoomLevel);t.drawShapeParameterPoint(i,n,e.key)}))},n.prototype.drawShapeParameterPoint=function(t,e,n){var i=this,o=x.geomertyMarkSize,r=new p.RectanglePrimitive(t.x-o/2,t.y-o/2,o,o,null,"geometry-mark",void 0,(function(t){a.RenderUtils.setElementEventData(t,s.MouseEventElementType.ShapeParameterBox,i.key,n)}));this.getOrCreateElement("pp"+e.toString(),r,this.marksContainer)},n}(S),T=function(t){function n(e,n,i,o,r,a,s,l,u,c,d,h,f,p,m){var g=t.call(this,e,n,a,i,o,r,s,l)||this;return g.renderPoints=u,g.style=c,g.styleText=d,g.enableText=h,g.texts=f,g.points=p,g.lineType=m,g}return i(n,t),n.prototype.onModelChanged=function(t,e,n,i,o,r,a,s,l){this.isLocked=t,this.rectangle=e,this.renderPoints=n,this.style=i,this.styleText=o,this.enableText=r,this.texts=a,this.points=s,this.lineType=l,this.redraw()},n.prototype.redrawCore=function(){this.rectangle.multiply(this.zoomLevel),this.isLockedRender()?this.drawLockedSelection():this.drawUnlockedSelection()},n.prototype.drawLockedSelection=function(){var t=this;this.renderPoints.forEach((function(n,i){t.drawLockedSelectionMark(i,n,x.lockedSelectionMarkSize,e.SELECTION_ELEMENT_CLASSNAMES.LOCKED_SELECTION_MARK)}))},n.prototype.drawUnlockedSelection=function(){this.drawConnectorSelection(this.isMultipleSelection?e.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_MULTI_SELECTION:e.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SELECTION),this.isMultipleSelection||this.readOnly||this.drawConnectorSelectionMarks()},n.prototype.drawConnectorSelection=function(t){for(var e,n,i,o,r,a,s,l=this.texts,u=0,c=this.styleText.getAlignment(),d=[],h=[],f=this.renderPoints,p=this.zoomLevel,g=f[0],_=1,y=void 0;y=f[_];_++){var b=f[_+1];void 0===o&&(o=(e=this.getSelectionOffsetPoints(g,y))[0],r=e[1]),b&&(a=(n=this.getSelectionOffsetPoints(y,b))[0],s=n[1]);var w=o.x,C=o.y,S=-o.x,k=-o.y,I=a&&a.x,T=a&&a.y,E=a&&-a.x,O=a&&-a.y;for(this.style.strokeWidthPx%2===0&&(S>0?S-=x.evenOddSelectionCorrection:w>0&&(w-=x.evenOddSelectionCorrection),k>0?k-=x.evenOddSelectionCorrection:C>0&&(C-=x.evenOddSelectionCorrection),E>0?E-=x.evenOddSelectionCorrection:I>0&&(I-=x.evenOddSelectionCorrection),O>0?O-=x.evenOddSelectionCorrection:T>0&&(T-=x.evenOddSelectionCorrection));l[u]&&l[u].pointIndex<=_;){var M=l[u],P=(y.x-g.x)/r,D=(y.y-g.y)/r,A=this.getTextStartEndPoints(D,P,M.point,M.text,c);l[u].pointIndex<_?(g=A[1],d.push(m.PathPrimitiveMoveToCommand.fromPoint(g.offset(w,C).multiply(p))),h.push(m.PathPrimitiveLineToCommand.fromPoint(g.offset(S,k).multiply(p)))):(d.length||(d.push(m.PathPrimitiveMoveToCommand.fromPoint(g.offset(w,C).multiply(p))),h.push(m.PathPrimitiveLineToCommand.fromPoint(g.offset(S,k).multiply(p)))),d.push(m.PathPrimitiveLineToCommand.fromPoint(A[0].offset(w,C).multiply(p))),d.push(m.PathPrimitiveMoveToCommand.fromPoint(A[1].offset(w,C).multiply(p))),h.push(m.PathPrimitiveMoveToCommand.fromPoint(A[0].offset(S,k).multiply(p))),h.push(m.PathPrimitiveLineToCommand.fromPoint(A[1].offset(S,k).multiply(p))),g=A[1]),u++}if(d.length||(d.push(m.PathPrimitiveMoveToCommand.fromPoint(g.offset(w,C).multiply(p))),h.push(m.PathPrimitiveLineToCommand.fromPoint(g.offset(S,k).multiply(p)))),b){var R=y.y-g.y,B=g.x-y.x,N=R*(g.x+w)+B*(g.y+C),L=R*(g.x+S)+B*(g.y+k),F=b.y-y.y,V=y.x-b.x,z=F*(y.x+I)+V*(y.y+T),j=F*(y.x+E)+V*(y.y+O),H=R*V-F*B;0!==H&&(d.push(new m.PathPrimitiveLineToCommand(p*(V*N-B*z)/H,p*(R*z-F*N)/H)),h.push(new m.PathPrimitiveLineToCommand(p*(V*L-B*j)/H,p*(R*j-F*L)/H))),o=(i=[a,s])[0],r=i[1]}else d.push(m.PathPrimitiveLineToCommand.fromPoint(y.offset(w,C).multiply(p))),h.push(m.PathPrimitiveMoveToCommand.fromPoint(y.offset(S,k).multiply(p)));g=y}var W=new m.PathPrimitive(d.concat(h.reverse()),v.StrokeStyle.default1pxInstance,t);this.getOrCreateElement("CS",W,this.rectsContainer)},n.prototype.getSelectionOffset=function(){return x.selectionOffset+b.UnitConverter.pixelsToTwips(Math.round(this.style.strokeWidthPx/2)+(this.style.strokeWidthPx+1)%2)},n.prototype.getSelectionOffsetPoints=function(t,e){var n=Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2));return[new u.Point(this.getSelectionOffset()/n*(t.y-e.y),this.getSelectionOffset()/n*(e.x-t.x)),n]},n.prototype.getTextStartEndPoints=function(t,e,n,i,o){var r=this.dom.measurer.measureTextLine(i,this.styleText,w.TextOwner.Connector).transform(b.UnitConverter.pixelsToTwips).offset(this.getSelectionOffset(),this.getSelectionOffset()),a=r.width*e+r.height*t;switch(o){case v.TextAlignment.Left:return[n,new u.Point(n.x+e*a,n.y+t*a)];case v.TextAlignment.Right:return[new u.Point(n.x-e*a,n.y-t*a),n];default:return[new u.Point(n.x-.5*e*a,n.y-.5*t*a),new u.Point(n.x+.5*e*a,n.y+.5*t*a)]}},n.prototype.drawConnectorSelectionMarks=function(){var t=this,n=this.points.length-1;this.points.forEach((function(i,o){var r=0===o||o===n,a=r?e.SELECTION_ELEMENT_CLASSNAMES.SELECTION_MARK:e.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_POINT_MARK,l=r?x.selectionMarkSize:x.connectorPointMarkSize;r||t.lineType===f.ConnectorLineOption.Straight?t.drawSelectionMark(o,i.multiply(t.zoomLevel),l,s.MouseEventElementType.ConnectorPoint,o,a):t.drawSelectionMark(o,i.multiply(t.zoomLevel),l,s.MouseEventElementType.Undefined,-1,a+" disabled")})),this.drawConnectorSideMarks()},n.prototype.drawConnectorSideMarks=function(){var t,n,i=this,o=this.lineType===f.ConnectorLineOption.Straight?s.MouseEventElementType.ConnectorSide:s.MouseEventElementType.ConnectorOrthogonalSide;this.renderPoints.filter((function(t){return!t.skipped})).forEach((function(r,a){if(!r.skipped){if(void 0!==t&&i.canDrawConnectorSideMark(r,t)){var s=i.lineType===f.ConnectorLineOption.Orthogonal?r.x-t.x===0?"vertical":"horizontal":"";i.drawSelectionMark(i.points.length+a-1,new u.Point(t.x+(r.x-t.x)/2,t.y+(r.y-t.y)/2).multiply(i.zoomLevel),x.connectorSideMarkSize,o,n+"_"+a,e.SELECTION_ELEMENT_CLASSNAMES.CONNECTOR_SIDE_MARK+" "+s)}t=r,n=a}}))},n.prototype.canDrawConnectorSideMark=function(t,e){if(this.lineType===f.ConnectorLineOption.Straight){var n=x.selectionMarkSize+x.connectorSideMarkSize;return u.GeometryUtils.getDistance(t,e)>n}return this.lineType===f.ConnectorLineOption.Orthogonal&&(t.x-e.x===0||Math.abs(t.x-e.x)>h.Connector.minOffset)&&(t.y-e.y===0||Math.abs(t.y-e.y)>h.Connector.minOffset)},n}(S)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0),r=n(40),a=n(18),s=n(65),l=n(4),u=n(15),c=function(){function t(t,e,n,r,a){this.readOnly=e,this.allowDragging=n,this.shapeDescriptionManager=r,this.shapeTypes=a,this.dragPrepareTimeout=-1,this.dragState=i.None,this.emulateDragEvents=l.Browser.WebKitTouchUI||l.Browser.AndroidMobilePlatform,this.onDragOperation=new o.EventDispatcher,this.onClickOperation=new o.EventDispatcher,t&&(this.mainElement=this.createMainElement(t),this.attachHandlers(this.mainElement))}return t.prototype.clean=function(){this.detachHandlers(this.mainElement),u.RenderUtils.removeElement(this.mainElement)},t.prototype.createMainElement=function(t){var e=document.createElement("div");return e.setAttribute("class","dxdi-toolbox"),e.draggable=!0,this.emulateDragEvents&&(e.tabIndex=0),t.appendChild(e),e},t.prototype.attachHandlers=function(t){this.onClickHandler=this.onClick.bind(this),this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onDragStartHandler=this.onDragStart.bind(this),this.onTouchMoveHandler=this.onTouchMove.bind(this),this.emulateDragEvents&&(this.onSelectionChangeHandler=this.onSelectionChange.bind(this)),this.emulateDragEvents||l.RenderHelper.addEventListener(t,"dragstart",this.onDragStartHandler),l.RenderHelper.addEventListener(t,"touchmove",this.onTouchMoveHandler),l.RenderHelper.addEventListener(t,"click",this.onClickHandler),l.RenderHelper.addEventListener(t,s.TouchUIHelper.touchMouseDownEventName,this.onMouseDownHandler),l.RenderHelper.addEventListener(document,s.TouchUIHelper.touchMouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.addEventListener(document,s.TouchUIHelper.touchMouseUpEventName,this.onMouseUpHandler),this.emulateDragEvents&&l.RenderHelper.addEventListener(document,"selectionchange",this.onSelectionChangeHandler)},t.prototype.detachHandlers=function(t){this.emulateDragEvents||l.RenderHelper.removeEventListener(t,"dragstart",this.onDragStartHandler),l.RenderHelper.removeEventListener(t,"touchmove",this.onTouchMoveHandler),l.RenderHelper.removeEventListener(t,"click",this.onClickHandler),l.RenderHelper.removeEventListener(t,s.TouchUIHelper.touchMouseDownEventName,this.onMouseDownHandler),l.RenderHelper.removeEventListener(document,s.TouchUIHelper.touchMouseMoveEventName,this.onMouseMoveHandler),l.RenderHelper.removeEventListener(document,s.TouchUIHelper.touchMouseUpEventName,this.onMouseUpHandler),this.emulateDragEvents&&l.RenderHelper.removeEventListener(document,"selectionchange",this.onSelectionChangeHandler)},t.prototype.render=function(t){this.mainElement.childNodes&&(this.mainElement.innerHTML="");var e=t?this.shapeTypes.filter(t):this.shapeTypes;return e.length&&this.createElements(this.mainElement,e),!!e.length},t.prototype.createDraggingObject=function(t){var e=new h;return e.data=t,e.onFinishDragging=this.resetDragState.bind(this),e.onCaptured=this.capture.bind(this),new d(e)},t.prototype.getDragShapeType=function(t){for(;t&&!a.ElementHasCssClass(t,"dxdi-toolbox");){if(t.getAttribute&&t.getAttribute("data-tb-type"))return t.getAttribute("data-tb-type");t=t.parentNode}},t.prototype.onClick=function(t){var e=this.getDragShapeType(r.Evt.GetEventSource(t));e&&this.onClickOperation.raise("notifyToolboxClick",e)},t.prototype.onMouseDown=function(t){this.setDragState(i.Prepare,t)},t.prototype.onDragStart=function(t){this.setDragState(i.Start,t),t.preventDefault()},t.prototype.onTouchMove=function(t){this.draggingObject&&t.preventDefault()},t.prototype.onSelectionChange=function(){},t.prototype.onMouseMove=function(t){this.setDragState(r.Evt.IsLeftButtonPressed(t)?i.Dragging:i.None,t)},t.prototype.onMouseUp=function(t){this.setDragState(i.None,t)},t.prototype.updateDraggingElementPosition=function(t,e){var n=this.draggingObject.element,i=t-n.offsetWidth/2,o=e-n.offsetHeight/2;a.SetAbsoluteX(n,i),a.SetAbsoluteY(n,o)},t.prototype.setDragState=function(t,e){if(!this.readOnly&&this.allowDragging&&(t!==i.None||t!==this.dragState)&&(this.dragPrepareTimeout>-1&&(clearTimeout(this.dragPrepareTimeout),this.dragPrepareTimeout=-1),!(t-this.dragState>1||t!==i.None&&t<this.dragState)))switch(this.dragState=t,t){case i.Prepare:this.prepareDragging(e)||this.setDragState(i.None,e),this.emulateDragEvents&&(this.dragPrepareTimeout=setTimeout(this.onDragPrepareTimeout.bind(this),800));break;case i.Start:a.ToggleElementClassName(document.body,"dxdi-dragging",!0),this.startDragging();break;case i.Dragging:this.doDragging(e);break;case i.None:this.finishDragging()}},t.prototype.resetDragState=function(t){this.setDragState(i.None,t)},t.prototype.onDragPrepareTimeout=function(){this.dragPrepareTimeout=-1,this.dragState===i.Prepare&&this.setDragState(i.Start,null)},t.prototype.prepareDragging=function(t){return this.dragStartPoint=new o.Point(r.Evt.GetEventX(t),r.Evt.GetEventY(t)),this.dragStartShapeType=this.getDragShapeType(r.Evt.GetEventSource(t)),this.emulateDragEvents&&this.mainElement.focus(),!!this.dragStartShapeType},t.prototype.startDragging=function(){this.draggingObject=this.createDraggingObject(this.dragStartShapeType),this.raiseDragStart(),this.draggingObject.element=this.createDraggingElement(this.draggingObject),void 0!==this.draggingObject.captured&&this.capture(this.draggingObject.captured,!0),this.updateDraggingElementPosition(this.dragStartPoint.x,this.dragStartPoint.y)},t.prototype.doDragging=function(t){this.draggingObject.element&&this.updateDraggingElementPosition(r.Evt.GetEventX(t),r.Evt.GetEventY(t))},t.prototype.finishDragging=function(){if(this.draggingObject){this.raiseDragEnd();var t=this.draggingObject.element;t&&t.parentNode.removeChild(t),delete this.draggingObject}this.dragStartPoint=void 0,this.dragStartShapeType=void 0,setTimeout((function(){return a.ToggleElementClassName(document.body,"dxdi-dragging",!1)}),500)},t.prototype.capture=function(t,e){this.draggingObject&&(this.draggingObject.captured!==t||e)&&(this.draggingObject.captured=t,this.draggingObject.element&&a.ToggleElementClassName(this.draggingObject.element,"dxdi-tb-drag-captured",t))},t.prototype.raiseDragStart=function(){this.onDragOperation.raise("notifyToolboxDragStart")},t.prototype.raiseDragEnd=function(){this.onDragOperation.raise("notifyToolboxDragEnd")},t.prototype.notifyReadOnlyChanged=function(t){this.readOnly=t},t}();e.Toolbox=c,function(t){t[t.None=-1]="None",t[t.Prepare=0]="Prepare",t[t.Start=1]="Start",t[t.Dragging=2]="Dragging"}(i||(i={}));var d=function(t){this.evt=t};e.ToolboxDraggingObject=d;var h=function(){};e.DiagramDraggingEvent=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},e.prototype.executeCore=function(t){return o.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),!0},e}(n(8).SimpleCommandBase);e.DeleteCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.shapeKey=e,i.position=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.oldPosition=e.position.clone(),t.moveShape(e,this.position)},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.moveShape(e,this.oldPosition)},e}(n(3).HistoryItem);e.MoveShapeHistoryItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.stringCompare=function(t,e){return t==e?0:t>e?1:-1},t.stringHashCode=function(t){var e=0;if(0===t.length)return e;for(var n=t.length,i=0;i<n;i++)e=(e<<5)-e+t.charCodeAt(i),e|=0;return e},t.endsAt=function(t,e){var n=t.length-1,i=e.length-1,o=n-i;if(o<0)return!1;for(;n>=o;n--,i--)if(t[n]!=e[i])return!1;return!0},t.startsAt=function(t,e){return t.substr(0,e.length)==e},t.stringInLowerCase=function(t){return t.toLowerCase()==t},t.stringInUpperCase=function(t){return t.toUpperCase()==t},t.inStringAtLeastOneSymbolInUpperCase=function(e){for(var n,i=0;n=e[i];i++)if(t.stringInUpperCase(n)&&!t.stringInLowerCase(n))return!0;return!1},t.getSymbolFromEnd=function(t,e){return t[t.length-e]},t.stringTrim=function(t,e){void 0===e&&(e=["\\s"]);var n=e.join("");return t.replace(new RegExp("(^["+n+"]*)|(["+n+"]*$)","g"),"")},t.stringTrimStart=function(t){return t.replace(/(^\s*)/g,"")},t.stringTrimEnd=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp(e+"*$"),"")},t.stringCustomTrim=function(t,e){for(var n=0,i=e;n<i.length;n++){var o=i[n];t=t.replace(new RegExp("(^"+o+"*)|("+o+"*)$","g"),"")}return t},t.mergeStringNTimes=function(t,e){return new Array(e<=0?0:e+1).join(t)},t.getDecimalSeparator=function(){return 1.1.toLocaleString().substr(1,1)},t.strCompare=function(t,e,n){return void 0===n&&(n=!1),n&&(t=t.toLowerCase(),e=e.toLowerCase()),t==e?0:t>e?1:-1},t.repeat=function(t,e){for(var n="",i=1;i<=e;i++)n+=t;return n},t.isNullOrEmpty=function(t){return!t||!t.length},t.padLeft=function(e,n,i){return t.mergeStringNTimes(i,Math.max(0,n-e.length))+e},t}();e.StringUtils=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(86),r=n(27),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPoints=function(){return this.connector.points.map((function(t,e){return new r.ConnectorRenderPoint(t.x,t.y,e)}))},e}(o.ConnectorPointsCalculatorBase);e.ConnectorPointsCalculator=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(5),a=n(86),s=n(143),l=n(144),u=n(145),c=n(146),d=n(147),h=n(27),f=function(t){function e(e){var n=t.call(this,e)||this;return n.sideCalculators={},n.sideCalculators[r.ConnectionPointSide.Undefined]=new s.ConnectorPointsOrthogonalUndefinedSideCalculator(n),n.sideCalculators[r.ConnectionPointSide.South]=new l.ConnectorPointsOrthogonalSouthSideCalculator(n),n.sideCalculators[r.ConnectionPointSide.North]=new u.ConnectorPointsOrthogonalNorthSideCalculator(n),n.sideCalculators[r.ConnectionPointSide.East]=new c.ConnectorPointsOrthogonalEastSideCalculator(n),n.sideCalculators[r.ConnectionPointSide.West]=new d.ConnectorPointsOrthogonalWestSideCalculator(n),n}return i(e,t),Object.defineProperty(e.prototype,"beginRect",{get:function(){return this.connector.beginItem?this.connector.beginItem.rectangle:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endRect",{get:function(){return this.connector.endItem?this.connector.endItem.rectangle:void 0},enumerable:!0,configurable:!0}),e.prototype.getPoints=function(){var t=this.connector.points.map((function(t,e){return new h.ConnectorRenderPoint(t.x,t.y,e)}));this.removeUnnecessaryLinePoints(t);var e=0,n=t.length-1,i=this.getPointSide(t,0),o=this.getPointSide(t,1),r=this.getPointSide(t,t.length-1),a=this.getPointSide(t,t.length-1-1),s=this.getSideCalculator(i),l=this.getSideCalculator(r),u=this.beginRect,c=s.getCorrectOriginPoint(t[e],u),d=t[e+1];if(2===t.length&&s.isOnSidePoint(c,d)&&s.isDirectConnectionAllowed(o,c,d))s.getDirectConnectionPoints(c,d).forEach((function(i){t.splice(e+1,0,i),e++,n++}));else{var f=s.getBeginOffsetPoints(o,t[e],t[e+1],this.beginRect);f.forEach((function(n){t.splice(e+1,0,n)})),e+=f.length,n+=f.length,l.getEndOffsetPoints(a,t[n],t[n-1],this.endRect).forEach((function(e,i){t.splice(n+i,0,e)}));for(var p=e;p<n;p++){var m=p+1,g=this.getMiddlePoint(t[p],t[p-1],p-1===0,t[m],t[m+1],m+1===t.length-1);void 0!==g&&(t.splice(p+1,0,g),p++,n++)}}return this.removeUnnecessaryLinePoints(t),t},e.prototype.getSideCalculator=function(t){return this.sideCalculators[t]},e.prototype.getPointSide=function(t,e){if(0===e&&this.connector.beginItem){var n=this.connector.beginConnectionPointIndex;return this.connector.beginItem.getConnectionPointSideByIndex(n,t[1])}return e===t.length-1&&this.connector.endItem?(n=this.connector.endConnectionPointIndex,this.connector.endItem.getConnectionPointSideByIndex(n,t[t.length-2])):r.ConnectionPointSide.Undefined},e.prototype.getMiddlePoints=function(t,e){return t.x===e.x||t.y===e.y?[]:[new h.ConnectorRenderPoint(t.x,e.y),new h.ConnectorRenderPoint(e.x,t.y)]},e.prototype.getMiddlePoint=function(t,e,n,i,o,r){var a,s=this,l=this.getMiddlePoints(t,i);return l.forEach((function(n){var r=s.createPointsRect(t,n),l=s.createPointsRect(n,i),u=s.connector.beginItem?s.connector.beginItem.rectangle:void 0,c=s.connector.endItem?s.connector.endItem.rectangle:void 0;u&&(u.intersect(r)||u.intersect(l))||c&&(c.intersect(r)||c.intersect(l))||s.isReturnPoint(n,t,e)&&!s.isIntermediatePoints(t,e)||s.isReturnPoint(n,i,o)&&!s.isIntermediatePoints(i,o)||(void 0===a||s.isPriorMiddlePoint(n,t,e,i,o))&&(a=n)})),void 0===a&&l.length>0&&(a=l[0]),a},e.prototype.createPointsRect=function(t,e){var n=o.Rectangle.createByPoints(t,e);return n.width>0&&(n=n.inflate(-1,0)),n.height>0&&(n=n.inflate(0,-1)),n},e.prototype.isPriorMiddlePoint=function(t,e,n,i,o){return!(!n||t.x!==n.x&&t.y!==n.y)||!(!o||t.x!==o.x&&t.y!==o.y)},e.prototype.isReturnPoint=function(t,e,n){if(void 0!==e&&void 0!==n){if(t.x===n.x&&(e.y<t.y&&t.y<n.y||e.y>t.y&&t.y>n.y))return!0;if(t.y===n.y&&(e.x<t.x&&t.x<n.x||e.x>t.x&&t.x>n.x))return!0}return!1},e.prototype.isIntermediatePoints=function(t,e){return 0<t.pointIndex&&t.pointIndex<this.connector.points.length-1&&0<e.pointIndex&&e.pointIndex<this.connector.points.length-1},e.prototype.removeUnnecessaryLinePoints=function(t){o.GeometryUtils.removeUnnecessaryLinePoints(t,(function(e,n){return-1===e.pointIndex?(t.splice(n,1),!0):(e.skipped=!0,!1)}),(function(t){return void 0!==t&&!t.skipped}))},e}(a.ConnectorPointsCalculatorBase);e.ConnectorPointsOrthogonalCalculator=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(38),r=n(27),a=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getCorrectOriginPoint=function(t,e){return t},e.prototype.getSameShapeOffsetPoints=function(t,e,n,i){return[]},e.prototype.getOverlappedPointsOffsetPoints=function(t,e,n,i){return[]},e.prototype.getBeginOverlappedShapeOffsetPoints=function(t,e,n,i){return[]},e.prototype.getEndOverlappedShapeOffsetPoints=function(t,e,n,i){return[]},e.prototype.getBeginOnSideOffsetPoints=function(t,e,n,i){return[]},e.prototype.getEndOnSideOffsetPoints=function(t,e,n,i){return[]},e.prototype.getBeginOffSideOffsetPoints=function(t,e,n,i){return[]},e.prototype.getEndOffSideOffsetPoints=function(t,e,n,i){return[]},e.prototype.isOnSidePoint=function(t,e){return!0},e.prototype.isDirectConnectionAllowed=function(t,e,n){var i=this.getSideCalculator(e,n);return void 0===i||i.isDirectConnectionAllowed(t,e,n)},e.prototype.getDirectConnectionPoints=function(t,e){var n=Math.abs(e.x-t.x),i=Math.abs(e.y-t.y);if(n>i){var o=Math.min(t.x,e.x)+n/2;return[new r.ConnectorRenderPoint(o,t.y),new r.ConnectorRenderPoint(o,e.y)]}var a=Math.min(t.y,e.y)+i/2;return[new r.ConnectorRenderPoint(t.x,a),new r.ConnectorRenderPoint(e.x,a)]},e}(o.ConnectorPointsOrthogonalSideCalculatorBase);e.ConnectorPointsOrthogonalUndefinedSideCalculator=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(38),a=n(27),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getCorrectOriginPoint=function(t,e){return t.y<e.bottom&&(t=t.offset(0,e.bottom-t.y)),t},e.prototype.getSameShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:case o.ConnectionPointSide.West:case o.ConnectionPointSide.South:return[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset())}},e.prototype.getOverlappedPointsOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.South:return[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return[e.offset(0,-this.getMinOffset())]}return[]},e.prototype.getBeginOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return e.y<n.y?e.x>n.x?[]:[e.offset(0,this.getMinOffset())]:e.y>this.endRect.bottom?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.West:return e.y<n.y?e.x<n.x?[]:[e.offset(0,this.getMinOffset())]:e.y>this.endRect.bottom?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.South:return[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),e.x<n.x)}},e.prototype.getEndOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return n.y<e.y?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):e.x<n.x?[e.offset(0,this.getMinOffset())]:[];case o.ConnectionPointSide.West:return n.y<e.y?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):e.x>n.x?[e.offset(0,this.getMinOffset())]:[];case o.ConnectionPointSide.South:return[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:var r=this.getMinOffset();return this.beginRect.bottom>e.y&&(r+=this.beginRect.bottom-e.y),[e.offset(0,r)]}},e.prototype.getBeginOnSideOffsetPoints=function(t,e,n,i){return[e.offset(0,this.getScaleableOffsetY(e,n,!1))]},e.prototype.getEndOnSideOffsetPoints=function(t,e,n,i){return[e.offset(0,this.getScaleableOffsetY(e,n,!0))]},e.prototype.getBeginOffSideOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!1);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!0);break;case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.North:return this.getScaleableAsideOffsetPoints(e,n,i,!1)}return[e.offset(0,this.getScaleableOffsetY(e,n,!1))]},e.prototype.getEndOffSideOffsetPoints=function(t,e,n,i){if(t===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(e,n,i,!0);if(this.isBeginEndOverlappedX()){var r=this.beginRect.center.x>this.endRect.center.x;return this.getScaleableAsideOffsetPoints(e,n,i,!0,r)}return[e.offset(0,this.getScaleableOffsetY(e,n,!0))]},e.prototype.getAsideOffsetPoints=function(t,e,n,i,o,r){var a=[];return void 0!==n&&(void 0===r&&(r=e.x<t.x),r?a.push(t.offset(-(t.x-n.left+o),i)):a.push(t.offset(n.right-t.x+o,i))),a.push(t.offset(0,i)),a},e.prototype.getScaleableAsideOffsetPoints=function(t,e,n,i,o){var r=this.getScaleableOffsetY(t,e,i),a=this.getScaleableOffsetX(t,e,i);return this.getAsideOffsetPoints(t,e,n,r,a,o)},e.prototype.getScaleableOffsetX=function(t,e,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedX()){var i=void 0;if((i=e.x<t.x?this.beginRect.left-this.endRect.right:this.endRect.left-this.beginRect.right)<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.getScaleableOffsetY=function(t,e,n){if(this.beginRect&&this.endRect){var i=n?this.beginRect.top-t.y:this.endRect.top-t.y;if(i>0&&i<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.isOnSidePoint=function(t,e){return e.y>t.y},e.prototype.isDirectConnectionAllowed=function(t,e,n){return t===o.ConnectionPointSide.North||t===o.ConnectionPointSide.Undefined},e.prototype.getDirectConnectionPoints=function(t,e){var n=t.y+(e.y-t.y)/2;return[new a.ConnectorRenderPoint(t.x,n),new a.ConnectorRenderPoint(e.x,n)]},e}(r.ConnectorPointsOrthogonalSideCalculatorBase);e.ConnectorPointsOrthogonalSouthSideCalculator=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(38),a=n(27),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getCorrectOriginPoint=function(t,e){return t.y>e.top&&(t=t.offset(0,e.top-t.y)),t},e.prototype.getSameShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:case o.ConnectionPointSide.West:case o.ConnectionPointSide.North:return[e.offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset())}},e.prototype.getOverlappedPointsOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.South:return[e.offset(0,this.getMinOffset())];case o.ConnectionPointSide.North:return[e.offset(0,-this.getMinOffset())]}return[]},e.prototype.getBeginOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return e.y>n.y?e.x>n.x?[]:[e.offset(0,-this.getMinOffset())]:e.y<this.endRect.top?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):[e.offset(0,-this.getMinOffset())];case o.ConnectionPointSide.West:return e.y>n.y?e.x<n.x?[]:[e.offset(0,-this.getMinOffset())]:e.y<this.endRect.top?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):[e.offset(0,-this.getMinOffset())];case o.ConnectionPointSide.North:return[e.offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),e.x<n.x)}},e.prototype.getEndOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return n.y>e.y?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):e.x<n.x?[e.offset(0,-this.getMinOffset())]:[];case o.ConnectionPointSide.West:return n.y>e.y?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):e.x>n.x?[e.offset(0,-this.getMinOffset())]:[];case o.ConnectionPointSide.North:return[e.offset(0,-this.getMinOffset())];case o.ConnectionPointSide.South:var r=-this.getMinOffset();return this.beginRect.top<e.y&&(r-=e.y-this.beginRect.top),[e.offset(0,r)]}},e.prototype.getBeginOnSideOffsetPoints=function(t,e,n,i){return[e.offset(0,-this.getScaleableOffsetY(e,n,!1))]},e.prototype.getEndOnSideOffsetPoints=function(t,e,n,i){return[e.offset(0,-this.getScaleableOffsetY(e,n,!0))]},e.prototype.getBeginOffSideOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!1);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!0);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedX())return this.getScaleableAsideOffsetPoints(e,n,i,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.South:return this.getScaleableAsideOffsetPoints(e,n,i,!1)}return[e.offset(0,-this.getScaleableOffsetY(e,n,!1))]},e.prototype.getEndOffSideOffsetPoints=function(t,e,n,i){if(t===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(e,n,i,!0);if(this.isBeginEndOverlappedX()){var r=this.beginRect.center.x>this.endRect.center.x;return this.getScaleableAsideOffsetPoints(e,n,i,!0,r)}return[e.offset(0,-this.getScaleableOffsetY(e,n,!0))]},e.prototype.getAsideOffsetPoints=function(t,e,n,i,o,r){var a=[];return void 0!==n&&(void 0===r&&(r=e.x<t.x),r?a.push(t.offset(-(t.x-n.left+o),-i)):a.push(t.offset(n.right-t.x+o,-i))),a.push(t.offset(0,-i)),a},e.prototype.getScaleableAsideOffsetPoints=function(t,e,n,i,o){var r=this.getScaleableOffsetY(t,e,i),a=this.getScaleableOffsetX(t,e,i);return this.getAsideOffsetPoints(t,e,n,r,a,o)},e.prototype.getScaleableOffsetX=function(t,e,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedX()){var i=void 0;if((i=e.x<t.x?this.beginRect.left-this.endRect.right:this.endRect.left-this.beginRect.right)<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.getScaleableOffsetY=function(t,e,n){if(this.beginRect&&this.endRect){var i=n?t.y-this.beginRect.bottom:t.y-this.endRect.bottom;if(i>0&&i<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.isOnSidePoint=function(t,e){return e.y<t.y},e.prototype.isDirectConnectionAllowed=function(t,e,n){return t===o.ConnectionPointSide.South||t===o.ConnectionPointSide.Undefined},e.prototype.getDirectConnectionPoints=function(t,e){var n=e.y+(t.y-e.y)/2;return[new a.ConnectorRenderPoint(t.x,n),new a.ConnectorRenderPoint(e.x,n)]},e}(r.ConnectorPointsOrthogonalSideCalculatorBase);e.ConnectorPointsOrthogonalNorthSideCalculator=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(38),a=n(27),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getCorrectOriginPoint=function(t,e){return t.x<e.right&&(t=t.offset(e.right-t.x,0)),t},e.prototype.getSameShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.North:case o.ConnectionPointSide.South:case o.ConnectionPointSide.East:return[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset())}},e.prototype.getOverlappedPointsOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[e.offset(-this.getMinOffset(),0)]}return[]},e.prototype.getBeginOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.North:return e.x<n.x?e.y<n.y?[]:[e.offset(this.getMinOffset(),0)]:e.x>this.endRect.right?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.South:return e.x<n.x?e.y>n.y?[]:[e.offset(this.getMinOffset(),0)]:e.x>this.endRect.right?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.East:return[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),e.y<n.y)}},e.prototype.getEndOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:var r=this.getMinOffset();return this.beginRect.right>e.x&&(r+=this.beginRect.right-e.x),[e.offset(r,0)];case o.ConnectionPointSide.North:return n.x<e.x?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):e.y>n.y?[e.offset(this.getMinOffset(),0)]:[];case o.ConnectionPointSide.South:return n.x<e.x?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):e.y<n.y?[e.offset(this.getMinOffset(),0)]:[]}},e.prototype.getBeginOnSideOffsetPoints=function(t,e,n,i){return[e.offset(this.getScaleableOffsetX(e,n,!1),0)]},e.prototype.getEndOnSideOffsetPoints=function(t,e,n,i){return[e.offset(this.getScaleableOffsetX(e,n,!0),0)]},e.prototype.getBeginOffSideOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!1);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!0);break;case o.ConnectionPointSide.East:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.West:return this.getScaleableAsideOffsetPoints(e,n,i,!1)}return[e.offset(this.getScaleableOffsetX(e,n,!1),0)]},e.prototype.getEndOffSideOffsetPoints=function(t,e,n,i){if(t===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(e,n,i,!0);if(this.isBeginEndOverlappedY()){var r=this.beginRect.center.y>this.endRect.center.y;return this.getScaleableAsideOffsetPoints(e,n,i,!0,r)}return[e.offset(this.getScaleableOffsetX(e,n,!0),0)]},e.prototype.getAsideOffsetPoints=function(t,e,n,i,o,r){var a=[];return void 0!==n&&(void 0===r&&(r=e.y<t.y),r?a.push(t.offset(i,-(t.y-n.top+o))):a.push(t.offset(i,n.bottom-t.y+o))),a.push(t.offset(i,0)),a},e.prototype.getScaleableAsideOffsetPoints=function(t,e,n,i,o){var r=this.getScaleableOffsetX(t,e,i),a=this.getScaleableOffsetY(t,e,i);return this.getAsideOffsetPoints(t,e,n,r,a,o)},e.prototype.getScaleableOffsetX=function(t,e,n){if(this.beginRect&&this.endRect){var i=n?this.beginRect.left-t.x:this.endRect.left-t.x;if(i>0&&i<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.getScaleableOffsetY=function(t,e,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedY()){var i=void 0;if((i=e.y<t.y?this.beginRect.top-this.endRect.bottom:this.endRect.top-this.beginRect.bottom)<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.isOnSidePoint=function(t,e){return e.x>t.x},e.prototype.isDirectConnectionAllowed=function(t,e,n){return t===o.ConnectionPointSide.West||t===o.ConnectionPointSide.Undefined},e.prototype.getDirectConnectionPoints=function(t,e){var n=t.x+(e.x-t.x)/2;return[new a.ConnectorRenderPoint(n,t.y),new a.ConnectorRenderPoint(n,e.y)]},e}(r.ConnectorPointsOrthogonalSideCalculatorBase);e.ConnectorPointsOrthogonalEastSideCalculator=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(5),r=n(38),a=n(27),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.getCorrectOriginPoint=function(t,e){return t.x>e.left&&(t=t.offset(e.left-t.x,0)),t},e.prototype.getSameShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.North:case o.ConnectionPointSide.South:case o.ConnectionPointSide.West:return[e.offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.East:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset())}},e.prototype.getOverlappedPointsOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:return[e.offset(this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[e.offset(-this.getMinOffset(),0)]}return[]},e.prototype.getBeginOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.North:return e.x>n.x?e.y<n.y?[]:[e.offset(-this.getMinOffset(),0)]:e.x<this.endRect.left?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):[e.offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.South:return e.x>n.x?e.y>n.y?[]:[e.offset(-this.getMinOffset(),0)]:e.x<this.endRect.left?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):[e.offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.West:return[e.offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.East:return this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),e.y<n.y)}},e.prototype.getEndOverlappedShapeOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.East:var r=-this.getMinOffset();return this.beginRect.left<e.x&&(r-=e.x-this.beginRect.left),[e.offset(r,0)];case o.ConnectionPointSide.West:return[e.offset(-this.getMinOffset(),0)];case o.ConnectionPointSide.North:return n.x>e.x?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!0):e.y>n.y?[e.offset(-this.getMinOffset(),0)]:[];case o.ConnectionPointSide.South:return n.x>e.x?this.getAsideOffsetPoints(e,n,i,this.getMinOffset(),this.getMinOffset(),!1):e.y<n.y?[e.offset(-this.getMinOffset(),0)]:[]}},e.prototype.getBeginOnSideOffsetPoints=function(t,e,n,i){return[e.offset(-this.getScaleableOffsetX(e,n,!1),0)]},e.prototype.getEndOnSideOffsetPoints=function(t,e,n,i){return[e.offset(-this.getScaleableOffsetX(e,n,!0),0)]},e.prototype.getBeginOffSideOffsetPoints=function(t,e,n,i){switch(t){case o.ConnectionPointSide.South:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!1);break;case o.ConnectionPointSide.North:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1,!0);break;case o.ConnectionPointSide.West:if(this.isBeginEndOverlappedY())return this.getScaleableAsideOffsetPoints(e,n,i,!1);break;case o.ConnectionPointSide.Undefined:case o.ConnectionPointSide.East:return this.getScaleableAsideOffsetPoints(e,n,i,!1)}return[e.offset(-this.getScaleableOffsetX(e,n,!1),0)]},e.prototype.getEndOffSideOffsetPoints=function(t,e,n,i){if(t===o.ConnectionPointSide.Undefined)return this.getScaleableAsideOffsetPoints(e,n,i,!0);if(this.isBeginEndOverlappedY()){var r=this.beginRect.center.y>this.endRect.center.y;return this.getScaleableAsideOffsetPoints(e,n,i,!0,r)}return[e.offset(-this.getScaleableOffsetX(e,n,!0),0)]},e.prototype.getAsideOffsetPoints=function(t,e,n,i,o,r){var a=[];return void 0!==n&&(void 0===r&&(r=e.y<t.y),r?a.push(t.offset(-i,-(t.y-n.top+o))):a.push(t.offset(-i,n.bottom-t.y+o))),a.push(t.offset(-i,0)),a},e.prototype.getScaleableAsideOffsetPoints=function(t,e,n,i,o){var r=this.getScaleableOffsetX(t,e,i),a=this.getScaleableOffsetY(t,e,i);return this.getAsideOffsetPoints(t,e,n,r,a,o)},e.prototype.getScaleableOffsetX=function(t,e,n){if(this.beginRect&&this.endRect){var i=n?t.x-this.beginRect.right:t.x-this.endRect.right;if(i>0&&i<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.getScaleableOffsetY=function(t,e,n){if(this.beginRect&&this.endRect&&!n&&!this.isBeginEndOverlappedY()){var i=void 0;if((i=e.y<t.y?this.beginRect.top-this.endRect.bottom:this.endRect.top-this.beginRect.bottom)<2*this.getMinOffset())return i/2}return this.getMinOffset()},e.prototype.isOnSidePoint=function(t,e){return e.x<t.x},e.prototype.isDirectConnectionAllowed=function(t,e,n){return t===o.ConnectionPointSide.East||t===o.ConnectionPointSide.Undefined},e.prototype.getDirectConnectionPoints=function(t,e){var n=e.x+(t.x-e.x)/2;return[new a.ConnectorRenderPoint(n,t.y),new a.ConnectorRenderPoint(n,e.y)]},e}(r.ConnectorPointsOrthogonalSideCalculatorBase);e.ConnectorPointsOrthogonalWestSideCalculator=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.position=t,this.value=e};e.ConnectorText=i;var o=function(){function t(){this.items={}}return t.prototype.get=function(t){return this.items[t]},t.prototype.set=function(t,e){this.items[t]=e},t.prototype.remove=function(t){delete this.items[t]},t.prototype.map=function(t){var e=[];return this.forEach((function(n){return e.push(t(n))})),e},t.prototype.forEach=function(t){for(var e in this.items)this.items.hasOwnProperty(e)&&t(this.items[e])},t.prototype.count=function(){return Object.keys(this.items).length},t.prototype.clone=function(){var e=new t;return this.forEach((function(t){e.set(t.position,new i(t.position,t.value))})),e},t.prototype.toObject=function(){var t={},e=!1;return this.forEach((function(n){t[n.position]=n.value,e=!0})),e?t:null},t.prototype.fromObject=function(t){for(var e in t)if(t.hasOwnProperty(e)){var n=parseFloat(e);isNaN(n)||"string"!==typeof t[e]||this.set(n,new i(n,t[e]))}},t}();e.ConnectorTexts=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=function(){function t(){}return t.TrimStart=function(e){return t.trimInternal(e,!0,!1)},t.TrimEnd=function(e){return t.trimInternal(e,!1,!0)},t.Trim=function(e){return t.trimInternal(e,!0,!0)},t.EncodeHtml=function(e){return t.ApplyReplacement(e,[[/&/g,"&x;"],[/&/g,"&"],[/"/g,""x;"],[/"/g,"""],[/</g,"<x;"],[/</g,"<"],[/>/g,">x;"],[/>/g,">"]])},t.trimInternal=function(e,n,i){var o=e.length;if(!o)return e;if(o<764833){var r=e;return n&&(r=r.replace(/^\s+/,"")),i&&(r=r.replace(/\s+$/,"")),r}var a=0;if(i)for(;o>0&&t.whiteSpaces[e.charCodeAt(o-1)];)o--;if(n&&o>0)for(;a<o&&t.whiteSpaces[e.charCodeAt(a)];)a++;return e.substring(a,o)},t.ApplyReplacement=function(t,e){for(var n=0;n<e.length;n++){var i=e[n];t=t.replace(i[0],i[1])}return t},t.DecodeHtmlViaTextArea=function(t){var e=document.createElement("TEXTAREA");return i.setInnerHtmlInternal(e,t),e.value},t.whiteSpaces={9:1,10:1,11:1,12:1,13:1,32:1,133:1,160:1,5760:1,6158:1,8192:1,8193:1,8194:1,8195:1,8196:1,8197:1,8198:1,8199:1,8200:1,8201:1,8202:1,8203:1,8232:1,8233:1,8239:1,8287:1,12288:1},t}();e.Str=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=function(){function t(){}return t.SetAttribute=function(e,n,i){e.setAttribute?(t.isSourceResetRequired()&&"src"===n.toLowerCase()&&e.setAttribute(n,""),e.setAttribute(n,i)):e.setProperty&&e.setProperty(n,i,"")},t.GetAttribute=function(t,e){if(t.getAttribute)return t.getAttribute(e);if(t.getPropertyValue){if(i.Browser.Firefox)try{return t.getPropertyValue(e)}catch(n){return t[e]}return t.getPropertyValue(e)}return null},t.GetTabIndexAttributeName=function(){return i.Browser.IE?"tabIndex":"tabindex"},t.ChangeStyleAttribute=function(e,n,i){t.ChangeAttributeExtended(e.style,n,e,"saved"+n,i)},t.ChangeAttributeExtended=function(e,n,i,o,r){t.SaveAttribute(e,n,i,o),t.SetAttribute(e,n,r)},t.SaveAttribute=function(e,n,i,o){if(!t.IsExistsAttribute(i,o)){var r=t.IsExistsAttribute(e,n)?t.GetAttribute(e,n):t.EmptyObject;t.SetAttribute(i,o,r)}},t.RestoreAttributeExtended=function(e,n,i,o){if(t.IsExistsAttribute(i,o)){var r=t.GetAttribute(i,o);return r!=t.EmptyObject?t.SetAttribute(e,n,r):t.RemoveAttribute(e,n),t.RemoveAttribute(i,o),!0}return!1},t.RemoveAttribute=function(t,e){t.removeAttribute?t.removeAttribute(e):t.removeProperty&&t.removeProperty(e)},t.IsExistsAttribute=function(e,n){var i=t.GetAttribute(e,n);return null!=i&&""!==i},t.isSourceResetRequired=function(){return i.Browser.IE&&i.Browser.MajorVersion>=11},t.EmptyObject={},t.RestoreStyleAttribute=function(e,n){return t.RestoreAttributeExtended(e.style,n,e,"saved"+n)},t}();e.Attr=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=n(88),a=n(19),s=n(4),l=function(t){function e(e,n,i,o,r){void 0===n&&(n="-0.05"),void 0===i&&(i="-0.05"),void 0===o&&(o="1.1"),void 0===r&&(r="1.1");var a=t.call(this,e,n,i,o,r)||this;return a.id=e,a.x=n,a.y=i,a.width=o,a.height=r,a}return i(e,t),e.prototype.createChildElements=function(t){var e=document.createElementNS(o.svgNS,"feFlood");t.appendChild(e);var n=document.createElementNS(o.svgNS,"feComposite");n.setAttribute("in","SourceGraphic"),n.setAttribute("operator","atop"),t.appendChild(n)},e}(r.FilterPrimitive);e.TextFilterPrimitive=l;var u=function(t){function e(e,n,i,o,r,a){void 0===i&&(i="-0.05"),void 0===o&&(o="-0.05"),void 0===r&&(r="1.1"),void 0===a&&(a="1.1");var s=t.call(this,e,i,o,r,a)||this;return s.id=e,s.floodColor=n,s.x=i,s.y=o,s.width=r,s.height=a,s}return i(e,t),e.prototype.applyChildrenProperties=function(t){for(var e=void 0,n=0;e=t.childNodes[n];n++)if(e.nodeName&&"FEFLOOD"===e.nodeName.toUpperCase()){this.prepareFEFloodNode(e);break}},e.prototype.prepareFEFloodNode=function(t){var e=s.ColorHelper.colorToHash(this.floodColor);t.setAttribute("flood-color",e),t.setAttribute("class","text-filter-flood"),this.floodColor!==a.DiagramModel.defaultPageColor?t.style.setProperty("flood-color",e):t.style.setProperty("flood-color","")},e}(l);e.TextFloodFilterPrimitive=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(2),a=function(){function t(t){this.style=t}return t.prototype.hasCommands=function(){return!0},t.prototype.needCreateSeparatePrimitive=function(){return!1},t.prototype.createPrimitive=function(){return new r.PathPrimitive([],this.getStyle(),this.getCssClass())},t.prototype.createCommands=function(t,e){return[]},t.prototype.getStyle=function(){var t=this.style.clone();return t.resetStrokeDashArray(),t},t.prototype.getCssClass=function(){},t}();e.ConnectorLineEndingStrategy=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.hasCommands=function(){return!1},e}(a);e.ConnectorLineEndingNoneStrategy=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"arrowHeight",{get:function(){return 6*this.style.strokeWidth},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"arrowWidth",{get:function(){return 2*this.style.strokeWidth},enumerable:!0,configurable:!0}),e.prototype.needCreateSeparatePrimitive=function(){return!this.style.isDefaultStrokeDashArray()},e.prototype.createCommands=function(t,e){var n=this.getArrowPoints(t,e),i=[new r.PathPrimitiveMoveToCommand(n.point1.x,n.point1.y),new r.PathPrimitiveLineToCommand(t.x,t.y),new r.PathPrimitiveLineToCommand(n.point2.x,n.point2.y)];return this.style.isDefaultStrokeDashArray()||(i=i.concat([new r.PathPrimitiveMoveToCommand(t.x,t.y),new r.PathPrimitiveLineToCommand(n.point3.x,n.point3.y)])),i},e.prototype.getArrowPoints=function(t,e){var n,i=this.arrowHeight;return t.x===e.x&&(n=Math.abs(t.y-e.y))<i&&(i=n),t.y===e.y&&(n=Math.abs(t.x-e.x))<i&&(i=n),o.GeometryUtils.getArrowPoints(t,e,i,this.arrowWidth)},e}(a);e.ConnectorLineEndingArrowStrategy=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.needCreateSeparatePrimitive=function(){return!0},e.prototype.createCommands=function(t,e){var n=this.getArrowPoints(t,e);return[new r.PathPrimitiveMoveToCommand(n.point1.x,n.point1.y),new r.PathPrimitiveLineToCommand(t.x,t.y),new r.PathPrimitiveLineToCommand(n.point2.x,n.point2.y),new r.PathPrimitiveClosePathCommand]},e.prototype.getCssClass=function(){return"outlined-line-ending"},e}(l);e.ConnectorLineEndingOutlinedTriangleStrategy=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyle=function(){var e=t.prototype.getStyle.call(this);return e.fill=e.stroke,e},e.prototype.getCssClass=function(){return"filled-line-ending"},e}(u);e.ConnectorLineEndingFilledTriangleStrategy=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(0),a=function(t){function e(e){var n=t.call(this)||this;return n.offset=e,n}return i(e,t),e.prototype.redo=function(t){this.oldSize=t.model.size.clone(),this.backOffset=new r.Offset(-this.offset.left,-this.offset.top,-this.offset.right,-this.offset.bottom);var e=Math.max(this.oldSize.width+this.offset.left+this.offset.right,t.model.pageWidth),n=Math.max(this.oldSize.height+this.offset.top+this.offset.bottom,t.model.pageHeight);t.changeModelSize(new r.Size(e,n),this.offset)},e.prototype.undo=function(t){t.changeModelSize(this.oldSize,this.backOffset)},e}(o.HistoryItem);e.ModelResizeHistoryItem=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=n(11),a=n(6),s=function(t){function e(e,n){var i=t.call(this)||this;return i.offsetX=e,i.offsetY=n,i}return i(e,t),e.prototype.redo=function(t){var e=this;t.model.iterateItems((function(n){n instanceof r.Shape&&t.moveShape(n,n.position.offset(e.offsetX,e.offsetY)),n instanceof a.Connector&&n.points.forEach((function(i,o){return t.moveConnectorPoint(n,o,i.offset(e.offsetX,e.offsetY))}))}))},e.prototype.undo=function(t){var e=this;t.model.iterateItems((function(n){n instanceof r.Shape&&t.moveShape(n,n.position.offset(-e.offsetX,-e.offsetY)),n instanceof a.Connector&&n.points.forEach((function(i,o){return t.moveConnectorPoint(n,o,i.offset(-e.offsetX,-e.offsetY))}))}))},e}(o.HistoryItem);e.UpdatePositionsOnPageResizeHistoryItem=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.connectorKey=e,i.pointIndex=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.point=e.points[this.pointIndex].clone(),t.deleteConnectorPoint(e,this.pointIndex)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.addConnectorPoint(e,this.pointIndex,this.point)},e}(n(3).HistoryItem);e.DeleteConnectorPointHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.shapeKey=e,o.position=n,o.size=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.oldPosition=e.position.clone(),this.oldSize=e.size.clone(),t.resizeShape(e,this.position,this.size)},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.resizeShape(e,this.oldPosition,this.oldSize)},e}(n(3).HistoryItem);e.ResizeShapeHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.connectorKey=e,n}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);this.connector=e.clone(),t.deleteConnector(e)},e.prototype.undo=function(t){t.addConnector(this.connector,this.connector.key)},e}(n(3).HistoryItem);e.DeleteConnectorHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.containerKey=n.key,i.itemKey=e.key,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey),n=t.model.findShape(this.containerKey);t.insertToContainer(e,n)},e.prototype.undo=function(t){var e=t.model.findItem(this.itemKey);t.removeFromContainer(e)},e}(n(3).HistoryItem);e.InsertToContainerHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.itemKey=e.key,n}return i(e,t),e.prototype.redo=function(t){var e=t.model.findItem(this.itemKey);this.containerKey=e.container&&e.container.key,t.removeFromContainer(e)},e.prototype.undo=function(t){var e=t.model.findContainer(this.containerKey),n=t.model.findItem(this.itemKey);t.insertToContainer(n,e)},e}(n(3).HistoryItem);e.RemoveFromContainerHistoryItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(161),o=function(){function t(t,e){this.container=t,this.sourceGraph=e}return Object.defineProperty(t.prototype,"graph",{get:function(){return this._graph||(this._graph=this.getNodeInfoGraph())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"level",{get:function(){return void 0!==this._level?this._level:this._level=this.getLevel()},enumerable:!0,configurable:!0}),t.prototype.getNodeInfoGraph=function(){return this.sourceGraph.cast(i.LayoutUtils.shapeToLayout)},t.prototype.getLevel=function(){var t=0;return this.container&&(t=this.getContainerLevel(this.container)),t},t.prototype.getContainerLevel=function(t){var e=1,n=t.container;return n&&(e+=this.getContainerLevel(n)),e},t}();e.GraphInfo=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(53),o=function(){function t(){}return t.shapeToLayout=function(t){var e=new i.Margin(0),n=t.rectangle;t.attachedConnectors.filter((function(t){return!t.beginItem||!t.endItem})).forEach((function(t){var i=t.rectangle;e.left=Math.max(e.left,n.left-i.left),e.right=Math.max(e.right,i.right-n.right),e.top=Math.max(e.top,n.top-i.top),e.bottom=Math.max(e.bottom,i.bottom-n.bottom)}));var o=new i.NodeInfo(t.key,e,t.size.clone());return o.connectionPoints=t.description.getConnectionPoints(),o},t}();e.LayoutUtils=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.control=t}return t.prototype.execute=function(t){var e=this.getState();if(!e.enabled)return!1;this.control.beginUpdate();var n=this.executeCore(e,t);return this.control.endUpdate(),n&&this.updateControlState(),n},t.prototype.updateControlState=function(){this.lockInputPositionUpdating()||this.control.selection.inputPosition.reset(),this.lockUIUpdating()||this.control.barManager.updateItemsState()},t.prototype.lockUIUpdating=function(){return!1},t.prototype.lockInputPositionUpdating=function(){return!1},t}();e.CommandBase=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n,i,o){this.visible=!0,this.denyUpdateValue=!1,this.enabled=t,this.value=e,this.items=i,this.visible=o,this.defaultValue=n};e.SimpleCommandState=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t){return this.control.beginUpdate(!0),this.control.history.undo(),this.control.endUpdate(!0),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.history.canUndo()},e}(n(8).SimpleCommandBase);e.UndoCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t){return this.control.beginUpdate(!0),this.control.history.redo(),this.control.endUpdate(!0),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.history.canRedo()},e}(n(8).SimpleCommandBase);e.RedoCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(95),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=e.data?e.data:e,i=new o.Importer(this.control.shapeDescriptionManager,n);if(!0===e.keepExistingItems)i.importItemsData(this.control.model),this.control.importItemsData();else{var r=i.import();this.control.importModel(r)}return!0},e}(n(44).ExportImportCommandBase);e.ImportCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Process},enumerable:!0,configurable:!0}),e}(o.RectangleShapeDescription);e.ProcessShapeDescription=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(96),r=n(1),a=n(0),s=n(9),l=function(t){function e(){return t.call(this,new a.Size(s.ShapeDefaultDimension,.75*s.ShapeDefaultDimension),!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Decision},enumerable:!0,configurable:!0}),e}(o.DiamondShapeDescription);e.DecisionShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(5),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.ManualInput},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,s=n.bottom,l=(n.width,o+n.height*e.slopeHeightRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(i,l),new a.PathPrimitiveLineToCommand(r,o),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveLineToCommand(i,s),new a.PathPrimitiveClosePathCommand],t.style)]},e.prototype.processConnectionPoint=function(t,n){t.getConnectionPointSide(n)===s.ConnectionPointSide.North&&(n.y+=e.slopeHeightRatio/2*t.size.height)},e.slopeHeightRatio=.1,e}(o.RectangleShapeDescription);e.ManualInputShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(5),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Data},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,s=n.bottom,l=n.width,u=n.height,c=Math.min(Math.max(0,u/Math.tan(e.slopeAngle)),l),d=i+c,h=r-c;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(d,o),new a.PathPrimitiveLineToCommand(r,o),new a.PathPrimitiveLineToCommand(h,s),new a.PathPrimitiveLineToCommand(i,s),new a.PathPrimitiveClosePathCommand],t.style)]},e.prototype.processConnectionPoint=function(t,n){var i=t.size.height/Math.tan(e.slopeAngle),o=t.getConnectionPointSide(n);o===s.ConnectionPointSide.East?n.x-=i/2:o===s.ConnectionPointSide.West&&(n.x+=i/2)},e.slopeAngle=81*Math.PI/180,e}(o.RectangleShapeDescription);e.DataShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(0),l=n(9),u=function(t){function e(){return t.call(this,new s.Size(l.ShapeDefaultDimension,.5*l.ShapeDefaultDimension),!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Terminator},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,s=n.bottom,l=n.width,u=(n.height,n.center.y),c=i+l*e.curveWidthRatio,d=i+l*(1-e.curveWidthRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(c,o),new a.PathPrimitiveLineToCommand(d,o),new a.PathPrimitiveQuadraticCurveToCommand(r,o,r,u),new a.PathPrimitiveQuadraticCurveToCommand(r,s,d,s),new a.PathPrimitiveLineToCommand(c,s),new a.PathPrimitiveQuadraticCurveToCommand(i,s,i,u),new a.PathPrimitiveQuadraticCurveToCommand(i,o,c,o),new a.PathPrimitiveClosePathCommand],t.style)]},e.curveWidthRatio=.3,e}(o.RectangleShapeDescription);e.TerminatorShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(28),s=n(23),l=n(0),u=n(2);e.PredefinedProcessEdgeParameterName="e";var c=function(t){function n(){return t.call(this,void 0,!0)||this}return i(n,t),Object.defineProperty(n.prototype,"key",{get:function(){return r.ShapeTypes.PredefinedProcess},enumerable:!0,configurable:!0}),n.prototype.createShapePrimitives=function(n){var i=n.rectangle,o=i.left,r=i.top,a=i.right,s=i.bottom,l=(i.width,i.height,o+n.parameters.get(e.PredefinedProcessEdgeParameterName).value),c=a-n.parameters.get(e.PredefinedProcessEdgeParameterName).value;return t.prototype.createShapePrimitives.call(this,n).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(l,r),new u.PathPrimitiveLineToCommand(l,s),new u.PathPrimitiveMoveToCommand(c,r),new u.PathPrimitiveLineToCommand(c,s)],n.style)])},n.prototype.createParameters=function(t){t.add(new a.ShapeParameter(e.PredefinedProcessEdgeParameterName,.1*this.defaultSize.width))},n.prototype.normalizeParameters=function(t,i){this.changeParameterValue(i,e.PredefinedProcessEdgeParameterName,(function(e){return Math.max(n.minEdge,Math.min(.3*t.size.width,e.value))}))},n.prototype.modifyParameters=function(t,n,i,o){this.changeParameterValue(n,e.PredefinedProcessEdgeParameterName,(function(t){return t.value+i})),this.normalizeParameters(t,n)},n.prototype.getParameterPoints=function(t){return[new s.ShapeParameterPoint("c",new l.Point(t.normalizeX(t.position.x+t.parameters.get(e.PredefinedProcessEdgeParameterName).value),t.position.y))]},n.prototype.getTextRectangle=function(t){var n=t.rectangle,i=t.parameters.get(e.PredefinedProcessEdgeParameterName).value;return n.resize(-2*i,0).offset(i,0)},n.minEdge=72,n}(o.RectangleShapeDescription);e.PredefinedProcessShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(23),a=n(0),s=n(71),l=n(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowUpDown},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,l=e.width,u=(e.height,e.center.x),c=(l-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2,d=t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value,h=t.normalizeX(n+c),f=t.normalizeY(i+d),p=t.normalizeX(r-c),m=t.normalizeY(a-d);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,i),new o.PathPrimitiveLineToCommand(r,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,m),new o.PathPrimitiveLineToCommand(r,m),new o.PathPrimitiveLineToCommand(u,a),new o.PathPrimitiveLineToCommand(n,m),new o.PathPrimitiveLineToCommand(h,m),new o.PathPrimitiveLineToCommand(h,f),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.normalizeParameters=function(t,e){this.changeParameterValue(e,s.ArrowVerticalTriangleHeightParameterName,(function(e){return Math.max(0,Math.min(t.size.height/2-2*t.strokeWidth,e.value))})),this.changeParameterValue(e,s.ArrowVerticalLineWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.width,e.value))}))},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,s.ArrowVerticalTriangleHeightParameterName,(function(t){return t.value+i})),this.changeParameterValue(e,s.ArrowVerticalLineWidthParameterName,(function(t){return t.value-2*n})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new r.ShapeParameterPoint("c",new a.Point(t.normalizeX(t.position.x+(t.size.width-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2),t.normalizeY(t.position.y+t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value)))]},e}(s.ArrowVerticalShapeDescription);e.ArrowUpDownShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(72),a=n(23),s=n(0),l=n(1),u=n(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowRight},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,a=e.right,s=e.bottom,l=e.width,u=e.height,c=e.center.y,d=l-t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value,h=(u-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2,f=t.normalizeX(n+d),p=t.normalizeY(i+h),m=t.normalizeY(s-h);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,p),new o.PathPrimitiveLineToCommand(f,p),new o.PathPrimitiveLineToCommand(f,i),new o.PathPrimitiveLineToCommand(a,c),new o.PathPrimitiveLineToCommand(f,s),new o.PathPrimitiveLineToCommand(f,m),new o.PathPrimitiveLineToCommand(n,m),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,r.ArrowVerticalTriangleWidthParameterName,(function(t){return t.value-n})),this.changeParameterValue(e,r.ArrowVerticalLineHeightParameterName,(function(t){return t.value-2*i})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new a.ShapeParameterPoint("c",new s.Point(t.normalizeX(t.position.x+t.size.width-t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value),t.normalizeY(t.position.y+(t.size.height-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2)))]},e.prototype.processConnectionPoint=function(e,n){var i=e.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value;if(n.x>e.position.x+e.size.width-i){var o=e.size.height/2/i,a=(n.x-(e.position.x+e.size.width-i))*o,s=e.getConnectionPointSide(n);s===u.ConnectionPointSide.North?n.y+=a:s===u.ConnectionPointSide.South&&(n.y-=a)}else t.prototype.processConnectionPoint.call(this,e,n)},e}(r.ArrowHorizontalShapeDescription);e.ArrowRightShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(23),a=n(0),s=n(71),l=n(1),u=n(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowUp},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,l=e.width,u=(e.height,e.center.x),c=(l-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2,d=t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value,h=t.normalizeX(n+c),f=t.normalizeY(i+d),p=t.normalizeX(r-c);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(u,i),new o.PathPrimitiveLineToCommand(r,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,a),new o.PathPrimitiveLineToCommand(h,a),new o.PathPrimitiveLineToCommand(h,f),new o.PathPrimitiveLineToCommand(n,f),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,s.ArrowVerticalTriangleHeightParameterName,(function(t){return t.value+i})),this.changeParameterValue(e,s.ArrowVerticalLineWidthParameterName,(function(t){return t.value-2*n})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new r.ShapeParameterPoint("c",new a.Point(t.normalizeX(t.position.x+(t.size.width-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2),t.normalizeY(t.position.y+t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value)))]},e.prototype.processConnectionPoint=function(e,n){var i=e.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value;if(n.y<e.position.y+i){var o=e.size.width/2/i,r=(e.position.y+i-n.y)*o,a=e.getConnectionPointSide(n);a===u.ConnectionPointSide.East?n.x-=r:a===u.ConnectionPointSide.West&&(n.x+=r)}else t.prototype.processConnectionPoint.call(this,e,n)},e}(s.ArrowVerticalShapeDescription);e.ArrowUpShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(28),s=n(23),l=n(2),u=n(1);e.CrossHorizontalWidthParameterName="chw",e.CrossVerticalWidthParameterName="cvw";var c=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),Object.defineProperty(n.prototype,"key",{get:function(){return u.ShapeTypes.Cross},enumerable:!0,configurable:!0}),n.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,a=n.bottom,s=n.width,u=n.height,c=(s-t.parameters.get(e.CrossHorizontalWidthParameterName).value)/2,d=(u-t.parameters.get(e.CrossVerticalWidthParameterName).value)/2,h=t.normalizeX(i+c),f=t.normalizeY(o+d),p=t.normalizeX(r-c),m=t.normalizeY(a-d);return[new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(i,f),new l.PathPrimitiveLineToCommand(h,f),new l.PathPrimitiveLineToCommand(h,o),new l.PathPrimitiveLineToCommand(p,o),new l.PathPrimitiveLineToCommand(p,f),new l.PathPrimitiveLineToCommand(r,f),new l.PathPrimitiveLineToCommand(r,m),new l.PathPrimitiveLineToCommand(p,m),new l.PathPrimitiveLineToCommand(p,a),new l.PathPrimitiveLineToCommand(h,a),new l.PathPrimitiveLineToCommand(h,m),new l.PathPrimitiveLineToCommand(i,m),new l.PathPrimitiveClosePathCommand],t.style)]},n.prototype.createParameters=function(t){t.addRange([new a.ShapeParameter(e.CrossHorizontalWidthParameterName,.2*this.defaultSize.width),new a.ShapeParameter(e.CrossVerticalWidthParameterName,.2*this.defaultSize.height)])},n.prototype.normalizeParameters=function(t,n){this.changeParameterValue(n,e.CrossHorizontalWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.width,e.value))})),this.changeParameterValue(n,e.CrossVerticalWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.height,e.value))}))},n.prototype.modifyParameters=function(t,n,i,o){this.changeParameterValue(n,e.CrossHorizontalWidthParameterName,(function(t){return t.value-2*i})),this.changeParameterValue(n,e.CrossVerticalWidthParameterName,(function(t){return t.value-2*o})),this.normalizeParameters(t,n)},n.prototype.getParameterPoints=function(t){return[new s.ShapeParameterPoint("c",new r.Point(t.normalizeX(t.position.x+(t.size.width-t.parameters.get(e.CrossHorizontalWidthParameterName).value)/2),t.normalizeY(t.position.y+(t.size.height-t.parameters.get(e.CrossVerticalWidthParameterName).value)/2)))]},n}(o.ShapeDescription);e.CrossShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(2),a=n(1),s=n(33),l=n(5),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.Heart},enumerable:!0,configurable:!0}),e.prototype.createConnectionPoints=function(){return[new s.ConnectionPoint(.5,.15,l.ConnectionPointSide.North),new s.ConnectionPoint(1,.25,l.ConnectionPointSide.East),new s.ConnectionPoint(.5,1,l.ConnectionPointSide.South),new s.ConnectionPoint(0,.25,l.ConnectionPointSide.West)]},e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.right,a=e.bottom,s=e.width,l=e.height;return[new r.PathPrimitive([new r.PathPrimitiveMoveToCommand(o-.25*s,i),new r.PathPrimitiveCubicCurveToCommand(o-.15*s,i,o,i+.1*l,o,i+.25*l),new r.PathPrimitiveCubicCurveToCommand(o,i+.3*l,o-.02*s,i+.35*l,o-.05*s,i+.4*l),new r.PathPrimitiveLineToCommand(e.center.x,a),new r.PathPrimitiveLineToCommand(n+.05*s,i+.4*l),new r.PathPrimitiveCubicCurveToCommand(n+.02*s,i+.35*l,n,i+.3*l,n,i+.25*l),new r.PathPrimitiveCubicCurveToCommand(n,i+.1*l,n+.15*s,i,n+.25*s,i),new r.PathPrimitiveCubicCurveToCommand(n+.3*s,i,n+.45*s,i+.03*l,n+.5*s,i+.15*l),new r.PathPrimitiveCubicCurveToCommand(o-.45*s,i+.03*l,o-.3*s,i,o-.25*s,i),new r.PathPrimitiveClosePathCommand],t.style)]},e}(o.ShapeDescription);e.HeartShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Octagon},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"angleCount",{get:function(){return 8},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,s=e.width,l=e.height,u=Math.PI-this.angle,c=s/(1+2*Math.cos(u)),d=l/(1+2*Math.cos(u)),h=n+(s-c)/2,f=h+c,p=i+(l-d)/2,m=p+d;return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(h,i),new o.PathPrimitiveLineToCommand(f,i),new o.PathPrimitiveLineToCommand(r,p),new o.PathPrimitiveLineToCommand(r,m),new o.PathPrimitiveLineToCommand(f,a),new o.PathPrimitiveLineToCommand(h,a),new o.PathPrimitiveLineToCommand(n,m),new o.PathPrimitiveLineToCommand(n,p),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.calculateHeight=function(t){return t},e}(n(73).PolygonShapeDescription);e.OctagonShapeDescription=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(1),a=n(98),s=n(28),l=n(23),u=n(0),c=n(5);e.StarConvexParameterName="sc";var d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i(n,t),Object.defineProperty(n.prototype,"key",{get:function(){return r.ShapeTypes.Star},enumerable:!0,configurable:!0}),n.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,r=n.top,a=n.right,s=n.bottom,l=n.width,u=n.height;s=this.getActualBottom(r,s,l,u);var c=n.center.x,d=r+(s-r)/2,h=u/l,f=Math.PI-this.angle,p=l/2*Math.tan(f/2)*h,m=r+p,g=(u-p)/Math.tan(f)/h,_=i+g,v=a-g,y=t.parameters.get(e.StarConvexParameterName).value,b=this.getInnerPointDistance(c,c,a,d,r,m);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(c,r),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(c,c,a,y,b),this.getInnerPointPos(d,r,m,y,b)),new o.PathPrimitiveLineToCommand(a,m),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(c,a,v,y,b),this.getInnerPointPos(d,m,s,y,b)),new o.PathPrimitiveLineToCommand(v,s),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(c,v,_,y,b),this.getInnerPointPos(d,s,s,y,b)),new o.PathPrimitiveLineToCommand(_,s),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(c,_,i,y,b),this.getInnerPointPos(d,s,m,y,b)),new o.PathPrimitiveLineToCommand(i,m),new o.PathPrimitiveLineToCommand(this.getInnerPointPos(c,i,c,y,b),this.getInnerPointPos(d,m,r,y,b)),new o.PathPrimitiveClosePathCommand],t.style)]},n.prototype.createParameters=function(t){t.addRange([new s.ShapeParameter(e.StarConvexParameterName,300)])},n.prototype.normalizeParameters=function(t,n){var i=t.rectangle,o=i.top,r=i.right,a=i.bottom,s=i.width,l=i.height;a=this.getActualBottom(o,a,s,l);var u=i.center.x,c=o+(a-o)/2,d=l/s,h=Math.PI-this.angle,f=o+s/2*Math.tan(h/2)*d,p=this.getInnerPointDistance(u,u,r,c,o,f);this.changeParameterValue(n,e.StarConvexParameterName,(function(t){return Math.max(0,Math.min(p,t.value))}))},n.prototype.modifyParameters=function(t,n,i,o){var r=Math.sqrt(Math.pow(i,2)+Math.pow(o,2));(i<0||o>0)&&(r=-r),this.changeParameterValue(n,e.StarConvexParameterName,(function(t){return t.value+r})),this.normalizeParameters(t,n)},n.prototype.getParameterPoints=function(t){var n=t.rectangle,i=n.top,o=n.right,r=n.bottom,a=n.width,s=n.height;r=this.getActualBottom(i,r,a,s);var c=n.center.x,d=i+(r-i)/2,h=s/a,f=Math.PI-this.angle,p=i+a/2*Math.tan(f/2)*h,m=t.parameters.get(e.StarConvexParameterName).value,g=this.getInnerPointDistance(c,c,o,d,i,p),_=this.getInnerPointPos(c,c,o,m,g),v=this.getInnerPointPos(d,i,p,m,g);return[new l.ShapeParameterPoint("c",new u.Point(_,v))]},n.prototype.processConnectionPoint=function(n,i){if(t.prototype.processConnectionPoint.call(this,n,i),n.getConnectionPointSide(i)===c.ConnectionPointSide.South){var o=n.rectangle,r=o.top,a=o.right,s=o.bottom,l=o.width,u=o.height;s=this.getActualBottom(r,s,l,u);var d=o.center.x,h=r+(s-r)/2,f=u/l,p=Math.PI-this.angle,m=r+l/2*Math.tan(p/2)*f,g=n.parameters.get(e.StarConvexParameterName).value,_=this.getInnerPointDistance(d,d,a,h,r,m);i.y=this.getInnerPointPos(h,s,s,g,_)}},n.prototype.getInnerPointDistanceByAxis=function(t,e,n){return Math.min(e,n)+Math.abs(e-n)/2-t},n.prototype.getInnerPointPos=function(t,e,n,i,o){var r=Math.min(1,i/o);return t+this.getInnerPointDistanceByAxis(t,e,n)*r},n.prototype.getInnerPointDistance=function(t,e,n,i,o,r){var a=this.getInnerPointDistanceByAxis(t,e,n),s=this.getInnerPointDistanceByAxis(i,o,r);return Math.sqrt(Math.pow(a,2)+Math.pow(s,2))},n.prototype.getActualBottom=function(e,n,i,o){var r=e+t.prototype.calculateHeight.call(this,i)*o/i;return r<n?r:n},n.prototype.calculateHeight=function(t){return t},n}(a.PentagonShapeDescription);e.StarShapeDescription=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(23),a=n(0),s=n(71),l=n(1),u=n(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowDown},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,r=e.right,a=e.bottom,l=e.width,u=e.height,c=e.center.x,d=(l-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2,h=u-t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value,f=t.normalizeX(n+d),p=t.normalizeY(i+h),m=t.normalizeX(r-d);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(f,i),new o.PathPrimitiveLineToCommand(m,i),new o.PathPrimitiveLineToCommand(m,p),new o.PathPrimitiveLineToCommand(r,p),new o.PathPrimitiveLineToCommand(c,a),new o.PathPrimitiveLineToCommand(n,p),new o.PathPrimitiveLineToCommand(f,p),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,s.ArrowVerticalTriangleHeightParameterName,(function(t){return t.value-i})),this.changeParameterValue(e,s.ArrowVerticalLineWidthParameterName,(function(t){return t.value-2*n})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new r.ShapeParameterPoint("c",new a.Point(t.normalizeX(t.position.x+(t.size.width-t.parameters.get(s.ArrowVerticalLineWidthParameterName).value)/2),t.normalizeY(t.position.y+t.size.height-t.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value)))]},e.prototype.processConnectionPoint=function(e,n){var i=e.parameters.get(s.ArrowVerticalTriangleHeightParameterName).value;if(n.y>e.position.y+e.size.height-i){var o=e.size.width/2/i,r=(n.y-(e.position.y+e.size.height-i))*o,a=e.getConnectionPointSide(n);a===u.ConnectionPointSide.East?n.x-=r:a===u.ConnectionPointSide.West&&(n.x+=r)}else t.prototype.processConnectionPoint.call(this,e,n)},e}(s.ArrowVerticalShapeDescription);e.ArrowDownShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(72),a=n(23),s=n(0),l=n(1),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowLeftRight},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,a=e.right,s=e.bottom,l=(e.width,e.height),u=e.center.y,c=t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value,d=(l-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2,h=t.normalizeX(n+c),f=t.normalizeY(i+d),p=t.normalizeX(a-c),m=t.normalizeY(s-d);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,u),new o.PathPrimitiveLineToCommand(h,i),new o.PathPrimitiveLineToCommand(h,f),new o.PathPrimitiveLineToCommand(p,f),new o.PathPrimitiveLineToCommand(p,i),new o.PathPrimitiveLineToCommand(a,u),new o.PathPrimitiveLineToCommand(p,s),new o.PathPrimitiveLineToCommand(p,m),new o.PathPrimitiveLineToCommand(h,m),new o.PathPrimitiveLineToCommand(h,s),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.normalizeParameters=function(t,e){this.changeParameterValue(e,r.ArrowVerticalTriangleWidthParameterName,(function(e){return Math.max(0,Math.min(t.size.width/2-2*t.strokeWidth,e.value))})),this.changeParameterValue(e,r.ArrowVerticalLineHeightParameterName,(function(e){return Math.max(0,Math.min(t.size.height,e.value))}))},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,r.ArrowVerticalTriangleWidthParameterName,(function(t){return t.value+n})),this.changeParameterValue(e,r.ArrowVerticalLineHeightParameterName,(function(t){return t.value-2*i})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new a.ShapeParameterPoint("c",new s.Point(t.normalizeX(t.position.x+t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value),t.normalizeY(t.position.y+(t.size.height-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2)))]},e}(r.ArrowHorizontalShapeDescription);e.ArrowLeftRightShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(2),r=n(72),a=n(23),s=n(0),l=n(1),u=n(5),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return l.ShapeTypes.ArrowLeft},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,a=e.right,s=e.bottom,l=(e.width,e.height),u=e.center.y,c=t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value,d=(l-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2,h=t.normalizeX(n+c),f=t.normalizeY(i+d),p=t.normalizeY(s-d);return[new o.PathPrimitive([new o.PathPrimitiveMoveToCommand(n,u),new o.PathPrimitiveLineToCommand(h,i),new o.PathPrimitiveLineToCommand(h,f),new o.PathPrimitiveLineToCommand(a,f),new o.PathPrimitiveLineToCommand(a,p),new o.PathPrimitiveLineToCommand(h,p),new o.PathPrimitiveLineToCommand(h,s),new o.PathPrimitiveClosePathCommand],t.style)]},e.prototype.modifyParameters=function(t,e,n,i){this.changeParameterValue(e,r.ArrowVerticalTriangleWidthParameterName,(function(t){return t.value+n})),this.changeParameterValue(e,r.ArrowVerticalLineHeightParameterName,(function(t){return t.value-2*i})),this.normalizeParameters(t,e)},e.prototype.getParameterPoints=function(t){return[new a.ShapeParameterPoint("c",new s.Point(t.normalizeX(t.position.x+t.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value),t.normalizeY(t.position.y+(t.size.height-t.parameters.get(r.ArrowVerticalLineHeightParameterName).value)/2)))]},e.prototype.processConnectionPoint=function(e,n){var i=e.parameters.get(r.ArrowVerticalTriangleWidthParameterName).value;if(n.x<e.position.x+i){var o=e.size.height/2/i,a=(e.position.x+i-n.x)*o,s=e.getConnectionPointSide(n);s===u.ConnectionPointSide.North?n.y+=a:s===u.ConnectionPointSide.South&&(n.y-=a)}else t.prototype.processConnectionPoint.call(this,e,n)},e}(r.ArrowHorizontalShapeDescription);e.ArrowLeftShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(2),a=n(101),s=n(55),l=n(15),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.MultipleDocuments},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t,n){var i=t.rectangle,o=t.rectangle,r=(o.left,o.top,o.right,o.bottom,o.width),a=o.height,s=n?e.documentsOffsetRatioForToolbox:e.documentsOffsetRatio,u=Math.ceil(r*s),c=Math.ceil(a*s),d=(i=i.inflate(-u,-c).offset(-u,-c)).offset(u,c),h=d.offset(u,c),f=l.RenderUtils.generateSvgElementId("clipRect");return[].concat(this.createDocumentPrimitives(i,t.style,f+"1",d)).concat(this.createDocumentPrimitives(d,t.style,f+"2",h)).concat(this.createDocumentPrimitives(h,t.style))},e.prototype.createDocumentPrimitives=function(t,e,n,i){var o=t.left,l=t.top,u=t.right,c=t.bottom,d=t.width,h=t.height,f=t.center.x,p=h*a.DocumentShapeDescription.curveOffsetRatio,m=[];return m=m.concat([new r.PathPrimitive([new r.PathPrimitiveMoveToCommand(o,l),new r.PathPrimitiveLineToCommand(u,l),new r.PathPrimitiveLineToCommand(u,c),new r.PathPrimitiveQuadraticCurveToCommand(u-.25*d,c-2*p,f,c-p),new r.PathPrimitiveQuadraticCurveToCommand(o+.25*d,c+p,o,c-p),new r.PathPrimitiveClosePathCommand],e,void 0,i&&n)]),i&&n&&(m=m.concat([new s.ClipPathPrimitive(n,[new r.PathPrimitive([new r.PathPrimitiveMoveToCommand(o-e.strokeWidth,l-e.strokeWidth),new r.PathPrimitiveLineToCommand(u+e.strokeWidth,l-e.strokeWidth),new r.PathPrimitiveLineToCommand(u+e.strokeWidth,i.top),new r.PathPrimitiveLineToCommand(i.left,i.top),new r.PathPrimitiveLineToCommand(i.left,c+e.strokeWidth),new r.PathPrimitiveLineToCommand(o-e.strokeWidth,c+e.strokeWidth),new r.PathPrimitiveClosePathCommand])])])),m},e.prototype.getTextRectangle=function(t){var n=t.rectangle,i=n.width*e.documentsOffsetRatio,o=n.height*e.documentsOffsetRatio;return(n=n.inflate(-i,-o).offset(-i,-o)).offset(2*i,2*o).resize(0,-n.height*a.DocumentShapeDescription.curveOffsetRatio)},e.documentsOffsetRatio=.1,e.documentsOffsetRatioForToolbox=.16,e}(a.DocumentShapeDescription);e.MultipleDocumentsShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),a=n(9),s=function(t){function e(){var e=t.call(this,!0)||this;return e.defaultSize=new r.Size(a.ShapeDefaultDimension,.75*a.ShapeDefaultDimension),e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.Preparation},enumerable:!0,configurable:!0}),e}(n(99).HexagonShapeDescription);e.PreparationShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(43),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.HardDisk},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,l=n.bottom,u=n.width,c=(n.height,n.center.y),d=u*e.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r-d/2,o),new a.PathPrimitiveLineToCommand(i+d/2,o),new a.PathPrimitiveArcToCommand(d/2,(l-o)/2,0,!1,!1,i+d/2,l),new a.PathPrimitiveLineToCommand(r-d/2,l)],t.style),new s.EllipsePrimitive(r-d/2,c,d/2,(l-o)/2,t.style)]},e.prototype.getTextRectangle=function(t){var n=t.rectangle,i=n.width*e.arcWidthRatio;return n.resize(-i,0)},e.arcWidthRatio=.2,e}(o.RectangleShapeDescription);e.HardDiskShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(43),l=function(t){function e(){var e=t.call(this,void 0,!0)||this;return e.defaultSize.width=e.defaultSize.height,e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Database},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,l=n.bottom,u=(n.width,n.height),c=n.center.x,d=u*e.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r,o+d/2),new a.PathPrimitiveLineToCommand(r,l-d/2),new a.PathPrimitiveArcToCommand((r-i)/2,d/2,0,!1,!0,i,l-d/2),new a.PathPrimitiveLineToCommand(i,o+d/2)],t.style),new s.EllipsePrimitive(c,o+d/2,(r-i)/2,d/2,t.style)]},e.prototype.getTextRectangle=function(t){var n=t.rectangle,i=n.height*e.arcWidthRatio;return n.resize(0,-i).offset(0,i)},e.arcWidthRatio=.2,e}(o.RectangleShapeDescription);e.DatabaseShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(28),s=n(23),l=n(0),u=n(2);e.InternalStorageHorizontalEdgeParameterName="he",e.InternalStorageVerticalEdgeParameterName="ve";var c=function(t){function n(){return t.call(this,void 0,!0)||this}return i(n,t),Object.defineProperty(n.prototype,"key",{get:function(){return r.ShapeTypes.InternalStorage},enumerable:!0,configurable:!0}),n.prototype.createShapePrimitives=function(n){var i=n.rectangle,o=i.left,r=i.top,a=i.right,s=i.bottom,l=(i.width,i.height,o+n.parameters.get(e.InternalStorageHorizontalEdgeParameterName).value),c=r+n.parameters.get(e.InternalStorageVerticalEdgeParameterName).value;return t.prototype.createShapePrimitives.call(this,n).concat([new u.PathPrimitive([new u.PathPrimitiveMoveToCommand(l,r),new u.PathPrimitiveLineToCommand(l,s),new u.PathPrimitiveMoveToCommand(o,c),new u.PathPrimitiveLineToCommand(a,c)],n.style)])},n.prototype.createParameters=function(t){t.addRange([new a.ShapeParameter(e.InternalStorageHorizontalEdgeParameterName,.1*this.defaultSize.width),new a.ShapeParameter(e.InternalStorageVerticalEdgeParameterName,.1*this.defaultSize.width)])},n.prototype.normalizeParameters=function(t,i){this.changeParameterValue(i,e.InternalStorageHorizontalEdgeParameterName,(function(e){return Math.max(n.minEdge,Math.min(.3*t.size.width,e.value))})),this.changeParameterValue(i,e.InternalStorageVerticalEdgeParameterName,(function(e){return Math.max(n.minEdge,Math.min(.3*t.size.height,e.value))}))},n.prototype.modifyParameters=function(t,n,i,o){this.changeParameterValue(n,e.InternalStorageHorizontalEdgeParameterName,(function(t){return t.value+i})),this.changeParameterValue(n,e.InternalStorageVerticalEdgeParameterName,(function(t){return t.value+o})),this.normalizeParameters(t,n)},n.prototype.getParameterPoints=function(t){return[new s.ShapeParameterPoint("c",new l.Point(t.normalizeX(t.position.x+t.parameters.get(e.InternalStorageHorizontalEdgeParameterName).value),t.normalizeY(t.position.y+t.parameters.get(e.InternalStorageVerticalEdgeParameterName).value)))]},n.prototype.getTextRectangle=function(t){var n=t.rectangle,i=t.parameters.get(e.InternalStorageHorizontalEdgeParameterName).value;return n.resize(-i,0).offset(i,0)},n.minEdge=72,n}(o.RectangleShapeDescription);e.InternalStorageShapeDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(5),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.PaperTape},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){return this.createDocumentPrimitives(t.rectangle,t.style)},e.prototype.createDocumentPrimitives=function(t,n){var i=t.left,o=t.top,r=t.right,s=t.bottom,l=t.width,u=t.height,c=t.center.x,d=u*e.curveOffsetRatio;return[].concat([new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(i,o),new a.PathPrimitiveQuadraticCurveToCommand(i+.25*l,o+2*d,c,o+d),new a.PathPrimitiveQuadraticCurveToCommand(r-.25*l,o-d,r,o+d),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveQuadraticCurveToCommand(r-.25*l,s-2*d,c,s-d),new a.PathPrimitiveQuadraticCurveToCommand(i+.25*l,s+d,i,s-d),new a.PathPrimitiveClosePathCommand],n)])},e.prototype.processConnectionPoint=function(t,n){var i=t.getConnectionPointSide(n);i===s.ConnectionPointSide.North&&(n.y+=t.size.height*e.curveOffsetRatio),i===s.ConnectionPointSide.South&&(n.y-=t.size.height*e.curveOffsetRatio)},e.prototype.getTextRectangle=function(t){var n=t.rectangle;return n.inflate(0,-n.height*e.curveOffsetRatio)},e.curveOffsetRatio=.1,e}(o.RectangleShapeDescription);e.PaperTapeShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=n(5),l=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.ManualOperation},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=t.rectangle,o=i.left,r=i.top,s=i.right,l=i.bottom,u=i.width,c=i.height,d=Math.min(Math.max(0,c/Math.tan(e.slopeAngle)),u),h=n.center.x,f=Math.min(o+d,h),p=Math.max(s-d,h);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(o,r),new a.PathPrimitiveLineToCommand(s,r),new a.PathPrimitiveLineToCommand(p,l),new a.PathPrimitiveLineToCommand(f,l),new a.PathPrimitiveClosePathCommand],t.style)]},e.prototype.processConnectionPoint=function(t,n){var i=t.size.height/Math.tan(e.slopeAngle),o=t.getConnectionPointSide(n);o===s.ConnectionPointSide.East?n.x-=i/2:o===s.ConnectionPointSide.West&&(n.x+=i/2)},e.slopeAngle=81*Math.PI/180,e}(o.RectangleShapeDescription);e.ManualOperationShapeDescription=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=function(t){function e(){var e=t.call(this,void 0,!0)||this;return e.defaultSize.width=e.defaultSize.height,e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Delay},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.right,r=e.bottom,s=e.center.x;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(n,i),new a.PathPrimitiveLineToCommand(s,i),new a.PathPrimitiveArcToCommand((o-n)/2,(r-i)/2,0,!1,!0,s,r),new a.PathPrimitiveLineToCommand(n,r),new a.PathPrimitiveClosePathCommand],t.style)]},e.arcWidthRatio=.2,e}(o.RectangleShapeDescription);e.DelayShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.StoredData},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,s=n.bottom,l=n.width,u=(n.height,n.center.y,l*e.arcWidthRatio);return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r,o),new a.PathPrimitiveLineToCommand(i+u/2,o),new a.PathPrimitiveArcToCommand(u/2,(s-o)/2,0,!1,!1,i+u/2,s),new a.PathPrimitiveLineToCommand(r,s),new a.PathPrimitiveArcToCommand(u/2,(s-o)/2,0,!1,!0,r,o)],t.style)]},e.prototype.getTextRectangle=function(t){var n=t.rectangle,i=n.width*e.arcWidthRatio;return n.resize(-i,0)},e.arcWidthRatio=.2,e}(o.RectangleShapeDescription);e.StoredDataShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(100),a=n(2),s=function(t){function e(){return t.call(this,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.Merge},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var e=t.rectangle,n=e.left,i=e.top,o=e.right,r=e.bottom;return e.width,[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(n,i),new a.PathPrimitiveLineToCommand(o,i),new a.PathPrimitiveLineToCommand(e.center.x,r),new a.PathPrimitiveClosePathCommand],t.style)]},e.prototype.calculateHeight=function(t){return.75*t},e.prototype.getTextRectangle=function(t){var e=t.rectangle;return e.resize(0,.25*-e.width)},e}(r.TriangleShapeDescription);e.MergeShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(16),r=n(1),a=n(2),s=function(t){function e(){return t.call(this,void 0,!0)||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return r.ShapeTypes.Display},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(t){var n=t.rectangle,i=n.left,o=n.top,r=n.right,s=n.bottom,l=n.width,u=(n.height,n.center.y),c=l*e.arcWidthRatio;return[new a.PathPrimitive([new a.PathPrimitiveMoveToCommand(r-c/2,o),new a.PathPrimitiveLineToCommand(i+c/2,o),new a.PathPrimitiveLineToCommand(i,u),new a.PathPrimitiveLineToCommand(i+c/2,s),new a.PathPrimitiveLineToCommand(r-c/2,s),new a.PathPrimitiveArcToCommand(c/2,(s-o)/2,0,!1,!1,r-c/2,o)],t.style)]},e.arcWidthRatio=.2,e}(o.RectangleShapeDescription);e.DisplayShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),a=n(9),s=n(54),l=n(2),u=function(t){function e(){var e=t.call(this,!0)||this;return e.defaultSize=new r.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.Or},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableText",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(e){var n=e.rectangle,i=n.left,o=n.top,r=n.right,a=n.bottom,s=n.center,u=s.x,c=s.y;return[].concat(t.prototype.createShapePrimitives.call(this,e)).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(u,o),new l.PathPrimitiveLineToCommand(u,a),new l.PathPrimitiveMoveToCommand(i,c),new l.PathPrimitiveLineToCommand(r,c)],e.style)])},e}(s.EllipseShapeDescription);e.OrShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),a=n(9),s=n(54),l=n(2),u=function(t){function e(){var e=t.call(this,!0)||this;return e.defaultSize=new r.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.SummingJunction},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enableText",{get:function(){return!1},enumerable:!0,configurable:!0}),e.prototype.createShapePrimitives=function(e){var n=e.rectangle,i=(n.left,n.top,n.right,n.bottom,n.width),o=n.height,r=n.center,a=r.x,s=r.y,u=i/2,c=o/2,d=Math.atan(c/u),h=1/Math.sqrt(1/Math.pow(u,2)+Math.pow(Math.tan(d),2)/Math.pow(c,2)),f=h*Math.tan(d);return[].concat(t.prototype.createShapePrimitives.call(this,e)).concat([new l.PathPrimitive([new l.PathPrimitiveMoveToCommand(a-h,s-f),new l.PathPrimitiveLineToCommand(a+h,s+f),new l.PathPrimitiveMoveToCommand(a-h,s+f),new l.PathPrimitiveLineToCommand(a+h,s-f)],e.style)])},e}(s.EllipseShapeDescription);e.SummingJunctionShapeDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s,l){var u=t.call(this,null,s,void 0,l)||this;return u.x=e,u.y=n,u.width=i,u.height=o,u.createContent=r,u.data=a,u}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"svg")},e.prototype.createChildElements=function(t){this.createContent(t,this.data)},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.setUnitAttribute(e,"width",this.width),this.setUnitAttribute(e,"height",this.height),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.SvgElementPrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=n(107),l=n(20),u=function(t){function e(){return t.call(this,new r.Size(2*o.ShapeDefaultDimension,1.5*o.ShapeDefaultDimension))||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.VerticalContainer},enumerable:!0,configurable:!0}),e.prototype.getExpandedSize=function(t){return new r.Size(t.size.width,t.expandedSize.height)},e.prototype.getCollapsedSize=function(t){return new r.Size(t.size.width,s.CONTAINER_HEADER_SIZE+2*t.strokeWidth)},e.prototype.allowResizeVertically=function(t){return t.expanded},e.prototype.createHeaderPrimitives=function(t,e){var n=t.rectangle,i=n.left,o=n.top,a=n.width,s=this.getHeaderSize(t,e),u=[];return u=u.concat([new l.RectanglePrimitive(i,o,a,s,t.style)]),e||(u=u.concat(this.createExpandButtonPrimitives(t,r.Rectangle.create(i,o,s,s)))),u},e.prototype.getClientRectangle=function(t){var e=t.rectangle,n=this.getHeaderSize(t);return new r.Rectangle(new r.Point(e.left,e.top+n),new r.Size(e.width,e.height-n))},e.prototype.getTextRectangle=function(t){var e=t.rectangle,n=this.getHeaderSize(t);return new r.Rectangle(new r.Point(e.left+n,e.top),new r.Size(e.width-n,n))},e.prototype.getHeaderSize=function(t,e){var n=t.rectangle;return e?n.height*s.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:s.CONTAINER_HEADER_SIZE+2*t.strokeWidth},e}(s.ContainerDescription);e.VerticalContainerDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=n(107),l=n(20),u=n(45),c=function(t){function e(){return t.call(this,new r.Size(2*o.ShapeDefaultDimension,1.5*o.ShapeDefaultDimension))||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.HorizontalContainer},enumerable:!0,configurable:!0}),e.prototype.getExpandedSize=function(t){return new r.Size(t.expandedSize.width,t.size.height)},e.prototype.getCollapsedSize=function(t){return new r.Size(s.CONTAINER_HEADER_SIZE+2*t.strokeWidth,t.size.height)},e.prototype.allowResizeHorizontally=function(t){return t.expanded},e.prototype.createHeaderPrimitives=function(t,e){var n=t.rectangle,i=n.left,o=n.top,a=n.height,s=this.getHeaderSize(t,e),u=[];return u=u.concat([new l.RectanglePrimitive(i,o,s,a,t.style)]),e||(u=u.concat(this.createExpandButtonPrimitives(t,r.Rectangle.create(i,o,s,s)))),u},e.prototype.getClientRectangle=function(t){var e=t.rectangle,n=this.getHeaderSize(t);return new r.Rectangle(new r.Point(e.left+n,e.top),new r.Size(e.width-n,e.height))},e.prototype.getTextRectangle=function(t){var e=t.rectangle,n=this.getHeaderSize(t);return new r.Rectangle(new r.Point(e.left,e.top+n),new r.Size(n,e.height-n))},e.prototype.getTextEditRectangle=function(t){var e=this.getTextRectangle(t);return new r.Rectangle(new r.Point(e.position.x,e.position.y+e.height),new r.Size(e.height,e.width))},e.prototype.getTextAngle=function(){return u.TextAngle.Angle270deg},e.prototype.getHeaderSize=function(t,e){var n=t.rectangle;return e?n.height*s.CONTAINER_HEADER_TOOLBOX_SIZE_RATIO:s.CONTAINER_HEADER_SIZE+2*t.strokeWidth},e}(s.ContainerDescription);e.HorizontalContainerDescription=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=function(t){function e(){return t.call(this,new r.Size(1.5*o.ShapeDefaultDimension,.5*o.ShapeDefaultDimension))||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnLeft},enumerable:!0,configurable:!0}),e.prototype.getToolboxHeightToWidthRatio=function(t,e){return 26/46},e.prototype.getRawImageSize=function(t,e){var n=Math.min(t.height,t.width)-2*this.getImageMargin(e);return new r.Size(n,n)},e.prototype.getTextBlockOffset=function(t,e){return new r.Offset(this.getImageSize(t,e).width,0,0,0)},e}(n(74).CardBaseDescription);e.CardWithImageOnLeftDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s,l,u,c){void 0===r&&(r=0),void 0===a&&(a=0);var d=t.call(this,e,n,i,o,s,l,u,c)||this;return d.x=e,d.y=n,d.width=i,d.height=o,d.rx=r,d.ry=a,d}return i(e,t),e.prototype.createMainElement=function(){return document.createElementNS(o.svgNS,"rect")},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"rx",this.rx),this.setUnitAttribute(e,"ry",this.ry),t.prototype.applyElementProperties.call(this,e,n)},e}(n(20).RectanglePrimitive);e.RoundedRectanglePrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=function(t){function e(){return t.call(this,new r.Size(1.5*o.ShapeDefaultDimension,.5*o.ShapeDefaultDimension))||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnRight},enumerable:!0,configurable:!0}),e.prototype.getToolboxHeightToWidthRatio=function(t,e){return 26/46},e.prototype.getRawImageSize=function(t,e){var n=Math.min(t.height,t.width)-2*this.getImageMargin(e);return new r.Size(n,n)},e.prototype.getTextBlockOffset=function(t,e){return new r.Offset(0,0,this.getImageSize(t,e).width,0)},e}(n(74).CardBaseDescription);e.CardWithImageOnRightDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(9),r=n(0),a=n(1),s=n(74),l=n(4),u=function(t){function e(){return t.call(this,new r.Size(.8*o.ShapeDefaultDimension,o.ShapeDefaultDimension))||this}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return a.ShapeTypes.CardWithImageOnTop},enumerable:!0,configurable:!0}),e.prototype.getRawImageSize=function(t,e){var n=t.width/2;l.UnitConverter.twipsToPixels(n)%2===1&&(n-=l.UnitConverter.pixelsToTwips(1));var i=Math.min(n,t.height-2*this.getImageMargin(e));return new r.Size(i,i)},e.prototype.getTextBlockOffset=function(t,e){return new r.Offset(0,this.getImageSize(t).height+this.getImageMargin(e),0,0)},e}(s.CardBaseDescription);e.CardWithImageOnTopDescription=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(0),a=n(9),s=function(t){function e(){var e=t.call(this,!1)||this;return e.defaultSize=new r.Size(.5*a.ShapeDefaultDimension,.5*a.ShapeDefaultDimension),e}return i(e,t),Object.defineProperty(e.prototype,"key",{get:function(){return o.ShapeTypes.Connector},enumerable:!0,configurable:!0}),e}(n(54).EllipseShapeDescription);e.ConnectorShapeDescription=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(56),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){return e((new o.Exporter).export(this.control.model)),!0},e}(n(44).ExportImportCommandBase);e.ExportCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"font-weight"},e.prototype.getStylePropertyValue=function(){return"bold"},e}(n(57).ToggleStyleTextPropertyCommand);e.ToggleFontBoldCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"font-style"},e.prototype.getStylePropertyValue=function(){return"italic"},e}(n(57).ToggleStyleTextPropertyCommand);e.ToggleFontItalicCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"text-decoration"},e.prototype.getStylePropertyValue=function(){return"underline"},e}(n(57).ToggleStyleTextPropertyCommand);e.ToggleFontUnderlineCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"font-family"},e}(n(76).ChangeStyleTextPropertyCommand);e.ChangeFontNameCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"font-size"},e}(n(76).ChangeStyleTextPropertyCommand);e.ChangeFontSizeCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(76),r=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.processParameter=function(t){return r.ColorHelper.stringToHash(t)},e.prototype.getStyleProperty=function(){return"fill"},e}(o.ChangeStyleTextPropertyCommand);e.ChangeFontColorCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(58),r=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.processParameter=function(t){return r.ColorHelper.stringToHash(t)},e.prototype.getStyleProperty=function(){return"fill"},e}(o.ChangeStylePropertyCommand);e.ChangeFillColorCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(58),r=n(4),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.processParameter=function(t){return r.ColorHelper.stringToHash(t)},e.prototype.getStyleProperty=function(){return"stroke"},e}(o.ChangeStylePropertyCommand);e.ChangeStrokeColorCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"text-anchor"},e}(n(57).ToggleStyleTextPropertyCommand);e.ChangeTextAlignCommand=o;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStylePropertyValue=function(){return"start"},e}(o);e.TextLeftAlignCommand=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStylePropertyValue=function(){return"middle"},e}(o);e.TextCenterAlignCommand=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStylePropertyValue=function(){return"end"},e}(o);e.TextRightAlignCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(111),r=n(25),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPropertyName=function(){return"startLineEnding"},e.prototype.getPropertyDefaultValue=function(){return r.ConnectorLineEnding.None},e}(o.ChangeConnectorPropertyCommand);e.ChangeConnectorStartLineEndingCommand=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPropertyName=function(){return"endLineEnding"},e.prototype.getPropertyDefaultValue=function(){return r.ConnectorLineEnding.Arrow},e}(o.ChangeConnectorPropertyCommand);e.ChangeConnectorEndLineEndingCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(111),r=n(25),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPropertyName=function(){return"lineOption"},e.prototype.getPropertyDefaultValue=function(){return r.ConnectorLineOption.Straight},e}(o.ChangeConnectorPropertyCommand);e.ChangeConnectorLineOptionCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t,e){var n=[];return this.control.model.iterateItems((function(t){return n.push(t.key)})),this.control.selection.set(n),!0},e}(n(8).SimpleCommandBase);e.SelectAllCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(3),r=function(t){function e(e,n){var i=t.call(this)||this;return i.view=e,i.rectangle=n,i.view=e,i.rectangle=n.clone(),i}return i(e,t),e.prototype.redo=function(t){this.view.scrollIntoView(this.rectangle)},e.prototype.undo=function(t){},e}(o.HistoryItem);e.ScrollIntoViewOnRedoHistoryItem=r;var a=function(t){function e(e,n){var i=t.call(this)||this;return i.view=e,i.rectangle=n,i.view=e,i.rectangle=n.clone(),i}return i(e,t),e.prototype.redo=function(t){},e.prototype.undo=function(t){this.view.scrollIntoView(this.rectangle)},e}(o.HistoryItem);e.ScrollIntoViewOnUndoHistoryItem=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=function(){function t(t,e){var n=this;this.childToParent={},this.root=t,this.parentToChildren=e;var i=function(t){if(!e.hasOwnProperty(t))return"continue";e[t].forEach((function(e){return n.childToParent[e.key]=t}))};for(var o in e)i(o)}return t.prototype.getChildren=function(t){return t&&this.parentToChildren[t.key]?this.parentToChildren[t.key]:[]},t.prototype.hasChildren=function(t){return this.parentToChildren[t.key]&&this.parentToChildren[t.key].length>0},t.prototype.iterate=function(t){this.iterateCore(this.root,0,t)},t.createSpanningTree=function(e){var n=t.findRoot(e),o=e.createIterator(i.ConnectionMode.Outgoing),r={};return o.skipEdge=function(t){return void 0===t.to||o.isNodeVisited(t.to)},o.onNode=function(t){return r[t.key]=[]},o.onEdge=function(t){var n=e.getNode(t.to);n&&r[t.from].push(n)},o.iterate(n),new t(e.getNode(n),r)},t.prototype.iterateCore=function(t,e,n){var i=this;n(t,e),this.getChildren(t).forEach((function(t){return i.iterateCore(t,e+1,n)}))},t.findRoot=function(t){return t.nodes.reduce((function(e,n){var i=t.getAdjacentEdges(n),o=i.filter((function(t){return t.to===n})).length,r=i.filter((function(t){return t.from===n})).length;return(void 0===e.candidate||0===o&&e.inc>0||0!==e.inc&&e.out-e.inc<r-o)&&(e.candidate=n,e.inc=o,e.out=r),e}),{inc:-1,out:-1,candidate:void 0}).candidate},t}();e.Tree=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=void 0===e?!this.control.settings.snapToGrid:!!e;return this.control.settings.snapToGrid!==n&&(this.control.settings.snapToGrid=n,!0)},e.prototype.getValue=function(){return this.control.settings.snapToGrid},e}(n(8).SimpleCommandBase);e.ChangeSnapToGridCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.getModelUnit(this.control.settings.gridSize)},e.prototype.executeCore=function(t,e){return this.control.settings.gridSize=this.getModelUnitTwipsValue(e),!0},e.prototype.getItems=function(){var t=this;return this.control.settings.gridSizeItems.map((function(e){return{value:t.getModelUnit(e),text:t.getViewUnitText(e)}}))},e}(o.SimpleCommandBase);e.ChangeGridSizeCommand=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){var t=this;return this.control.settings.gridSizeItems.map((function(e){return t.getModelUnit(e)}))},e.prototype.executeCore=function(t,e){var n=this;return this.control.settings.gridSizeItems=e.map((function(t){return n.getModelUnitTwipsValue(t)})),!0},e}(o.SimpleCommandBase);e.ChangeGridSizeItemsCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(60),r=n(222),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.model.pageLandscape},e.prototype.createHistoryItems=function(t){return[new r.ChangePageLandscapeHistoryItem(t)]},e}(o.ChangePagePropertyCommand);e.ChangePageLandscapeCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return i(e,t),e.prototype.redo=function(t){this.oldValue=t.model.pageLandscape,t.changePageLandscape(this.value)},e.prototype.undo=function(t){t.changePageLandscape(this.oldValue)},e}(n(3).HistoryItem);e.ChangePageLandscapeHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(60),r=n(0),a=n(224),s=n(8),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.getModelUnitSize(this.control.model.pageSize)},e.prototype.createHistoryItems=function(t){return[new a.ChangePageSizeHistoryItem(new r.Size(this.getModelUnitTwipsValue(t.width),this.getModelUnitTwipsValue(t.height)))]},e.prototype.getItems=function(){var t=this;return this.control.settings.pageSizeItems.map((function(e){return{value:t.getModelUnitSize(e.size),text:e.text.replace("{width}",t.getViewUnitText(e.size.width)).replace("{height}",t.getViewUnitText(e.size.height))}}))},e.prototype.getModelUnitSize=function(t){return new r.Size(this.getModelUnit(t.width),this.getModelUnit(t.height))},e}(o.ChangePagePropertyCommand);e.ChangePageSizeCommand=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return!0},e.prototype.getValue=function(){var t=this;return this.control.settings.pageSizeItems.map((function(e){return{size:new r.Size(t.getModelUnit(e.width),t.getModelUnit(e.height)),text:e.text}}))},e.prototype.executeCore=function(t,e){var n=this;return this.control.settings.pageSizeItems=e.map((function(t){return{size:new r.Size(n.getModelUnitTwipsValue(t.width),n.getModelUnitTwipsValue(t.height)),text:t.text}})),!0},e}(s.SimpleCommandBase);e.ChangePageSizeItemsCommand=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.size=e,n}return i(e,t),e.prototype.redo=function(t){this.oldSize=t.model.pageSize,t.changePageSize(this.size)},e.prototype.undo=function(t){t.changePageSize(this.oldSize)},e}(n(3).HistoryItem);e.ChangePageSizeHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getExtension=function(){return"png"},e.prototype.getExportFunc=function(){return this.exporter.exportPng},e}(n(78).ExportImageCommand);e.ExportPngCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),o=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{l(i.next(t))}catch(e){r(e)}}function s(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){t.done?o(t.value):new n((function(e){e(t.value)})).then(a,s)}l((i=i.apply(t,e||[])).next())}))},r=this&&this.__generator||function(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}};Object.defineProperty(e,"__esModule",{value:!0});var a=n(14),s=n(22),l=n(15),u=n(32),c=n(4),d=n(12),h=n(79),f=function(t){function e(e,n){var i=t.call(this,1,new h.ExportDOMManipulator(n))||this;return i.itemsContainer=e,i}return i(e,t),e.prototype.getSvgImage=function(t,e){var n=d.RenderHelper.createSvgElement(void 0,!0),i=t.transform(a.UnitConverter.twipsToPixelsF).transform(Math.ceil);l.RenderUtils.updateSvgElementSize(n,i.width,i.height,!0),n.style.backgroundColor=c.ColorHelper.colorToHash(e),this.createTextFloodFilter(void 0,n,e);var o=this.getExportCssRules(),r=o&&!s.Browser.IE;if(r){var u=document.createElementNS(d.svgNS,"style");u.innerHTML=o,n.appendChild(u)}for(var h=0;h<this.itemsContainer.childNodes.length;h++){var f=this.itemsContainer.childNodes[h].cloneNode(!0);r||this.inlineStyle(f,this.itemsContainer.childNodes[h]),n.appendChild(f)}return n},e.prototype.getSvgImageUrl=function(t,e){var n=this.getSvgImage(t,e);return this.getSvgBase64String(n)},e.prototype.getSvgString=function(t){return(new XMLSerializer).serializeToString(t)},e.prototype.getSvgBase64String=function(t){var n=this.getSvgString(t);return e.base64Start+this.getBase64EncodeUnicode(n)},e.prototype.getBase64EncodeUnicode=function(t){return btoa(encodeURIComponent(t).replace(/%([0-9A-F]{2})/g,(function(t,e){return String.fromCharCode(parseInt("0x"+e,16))})))},e.prototype.getExportCssRules=function(){for(var t=0;t<document.styleSheets.length;t++){var e=this.getRules(document.styleSheets[t]);if(e){for(var n="",i=0;i<e.length;i++){var o=e[i],r=this.isCSSStyleRule(o)?o.selectorText:null;r&&this.checkSelector(r)&&(n+=o.cssText+"\n")}if(n.length>0)return"\n"+n}}},e.prototype.checkSelector=function(t){for(var n=0;n<e.exportStyleRules.length;n++)if(0===t.indexOf(e.exportStyleRules[n]))return!0;return!1},e.prototype.getRules=function(t){try{return this.isCSSStyleSheet(t)?t.rules||t.cssRules:null}catch(e){}},e.prototype.isCSSStyleSheet=function(t){return void 0!==t.rules},e.prototype.isCSSStyleRule=function(t){return void 0!==t.selectorText},e.prototype.inlineStyle=function(t,n){for(var i=0;i<t.childNodes.length;i++){var o=t.childNodes[i];if(o.tagName)if("g"===o.tagName)this.inlineStyle(o,n.childNodes[i]);else if(o.style){var r=window.getComputedStyle(n.childNodes[i]);if(void 0!==r)for(var a=0;a<e.exportStyleAttributes.length;a++){var s=e.exportStyleAttributes[a];o.style.setProperty(s,r.getPropertyValue(s))}}}},e.prototype.exportSvgImage=function(t,e,n){n(this.getSvgImageUrl(t,e))},e.prototype.exportBinaryImage=function(t,e,n,i){var o=this.getAbsoluteSize(t).transform(Math.ceil),r=document.createElement("canvas");r.width=o.width,r.height=o.height;var a=r.getContext("2d");if(a.fillStyle=c.ColorHelper.colorToHash(e),a.fillRect(0,0,o.width,o.height),s.Browser.IE&&"object"===typeof canvg)this.exportBinaryImageCanvgAsync(t,e,r,a,n).then((function(t){return i(t)}));else if(s.Browser.IE&&"function"===typeof canvg)this.exportBinaryImageCanvgOld(t,e,r,a,n,i);else{var l=new Image;l.width=o.width,l.height=o.height,l.setAttribute("crossOrigin","anonymous"),l.onload=function(){a.drawImage(l,0,0),i(r.toDataURL(n,1))},l.src=this.getSvgImageUrl(t,e)}},e.prototype.exportBinaryImageCanvgOld=function(t,e,n,i,o,r){var a=this.getSvgImage(t,e),s=this.getSvgString(a);i.drawSvg(s,0,0,null,null,{renderCallback:function(){r(n.toDataURL(o,1))}})},e.prototype.exportBinaryImageCanvgAsync=function(t,e,n,i,a){return o(this,void 0,void 0,(function(){var o,s;return r(this,(function(r){switch(r.label){case 0:return o=this.getSvgImage(t,e),s=this.getSvgString(o),[4,canvg.Canvg.fromString(i,s).render()];case 1:return r.sent(),[2,n.toDataURL(a,1)]}}))}))},e.prototype.exportPngImage=function(t,e,n){this.exportBinaryImage(t,e,"image/png",n)},e.prototype.exportJpgImage=function(t,e,n){this.exportBinaryImage(t,e,"image/jpeg",n)},e.prototype.notifyModelChanged=function(t){},e.prototype.notifyPageColorChanged=function(t){},e.prototype.notifyPageSizeChanged=function(t,e){},e.base64Start="data:image/svg+xml;base64,",e.exportStyleRules=[".dxdi-canvas .shape ",".dxdi-canvas .connector ",".dxdi-canvas text",".dxdi-canvas.export"],e.exportStyleAttributes=["fill","stroke","stroke-width","font-family","font-size","font-weight","font-style","text-decoration","text-anchor"],e}(u.CanvasManagerBase);e.CanvasExportManager=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getExtension=function(){return"svg"},e.prototype.getExportFunc=function(){return this.exporter.exportSvg},e}(n(78).ExportImageCommand);e.ExportSvgCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getExtension=function(){return"jpg"},e.prototype.getExportFunc=function(){return this.exporter.exportJpg},e}(n(78).ExportImageCommand);e.ExportJpgCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(56),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty(!0)},e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t){var e=(new o.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(e),!0},e}(n(81).ClipboardCommand);e.CopySelectionCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(56),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},e.prototype.executeCore=function(t){var e=(new o.Exporter).exportItems(this.control.selection.getSelectedItems(!0,!0));return this.setClipboardData(e),r.ModelUtils.deleteSelection(this.control.history,this.control.model,this.control.selection),!0},e}(n(81).ClipboardCommand);e.CutSelectionCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(117),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getShapeNewPosition=function(t){return o.PasteSelectionCommandBase.getShapeNewPosition(this.control.model,t)},e.prototype.changeConnectorPoints=function(t){o.PasteSelectionCommandBase.changeConnectorPoints(this.control.model,t)},e}(o.PasteSelectionCommandBase);e.PasteSelectionCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.shape=e,n}return i(e,t),e.prototype.redo=function(t){this.shapeKey=this.shape.key,t.insertShape(this.shape)},e.prototype.undo=function(t){t.removeShape(t.model.findShape(this.shapeKey))},e}(n(3).HistoryItem);e.ImportShapeHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.connector=e,n}return i(e,t),e.prototype.redo=function(t){this.connectorKey=this.connector.key,t.insertConnector(this.connector)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.removeConnector(e)},e}(n(3).HistoryItem);e.ImportConnectorHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(235),r=n(7),a=n(42),s=n(0),l=n(6),u=n(49),c=n(36),d=n(61),h=n(17),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=new o.BPMNImporter(e).import();return this.updateModel(n),!0},e.prototype.updateModel=function(t){var e=this,n={},i=[],o=[];this.control.history.beginTransaction(),t.items.forEach((function(t){var o=new a.AddShapeHistoryItem(e.getShapeDescription(t.type),new s.Point(0,0),t.text,t.key);e.control.history.addAndRedo(o),n[t.key]=o.shapeKey;var r=e.control.model.findShape(o.shapeKey);i.push(r)})),t.edges.forEach((function(t){var i=e.control.model.findShape(n[t.from]),r=e.control.model.findShape(n[t.to]),a=new u.AddConnectorHistoryItem([i.getConnectionPointPosition(0),r.getConnectionPointPosition(0)]);e.control.history.addAndRedo(a);var s=e.control.model.findConnector(a.connectorKey);e.control.history.addAndRedo(new c.AddConnectionHistoryItem(s,i,0,l.ConnectorPosition.Begin)),e.control.history.addAndRedo(new c.AddConnectionHistoryItem(s,r,0,l.ConnectorPosition.End)),o.push(s)}));var f=new h.LayoutSettings;r.ModelUtils.getGraphInfoByItems(this.control.model,i,o).forEach((function(t){var n=new d.SugiyamaLayoutBuilder(f,t.graph).build(),a=r.ModelUtils.getNonGraphItems(e.control.model,t.container,n.nodeToLayout,i,o);r.ModelUtils.applyLayout(e.control.history,e.control.model,void 0,t.graph,n,a,f,e.control.settings.snapToGrid,e.control.settings.gridSize,!1)})),r.ModelUtils.tryUpdateModelSize(this.control.history,this.control.model),this.control.history.endTransaction()},e.prototype.getShapeDescription=function(t){return this.control.shapeDescriptionManager.get(t)},e}(n(44).ExportImportCommandBase);e.ImportBPMNCommand=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(50),r=n(1),a=n(29),s=n(75),l=function(){function t(t){this.doc=s.ImportUtils.createDocument(t),this.graph=new o.Graph([],[])}return t.prototype.import=function(){for(var t=void 0,e=0;t=this.doc.children[e];e++)"DEFINITIONS"===t.nodeName.toUpperCase()&&this.onDefinitionsElement(t);return this.validate(),this.graph},t.prototype.validate=function(){var t={};this.graph.nodes.forEach((function(e){return t[e]=!0}));for(var e=0,n=void 0;n=this.graph.edges[e];e++)t[n.from]&&t[n.to]||(this.graph.edges.splice(e,1),e--)},t.prototype.onDefinitionsElement=function(t){this.dataSourceKey=t.getAttribute("id");for(var e=void 0,n=0;e=t.children[n];n++)"PROCESS"===e.nodeName.toUpperCase()&&this.onProcessElement(e)},t.prototype.onProcessElement=function(t){for(var e=void 0,n=0;e=t.children[n];n++)switch(e.nodeName.toUpperCase()){case"STARTEVENT":this.onStartEventElement(e);break;case"SEQUENCEFLOW":this.onSequenceFlowElement(e);break;case"SCRIPTTASK":this.onScriptTaskElement(e);break;case"USERTASK":this.onUserTaskElement(e);break;case"SERVICETASK":this.onServiceTaskElement(e);break;case"SENDTASK":this.onSendTaskElement(e);break;case"EXCLUSIVEGATEWAY":this.onExclusiveGateway(e);break;case"ENDEVENT":this.onEndEventGateway(e)}},t.prototype.onStartEventElement=function(t){var e=this.createNode(t);e.type=r.ShapeTypes.Ellipse,e.text=t.getAttribute("name"),this.graph.addNode(e)},t.prototype.onSequenceFlowElement=function(t){var e=t.getAttribute("sourceRef"),n=t.getAttribute("targetRef"),i=this.createEdge(t,e,n);t.hasAttribute("name")&&(i.text=t.getAttribute("name")),this.graph.addEdge(i)},t.prototype.onScriptTaskElement=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),this.graph.addNode(e)},t.prototype.onUserTaskElement=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),this.graph.addNode(e)},t.prototype.onServiceTaskElement=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),this.graph.addNode(e)},t.prototype.onSendTaskElement=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),this.graph.addNode(e)},t.prototype.onExclusiveGateway=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),e.type=r.ShapeTypes.Decision,this.graph.addNode(e)},t.prototype.onEndEventGateway=function(t){var e=this.createNode(t);e.text=t.getAttribute("name"),e.type=r.ShapeTypes.Ellipse,this.graph.addNode(e)},t.prototype.createNode=function(t){return new u(this.dataSourceKey,t.getAttribute("id"))},t.prototype.createEdge=function(t,e,n){return new c(this.dataSourceKey,t.getAttribute("id"),e,n)},t}();e.BPMNImporter=l;var u=function(t,e){this.sourceKey=t,this.key=e,this.type=r.ShapeTypes.Rectangle};e.BPMNNode=u;var c=function(t){function e(e,n,i,o){var r=t.call(this,n,i,o)||this;return r.sourceKey=e,r}return i(e,t),e}(a.Edge)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(50),o=n(29),r=n(67),a=function(){function t(){}return t.removeCycles=function(t){var e=this.getFeedbackSet(t);return this.reverseEdges(t,e)},t.getFeedbackSet=function(t){for(var e=this,n={},i=this.getNonTrivialStronglyConnectedComponents(t);i.length;)i.forEach((function(t){var i=e.getMaxCyclicEdges(t);i.forEach((function(t){return delete n[t.reverse().getHashKey()]})),i.forEach((function(t){return n[t.getHashKey()]=!0}))})),i=this.getNonTrivialStronglyConnectedComponents(this.reverseEdges(t,n).graph);return n},t.getMaxCyclicEdges=function(t){var e={},n={},i={},a=[],s=[],l=t.createIterator(o.ConnectionMode.Outgoing);l.visitEachEdgeOnce=!1,l.onNode=function(t){n[t.key]=!0},l.skipNode=function(t){if(n[t.key]){for(var o=[],r=0;r<a.length;r++){var l=a[r];if(void 0===i[l.key]&&(i[l.key]=0),i[l.key]++,o.push(l),l.from===t.key)break}s.push(o)}return n[t.key]||e[t.key]},l.skipEdge=function(t){return!1},l.onEdge=function(t){a.splice(0,0,t)},l.onAfterEdge=function(t){a.splice(0,1)},l.onAllEdges=function(t){e[t.key]=!0,n[t.key]=!1},l.iterate(t.nodes[0]);var u=new r.HashSet([],(function(t){return t.key}));return s.forEach((function(t){u.tryPush(t.reduce((function(t,e){return i[e.key]>i[t.key]?e:t}),t[0]))})),u.list()},t.reverseEdges=function(t,e){var n=new r.HashSet([],(function(t){return t.getHashKey()})),o={},a={};return t.edges.forEach((function(t){e[t.getHashKey()]&&(t=t.reverse(),o[t.key]=!0),n.tryPush(t)||(a[t.key]=!0,delete o[t.key])})),{graph:new i.Graph(t.nodes.map((function(e){return t.getNode(e)})),n.list()),reversedEdges:o,removedEdges:a}},t.getNonTrivialStronglyConnectedComponents=function(t){return this.getStronglyConnectedComponents(t).filter((function(t){return t.edges.length}))},t.getStronglyConnectedComponents=function(t){for(var e=this,n=[],i=0,r={},a={},s={},l=[],u={},c=0;c<t.nodes.length;c++){var d=t.nodes[c],h=t.createIterator(o.ConnectionMode.Outgoing);h.visitEachEdgeOnce=!1,h.visitEachNodeOnce=!1,h.onNode=function(t){u[t.key]=!0,n.push(t),s[t.key]=!0,a[t.key]=i,r[t.key]=i,i++},h.skipNode=function(t){return u[t.key]},h.skipEdge=function(t){var e=u[t.to];return e&&s[t.to]&&(a[t.from]=Math.min(a[t.from],r[t.to])),e},h.onAfterEdge=function(t){a[t.from]=Math.min(a[t.from],a[t.to])},h.onAllEdges=function(i,o){o&&a[i.key]===r[i.key]&&l.push(e.getStronglyConnectedComponent(t,i,n,s))},h.iterate(d)}return l},t.getStronglyConnectedComponent=function(t,e,n,r){var a,s={},l=[],u=[];do{a=n.pop(),s[a.key]||l.push(a),s[a.key]=!0,r[a.key]=!1}while(a!==e);return l.forEach((function(e){var n=t.getAdjacentEdges(e.key,o.ConnectionMode.Outgoing);u.push.apply(u,n.filter((function(t){return!s[t.key]&&s[t.to]}))),n.forEach((function(t){return s[t.key]=!0}))})),new i.Graph(l,u)},t}();e.CycleRemover=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(82),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.control.selection.getSelectedItems();return t.prototype.isEnabled.call(this)&&e.length>0&&this.needSendToBack(e)},e.prototype.executeCore=function(t,e){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach((function(t){var e=n.control.model.getIntersectItemsMinZIndex(t)-1;n.control.history.addAndRedo(new o.ChangeZindexHistoryItem(t,e))})),this.control.history.endTransaction(),!0},e.prototype.needSendToBack=function(t){for(var e=this,n=function(n){var o=i.control.model.getIntersectItemsMinZIndex(t[n]);if(o<t[n].zIndex)return{value:!0};if(o===t[n].zIndex){var r=!1;return i.control.model.getIntersectItems(t[n]).filter((function(e){return e.zIndex===t[n].zIndex})).forEach((function(i){e.control.model.getItemIndex(i)<e.control.model.getItemIndex(t[n])&&(r=!0)})),{value:r}}},i=this,o=0;o<t.length;o++){var r=n(o);if("object"===typeof r)return r.value}return!1},e}(n(8).SimpleCommandBase);e.SendToBackCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(82),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.control.selection.getSelectedItems();return t.prototype.isEnabled.call(this)&&e.length>0&&this.needBringToFront(e)},e.prototype.executeCore=function(t,e){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedItems().forEach((function(t){var e=n.control.model.getIntersectItemsMaxZIndex(t)+1;n.control.history.addAndRedo(new o.ChangeZindexHistoryItem(t,e))})),this.control.history.endTransaction(),!0},e.prototype.needBringToFront=function(t){for(var e=this,n=function(n){var o=i.control.model.getIntersectItemsMaxZIndex(t[n]);if(o>t[n].zIndex)return{value:!0};if(o===t[n].zIndex){var r=!1;return i.control.model.getIntersectItems(t[n]).filter((function(e){return e.zIndex===t[n].zIndex})).forEach((function(i){e.control.model.getItemIndex(i)>e.control.model.getItemIndex(t[n])&&(r=!0)})),{value:r}}},i=this,o=0;o<t.length;o++){var r=n(o);if("object"===typeof r)return r.value}return!1},e}(n(8).SimpleCommandBase);e.BringToFrontCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(7),a=n(14),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},e.prototype.executeCore=function(t,e){var n=this;return this.control.history.beginTransaction(),this.control.selection.getSelectedShapes().forEach((function(t,e){var i=n.getPosition(t.position);r.ModelUtils.setShapePosition(n.control.history,n.control.model,t,i),r.ModelUtils.updateShapeAttachedConnectors(n.control.history,n.control.model,t)})),this.control.selection.getSelectedConnectors().forEach((function(t,e){for(var i=t.beginItem?1:0,o=t.endItem?t.points.length-2:t.points.length-1,a=i;a<=o;a++){var s=n.getPosition(t.points[a]);r.ModelUtils.setConnectorPoint(n.control.history,t,a,s)}})),r.ModelUtils.tryUpdateModelSize(this.control.history,this.control.model),this.control.history.endTransaction(),!0},e}(n(8).SimpleCommandBase);e.MoveCommand=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return t.offset(-a.UnitConverter.pixelsToTwips(1),0)},e}(s);e.MoveLeftCommand=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return this.control.settings.snapToGrid?new o.Point(r.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,t.x-(this.control.settings.gridSize/2+2),!0),t.y):t.offset(-this.control.settings.gridSize,0)},e}(s);e.MoveStepLeftCommand=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return t.offset(a.UnitConverter.pixelsToTwips(1),0)},e}(s);e.MoveRightCommand=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return this.control.settings.snapToGrid?new o.Point(r.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,t.x+(this.control.settings.gridSize/2+2),!0),t.y):t.offset(this.control.settings.gridSize,0)},e}(s);e.MoveStepRightCommand=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return t.offset(0,-a.UnitConverter.pixelsToTwips(1))},e}(s);e.MoveUpCommand=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return this.control.settings.snapToGrid?new o.Point(t.x,r.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,t.y-(this.control.settings.gridSize/2+2),!1)):t.offset(0,-this.control.settings.gridSize)},e}(s);e.MoveStepUpCommand=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return t.offset(0,a.UnitConverter.pixelsToTwips(1))},e}(s);e.MoveDownCommand=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getPosition=function(t){return this.control.settings.snapToGrid?new o.Point(t.x,r.ModelUtils.getSnappedPos(this.control.model,this.control.settings.gridSize,t.y+(this.control.settings.gridSize/2+2),!1)):t.offset(0,this.control.settings.gridSize)},e}(s);e.MoveStepDownCommand=m},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(8),r=n(35),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.view.getZoom()},e.prototype.executeCore=function(t,e){return this.control.settings.zoomLevel=e,this.control.settings.autoZoom=r.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},e.prototype.getItems=function(){return this.control.settings.zoomLevelItems.map((function(t){return{value:t,text:100*t+"%"}}))},e}(o.SimpleCommandBase);e.ChangeZoomLevelCommand=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(e,n){return t.prototype.executeCore.call(this,e,n/100)},e.prototype.getValue=function(){return 100*this.control.view.getZoom()},e}(a);e.ChangeZoomLevelInPercentageCommand=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.view.getZoom()===this.exactValue},e.prototype.executeCore=function(e,n){return t.prototype.executeCore.call(this,e,this.exactValue),!0},e.prototype.getItems=function(){},e}(a),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=.25,e}return i(e,t),e}(l);e.ChangeZoomLevelTo25Command=u;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=.5,e}return i(e,t),e}(l);e.ChangeZoomLevelTo50Command=c;var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=.75,e}return i(e,t),e}(l);e.ChangeZoomLevelTo75Command=d;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=1,e}return i(e,t),e}(l);e.ChangeZoomLevelTo100Command=h;var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=1.25,e}return i(e,t),e}(l);e.ChangeZoomLevelTo125Command=f;var p=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=1.5,e}return i(e,t),e}(l);e.ChangeZoomLevelTo150Command=p;var m=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.exactValue=2,e}return i(e,t),e}(l);e.ChangeZoomLevelTo200Command=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.zoomLevelItems},e.prototype.executeCore=function(t,e){return this.control.settings.zoomLevelItems=e,!0},e}(o.SimpleCommandBase);e.ChangeZoomLevelItemsCommand=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!!this.control.render},e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t){var e=this.getZoomLevel();return this.control.settings.zoomLevel=e,this.control.settings.autoZoom=r.AutoZoomMode.Disabled,this.control.updateLayout(!0),!0},e}(o.SimpleCommandBase),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(r.AutoZoomMode.FitContent)},e}(_);e.FitToScreenCommand=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getZoomLevel=function(){return this.control.render.view.getActualAutoZoomLevel(r.AutoZoomMode.FitToWidth)},e}(_);e.FitToWidthCommand=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.autoZoom},e.prototype.executeCore=function(t,e){return e=parseInt(e),this.control.settings.autoZoom!==e&&(e===r.AutoZoomMode.Disabled&&(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=e,this.control.updateLayout(!0),!0)},e}(o.SimpleCommandBase);e.SwitchAutoZoomCommand=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.settings.autoZoom===r.AutoZoomMode.FitContent},e.prototype.executeCore=function(e,n){return t.prototype.executeCore.call(this,e,r.AutoZoomMode.FitContent)},e}(b);e.ToggleAutoZoomToContentCommand=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return this.control.settings.autoZoom===r.AutoZoomMode.FitToWidth},e.prototype.executeCore=function(e,n){return t.prototype.executeCore.call(this,e,r.AutoZoomMode.FitToWidth)},e}(b);e.ToggleAutoZoomToWidthCommand=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!!this.control.render},e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.autoZoom},e.prototype.executeCore=function(t,e){var n;return n=void 0===e?this.control.settings.autoZoom===r.AutoZoomMode.Disabled?r.AutoZoomMode.FitContent:r.AutoZoomMode.Disabled:e?r.AutoZoomMode.FitContent:r.AutoZoomMode.Disabled,this.control.settings.autoZoom!==n&&(n||(this.control.settings.zoomLevel=this.control.view.getZoom()),this.control.settings.autoZoom=n,this.control.updateLayout(!0),!0)},e}(o.SimpleCommandBase);e.ToggleAutoZoomCommand=C},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=n(119),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t,e){if(!e||!Array.isArray(e.nodeDataSource))throw Error("Format exception");return this.performImportData(e),this.control.updateLayout(!0),!0},e.prototype.performImportData=function(t){var e=this.control.createDocumentDataSource(t.nodeDataSource,t.edgeDataSource,t.dataParameters,t.nodeDataImporter,t.edgeDataImporter);e.beginChangesNotification();var n=t.layoutParameters?new r.DataLayoutParameters(t.layoutParameters):void 0;this.control.history.beginTransaction(),o.ModelUtils.deleteAllItems(this.control.history,this.control.model,this.control.selection),e.createModelItems(this.control.history,this.control.model,this.control.shapeDescriptionManager,this.control.selection,n,this.control.settings.snapToGrid,this.control.settings.gridSize),this.control.history.endTransaction(),this.control.history.clear(),e.endChangesNotification(!0)},e}(n(8).SimpleCommandBase);e.BindDocumentCommand=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(7),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t){return this.control.deleteDocumentDataSource(),o.ModelUtils.deleteAllItems(this.control.history,this.control.model,this.control.selection),this.control.history.clear(),!0},e}(n(8).SimpleCommandBase);e.UnbindDocumentCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getLockState=function(){return!0},e}(n(122).ChangeLockedCommand);e.LockCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getLockState=function(){return!1},e}(n(122).ChangeLockedCommand);e.UnLockCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(19),r=n(7),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&!this.control.selection.isEmpty()},e.prototype.executeCore=function(t,e){var n=o.DiagramModel.getRectangle(this.control.selection.getSelectedItems());return r.ModelUtils.cloneSelectionToOffset(this.control.history,this.control.model,this.control.selection,this.getOffsetX(n),this.getOffsetY(n)),!0},e.prototype.getOffsetX=function(t){return 0},e.prototype.getOffsetY=function(t){return 0},e}(n(8).SimpleCommandBase);e.CloneCommand=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getOffsetX=function(t){return-t.width},e}(a);e.CloneLeftCommand=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getOffsetX=function(t){return t.width},e}(a);e.CloneRightCommand=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getOffsetY=function(t){return-t.height},e}(a);e.CloneUpCommand=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getOffsetY=function(t){return t.height},e}(a);e.CloneDownCommand=c},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(60),r=n(247),a=n(8),s=n(4),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.model.units},e.prototype.createHistoryItems=function(t){return[new r.ChangeUnitsHistoryItem(t)]},e.prototype.getItems=function(){return Object.keys(s.DiagramLocalizationService.unitItems).map((function(t){return{value:parseInt(t),text:s.DiagramLocalizationService.unitItems[t]}}))},e}(o.ChangePagePropertyCommand);e.ChangeUnitsCommand=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.viewUnits},e.prototype.executeCore=function(t,e){return this.control.settings.viewUnits=e,!0},e.prototype.getItems=function(){return Object.keys(s.DiagramLocalizationService.unitItems).map((function(t){return{value:parseInt(t),text:s.DiagramLocalizationService.unitItems[t]}}))},e}(a.SimpleCommandBase);e.ChangeViewUnitsCommand=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.setValue=function(t,e){return t.units=e},e.getValue=function(t){return t.units},e}return i(e,t),e}(function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return i(e,t),e.prototype.redo=function(t){var e=this;this.oldValue=this.getValue(t.model),t.changePageProperty((function(t){return e.setValue(t,e.value)}))},e.prototype.undo=function(t){var e=this;t.changePageProperty((function(t){return e.setValue(t,e.oldValue)}))},e}(n(3).HistoryItem));e.ChangeUnitsHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(60),r=n(249),a=n(4),s=n(19),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getValue=function(){return a.ColorHelper.colorToHash(this.control.model.pageColor)},e.prototype.getDefaultValue=function(){return a.ColorHelper.colorToHash(s.DiagramModel.defaultPageColor)},e.prototype.createHistoryItems=function(t){return[new r.ChangePageColorHistoryItem(a.ColorHelper.stringToColor(t))]},e}(o.ChangePagePropertyCommand);e.ChangePageColorCommand=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.value=e,n}return i(e,t),e.prototype.redo=function(t){this.oldValue=t.model.pageColor,t.changePageColor(this.value)},e.prototype.undo=function(t){t.changePageColor(this.oldValue)},e}(n(3).HistoryItem);e.ChangePageColorHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.executeCore=function(t,e){var n=void 0===e?!this.control.settings.showGrid:!!e;return this.control.settings.showGrid!==n&&(this.control.settings.showGrid=n,!0)},e.prototype.getValue=function(){return this.control.settings.showGrid},e}(n(8).SimpleCommandBase);e.ChangeShowGridCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.fullscreen},e.prototype.executeCore=function(t,e){var n="boolean"===typeof e?e:!t.value;return this.control.settings.fullscreen!==n&&(this.control.settings.fullscreen=!t.value,this.control.notifyToggleFullscreen(this.control.settings.fullscreen)),!0},e}(n(8).SimpleCommandBase);e.ToggleFullscreenCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.simpleView},e.prototype.executeCore=function(t,e){return"boolean"===typeof e?this.control.settings.simpleView=e:void 0===e&&(this.control.settings.simpleView=!t.value),this.control.updateLayout(!0),!0},e}(n(8).SimpleCommandBase);e.ToggleSimpleViewCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabledInReadOnlyMode=function(){return!0},e.prototype.getValue=function(){return this.control.settings.readOnly},e.prototype.executeCore=function(t,e){return"boolean"===typeof e?this.control.settings.readOnly=e:void 0===e&&(this.control.settings.readOnly=!t.value),!0},e}(n(8).SimpleCommandBase);e.ToggleReadOnlyCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.getSelectedShape();return t.prototype.isEnabled.call(this)&&!e.image.isEmpty},e}(n(83).EditShapeImageCommandBase);e.EditShapeImageCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(117),r=n(11),a=n(6),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.calculateSelectionOffset=function(t,e){var n=t.reduce((function(t,e){return{x:Math.min(t.x,e instanceof r.Shape?e.position.x:e instanceof a.Connector?e.getMinX():Number.MAX_VALUE),y:Math.min(t.y,e instanceof r.Shape?e.position.y:e instanceof a.Connector?e.getMinY():Number.MAX_VALUE)}}),{x:Number.MAX_VALUE,y:Number.MAX_VALUE}),i=this.control.render.getModelPointByEventPoint(e.x,e.y);this.offsetX=i.x-n.x,this.offsetY=i.y-n.y},e.prototype.getShapeNewPosition=function(t){var e=t.offset(this.offsetX,this.offsetY);return o.PasteSelectionCommandBase.getShapeNewPosition(this.control.model,e)},e.prototype.changeConnectorPoints=function(t){var e=this;t.points.forEach((function(t){t.x+=e.offsetX,t.y+=e.offsetY})),o.PasteSelectionCommandBase.changeConnectorPoints(this.control.model,t)},e}(o.PasteSelectionCommandBase);e.PasteSelectionInPositionCommand=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(257),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.executeCore=function(t,e){var n=new o.XmlImporter(this.control.shapeDescriptionManager,e).import();return this.control.importModel(n),!0},e}(n(44).ExportImportCommandBase);e.ImportXMLCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=n(11),a=n(108),s=n(4),l=n(1),u=n(70),c=n(0),d=n(75),h=n(37),f=function(t){function e(e,n){var i=t.call(this,e)||this;return i.doc=d.ImportUtils.createDocument(n),i}return i(e,t),e.prototype.getObject=function(){return this.doc},e.prototype.getPageObject=function(t){var e=this.doc.querySelectorAll("[ItemKind='DiagramRoot']");return e&&e[0]},e.prototype.getShapeObjects=function(t){var e=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramShape']").forEach((function(t){e.push(t)})),this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramContainer']").forEach((function(t){e.push(t)})),e},e.prototype.getConnectorObjects=function(t){var e=[];return this.doc.querySelectorAll("[ItemKind='DiagramRoot'] > Children > [ItemKind='DiagramConnector']").forEach((function(t){e.push(t)})),e},e.prototype.importPageSettings=function(t,e){if(e){var n=e.getAttribute("PageSize"),i=this.getSize(n);i&&(t.size=i.clone(),t.pageSize=i.clone())}},e.prototype.importShape=function(t){var e=t.getAttribute("Position"),n=this.getPoint(e),i=t.getAttribute("Shape"),o=this.getShapeType(i),a=this.shapeDescriptionManager.get(o),s=new r.Shape(a||u.ShapeDescriptionManager.default,n);s.key=this.getItemKey(t);var l=t.getAttribute("Size"),c=this.getSize(l);c&&(s.size=c);var d=t.getAttribute("Content");if("string"===typeof d)s.text=d;else{var h=t.getAttribute("Header");"string"===typeof h&&(s.text=h)}return this.importStyle(t,s),s},e.prototype.importShapeChildren=function(t,e){var n=[];t.setAttribute("dxDiagram",""),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramShape']").forEach((function(t){n.push(t)})),this.doc.querySelectorAll("[dxDiagram] > Children > [ItemKind='DiagramContainer']").forEach((function(t){n.push(t)})),t.removeAttribute("dxDiagram");var i=[];if(!n)return i;for(var o=0;o<n.length;o++){var r=n[o],a=this.importShape(r);a.key=e.key+","+a.key;var s=e.clientRectangle;a.position=a.position.offset(s.left,s.top),e.childKeys||(e.childKeys=[]),e.childKeys.push(a.key),i.push(a),i=i.concat(this.importShapeChildren(r,a))}return i},e.prototype.importConnector=function(t){var e=this,n=[],i=t.getAttribute("BeginPoint"),r=this.getPoint(i);r&&n.push(r),t.getAttribute("Points").split(" ").forEach((function(t){var i=e.getPoint(t);i&&n.push(i)}));var a=t.getAttribute("EndPoint"),s=this.getPoint(a);s&&n.push(s);var l=new o.Connector(n);l.key=this.getItemKey(t);var u=t.getAttribute("EndItemPointIndex"),c=parseInt(u);l.endConnectionPointIndex=isNaN(c)?-1:c;var d=t.getAttribute("BeginItemPointIndex"),h=parseInt(d);l.beginConnectionPointIndex=isNaN(h)?-1:h;var f=t.getAttribute("EndItem");void 0!==f&&this.assert(f,"string");var p=t.getAttribute("BeginItem");void 0!==p&&this.assert(p,"string"),l.endItemKey=f,l.beginItemKey=p;var m=t.getAttribute("Content");return"string"===typeof m&&l.setText(m),this.importStyle(t,l),l},e.prototype.importStyle=function(t,e){var n=t.getAttribute("Background");"string"===typeof n&&(e.style.fill=this.getColor(n));var i=t.getAttribute("Stroke");"string"===typeof i&&(e.style.stroke=this.getColor(i));var o=t.getAttribute("Foreground");"string"===typeof o&&(e.styleText.fill=this.getColor(o));var r=t.getAttribute("FontFamily");"string"===typeof r&&(e.styleText["font-family"]=r);var a=t.getAttribute("FontSize");"string"===typeof a&&(e.styleText["font-size"]=a),"Bold"===t.getAttribute("FontWeight")&&(e.styleText["font-weight"]="bold"),"Italic"===t.getAttribute("FontStyle")&&(e.styleText["font-style"]="italic"),"Underline"===t.getAttribute("TextDecorations")&&(e.styleText["text-decoration"]="underline");var s=t.getAttribute("TextAlignment");"Left"===s?e.styleText["text-anchor"]="start":"Right"===s?e.styleText["text-anchor"]="end":"Right"===s&&(e.styleText["text-anchor"]="middle")},e.prototype.getShapeType=function(t){return e.shapeTypes[t]?e.shapeTypes[t]:t&&t.toLowerCase().indexOf("container")>-1?l.ShapeTypes.VerticalContainer:l.ShapeTypes.Rectangle},e.prototype.getItemKey=function(t){return(parseInt(t.tagName.replace("Item",""))-1).toString()},e.prototype.getNumbers=function(t){var e=t.split(",");return e&&e.length?e.map((function(t){return+t})):[]},e.prototype.getSize=function(t){if(t){var e=this.getNumbers(t);if(e.length>=2)return this.assert(e[0],"number"),this.assert(e[1],"number"),new c.Size(s.UnitConverter.pixelsToTwips(e[0]),s.UnitConverter.pixelsToTwips(e[1]))}},e.prototype.getPoint=function(t){if(t){var e=this.getNumbers(t);if(e.length>=2)return this.assert(e[0],"number"),this.assert(e[1],"number"),new c.Point(s.UnitConverter.pixelsToTwips(e[0]),s.UnitConverter.pixelsToTwips(e[1]))}},e.prototype.getColor=function(t){t="#"==t.charAt(0)?t.substr(1):t;var e=parseInt(t,16);return isNaN(e)?void 0:h.ColorHelper.colorToHash(e)},e.shapeTypes={"BasicShapes.Rectangle":l.ShapeTypes.Rectangle,"BasicShapes.Ellipse":l.ShapeTypes.Ellipse,"BasicShapes.Triangle":l.ShapeTypes.Triangle,"BasicShapes.Pentagon":l.ShapeTypes.Pentagon,"BasicShapes.Hexagon":l.ShapeTypes.Hexagon,"BasicShapes.Octagon":l.ShapeTypes.Octagon,"BasicShapes.Diamond":l.ShapeTypes.Diamond,"BasicShapes.Cross":l.ShapeTypes.Cross,"BasicShapes.Star5":l.ShapeTypes.Star,"BasicFlowchartShapes.StartEnd":l.ShapeTypes.Terminator,"BasicFlowchartShapes.Data":l.ShapeTypes.Data,"BasicFlowchartShapes.Database":l.ShapeTypes.Database,"BasicFlowchartShapes.ExternalData":l.ShapeTypes.StoredData,"BasicFlowchartShapes.Process":l.ShapeTypes.Process,"BasicFlowchartShapes.Decision":l.ShapeTypes.Decision,"BasicFlowchartShapes.Subprocess":l.ShapeTypes.PredefinedProcess,"BasicFlowchartShapes.Document":l.ShapeTypes.Document,"BasicFlowchartShapes.Custom1":l.ShapeTypes.ManualInput,"BasicFlowchartShapes.Custom2":l.ShapeTypes.ManualOperation,"ArrowShapes.SimpleArrow":l.ShapeTypes.ArrowLeft,"ArrowShapes.SimpleDoubleArrow":l.ShapeTypes.ArrowLeftRight},e}(a.ImporterBase);e.XmlImporter=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.getSelectedShape();return t.prototype.isEnabled.call(this)&&e.image.isEmpty},e}(n(83).EditShapeImageCommandBase);e.InsertShapeImageCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.isEnabled=function(){var e=this.getSelectedShape();return t.prototype.isEnabled.call(this)&&!e.image.isEmpty},e.prototype.executeCore=function(e,n){return t.prototype.executeCore.call(this,e,void 0)},e}(n(83).EditShapeImageCommandBase);e.DeleteShapeImageCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"stroke-dasharray"},e}(n(58).ChangeStylePropertyCommand);e.ChangeStrokeStyleCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.getStyleProperty=function(){return"stroke-width"},e}(n(58).ChangeStylePropertyCommand);e.ChangeStrokeWidthCommand=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var e=t.prototype.createLayoutSettings.call(this);return e.direction=o.LogicalDirectionKind.Backward,e},e}(n(112).AutoLayoutTreeVerticalCommand);e.AutoLayoutTreeVerticalBottomToTopCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var e=t.prototype.createLayoutSettings.call(this);return e.direction=o.LogicalDirectionKind.Backward,e},e}(n(120).AutoLayoutTreeHorizontalCommand);e.AutoLayoutTreeHorizontalRightToLeftCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var e=t.prototype.createLayoutSettings.call(this);return e.direction=o.LogicalDirectionKind.Backward,e},e}(n(121).AutoLayoutLayeredVerticalCommand);e.AutoLayoutLayeredVerticalBottomToTopCommand=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(17),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createLayoutSettings=function(){var e=t.prototype.createLayoutSettings.call(this);return e.direction=o.LogicalDirectionKind.Backward,e},e}(n(118).AutoLayoutLayeredHorizontalCommand);e.AutoLayoutLayeredHorizontalRightToLeftCommand=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(267),o=n(63),r=n(268),a=n(19),s=n(297),l=n(300),u=n(301),c=n(302),d=n(70),h=n(310),f=n(35),p=n(314),m=n(7),g=n(315),_=n(0),v=n(4),y=n(318),b=n(34),w=function(){function t(){this.processDataChangesNeeded=!1,this.settings=new f.DiagramSettings,this.shapeDescriptionManager=new d.ShapeDescriptionManager,this.shapeDescriptionManager.onShapeDecriptionChanged.add(this),this.model=new a.DiagramModel,this.selection=new s.Selection(this.model),this.modelManipulator=new i.ModelManipulator(this.model),this.history=new l.History(this.modelManipulator),this.onNativeAction=new v.EventDispatcher,this.barManager=new u.BarManager(this),this.view=new p.ViewController(this.settings,this.barManager),this.commandManager=new o.CommandManager(this),this.eventManager=new r.EventManager(this),this.settings.onReadOnlyChanged.add(this.eventManager.mouseHandler),this.settings.onReadOnlyChanged.add(this.eventManager.visualizersManager),this.selection.onChanged.add(this.barManager),this.modelManipulator.onLoad(),this.history.onChanged.add(this),this.toolboxManager=new g.ToolboxManager(this.shapeDescriptionManager),this.apiController=new y.ApiController(this.onNativeAction,this.selection,this.model),this.selection.onChanged.add(this.apiController),b.ImageCache.instance.onReadyStateChanged.add(this)}return t.prototype.cleanMarkup=function(){this.toolboxManager.clean(),this.render&&(this.render.clean(),this.render=void 0)},t.prototype.createDocument=function(t,e){this.render?this.render.replaceParent(t,e):(this.render=new c.RenderManager(t,this.eventManager,{pageColor:this.model.pageColor,modelSize:this.model.size,pageLandscape:this.model.pageLandscape,pageSize:this.model.pageSize,simpleView:this.settings.simpleView,readOnly:this.settings.readOnly,gridSize:this.settings.gridSize,gridVisible:this.settings.showGrid,zoomLevel:this.settings.zoomLevel,autoZoom:this.settings.autoZoom,rectangle:this.model.getRectangle(!0),scrollView:e}),this.settings.onZoomChanged.add(this.render.view),this.settings.onViewChanged.add(this.render.page),this.settings.onViewChanged.add(this.render.view),this.settings.onReadOnlyChanged.add(this.render),this.settings.onReadOnlyChanged.add(this.render.selection),this.eventManager.onTextInputOperation.add(this.render.input),this.eventManager.onTextInputOperation.add(this.render.items),this.eventManager.onTextInputOperation.add(this.render.selection),this.eventManager.onTextInputOperation.add(this),this.eventManager.onMouseOperation.add(this.render.items),this.eventManager.onMouseOperation.add(this.render.selection),this.eventManager.onMouseOperation.add(this.render.view),this.eventManager.onMouseOperation.add(this.render),this.eventManager.onVisualizersUpdate.add(this.render.selection),this.modelManipulator.onModelSizeChanged.add(this.render.view),this.modelManipulator.onModelSizeChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.items),this.modelManipulator.onModelChanged.add(this.render.page),this.modelManipulator.onModelChanged.add(this.render.selection),this.selection.onChanged.add(this.render.selection),this.render.update(!1),this.render.onNewModel(this.model.items),this.modelManipulator.onLoad(),this.view.initialize(this.render.view),this.selection.onLoad())},t.prototype.createToolbox=function(t,e,n,i){var o=this.toolboxManager.create(t,this.settings.readOnly,!0,e,n,i);this.settings.onReadOnlyChanged.add(o),o.onDragOperation.add(this),this.eventManager.registerToolbox(o)},t.prototype.createContextToolbox=function(t,e,n,i,o){this.contextToolbox&&this.cleanContextToolbox(t),this.contextToolbox=this.toolboxManager.create(t,this.settings.readOnly,!1,e,n,i),this.contextToolbox.onClickOperation.add(this),this.contextToolboxOnClick=o},t.prototype.cleanContextToolbox=function(t){this.contextToolbox&&(this.toolboxManager.clean(this.contextToolbox),this.contextToolbox=void 0)},t.prototype.applyToolboxFilter=function(t,e){return this.toolboxManager.applyFilter(t,e)},t.prototype.notifyToolboxClick=function(t){this.contextToolboxOnClick&&this.contextToolboxOnClick(t)},t.prototype.updateLayout=function(t){void 0===t&&(t=!1),this.render&&this.render.update(!t)},t.prototype.captureFocus=function(){this.render&&this.render.input.captureFocus()},t.prototype.isFocused=function(){return!this.render||this.render.input.isFocused()},t.prototype.registerBar=function(t){this.barManager.registerBar(t)},t.prototype.updateBarItemsState=function(t,e){this.barManager.updateBarItemsState(t,e)},t.prototype.getCommand=function(t){return this.commandManager.getCommand(t)},t.prototype.setInitialStyleProperties=function(t){this.selection.inputPosition.setInitialStyleProperties(t)},t.prototype.setInitialTextStyleProperties=function(t){this.selection.inputPosition.setInitialTextStyleProperties(t)},t.prototype.setInitialConnectorProperties=function(t){this.selection.inputPosition.setInitialConnectorProperties(t)},t.prototype.addCustomShapes=function(t){var e=this;t.forEach((function(t){t.defaultWidth&&(t.defaultWidth=m.ModelUtils.getTwipsValue(e.model.units,t.defaultWidth)),t.defaultHeight&&(t.defaultHeight=m.ModelUtils.getTwipsValue(e.model.units,t.defaultHeight)),t.minWidth&&(t.minWidth=m.ModelUtils.getTwipsValue(e.model.units,t.minWidth)),t.minHeight&&(t.minHeight=m.ModelUtils.getTwipsValue(e.model.units,t.minHeight)),t.maxWidth&&(t.maxWidth=m.ModelUtils.getTwipsValue(e.model.units,t.maxWidth)),t.maxHeight&&(t.maxHeight=m.ModelUtils.getTwipsValue(e.model.units,t.maxHeight)),e.shapeDescriptionManager.registerCustomShape(t)}))},t.prototype.removeCustomShapes=function(t){var e=this;t.forEach((function(t){e.shapeDescriptionManager.unregisterCustomShape(t)}))},t.prototype.importModel=function(t){this.model=t,this.apiController.model=t,this.importData()},t.prototype.importItemsData=function(){this.model.invalidateItems(),this.importData()},t.prototype.importData=function(){this.render&&(this.render.clear(),this.render.onNewModel(this.model.items)),this.selection.initialize(this.model),this.modelManipulator.load(this.model),this.history.clear(),this.eventManager.initialize(),this.modelManipulator.onLoad(),this.processChanges()},t.prototype.createDocumentDataSource=function(t,e,n,i,o){return this.documentDataSource=new h.DocumentDataSource(this,t,e,n,i,o),this.apiController.setDataSource(this.documentDataSource),this.documentDataSource},t.prototype.deleteDocumentDataSource=function(){this.apiController.setDataSource(null),delete this.documentDataSource},t.prototype.beginUpdate=function(t){this.barManager.beginUpdate(),t&&this.render&&this.render.items.beginUpdate(),this.apiController.beginUpdate(),this.eventManager.beginUpdate()},t.prototype.endUpdate=function(t){t&&this.render&&this.render.items.endUpdate(),this.barManager.endUpdate(),this.apiController.endUpdate(),this.eventManager.endUpdate()},t.prototype.notifyEdgeInserted=function(t,e,n){this.onEdgeInserted&&this.onEdgeInserted(t,e,n)},t.prototype.notifyEdgeUpdated=function(t,e,n,i){this.onEdgeUpdated&&this.onEdgeUpdated(t,e,n,i)},t.prototype.notifyEdgeRemoved=function(t,e,n,i){this.onEdgeUpdated&&this.onEdgeRemoved(t,e,n,i)},t.prototype.notifyNodeInserted=function(t,e,n){this.onNodeInserted&&this.onNodeInserted(t,e,n)},t.prototype.notifyNodeUpdated=function(t,e,n,i){this.onNodeUpdated&&this.onNodeUpdated(t,e,n,i)},t.prototype.notifyNodeRemoved=function(t,e,n,i){this.onNodeRemoved&&this.onNodeRemoved(t,e,n,i)},t.prototype.checkProcessDataChanges=function(){this.documentDataSource.isUpdateLocked()?this.processDataChangesNeeded=!0:this.processDataChanges()},t.prototype.processDataChanges=function(t){void 0===t&&(t=!0),(t||this.processDataChangesNeeded)&&(this.documentDataSource.updateItemsByModel(this.model),this.processDataChangesNeeded=!1),this.documentDataSource.isUpdateLocked()||this.raiseOnChanged()},t.prototype.processChanges=function(){this.settings.readOnly||(this.documentDataSource?this.checkProcessDataChanges():this.raiseOnChanged())},t.prototype.notifyHistoryChanged=function(){this.processChanges()},t.prototype.raiseOnChanged=function(){this.onChanged&&this.onChanged()},t.prototype.notifyToolboxDragStart=function(){this.onToolboxDragStart&&this.onToolboxDragStart()},t.prototype.notifyToolboxDragEnd=function(){this.onToolboxDragEnd&&this.onToolboxDragEnd()},t.prototype.notifyTextInputStart=function(t,e,n,i){this.onTextInputStart&&this.onTextInputStart()},t.prototype.notifyTextInputEnd=function(t){this.onTextInputEnd&&this.onTextInputEnd()},t.prototype.notifyToggleFullscreen=function(t){this.onToggleFullscreen&&this.onToggleFullscreen(t)},t.prototype.getPastePosition=function(){return this.contextMenuPosition},t.prototype.notifyShowContextMenu=function(t,e){if(this.onShowContextMenu&&this.render){var n=void 0;if(this.selection.getSelectedItems(!0).length>0){var i=a.DiagramModel.getRectangle(this.selection.getSelectedItems(!0)),o=this.render.getEventPointByModelPoint(i.position),r=this.render.view.getAbsoluteSize(i.size);n={x:o.x,y:o.y,width:r.width,height:r.height}}if(t)this.onShowContextMenu(t.x,t.y,n),this.contextMenuPosition=new _.Point(t.x,t.y);else if(e){var s=this.render.getEventPointByModelPoint(e);this.onShowContextMenu(s.x,s.y,n),this.contextMenuPosition=s.clone()}}},t.prototype.notifyHideContextMenu=function(){this.onHideContextMenu&&this.render&&this.onHideContextMenu()},t.prototype.notifyShowContextToolbox=function(t,e,n,i){if(this.onShowContextToolbox&&this.render){var o=this.render.getEventPointByModelPoint(t);this.onShowContextToolbox(o.x,o.y,e,n,i)}},t.prototype.notifyHideContextToolbox=function(){this.onHideContextToolbox&&this.render&&this.onHideContextToolbox()},t.prototype.notifyShapeDescriptionChanged=function(t){this.modelManipulator.updateShapeDescription(t)},t.prototype.notifyImageCacheReadyStateChanged=function(t){this.barManager.updateItemsState()},t}();e.DiagramControl=w},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(116),o=n(0),r=n(6),a=n(34),s=n(106),l=n(64),u=function(){function t(t){this.onModelChanged=new o.EventDispatcher,this.onModelSizeChanged=new o.EventDispatcher,this.model=t,this.imageLoader=new s.ImageLoader(this.updateShapeImage.bind(this))}return t.prototype.load=function(t){this.model=t,this.model.loadAllImages(this.imageLoader),this.updateModelSize(),this.raisePageSizeChanged(t.pageSize.clone(),t.pageLandscape),this.raiseModelSizeChanged(t.size.clone()),this.raisePageColorChanged(t.pageColor),this.raiseModelRectangleChanged(o.GeometryUtils.getCommonRectangle(t.items.map((function(t){return t.rectangle}))))},t.prototype.onLoad=function(){var t=[];this.model.iterateItems((function(e){t.push(new i.ItemChange(e,i.ItemChangeType.Create))})),l.Diagnostics.timer("new model: model changes"),this.raiseModelChanged(t),l.Diagnostics.endTimer()},t.prototype.insertToContainer=function(t,e){if(t.container&&e&&t.container.key!==e.key)throw Error("To insert an item to a container it's necessary to remove it from the current container.");e&&(e.children.push(t),t.container=e,this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)]))},t.prototype.removeFromContainer=function(t){if(t.container){var e=t.container.children.indexOf(t);t.container.children.splice(e,1),t.container=void 0,this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])}},t.prototype.changeStyle=function(t,e,n){this.changeStyleCore(t,t.style,e,n)},t.prototype.changeStyleText=function(t,e,n){this.changeStyleCore(t,t.styleText,e,n)},t.prototype.changeStyleCore=function(t,e,n,o){void 0!==o?e[n]=o:delete e[n],t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeZIndex=function(t,e){t.zIndex=e,this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeLocked=function(t,e){t.locked=e,this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.addShape=function(t,e){if(t.attachedConnectors.length)throw Error("A creating shape should not contain existing connectors.");return t.key=void 0!==e?e:this.model.getNextKey(),this.insertShape(t)},t.prototype.insertShape=function(t){return this.model.pushItem(t),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Create)]),this.model.loadAllImages(this.imageLoader),t},t.prototype.resizeShape=function(t,e,n){t.position=e,t.size=n,t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.moveShape=function(t,e){t.position=e,t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeShapeParameters=function(t,e){t.parameters.forEach((function(t){var n=e.get(t.key);n&&(t.value=n.value)})),t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeShapeText=function(t,e){t.text=e,t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.UpdateStructure)])},t.prototype.changeShapeImage=function(t,e){t.image=e;var n=a.ImageCache.instance.createUnloadedInfoByShapeImageInfo(e);this.imageLoader.load(n),t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.UpdateStructure)])},t.prototype.changeShapeExpanded=function(t,e){t.expanded=e,t.toggleExpandedSize(),t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.UpdateStructure)])},t.prototype.deleteShape=function(t){if(t.attachedConnectors.length)throw Error("A removing shape should not contain existing connectors.");this.removeShape(t)},t.prototype.removeShape=function(t){this.model.removeItem(t),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Remove)])},t.prototype.updateShapeImage=function(t){if(t.imageUrl){var e=this.model.findShapesByImageUrl(t.imageUrl),n=[];e.forEach((function(e){t.base64?e.image.loadBase64Content(t.base64):e.image.setUnableToLoadFlag(),e.invalidatePrimitives(),n.push(new i.ItemChange(e,i.ItemChangeType.UpdateStructure))})),n.length>0&&this.raiseModelChanged(n)}},t.prototype.updateShapeDescription=function(t){var e=this.model.findShapesByDescription(t),n=[];e.forEach((function(t){t.invalidatePrimitives(),n.push(new i.ItemChange(t,i.ItemChangeType.Update))})),n.length>0&&this.raiseModelChanged(n)},t.prototype.addConnector=function(t,e){if(t.beginItem||t.endItem)throw Error("Creating connector should not contain begin/end items");return t.key=void 0!==e?e:this.model.getNextKey(),this.insertConnector(t)},t.prototype.insertConnector=function(t){return this.model.pushItem(t),t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Create)]),t},t.prototype.deleteConnector=function(t){if(t.beginItem||t.endItem)throw Error("Creating connector should not contain begin/end items");this.removeConnector(t)},t.prototype.removeConnector=function(t){this.model.removeItem(t),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Remove)])},t.prototype.moveConnectorPoint=function(t,e,n){t.points[e]=n,t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.addConnectorPoint=function(t,e,n){t.points.splice(e,0,n),t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.deleteConnectorPoint=function(t,e){t.points.splice(e,1),t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.addConnection=function(t,e,n,o){var a=t.getExtremeItem(o),s=t.getExtremeConnectionPointIndex(o);if(a!==e||s!==n){if(a)throw Error("Connector is already connected");e.attachedConnectors.push(t),o===r.ConnectorPosition.Begin?(t.beginItem=e,t.beginConnectionPointIndex=n):(t.endItem=e,t.endConnectionPointIndex=n),t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])}},t.prototype.setConnectionPointIndex=function(t,e,n){if(!t.getExtremeItem(n))throw Error("Connection should be connected");n===r.ConnectorPosition.Begin?t.beginConnectionPointIndex=e:t.endConnectionPointIndex=e,t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.deleteConnection=function(t,e){var n=t.getExtremeItem(e);n&&(n.attachedConnectors.splice(n.attachedConnectors.indexOf(t),1),e===r.ConnectorPosition.Begin?(t.beginItem=null,t.beginConnectionPointIndex=-1):(t.endItem=null,t.endConnectionPointIndex=-1),t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)]))},t.prototype.changeConnectorProperty=function(t,e,n){t.properties[e]=n,t.invalidateRenderPoints(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeConnectorText=function(t,e,n){t.setText(e,n),t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.UpdateStructure)])},t.prototype.changeConnectorTextPosition=function(t,e,n){var o=t.getText(e);t.setText(null,e),t.setText(o,n),t.invalidatePrimitives(),this.raiseModelChanged([new i.ItemChange(t,i.ItemChangeType.Update)])},t.prototype.changeModelSize=function(t,e){this.model.size.width=t.width,this.model.size.height=t.height,this.raiseModelSizeChanged(this.model.size.clone(),e),(e.left||e.top)&&(this.model.snapStartPoint=this.model.snapStartPoint.offset(e.left,e.top),this.raiseSnapPointChange(this.model.snapStartPoint))},t.prototype.changePageSize=function(t){this.model.pageSize.equals(t)||(this.model.pageSize=t,this.model.size=new o.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape))},t.prototype.changePageLandscape=function(t){this.model.pageLandscape!==t&&(this.model.pageLandscape=t,this.model.pageSize.width!==this.model.pageSize.height&&(this.model.size=new o.Size(this.model.pageWidth,this.model.pageHeight),this.raiseModelSizeChanged(this.model.size.clone()),this.raisePageSizeChanged(this.model.pageSize,this.model.pageLandscape)))},t.prototype.changePageColor=function(t){this.model.pageColor!==t&&(this.model.pageColor=t,this.raisePageColorChanged(t))},t.prototype.changePageProperty=function(t){t(this.model)},t.prototype.getModelSizeUpdateOffset=function(){var t=this.model.getRectangle(!1),e=this.model.getRectangle(!0);e.equals(t)||this.raiseModelRectangleChanged(e);var n=-Math.floor(e.left/this.model.pageWidth),i=-Math.floor(e.top/this.model.pageHeight),r=-Math.floor((this.model.size.width-e.right)/this.model.pageWidth),a=-Math.floor((this.model.size.height-e.bottom)/this.model.pageHeight);return new o.Offset(n*this.model.pageWidth,i*this.model.pageHeight,r*this.model.pageWidth,a*this.model.pageHeight)},t.prototype.updateModelSize=function(){var t=this.getModelSizeUpdateOffset();if(!t.isEmpty()){var e=Math.max(this.model.size.width+t.left+t.right,this.model.pageWidth),n=Math.max(this.model.size.height+t.top+t.bottom,this.model.pageHeight);this.model.size=new o.Size(e,n)}},t.prototype.raiseModelChanged=function(t){this.onModelChanged.raise1((function(e){return e.notifyModelChanged(t)}))},t.prototype.raisePageColorChanged=function(t){this.onModelChanged.raise1((function(e){return e.notifyPageColorChanged(t)}))},t.prototype.raisePageSizeChanged=function(t,e){this.onModelChanged.raise1((function(n){return n.notifyPageSizeChanged(t,e)}))},t.prototype.raiseModelSizeChanged=function(t,e){this.onModelSizeChanged.raise1((function(n){return n.notifyModelSizeChanged(t,e)}))},t.prototype.raiseModelRectangleChanged=function(t){this.onModelSizeChanged.raise1((function(e){return e.notifyModelRectangleChanged(t)}))},t.prototype.raiseSnapPointChange=function(t){this.onModelSizeChanged.raise1((function(e){return e.notifySnapPointPositionChanged(t)}))},t}();e.ModelManipulator=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(269),o=n(0),r=n(287),a=n(132),s=n(4),l=n(289),u=n(133),c=n(295),d=n(296),h=function(){function t(t){this.onMouseOperation=new o.EventDispatcher,this.onTextInputOperation=new o.EventDispatcher,this.toolboxes=[],this.control=t,this.visualizersManager=s.Browser.TouchUI?new c.VisualizerTouchManager(t.selection,t.model,this,t.settings):new u.VisualizerManager(t.selection,t.model,this,t.settings),this.onMouseOperation.add(this.visualizersManager),this.contextMenuHandler=s.Browser.TouchUI?new l.ContextMenuTouchHandler(t.selection):new a.ContextMenuHandler,this.contextMenuHandler.onVisibilityChanged.add(t),this.onMouseOperation.add(this.contextMenuHandler),this.contextToolboxHandler=new d.ContextToolboxHandler,this.contextToolboxHandler.onVisibilityChanged.add(t),this.contextToolboxHandler.onVisibilityChanged.add(this.contextMenuHandler),this.mouseHandler=new i.MouseHandler(t.history,t.selection,t.model,this,t.settings.readOnly,t.view,this.visualizersManager,this.contextToolboxHandler,t.shapeDescriptionManager,t.settings),this.textInputHandler=new r.TextInputHandler(t)}return Object.defineProperty(t.prototype,"onVisualizersUpdate",{get:function(){return this.visualizersManager.onVisualizersUpdate},enumerable:!0,configurable:!0}),t.prototype.registerToolbox=function(t){this.toolboxes.push(t)},t.prototype.initialize=function(){this.visualizersManager.initialize(this.control.model),this.mouseHandler.initialize(this.control.model)},t.prototype.beginUpdate=function(t){this.contextMenuHandler.beginUpdate(),this.visualizersManager.beginUpdate()},t.prototype.endUpdate=function(){this.contextMenuHandler.endUpdate(),this.visualizersManager.endUpdate()},t.prototype.onMouseDown=function(t){this.mouseHandler.onMouseDown(t),this.contextMenuHandler.onMouseDown(t),this.visualizersManager.onMouseDown(t),this.contextToolboxHandler.onMouseDown(t)},t.prototype.onMouseMove=function(t){this.processDragging(t),this.mouseHandler.onMouseMove(t)},t.prototype.onMouseUp=function(t){this.contextToolboxHandler.onMouseUp(t),this.mouseHandler.onMouseUp(t),this.contextMenuHandler.onMouseUp(t),this.visualizersManager.onMouseUp(t),this.processDragging(t)},t.prototype.onMouseEnter=function(t){this.visualizersManager.onMouseEnter(t)},t.prototype.onMouseLeave=function(t){this.visualizersManager.onMouseLeave(t)},t.prototype.onDblClick=function(t){this.mouseHandler.onMouseDblClick(t),this.textInputHandler.onDblClick(t),this.control.apiController.notifyDblClick(t)},t.prototype.onClick=function(t){this.mouseHandler.onMouseClick(t),this.control.apiController.notifyClick(t)},t.prototype.onContextMenu=function(t){this.contextMenuHandler.onContextMenu(t)},t.prototype.onLongTouch=function(t){this.mouseHandler.onLongTouch(t),this.contextMenuHandler.onLongTouch(t)},t.prototype.onBlur=function(t){this.contextMenuHandler.onBlur(t),this.contextToolboxHandler.onBlur(t),this.visualizersManager.onBlur(t)},t.prototype.onFocus=function(t){this.contextMenuHandler.onFocus(t),this.contextToolboxHandler.onFocus(t),this.visualizersManager.onFocus(t)},t.prototype.onKeyDown=function(t){var e=t.getShortcutCode();this.onShortcut(e)&&(this.visualizersManager.updateConnectionPoints(),t.preventDefault=!0),this.contextMenuHandler.onKeyDown(t),this.contextToolboxHandler.onKeyDown(t)},t.prototype.onTextInputBlur=function(t){this.textInputHandler.onBlur(t),this.contextMenuHandler.onTextInputBlur(t)},t.prototype.onTextInputFocus=function(t){this.textInputHandler.onFocus(t),this.contextMenuHandler.onTextInputFocus(t)},t.prototype.onTextInputKeyDown=function(t){this.textInputHandler.onKeyDown(t)},t.prototype.onShortcut=function(t){return!!this.control.commandManager.processShortcut(t)||!!this.mouseHandler.onShortcut(t)||void 0},t.prototype.onPaste=function(t){!this.textInputHandler.isTextInputActive()&&this.control.commandManager.processPaste(t.clipboardData)&&(this.visualizersManager.updateConnectionPoints(),t.preventDefault=!0)},t.prototype.onMouseWheel=function(t){this.mouseHandler.onWheel(t)&&(t.preventDefault=!0)},t.prototype.isFocused=function(){return this.control.isFocused()},t.prototype.processDragging=function(t){var e=this.getDraggingEvent();e&&!this.draggingEvent?(this.draggingEvent=e,this.mouseHandler.onDragStart(this.draggingEvent),this.control.apiController.notifyToolboxDragStart(),this.control.captureFocus()):!e&&this.draggingEvent&&(delete this.draggingEvent,this.mouseHandler.onDragEnd(t),this.control.apiController.notifyToolboxDragEnd())},t.prototype.getDraggingEvent=function(){return this.toolboxes.filter((function(t){return t.draggingObject})).map((function(t){return t.draggingObject.evt}))[0]},t.prototype.onDocumentDragStart=function(t){this.control.beginUpdate(),this.control.captureFocus(),this.onMouseOperation.raise("notifyDragStart",t)},t.prototype.onDocumentDragEnd=function(t){this.onMouseOperation.raise("notifyDragEnd",t),this.control.endUpdate(),this.control.barManager.updateItemsState()},t.prototype.onDocumentDragScrollStart=function(){this.onMouseOperation.raise1((function(t){return t.notifyDragScrollStart()}))},t.prototype.onDocumentDragScrollEnd=function(){this.onMouseOperation.raise1((function(t){return t.notifyDragScrollEnd()}))},t.prototype.onDocumentClick=function(t){this.control.beginUpdate(),this.control.endUpdate(),this.control.barManager.updateItemsState()},t.prototype.raiseTextInputStart=function(t,e,n,i){this.onTextInputOperation.raise("notifyTextInputStart",t,e,n,i)},t.prototype.raiseTextInputEnd=function(t){this.onTextInputOperation.raise("notifyTextInputEnd",t)},t}();e.EventManager=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(124),o=n(0),r=n(13),a=n(7),s=n(84),l=n(4),u=n(284),c=n(131),d=n(285),h=function(){function t(t,e,n,i,o,r,a,s,l,u){this.history=t,this.selection=e,this.model=n,this.eventManager=i,this.readOnly=o,this.view=r,this.visualizerManager=a,this.contextToolboxManager=s,this.shapeDescriptionManager=l,this.settings=u,this.initialize(n)}return t.prototype.initialize=function(t){this.model=t,this.initializeDefaultState()},t.prototype.initializeDefaultState=function(){this.defaultState=this.readOnly?l.Browser.TouchUI?new u.MouseHandlerDefaultReadOnlyTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new c.MouseHandlerDefaultReadOnlyState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):l.Browser.TouchUI?new d.MouseHandlerDefaultTouchState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings):new i.MouseHandlerDefaultState(this,this.history,this.selection,this.model,this.view,this.visualizerManager,this.shapeDescriptionManager,this.settings),this.switchToDefaultState()},t.prototype.onMouseDown=function(t){this.mouseDownEvent=t,this.state.onMouseDown(t)},t.prototype.onMouseMove=function(t){this.state.onMouseMove(t)},t.prototype.onMouseUp=function(t){this.state.onMouseUp(t)},t.prototype.onMouseDblClick=function(t){this.state.onMouseDblClick(t)},t.prototype.onMouseClick=function(t){this.state.onMouseClick(t)},t.prototype.onLongTouch=function(t){if(t.touches&&!(t.touches.length>1)){var e=t.source.key;void 0===e?this.selection.clear():this.selection.hasKey(e)?this.selection.remove(e):this.selection.add(e)}},t.prototype.onShortcut=function(t){return this.state.onShortcut(t)},t.prototype.onWheel=function(t){return this.state.onMouseWheel(t)},t.prototype.onDragStart=function(t){this.state.onDragStart(t)},t.prototype.onDragEnd=function(t){this.state.onDragEnd(t)},t.prototype.showContextToolbox=function(t,e,n,i){this.contextToolboxManager.showContextToolbox(t,e,n,i)},t.prototype.hideContextToolbox=function(){this.contextToolboxManager.hideContextToolbox()},t.prototype.getSnappedPos=function(t,e,n){return!this.settings.snapToGrid||t.modifiers&r.ModifierKey.Ctrl?e:a.ModelUtils.getSnappedPos(this.model,this.settings.gridSize,e,n)},t.prototype.getSnappedPoint=function(t,e,n){var i=this.getSnappedPos(t,e.x,!0),r=this.getSnappedPos(t,e.y,!1);return void 0===n||Math.pow(e.x-i,2)+Math.pow(e.y-r,2)<Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2)?new o.Point(i,r):n},t.prototype.tryUpdateModelSize=function(t){a.ModelUtils.tryUpdateModelSize(this.history,this.model,t)},t.prototype.raiseDragStart=function(t){this.eventManager.onDocumentDragStart(t)},t.prototype.raiseDragEnd=function(t){this.eventManager.onDocumentDragEnd(t)},t.prototype.raiseDragScrollStart=function(){this.eventManager.onDocumentDragScrollStart()},t.prototype.raiseDragScrollEnd=function(){this.eventManager.onDocumentDragScrollEnd()},t.prototype.raiseClick=function(t){this.eventManager.onDocumentClick(t)},t.prototype.switchToDefaultState=function(){this.switchState(this.defaultState)},t.prototype.switchToMoveClonedShapeState=function(t){this.switchState(new s.MouseHandlerMoveClonedDiagramItemState(this,this.history,this.model,this.selection,this.visualizerManager,t))},t.prototype.switchState=function(t){this.state&&this.state.finish(),this.state=t,this.state.start()},t.prototype.notifyReadOnlyChanged=function(t){this.readOnly=t,this.initializeDefaultState()},t}();e.MouseHandler=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(125),r=n(6),a=n(7),s=n(0),l=n(25),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.onMouseDown=function(e){this.connector=this.model.findConnector(e.source.key),this.pointIndex=parseInt(e.source.value),0===this.pointIndex?this.pointPosition=r.ConnectorPosition.Begin:this.pointIndex===this.connector.points.length-1&&(this.pointPosition=r.ConnectorPosition.End),t.prototype.onMouseDown.call(this,e)},e.prototype.onApplyChanges=function(e){this.connector.properties.lineOption===l.ConnectorLineOption.Orthogonal&&0!==this.pointIndex&&this.pointIndex!==this.connector.points.length-1||t.prototype.onApplyChanges.call(this,e)},e.prototype.onFinishWithChanges=function(){t.prototype.onFinishWithChanges.call(this),a.ModelUtils.removeUnnecessaryConnectorPoints(this.history,this.connector)},e.prototype.getSnappedPoint=function(t,e){var n=this.connector.points,i=this.pointIndex;if(0<i&&i<n.length-1){var o=(n[i+1].y-n[i-1].y)/(n[i+1].x-n[i-1].x),r=e.x,a=n[i+1].y-(n[i+1].x-r)*o;return this.handler.getSnappedPoint(t,e,new s.Point(r,a))}return this.handler.getSnappedPoint(t,e)},e}(o.MouseHandlerMoveConnectorPointStateBase);e.MouseHandlerMoveConnectorPointState=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(10),a=n(13),s=n(26),l=n(19),u=n(7),c=n(9),d=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n)||this;return a.model=i,a.selection=o,a.visualizerManager=r,a.startScrollLeft=0,a.startScrollTop=0,a.rotation=0,a}return i(e,t),e.prototype.start=function(){t.prototype.start.call(this)},e.prototype.finish=function(){this.visualizerManager.resetResizeInfo(),this.visualizerManager.resetExtensionLines(),t.prototype.finish.call(this)},e.prototype.onMouseDown=function(e){var n=parseInt(e.source.value);this.resizeEventSource=n,this.startPoint=e.modelPoint,this.lockH=n==r.ResizeEventSource.ResizeBox_S||n==r.ResizeEventSource.ResizeBox_N,this.lockV=n==r.ResizeEventSource.ResizeBox_E||n==r.ResizeEventSource.ResizeBox_W,this.sideH=n==r.ResizeEventSource.ResizeBox_E||n==r.ResizeEventSource.ResizeBox_NE||n==r.ResizeEventSource.ResizeBox_SE,this.sideV=n==r.ResizeEventSource.ResizeBox_SE||n==r.ResizeEventSource.ResizeBox_S||n==r.ResizeEventSource.ResizeBox_SW,this.shapes=this.selection.getSelectedShapes(),0!==this.shapes.length?(this.connectors=this.selection.getSelectedConnectors(),this.startRectangle=l.DiagramModel.getRectangle(this.shapes),this.startShapeSizes=this.shapes.map((function(t){return t.size.clone()})),this.startShapePositions=this.shapes.map((function(t){return t.position.clone()})),this.startConnectorPoints=this.connectors.map((function(t){return t.points.map((function(t){return t.clone()}))})),this.lockAspectRatio=!!(e.modifiers&a.ModifierKey.Shift),t.prototype.onMouseDown.call(this,e)):this.handler.switchToDefaultState()},e.prototype.onMouseMove=function(e){t.prototype.onMouseMove.call(this,e);var n=this.selection.getSelectedShapes();this.visualizerManager.setExtensionLines(n)},e.prototype.onApplyChanges=function(t){var e=this,n=l.DiagramModel.getRectangle(this.shapes),i=1===this.shapes.length?this.shapes[0].minWidth:c.ShapeMinDimension,r=1===this.shapes.length?this.shapes[0].minWidth:c.ShapeMinDimension,a=1===this.shapes.length?this.shapes[0].maxWidth:void 0,s=1===this.shapes.length?this.shapes[0].maxWidth:void 0,d=this.getSize(t,n.position,this.startRectangle.size,i,r,a,s),h=this.getPosition(t,d,this.startRectangle.size,this.startRectangle.position),f=d.width/this.startRectangle.width,p=d.height/this.startRectangle.height;this.shapes.forEach((function(t,n){var i=e.startShapeSizes[n].width*(t.allowResizeHorizontally?f:1);i=e.getNormalizedSize(i,t.minWidth,t.maxWidth);var r=e.startShapeSizes[n].height*(t.allowResizeVertically?p:1);r=e.getNormalizedSize(r,t.minHeight,t.maxHeight);var a=t.allowResizeHorizontally?h.x+(e.startShapePositions[n].x-e.startRectangle.left)*f:e.startShapePositions[n].x,s=t.allowResizeVertically?h.y+(e.startShapePositions[n].y-e.startRectangle.top)*p:e.startShapePositions[n].y;u.ModelUtils.setShapeSize(e.history,e.model,t,new o.Point(a,s),new o.Size(i,r))})),this.connectors.forEach((function(t,n){for(var i=t.beginItem?1:0,r=t.endItem?t.points.length-2:t.points.length-1,a=i;a<=r;a++){var s=new o.Point(h.x+(e.startConnectorPoints[n][a].x-e.startRectangle.left)*f,h.y+(e.startConnectorPoints[n][a].y-e.startRectangle.top)*p);u.ModelUtils.setConnectorPoint(e.history,t,a,s)}})),this.selection.getSelectedShapes(!1,!0).forEach((function(t){u.ModelUtils.updateShapeAttachedConnectors(e.history,e.model,t)})),this.tryUpdateModelSize(),this.visualizerManager.setResizeInfo(this.shapes)},e.prototype.tryUpdateModelSize=function(){var t=this;this.handler.tryUpdateModelSize((function(e,n){t.startShapePositions.forEach((function(t){t.x+=e,t.y+=n})),t.startConnectorPoints.forEach((function(t){t.forEach((function(t){t.x+=e,t.y+=n}))})),t.startRectangle.position.x+=e,t.startRectangle.position.y+=n,t.startPoint.x+=e,t.startPoint.y+=n}))},e.prototype.getDraggingElementKeys=function(){return this.shapes.map((function(t){return t.key}))},e.prototype.getNormalizedSize=function(t,e,n){return void 0!==e&&(t=Math.max(t,e)),void 0!==n&&(t=Math.min(t,n)),t},e.prototype.getSize=function(t,e,n,i,r,a,s){var l,u,c=t.modelPoint.x-(this.startScrollLeft-t.scrollX)-this.startPoint.x,d=t.modelPoint.y-(this.startScrollTop-t.scrollY)-this.startPoint.y,h=c*Math.cos(this.rotation)- -d*Math.sin(this.rotation),f=-(c*Math.sin(this.rotation)+-d*Math.cos(this.rotation));return f=!this.sideV&&f>0?Math.min(n.height+1,f):f,h=!this.sideH&&h>0?Math.min(n.width+1,h):h,this.lockH||this.lockV||!this.lockAspectRatio?(h=this.lockH?0:h,f=this.lockV?0:f,l=this.getNormalizedSize(this.sideH?n.width+h:n.width-h,i,a),u=this.getNormalizedSize(this.sideV?n.height+f:n.height-f,r,s)):Math.abs(h)>Math.abs(f)?(l=this.getNormalizedSize(this.sideH?n.width+h:n.width-h,i,a),u=n.height*(l/n.width)):(u=this.getNormalizedSize(this.sideV?n.height+f:n.height-f,r,s),l=n.width*(u/n.height)),this.lockH||(l=this.handler.getSnappedPos(t,e.x+l,!0)-e.x),this.lockV||(u=this.handler.getSnappedPos(t,e.y+u,!1)-e.y),new o.Size(l,u)},e.prototype.getPosition=function(t,e,n,i){var a=i.x,s=i.y;if(this.resizeEventSource===r.ResizeEventSource.ResizeBox_N||this.resizeEventSource===r.ResizeEventSource.ResizeBox_NE||this.resizeEventSource===r.ResizeEventSource.ResizeBox_NW){s+=n.height-e.height;var l=this.handler.getSnappedPos(t,s,!1);e.height+=s-l,s=l}if(this.resizeEventSource===r.ResizeEventSource.ResizeBox_W||this.resizeEventSource===r.ResizeEventSource.ResizeBox_NW||this.resizeEventSource===r.ResizeEventSource.ResizeBox_SW){a+=n.width-e.width;var u=this.handler.getSnappedPos(t,a,!0);e.width+=a-u,a=u}return new o.Point(a,s)},e}(s.MouseHandlerDraggingState);e.MouseHandlerResizeShapeState=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(26),r=n(126),a=n(47),s=n(7),l=function(t){function e(e,n,i){var o=t.call(this,e,n)||this;return o.model=i,o}return i(e,t),e.prototype.onMouseDown=function(e){this.startPoint=e.modelPoint,this.connectorKey=e.source.key,this.pointIndex=parseInt(e.source.value)+1,t.prototype.onMouseDown.call(this,e)},e.prototype.onApplyChanges=function(t){var e=this.getSnappedPoint(t,t.modelPoint);this.pointCreated?this.history.addAndRedo(new a.MoveConnectorPointHistoryItem(this.connectorKey,this.pointIndex,e)):(this.history.addAndRedo(new r.AddConnectorPointHistoryItem(this.connectorKey,this.pointIndex,e)),this.pointCreated=!0),this.handler.tryUpdateModelSize()},e.prototype.onFinishWithChanges=function(){s.ModelUtils.removeUnnecessaryConnectorPoints(this.history,this.model.findConnector(this.connectorKey))},e.prototype.getDraggingElementKeys=function(){return[this.connectorKey]},e}(o.MouseHandlerDraggingState);e.MouseHandlerMoveConnectorSideState=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(26),r=n(92),a=function(t){function e(e,n,i){var o=t.call(this,e,n)||this;return o.model=i,o.startScrollLeft=0,o.startScrollTop=0,o}return i(e,t),e.prototype.onMouseDown=function(e){this.startPoint=e.modelPoint,this.shape=this.model.findShape(e.source.key),this.parameterPointKey=e.source.value,this.startParameters=this.shape.parameters.clone(),t.prototype.onMouseDown.call(this,e)},e.prototype.onApplyChanges=function(t){var e=this.handler.getSnappedPos(t,t.modelPoint.x-this.startPoint.x,!0),n=this.handler.getSnappedPos(t,t.modelPoint.y-this.startPoint.y,!1),i=this.startParameters.clone();this.shape.description.modifyParameters(this.shape,i,e,n),this.history.addAndRedo(new r.ChangeShapeParametersHistoryItem(this.shape.key,i))},e.prototype.getDraggingElementKeys=function(){return[this.shape.key]},e}(o.MouseHandlerDraggingState);e.MouseHandlerDragParameterPointState=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=n(36),a=n(49),s=n(5),l=n(125),u=n(48),c=n(42),d=n(7),h=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this,e,n,i,o)||this;return l.shapeDescriptionManager=r,l.selection=a,l.connectionPointIndex=s,l}return i(e,t),e.prototype.onMouseDown=function(e){void 0===this.connectionPointIndex&&(this.connectionPointIndex=parseInt(e.source.value)),this.connectedItem=this.model.findItem(e.source.key),this.pointIndex=1,this.pointPosition=o.ConnectorPosition.End,t.prototype.onMouseDown.call(this,e)},e.prototype.onMouseUp=function(e){this.connector&&!this.connector.endItem&&this.createNewShapeAtConnectorEnd(e),t.prototype.onMouseUp.call(this,e)},e.prototype.onApplyChanges=function(e){var n=this.getSnappedPoint(e,e.modelPoint);if(this.connector)t.prototype.onApplyChanges.call(this,e);else{var i=new a.AddConnectorHistoryItem([this.connectedItem.getConnectionPointPosition(this.connectionPointIndex,n),n]);this.history.addAndRedo(i),this.connector=this.model.findConnector(i.connectorKey),this.history.addAndRedo(new r.AddConnectionHistoryItem(this.connector,this.connectedItem,this.connectionPointIndex,o.ConnectorPosition.Begin)),d.ModelUtils.updateNewConnectorProperties(this.history,this.selection,this.connector.key)}},e.prototype.onFinishWithChanges=function(){t.prototype.onFinishWithChanges.call(this),this.history.addAndRedo(new u.SetSelectionHistoryItem(this.selection,[this.connector.key]))},e.prototype.createNewShapeAtConnectorEnd=function(t){var e=this,n=this.connector&&this.connector.beginItem;if(n){var i=this.getNewShapeSide(this.connector),a=this.getSnappedPoint(t,t.modelPoint),s=this.shapeDescriptionManager.getCategoryByDescription(n.description);this.handler.showContextToolbox(a,i,s,(function(n){if(n){e.history.beginTransaction();var s=new c.AddShapeHistoryItem(e.shapeDescriptionManager.get(n),a);e.history.addAndRedo(s);var l=e.model.findShape(s.shapeKey),h=e.targetItem&&e.model.findContainer(e.targetItem.key);h&&d.ModelUtils.insertToContainer(e.history,e.model,l,h);var f=e.getNewShapePosition(l,i);d.ModelUtils.setShapePosition(e.history,e.model,l,e.getSnappedPoint(t,f)),d.ModelUtils.updateNewShapeProperties(e.history,e.selection,l.key),e.history.addAndRedo(new r.AddConnectionHistoryItem(e.connector,l,l.getConnectionPointIndexForSide(i),o.ConnectorPosition.End)),d.ModelUtils.updateShapeAttachedConnectors(e.history,e.model,l),d.ModelUtils.tryUpdateModelSize(e.history,e.model),e.history.addAndRedo(new u.SetSelectionHistoryItem(e.selection,[l.key])),e.history.endTransaction(),e.handler.hideContextToolbox()}}))}},e.prototype.getNewShapePosition=function(t,e){switch(e){case s.ConnectionPointSide.North:return t.position.offset(-t.size.width/2,0);case s.ConnectionPointSide.South:return t.position.offset(-t.size.width/2,-t.size.height);case s.ConnectionPointSide.East:return t.position.offset(-t.size.width,-t.size.height/2);case s.ConnectionPointSide.West:return t.position.offset(0,-t.size.height/2)}},e.prototype.getNewShapeSide=function(t){var n=t.getRenderPoints();return e.getNewShapeSideByConnectorPoints(n[n.length-1],n[n.length-2])},e.prototype.getSourceItem=function(){return this.connectedItem},e.getNewShapeSideByConnectorPoints=function(t,e){return t.x==e.x?t.y>e.y?s.ConnectionPointSide.North:s.ConnectionPointSide.South:t.x>e.x?t.y===e.y?s.ConnectionPointSide.West:t.y>e.y?Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?s.ConnectionPointSide.West:s.ConnectionPointSide.North:Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?s.ConnectionPointSide.West:s.ConnectionPointSide.South:t.y===e.y?s.ConnectionPointSide.East:t.y>e.y?Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?s.ConnectionPointSide.East:s.ConnectionPointSide.North:Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?s.ConnectionPointSide.East:s.ConnectionPointSide.South},e}(l.MouseHandlerMoveConnectorPointStateBase);e.MouseHandlerCreateConnectorState=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(0),r=n(6),a=n(26),s=n(126),l=n(47),u=n(7),c=n(5),d=function(t){function e(e,n,i){var o=t.call(this,e,n)||this;return o.model=i,o}return i(e,t),e.prototype.onMouseDown=function(e){this.startPoint=e.modelPoint,this.connector=this.model.findConnector(e.source.key);var n=e.source.value.split("_"),i=parseInt(n[0]),o=parseInt(n[1]),r=this.connector.getRenderPoints(!0);this.renderPoint1=r[i].clone(),this.renderPoint2=r[o].clone(),this.isVerticalOrientation=this.renderPoint1.x===this.renderPoint2.x,-1!==this.renderPoint1.pointIndex?(this.pointIndex1=this.renderPoint1.pointIndex,0===this.pointIndex1?(this.pointIndex1++,this.correctEdgePoint(this.renderPoint1,this.renderPoint2,this.connector.beginItem,this.connector.beginConnectionPointIndex)):this.point1=this.connector.points[this.pointIndex1]):this.pointIndex1=this.findPointIndex(r,i,!1)+1,-1!==this.renderPoint2.pointIndex?(this.pointIndex2=this.renderPoint2.pointIndex,this.pointIndex2===this.connector.points.length-1?this.correctEdgePoint(this.renderPoint2,this.renderPoint1,this.connector.endItem,this.connector.endConnectionPointIndex):this.point2=this.connector.points[this.pointIndex2]):this.pointIndex2=this.findPointIndex(r,o,!0),t.prototype.onMouseDown.call(this,e)},e.prototype.onApplyChanges=function(t){var e=this;if(!this.pointCreated){var n=void 0,i=void 0;void 0===this.point1&&(this.point1=new o.Point(this.renderPoint1.x,this.renderPoint1.y),this.history.addAndRedo(new s.AddConnectorPointHistoryItem(this.connector.key,this.pointIndex1,this.point1)),n=this.point1,this.pointIndex2++),void 0===this.point2&&(this.point2=new o.Point(this.renderPoint2.x,this.renderPoint2.y),this.history.addAndRedo(new s.AddConnectorPointHistoryItem(this.connector.key,this.pointIndex2,this.point2)),i=this.point2),u.ModelUtils.removeUnnecessaryConnectorPoints(this.history,this.connector,[n,i],(function(t){t<e.pointIndex1&&e.pointIndex1--,t<e.pointIndex2&&e.pointIndex2--})),this.pointCreated=!0}var r=this.getSnappedPoint(t,t.modelPoint);this.isVerticalOrientation?(this.point1.x=r.x,this.point2.x=r.x):(this.point1.y=r.y,this.point2.y=r.y),this.history.addAndRedo(new l.MoveConnectorPointHistoryItem(this.connector.key,this.pointIndex1,this.point1)),this.history.addAndRedo(new l.MoveConnectorPointHistoryItem(this.connector.key,this.pointIndex2,this.point2)),this.handler.tryUpdateModelSize()},e.prototype.onFinishWithChanges=function(){u.ModelUtils.removeUnnecessaryConnectorPoints(this.history,this.connector)},e.prototype.findPointIndex=function(t,e,n){for(var i;i=t[e];){if(-1!==i.pointIndex)return i.pointIndex;e+=n?1:-1}},e.prototype.correctEdgePoint=function(t,e,n,i){var o=0;if(n){var a=n.getConnectionPointSideByIndex(i),s=n.rectangle;switch(o=r.Connector.minOffset,a){case c.ConnectionPointSide.South:o+=s.bottom-t.y;break;case c.ConnectionPointSide.North:o+=t.y-s.top;break;case c.ConnectionPointSide.East:o+=s.right-t.x;break;case c.ConnectionPointSide.West:o+=t.x-s.left}}this.isVerticalOrientation?t.y>e.y?t.y-=Math.min(o,t.y-e.y):t.y+=Math.min(o,e.y-t.y):t.x>e.x?t.x-=Math.min(o,t.x-e.x):t.x+=Math.min(o,e.x-t.x)},e.prototype.getDraggingElementKeys=function(){return[this.connector.key]},e}(a.MouseHandlerDraggingState);e.MouseHandlerMoveConnectorOrthogonalSideState=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(0),a=n(42),s=n(48),l=n(26),u=n(91),c=n(7),d=n(31),h=function(t){function e(e,n,i,o,r,a){var s=t.call(this,e)||this;return s.history=n,s.model=i,s.selection=o,s.visualizerManager=r,s.shapeDescriptionManager=a,s.isModelEmpty=0===i.items.length,s}return i(e,t),e.prototype.cancelChanges=function(){this.tryRemoveTimer()},e.prototype.onDragStart=function(t){this.dragging=t},e.prototype.onDragEnd=function(t){this.cancelChanges(),this.handler.switchToDefaultState()},e.prototype.onMouseMove=function(t){var e=this;t.source.type>o.MouseEventElementType.Background?(this.tryRemoveTimer(),this.switchToDraggingState(t,!1)):t.source.type!==o.MouseEventElementType.Background||this.isModelEmpty?void 0!==this.nonPageAreaTimer&&this.tryRemoveTimer():(this.savedEvt=t,void 0===this.nonPageAreaTimer&&(this.nonPageAreaTimer=setTimeout((function(){return e.switchToDraggingState(e.savedEvt,!0)}),500)))},e.prototype.switchToDraggingState=function(t,e){this.handler.switchState(new f(this.handler,this.history,this.model,this.selection,this.visualizerManager,this.shapeDescriptionManager,e)),this.handler.state.onDragStart(this.dragging),this.handler.state.onMouseMove(t)},e.prototype.tryRemoveTimer=function(){void 0!==this.nonPageAreaTimer&&(clearTimeout(this.nonPageAreaTimer),delete this.nonPageAreaTimer)},e.prototype.finish=function(){this.tryRemoveTimer()},e}(d.MouseHandlerCancellableState);e.MouseHandlerBeforeToolboxDraggingState=h;var f=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this,e,n)||this;return l.model=i,l.selection=o,l.visualizerManager=r,l.shapeDescriptionManager=a,s||(l.updatePageSizeTimer=setTimeout((function(){l.handler.tryUpdateModelSize(),delete l.updatePageSizeTimer}),300)),l}return i(e,t),e.prototype.onMouseMove=function(e){t.prototype.onMouseMove.call(this,e);var n=this.model.findShape(this.shapeKey);if(n){this.visualizerManager.setExtensionLines([n]);var i=c.ModelUtils.findContainerByEventKey(this.model,this.selection,e.source.key);i&&c.ModelUtils.canInsertToContainer(this.model,n,i)?this.visualizerManager.setContainerTarget(i,e.source.type):this.visualizerManager.resetContainerTarget()}},e.prototype.getDraggingElementKeys=function(){return void 0===this.shapeKey?[]:[this.shapeKey]},e.prototype.onApplyChanges=function(t){var e=this;if(t.source.type===o.MouseEventElementType.Undefined){if(this.dragging.onCaptured(!1),void 0!==this.shapeKey&&!this.deleteHistoryItem){var n=this.model.findShape(this.shapeKey);c.ModelUtils.detachConnectors(this.history,n),c.ModelUtils.removeFromContainer(this.history,this.model,n),this.deleteHistoryItem=new u.DeleteShapeHistoryItem(this.shapeKey),this.history.addAndRedo(this.deleteHistoryItem)}}else{this.dragging.onCaptured(!0),void 0===this.shapeKey&&(this.startPoint=t.modelPoint,this.shapeKey=this.insertToolboxItem(t)),this.deleteHistoryItem&&(this.history.undoTransactionTo(this.deleteHistoryItem),delete this.deleteHistoryItem);var i=this.getPosition(t,this.startShapePosition);n=this.model.findShape(this.shapeKey),c.ModelUtils.setShapePosition(this.history,this.model,n,i),c.ModelUtils.updateMovingShapeConnections(this.history,n,this.connectorsWithoutBeginItemInfo,this.connectorsWithoutEndItemInfo,(function(){e.visualizerManager.resetConnectionTarget(),e.visualizerManager.resetConnectionPoints()}),(function(t,n){e.visualizerManager.setConnectionTarget(t,o.MouseEventElementType.Shape),e.visualizerManager.setConnectionPoints(t,o.MouseEventElementType.Shape,n,!0)})),c.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,n);var r=c.ModelUtils.findContainerByEventKey(this.model,this.selection,t.source.key);n&&r&&c.ModelUtils.canInsertToContainer(this.model,n,r)?c.ModelUtils.insertToContainer(this.history,this.model,n,r):c.ModelUtils.removeFromContainer(this.history,this.model,n),void 0===this.updatePageSizeTimer&&this.handler.tryUpdateModelSize((function(t,n){e.connectorsWithoutBeginItemInfo.forEach((function(e){e.point.x+=t,e.point.y+=n})),e.connectorsWithoutEndItemInfo.forEach((function(e){e.point.x+=t,e.point.y+=n}))}))}},e.prototype.onFinishWithChanges=function(){this.deleteHistoryItem||this.history.addAndRedo(new s.SetSelectionHistoryItem(this.selection,[this.shapeKey]))},e.prototype.onDragStart=function(t){this.dragging=t,this.connectorsWithoutBeginItemInfo=c.ModelUtils.getConnectorsWithoutBeginItemInfo(this.model),this.connectorsWithoutEndItemInfo=c.ModelUtils.getConnectorsWithoutEndItemInfo(this.model)},e.prototype.onDragEnd=function(t){void 0!==this.shapeKey&&t.source.type===o.MouseEventElementType.Undefined&&this.cancelChanges(),this.handler.switchToDefaultState()},e.prototype.finish=function(){this.visualizerManager.resetExtensionLines(),this.visualizerManager.resetContainerTarget(),this.visualizerManager.resetConnectionTarget(),this.visualizerManager.resetConnectionPoints(),this.dragging.onFinishDragging(),t.prototype.finish.call(this)},e.prototype.insertToolboxItem=function(t){var e=this.shapeDescriptionManager.get(this.dragging.data);this.startShapePosition=this.getSnappedPoint(t,new r.Point(t.modelPoint.x-e.defaultSize.width/2,t.modelPoint.y-e.defaultSize.height/2));var n=new a.AddShapeHistoryItem(e,this.startShapePosition);return this.history.addAndRedo(n),c.ModelUtils.updateNewShapeProperties(this.history,this.selection,n.shapeKey),n.shapeKey},e.prototype.getPosition=function(t,e){return this.getSnappedPoint(t,new r.Point(e.x+t.modelPoint.x-this.startPoint.x,e.y+t.modelPoint.y-this.startPoint.y))},e}(l.MouseHandlerDraggingState);e.MouseHandlerToolboxDraggingState=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(26),r=n(278),a=n(52),s=function(t){function e(e,n,i){var o=t.call(this,e,n)||this;return o.model=i,o}return i(e,t),e.prototype.onMouseDown=function(e){this.connector=this.model.findConnector(e.source.key),this.position=parseFloat(e.source.value),this.text=this.connector.getText(this.position),this.savedText="",t.prototype.onMouseDown.call(this,e)},e.prototype.onApplyChanges=function(t){var e=this.connector.getTextPositionByPoint(t.modelPoint);if(e!=this.position){var n=this.connector.getText(e);""!==n&&n!==this.text&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,e,"")),this.savedText=n),this.history.addAndRedo(new r.ChangeConnectorTextPositionHistoryItem(this.connector,this.position,e)),""!==this.savedText&&this.savedText!==n&&(this.history.addAndRedo(new a.ChangeConnectorTextHistoryItem(this.connector,this.position,this.savedText)),this.savedText=""),this.position=e}},e.prototype.getDraggingElementKeys=function(){return[this.connector.key]},e}(o.MouseHandlerDraggingState);e.MouseHandlerMoveConnectorTextState=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i){var o=t.call(this)||this;return o.connectorKey=e.key,o.position=n,o.newPosition=i,o}return i(e,t),e.prototype.redo=function(t){var e=t.model.findConnector(this.connectorKey);t.changeConnectorTextPosition(e,this.position,this.newPosition)},e.prototype.undo=function(t){var e=t.model.findConnector(this.connectorKey);t.changeConnectorTextPosition(e,this.newPosition,this.position)},e}(n(3).HistoryItem);e.ChangeConnectorTextPositionHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),r=n(280),a=n(7),s=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.history=n,r.model=i,r.selection=o,r}return i(e,t),e.prototype.onMouseUp=function(t){var e=this.model.findShape(t.source.key);e&&!e.isLocked&&(this.history.beginTransaction(),this.history.addAndRedo(new r.ToggleShapeExpandedHistoryItem(e)),a.ModelUtils.updateShapeAttachedConnectors(this.history,this.model,e),a.ModelUtils.updateContainerConnectorsAttachedPoints(this.history,this.model,e),a.ModelUtils.updateSelection(this.history,this.selection),this.handler.tryUpdateModelSize(),this.history.endTransaction(),this.handler.raiseClick([e.key])),this.handler.switchToDefaultState()},e}(o.MouseHandlerStateBase);e.MouseHandlerToggleShapeExpandedState=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.shapeKey=e.key,n.expanded=e.expanded,n}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);t.changeShapeExpanded(e,!this.expanded)},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.changeShapeExpanded(e,this.expanded)},e}(n(3).HistoryItem);e.ToggleShapeExpandedHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(0),a=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.selection=n,o.visualizerManager=i,o}return i(e,t),e.prototype.finish=function(){this.handler.raiseDragEnd([]),this.visualizerManager.resetSelectionRectangle(),t.prototype.finish.call(this)},e.prototype.cancelChanges=function(){},e.prototype.onMouseDown=function(t){this.startPoint=t.modelPoint,this.handler.raiseDragStart([])},e.prototype.onMouseMove=function(t){t.button!==o.MouseButton.Left?this.handler.switchToDefaultState():(this.rectangle=r.Rectangle.createByPoints(this.startPoint,t.modelPoint),this.visualizerManager.setSelectionRectangle(this.rectangle))},e.prototype.onMouseUp=function(t){void 0!==this.rectangle?this.selection.selectRect(this.rectangle):this.selection.set([]),this.rectangle=void 0,this.handler.switchToDefaultState()},e}(n(31).MouseHandlerCancellableState);e.MouseHandlerSelectionState=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(31),r=n(10),a=n(13),s=n(4),l=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.settings=n,o.view=i,o}return i(e,t),e.prototype.onMouseWheel=function(t){return this.trySwitchToDefault(t)?this.handler.state.onMouseWheel(t):(this.settings.zoomLevel=this.view.getNextStepZoom(t.deltaY<0),t.source.type===r.MouseEventElementType.Background?this.view.resetScroll():(this.view.scrollTo(t.modelPoint,t.offsetPoint),this.view.normalize()),t.preventDefault=!0,!0)},e.prototype.onMouseUp=function(t){this.handler.switchToDefaultState(),this.handler.state.onMouseUp(t)},e.prototype.onMouseDown=function(t){this.handler.switchToDefaultState(),this.handler.state.onMouseDown(t)},e.prototype.onMouseMove=function(t){this.trySwitchToDefault(t)&&this.handler.state.onMouseMove(t)},e.prototype.trySwitchToDefault=function(t){if(!(t.modifiers&a.ModifierKey.Ctrl))return this.handler.switchToDefaultState(),!0},e.prototype.start=function(){t.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=s.AutoZoomMode.Disabled},e}(o.MouseHandlerStateBase);e.MouseHandlerZoomOnWheelState=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i,o,r)||this;return a.model=i,a.selection=o,a.visualizerManager=r,a}return i(e,t),e.prototype.validateDraggingShapes=function(){return!0},e.prototype.validateDraggingConnectors=function(){var t=this;if(!this.draggingConnectors.length)return!1;if(!this.draggingShapes.length)return!this.draggingConnectors.find((function(e){return!t.isFreeConnector(e.connector)}));var e=this.draggingConnectors[this.draggingConnectorsIndexByKey[this.handler.mouseDownEvent.source.key]];return this.isFreeConnector(e.connector)||e.hasAllSelectedShapes},e.prototype.isFreeConnector=function(t){return!t.beginItem&&!t.endItem},e}(n(129).MouseHandlerMoveShapeState);e.MouseHandlerMoveConnectorState=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.canDragObjectOnMouseDown=function(t){return!1},e.prototype.canExpandContainerOnMouseDown=function(t){return!1},e.prototype.canClearSelectionOnMouseDown=function(){return!0},e.prototype.processOnMouseMoveAfterLimit=function(t){this.startScrolling(t)},e.prototype.canSelectOnMouseUp=function(t){return!this.inSelection(t)},e.prototype.canClearSelectionOnMouseUp=function(){return!1},e}(n(131).MouseHandlerDefaultReadOnlyState);e.MouseHandlerDefaultReadOnlyTouchState=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(124),r=n(286),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.updateConnectionsOnMouseMove=function(t){},e.prototype.canDragObjectOnMouseDown=function(t){return this.inSelection(t)},e.prototype.canExpandContainerOnMouseDown=function(t){return!0},e.prototype.canClearSelectionOnMouseDown=function(){return!0},e.prototype.processOnMouseMoveAfterLimit=function(t){t.touches.length>1?this.startZooming(t):this.startScrolling(t)},e.prototype.startZooming=function(t){this.handler.switchState(new r.MouseHandlerZoomOnPinchState(this.handler,this.selection,this.settings,this.view))},e.prototype.canSelectOnMouseUp=function(t){return!this.inSelection(t)},e.prototype.canClearSelectionOnMouseUp=function(){return!1},e}(o.MouseHandlerDefaultState);e.MouseHandlerDefaultTouchState=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(35),r=n(0),a=n(128),s=function(t){function e(e,n,i,o){var r=t.call(this,e,o,n)||this;return r.selection=n,r.settings=i,r.view=o,r}return i(e,t),e.prototype.onMouseDown=function(e){t.prototype.onMouseDown.call(this,e),e.touches.length>1&&(this.startDistance=this.getTouchDistance(e),this.startZoomLevel=this.settings.zoomLevel,this.prevDistance=this.startDistance)},e.prototype.onMouseMove=function(e){if(e.touches.length>1){var n=this.getTouchDistance(e);Math.abs(this.prevDistance-n)>1&&(this.settings.zoomLevel=this.startZoomLevel*(n/this.startDistance),this.view.scrollTo(this.getMiddleLayoutPoint(e),this.getMiddleAbsPoint(e)),this.view.normalize(),this.prevDistance=n)}t.prototype.onMouseMove.call(this,e)},e.prototype.onMouseUp=function(t){0===t.touches.length&&setTimeout(function(){this.handler.switchToDefaultState()}.bind(this),1)},e.prototype.start=function(){t.prototype.start.call(this),this.settings.zoomLevel=this.view.getZoom(),this.settings.autoZoom=o.AutoZoomMode.Disabled},e.prototype.getTouchDistance=function(t){var e=new r.Point(t.touches[0].offsetPoint.x,t.touches[0].offsetPoint.y),n=new r.Point(t.touches[1].offsetPoint.x,t.touches[1].offsetPoint.y);return r.GeometryUtils.getDistance(e,n)},e.prototype.getPointByEvent=function(t){return this.getMiddleAbsPoint(t)},e.prototype.getMiddleAbsPoint=function(t){return t.touches.length>1?e.getMiddlePointByEvent(t,(function(t){return t.offsetPoint})):t.offsetPoint},e.prototype.getMiddleLayoutPoint=function(t){return t.touches.length>1?e.getMiddlePointByEvent(t,(function(t){return t.modelPoint})):t.modelPoint},e.getMiddlePointByEvent=function(t,e){if(t.touches.length>1)return new r.Point((e(t.touches[0]).x+e(t.touches[1]).x)/2,(e(t.touches[0]).y+e(t.touches[1]).y)/2)},e}(a.MouseHandlerScrollingState);e.MouseHandlerZoomOnPinchState=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(288),o=n(10),r=n(13),a=n(11),s=n(6),l=n(52),u=function(){function t(t){this.control=t}return t.prototype.startTextInput=function(t,e){if(!t.isLocked&&t.enableText&&t.allowEditText&&!this.control.settings.readOnly){if(this.control.beginUpdate(),this.textInputItem=t,this.textInputItem instanceof a.Shape){var n=this.textInputItem.textEditRectangle;this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.text,n.position,n.size)}this.textInputItem instanceof s.Connector&&(this.textInputPosition=e,this.control.eventManager.raiseTextInputStart(this.textInputItem,this.textInputItem.getText(this.textInputPosition),this.textInputItem.getTextPoint(this.textInputPosition)))}},t.prototype.endTextInput=function(){var t=this.textInputItem;delete this.textInputItem,this.control.eventManager.raiseTextInputEnd(t),this.control.endUpdate(),this.control.barManager.updateItemsState()},t.prototype.applyTextInput=function(t){var e=this.textInputItem,n=this.textInputPosition;this.endTextInput(),e instanceof a.Shape?e.text!==t&&this.control.history.addAndRedo(new i.ChangeShapeTextHistoryItem(e,t)):e instanceof s.Connector&&e.getText(n)!==t&&this.control.history.addAndRedo(new l.ChangeConnectorTextHistoryItem(e,n,t))},t.prototype.cancelTextInput=function(){this.endTextInput()},t.prototype.isTextInputActive=function(){return void 0!==this.textInputItem},t.prototype.processDblClick=function(t){if(t.source.type===o.MouseEventElementType.Shape){var e=this.control.model.findShape(t.source.key);this.startTextInput(e)}else if(t.source.type===o.MouseEventElementType.Connector){var n=(i=this.control.model.findConnector(t.source.key)).getTextPositionByPoint(t.modelPoint);this.startTextInput(i,n)}else if(t.source.type===o.MouseEventElementType.ConnectorText){var i=this.control.model.findConnector(t.source.key);n=parseFloat(t.source.value),this.startTextInput(i,n)}},t.prototype.onDblClick=function(t){this.processDblClick(t)},t.prototype.onKeyDown=function(t){this.isTextInputActive()&&(13===t.keyCode&&t.modifiers&r.ModifierKey.Ctrl&&(t.preventDefault=!0,this.applyTextInput(t.inputText)),27===t.keyCode&&this.cancelTextInput())},t.prototype.onBlur=function(t){this.isTextInputActive()&&this.applyTextInput(t.inputText)},t.prototype.onFocus=function(t){},t}();e.TextInputHandler=u},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n){var i=t.call(this)||this;return i.shapeKey=e.key,i.text=n,i}return i(e,t),e.prototype.redo=function(t){var e=t.model.findShape(this.shapeKey);this.oldText=e.text,t.changeShapeText(e,this.text)},e.prototype.undo=function(t){var e=t.model.findShape(this.shapeKey);t.changeShapeText(e,this.oldText)},e}(n(3).HistoryItem);e.ChangeShapeTextHistoryItem=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(10),r=n(19),a=n(132),s=function(t){function e(e){var n=t.call(this)||this;return n.selection=e,n.contextToolboxVisible=!1,n.selection.onChanged.add(n),n}return i(e,t),e.prototype.onMouseDown=function(t){void 0===t.source.key&&this.hideContextMenu()},e.prototype.onMouseUp=function(t){},e.prototype.onFocus=function(t){var e=this;setTimeout((function(){e.showContextMenuAtSelection()}),1)},e.prototype.onBlur=function(t){var e=this;setTimeout((function(){e.hideContextMenu()}),1)},e.prototype.onTextInputFocus=function(t){var e=this;setTimeout((function(){e.hideContextMenu()}),1)},e.prototype.onTextInputBlur=function(t){var e=this;setTimeout((function(){e.showContextMenuAtSelection()}),1)},e.prototype.onLongTouch=function(t){t.source.type===o.MouseEventElementType.Document&&this.showContextMenuAtEmptySelection(t.modelPoint)},e.prototype.getSelectedItems=function(){return this.selection.getSelectedItems(!0)},e.prototype.showContextMenuAtSelection=function(){if(!this.contextToolboxVisible){var t=this.getSelectedItems();0!==t.length&&this.showContextMenu(void 0,r.DiagramModel.getRectangle(t).position)}},e.prototype.showContextMenuAtEmptySelection=function(t){this.contextToolboxVisible||0===this.getSelectedItems().length&&this.showContextMenu(void 0,t)},e.prototype.notifyDragStart=function(t){this.hideContextMenu()},e.prototype.notifyDragEnd=function(t){this.showContextMenuAtSelection()},e.prototype.notifySelectionChanged=function(t){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},e.prototype.raiseSelectionChanged=function(){0!==this.getSelectedItems().length?this.showContextMenuAtSelection():this.hideContextMenu()},e.prototype.onUpdateUnlocked=function(t){1&t&&this.raiseSelectionChanged()},e.prototype.notifyShowContextToolbox=function(t,e,n,i){this.contextToolboxVisible=!0,this.hideContextMenu()},e.prototype.notifyHideContextToolbox=function(){this.contextToolboxVisible=!1,this.showContextMenuAtSelection()},e}(a.ContextMenuHandler);e.ContextMenuTouchHandler=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifyConnectionTargetShow(t.key,t.targetRect,t.targetStrokeWidth)}))},e.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifyConnectionTargetHide()}))},e}(n(134).TargetVisualizerBase);e.ConnectionTargetVisualizer=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifyContainerTargetShow(t.key,t.targetRect,t.targetStrokeWidth)}))},e.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifyContainerTargetHide()}))},e}(n(134).TargetVisualizerBase);e.ContainerTargetVisualizer=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.point=t,this.side=e};e.ConnectionPointInfo=i;var o=function(){function t(t){this.dispatcher=t}return t.prototype.getKey=function(){return this.key},t.prototype.setPoints=function(t,e,n,i){this.key===t&&this.pointIndex===n||(this.key=t,this.points=e,this.pointIndex=n,this.outsideRectangle=i,this.raiseShow())},t.prototype.setPointIndex=function(t){0<=t&&t<this.points.length&&this.pointIndex!==t&&(this.pointIndex=t,this.raiseShow())},t.prototype.update=function(){this.raiseShow()},t.prototype.reset=function(){"-1"!==this.key&&(this.key="-1",this.points=[],this.pointIndex=-1,this.outsideRectangle=void 0,this.raiseHide())},t.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifyConnectionPointsShow(t.key,t.points,t.pointIndex,t.outsideRectangle)}))},t.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifyConnectionPointsHide()}))},t}();e.ConnectionPointsVisualizer=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.dispatcher=t}return t.prototype.set=function(t,e){this.point=t,this.text=e,this.raiseShow()},t.prototype.reset=function(){void 0!==this.point&&(this.point=void 0,this.text=void 0,this.raiseHide())},t.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifyResizeInfoShow(t.point,t.text)}))},t.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifyResizeInfoHide()}))},t}();e.ResizeInfoVisualizer=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.dispatcher=t}return t.prototype.setRectangle=function(t){this.rect=t,this.raiseShow()},t.prototype.reset=function(){this.rect=void 0,this.raiseHide()},t.prototype.raiseShow=function(){var t=this;this.dispatcher.raise1((function(e){return e.notifySelectionRectShow(t.rect)}))},t.prototype.raiseHide=function(){this.dispatcher.raise1((function(t){return t.notifySelectionRectHide()}))},t}();e.SelectionRectVisualizer=i},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(133),r=n(10),a=function(t){function e(e,n,i,o,r){void 0===r&&(r=o.readOnly);var a=t.call(this,e,n,i,o,r)||this;return e.onChanged.add(a),a}return i(e,t),e.prototype.onBlur=function(t){var e=this;setTimeout((function(){e.hideConnections()}),1)},e.prototype.onFocus=function(t){var e=this;setTimeout((function(){e.showConnections()}),1)},e.prototype.hideConnections=function(){this.readOnly||this.resetConnectionPoints()},e.prototype.showConnections=function(){if(!this.readOnly&&this.needShowConnections()){var t=this.selection.getSelectedShapes();1===t.length&&this.setConnectionPoints(t[0],r.MouseEventElementType.ShapeConnectionPoint,-1,!t[0].allowResizeHorizontally&&!t[0].allowResizeVertically||t[0].isLocked)}},e.prototype.needShowConnections=function(){var t=this.selection.getSelectedItems(),e=this.selection.getSelectedShapes();return 1===t.length&&1===e.length},e.prototype.notifySelectionChanged=function(t){this.isUpdateLocked()?this.registerOccurredEvent(1):this.raiseSelectionChanged()},e.prototype.raiseSelectionChanged=function(){this.needShowConnections()?this.showConnections():this.hideConnections()},e.prototype.onUpdateUnlocked=function(t){1&t&&this.raiseSelectionChanged()},e.prototype.notifyDragStart=function(t){this.hideConnections()},e.prototype.notifyDragEnd=function(t){this.showConnections()},e}(o.VisualizerManager);e.VisualizerTouchManager=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(10),r=n(13),a=function(){function t(){this.contextToolboxVisible=!1,this.onVisibilityChanged=new i.EventDispatcher}return t.prototype.onMouseDown=function(t){t.source.type!==o.MouseEventElementType.Undefined&&this.hideContextToolbox()},t.prototype.onMouseUp=function(t){t.source.type===o.MouseEventElementType.Undefined&&i.Browser.TouchUI||this.hideContextToolbox()},t.prototype.onFocus=function(t){},t.prototype.onBlur=function(t){},t.prototype.onKeyDown=function(t){t.keyCode===r.KeyCode.Esc&&this.hideContextToolbox()},t.prototype.showContextToolbox=function(t,e,n,i){this.onVisibilityChanged.raise1((function(o){return o.notifyShowContextToolbox(t,e,n,i)})),this.contextToolboxVisible=!0},t.prototype.hideContextToolbox=function(){this.contextToolboxVisible&&(this.onVisibilityChanged.raise1((function(t){return t.notifyHideContextToolbox()})),this.contextToolboxVisible=!1)},t}();e.ContextToolboxHandler=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(298),r=n(11),a=n(6),s=n(39),l=function(){function t(t){this.onChanged=new i.EventDispatcher,this.inputPosition=new o.InputPosition(this),this.onChanged.add(this.inputPosition),this.initialize(t)}return t.prototype.initialize=function(t){this.model=t,this.keys=[],this.inputPosition.initialize()},t.prototype.add=function(t){this.keys.indexOf(t)<0&&(this.keys.push(t),this.raiseSelectionChanged())},t.prototype.remove=function(t){this.keys.indexOf(t)>=0&&(this.keys.splice(this.keys.indexOf(t),1),this.raiseSelectionChanged())},t.prototype.clear=function(){this.keys.length>0&&(this.keys=[],this.raiseSelectionChanged())},t.prototype.set=function(t,e){!e&&s.Data.ArrayEqual(t,this.keys)||(this.keys=t,this.raiseSelectionChanged())},t.prototype.getKeys=function(){return this.keys},t.prototype.getKey=function(t){return this.keys[t]},t.prototype.getSelectedItemsInsideContainers=function(t){var e=this,n=t.slice();return t.forEach((function(t){t instanceof r.Shape&&e.getSelectedItemsInsideContainers(e.model.getChildren(t)).forEach((function(t){-1!==n.indexOf(t)||e.hasKey(t.key)||n.push(t)}))})),n},t.prototype.getSelectedItemsCore=function(t){var e=this;return this.keys.map((function(t){return e.model.findItem(t)})).filter((function(e){return e&&(t||!e.isLocked)}))},t.prototype.getSelectedItems=function(t,e){return e?this.getSelectedItemsInsideContainers(this.getSelectedItemsCore(t)):this.getSelectedItemsCore(t)},t.prototype.getSelectedShapes=function(t,e){var n=this;if(e){var i=this.getSelectedItemsCore(t);return this.getSelectedItemsInsideContainers(i).map((function(t){return t instanceof r.Shape?t:void 0})).filter((function(t){return t}))}return this.keys.map((function(t){return n.model.findShape(t)})).filter((function(e){return e&&(t||!e.isLocked)}))},t.prototype.getSelectedConnectors=function(t,e){var n=this;if(e){var i=this.keys.map((function(t){return n.model.findItem(t)}));return this.getSelectedItemsInsideContainers(i).map((function(t){return t instanceof a.Connector?t:void 0})).filter((function(t){return t}))}return this.keys.map((function(t){return n.model.findConnector(t)})).filter((function(e){return e&&(t||!e.isLocked)}))},t.prototype.hasKey=function(t){return this.keys.indexOf(t)>=0},t.prototype.isEmpty=function(t){return!this.getSelectedItems(t).length},t.prototype.selectRect=function(t){var e=[];this.model.iterateItems((function(n){n.intersectedByRect(t)&&e.push(n.key)})),this.set(e)},t.prototype.onLoad=function(){this.raiseSelectionChanged()},t.prototype.raiseSelectionChanged=function(){this.onChanged.raise("notifySelectionChanged",this)},t}();e.Selection=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(299),o=n(39),r=function(){function t(t){this.selection=t,this.initialProperties=new i.InputPositionProperties(this.selection),this.defaultProperties=new i.InputPositionProperties(this.selection,this.initialProperties),this.currentProperties=new i.InputPositionProperties(this.selection,this.defaultProperties)}return t.prototype.initialize=function(){this.reset(),this.defaultProperties.reset()},t.prototype.reset=function(){this.currentProperties.reset()},t.prototype.getDefaultConnectorProperties=function(){return this.defaultProperties.getConnectorProperties()},t.prototype.getDefaultConnectorPropertyValue=function(t){return this.defaultProperties.getConnectorPropertyValue(t)},t.prototype.getCurrentConnectorPropertyValue=function(t){return this.currentProperties.getConnectorPropertyValue(t)},t.prototype.setConnectorPropertyValue=function(t,e){this.currentProperties.setConnectorPropertyValue(t,e),this.selection.isEmpty(!0)&&this.defaultProperties.setConnectorPropertyValue(t,e)},t.prototype.setInitialConnectorProperties=function(t){for(var e in this.defaultProperties.reset(),this.currentProperties.reset(),t)t.hasOwnProperty(e)&&this.initialProperties.setConnectorPropertyValue(e,t[e])},t.prototype.getDefaultStyle=function(){return this.defaultProperties.getStyle()},t.prototype.getDefaultStylePropertyValue=function(t){return this.defaultProperties.getStylePropertyValue(t)},t.prototype.getDefaultTextStyle=function(){return this.defaultProperties.getTextStyle()},t.prototype.getDefaultTextStylePropertyValue=function(t){return this.defaultProperties.getTextStylePropertyValue(t)},t.prototype.getCurrentStylePropertyValue=function(t){return this.currentProperties.getStylePropertyValue(t)},t.prototype.getCurrentTextStylePropertyValue=function(t){return this.currentProperties.getTextStylePropertyValue(t)},t.prototype.setStylePropertyValue=function(t,e){this.currentProperties.setStylePropertyValue(t,e),this.selection.isEmpty(!0)&&this.defaultProperties.setStylePropertyValue(t,e)},t.prototype.setTextStylePropertyValue=function(t,e){this.currentProperties.setTextStylePropertyValue(t,e),this.selection.isEmpty(!0)&&this.defaultProperties.setTextStylePropertyValue(t,e)},t.prototype.setInitialStyleProperties=function(t){this.defaultProperties.reset(),this.currentProperties.reset();var e="string"===typeof t?o.Data.cssTextToObject(t):t;for(var n in e)e.hasOwnProperty(n)&&this.initialProperties.setStylePropertyValue(n,e[n])},t.prototype.setInitialTextStyleProperties=function(t){this.defaultProperties.reset(),this.currentProperties.reset();var e="string"===typeof t?o.Data.cssTextToObject(t):t;for(var n in e)e.hasOwnProperty(n)&&this.initialProperties.setTextStylePropertyValue(n,e[n])},t.prototype.notifySelectionChanged=function(t){this.reset()},t}();e.InputPosition=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(25),o=n(24),r=function(){function t(t,e){this.selection=t,this.baseProperties=e,this.selection=t}return t.prototype.reset=function(){this.connectorProperties=null,this.style=null,this.textStyle=null},t.prototype.getConnectorProperties=function(){return this.connectorProperties||(this.connectorProperties=this.baseProperties?this.baseProperties.getConnectorProperties().clone():new i.ConnectorProperties,this.updateConnectorProperties(this.connectorProperties)),this.connectorProperties},t.prototype.getConnectorPropertyValue=function(t){return this.getConnectorProperties()[t]},t.prototype.setConnectorPropertyValue=function(t,e){this.getConnectorProperties()[t]=e},t.prototype.getStyle=function(){return this.style||(this.style=this.baseProperties?this.baseProperties.getStyle().clone():new o.Style,this.updateStyle(this.style,"style")),this.style},t.prototype.getStylePropertyValue=function(t){return this.getStyle()[t]},t.prototype.setStylePropertyValue=function(t,e){this.getStyle()[t]=e},t.prototype.getTextStyle=function(){return this.textStyle||(this.textStyle=this.baseProperties?this.baseProperties.getTextStyle().clone():new o.TextStyle,this.updateStyle(this.textStyle,"styleText")),this.textStyle},t.prototype.getTextStylePropertyValue=function(t){return this.getTextStyle()[t]},t.prototype.setTextStylePropertyValue=function(t,e){this.getTextStyle()[t]=e},t.prototype.updateConnectorProperties=function(t){var e=this,n=this.selection.getSelectedConnectors(!0);t.forEach((function(i){e.updatePropertyValue(t,n,(function(t){return t.properties}),i)}))},t.prototype.updateStyle=function(t,e){var n=this,i=this.selection.getSelectedItems(!0);t.forEach((function(o){n.updatePropertyValue(t,i,(function(t){return t[e]}),o)}))},t.prototype.updatePropertyValue=function(t,e,n,i){var o=void 0,r=!1;e.forEach((function(t){var e=n(t)[i];if(void 0===o&&void 0!=e)o=e,r=!0;else if(r&&o!==e)return void(o=void 0)})),r&&(t[i]=o)},t}();e.InputPositionProperties=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=n(4),r=function(){function t(t){this.historyItems=[],this.currentIndex=-1,this.incrementalId=-1,this.transactionLevel=-1,this.unmodifiedIndex=-1,this.currTransactionId=0,this.onChanged=new o.EventDispatcher,this.modelManipulator=t}return t.prototype.isModified=function(){if(this.unmodifiedIndex==this.currentIndex)return!1;for(var t=Math.min(this.unmodifiedIndex,this.currentIndex),e=Math.max(this.unmodifiedIndex,this.currentIndex),n=t+1;n<=e;n++)if(this.historyItems[n].changeModified())return!0;return!1},t.prototype.undo=function(){this.canUndo()&&(this.historyItems[this.currentIndex].undo(this.modelManipulator),this.currentIndex--,this.raiseChanged())},t.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.historyItems[this.currentIndex].redo(this.modelManipulator),this.raiseChanged())},t.prototype.canUndo=function(){return this.currentIndex>=0},t.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},t.prototype.beginTransaction=function(){return this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new i.CompositionHistoryItem),this.currTransactionId++},t.prototype.endTransaction=function(){if(!(--this.transactionLevel>=0)){var t=this.transaction.historyItems.length;t>1?this.addInternal(this.transaction):1==t&&this.addInternal(this.transaction.historyItems.pop()),t>0&&this.raiseChanged(),delete this.transaction}},t.prototype.addAndRedo=function(t){this.add(t),t.redo(this.modelManipulator),this.raiseChanged()},t.prototype.add=function(t){this.transactionLevel>=0?this.transaction.add(t):this.addInternal(t)},t.prototype.addInternal=function(t){this.currentIndex<this.historyItems.length-1&&(this.historyItems.splice(this.currentIndex+1),this.unmodifiedIndex=Math.min(this.unmodifiedIndex,this.currentIndex)),this.historyItems.push(t),this.currentIndex++,this.deleteOldItems()},t.prototype.deleteOldItems=function(){var e=this.historyItems.length-t.MAX_HISTORY_ITEM_COUNT;e>0&&this.currentIndex>e&&(this.historyItems.splice(0,e),this.currentIndex-=e)},t.prototype.getNextId=function(){return this.incrementalId++,this.incrementalId},t.prototype.clear=function(){this.currentIndex=-1,this.unmodifiedIndex=-1,this.incrementalId=-1,this.historyItems=[],delete this.transaction,this.transactionLevel=-1},t.prototype.resetModified=function(){this.unmodifiedIndex=this.currentIndex},t.prototype.getCurrentItemId=function(){if(-1==this.currentIndex)return-1;var t=this.historyItems[this.currentIndex];return-1==t.uniqueId&&(t.uniqueId=this.getNextId()),t.uniqueId},t.prototype.undoTransaction=function(){for(var t=this.transaction.historyItems;t.length;)t.pop().undo(this.modelManipulator);this.raiseChanged()},t.prototype.undoTransactionTo=function(t){for(var e=this.transaction.historyItems;e.length;){var n=e.pop();if(n.undo(this.modelManipulator),n===t)return}this.raiseChanged()},t.prototype.raiseChanged=function(){-1===this.transactionLevel&&this.onChanged.raise("notifyHistoryChanged")},t.MAX_HISTORY_ITEM_COUNT=100,t}();e.History=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e){var n=t.call(this)||this;return n.bars=[],n.control=e,n}return i(e,t),e.prototype.registerBar=function(t){this.bars.push(t),t.onChanged.add(this),this.updateBarItemsState(t)},e.prototype.updateItemsState=function(t){if(!this.isUpdateLocked())for(var e,n=0;e=this.bars[n];n++)this.updateBarItemsState(e,t)},e.prototype.updateBarItemsState=function(t,e){if(!this.isUpdateLocked()&&t.isVisible()){var n=void 0;if(e){var i=t.getCommandKeys().reduce((function(t,e){return t[e]=!0,t}),{});n=e.filter((function(t){return i[t]}))}else n=t.getCommandKeys();for(var o=n.length,r=0;r<o;r++)this.updateBarItem(t,n[r])}},e.prototype.updateBarItem=function(t,e){var n=this.control.commandManager.getCommand(e);if(n){var i=n.getState();if(t.setItemVisible(e,i.visible),i.visible&&(t.setItemEnabled(e,i.enabled),!i.denyUpdateValue)){var o=this.getItemValue(i.value);i.items&&t.setItemSubItems(e,i.items),t.setItemValue(e,o,this.getDefaultItemValue(i.defaultValue))}}},e.prototype.setEnabled=function(t){for(var e,n=0;e=this.bars[n];n++)e.setEnabled(t)},e.prototype.notifyBarCommandExecuted=function(t,e){this.control.commandManager.getCommand(t).execute(e)||this.updateItemsState([t])},e.prototype.notifyBarUpdateRequested=function(){this.updateItemsState()},e.prototype.notifySelectionChanged=function(t){this.updateItemsState()},e.prototype.onUpdateUnlocked=function(t){},e.prototype.getItemValue=function(t){return t},e.prototype.getDefaultItemValue=function(t){return t},e}(n(62).BatchUpdatableObject);e.BarManager=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),o=n(40),r=n(0),a=n(18),s=n(13),l=n(22),u=n(15),c=n(65),d=n(115),h=n(303),f=n(35),p=n(304),m=n(305),g=n(307),_=n(136),v=n(309),y=n(80),b=n(12),w=n(79);e.LONG_TOUCH_TIMEOUT=500,e.DBL_CLICK_TIMEOUT=500;var x=function(){function t(t,e,n){this.moveLocked=!1,this.lockMouseMoveTimer=-1,this.lastClickElement=void 0,this.longTouchTimer=void 0,this.dblTouchTimer=void 0;var i=b.RenderHelper.createMainElement(t),o=b.RenderHelper.createSvgElement(i);this.scroll=n.scrollView||new h.NativeScrollView(t),this.measurer=new y.TextMeasurer(t),this.dom=new w.DOMManipulator(this.measurer),this.view=new g.CanvasViewManager(this.scroll,o,n.modelSize,n.zoomLevel,n.autoZoom,n.simpleView,n.rectangle,this.dom),this.input=new p.InputManager(i,this.view,e,n.zoomLevel),this.items=new d.CanvasItemsManager(this.view.canvasElement,n.zoomLevel,this.dom),this.page=new m.CanvasPageManager(this.view.pageElement,n,this.dom),this.selection=new _.CanvasSelectionManager(this.view.canvasElement,n.zoomLevel,n.readOnly,this.dom),this.view.onViewChanged.add(this.page),this.view.onViewChanged.add(this.items),this.view.onViewChanged.add(this.selection),this.view.onViewChanged.add(this.input),this.autoScroll=new v.AutoScrollController(this.scroll,i,o,this.view),this.attachEvents(o),this.mainElement=i,this.svgElement=o,this.events=e}return t.prototype.clean=function(){this.killLockMouseMoveTimer(),this.detachEvents(this.svgElement),this.scroll.detachEvents(),this.input.detachEvents(),this.dom.cancelAnimation(),u.RenderUtils.removeElement(this.mainElement)},t.prototype.replaceParent=function(t,e){this.mainElement&&this.mainElement.parentNode!==t&&t.appendChild(this.mainElement),e&&e!==this.scroll&&(this.scroll&&this.scroll.detachEvents(),this.scroll=e),this.measurer.replaceParent(t)},t.prototype.update=function(t){this.view.adjust({horizontal:!t,vertical:!t}),this.page.redraw()},t.prototype.onNewModel=function(t){this.measurer.onNewModel(t,this.dom)},t.prototype.clear=function(){this.items.clear(),this.selection.clear()},t.prototype.attachEvents=function(t){this.onMouseDownHandler=this.onMouseDown.bind(this),this.onMouseEnterHandler=this.onMouseEnter.bind(this),this.onMouseLeaveHandler=this.onMouseLeave.bind(this),this.onMouseWheelHandler=this.onMouseWheel.bind(this),this.onMouseDblClickHandler=this.onMouseDblClick.bind(this),this.onContextMenuHandler=this.onContextMenu.bind(this),this.onMouseMoveHandler=this.onMouseMove.bind(this),this.onMouseUpHandler=this.onMouseUp.bind(this),this.onWindowResizelHandler=this.onWindowResize.bind(this),this.onOrientationChangeHandler=this.onOrientationChange.bind(this),this.onMouseClickHandler=this.onMouseClick.bind(this),b.RenderHelper.addEventListener(t,c.TouchUIHelper.touchMouseDownEventName,this.onMouseDownHandler),b.RenderHelper.addEventListener(t,"mouseenter",this.onMouseEnterHandler),b.RenderHelper.addEventListener(t,"mouseleave",this.onMouseLeaveHandler),b.RenderHelper.addEventListener(t,"wheel",this.onMouseWheelHandler),b.RenderHelper.addEventListener(t,"dblclick",this.onMouseDblClickHandler),b.RenderHelper.addEventListener(t,"click",this.onMouseClickHandler),b.RenderHelper.addEventListener(t,"contextmenu",this.onContextMenuHandler),b.RenderHelper.addEventListener(document,c.TouchUIHelper.touchMouseMoveEventName,this.onMouseMoveHandler),b.RenderHelper.addEventListener(document,c.TouchUIHelper.touchMouseUpEventName,this.onMouseUpHandler),b.RenderHelper.addEventListener(window,"resize",this.onWindowResizelHandler),b.RenderHelper.addEventListener(window,"orientationchange",this.onOrientationChangeHandler),this.input.mouseWheelHandler=this.onMouseWheelHandler},t.prototype.detachEvents=function(t){b.RenderHelper.removeEventListener(t,c.TouchUIHelper.touchMouseDownEventName,this.onMouseDownHandler),b.RenderHelper.removeEventListener(t,"mouseenter",this.onMouseEnterHandler),b.RenderHelper.removeEventListener(t,"mouseleave",this.onMouseLeaveHandler),b.RenderHelper.removeEventListener(t,"wheel",this.onMouseWheelHandler),b.RenderHelper.removeEventListener(t,"dblclick",this.onMouseDblClickHandler),b.RenderHelper.removeEventListener(t,"contextmenu",this.onContextMenuHandler),b.RenderHelper.removeEventListener(t,"click",this.onMouseClickHandler),b.RenderHelper.removeEventListener(document,c.TouchUIHelper.touchMouseMoveEventName,this.onMouseMoveHandler),b.RenderHelper.removeEventListener(document,c.TouchUIHelper.touchMouseUpEventName,this.onMouseUpHandler),b.RenderHelper.removeEventListener(window,"resize",this.onWindowResizelHandler),b.RenderHelper.removeEventListener(window,"orientationchange",this.onOrientationChangeHandler)},t.prototype.onMouseDown=function(t){var e=this;this.lockMouseMove(),this.input.lockFocus(),this.autoScroll.onMouseDown(t),u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return e.events.onMouseDown(t)})),this.input.captureFocus(),l.Browser.TouchUI&&this.processTouchDown(t);var n=o.Evt.GetEventSource(t),i=n&&n.tagName;if(l.Browser.TouchUI||"img"===i.toLowerCase()||"image"===i.toLowerCase())return o.Evt.PreventEventAndBubble(t)},t.prototype.onMouseMove=function(t){var e=this;this.moveLocked||(this.autoScroll.onMouseMove(t,(function(){return e.onMouseMoveCore(t)})),this.onMouseMoveCore(t),l.Browser.IE&&this.lockMouseMove(),l.Browser.TouchUI&&this.processTouchMove(t))},t.prototype.onMouseMoveCore=function(t){var e=this;u.raiseEvent(t,this.createDiagramMouseEvent(t,l.Browser.TouchUI),(function(t){return e.events.onMouseMove(t)}))},t.prototype.onMouseUp=function(t){var e=this;this.lockMouseMove();var n=this.createDiagramMouseEvent(t);u.raiseEvent(t,n,(function(t){return e.events.onMouseUp(t)})),this.autoScroll.onMouseUp(t),n.source.type!==i.MouseEventElementType.Undefined&&this.input.captureFocus(),l.Browser.TouchUI&&this.processTouchUp(t)},t.prototype.onMouseEnter=function(t){var e=this;this.autoScroll.onMouseEnter(t),u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return e.events.onMouseEnter(t)}))},t.prototype.onMouseLeave=function(t){var e=this;u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return e.events.onMouseLeave(t)}))},t.prototype.onMouseDblClick=function(t){var e=this;u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return e.events.onDblClick(t)}))},t.prototype.onMouseClick=function(t){var e=this;u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return e.events.onClick(t)}))},t.prototype.onContextMenu=function(t){var e=this;return u.raiseEvent(t,this.createDiagramContextMenuEvent(t),(function(t){return e.events.onContextMenu(t)})),this.input.captureFocus(),o.Evt.PreventEventAndBubble(t)},t.prototype.processTouchDown=function(t){var n=this;this.touchDownPoint=this.getTouchPointFromEvent(t),this.resetLongTouch(),this.longTouchTimer=setTimeout((function(){u.raiseEvent(t,n.createDiagramMouseEvent(t),(function(t){return n.events.onLongTouch(t)})),n.resetLongTouch(),n.resetDblClick()}),e.LONG_TOUCH_TIMEOUT)},t.prototype.processTouchMove=function(e){var n=this.getTouchPointFromEvent(e);this.touchDownPoint&&n&&(Math.abs(this.touchDownPoint.x-n.x)>t.touchPositionLimit||Math.abs(this.touchDownPoint.y-n.y)>t.touchPositionLimit)&&(this.resetLongTouch(),this.resetDblClick())},t.prototype.getTouchPointFromEvent=function(t){var e=void 0,n=t.touches;return n&&n.length>0&&(e=new r.Point(n[0].clientX,n[0].clientY)),e},t.prototype.processTouchUp=function(t){var n=this;if(void 0!==this.longTouchTimer){u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return n.events.onClick(t)}));var i=o.Evt.GetEventSource(t);void 0!==this.dblTouchTimer&&this.lastClickElement===i?(u.raiseEvent(t,this.createDiagramMouseEvent(t),(function(t){return n.events.onDblClick(t)})),this.resetDblClick()):(this.resetDblClick(),this.dblTouchTimer=setTimeout((function(){return n.dblTouchTimer=void 0}),e.DBL_CLICK_TIMEOUT)),this.lastClickElement=i}this.resetLongTouch(),this.touchDownPoint=void 0},t.prototype.resetLongTouch=function(){void 0!==this.longTouchTimer&&clearTimeout(this.longTouchTimer),this.longTouchTimer=void 0},t.prototype.resetDblClick=function(){void 0!==this.dblTouchTimer&&clearTimeout(this.dblTouchTimer),this.dblTouchTimer=void 0},t.prototype.onOrientationChange=function(){var t=this;setTimeout((function(){return t.onWindowResize()}),100)},t.prototype.onWindowResize=function(){var t={horizontal:!1,vertical:!1};if(this.view.autoZoom!==f.AutoZoomMode.Disabled)t.horizontal=!0,t.vertical=!0;else{var e=this.view.checkFitToCanvas(),n=this.view.checkFitToCanvas(this.scroll.getSize());t={horizontal:e.horizontal!==n.horizontal||n.horizontal,vertical:e.vertical!==n.vertical||n.vertical}}this.view.adjust(t)},t.prototype.onMouseWheel=function(t){var e=this;u.raiseEvent(t,this.createDiagramWheelEvent(t),(function(t){return e.events.onMouseWheel(t)}))},t.prototype.notifyModelSizeChanged=function(t,e){this.view.notifyModelSizeChanged(t,e)},t.prototype.notifyModelRectangleChanged=function(t){this.view.notifyModelRectangleChanged(t)},t.prototype.notifyReadOnlyChanged=function(t){a.ToggleElementClassName(this.mainElement,"dxdi-read-only",t)},t.prototype.notifyDragStart=function(t){},t.prototype.notifyDragEnd=function(t){},t.prototype.notifyDragScrollStart=function(){this.autoScroll.onDragScrollStart()},t.prototype.notifyDragScrollEnd=function(){this.autoScroll.onDragScrollEnd()},t.prototype.createDiagramMouseEvent=function(t,e){var n=s.getKeyModifiers(t),r=function(t){return l.Browser.MSTouchUI?2!=t.button:o.Evt.IsLeftButtonPressed(t)}(t)?i.MouseButton.Left:i.MouseButton.Right,a=this.getOffsetPointByEvent(t),u=this.getModelPoint(a),c=this.getEventSource(t,e),d=this.createDiagramMouseEventTouches(t);return new i.DiagramMouseEvent(n,r,a,u,c,d)},t.prototype.createDiagramMouseEventTouches=function(t){var e=[];if(t.touches)for(var n=0;n<t.touches.length;n++){var o=t.touches[n].clientX,r=t.touches[n].clientY,a=this.getOffsetPointByEventPoint(o,r),s=this.getModelPoint(a);e.push(new i.DiagramMouseEventTouch(a,s))}return e},t.prototype.createDiagramContextMenuEvent=function(t,e){var n=s.getKeyModifiers(t),o=new r.Point(t.pageX,t.pageY),a=this.getOffsetPointByEvent(t),l=this.getModelPoint(a);return new i.DiagramContextMenuEvent(n,o,l)},t.prototype.createDiagramWheelEvent=function(t){var e=s.getKeyModifiers(t),n=this.getOffsetPointByEvent(t),o=this.view.getModelPoint(n),r=this.getEventSource(t),a=t.deltaX||t.originalEvent&&t.originalEvent.deltaX,l=t.deltaY||t.originalEvent&&t.originalEvent.deltaY;return new i.DiagramWheelEvent(e,a,l,n,o,r)},t.prototype.getEventSource=function(t,e){for(var n=o.Evt.GetEventSource(t,e);n&&!this.isDocumentContainer(n);){var r=u.RenderUtils.getElementEventData(n);if(void 0!==r)return r;if(this.input.isTextInputElement(n))return new i.MouseEventSource(i.MouseEventElementType.Document);n=n.parentNode}var a=new i.MouseEventSource(i.MouseEventElementType.Undefined);return n&&this.isDocumentContainer(n)&&(a.type=i.MouseEventElementType.Background),a},t.prototype.isDocumentContainer=function(t){return a.ElementHasCssClass(t,"dxdi-control")},t.prototype.lockMouseMove=function(){var t=this;this.moveLocked=!0,this.lockMouseMoveTimer=setTimeout((function(){t.moveLocked=!1,t.lockMouseMoveTimer=-1}),10)},t.prototype.killLockMouseMoveTimer=function(){-1!=this.lockMouseMoveTimer&&(clearTimeout(this.lockMouseMoveTimer),this.lockMouseMoveTimer=-1)},t.prototype.getModelPoint=function(t){return this.view.getModelPoint(t)},t.prototype.getOffsetPointByEvent=function(t){var e=o.Evt.GetEventX(t),n=o.Evt.GetEventY(t);return this.getOffsetPointByEventPoint(e,n)},t.prototype.getOffsetPointByEventPoint=function(t,e){var n=this.scroll.getScrollContainer(),i=a.GetAbsolutePositionX(n),o=a.GetAbsolutePositionY(n);return new r.Point(t-i,e-o)},t.prototype.getModelPointByEventPoint=function(t,e){var n=this.getOffsetPointByEventPoint(t,e);return this.view.getModelPoint(n)},t.prototype.getEventPointByModelPoint=function(t){var e=this.view.getAbsolutePoint(t),n=this.scroll.getScrollContainer();return new r.Point(a.GetAbsolutePositionX(n)+e.x,a.GetAbsolutePositionY(n)+e.y)},t.touchPositionLimit=4,t}();e.RenderManager=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(18),r=n(4),a=function(){function t(t){this.onScroll=new i.EventDispatcher,this.scrollBarWidth=o.GetVerticalScrollBarWidth(),this.mainElement=t,this.attachEvents()}return t.prototype.attachEvents=function(){var t=this;this.onScrollHandler=function(){return t.onScroll.raise1((function(e){return e.notifyScrollChanged((function(){return t.getScroll()}))}))},r.RenderHelper.addEventListener(this.mainElement,"scroll",this.onScrollHandler)},t.prototype.detachEvents=function(){r.RenderHelper.removeEventListener(this.mainElement,"scroll",this.onScrollHandler)},t.prototype.getScrollContainer=function(){return this.mainElement},t.prototype.setScroll=function(t,e){this.mainElement.style.overflow="scroll",this.mainElement.scrollLeft=t,this.mainElement.scrollTop=e,this.mainElement.style.overflow=""},t.prototype.offsetScroll=function(t,e){t&&(this.mainElement.scrollLeft+=t),e&&(this.mainElement.scrollTop+=e)},t.prototype.getScroll=function(){return new i.Point(this.mainElement.scrollLeft,this.mainElement.scrollTop)},t.prototype.getSize=function(){var t=this.mainElement.getBoundingClientRect();return new i.Size(Math.floor(t.width),Math.floor(t.height))},t.prototype.getScrollBarWidth=function(){return this.scrollBarWidth},t}();e.NativeScrollView=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(18),o=n(4),r=n(15),a=n(10),s=n(11),l=n(6),u=n(40),c=n(13),d=function(){function t(t,e,n,i){this.mainElement=t,this.layoutPointResolver=e,this.eventManager=n,this.actualZoom=i,this.focused=!1,this.focusLocked=!1,this.createInputElements(this.mainElement)}return t.prototype.detachEvents=function(){this.detachInputElementEvents(),this.detachTextInputElementEvents()},t.prototype.isFocused=function(){return this.focused},t.prototype.captureFocus=function(t,e){var n=t||this.inputElement;n.focus({preventScroll:!0}),e&&window.setTimeout((function(){if(window.getSelection){var t=window.getSelection(),e=document.createRange();e.selectNodeContents(n),t.removeAllRanges(),t.addRange(e)}}),100)},t.prototype.setClipboardData=function(t){this.clipboardInputElement.value=t,this.clipboardInputElement.focus({preventScroll:!0}),this.clipboardInputElement.select(),document.execCommand("copy"),this.captureFocus()},t.prototype.getClipboardData=function(t){var e=this;navigator&&navigator.clipboard?navigator.clipboard.readText().then((function(n){t(n),e.captureFocus()})).catch((function(){t(""),e.captureFocus()})):o.Browser.IE&&(this.clipboardInputElement.value="",this.clipboardInputElement.focus({preventScroll:!0}),this.clipboardInputElement.select(),document.execCommand("Paste"),t(this.clipboardInputElement.value),this.captureFocus())},t.prototype.isPasteSupportedByBrowser=function(){return o.Browser.IE||o.Browser.WebKitFamily&&navigator&&void 0!==navigator.clipboard},t.prototype.createInputElements=function(t){this.createFocusInputElement(t),this.createTextInputElement(t),this.createClipboardInputElement(t),this.attachInputElementEvents()},t.prototype.setInputElementFocusHandlerMode=function(){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),this.captureFocus()},t.prototype.setInputElementTextInputMode=function(t,e,n,i,r,a){this.textInputElementContainer.setAttribute("class","dxdi-text-input-container "+r),this.textInputElement.innerText=t,!o.Browser.Firefox||t&&""!==t||(this.textInputElement.innerHTML=" "),this.setTextInputElementBounds(e,n,a),this.setTextInputElementStyle(i),this.captureFocus(this.textInputElement,!0)},t.prototype.setTextInputElementBounds=function(t,e,n){this.savedTextInputPosition=t,this.savedTextInputSize=e,this.savedTextInputAngle=n;var i=this.layoutPointResolver.getAbsolutePoint(t,!0);e=e&&e.transform(o.UnitConverter.twipsToPixels),this.textInputElementContainer.style.left=i.x+"px",this.textInputElementContainer.style.top=i.y+"px",this.textInputElementContainer.style.width=e&&e.width+"px"||"0px",this.textInputElementContainer.style.height=e&&e.height+"px"||"0px";var r=[];this.textInputElementContainer.style.transform="",1!==this.actualZoom&&r.push("scale("+this.actualZoom+")"),n&&r.push("rotate("+n+"deg)"),this.textInputElementContainer.style.transform=r.join(" "),this.textInputElement.style.width=e&&e.width+"px"||"",this.textInputElement.style.height=e&&e.height+"px"||"auto"},t.prototype.setTextInputElementStyle=function(t){r.RenderUtils.applyStyleToElement(t,this.textInputElement)},t.prototype.createFocusInputElement=function(t){this.inputElement=document.createElement("textarea"),this.inputElement.readOnly=o.Browser.TouchUI,this.inputElement.setAttribute("class","dxdi-focus-input"),t.appendChild(this.inputElement)},t.prototype.attachInputElementEvents=function(){this.onInputBlurHandler=this.onInputBlur.bind(this),this.onInputFocusHandler=this.onInputFocus.bind(this),this.onInputKeyDownHandler=this.onInputKeyDown.bind(this),this.onPasteHandler=this.onPaste.bind(this),o.RenderHelper.addEventListener(this.inputElement,"blur",this.onInputBlurHandler),o.RenderHelper.addEventListener(this.inputElement,"focus",this.onInputFocusHandler),o.RenderHelper.addEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),o.RenderHelper.addEventListener(this.inputElement,"paste",this.onPasteHandler)},t.prototype.detachInputElementEvents=function(){o.RenderHelper.removeEventListener(this.inputElement,"blur",this.onInputBlurHandler),o.RenderHelper.removeEventListener(this.inputElement,"focus",this.onInputFocusHandler),o.RenderHelper.removeEventListener(this.inputElement,"keydown",this.onInputKeyDownHandler),o.RenderHelper.removeEventListener(this.inputElement,"paste",this.onPasteHandler)},t.prototype.createTextInputElement=function(t){this.textInputElementContainer=document.createElement("div"),this.textInputElementContainer.setAttribute("class","dxdi-text-input-container"),t.appendChild(this.textInputElementContainer),this.textInputElement=document.createElement("div"),this.textInputElement.setAttribute("class","dxdi-text-input"),this.textInputElement.setAttribute("contenteditable","true"),this.attachTextInputElementEvents(),this.textInputElementContainer.appendChild(this.textInputElement)},t.prototype.attachTextInputElementEvents=function(){this.onTextInputBlurHandler=this.onTextInputBlur.bind(this),this.onTextInputFocusHandler=this.onTextInputFocus.bind(this),this.onTextInputKeyDownHandler=this.onTextInputKeyDown.bind(this),this.onTextInputMouseWheelHandler=this.onTextInputMouseWheel.bind(this),this.onTextInputMouseUpHandler=this.onTextInputMouseUp.bind(this),o.RenderHelper.addEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),o.RenderHelper.addEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),o.RenderHelper.addEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),o.RenderHelper.addEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),o.RenderHelper.addEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler)},t.prototype.detachTextInputElementEvents=function(){o.RenderHelper.removeEventListener(this.textInputElement,"mousewheel",this.onTextInputMouseWheelHandler),o.RenderHelper.removeEventListener(this.textInputElement,"mouseup",this.onTextInputMouseUpHandler),o.RenderHelper.removeEventListener(this.textInputElement,"blur",this.onTextInputBlurHandler),o.RenderHelper.removeEventListener(this.textInputElement,"focus",this.onTextInputFocusHandler),o.RenderHelper.removeEventListener(this.textInputElement,"keydown",this.onTextInputKeyDownHandler)},t.prototype.createClipboardInputElement=function(t){this.clipboardInputElement=document.createElement("textarea"),this.clipboardInputElement.setAttribute("class","dxdi-clipboard-input"),t.appendChild(this.clipboardInputElement)},t.prototype.blurControl=function(){this.focusLocked||(this.focused=!1,i.RemoveClassNameFromElement(this.mainElement,"focused"))},t.prototype.focusControl=function(){this.focused=!0,this.focusLocked=!1,i.AddClassNameToElement(this.mainElement,"focused")},t.prototype.onInputBlur=function(t){var e=this;this.blurControl(),r.raiseEvent(t,this.getDiagramFocusEvent(t),(function(t){return e.eventManager.onBlur(t)}))},t.prototype.onInputFocus=function(t){var e=this;this.focusControl(),r.raiseEvent(t,this.getDiagramFocusEvent(t),(function(t){return e.eventManager.onFocus(t)}))},t.prototype.onInputKeyDown=function(t){var e=this;r.raiseEvent(t,this.getDiagramKeyboardEvent(t),(function(t){return e.eventManager.onKeyDown(t)}))},t.prototype.onTextInputBlur=function(t){var e=this;this.blurControl(),r.raiseEvent(t,this.getDiagramFocusEvent(t),(function(t){return e.eventManager.onTextInputBlur(t)}))},t.prototype.onTextInputFocus=function(t){var e=this;this.focusControl(),r.raiseEvent(t,this.getDiagramFocusEvent(t),(function(t){return e.eventManager.onTextInputFocus(t)}))},t.prototype.onTextInputKeyDown=function(t){var e=this;r.raiseEvent(t,this.getDiagramKeyboardEvent(t),(function(t){return e.eventManager.onTextInputKeyDown(t)}))},t.prototype.onPaste=function(t){var e=this;r.raiseEvent(t,this.getDiagramClipboardEvent(t),(function(t){return e.eventManager.onPaste(t)}))},t.prototype.onTextInputMouseWheel=function(t){this.mouseWheelHandler&&this.mouseWheelHandler(t)},t.prototype.onTextInputMouseUp=function(t){u.Evt.CancelBubble(t)},t.prototype.getDiagramKeyboardEvent=function(t){return new a.DiagramKeyboardEvent(c.getKeyModifiers(t),u.Evt.GetKeyCode(t),u.Evt.GetEventSource(t).innerText)},t.prototype.getDiagramFocusEvent=function(t){return new a.DiagramFocusEvent(t.target.innerText)},t.prototype.getDiagramClipboardEvent=function(t){var e,n=t.clipboardData||t.originalEvent&&t.originalEvent.clipboardData;return e=void 0!==n?n.getData("text/plain"):window.clipboardData.getData("Text"),new a.DiagramClipboardEvent(e)},t.prototype.isTextInputElement=function(t){return"string"===typeof t.className&&t.className.indexOf("dxdi-text-input")>-1},t.prototype.lockFocus=function(){var t=this;this.focusLocked=!0,setTimeout((function(){return t.focusLocked=!1}),10)},t.prototype.notifyViewAdjusted=function(t){},t.prototype.notifyActualZoomChanged=function(t){this.actualZoom=t,this.savedTextInputPosition&&this.savedTextInputSize&&this.setTextInputElementBounds(this.savedTextInputPosition,this.savedTextInputSize,this.savedTextInputAngle)},t.prototype.notifyTextInputStart=function(t,e,n,i){var o,r="";t instanceof s.Shape?(r="shape-text",o=t.textAngle):t instanceof l.Connector&&(r="connector-text"),this.setInputElementTextInputMode(e,n,i,t.styleText,r,o)},t.prototype.notifyTextInputEnd=function(t){this.setInputElementFocusHandlerMode()},t}();e.InputManager=d},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(4),r=n(24),a=n(20),s=n(2),l=n(306),u=n(55),c=n(32),d=n(0),h=n(15),f=function(t){function e(e,n,i){var o=t.call(this,n.zoomLevel,i)||this;return o.snapPoint=new d.Point(0,0),o.gridPatternId=h.RenderUtils.generateSvgElementId("gridPattern"),o.pagesGridPatternId=h.RenderUtils.generateSvgElementId("pagesGridPattern"),o.pagesGridClipId=h.RenderUtils.generateSvgElementId("pagesGridClip"),o.pageColor=n.pageColor,o.modelSize=n.modelSize,o.simpleView=n.simpleView,o.gridSize=n.gridSize,o.gridVisible=n.gridVisible,o.pageSize=n.pageLandscape?new d.Size(n.pageSize.height,n.pageSize.width):n.pageSize,o.canvasViewOffset=new d.Point(0,0),o.initContainers(e),o}return i(e,t),e.prototype.initContainers=function(t){this.backgroundContainer=t},e.prototype.redraw=function(){this.redrawPage(this.pageColor),this.redrawGrid()},e.prototype.redrawPage=function(t){var e=new r.Style;e.fill=o.ColorHelper.colorToHash(t),this.getOrCreateElement("page-bg",new a.RectanglePrimitive(0,0,"100%","100%",e,"page"),this.backgroundContainer),this.createTextFloodFilter("page-bg-textflood-filter",this.backgroundContainer,t)},e.prototype.redrawGrid=function(){this.updateGridElements(this.gridVisible,o.UnitConverter.twipsToPixelsF(this.gridSize)*this.actualZoom),this.updatePagesGridElements(this.simpleView,this.getAbsoluteSize(this.pageSize))},e.prototype.getGridRectElement=function(t){return void 0===this.gridRectElement&&(this.gridRectElement=this.createPrimitiveElement(t,this.backgroundContainer)),this.gridRectElement},e.prototype.getGridPatternElement=function(t){return void 0===this.gridPatternElement&&(this.gridPatternElement=this.createPrimitiveElement(t,this.backgroundContainer)),this.gridPatternElement},e.prototype.updateGridElements=function(t,e){var n=this,i=new a.RectanglePrimitive("0","0","100%","100%",null,"grid",null,(function(t){t.style.setProperty("fill",h.RenderUtils.getUrlPathById(n.gridPatternId))})),o=this.getGridRectElement(i);if(t){o.style.display="",this.changePrimitiveElement(i,o);for(var u=[0,1,2,3,4].map((function(t){return Math.round(e*t)})),c=[new s.PathPrimitiveMoveToCommand(u[4].toString(),"0"),new s.PathPrimitiveLineToCommand(u[4].toString(),u[4].toString()),new s.PathPrimitiveLineToCommand("0",u[4].toString())],f=[],p=1;p<=3;p++)f.push(new s.PathPrimitiveMoveToCommand(u[p].toString(),"0")),f.push(new s.PathPrimitiveLineToCommand(u[p].toString(),u[4].toString()));for(p=1;p<=3;p++)f.push(new s.PathPrimitiveMoveToCommand("0",u[p].toString())),f.push(new s.PathPrimitiveLineToCommand(u[4].toString(),u[p].toString()));var m=4*e,g=this.simpleView?this.canvasViewOffset:d.Point.empty(),_=new l.PatternPrimitive(this.gridPatternId,[new s.PathPrimitive(c,r.StrokeStyle.default1pxNegativeOffsetInstance,"grid-outer-line"),new s.PathPrimitive(f,r.StrokeStyle.default1pxNegativeOffsetInstance,"grid-inner-line")],(((g.x+this.snapPoint.x)*this.actualZoom%m-m)%m).toString(),(((g.y+this.snapPoint.y)*this.actualZoom%m-m)%m).toString(),m.toString(),m.toString());this.changePrimitiveElement(_,this.getGridPatternElement(_))}else o.style.display="none"},e.prototype.getPagesGridRectElement=function(t){return this.getOrCreateElement("grid-pages-rect",t,this.backgroundContainer)},e.prototype.getPagesGridClipPathElement=function(t){return void 0===this.pagesGridClipPathElement&&(this.pagesGridClipPathElement=this.createPrimitiveElement(t,this.backgroundContainer)),this.pagesGridClipPathElement},e.prototype.getPagesGridPatternElement=function(t){return void 0===this.pagesGridPatternElement&&(this.pagesGridPatternElement=this.createPrimitiveElement(t,this.backgroundContainer)),this.pagesGridPatternElement},e.prototype.updatePagesGridElements=function(t,e){var n=this,i=new a.RectanglePrimitive("0","0","100%","100%",null,"grid-page",this.pagesGridClipId,(function(e){e.style.setProperty("fill",h.RenderUtils.getUrlPathById(n.pagesGridPatternId)),e.style.setProperty("display",t?"none":"")}));if(this.getPagesGridRectElement(i),!t){var r=this.modelSize.multiply(this.actualZoom),c=[new s.PathPrimitiveMoveToCommand((e.width-1).toString(),"0"),new s.PathPrimitiveLineToCommand((e.width-1).toString(),(e.height-1).toString()),new s.PathPrimitiveLineToCommand("0",(e.height-1).toString())],d=new l.PatternPrimitive(this.pagesGridPatternId,[new s.PathPrimitive(c,null,"pages-grid-line")],0,0,e.width.toString(),e.height.toString());this.changePrimitiveElement(d,this.getPagesGridPatternElement(d));var f=new u.ClipPathPrimitive(this.pagesGridClipId,[new a.RectanglePrimitive(0,0,(o.UnitConverter.twipsToPixelsF(r.width)-4).toString(),(o.UnitConverter.twipsToPixelsF(r.height)-4).toString())]);this.changePrimitiveElement(f,this.getPagesGridClipPathElement(f))}},e.prototype.notifyModelSizeChanged=function(t,e){this.modelSize=t.clone(),this.redraw()},e.prototype.notifyModelRectangleChanged=function(t){},e.prototype.notifySnapPointPositionChanged=function(t){this.snapPoint=t.transform(o.UnitConverter.twipsToPixelsF),this.redrawGrid()},e.prototype.notifyPageColorChanged=function(t){this.pageColor=t,this.redrawPage(this.pageColor)},e.prototype.notifyModelChanged=function(t){},e.prototype.notifyPageSizeChanged=function(t,e){this.pageSize=e?new d.Size(t.height,t.width):t.clone(),this.redraw()},e.prototype.notifyActualZoomChanged=function(t){this.actualZoom=t,this.redraw()},e.prototype.notifyViewAdjusted=function(t){this.canvasViewOffset.equals(t)||(this.canvasViewOffset=t,this.simpleView&&this.redraw())},e.prototype.notifyViewChanged=function(t){this.simpleView=t,this.redraw()},e.prototype.notifyGridChanged=function(t,e){this.gridVisible=t,this.gridSize=e,this.redraw()},e}(c.CanvasManagerBase);e.CanvasPageManager=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(12),r=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this,s)||this;return l.id=e,l.x=i,l.y=o,l.width=r,l.height=a,l.children=n,l}return i(e,t),e.prototype.createMainElement=function(){var t=document.createElementNS(o.svgNS,"pattern");return t.setAttribute("patternUnits","userSpaceOnUse"),t.setAttribute("id",this.id),t},e.prototype.applyElementProperties=function(e,n){this.setUnitAttribute(e,"x",this.x),this.setUnitAttribute(e,"y",this.y),this.setUnitAttribute(e,"width",this.width),this.setUnitAttribute(e,"height",this.height),this.setPositionCorrectionAttribute(e),t.prototype.applyElementProperties.call(this,e,n)},e}(n(21).SvgPrimitive);e.PatternPrimitive=r},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(32),r=n(35),a=n(0),s=n(4),l=n(30),u=n(55),c=n(20),d=n(15),h=n(308),f=n(24);e.CANVAS_MIN_PADDING=8,e.CANVAS_SCROLL_PADDING=18,e.CROP_OFFSET=40;var p=function(t){function n(e,n,i,o,r,l,u,c){var f=t.call(this,o,c)||this;return f.svgElement=n,f.paddings=new a.Offset(0,0,0,0),f.scroll=new a.Point(0,0),f.crop=a.Offset.empty(),f.lockAutoZoom=!1,f.autoScrollLocker=0,f.pageClipPathId=d.RenderUtils.generateSvgElementId("page-clip"),f.pageShadowId=d.RenderUtils.generateSvgElementId("page-shadow"),f.onViewChanged=new s.EventDispatcher,e.onScroll.add(f),i=i.transform(s.UnitConverter.twipsToPixelsF),f.scrollView=e,f.modelSize=i,f.simpleView=l,f.fixedZoomLevel=o,f.autoZoom=r,f.crop=f.rectangleToCrop(u,i),f.updateElements(i.multiply(o),a.Point.empty(),l),f.getOrCreateElement("shadow",new h.ShadowFilterPrimitive(f.pageShadowId),f.svgElement),f.containerSize=e.getSize(),f}return i(n,t),n.prototype.adjust=function(t){var e=void 0;t||(t={vertical:!1,horizontal:!1},e=a.Offset.empty()),this.containerSize=this.scrollView.getSize(),this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,t,this.containerSize,e),this.tryNormalizePaddings()},n.prototype.notifyModelSizeChanged=function(t,e){t=t.transform(s.UnitConverter.twipsToPixelsF);var n={horizontal:!e,vertical:!e};this.adjustCore(t,this.fixedZoomLevel,this.autoZoom,this.simpleView,this.crop,n,this.containerSize,e&&e.transform(s.UnitConverter.twipsToPixelsF)),this.modelSize=t},n.prototype.notifyModelRectangleChanged=function(t){var e=this.rectangleToCrop(t,this.modelSize,this.crop);this.crop&&this.crop.equals(e)||(this.simpleView&&this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,this.simpleView,e,{horizontal:!1,vertical:!1},this.containerSize,a.Offset.empty()),this.crop=e)},n.prototype.notifySnapPointPositionChanged=function(t){},n.prototype.notifyZoomChanged=function(t,e){this.adjustCore(this.modelSize,t,e,this.simpleView,this.crop,{horizontal:!1,vertical:!1},this.containerSize),this.fixedZoomLevel=t,this.autoZoom=e},n.prototype.notifyViewChanged=function(t){this.adjustCore(this.modelSize,this.fixedZoomLevel,this.autoZoom,t,this.crop,{vertical:!0,horizontal:!0},this.containerSize),this.simpleView=t},n.prototype.notifyGridChanged=function(t,e){},n.prototype.notifyDragStart=function(t){this.lockAutoZoom=!0;var e=this.svgElement.getAttribute("class")+" dxdi-drag-item";this.svgElement.setAttribute("class",e)},n.prototype.notifyDragEnd=function(t){this.lockAutoZoom=!1;var e=this.svgElement.getAttribute("class").replace(" dxdi-drag-item","");this.svgElement.setAttribute("class",e),this.autoZoom&&this.adjust({horizontal:!0,vertical:!0})},n.prototype.notifyDragScrollStart=function(){var t=this.svgElement.getAttribute("class")+" dxdi-drag-scroll";this.svgElement.setAttribute("class",t)},n.prototype.notifyDragScrollEnd=function(){var t=this.svgElement.getAttribute("class").replace(" dxdi-drag-scroll","");this.svgElement.setAttribute("class",t)},n.prototype.notifyScrollChanged=function(t){this.scroll=t()},n.prototype.checkFitToCanvas=function(t){t=t||this.containerSize;var n=this.scrollView.getScrollBarWidth();t=t.offset(2*-e.CANVAS_MIN_PADDING,2*-e.CANVAS_MIN_PADDING);var i=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).multiply(this.actualZoom),o=this.checkScrollBars(t,n,i,a.Offset.empty());return{vertical:(t=t.offset(o.vertical?-n:0,o.horizontal?-n:0)).height>=i.height,horizontal:t.width>=i.width}},n.prototype.rectangleToCrop=function(t,e,n){var i=t.transform(s.UnitConverter.twipsToPixelsF);return new a.Offset(this.correctCrop(i.left),this.correctCrop(i.top),this.correctCrop(e.width-i.right),this.correctCrop(e.height-i.bottom))},n.prototype.correctCrop=function(t){return e.CROP_OFFSET*Math.floor(t/e.CROP_OFFSET)},n.prototype.setActualZoom=function(t){this.actualZoom!==t&&(this.actualZoom=t,this.onViewChanged.raise1((function(e){return e.notifyActualZoomChanged(t)})))},n.prototype.getActualAutoZoomLevel=function(t){if(t===r.AutoZoomMode.Disabled)return this.actualZoom;var e=this.containerSize,n=this.scrollView.getScrollBarWidth(),i=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop);return this.getActualAutoZoom(e,n,i,t)},n.prototype.getActualZoom=function(t,e,n,i,o){return this.lockAutoZoom?this.actualZoom:o===r.AutoZoomMode.Disabled?i:this.getActualAutoZoom(t,e,n,o)},n.prototype.getActualAutoZoom=function(t,n,i,o){return o===r.AutoZoomMode.FitContent?Math.min((t.width-2*e.CANVAS_MIN_PADDING)/i.width,(t.height-2*e.CANVAS_MIN_PADDING)/i.height,1):Math.min((t.width-2*e.CANVAS_MIN_PADDING-n)/i.width,1)},n.prototype.tryNormalizePaddings=function(){var t=this.scrollView.getScrollBarWidth(),e=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).multiply(this.actualZoom),n=new a.Point(this.paddings.left,this.paddings.top),i=new a.Size(this.paddings.right,this.paddings.bottom),o=this.getTailSpace(n,this.scroll,e,this.containerSize,t);o.equals(i)||this.applyChanges(new a.Offset(n.x,n.y,o.width,o.height),e,this.simpleView,this.crop)},n.prototype.scrollBy=function(t){var e,n,i,o=this.scroll,r=this.containerSize,s=this.scrollView.getScrollBarWidth(),l=this.getActualModelSizeWithoutZoom(this.modelSize,this.simpleView,this.crop).multiply(this.actualZoom),u=this.checkScrollBars(r,s,l,this.paddings),c=new a.Point(this.paddings.left,this.paddings.top),d=new a.Size(this.paddings.right,this.paddings.bottom);return o=(e=this.changeScrollByOffset(c,o,d,l,t,r,u)).scroll,t=e.offset,c=(n=this.changeTranslateByOffset(c,d,t,u)).translate,t=n.offset,c=(i=this.cropHiddenHead(c,o)).translate,o=i.scroll,d=this.getTailSpace(c,o,l,r,s),this.applyChanges(new a.Offset(c.x,c.y,d.width,d.height),l,this.simpleView,this.crop,o),t},n.prototype.changeScrollByOffset=function(t,e,n,i,o,r,a){var s=e.clone(),l=o.clone();return o.x&&a.horizontal&&(s.x-=l.x=-this.getScrollDeltaByOffset(o.x,e.x,t.x+i.width+n.width,r.width,a.vertical)),o.y&&a.vertical&&(s.y-=l.y=-this.getScrollDeltaByOffset(o.y,e.y,t.y+i.height+n.height,r.height,a.horizontal)),{scroll:s,offset:l}},n.prototype.changeTranslateByOffset=function(t,e,n,i){var o=t.clone(),r=n.clone();return n.x&&!i.horizontal&&(o.x+=r.x=this.getTranslateDeltaByOffset(n.x,o.x,e.width)),n.y&&!i.vertical&&(o.y+=r.y=this.getTranslateDeltaByOffset(n.y,o.y,e.height)),{translate:o,offset:r}},n.prototype.getScrollDeltaByOffset=function(t,e,n,i,o){if(t>0)return-Math.min(e,t);var r=n-(i-(o?this.scrollView.getScrollBarWidth():0));return Math.min(r-e,-t)},n.prototype.getTranslateDeltaByOffset=function(t,n,i){return t?t<0?-Math.min(n-e.CANVAS_MIN_PADDING,-t):Math.min(i-e.CANVAS_MIN_PADDING,t):0},n.prototype.getActualModelSizeWithoutZoom=function(t,e,n){return e&&n?t.offset(-n.horizontal,-n.vertical):t},n.prototype.setScrollTo=function(t,n){var i=this.containerSize,o=this.getVisibileAreaAbsShift(),r=t.transform(s.UnitConverter.twipsToPixelsF).multiply(this.actualZoom).offset(o.x,o.y),a=this.scroll;n?(a.x+=r.x-n.x,a.y+=r.y-n.y):(r.x<0&&(a.x+=r.x-e.CANVAS_MIN_PADDING),r.y<0&&(a.y+=r.y-e.CANVAS_MIN_PADDING),r.x>i.width&&(a.x+=r.x-i.width+e.CANVAS_MIN_PADDING),r.y>i.height&&(a.y+=r.y-i.height+e.CANVAS_MIN_PADDING)),this.setScroll(a)},n.prototype.scrollIntoView=function(t){t=t.transform(s.UnitConverter.twipsToPixelsF).multiply(this.actualZoom).offset(this.paddings.left,this.paddings.top);var n=this.scroll,i=this.containerSize;if(!(t.left>=n.x&&t.top>=n.y&&t.right<=n.x+i.width&&t.bottom<=n.y+i.height)){var o=n.clone();t.left<n.x?o.x=t.left-e.CANVAS_SCROLL_PADDING:t.right>n.x+i.width&&(o.x=Math.min(t.left-e.CANVAS_SCROLL_PADDING,t.right+e.CANVAS_SCROLL_PADDING-i.width)),t.top<n.y?o.y=t.top-e.CANVAS_SCROLL_PADDING:o.y=Math.min(t.top-e.CANVAS_SCROLL_PADDING,t.bottom+e.CANVAS_SCROLL_PADDING-i.height),this.setScroll(o)}},n.prototype.setScroll=function(t){var e=this,n=this.modelSize.multiply(this.actualZoom);t.x=Math.max(0,Math.min(t.x,n.width+this.paddings.horizontal-this.containerSize.width)),t.y=Math.max(0,Math.min(t.y,n.height+this.paddings.vertical-this.containerSize.height)),this.dom.changeByFunc(null,(function(){e.scrollView.setScroll(t.x,t.y)})),this.scroll=t.clone()},n.prototype.updateElements=function(t,e,n){this.updatePageElement(t,e,n),this.updateCanvasElement(e)},n.prototype.updateCanvasElement=function(t){this.canvasElement=this.getOrCreateElement("dxdi-main",new l.GroupPrimitive([],"dxdi-main",null,null,(function(e){e.setAttribute("transform","translate("+Math.round(t.x)+", "+Math.round(t.y)+")")})),this.svgElement)},n.prototype.updatePageElement=function(t,e,n){n||this.getOrCreateElement("pageShadowRect",new c.RectanglePrimitive(e.x.toString(),e.y.toString(),t.width.toString(),t.height.toString(),new f.EmptyStyle({filter:d.RenderUtils.getUrlPathById(this.pageShadowId)}),"dxdi-page-shadow"),this.svgElement),this.pageElement=this.getOrCreateElement("page",new l.GroupPrimitive([],"dxdi-page",null,n?"":this.pageClipPathId,(function(t){t.setAttribute("transform","translate("+(n?0:Math.round(e.x))+", "+(n?0:Math.round(e.y))+")")})),this.svgElement),this.getOrCreateElement("pageClip",this.createPageClipPathPrimitive(t),this.svgElement)},n.prototype.createPageClipPathPrimitive=function(t){var e=[];return e.push(new c.RectanglePrimitive(0,0,t.width.toString(),t.height.toString())),new u.ClipPathPrimitive(this.pageClipPathId,e)},n.prototype.adjustCore=function(t,e,n,i,o,r,s,l){var u=this.getActualModelSizeWithoutZoom(t,i,o);if(this.lockAutoZoom||!n&&l&&this.modelSize)this.resizeView(u,this.actualZoom,s,i,o,l);else{var c=this.scrollView.getScrollBarWidth(),d=this.getActualZoom(s,c,u,e,n);!n||d!==this.actualZoom||r.horizontal&&r.vertical?(this.resetView(u,d,s,i,o,r),this.setActualZoom(d)):this.resizeView(u,d,s,i,o,l||a.Offset.empty())}},n.prototype.resetView=function(t,n,i,o,r,s){var l=t.multiply(n),u=a.Offset.fromNumber(e.CANVAS_MIN_PADDING);!(s=s||{horizontal:!0,vertical:!0}).horizontal&&this.paddings&&(u.left=this.paddings.left,u.right=this.paddings.right),!s.vertical&&this.paddings&&(u.top=this.paddings.top,u.bottom=this.paddings.bottom);var c=this.checkScrollBars(i,this.scrollView.getScrollBarWidth(),l,u),d=this.scrollView.getScrollBarWidth(),h=s.horizontal||s.vertical?this.scroll:void 0;if(s.horizontal){var f=Math.max((i.width-(c.vertical?d:0)-l.width)/2,e.CANVAS_MIN_PADDING);u.left=f,u.right=f,h.x=0}if(s.vertical){var p=Math.max((i.height-(c.horizontal?d:0)-l.height)/2,e.CANVAS_MIN_PADDING);u.top=p,u.bottom=p,h.y=0}this.applyChanges(u,l,o,r.multiply(n),h)},n.prototype.resizeView=function(t,e,n,i,o,r){var s,l,u=this.actualZoom,c=this.simpleView&&this.crop?this.crop.multiply(u):a.Offset.empty(),d=t.multiply(e);r=r.multiply(e);var h=i&&o?o.multiply(e):a.Offset.empty(),f=new a.Point(this.paddings.left,this.paddings.top),p=this.scroll;f=(s=this.applyOffset(f,p,c,h,r)).translate,p=s.scroll,f=(l=this.cropHiddenHead(f,p)).translate,p=l.scroll;var m=this.getTailSpace(f,p,d,n,this.scrollView.getScrollBarWidth()),g=new a.Offset(f.x,f.y,m.width,m.height);this.applyChanges(g,d,i,h,p)},n.prototype.applyChanges=function(t,e,n,i,o){var r=this,s=new a.Point(t.left,t.top);n&&i&&(s=s.offset(-i.left,-i.top)),this.updateElements(e,s,n),this.setSvgSize(e.width+t.horizontal,e.height+t.vertical),this.onViewChanged.raise1((function(t){return t.notifyViewAdjusted(new a.Point(s.x,s.y))})),o&&(this.lockAutoScroll(),o&&this.dom.changeByFunc(this.scrollView,(function(t){t.setScroll(o.x,o.y),r.unlockAutoScroll()})),this.scroll=o),this.paddings=t},n.prototype.isAutoScrollLocked=function(){return 0!==this.autoScrollLocker},n.prototype.lockAutoScroll=function(){this.autoScrollLocker++},n.prototype.unlockAutoScroll=function(){this.autoScrollLocker--},n.prototype.applyOffset=function(t,n,i,o,r){var a=t.clone(),s=n.clone(),l=this.getActualOffset(i,o,r);return l.left&&(a.x=Math.max(e.CANVAS_MIN_PADDING,a.x-l.left),s.x+=l.left-(t.x-a.x)),l.top&&(a.y=Math.max(e.CANVAS_MIN_PADDING,a.y-l.top),s.y+=l.top-(t.y-a.y)),{translate:a,scroll:s}},n.prototype.cropHiddenHead=function(t,n){var i=n.clone(),o=t.clone();if(i.x&&o.x>e.CANVAS_MIN_PADDING){var r=o.x-Math.max(e.CANVAS_MIN_PADDING,o.x-i.x);o.x-=r,i.x-=r}return i.y&&o.y>e.CANVAS_MIN_PADDING&&(r=o.y-Math.max(e.CANVAS_MIN_PADDING,o.y-i.y),o.y-=r,i.y-=r),{translate:o,scroll:i}},n.prototype.getTailSpace=function(t,n,i,o,r){var s=t.clone(),l=n.clone(),u=Math.max(o.width+l.x-(s.x+i.width),e.CANVAS_MIN_PADDING),c=Math.max(o.height+l.y-(s.y+i.height),e.CANVAS_MIN_PADDING),d=this.checkScrollBars(o,r,i,new a.Offset(s.x,s.y,u,c));return d.vertical&&(u=Math.max(e.CANVAS_MIN_PADDING,u-r)),d.horizontal&&(c=Math.max(e.CANVAS_MIN_PADDING,c-r)),new a.Size(u,c)},n.prototype.getActualOffset=function(t,e,n){return new a.Offset(-(e.left-t.left)+n.left,-(e.top-t.top)+n.top,-(e.right-t.right)+n.right,-(e.bottom-t.bottom)+n.bottom)},n.prototype.checkScrollBars=function(t,e,n,i){var o=t.width<n.width+i.horizontal,r=t.height<n.height+i.vertical;return o&&!r&&(r=t.height-e<n.height+i.vertical),r&&!o&&(o=t.width-e<n.width+i.horizontal),{horizontal:o,vertical:r}},n.prototype.setSvgSize=function(t,e){t===this.lastWidth&&e===this.lastHeight||(this.dom.changeByFunc(this.svgElement,(function(n){return d.RenderUtils.updateSvgElementSize(n,t,e)})),this.lastWidth=t,this.lastHeight=e)},n.prototype.getVisibileAreaAbsShift=function(t){var e=this.scroll,n=this.paddings.clone(),i=this.simpleView,o=i&&this.crop?this.crop.left*this.actualZoom:0,r=i&&this.crop?this.crop.top*this.actualZoom:0;return new a.Point(n.left-o-(t?0:e.x),n.top-r-(t?0:e.y))},n.prototype.getModelPoint=function(t,e){var n=this.getVisibileAreaAbsShift(),i=t.offset(-n.x,-n.y).multiply(1/this.actualZoom);if(e){var o=this.containerSize;if(t.x<0||t.y<0||t.x>o.width||t.y>o.height)return null;if(i.x<0||i.y<0)return null;if(i.x>this.modelSize.width||i.y>this.modelSize.height)return null}return i.transform(s.UnitConverter.pixelsToTwips)},n.prototype.getAbsolutePoint=function(t,e,n){var i=this.getVisibileAreaAbsShift(e),o=t.transform(s.UnitConverter.twipsToPixelsF).multiply(this.actualZoom).offset(i.x,i.y);if(n){if(o.x<0||o.y<0)return null;var r=this.containerSize;if(o.x>r.width||o.y>r.height)return null}return o},n}(o.CanvasManagerBase);e.CanvasViewManager=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(88),r=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.createChildElements=function(t){var e=document.createElementNS(r.svgNS,"feGaussianBlur");e.setAttribute("in","SourceGraphic"),e.setAttribute("stdDeviation","4.6"),t.appendChild(e);var n=document.createElementNS(r.svgNS,"feOffset");n.setAttribute("dx","0"),n.setAttribute("dy","0"),t.appendChild(n);var i=document.createElementNS(r.svgNS,"feMerge");t.appendChild(i);var o=document.createElementNS(r.svgNS,"feMergeNode");i.appendChild(o);var a=document.createElementNS(r.svgNS,"feMergeNode");a.setAttribute("in","SourceGraphic"),i.appendChild(a)},e}(o.FilterPrimitive);e.ShadowFilterPrimitive=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(40),o=n(18),r=n(12),a=n(0),s=function(){function t(t,e,n,i){this.scroll=t,this.mainElement=e,this.svgElement=n,this.view=i,this.leftButtonPressed=!1,this.scrollDragging=!1,this.scrollTimer=-1,this.scrollBarWidth=o.GetVerticalScrollBarWidth()}return t.prototype.onMouseMove=function(t,e){this.clearScrollTimer(),i.Evt.IsLeftButtonPressed(t)||(this.leftButtonPressed=!1),this.canAutoScroll()&&this.changeScrollPosition(t,e,!1)},t.prototype.onMouseDown=function(t){this.leftButtonPressed=!!i.Evt.IsLeftButtonPressed(t)},t.prototype.onMouseUp=function(t){this.clearScrollTimer(),this.leftButtonPressed=!1},t.prototype.onMouseEnter=function(t){var e=this;i.Evt.IsLeftButtonPressed(t)&&setTimeout((function(){e.leftButtonPressed=!0}),500)},t.prototype.onDragScrollStart=function(){this.scrollDragging=!0},t.prototype.onDragScrollEnd=function(){this.scrollDragging=!1},t.prototype.canAutoScroll=function(){return this.leftButtonPressed&&!this.scrollDragging},t.prototype.changeScrollPosition=function(t,e,n){var i=this,r=!1;if(!this.view.isAutoScrollLocked()){var s=this.scroll.getScrollContainer(),l=t.pageX-o.GetAbsolutePositionX(s),u=t.pageY-o.GetAbsolutePositionY(s),c=this.scroll.getSize(),d=new a.Size(parseFloat(this.svgElement.style.width),parseFloat(this.svgElement.style.height)),h=c.width;c.width<d.width&&(h-=this.scrollBarWidth);var f=c.height;c.height<d.height&&(f-=this.scrollBarWidth),l<=40?(this.scroll.offsetScroll(-this.getScrollingOffset(l),0),r=!0):h-40<=l&&(this.scroll.offsetScroll(this.getScrollingOffset(h-l),0),r=!0),u<=40?(this.scroll.offsetScroll(0,-this.getScrollingOffset(u)),r=!0):f-40<=u&&(this.scroll.offsetScroll(0,this.getScrollingOffset(f-u)),r=!0)}(r||this.view.isAutoScrollLocked())&&(this.scrollTimer=window.setTimeout((function(){return i.changeScrollPosition(t,e,r)}),50)),n&&e()},t.prototype.clearScrollTimer=function(){this.scrollTimer>-1&&(window.clearTimeout(this.scrollTimer),this.scrollTimer=-1)},t.prototype.getScrollingOffset=function(t){var e=Math.pow((40-t)/5,2);return Math.min(e,5)},t.createMainElement=function(t){var e=document.createElement("div");return e.setAttribute("class","dxdi-control"),t.appendChild(e),e},t.createSvgElement=function(t,e){void 0===e&&(e=!1);var n=document.createElementNS(r.svgNS,"svg");return n.className.baseVal="dxdi-canvas"+(e?" export":""),t.appendChild(n),n},t}();e.AutoScrollController=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1),r=n(11),a=n(6),s=n(311),l=n(7),u=n(39),c=function(t){function e(e,n,i,o,r,a){var s=t.call(this,"Document",n,i,o,r,a)||this;return s.changesListener=e,s.updateLockCount=0,s}return i(e,t),e.prototype.updateItemsByModel=function(t){var e=this;this.deleteNodes(t),this.deleteEdges(t),t.items.forEach((function(n){n instanceof r.Shape&&e.updateNode(t,n),n instanceof a.Connector&&e.updateEdge(t,n)}))},e.prototype.isItemObjectModified=function(t,e,n){var i=n.setLocked&&e.locked!==t.locked||n.setZIndex&&e.zIndex!==t.zIndex;if(!i&&n.setStyle){var o=t.style.getDefaultInstance();t.style.forEach((function(n){t.style[n]!==o[n]&&t.style[n]!==(e.style&&e.style[n])&&(i=!0)}))}if(!i&&n.setStyleText){var r=t.styleText.getDefaultInstance();t.styleText.forEach((function(n){t.styleText[n]!==r[n]&&t.styleText[n]!==(e.styleText&&e.styleText[n])&&(i=!0)}))}return i},e.prototype.setDataObjectKeyRelatedProperty=function(t,e,n,i){(i||void 0===this.autoGeneratedDataKeys[n])&&t(e,n)},e.prototype.updateItemObjectProperties=function(t,e,n){if(n.setLocked&&(t.locked=e.locked,t.dataObj&&void 0!==t.locked&&n.setLocked(t.dataObj,e.locked)),n.setStyle){var i=e.style.toObject();t.style=i,t.dataObj&&void 0!==t.style&&n.setStyle(t.dataObj,u.Data.objectToCssText(i))}if(n.setStyleText){var o=e.styleText.toObject();t.styleText=o,t.dataObj&&void 0!==t.styleText&&n.setStyleText(t.dataObj,u.Data.objectToCssText(o))}n.setZIndex&&(t.zIndex=e.zIndex,t.dataObj&&void 0!==t.zIndex&&n.setZIndex(t.dataObj,e.zIndex))},e.prototype.deleteItems=function(t,e,n,i){t.slice().forEach((function(t){if(void 0!==t.key&&null!==t.key&&!e(t.key)){var o=n(t),r=o.indexOf(t.dataObj);o.splice(r,1),i(t,r>-1)}}))},e.prototype.updateNode=function(t,e){var n=this,i=this.findNode(e.dataKey);if(i)this.isNodeObjectModified(e,i,t.units)?(this.updateNodeObjectProperties(e,i,t.units),this.updateNodeObjectConnectedProperties(e,i),this.beginChangesNotification(),this.changesListener.notifyNodeUpdated.call(this.changesListener,this.nodeDataImporter.getKey(i.dataObj||i.key),i.dataObj,(function(t,e){n.endChangesNotification()}),(function(t){n.endChangesNotification()}))):this.updateNodeObjectConnectedProperties(e,i,this.changesListener);else{var o={};i=this.addNodeInternal(o,e.description.key,e.text),this.nodeDataSource.push(i.dataObj),this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setKey,o,i.key,this.addInternalKeyOnInsert),this.updateNodeObjectProperties(e,i,t.units),this.updateNodeObjectConnectedProperties(e,i),this.updateNodeObjectKey(e,i,i.dataObj),this.beginChangesNotification(),this.changesListener.notifyNodeInserted.call(this.changesListener,i.dataObj,(function(t){n.updateNodeObjectKey(e,i,t),n.endChangesNotification()}),(function(t){n.endChangesNotification()}))}},e.prototype.isNodeObjectModified=function(t,e,n){return this.isItemObjectModified(t,e,this.nodeDataImporter)||e.type!==t.description.key&&!(void 0===e.type&&t.description.key===o.ShapeTypes.Rectangle)||!s.DataSource.compareStrings(e.text,t.text)||this.nodeDataImporter.setImage&&e.image!==t.image.actualUrl||this.nodeDataImporter.setLeft&&e.left!==l.ModelUtils.getlUnitValue(n,t.position.x)||this.nodeDataImporter.setTop&&e.top!==l.ModelUtils.getlUnitValue(n,t.position.y)||this.nodeDataImporter.setWidth&&e.width!==l.ModelUtils.getlUnitValue(n,t.size.width)||this.nodeDataImporter.setHeight&&e.height!==l.ModelUtils.getlUnitValue(n,t.size.height)},e.prototype.updateNodeObjectProperties=function(t,e,n){if(this.updateItemObjectProperties(e,t,this.nodeDataImporter),this.nodeDataImporter.setType&&(e.type=t.description.key,this.nodeDataImporter.setType(e.dataObj,t.description.key)),this.nodeDataImporter.setText&&(e.text=t.text,this.nodeDataImporter.setText(e.dataObj,t.text)),this.nodeDataImporter.setImage&&(e.image=t.image.actualUrl,this.nodeDataImporter.setImage(e.dataObj,t.image.actualUrl)),this.nodeDataImporter.setLeft){var i=l.ModelUtils.getlUnitValue(n,t.position.x);e.left=i,this.nodeDataImporter.setLeft(e.dataObj,i)}if(this.nodeDataImporter.setTop){var o=l.ModelUtils.getlUnitValue(n,t.position.y);e.top=o,this.nodeDataImporter.setTop(e.dataObj,o)}if(this.nodeDataImporter.setWidth){var r=l.ModelUtils.getlUnitValue(n,t.size.width);e.width=r,this.nodeDataImporter.setWidth(e.dataObj,r)}if(this.nodeDataImporter.setHeight){var a=l.ModelUtils.getlUnitValue(n,t.size.height);e.height=a,this.nodeDataImporter.setHeight(e.dataObj,a)}},e.prototype.updateNodeObjectConnectedProperties=function(t,e,n){if(this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey){var i=this.getParentItemKey(t),o=this.findNode(i);this.updateNodeObjectParentKey(e,o,n)}if(this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey){var r=this.getContainerShapeKey(t),a=this.findNode(r);this.updateNodeObjectContainerKey(e,a,n)}this.useNodeItems&&void 0!==this.nodeDataImporter.setItems&&(i=this.getParentItemKey(t),o=this.findNode(i),this.updateNodeObjectItems(e,o,n)),this.useNodeChildren&&void 0!==this.nodeDataImporter.setChildren&&(r=this.getContainerShapeKey(t),a=this.findNode(r),this.updateNodeObjectChildren(e,a,n))},e.prototype.updateNodeObjectParentKey=function(t,e,n){var i=this,o=this.nodeDataImporter.getParentKey(t.dataObj),r=e?this.nodeDataImporter.getKey(e.dataObj):void 0;o===r||this.isRootParentKey(o)&&this.isRootParentKey(r)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setParentKey,t.dataObj,r,!1),n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(t.dataObj)||t.key,t.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()}))))},e.prototype.updateNodeObjectContainerKey=function(t,e,n){var i=this,o=this.nodeDataImporter.getContainerKey(t.dataObj),r=e?this.nodeDataImporter.getKey(e.dataObj):void 0;o===r||this.isRootParentKey(o)&&this.isRootParentKey(r)||(this.setDataObjectKeyRelatedProperty(this.nodeDataImporter.setContainerKey,t.dataObj,r,!1),n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(t.dataObj)||t.key,t.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()}))))},e.prototype.isRootParentKey=function(t){return void 0===t||null===t||!this.findNode(t)},e.prototype.updateNodeObjectItems=function(t,e,n){var i=this;if((e&&t.parentDataObj!==e.dataObj||!e&&t.parentDataObj)&&(!e||!this.checkNodeCyrcleItems(t.dataObj,e.dataObj))){var o=t.parentDataObj?this.nodeDataImporter.getItems(t.parentDataObj):this.nodeDataSource,r=o.indexOf(t.dataObj);o.splice(r,1);var a=e?this.nodeDataImporter.getItems(e.dataObj):this.nodeDataSource;a?a.push(t.dataObj):this.nodeDataImporter.setItems(e.dataObj,[t.dataObj]),t.parentDataObj=e&&e.dataObj,n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(t.dataObj)||t.key,t.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()})))}},e.prototype.updateNodeObjectChildren=function(t,e,n){var i=this;if(e&&t.containerDataObj!==e.dataObj||!e&&t.containerDataObj){var o=t.containerDataObj?this.nodeDataImporter.getChildren(t.containerDataObj):this.nodeDataSource,r=o.indexOf(t.dataObj);o.splice(r,1);var a=e?this.nodeDataImporter.getChildren(e.dataObj):this.nodeDataSource;a?a.push(t.dataObj):this.nodeDataImporter.setChildren(e.dataObj,[t.dataObj]),t.containerDataObj=e&&e.dataObj,n&&(this.beginChangesNotification(),n.notifyNodeUpdated.call(n,this.nodeDataImporter.getKey(t.dataObj)||t.key,t.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()})))}},e.prototype.checkNodeCyrcleItems=function(t,e){var n=this,i=!1,o=this.nodeDataImporter.getItems(t);return o&&o.forEach((function(t){i=i||t===e||n.checkNodeCyrcleItems(t,e)})),i},e.prototype.updateNodeObjectKey=function(t,e,n){var i=this.nodeDataImporter.getKey(n);if(void 0!==i&&null!==i&&i!==e.key&&(delete this.autoGeneratedDataKeys[e.key],e.key=i,this.updateNodeKeyRelatedObjects(t,e)),t.dataKey=e.key,e.dataObj!==n){var o=this.getNodeArray(e),r=o.indexOf(e.dataObj);o.splice(r,1,n),e.dataObj=n}},e.prototype.updateNodeKeyRelatedObjects=function(t,e){var n=this;this.useNodeParentId&&void 0!==this.nodeDataImporter.setParentKey&&this.getChildItems(t).forEach((function(t){var i=n.findNode(t.dataKey);i&&n.updateNodeObjectParentKey(i,e,n.changesListener)})),this.useNodeContainerId&&void 0!==this.nodeDataImporter.setContainerKey&&t.children.forEach((function(t){var i=n.findNode(t.dataKey);i&&n.updateNodeObjectContainerKey(i,e,n.changesListener)})),this.useEdgesArray()&&t.attachedConnectors.forEach((function(i){var o=n.findEdge(i.dataKey);o&&(t===i.beginItem&&n.updateEdgeObjectFromProperty(e,o),t===i.endItem&&n.updateEdgeObjectToProperty(e,o))}))},e.prototype.deleteNodes=function(t){var e=this;this.deleteItems(this.nodes,(function(e){return t.findShapeByDataKey(e)}),(function(t){return e.getNodeArray(t)}),(function(t,n){var i=t.dataObj&&e.nodeDataImporter.getKey(t.dataObj)||t.key,o=e.findNode(i);o&&e.nodes.splice(e.nodes.indexOf(o),1),n&&(e.beginChangesNotification(),e.changesListener.notifyNodeRemoved.call(e.changesListener,i,t.dataObj,(function(t,n){e.endChangesNotification()}),(function(t){e.endChangesNotification()})))}))},e.prototype.getParentItem=function(t){for(var e=0;e<t.attachedConnectors.length;e++)if(t.attachedConnectors[e].endItem===t)return t.attachedConnectors[e].beginItem},e.prototype.getParentItemKey=function(t){var e=this.getParentItem(t);return e&&e.dataKey},e.prototype.getNodeArray=function(t){var e;return this.useNodeItems&&t.parentDataObj?e=this.nodeDataImporter.getItems(t.parentDataObj):t.containerDataObj&&(e=this.nodeDataImporter.getChildren(t.containerDataObj)),e||this.nodeDataSource},e.prototype.getContainerShapeKey=function(t){return t.container&&t.container.dataKey},e.prototype.getChildItems=function(t){for(var e=[],n=0;n<t.attachedConnectors.length;n++)t.attachedConnectors[n].beginItem===t&&t.attachedConnectors[n].endItem&&e.push(t.attachedConnectors[n].endItem);return e},e.prototype.updateEdge=function(t,e){var n=this,i=e.beginItem?e.beginItem.dataKey:void 0,o=e.endItem?e.endItem.dataKey:void 0,r=this.findEdge(e.dataKey);if(r)this.isEdgeObjectModified(e,r,t.units)&&(this.updateEdgeObjectProperties(e,r,t.units),r.dataObj&&(this.beginChangesNotification(),this.changesListener.notifyEdgeUpdated.call(this.changesListener,this.edgeDataImporter.getKey(r.dataObj)||r.key,r.dataObj,(function(t,e){n.endChangesNotification()}),(function(t){n.endChangesNotification()}))));else{var a=this.useEdgesArray()&&this.canUpdateEdgeDataSource?{}:void 0;r=this.addEdgeInternal(a,i,o),a&&(this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setKey,a,r.key,this.addInternalKeyOnInsert),this.edgeDataSource.push(r.dataObj)),this.updateEdgeObjectProperties(e,r,t.units),this.updateEdgeObjectKey(e,r,r.dataObj),a&&(this.beginChangesNotification(),this.changesListener.notifyEdgeInserted.call(this.changesListener,r.dataObj,(function(t){n.updateEdgeObjectKey(e,r,t),n.endChangesNotification()}),(function(t){n.endChangesNotification()})))}},e.prototype.isEdgeObjectModified=function(t,e,n){return this.isItemObjectModified(t,e,this.edgeDataImporter)||e.from!==(t.beginItem?t.beginItem.dataKey:void 0)||e.to!==(t.endItem?t.endItem.dataKey:void 0)||this.edgeDataImporter.setFromPointIndex&&e.fromPointIndex!==t.beginConnectionPointIndex||this.edgeDataImporter.setToPointIndex&&e.toPointIndex!==t.endConnectionPointIndex||this.edgeDataImporter.setPoints&&(!e.points||!u.Data.ArrayEqual(e.points.map((function(t){return t.x})),t.points.map((function(t){return l.ModelUtils.getlUnitValue(n,t.x)})))||!u.Data.ArrayEqual(e.points.map((function(t){return t.y})),t.points.map((function(t){return l.ModelUtils.getlUnitValue(n,t.y)}))))||this.edgeDataImporter.setText&&!s.DataSource.compareTexts(e,t)||this.edgeDataImporter.setLineOption&&e.lineOption!==t.properties.lineOption||this.edgeDataImporter.setStartLineEnding&&e.startLineEnding!==t.properties.startLineEnding||this.edgeDataImporter.setEndLineEnding&&e.endLineEnding!==t.properties.endLineEnding},e.prototype.updateEdgeObjectFromProperty=function(t,e,n){var i=this;if(e.from=t&&t.key,e.dataObj){var o=t&&t.dataObj&&this.nodeDataImporter.getKey(t.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setFrom,e.dataObj,o,!1),n&&(this.beginChangesNotification(),n.notifyEdgeUpdated.call(n,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()})))}},e.prototype.updateEdgeObjectToProperty=function(t,e,n){var i=this;if(e.to=t&&t.key,e.dataObj){var o=t&&t.dataObj&&this.nodeDataImporter.getKey(t.dataObj);this.setDataObjectKeyRelatedProperty(this.edgeDataImporter.setTo,e.dataObj,o,!1),n&&(this.beginChangesNotification(),n.notifyEdgeUpdated.call(n,this.nodeDataImporter.getKey(e.dataObj)||e.key,e.dataObj,(function(t,e){i.endChangesNotification()}),(function(t){i.endChangesNotification()})))}},e.prototype.updateEdgeObjectProperties=function(t,e,n){if(this.updateItemObjectProperties(e,t,this.edgeDataImporter),this.edgeDataImporter.setFrom){var i=this.findNode(t.beginItem&&t.beginItem.dataKey);this.updateEdgeObjectFromProperty(i,e)}if(this.edgeDataImporter.setTo){var o=this.findNode(t.endItem&&t.endItem.dataKey);this.updateEdgeObjectToProperty(o,e)}if(this.edgeDataImporter.setFromPointIndex&&(e.fromPointIndex=t.beginConnectionPointIndex,e.dataObj&&this.edgeDataImporter.setFromPointIndex(e.dataObj,t.beginConnectionPointIndex)),this.edgeDataImporter.setToPointIndex&&(e.toPointIndex=t.endConnectionPointIndex,e.dataObj&&this.edgeDataImporter.setToPointIndex(e.dataObj,t.endConnectionPointIndex)),this.edgeDataImporter.setPoints){var r=t.points.map((function(t){return{x:l.ModelUtils.getlUnitValue(n,t.x),y:l.ModelUtils.getlUnitValue(n,t.y)}}));e.points=r,e.dataObj&&this.edgeDataImporter.setPoints(e.dataObj,r)}if(this.edgeDataImporter.setText){var a=void 0;1===t.getTextCount()&&t.getText()&&(a=t.getText());var s={};if(t.texts.forEach((function(t){s[t.position]=t.value})),e.texts=s,e.dataObj){var u="";a?u=a:s&&Object.keys(s).length&&(u=s),this.edgeDataImporter.setText(e.dataObj,u)}}this.edgeDataImporter.setLineOption&&(e.lineOption=t.properties.lineOption,e.dataObj&&this.edgeDataImporter.setLineOption(e.dataObj,t.properties.lineOption)),this.edgeDataImporter.setStartLineEnding&&(e.startLineEnding=t.properties.startLineEnding,e.dataObj&&this.edgeDataImporter.setStartLineEnding(e.dataObj,t.properties.startLineEnding)),this.edgeDataImporter.setEndLineEnding&&(e.endLineEnding=t.properties.endLineEnding,e.dataObj&&this.edgeDataImporter.setEndLineEnding(e.dataObj,t.properties.endLineEnding))},e.prototype.updateEdgeObjectKey=function(t,e,n){var i=n&&this.edgeDataImporter.getKey(n);if(void 0!==i&&null!==i&&i!==e.key&&(delete this.autoGeneratedDataKeys[e.key],e.key=i),t.dataKey=e.key,e.dataObj!==n){var o=this.edgeDataSource,r=o.indexOf(e.dataObj);o.splice(r,1,n),e.dataObj=n}},e.prototype.deleteEdges=function(t){var e=this;this.deleteItems(this.edges,(function(e){return t.findConnectorByDataKey(e)}),(function(t){return e.edgeDataSource}),(function(t,n){var i=t.dataObj&&e.edgeDataImporter.getKey(t.dataObj)||t.key,o=e.findEdge(i);o&&e.edges.splice(e.edges.indexOf(o),1),n&&(e.beginChangesNotification(),e.changesListener.notifyEdgeRemoved.call(e.changesListener,i,t.dataObj,(function(t,n){e.endChangesNotification()}),(function(t){e.endChangesNotification()})))}))},e.prototype.beginChangesNotification=function(){this.updateLockCount++},e.prototype.endChangesNotification=function(t){this.updateLockCount--,this.isUpdateLocked()||t||setTimeout(function(){this.changesListener.processDataChanges.call(this.changesListener,!1)}.bind(this),0)},e.prototype.isUpdateLocked=function(){return this.updateLockCount>0},e}(s.DataSource);e.DocumentDataSource=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(7),r=n(312),a=n(313),s=n(6),l=n(0),u=n(42),c=n(49),d=n(36),h=n(123),f=n(82),p=n(68),m=n(51),g=n(69),_=n(52),v=n(94),y=n(37),b=n(85),w=n(39),x=function(){function t(t,e,n,i,o,r){if(this.key=t,this.nodes=[],this.edges=[],this.autoGeneratedDataKeys={},this.addInternalKeyOnInsert=!1,this.useNodeParentId=!1,this.useNodeContainerId=!1,this.useNodeChildren=!1,this.useNodeItems=!1,this.canUpdateEdgeDataSource=!1,this.containers=null,void 0===t||null===t)throw new Error("DataSource key must be specified");this.key=t.toString(),this.loadParameters(i||{}),this.nodeDataImporter=this.createNodeDataImporter(o),this.edgeDataImporter=this.createEdgeDataImporter(r),this.nodeDataSource=e||[],this.edgeDataSource=n||[],this.canUpdateEdgeDataSource=!!n,this.fetchData()}return t.prototype.loadParameters=function(t){this.addInternalKeyOnInsert=!!t.addInternalKeyOnInsert},t.prototype.isAutoGeneratedKey=function(t){return t&&!!this.autoGeneratedDataKeys[t]},t.prototype.createNodeDataImporter=function(t){var e=new r.DataSourceNodeDataImporter;return t&&this.assignNodeDataImporterProperties(t,e),e},t.prototype.createEdgeDataImporter=function(t){var e=new r.DataSourceEdgeDataImporter;return t&&this.assignEdgeDataImporterProperties(t,e),e},t.prototype.assignItemDataImporterProperties=function(t,e){t.getKey&&(e.getKey=t.getKey),t.setKey&&(e.setKey=t.setKey),t.getLocked&&(e.getLocked=t.getLocked),t.setLocked&&(e.setLocked=t.setLocked),t.getStyle&&(e.getStyle=t.getStyle),t.setStyle&&(e.setStyle=t.setStyle),t.getStyleText&&(e.getStyleText=t.getStyleText),t.setStyleText&&(e.setStyleText=t.setStyleText),t.getZIndex&&(e.getZIndex=t.getZIndex),t.setZIndex&&(e.setZIndex=t.setZIndex)},t.prototype.assignNodeDataImporterProperties=function(t,e){this.assignItemDataImporterProperties(t,e),t.getType&&(e.getType=t.getType),t.setType&&(e.setType=t.setType),t.getImage&&(e.getImage=t.getImage),t.setImage&&(e.setImage=t.setImage),t.getText&&(e.getText=t.getText),t.setText&&(e.setText=t.setText),t.getLeft&&(e.getLeft=t.getLeft),t.setLeft&&(e.setLeft=t.setLeft),t.getTop&&(e.getTop=t.getTop),t.setTop&&(e.setTop=t.setTop),t.getWidth&&(e.getWidth=t.getWidth),t.setWidth&&(e.setWidth=t.setWidth),t.getHeight&&(e.getHeight=t.getHeight),t.setHeight&&(e.setHeight=t.setHeight),t.getChildren&&(e.getChildren=t.getChildren),t.setChildren&&(e.setChildren=t.setChildren),t.getParentKey&&(e.getParentKey=t.getParentKey),t.setParentKey&&(e.setParentKey=t.setParentKey),t.getItems&&(e.getItems=t.getItems),t.setItems&&(e.setItems=t.setItems),t.getContainerKey&&(e.getContainerKey=t.getContainerKey),t.setContainerKey&&(e.setContainerKey=t.setContainerKey)},t.prototype.assignEdgeDataImporterProperties=function(t,e){this.assignItemDataImporterProperties(t,e),t.getFrom&&(e.getFrom=t.getFrom),t.setFrom&&(e.setFrom=t.setFrom),t.getFromPointIndex&&(e.getFromPointIndex=t.getFromPointIndex),t.setFromPointIndex&&(e.setFromPointIndex=t.setFromPointIndex),t.getTo&&(e.getTo=t.getTo),t.setTo&&(e.setTo=t.setTo),t.getToPointIndex&&(e.getToPointIndex=t.getToPointIndex),t.setToPointIndex&&(e.setToPointIndex=t.setToPointIndex),t.getPoints&&(e.getPoints=t.getPoints),t.setPoints&&(e.setPoints=t.setPoints),t.getText&&(e.getText=t.getText),t.setText&&(e.setText=t.setText),t.getLineOption&&(e.getLineOption=t.getLineOption),t.setLineOption&&(e.setLineOption=t.setLineOption),t.getStartLineEnding&&(e.getStartLineEnding=t.getStartLineEnding),t.setStartLineEnding&&(e.setStartLineEnding=t.setStartLineEnding),t.getEndLineEnding&&(e.getEndLineEnding=t.getEndLineEnding),t.setEndLineEnding&&(e.setEndLineEnding=t.setEndLineEnding)},t.prototype.fetchData=function(){var t=this;if(this.useNodeParentId=void 0!==this.nodeDataImporter.getParentKey,this.useNodeContainerId=void 0!==this.nodeDataImporter.getContainerKey,this.useNodeItems=void 0!==this.nodeDataImporter.getItems,this.useNodeChildren=void 0!==this.nodeDataImporter.getChildren,this.useEdgesArray()&&this.useNodeParentId)throw new Error("You cannot use edges array and parentKey simultaneously.");if(this.useEdgesArray()&&this.useNodeItems)throw new Error("You cannot use edges array and items array simultaneously.");if(this.useNodeParentId&&this.useNodeItems)throw new Error("You cannot use parentKey and items array simultaneously.");if(this.useNodeContainerId&&this.useNodeChildren)throw new Error("You cannot use containerKey and children array simultaneously.");this.nodeDataSource.forEach((function(e){t.addNode(e)})),this.useEdgesArray()?this.edgeDataSource.forEach((function(e){t.addEdge(e)})):this.nodes.forEach((function(e){t.addNodeEdgesByParentId(e)}))},t.prototype.isContainer=function(t){var e=this;return!this.containers&&this.useNodeContainerId&&(this.containers=this.nodeDataSource.map((function(t){return e.nodeDataImporter.getContainerKey(t)})).filter((function(t){return void 0!==t&&null!==t})).reduce((function(t,e){return t[e]=!0,t}),{})),this.containers&&this.containers[t]},t.prototype.useEdgesArray=function(){return Array.isArray(this.edgeDataSource)&&(this.edgeDataSource.length||!(this.useNodeParentId||this.useNodeItems))},t.prototype.addNode=function(t,e,n,o){var r=this,a=this.nodeDataImporter.getChildren&&this.nodeDataImporter.getChildren(t),s=a&&Array.isArray(a)&&a.length,l=s||this.isContainer(this.nodeDataImporter.getKey(t)),u=this.nodeDataImporter.getType&&this.nodeDataImporter.getType(t)||l&&i.ShapeTypes.VerticalContainer||i.ShapeTypes.Rectangle,c=this.nodeDataImporter.getText&&(this.nodeDataImporter.getText(t)||""),d=this.addNodeInternal(t,u,c,e,n,o);if(this.assignNodeProperties(d,t),s&&a.forEach((function(e){r.addNode(e,void 0,d.key,t)})),this.useNodeItems){var h=this.nodeDataImporter.getItems(t);Array.isArray(h)&&h.length&&h.forEach((function(e){var i=r.addNode(e,t,n,o);r.addEdgeInternal(void 0,d.key,i.key)}))}return d},t.prototype.addNodeEdgesByParentId=function(t){if(this.useNodeParentId){var e=this.nodeDataImporter.getParentKey(t.dataObj);void 0!==e&&null!==e&&this.addEdgeInternal(void 0,this.getNodeKey(t.dataObj,this.nodeDataImporter.getParentKey),this.getNodeKey(t.dataObj,this.nodeDataImporter.getKey))}},t.prototype.addNodeInternal=function(t,e,n,i,r,s){var l=this.nodeDataImporter.getKey(t),u=void 0!==l&&null!==l?l:o.ModelUtils.getGuidItemKey(),c=new a.DataSourceNodeItem(this.key,u,t,e,n,i,r,s);return this.nodes.push(c),void 0!==l&&null!==l||(l=u,this.autoGeneratedDataKeys[u]=!0),c},t.prototype.addEdge=function(t){var e=this.addEdgeInternal(t,this.getNodeKey(t,this.edgeDataImporter.getFrom),this.getNodeKey(t,this.edgeDataImporter.getTo));return this.assignEdgeProperties(e,t),e},t.prototype.addEdgeInternal=function(t,e,n){var i=t&&this.edgeDataImporter.getKey(t),r=void 0!==i&&null!==i?i:o.ModelUtils.getGuidItemKey(),s=new a.DataSourceEdgeItem(this.key,r,t,e,n);return this.edges.push(s),void 0!==i&&null!==i||(i=r,this.autoGeneratedDataKeys[r]=!0),s},t.prototype.assignItemProperties=function(t,e,n){if(n.getLocked&&(t.locked=n.getLocked(e)),n.getStyle){var i=n.getStyle(e);t.style="string"===typeof i?w.Data.cssTextToObject(i):i}n.getStyleText&&(i=n.getStyleText(e),t.styleText="string"===typeof i?w.Data.cssTextToObject(i):i),n.getZIndex&&(t.zIndex=n.getZIndex(e))},t.prototype.assignNodeProperties=function(t,e){this.assignItemProperties(t,e,this.nodeDataImporter),this.nodeDataImporter.getImage&&(t.image=this.nodeDataImporter.getImage(e)),this.nodeDataImporter.getLeft&&(t.left=this.nodeDataImporter.getLeft(e)),this.nodeDataImporter.getTop&&(t.top=this.nodeDataImporter.getTop(e)),this.nodeDataImporter.getWidth&&(t.width=this.nodeDataImporter.getWidth(e)),this.nodeDataImporter.getHeight&&(t.height=this.nodeDataImporter.getHeight(e)),this.nodeDataImporter.getContainerKey&&(t.containerKey=this.nodeDataImporter.getContainerKey(e))},t.prototype.assignEdgeProperties=function(t,e){if(this.assignItemProperties(t,e,this.edgeDataImporter),this.edgeDataImporter.getFromPointIndex&&(t.fromPointIndex=this.edgeDataImporter.getFromPointIndex(e)),this.edgeDataImporter.getToPointIndex&&(t.toPointIndex=this.edgeDataImporter.getToPointIndex(e)),this.edgeDataImporter.getPoints&&(t.points=this.edgeDataImporter.getPoints(e)),this.edgeDataImporter.getText){var n=this.edgeDataImporter.getText(e);if(t.texts={},"object"===typeof n){for(var i in n)if(n.hasOwnProperty(i)){var o=parseFloat(i),r=n[i];isNaN(o)||"string"!==typeof r||""===r||(o=Math.min(1,Math.max(0,o)),t.texts[o]=r)}}else"string"===typeof n&&""!==n&&(t.texts[s.CONNECTOR_DEFAULT_TEXT_POSITION]=n)}this.edgeDataImporter.getLineOption&&(t.lineOption=this.edgeDataImporter.getLineOption(e)),this.edgeDataImporter.getStartLineEnding&&(t.startLineEnding=this.edgeDataImporter.getStartLineEnding(e)),this.edgeDataImporter.getEndLineEnding&&(t.endLineEnding=this.edgeDataImporter.getEndLineEnding(e))},t.prototype.findNode=function(t){return this.nodes.filter((function(e){return void 0!==t&&e.key===t}))[0]},t.prototype.findEdge=function(t){return this.edges.filter((function(e){return void 0!==t&&e.key===t}))[0]},t.prototype.getNodeKey=function(t,e){return e(t)},t.prototype.createModelItems=function(e,n,i,o,r,a,s){t.createModelItems(e,n,i,o,this,r,a,s)},t.createModelItems=function(e,n,i,r,a,s,u,c){var d=0,h=0,f={},p=[],m=[];e.beginTransaction(),a.nodes.forEach((function(o){var a=new l.Point(2e3*h++,2e3*d),s=t.createShapeByNode(e,n,r,i,o,a);void 0!==o.key&&(f[o.key]=s.key),h>4&&(h=0,d++),p.push(s)})),a.nodes.forEach((function(t){if(void 0!==t.containerKey&&null!==t.containerKey){var i=f[t.key],r=n.findShape(i),a=f[t.containerKey],s=n.findShape(a);s&&o.ModelUtils.insertToContainer(e,n,r,s)}})),a.edges.forEach((function(i){var a=n.findShape(f[i.to]),s=n.findShape(f[i.from]),l=t.createConnectorByEdge(e,n,r,i,a,s);l&&(m.push(l),o.ModelUtils.updateConnectorContainer(e,n,l))})),void 0!==s&&o.ModelUtils.getGraphInfoByItems(n,p,m).forEach((function(t){var i=s.getLayoutBuilder(t.graph).build(),r=o.ModelUtils.getNonGraphItems(n,t.container,i.nodeToLayout,p,m);o.ModelUtils.applyLayout(e,n,t.container,t.graph,i,r,s.layoutSettings,u,c,s.skipPointIndices)})),o.ModelUtils.tryUpdateModelSize(e,n),e.endTransaction()},t.createShapeByNode=function(t,e,n,i,r,a){var s=r.key;void 0!==r.left&&(a.x=o.ModelUtils.getTwipsValue(e.units,r.left)),void 0!==r.top&&(a.y=o.ModelUtils.getTwipsValue(e.units,r.top));var l=new u.AddShapeHistoryItem(i.get(r.type),a,r.text,s);t.addAndRedo(l);var c=e.findShape(l.shapeKey),d=c.size.clone();return void 0!==r.width&&(d.width=o.ModelUtils.getTwipsValue(e.units,r.width)),void 0!==r.height&&(d.height=o.ModelUtils.getTwipsValue(e.units,r.height)),o.ModelUtils.setShapeSize(t,e,c,a,d),void 0!==r.image&&t.addAndRedo(new h.ChangeShapeImageHistoryItem(c,r.image)),o.ModelUtils.updateNewShapeProperties(t,n,l.shapeKey),this.changeItemByDataItem(t,c,r),c},t.createConnectorByEdge=function(t,e,n,i,r,a){var u,h=i.key,f=[];if(Array.isArray(i.points)&&i.points.length>1?f=i.points.map((function(t){if(void 0!==t.x&&void 0!==t.y)return new l.Point(o.ModelUtils.getTwipsValue(e.units,t.x),o.ModelUtils.getTwipsValue(e.units,t.y))})).filter((function(t){return t})):(a&&f.push(a.position.clone()),r&&f.push(r.position.clone())),f.length>1){var p=new c.AddConnectorHistoryItem(f,h);if(t.addAndRedo(p),u=e.findConnector(p.connectorKey),a){var m=void 0!==i.fromPointIndex?i.fromPointIndex:-1;t.addAndRedo(new d.AddConnectionHistoryItem(u,a,m,s.ConnectorPosition.Begin))}if(r){var v=void 0!==i.toPointIndex?i.toPointIndex:-1;t.addAndRedo(new d.AddConnectionHistoryItem(u,r,v,s.ConnectorPosition.End))}if(o.ModelUtils.updateConnectorAttachedPoints(t,e,u),void 0!==i.texts&&!this.compareTexts(i,u))for(var y in u.texts.forEach((function(e){t.addAndRedo(new _.ChangeConnectorTextHistoryItem(u,e.position,void 0))})),i.texts)if(i.texts.hasOwnProperty(y)){var b=parseFloat(y);t.addAndRedo(new _.ChangeConnectorTextHistoryItem(u,b,i.texts[y]))}o.ModelUtils.updateNewConnectorProperties(t,n,p.connectorKey),void 0!==i.lineOption&&t.addAndRedo(new g.ChangeConnectorPropertyHistoryItem(u.key,"lineOption",i.lineOption)),void 0!==i.startLineEnding&&t.addAndRedo(new g.ChangeConnectorPropertyHistoryItem(u.key,"startLineEnding",i.startLineEnding)),void 0!==i.endLineEnding&&t.addAndRedo(new g.ChangeConnectorPropertyHistoryItem(u.key,"endLineEnding",i.endLineEnding)),this.changeItemByDataItem(t,u,i)}return u},t.changeItemByDataItem=function(t,e,n){if(void 0!==n.zIndex&&t.addAndRedo(new f.ChangeZindexHistoryItem(e,n.zIndex)),void 0!==n.style)for(var i in n.style)if(n.style.hasOwnProperty(i)){var o=b.isColorProperty(i)?y.ColorHelper.stringToHash(n.style[i]):n.style[i];t.addAndRedo(new p.ChangeStyleHistoryItem(e.key,i,o))}if(void 0!==n.styleText)for(var i in n.styleText)n.styleText.hasOwnProperty(i)&&(o=b.isColorProperty(i)?y.ColorHelper.stringToHash(n.styleText[i]):n.styleText[i],t.addAndRedo(new m.ChangeStyleTextHistoryItem(e.key,i,o)));void 0!==n.locked&&t.addAndRedo(new v.ChangeLockedHistoryItem(e,n.locked))},t.compareTexts=function(t,e){var n=t.texts||{},i=Object.keys(n).length===e.getTextCount();if(i)for(var o in n)if(n.hasOwnProperty(o)){var r=parseFloat(o);this.compareStrings(e.getText(r),n[o])||(i=!1)}return i},t.compareStrings=function(e,n){return"string"===typeof e&&"string"===typeof n?e===n:t.isEmptyString(e)&&t.isEmptyString(n)},t.isEmptyString=function(t){return""===t||null===t||void 0===t},t}();e.DataSource=x},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(){this.getKey=function(t){return t.id},this.setKey=function(t,e){t.id=e},this.getLocked=void 0,this.setLocked=void 0,this.getStyle=void 0,this.setStyle=void 0,this.getStyleText=void 0,this.setStyleText=void 0,this.getZIndex=void 0,this.setZIndex=void 0};e.DataSourceItemDataImporter=o;var r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getType=void 0,e.setType=void 0,e.getText=void 0,e.setText=void 0,e.getImage=void 0,e.setImage=void 0,e.getLeft=void 0,e.setLeft=void 0,e.getTop=void 0,e.setTop=void 0,e.getWidth=void 0,e.setWidth=void 0,e.getHeight=void 0,e.setHeight=void 0,e.getChildren=void 0,e.setChildren=void 0,e.getParentKey=void 0,e.setParentKey=void 0,e.getItems=void 0,e.setItems=void 0,e.getContainerKey=void 0,e.setContainerKey=void 0,e}return i(e,t),e}(o);e.DataSourceNodeDataImporter=r;var a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getFrom=function(t){return t.from},e.setFrom=function(t,e){t.from=e},e.getFromPointIndex=void 0,e.setFromPointIndex=void 0,e.getTo=function(t){return t.to},e.setTo=function(t,e){t.to=e},e.getToPointIndex=void 0,e.setToPointIndex=void 0,e.getPoints=void 0,e.setPoints=void 0,e.getText=void 0,e.setText=void 0,e.getLineOption=void 0,e.setLineOption=void 0,e.getStartLineEnding=void 0,e.setStartLineEnding=void 0,e.getEndLineEnding=void 0,e.setEndLineEnding=void 0,e}return i(e,t),e}(o);e.DataSourceEdgeDataImporter=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=function(t,e,n){this.sourceKey=t,this.key=e,this.dataObj=n};e.DataSourceItem=r;var a=function(t){function e(e,n,i,o,r,a,s,l){var u=t.call(this,e,n,i)||this;return u.type=o,u.text=r,u.parentDataObj=a,u.containerKey=s,u.containerDataObj=l,u}return i(e,t),e}(r);e.DataSourceNodeItem=a;var s=function(t){function e(e,n,i,o,r){var a=t.call(this,e,n,i)||this;return a.sourceKey=e,a.from=o,a.to=r,a}return i(e,t),Object.defineProperty(e.prototype,"text",{get:function(){return this.texts&&this.texts[o.CONNECTOR_DEFAULT_TEXT_POSITION]},enumerable:!0,configurable:!0}),e}(r);e.DataSourceEdgeItem=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(63),o=Math.log(.05),r=Math.log(3),a=c(1),s=[i.DiagramCommand.ZoomLevel,i.DiagramCommand.ZoomLevelInPercentage,i.DiagramCommand.Zoom100,i.DiagramCommand.Zoom125,i.DiagramCommand.Zoom200,i.DiagramCommand.Zoom25,i.DiagramCommand.Zoom50,i.DiagramCommand.Zoom75],l=[i.DiagramCommand.SwitchAutoZoom,i.DiagramCommand.ToggleAutoZoom,i.DiagramCommand.AutoZoomToContent,i.DiagramCommand.AutoZoomToWidth],u=function(){function t(t,e){this.settings=t,this.bars=e,t.onZoomChanged.add(this),this.autoZoom=t.autoZoom}return t.prototype.initialize=function(t){this.view=t,this.view.onViewChanged.add(this)},t.prototype.scrollTo=function(t,e){this.view&&this.view.setScrollTo(t,e)},t.prototype.scrollBy=function(t){return!this.view||0===t.x&&0===t.y?t:this.view.scrollBy(t)},t.prototype.scrollIntoView=function(t){this.view&&this.view.scrollIntoView(t)},t.prototype.normalize=function(){this.view.tryNormalizePaddings()},t.prototype.getNextStepZoom=function(t){var e=this.getNearestCurrentZoomStep(),n=t?1:-1,i=Math.min(39,Math.max(0,e+n));if(i!==a){var s=o+(r-o)*i/39;return Math.exp(s)}return 1},t.prototype.getNearestCurrentZoomStep=function(){return c(this.getZoom())},t.prototype.getZoom=function(){return this.view?this.view.actualZoom:this.settings.zoomLevel},t.prototype.resetScroll=function(){this.view.adjust({horizontal:!0,vertical:!0})},t.prototype.notifyViewAdjusted=function(t){},t.prototype.notifyActualZoomChanged=function(t){this.bars.updateItemsState(s)},t.prototype.notifyZoomChanged=function(t,e){this.autoZoom!==e&&(this.autoZoom=e,this.bars.updateItemsState(l))},t}();function c(t){var e=Math.log(t);return Math.round(39*(e-o)/(r-o))}e.ViewController=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(316),o=n(317),r=n(80),a=n(18),s=function(){function t(t){this.shapeDescriptionManager=t,this.toolboxes=[],this.measurers={}}return t.prototype.create=function(t,e,n,r,a,s){var l=Array.isArray(a)?a:this.shapeDescriptionManager.getTypesByCategory(a),u=r?new i.TextToolbox(t,e,n,this.shapeDescriptionManager,l):new o.IconToolbox(t,e,n,this.shapeDescriptionManager,l,s,this.getOrCreateMeasurer(t));return u.render(),this.toolboxes.push(u),u},t.prototype.clean=function(t){if(t)t.clean(),this.toolboxes.splice(this.toolboxes.indexOf(t),1);else{for(var e=0;e<this.toolboxes.length;e++)this.toolboxes[e].clean();this.toolboxes=[]}},t.prototype.applyFilter=function(t,e){var n=this;return this.toolboxes.reduce((function(i,o,r){return("number"!==typeof e||r===e)&&o.render((function(e){return n.searchFilter(e,t,r)}))&&i.push(r),i}),[])},t.prototype.searchFilter=function(t,e,n,i){if(!e||i&&-1===i.indexOf(n))return!0;e=e.toLowerCase();var o=this.shapeDescriptionManager.get(t);return o.getTitle().toLowerCase().indexOf(e)>-1||o.getDefaultText().toLowerCase().indexOf(e)>-1},t.prototype.getOrCreateMeasurer=function(t){var e=t.getAttribute("data-dxdiMeasurerID");return e&&this.measurers[e]||(e=a.CreateGuid(),this.measurers[e]=new r.TextMeasurer(t),t.setAttribute("data-dxdiMeasurerID",e)),this.measurers[e]},t}();e.ToolboxManager=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){function e(e,n,i,o,r){return t.call(this,e,n,i,o,r)||this}return i(e,t),e.prototype.createElements=function(t,e){var n=this;e.forEach((function(e){var i=n.shapeDescriptionManager.get(e),o=document.createElement("div");o.setAttribute("class","toolbox-text-item"),o.setAttribute("data-tb-type",e),o.innerHTML=i.getDefaultText()||i.getTitle(),t.appendChild(o)}))},e.prototype.createDraggingElement=function(t){var e=document.createElement("DIV");e.setAttribute("class","dxdi-toolbox-drag-text-item");var n=this.shapeDescriptionManager.get(t.evt.data);return e.innerHTML=n.getDefaultText()||n.getTitle(),document.body.appendChild(e),e},e}(n(137).Toolbox);e.TextToolbox=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(137),r=n(12),a=n(11),s=n(14),l=n(0),u=n(97),c=n(24),d=n(102),h=n(20),f=function(t){function e(e,n,i,o,r,a,s){var l=t.call(this,e,n,i,o,r)||this;return l.options=a,l.measurer=s,l}return i(e,t),e.prototype.createElements=function(t,e){var n=document.createElementNS(r.svgNS,"svg");n.className.baseVal="dxdi-canvas",t.appendChild(n),this.drawShapeIcons(n,e,this.options.toolboxWidth||n.getBoundingClientRect().width)},e.prototype.drawShapeIcons=function(t,e,n){var i=this,o=c.DEFAULT_STROKE_WIDTH,r=n-2*o,a=this.options.shapeIconSize;!a&&this.options.shapeIconSpacing&&this.options.shapeIconCountInRow&&(a=Math.floor((n-(this.options.shapeIconCountInRow-1)*this.options.shapeIconSpacing)/this.options.shapeIconCountInRow)),a||(a=32);var l=a,u=this.options.shapeIconCountInRow;if(!u)for(u=1;l<r;)(l+=this.options.shapeIconSpacing+a)<r&&u++;var d=u>1?(r-a*u)/(u-1):0,h=o,f=o,p=s.UnitConverter.pixelsToTwips(a);e.forEach((function(e,n){n>0&&n%u===0&&(h=o,f+=a+d);var r=i.shapeDescriptionManager.get(e),l=i.createShape(r,h,f);i.updateShapeIconBounds(l,a);var c=i.drawShape(t,l);i.drawSelector(c,s.UnitConverter.pixelsToTwips(h),s.UnitConverter.pixelsToTwips(f),p),h+=a+d})),t.style.height=f+a+o+"px",t.style.width=n+"px"},e.prototype.drawShape=function(t,e){var n=this,i=e.description.createPrimitives(e,!0),o=document.createElementNS(r.svgNS,"g");if(o.setAttribute("data-tb-type",e.description.key.toString()),o.setAttribute("class","toolbox-item"),o.setAttribute("title",e.description.getTitle()),this.options.shapeIconAttributes)for(var a in this.options.shapeIconAttributes)this.options.shapeIconAttributes.hasOwnProperty(a)&&o.setAttribute(a,this.options.shapeIconAttributes[a]);return t.appendChild(o),i.forEach((function(t){var e=t.createElement();o.appendChild(e),t.applyElementProperties(e,n.measurer)})),o},e.prototype.drawSelector=function(t,e,n,i){var o=new h.RectanglePrimitive(e,n,i,i,void 0,"selector"),r=o.createElement();o.applyElementProperties(r,this.measurer),t.appendChild(r)},e.prototype.createShape=function(t,e,n){var i=s.UnitConverter.pixelsToTwips(e),o=s.UnitConverter.pixelsToTwips(n),r=new a.Shape(t,new l.Point(i,o));return this.needResetShapeText(t)&&(r.text=""),r},e.prototype.needResetShapeText=function(t){return!(t instanceof u.TextShapeDescription)&&!(t instanceof d.CustomShapeDescription&&t.baseDescription instanceof u.TextShapeDescription)},e.prototype.updateShapeIconBounds=function(t,e){var n=s.UnitConverter.pixelsToTwips(e);if(t.size.height=t.size.width*t.getToolboxHeightToWidthRatio(),t.size.width>t.size.height){var i=t.size.height/t.size.width;t.size.width=n,t.size.height=n*i,t.position.y=t.position.y+(n-t.size.height)/2,t.parameters.forEach((function(e){e.value=e.value*n/t.description.defaultSize.width}))}else t.size.width<t.size.height?(i=t.size.width/t.size.height,t.size.height=n,t.size.width=n*i,t.position.x=t.position.x+(n-t.size.width)/2,t.parameters.forEach((function(e){e.value=e.value*n/t.description.defaultSize.height}))):(t.size.width=n,t.size.height=n,t.parameters.forEach((function(e){e.value=e.value*n/t.description.defaultSize.width})))},e.prototype.createDraggingElement=function(t){var e=document.createElement("DIV");e.setAttribute("class","dxdi-toolbox-drag-item"),document.body.appendChild(e);var n=document.createElementNS(r.svgNS,"svg");n.className.baseVal="dxdi-canvas",e.appendChild(n);var i=this.shapeDescriptionManager.get(t.evt.data),o=this.createShape(i,c.DEFAULT_STROKE_WIDTH,c.DEFAULT_STROKE_WIDTH);return this.drawShape(n,o),e.style.width=s.UnitConverter.twipsToPixels(o.size.width)+2*c.DEFAULT_STROKE_WIDTH+"px",e.style.height=s.UnitConverter.twipsToPixels(o.size.height)+2*c.DEFAULT_STROKE_WIDTH+"px",e},e}(o.Toolbox);e.IconToolbox=f},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o,r=n(62),a=n(10),s=function(t){function e(e,n,i){var o=t.call(this)||this;return o.events=e,o.model=i,o.selection=n,o}return i(e,t),e.prototype.notifySelectionChanged=function(t){this.isUpdateLocked()?this.registerOccurredEvent(o.SelectionChanged):this.raiseSelectionChanged()},e.prototype.notifyToolboxDragStart=function(){this.events.raise("notifyToolboxItemDragStart")},e.prototype.notifyToolboxDragEnd=function(){this.events.raise("notifyToolboxItemDragEnd")},e.prototype.notifyClick=function(t){var e=this;this.tryRaiseUserAction(t,(function(t){return e.events.raise("notifyItemClick",t)}))},e.prototype.notifyDblClick=function(t){var e=this;this.tryRaiseUserAction(t,(function(t){return e.events.raise("notifyItemDblClick",t)}))},e.prototype.setDataSource=function(t){this.dataSource=t},e.prototype.tryRaiseUserAction=function(t,e){var n=this;if(this.isUserAction(t)){var i=this.model.findItem(t.source.key);i&&this.events.raise1((function(t){return e(n.cleanupNativeItem(i.toNative()))}))}},e.prototype.isUserAction=function(t){return t.source&&(t.source.type===a.MouseEventElementType.Shape||t.source.type===a.MouseEventElementType.Connector)},e.prototype.onUpdateUnlocked=function(t){t&o.SelectionChanged&&this.raiseSelectionChanged()},e.prototype.raiseSelectionChanged=function(){var t=this,e=this.selection.getKeys().map((function(e){return t.cleanupNativeItem(t.model.findItem(e).toNative())}));this.events.raise1((function(t){return t.notifySelectionChanged(e)}))},e.prototype.cleanupNativeItem=function(t){var e=this.dataSource;return e&&(e.isAutoGeneratedKey(t.fromKey)&&(t.fromKey=void 0),e.isAutoGeneratedKey(t.key)&&(t.key=void 0),e.isAutoGeneratedKey(t.toKey)&&(t.toKey=void 0)),t},e}(r.BatchUpdatableObject);e.ApiController=s,function(t){t[t.SelectionChanged=1]="SelectionChanged"}(o||(o={}))},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(19),o=n(1),r=function(){function t(){}return t.unitItems={},t.formatUnit=function(t){return t.toString()},t.shapeTexts={},t}();e.DiagramLocalizationService=r,r.unitItems[i.DiagramUnit.In]="in",r.unitItems[i.DiagramUnit.Cm]="cm",r.unitItems[i.DiagramUnit.Px]="px",r.shapeTexts[o.ShapeTypes.Text]="Text",r.shapeTexts[o.ShapeTypes.Rectangle]="Rectangle",r.shapeTexts[o.ShapeTypes.Ellipse]="Ellipse",r.shapeTexts[o.ShapeTypes.Cross]="Cross",r.shapeTexts[o.ShapeTypes.Triangle]="Triangle",r.shapeTexts[o.ShapeTypes.Diamond]="Diamond",r.shapeTexts[o.ShapeTypes.Heart]="Heart",r.shapeTexts[o.ShapeTypes.Pentagon]="Pentagon",r.shapeTexts[o.ShapeTypes.Hexagon]="Hexagon",r.shapeTexts[o.ShapeTypes.Octagon]="Octagon",r.shapeTexts[o.ShapeTypes.Star]="Star",r.shapeTexts[o.ShapeTypes.ArrowLeft]="Left Arrow",r.shapeTexts[o.ShapeTypes.ArrowUp]="Up Arrow",r.shapeTexts[o.ShapeTypes.ArrowRight]="Right Arrow",r.shapeTexts[o.ShapeTypes.ArrowDown]="Down Arrow",r.shapeTexts[o.ShapeTypes.ArrowUpDown]="Up Down Arrow",r.shapeTexts[o.ShapeTypes.ArrowLeftRight]="Left Right Arrow",r.shapeTexts[o.ShapeTypes.Process]="Process",r.shapeTexts[o.ShapeTypes.Decision]="Decision",r.shapeTexts[o.ShapeTypes.Terminator]="Terminator",r.shapeTexts[o.ShapeTypes.PredefinedProcess]="Predefined Process",r.shapeTexts[o.ShapeTypes.Document]="Document",r.shapeTexts[o.ShapeTypes.MultipleDocuments]="Multiple Documents",r.shapeTexts[o.ShapeTypes.ManualInput]="Manual Input",r.shapeTexts[o.ShapeTypes.Preparation]="Preparation",r.shapeTexts[o.ShapeTypes.Data]="Data",r.shapeTexts[o.ShapeTypes.Database]="Database",r.shapeTexts[o.ShapeTypes.HardDisk]="Hard Disk",r.shapeTexts[o.ShapeTypes.InternalStorage]="Internal Storage",r.shapeTexts[o.ShapeTypes.PaperTape]="Paper Tape",r.shapeTexts[o.ShapeTypes.ManualOperation]="Manual Operation",r.shapeTexts[o.ShapeTypes.Delay]="Delay",r.shapeTexts[o.ShapeTypes.StoredData]="Stored Data",r.shapeTexts[o.ShapeTypes.Display]="Display",r.shapeTexts[o.ShapeTypes.Merge]="Merge",r.shapeTexts[o.ShapeTypes.Connector]="Connector",r.shapeTexts[o.ShapeTypes.Or]="Or",r.shapeTexts[o.ShapeTypes.SummingJunction]="Summing Junction",r.shapeTexts[o.ShapeTypes.Container]="Container",r.shapeTexts[o.ShapeTypes.VerticalContainer]="Vertical Container",r.shapeTexts[o.ShapeTypes.HorizontalContainer]="Horizontal Container",r.shapeTexts[o.ShapeTypes.Card]="Person's Name",r.shapeTexts[o.ShapeTypes.CardWithImageOnLeft]="Card with Image on the Left",r.shapeTexts[o.ShapeTypes.CardWithImageOnTop]="Card with Image on the Top",r.shapeTexts[o.ShapeTypes.CardWithImageOnRight]="Card with Image on the Right"}])},t.exports=i()},function(t,e,n){"use strict";var i=r(n(201)),o=r(n(144));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,i,r=c(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"_getCommands",value:function(){return o.default.getMainToolbarCommands(this.option("commands"),this.option("excludeCommands"))}}])&&l(e.prototype,n),i&&l(e,i),a}(i.default);t.exports=f},function(t,e,n){"use strict";var i=r(n(201)),o=r(n(144));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,i,r=c(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"_getCommands",value:function(){return o.default.getHistoryToolbarCommands(this.option("commands"),this._getExcludeCommands())}},{key:"_getExcludeCommands",value:function(){var t=[].concat(this.option("excludeCommands"));return this.option("isMobileView")||t.push(o.default.SHOW_TOOLBOX_COMMAND_NAME),t}}])&&l(e.prototype,n),i&&l(e,i),a}(i.default);t.exports=f},function(t,e,n){"use strict";var i=r(n(201)),o=r(n(144));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,i,r=c(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"_getCommands",value:function(){return o.default.getViewToolbarCommands(this.option("commands"),this.option("excludeCommands"))}}])&&l(e.prototype,n),i&&l(e,i),a}(i.default);t.exports=f},function(t,e,n){"use strict";var i=r(n(201)),o=r(n(144));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,i,r=c(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"_getCommands",value:function(){return o.default.getPropertiesToolbarCommands()}}])&&l(e.prototype,n),i&&l(e,i),a}(i.default);t.exports=f},function(t,e,n){"use strict";var i=c(n(3)),o=c(n(20)),r=c(n(109)),a=c(n(144)),s=c(n(475)),l=c(n(297)),u=n(104);function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return e&&f(t.prototype,e),n&&f(t,n),t}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){g(n,t);var e=v(n);function n(){return h(this,n),e.apply(this,arguments)}return p(n,[{key:"_init",value:function(){m(b(n.prototype),"_init",this).call(this),this._createOnVisibilityChangingAction(),this._createOnInternalCommand(),this._createOnCustomCommand(),this._createOnItemClickAction(),this._tempState=void 0,this._commands=[],this._commandToIndexMap={},this.bar=new C(this)}},{key:"_initMarkup",value:function(){var t=this;m(b(n.prototype),"_initMarkup",this).call(this),this._commands=this._getCommands(),this._commandToIndexMap={},this._fillCommandToIndexMap(this._commands,[]),this._$contextMenuTargetElement=(0,i.default)("<div>").addClass("dx-diagram-touchbar-target").appendTo(this.$element());var e=(0,i.default)("<div>").appendTo(this.$element());this._contextMenuInstance=this._createComponent(e,x,{isTouchBarMode:this._isTouchBarMode(),cssClass:this._isTouchBarMode()?"dx-diagram-touchbar":s.default.getContextMenuCssClass(),closeOnOutsideClick:!1,showEvent:"",focusStateEnabled:!1,items:this._commands,position:this._isTouchBarMode()?{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},of:this._$contextMenuTargetElement}:{},itemTemplate:function(t,e,n){s.default.getContextMenuItemTemplate(this,t,e,n)},onItemClick:function(e){var n=e.itemData;return t._onItemClick(n)},onShowing:function(e){!0!==t._inOnShowing&&(t._inOnShowing=!0,t._onVisibilityChangingAction({visible:!0,component:t}),e.component.option("items",e.component.option("items")),delete t._inOnShowing)}})}},{key:"_show",value:function(t,e,n){if(this._contextMenuInstance.hide(),this._isTouchBarMode()){this._$contextMenuTargetElement.show(),n||(n={x:t,y:e,width:0,height:0});var i=n.width>800?0:(800-n.width)/2;this._$contextMenuTargetElement.css({left:n.x-i,top:n.y-32,width:n.width+2*i,height:n.height+64}),this._contextMenuInstance.show()}else this._contextMenuInstance.option("position",{offset:t+" "+e}),this._contextMenuInstance.show()}},{key:"_hide",value:function(){this._$contextMenuTargetElement.hide(),this._contextMenuInstance.hide()}},{key:"_isTouchBarMode",value:function(){return(0,u.getDiagram)().Browser.TouchUI}},{key:"_onItemClick",value:function(t){var e=!1;this._onItemClickAction&&(e=this._onItemClickAction(t)),e||(s.default.onContextMenuItemClick(this,t,this._executeCommand.bind(this)),this._contextMenuInstance.hide())}},{key:"_executeCommand",value:function(t,e,n){"number"===typeof t?this.bar.raiseBarCommandExecuted(t,n):"string"===typeof t&&this._onInternalCommandAction({command:t}),void 0!==e&&this._onCustomCommandAction({name:e})}},{key:"_createOnInternalCommand",value:function(){this._onInternalCommandAction=this._createActionByOption("onInternalCommand")}},{key:"_createOnCustomCommand",value:function(){this._onCustomCommandAction=this._createActionByOption("onCustomCommand")}},{key:"_getCommands",value:function(){return a.default.getContextMenuCommands(this.option("commands"))}},{key:"_fillCommandToIndexMap",value:function(t,e){var n=this;t.forEach((function(t,i){var o=e.concat([i]);void 0!==t.command&&(n._commandToIndexMap[t.command]=o),Array.isArray(t.items)&&n._fillCommandToIndexMap(t.items,o)}))}},{key:"_setItemEnabled",value:function(t,e){this._setItemVisible(t,e)}},{key:"_setItemVisible",value:function(t,e){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);s.default.updateContextMenuItemVisible(this._contextMenuInstance,n,e)}},{key:"_setItemValue",value:function(t,e){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);s.default.updateContextMenuItemValue(this._contextMenuInstance,n,t,e)}},{key:"_setItemSubItems",value:function(t,e){var n=s.default.getItemOptionText(this._contextMenuInstance,this._commandToIndexMap[t]);s.default.updateContextMenuItems(this._contextMenuInstance,n,t,e)}},{key:"_setEnabled",value:function(t){this._contextMenuInstance.option("disabled",!t)}},{key:"isVisible",value:function(){return this._inOnShowing}},{key:"_createOnVisibilityChangingAction",value:function(){this._onVisibilityChangingAction=this._createActionByOption("onVisibilityChanging")}},{key:"_createOnItemClickAction",value:function(){this._onItemClickAction=this._createActionByOption("onItemClick")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onVisibilityChanging":this._createOnVisibilityChangingAction();break;case"onInternalCommand":this._createOnInternalCommand();break;case"onCustomCommand":this._createOnCustomCommand();break;case"onItemClick":this._createOnItemClickAction();break;case"commands":this._invalidate();break;default:m(b(n.prototype),"_optionChanged",this).call(this,t)}}}]),n}(o.default),x=function(t){g(n,t);var e=v(n);function n(){return h(this,n),e.apply(this,arguments)}return p(n,[{key:"_renderContextMenuOverlay",value:function(){var t=this;m(b(n.prototype),"_renderContextMenuOverlay",this).call(this),this._overlay&&this.option("isTouchBarMode")&&this._overlay&&this._overlay.option("onShown",(function(){(0,i.default)(t._overlay.$content()).parent().addClass("dx-diagram-touchbar-overlay")}))}}]),n}(r.default),C=function(t){g(n,t);var e=v(n);function n(t){return h(this,n),e.call(this,t)}return p(n,[{key:"getCommandKeys",value:function(){return this._getKeys(this._owner._commands)}},{key:"setItemValue",value:function(t,e){this._owner._setItemValue(t,e)}},{key:"setItemEnabled",value:function(t,e){this._owner._setItemEnabled(t,e)}},{key:"setItemVisible",value:function(t,e){this._owner._setItemVisible(t,e)}},{key:"setItemSubItems",value:function(t,e){this._owner._setItemSubItems(t,e)}},{key:"setEnabled",value:function(t){this._owner._setEnabled(t)}},{key:"isVisible",value:function(){return this._owner.isVisible()}}]),n}(l.default);t.exports={DiagramContextMenuWrapper:w,DiagramContextMenu:x}},function(t,e,n){"use strict";var i=s(n(3)),o=s(n(20)),r=s(n(137)),a=n(104);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,o,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_init",value:function(){d(m(l.prototype),"_init",this).call(this),this._onShownAction=this._createActionByOption("onShown"),this._popoverPositionData=[{my:{x:"center",y:"top"},at:{x:"center",y:"bottom"},offset:{x:0,y:5}},{my:{x:"right",y:"center"},at:{x:"left",y:"center"},offset:{x:-5,y:0}},{my:{x:"center",y:"bottom"},at:{x:"center",y:"top"},offset:{x:0,y:-5}},{my:{x:"left",y:"center"},at:{x:"right",y:"center"},offset:{x:5,y:0}}]}},{key:"_initMarkup",value:function(){d(m(l.prototype),"_initMarkup",this).call(this),this._$popoverTargetElement=(0,i.default)("<div>").addClass("dx-diagram-context-toolbox-target").appendTo(this.$element());var t=(0,i.default)("<div>").appendTo(this.$element()),e="dx-diagram-context-toolbox";(0,a.getDiagram)().Browser.TouchUI&&(e+=" dx-diagram-touch-context-toolbox"),this._popoverInstance=this._createComponent(t,r.default,{closeOnOutsideClick:!1,container:this.$element(),elementAttr:{class:e}})}},{key:"_show",value:function(t,e,n,o,r){this._popoverInstance.hide();var a=(0,i.default)("<div>").addClass("dx-diagram-context-toolbox-content");this._$popoverTargetElement.css({left:t+this._popoverPositionData[n].offset.x,top:e+this._popoverPositionData[n].offset.y}).show(),this._popoverInstance.option({position:{my:this._popoverPositionData[n].my,at:this._popoverPositionData[n].at,of:this._$popoverTargetElement},contentTemplate:a,onContentReady:function(){var t=this,e=this.$element().find(".dx-diagram-context-toolbox-content");this._onShownAction({category:o,callback:r,$element:e,hide:function(){return t._popoverInstance.hide()}})}.bind(this)}),this._popoverInstance.show()}},{key:"_hide",value:function(){this._$popoverTargetElement.hide(),this._popoverInstance.hide()}}])&&c(e.prototype,n),o&&c(e,o),l}(o.default);t.exports=g},function(t,e,n){"use strict";var i=a(n(3)),o=a(n(20)),r=a(n(12));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=n(48),g=n(0).extend,_=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(s,t);var e,n,o,a=h(s);function s(){return l(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"_init",value:function(){c(p(s.prototype),"_init",this).call(this),this._command=void 0,this._isShown=!1,this._createOnGetContentOption(),this._createOnHiddenOption()}},{key:"_initMarkup",value:function(){c(p(s.prototype),"_initMarkup",this).call(this),this._command=this.option("command"),this._$popupElement=(0,i.default)("<div>").appendTo(this.$element()),this._popup=this._createComponent(this._$popupElement,m,{title:this.option("title"),maxWidth:this.option("maxWidth"),height:this.option("height"),toolbarItems:this.option("toolbarItems"),onHidden:this._onHiddenAction})}},{key:"_clean",value:function(){delete this._popup,this._$popupElement&&this._$popupElement.remove()}},{key:"_getDefaultOptions",value:function(){return g(c(p(s.prototype),"_getDefaultOptions",this).call(this),{title:"",maxWidth:500,height:"auto",toolbarItems:this._getToolbarItems()})}},{key:"_getToolbarItems",value:function(){return[this._getOkToolbarItem(),this._getCancelToolbarItem()]}},{key:"_getOkToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.default.format("dxDiagram-dialogButtonOK"),onClick:function(){this._command.execute(this._commandParameter),this._hide()}.bind(this)}}}},{key:"_getCancelToolbarItem",value:function(){return{widget:"dxButton",location:"after",toolbar:"bottom",options:{text:r.default.format("dxDiagram-dialogButtonCancel"),onClick:this._hide.bind(this)}}}},{key:"_optionChanged",value:function(t){switch(t.name){case"title":case"maxWidth":case"height":case"toolbarItems":this._popup.option(t.name,t.value);break;case"command":this._command=t.value;break;case"onGetContent":this._createOnGetContentOption();break;case"onHidden":this._createOnHiddenOption();break;default:c(p(s.prototype),"_optionChanged",this).call(this,t)}}},{key:"_createOnGetContentOption",value:function(){this._onGetContentAction=this._createActionByOption("onGetContent")}},{key:"_createOnHiddenOption",value:function(){this._onHiddenAction=this._createActionByOption("onHidden")}},{key:"_hide",value:function(){this._popup.hide(),this._isShown=!1}},{key:"_show",value:function(){this._popup.content().empty().append(this._onGetContentAction()),this._popup.show(),this._isShown=!0}},{key:"isVisible",value:function(){return this._isShown}}])&&u(e.prototype,n),o&&u(e,o),s}(o.default);t.exports=_},function(t,e,n){"use strict";var i=s(n(3)),o=s(n(20)),r=s(n(116)),a=n(104);function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,o,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_init",value:function(){d(m(l.prototype),"_init",this).call(this);var t=(0,a.getDiagram)().EventDispatcher;this.onScroll=new t,this._createOnCreateDiagramAction()}},{key:"_initMarkup",value:function(){var t=this;d(m(l.prototype),"_initMarkup",this).call(this);var e=(0,i.default)("<div>").appendTo(this.$element());this._scrollView=this._createComponent(e,r.default,{direction:"both",bounceEnabled:!1,onScroll:function(e){var n=e.scrollOffset;t._raiseOnScroll(n.left,n.top)}}),this._onCreateDiagramAction({$parent:(0,i.default)(this._scrollView.content()),scrollView:this})}},{key:"setScroll",value:function(t,e){this._scrollView.scrollTo({left:t,top:e})}},{key:"offsetScroll",value:function(t,e){this._scrollView.scrollBy({left:t,top:e})}},{key:"getSize",value:function(){var t=(0,a.getDiagram)().Size,e=this._scrollView.$element();return new t(Math.floor(e.width()),Math.floor(e.height()))}},{key:"getScrollContainer",value:function(){return this._scrollView.$element()[0]}},{key:"getScrollBarWidth",value:function(){return 0}},{key:"detachEvents",value:function(){}},{key:"_raiseOnScroll",value:function(t,e){var n=(0,a.getDiagram)().Point;this.onScroll.raise("notifyScrollChanged",(function(){return new n(t,e)}))}},{key:"_createOnCreateDiagramAction",value:function(){this._onCreateDiagramAction=this._createActionByOption("onCreateDiagram")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onCreateDiagram":this._createOnCreateDiagramAction();break;default:d(m(l.prototype),"_optionChanged",this).call(this,t)}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.default);t.exports=g},function(t,e,n){"use strict";var i,o=n(12),r=(i=o)&&i.__esModule?i:{default:i};var a={getDefaultGroups:function(){return this._groups||(this._groups={general:{category:"general",title:r.default.format("dxDiagram-categoryGeneral")},flowchart:{category:"flowchart",title:r.default.format("dxDiagram-categoryFlowchart")},orgChart:{category:"orgChart",title:r.default.format("dxDiagram-categoryOrgChart")},containers:{category:"containers",title:r.default.format("dxDiagram-categoryContainers")},custom:{category:"custom",title:r.default.format("dxDiagram-categoryCustom")}})},getGroups:function(t){var e=this.getDefaultGroups();return t?t.map((function(t){return"string"===typeof t?{category:t,title:e[t]&&e[t].title||t}:t})).filter((function(t){return t})):[e.general,e.flowchart,e.orgChart,e.containers]}};t.exports=a},function(t,e,n){"use strict";var i=p(n(3)),o=n(0),r=n(10),a=n(7),s=p(n(12)),l=p(n(102)),u=p(n(353)),c=p(n(116)),d=p(n(200)),h=n(104),f=p(n(476));function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function v(t,e,n){return(v="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=x(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(m,t);var e,n,f,p=b(m);function m(){return g(this,m),p.apply(this,arguments)}return e=m,(n=[{key:"_init",value:function(){v(x(m.prototype),"_init",this).call(this),this._toolboxes=[],this._filterText="",this._createOnShapeCategoryRenderedAction(),this._createOnFilterChangedAction()}},{key:"_getPopupClass",value:function(){return"dx-diagram-toolbox-popup"}},{key:"_getPopupHeight",value:function(){return this.isMobileView()?"100%":v(x(m.prototype),"_getPopupHeight",this).call(this)}},{key:"_getPopupMaxHeight",value:function(){return this.isMobileView()?"100%":v(x(m.prototype),"_getPopupMaxHeight",this).call(this)}},{key:"_getPopupMinHeight",value:function(){return 130}},{key:"_getPopupPosition",value:function(){var t={my:"left top",at:"left top",of:this.option("offsetParent")};return this.isMobileView()?t:(0,o.extend)(t,{offset:this.option("offsetX")+" "+this.option("offsetY")})}},{key:"_getPopupContainer",value:function(){return this.isMobileView()?v(x(m.prototype),"_getPopupContainer",this).call(this):void 0}},{key:"_getPopupAnimation",value:function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"left",from:{position:{my:"left top",at:"left top",of:t}},to:{position:{my:"right top",at:"left top",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"right",from:{position:{my:"right top",at:"left top",of:t}},to:{position:{my:"left top",at:"left top",of:t}}})}:v(x(m.prototype),"_getPopupAnimation",this).call(this)}},{key:"_getPopupOptions",value:function(){var t=v(x(m.prototype),"_getPopupOptions",this).call(this);return this.isMobileView()?t:(0,o.extend)(t,{showTitle:!0,toolbarItems:[{widget:"dxButton",location:"center",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"diagram-toolbox-drag",stylingMode:"outlined",type:"normal"}}]})}},{key:"_renderPopupContent",value:function(t){var e=(0,i.default)("<div>").addClass("dx-diagram-toolbox-input-container").appendTo(t);this._renderSearchInput(e);var n=(0,r.hasWindow)()?"calc(100% - "+this._searchInput.$element().height()+"px)":"100%",o=(0,i.default)("<div>").addClass("dx-diagram-toolbox-panel").appendTo(t).height(n);this._renderScrollView(o)}},{key:"updateMaxHeight",value:function(){if(!this.isMobileView()){var t=6;this._popup&&(t+=this._getPopupTitle().outerHeight()),this._accordion&&(t+=this._accordion.$element().outerHeight()),this._searchInput&&(t+=this._searchInput.$element().outerHeight()),this.option("maxHeight",t)}}},{key:"_renderSearchInput",value:function(t){var e=this,n=(0,i.default)("<div>").addClass("dx-diagram-toolbox-input").appendTo(t);this._searchInput=this._createComponent(n,l.default,{stylingMode:"outlined",placeholder:s.default.format("dxDiagram-uiSearch"),onValueChanged:function(t){e._onInputChanged(t.value)},valueChangeEvent:"keyup",buttons:[{name:"search",location:"after",options:{activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,icon:"search",stylingMode:"outlined",type:"normal",onClick:function(){e._searchInput.focus()}}}]})}},{key:"_renderScrollView",value:function(t){var e=(0,i.default)("<div>").appendTo(t);this._scrollView=this._createComponent(e,c.default);var n=(0,i.default)("<div>").appendTo(this._scrollView.content());this._renderAccordion(n)}},{key:"_getAccordionDataSource",value:function(){for(var t=this,e=[],n=this.option("toolboxGroups"),o=0;o<n.length;o++){var r=n[o].category,a={category:r,title:n[o].title||r,expanded:n[o].expanded,displayMode:n[o].displayMode,shapes:n[o].shapes,onTemplate:function(e,n,o){var r=(0,i.default)(n);t._onShapeCategoryRenderedAction({category:o.category,displayMode:o.displayMode,dataToggle:"shape-toolbox-tooltip",shapes:o.shapes,$element:r}),t._toolboxes.push(r),""!==t._filterText&&t._onFilterChangedAction({text:t._filterText,filteringToolboxes:t._toolboxes.length-1}),t._createTooltips(r.find('[data-toggle="shape-toolbox-tooltip"]'))}};e.push(a)}return e}},{key:"_createTooltips",value:function(t){var e=this;if(!(0,h.getDiagram)().Browser.TouchUI){var n=this.$element();t.each((function(t,o){var r=(0,i.default)(o),a=r.attr("title");if(a){var s=(0,i.default)("<div>").html(a).appendTo(n);e._createComponent(s,d.default,{target:r.get(0),showEvent:"mouseenter",hideEvent:"mouseleave",position:"top",animation:{show:{type:"fade",from:0,to:1,delay:500},hide:{type:"fade",from:1,to:0,delay:100}}})}}))}}},{key:"_renderAccordion",value:function(t){var e=this,n=this._getAccordionDataSource();this._accordion=this._createComponent(t,u.default,{multiple:!0,animationDuration:0,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,collapsible:!0,displayExpr:"title",dataSource:n,disabled:this.option("disabled"),itemTemplate:function(t,n,i){t.onTemplate(e,i,t)},onSelectionChanged:function(t){e._updateScrollAnimateSubscription(t.component)},onContentReady:function(t){for(var i=0;i<n.length;i++)!1===n[i].expanded?t.component.collapseItem(i):!0===n[i].expanded&&t.component.expandItem(i);e._updateScrollAnimateSubscription(t.component)}})}},{key:"_updateScrollAnimateSubscription",value:function(t){var e=this;t._deferredAnimate=new a.Deferred,t._deferredAnimate.done((function(){e.updateMaxHeight(),e._scrollView.update(),e._updateScrollAnimateSubscription(t)}))}},{key:"_raiseToolboxDragStart",value:function(){this._scrollView.$element().addClass("dx-skip-gesture-event")}},{key:"_raiseToolboxDragEnd",value:function(){this._scrollView.$element().removeClass("dx-skip-gesture-event")}},{key:"_onInputChanged",value:function(t){var e=this;this._filterText=t,this._onFilterChangedAction({text:this._filterText,filteringToolboxes:this._toolboxes.map((function(t,e){return e}))}),this._toolboxes.forEach((function(t){var n=(0,i.default)(t);e._createTooltips(n.find('[data-toggle="shape-toolbox-tooltip"]'))})),this.updateMaxHeight(),this._scrollView.update()}},{key:"_createOnShapeCategoryRenderedAction",value:function(){this._onShapeCategoryRenderedAction=this._createActionByOption("onShapeCategoryRendered")}},{key:"_createOnFilterChangedAction",value:function(){this._onFilterChangedAction=this._createActionByOption("onFilterChanged")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onShapeCategoryRendered":this._createOnShapeCategoryRenderedAction();break;case"onFilterChanged":this._createOnFilterChangedAction();break;case"toolboxGroups":this._accordion.option("dataSource",this._getAccordionDataSource());break;default:v(x(m.prototype),"_optionChanged",this).call(this,t)}}}])&&_(e.prototype,n),f&&_(e,f),m}(f.default);t.exports=C},function(t,e,n){"use strict";var i=u(n(3)),o=n(0),r=u(n(116)),a=u(n(293)),s=u(n(476)),l=u(n(144));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,s,u=m(c);function c(){return d(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"_init",value:function(){f(_(c.prototype),"_init",this).call(this),this._commandTabs=l.default.getPropertyPanelCommandTabs(this.option("propertyTabs")),this._createOnCreateToolbar(),this._createOnSelectedGroupChanged()}},{key:"_initMarkup",value:function(){this._toolbars=[],this._selectedToolbar=void 0,f(_(c.prototype),"_initMarkup",this).call(this)}},{key:"_getPopupClass",value:function(){var t="dx-diagram-properties-popup";return this._hasTabPanel()||(t+=" dx-diagram-properties-popup-notabs"),t}},{key:"_getPopupWidth",value:function(){return this.isMobileView()?"100%":420}},{key:"_getPopupHeight",value:function(){return 340}},{key:"_getPopupPosition",value:function(){var t=this.option("offsetParent");return this.isMobileView()?{my:"left bottom",at:"left bottom",of:t}:{my:"right bottom",at:"right bottom",of:t,offset:"-"+this.option("offsetX")+" -"+this.option("offsetY")}}},{key:"_getPopupContainer",value:function(){return this.isMobileView()?f(_(c.prototype),"_getPopupContainer",this).call(this):void 0}},{key:"_getPopupAnimation",value:function(){var t=this.option("offsetParent");return this.isMobileView()?{hide:this._getPopupSlideAnimationObject({direction:"bottom",from:{position:{my:"left bottom",at:"left bottom",of:t}},to:{position:{my:"left top",at:"left bottom",of:t}}}),show:this._getPopupSlideAnimationObject({direction:"top",from:{position:{my:"left top",at:"left bottom",of:t}},to:{position:{my:"left bottom",at:"left bottom",of:t}}})}:f(_(c.prototype),"_getPopupAnimation",this).call(this)}},{key:"_getPopupOptions",value:function(){return(0,o.extend)(f(_(c.prototype),"_getPopupOptions",this).call(this),{showTitle:this.isMobileView(),showCloseButton:this.isMobileView()})}},{key:"_renderPopupContent",value:function(t){if(this._commandTabs.length){var e=(0,i.default)("<div>").addClass("dx-diagram-properties-panel").appendTo(t);this._hasTabPanel()?this._renderTabPanel(e):this._renderTabContent(e,this._commandTabs[0],0,!0)}}},{key:"_hasTabPanel",value:function(){return this._commandTabs.length>1}},{key:"_renderTabPanel",value:function(t){var e=this,n=(0,i.default)("<div>").appendTo(t);this._tabPanel=this._createComponent(n,a.default,{focusStateEnabled:!1,dataSource:this._commandTabs,itemTemplate:function(t,n,i){e._renderTabContent(i,t,n)},onSelectionChanged:function(t){e._onSelectedGroupChangedAction(),e._onPointerUpAction()},onContentReady:function(t){e._popup.option("height",t.component.$element().height()+e._getVerticalPaddingsAndBorders()),e._firstScrollView&&(e._scrollViewHeight=e._firstScrollView.$element().outerHeight(),e._firstScrollView.option("height",e._scrollViewHeight))}})}},{key:"_renderTabContent",value:function(t,e,n,o){var a=(0,i.default)("<div>").appendTo(t),s=this._createComponent(a,r.default,{height:this._scrollViewHeight});this._renderTabInnerContent(s.content(),e,n),o?this._popup.option("height",s.$element().height()+this._getVerticalPaddingsAndBorders()):this._firstScrollView=this._firstScrollView||s}},{key:"_renderTabInnerContent",value:function(t,e,n){var i=this;e.groups?e.groups.forEach((function(e,o){i._renderTabGroupContent(t,n,e.title,e.commands)})):e.commands&&this._renderTabGroupContent(t,n,void 0,e.commands)}},{key:"_renderTabGroupContent",value:function(t,e,n,o){n&&(0,i.default)("<div>").addClass("dx-diagram-properties-panel-group-title").appendTo(t).text(n);var r={$parent:(0,i.default)("<div>").addClass("dx-diagram-properties-panel-group-toolbar").appendTo(t),commands:o};this._onCreateToolbarAction(r),this._toolbars[e]||(this._toolbars[e]=[]),this._toolbars[e].push(r.toolbar),this._selectedToolbar=r.toolbar}},{key:"getActiveToolbars",value:function(){var t=this._tabPanel?this._tabPanel.option("selectedIndex"):0;return this._toolbars[t]}},{key:"_createOnCreateToolbar",value:function(){this._onCreateToolbarAction=this._createActionByOption("onCreateToolbar")}},{key:"_createOnSelectedGroupChanged",value:function(){this._onSelectedGroupChangedAction=this._createActionByOption("onSelectedGroupChanged")}},{key:"_optionChanged",value:function(t){switch(t.name){case"onCreateToolbar":this._createOnCreateToolbar();break;case"onSelectedGroupChanged":this._createOnSelectedGroupChanged();break;case"propertyTabs":this._invalidate();break;default:f(_(c.prototype),"_optionChanged",this).call(this,t)}}}])&&h(e.prototype,n),s&&h(e,s),c}(s.default);t.exports=v},function(t,e,n){"use strict";var i,o=n(297),r=(i=o)&&i.__esModule?i:{default:i},a=n(104);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(r,t);var e,n,i,o=c(r);function r(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),e=o.call(this,t);var n=(0,a.getDiagram)().DiagramCommand;return e.commandOptions={},e.commandOptions[n.Fullscreen]="fullScreen",e.commandOptions[n.ZoomLevel]=function(t){"object"===s(this._getOption("zoomLevel"))?this._setOption("zoomLevel.value",t):this._setOption("zoomLevel",t)},e.commandOptions[n.SwitchAutoZoom]=function(t){var e=(0,a.getDiagram)().AutoZoomMode;switch(t){case e.FitContent:this._setOption("autoZoomMode","fitContent");break;case e.FitToWidth:this._setOption("autoZoomMode","fitWidth");break;case e.Disabled:this._setOption("autoZoomMode","disabled")}},e.commandOptions[n.ToggleSimpleView]="simpleView",e.commandOptions[n.ShowGrid]="showGrid",e.commandOptions[n.SnapToGrid]="snapToGrid",e.commandOptions[n.GridSize]=function(t){"object"===s(this._getOption("gridSize"))?this._setOption("gridSize.value",t):this._setOption("gridSize",t)},e.commandOptions[n.ViewUnits]="viewUnits",e.commandOptions[n.PageSize]=function(t){var e=this._getOption("pageSize");void 0!==e&&e.width===t.width&&e.height===t.height||this._setOption("pageSize",t)},e.commandOptions[n.PageLandscape]=function(t){this._setOption("pageOrientation",t?"landscape":"portrait")},e.commandOptions[n.ViewUnits]=function(t){var e=(0,a.getDiagram)().DiagramUnit;switch(t){case e.In:this._setOption("viewUnits","in");break;case e.Cm:this._setOption("viewUnits","cm");break;case e.Px:this._setOption("viewUnits","px")}},e.commandOptions[n.PageColor]="pageColor",e._updateLock=0,e}return e=r,(n=[{key:"getCommandKeys",value:function(){return Object.keys(this.commandOptions).map((function(t){return parseInt(t)}))}},{key:"setItemValue",value:function(t,e){if(!this.isUpdateLocked()){this.beginUpdate();try{"function"===typeof this.commandOptions[t]?this.commandOptions[t].call(this,e):this._setOption(this.commandOptions[t],e)}finally{this.endUpdate()}}}},{key:"beginUpdate",value:function(){this._updateLock++}},{key:"endUpdate",value:function(){this._updateLock--}},{key:"isUpdateLocked",value:function(){return this._updateLock>0}},{key:"_getOption",value:function(t){return this._owner.option(t)}},{key:"_setOption",value:function(t,e){this._owner.option(t,e)}}])&&l(e.prototype,n),i&&l(e,i),r}(r.default);t.exports=f},function(t,e,n){"use strict";var i=s(n(3)),o=n(104),r=s(n(12)),a=n(10);function s(t){return t&&t.__esModule?t:{default:t}}var l=n(298),u={getConfigurations:function(){var t=(0,o.getDiagram)().DiagramCommand;return this.dialogList||(this.dialogList=[{command:t.InsertShapeImage,title:r.default.format("dxDiagram-dialogInsertShapeImageTitle"),onGetContent:this.getChangeImageDialogContent},{command:t.EditShapeImage,title:r.default.format("dxDiagram-dialogEditShapeImageTitle"),onGetContent:this.getChangeImageDialogContent}])},getChangeImageDialogContent:function(t){var e=(0,i.default)("<div>");return t.component._createComponent(e,l,{selectButtonText:r.default.format("dxDiagram-dialogEditShapeImageSelectButton"),accept:"image/*",uploadMode:"useForm",onValueChanged:function(e){var n=new((0,a.getWindow)().FileReader);n.onload=function(e){t.component._commandParameter=e.target.result},n.readAsDataURL(e.value[0])}}),e},getDialogParameters:function(t){var e=this.getConfigurations().map((function(t){return t.command})).indexOf(t);return e>=0?this.getConfigurations()[e]:null}};t.exports=u},function(t,e,n){"use strict";var i,o=n(478);function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(r,t);var e,n,i,o=u(r);function r(){return a(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_getKeyExpr",value:function(){return this._diagramWidget._createOptionGetter("nodes.keyExpr")}},{key:"_getItemsExpr",value:function(){return this._diagramWidget._createOptionGetter("nodes.itemsExpr")}},{key:"_getContainerChildrenExpr",value:function(){return this._diagramWidget._createOptionGetter("nodes.containerChildrenExpr")}}])&&s(e.prototype,n),i&&s(e,i),r}(((i=o)&&i.__esModule?i:{default:i}).default);t.exports=h},function(t,e,n){"use strict";var i,o=n(478);function r(t){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(r,t);var e,n,i,o=u(r);function r(){return a(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_getKeyExpr",value:function(){return this._diagramWidget._createOptionGetter("edges.keyExpr")}}])&&s(e.prototype,n),i&&s(e,i),r}(((i=o)&&i.__esModule?i:{default:i}).default);t.exports=h},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(223),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},e._templateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Draggable=l,l.propTypes={autoScroll:r.bool,clone:r.bool,cursorOffset:r.oneOfType([r.object,r.string]),dragDirection:r.oneOf(["both","horizontal","vertical"]),elementAttr:r.object,group:r.string,handle:r.string,height:r.oneOfType([r.func,r.number,r.string]),onDisposing:r.func,onDragEnd:r.func,onDragMove:r.func,onDragStart:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,scrollSensitivity:r.number,scrollSpeed:r.number,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cursorOffset",e}(s.default);e.CursorOffset=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(868),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened"},e._templateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.Drawer=a,a.propTypes={activeStateEnabled:r.bool,animationDuration:r.number,animationEnabled:r.bool,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxSize:r.number,minSize:r.number,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,opened:r.bool,openedStateMode:r.oneOf(["overlap","shrink","push"]),position:r.oneOf(["left","right","top","bottom","before","after"]),revealMode:r.oneOf(["slide","expand"]),rtlEnabled:r.bool,shading:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";t.exports=n(300),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(239),o=l(i),r=l(n(3)),a=l(n(33)),s=n(0);function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,o,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_useDefaultAnimation",value:function(){return!0}},{key:"_defaultPositionRendering",value:function(t,e,n){var o=this,s=this.getDrawerInstance();if((0,r.default)(s.content()).css(s.isHorizontalDirection()?"width":"height",t.maxSize),n){var l={$element:t.$content,position:t.contentPosition,direction:s.calcTargetPosition(),duration:s.option("animationDuration"),complete:function(){o._elementsAnimationCompleteHandler()}};i.animation.moveTo(l)}else s.isHorizontalDirection()?a.default.move(t.$content,{left:t.contentPosition}):a.default.move(t.$content,{top:t.contentPosition})}},{key:"_getPositionRenderingConfig",value:function(t){return(0,s.extend)(h(g(u.prototype),"_getPositionRenderingConfig",this).call(this,t),{contentPosition:this._getPanelSize(t)*this.getDrawerInstance()._getPositionCorrection(),maxSize:this._getPanelSize(!0)})}}])&&d(e.prototype,n),o&&d(e,o),u}(o.default);t.exports=_},function(t,e,n){"use strict";var i=n(239),o=l(i),r=l(n(3)),a=n(0),s=n(46);function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,o,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_slidePositionRendering",value:function(t,e,n){if(n){var o=(0,a.extend)(t.defaultAnimationConfig,{$element:t.$panel,margin:t.panelOffset,duration:this.getDrawerInstance().option("animationDuration"),direction:t.direction});i.animation.margin(o)}else t.$panel.css("margin"+(0,s.camelize)(t.direction,!0),t.panelOffset)}},{key:"_expandPositionRendering",value:function(t,e,n){var o=this.getDrawerInstance();if(n){var s=(0,a.extend)(t.defaultAnimationConfig,{$element:t.$panel,size:t.size,duration:o.option("animationDuration"),direction:t.direction});i.animation.size(s)}else o.isHorizontalDirection()?(0,r.default)(t.$panel).css("width",t.size):(0,r.default)(t.$panel).css("height",t.size)}},{key:"_getPositionRenderingConfig",value:function(t){return(0,a.extend)(h(g(u.prototype),"_getPositionRenderingConfig",this).call(this,t),{panelOffset:this._getPanelOffset(t)})}},{key:"isViewContentFirst",value:function(t,e){return(e?"left"===t:"right"===t)||"bottom"===t}}])&&d(e.prototype,n),o&&d(e,o),u}(o.default);t.exports=_},function(t,e,n){"use strict";var i=n(239),o=d(i),r=d(n(3)),a=d(n(33)),s=d(n(80)),l=n(4),u=n(0),c=n(46);function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(h,t);var e,n,o,d=_(h);function h(){return f(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"renderPanelContent",value:function(t){var e=this;delete this._initialPosition;var n=this.getDrawerInstance(),i=n.option(),o=i.opened,r=i.minSize;n._overlay=n._createComponent(n.content(),s.default,{shading:!1,container:n.getOverlayTarget(),position:this._getOverlayPosition(),width:o?"auto":r||0,height:"100%",templatesRenderAsynchronously:n.option("templatesRenderAsynchronously"),animation:{show:{duration:0}},onPositioned:function(t){this._fixOverlayPosition(t.component.$content())}.bind(this),contentTemplate:n.option("template"),onContentReady:function(n){t.resolve(),e._processOverlayZIndex(n.component.content())},visible:!0,propagateOutsideClick:!0})}},{key:"_fixOverlayPosition",value:function(t){var e=(0,l.ensureDefined)(this._initialPosition,{left:0,top:0});a.default.move(t,e),"right"===this.getDrawerInstance().calcTargetPosition()&&t.css("left","auto")}},{key:"_getOverlayPosition",value:function(){var t=this.getDrawerInstance(),e=t.calcTargetPosition(),n={};switch(e){case"left":n={my:"top left",at:"top left"};break;case"right":n={my:t.option("rtlEnabled")?"top left":"top right",at:"top right"};break;case"top":case"bottom":n={my:e,at:e}}return n.of=t.getOverlayTarget(),n}},{key:"refreshPanelElementSize",value:function(t){var e=this.getDrawerInstance(),n=e.getOverlay();e.isHorizontalDirection()?(n.option("height","100%"),n.option("width",t?e.getRealPanelWidth():this._getPanelSize(e.option("opened")))):(n.option("width",n.option("container").width()),n.option("height",t?e.getRealPanelHeight():this._getPanelSize(e.option("opened"))))}},{key:"_setupContent",value:function(t,e){t.css("padding"+(0,c.camelize)(e,!0),this.getDrawerInstance().option("minSize")),t.css("transform","inherit")}},{key:"_slidePositionRendering",value:function(t,e,n){var o=this.getDrawerInstance();this._initialPosition=o.isHorizontalDirection()?{left:t.panelOffset}:{top:t.panelOffset};var r=o.calcTargetPosition();if(this._setupContent(t.$content,r,t.drawer),n){var s=(0,u.extend)(t.defaultAnimationConfig,{$element:t.$panel,position:t.panelOffset,duration:o.option("animationDuration"),direction:r});i.animation.moveTo(s)}else o.isHorizontalDirection()?a.default.move(t.$panel,{left:t.panelOffset}):a.default.move(t.$panel,{top:t.panelOffset})}},{key:"_expandPositionRendering",value:function(t,e,n){var o=this.getDrawerInstance();this._initialPosition={left:0};var s=o.calcTargetPosition();if(this._setupContent(t.$content,s),a.default.move(t.$panelOverlayContent,{left:0}),n){var l=(0,u.extend)(t.defaultAnimationConfig,{$element:t.$panelOverlayContent,size:t.size,duration:o.option("animationDuration"),direction:s,marginTop:t.marginTop});i.animation.size(l)}else o.isHorizontalDirection()?(0,r.default)(t.$panelOverlayContent).css("width",t.size):((0,r.default)(t.$panelOverlayContent).css("height",t.size),"bottom"===s&&(0,r.default)(t.$panelOverlayContent).css("marginTop",t.marginTop))}},{key:"_getPositionRenderingConfig",value:function(t){var e=this.getDrawerInstance(),n=m(y(h.prototype),"_getPositionRenderingConfig",this).call(this,t);return(0,u.extend)(n,{panelOffset:this._getPanelOffset(t)*this.getDrawerInstance()._getPositionCorrection(),$panelOverlayContent:e.getOverlay().$content(),marginTop:e.getRealPanelHeight()-n.size})}},{key:"getPanelContent",value:function(){return(0,r.default)(this.getDrawerInstance().getOverlay().content())}},{key:"_processOverlayZIndex",value:function(t){var e=(0,r.default)(t).get(0).style.zIndex||1;this.getDrawerInstance().setZIndex(e)}},{key:"isViewContentFirst",value:function(t){return"right"===t||"bottom"===t}}])&&p(e.prototype,n),o&&p(e,o),h}(o.default);t.exports=b},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(873),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.DropDownBox=l,l.propTypes={acceptCustomValue:r.bool,accessKey:r.string,activeStateEnabled:r.bool,buttons:r.array,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),displayValueFormatter:r.func,dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,items:r.array,maxLength:r.oneOfType([r.number,r.string]),name:r.string,onChange:r.func,onClosed:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOpened:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,showClearButton:r.bool,showDropDownButton:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueChangeEvent:r.string,valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=x,e.default=l},function(t,e,n){"use strict";var i=b(n(221)),o=b(n(272)),r=n(4),a=n(2),s=n(5),l=b(n(91)),u=n(7),c=b(n(3)),d=b(n(6)),h=n(0),f=n(296),p=b(n(8)),m=n(11),g=n(158),_=b(n(18)),v=n(15),y=n(17);function b(t){return t&&t.__esModule?t:{default:t}}var w=_.default.real(),x=i.default.inherit({_supportedKeys:function(){return(0,h.extend)({},this.callBase(),{tab:function(t){if(this.option("opened")){var e=this._getTabbableElements(),n=t.shiftKey?e.last():e.first();n&&d.default.trigger(n,"focus"),t.preventDefault()}}})},_getTabbableElements:function(){return this._getElements().filter(l.default.tabbable)},_getElements:function(){return(0,c.default)(this.content()).find("*")},_getDefaultOptions:function(){return(0,h.extend)(this.callBase(),{acceptCustomValue:!1,contentTemplate:"content",openOnFieldClick:!0,displayValueFormatter:function(t){return Array.isArray(t)?t.join(", "):t},useHiddenSubmitElement:!0})},_getAnonymousTemplateName:function(){return"content"},_initTemplates:function(){this.callBase()},_initMarkup:function(){this._initDataExpressions(),this.$element().addClass("dx-dropdownbox"),this.callBase()},_setSubmitValue:function(){var t=this.option("value"),e=this._shouldUseDisplayValue(t)?this._displayGetter(t):t;this._getSubmitElement().val(e)},_shouldUseDisplayValue:function(t){return"this"===this.option("valueExpr")&&(0,a.isObject)(t)},_renderInputValue:function(){var t=this.callBase.bind(this),e=[];if(!this._dataSource)return t(e),(new u.Deferred).resolve();var n=this._getCurrentValue(),i=(0,r.ensureDefined)(n,[]);i=Array.isArray(i)?i:[i];var o=(0,s.map)(i,function(t){return this._loadItem(t).always(function(n){var i=this._displayGetter(n);e.push((0,r.ensureDefined)(i,t))}.bind(this))}.bind(this));return u.when.apply(this,o).always(function(){this.option("displayValue",e),t(e.length&&e)}.bind(this))},_loadItem:function(t){var e=new u.Deferred,n=this,i=(0,r.grep)(this.option("items")||[],function(e){return this._isValueEquals(this._valueGetter(e),t)}.bind(this))[0];return void 0!==i?e.resolve(i):this._loadValue(t).done((function(t){e.resolve(t)})).fail((function(i){n.option("acceptCustomValue")?e.resolve(t):e.reject()})),e.promise()},_updatePopupWidth:function(){this._setPopupOption("width",this.$element().outerWidth())},_popupElementTabHandler:function(t){if("tab"===(0,m.normalizeKeyName)(t)){var e=this._getTabbableElements().first().get(0),n=this._getTabbableElements().last().get(0),i=t.originalEvent.target,o=!(i!==e||!t.shift),r=!(i!==n||t.shift);(o||r)&&(this.close(),d.default.trigger(this._input(),"focus"),o&&t.originalEvent.preventDefault())}},_renderPopup:function(t){var e=this;this.callBase(),this.option("focusStateEnabled")&&g.keyboard.on(this.content(),null,(function(t){return e._popupElementTabHandler(t)}))},_renderPopupContent:function(){if("content"!==this.option("contentTemplate")){var t=this._getTemplateByOption("contentTemplate");if(t&&this.option("contentTemplate")){var e=this._popup.$content(),n={value:this._fieldRenderData(),component:this};e.empty(),t.render({container:(0,y.getPublicElement)(e),model:n})}}},_canShowVirtualKeyboard:function(){return w.mac},_isNestedElementActive:function(){var t=(0,v.getActiveElement)();return t&&this._popup.$content().get(0).contains(t)},_shouldCloseOnTargetScroll:function(){return"desktop"===w.deviceType&&this._canShowVirtualKeyboard()&&this._isNestedElementActive()},_popupHiddenHandler:function(){this.callBase(),this._popupPosition=void 0},_popupPositionedHandler:function(t){this.callBase(t),this._popupPosition=t.position},_getDefaultPopupPosition:function(t){var e=this.callBase(t);return{my:e.my,at:e.at,offset:{v:-1},collision:"flipfit"}},_popupConfig:function(){var t=this,e=this.option().focusStateEnabled;return(0,h.extend)(this.callBase(),{width:function(){return this.$element().outerWidth()}.bind(this),height:"auto",tabIndex:-1,dragEnabled:!1,focusStateEnabled:e,contentTemplate:"content",closeOnTargetScroll:this._shouldCloseOnTargetScroll.bind(this),position:(0,h.extend)(this.option("popupPosition"),{of:this.$element()}),onKeyboardHandled:function(e){return t.option("focusStateEnabled")&&t._popupElementTabHandler(e)},maxHeight:function(){var t,e=null===(t=this._popupPosition)||void 0===t?void 0:t.v.location;return(0,f.getElementMaxHeightByWindow)(this.$element(),e)}.bind(this)})},_popupShownHandler:function(){this.callBase();var t=this._getTabbableElements().first();d.default.trigger(t,"focus")},_setCollectionWidgetOption:r.noop,_optionChanged:function(t){switch(this._dataExpressionOptionChanged(t),t.name){case"width":this.callBase(t),this._popup&&this._popup.repaint();break;case"dataSource":this._renderInputValue();break;case"displayValue":this.option("text",t.value);break;case"displayExpr":this._renderValue();break;case"contentTemplate":this._invalidate();break;default:this.callBase(t)}}}).include(o.default);(0,p.default)("dxDropDownBox",x),t.exports=x,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(479),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"dropDownContentTemplate",render:"dropDownContentRender",component:"dropDownContentComponent",keyFn:"dropDownContentKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.DropDownButton=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,icon:r.string,items:r.array,keyExpr:r.string,noDataText:r.string,onButtonClick:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onSelectionChanged:r.oneOfType([r.func,r.string]),opened:r.bool,rtlEnabled:r.bool,selectedItem:r.oneOfType([r.number,r.object,r.string]),selectedItemKey:r.oneOfType([r.number,r.string]),showArrowIcon:r.bool,splitButton:r.bool,stylingMode:r.oneOf(["text","outlined","contained"]),tabIndex:r.number,text:r.string,useSelectMode:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapItemText:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=b,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(876),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={contextMenu:{optionName:"contextMenu",isCollectionItem:!1},itemView:{optionName:"itemView",isCollectionItem:!1},permissions:{optionName:"permissions",isCollectionItem:!1},toolbar:{optionName:"toolbar",isCollectionItem:!1},upload:{optionName:"upload",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.FileManager=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowedFileExtensions:r.array,contextMenu:r.object,currentPath:r.string,currentPathKeys:r.array,customizeDetailColumns:r.func,customizeThumbnail:r.func,disabled:r.bool,elementAttr:r.object,fileSystemProvider:r.object,focusedItemKey:r.string,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemView:r.object,onContentReady:r.func,onContextMenuItemClick:r.func,onCurrentDirectoryChanged:r.func,onDisposing:r.func,onErrorOccurred:r.func,onFocusedItemChanged:r.func,onInitialized:r.func,onOptionChanged:r.func,onSelectedFileOpened:r.func,onSelectionChanged:r.func,onToolbarItemClick:r.func,permissions:r.object,rootFolderName:r.string,rtlEnabled:r.bool,selectedItemKeys:r.array,selectionMode:r.oneOf(["multiple","single"]),tabIndex:r.number,toolbar:r.object,upload:r.object,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columns",e.IsCollectionItem=!0,e}(s.default);e.Column=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="contextMenu",e.ExpectedChildren={contextMenuItem:{optionName:"items",isCollectionItem:!0},item:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.ContextMenu=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ContextMenuItem=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="details",e.ExpectedChildren={column:{optionName:"columns",isCollectionItem:!0}},e}(s.default);e.Details=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fileSelectionItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.FileSelectionItem=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="itemView",e.ExpectedChildren={details:{optionName:"details",isCollectionItem:!1}},e}(s.default);e.ItemView=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="permissions",e}(s.default);e.Permissions=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbar",e.ExpectedChildren={fileSelectionItem:{optionName:"fileSelectionItems",isCollectionItem:!0},item:{optionName:"items",isCollectionItem:!0},toolbarItem:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.Toolbar=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="upload",e}(s.default);e.Upload=y,e.default=l},function(t,e,n){"use strict";t.exports=n(877),t.exports.default=t.exports},function(t,e,n){"use strict";var i=k(n(3)),o=k(n(6)),r=n(0),a=k(n(2)),s=n(7),l=n(4),u=k(n(12)),c=k(n(8)),d=k(n(20)),h=k(n(112)),f=n(170),p=k(n(878)),m=n(882),g=k(n(883)),_=k(n(482)),v=k(n(884)),y=k(n(885)),b=k(n(887)),w=k(n(888)),x=k(n(890)),C=k(n(897)),S=k(n(898));function k(t){return t&&t.__esModule?t:{default:t}}function I(t){return(I="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function O(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function M(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function P(t,e,n){return(P="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=B(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function A(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==I(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(k,t);var e,n,c,d=A(k);function k(){return O(this,k),d.apply(this,arguments)}return e=k,(n=[{key:"_initTemplates",value:function(){}},{key:"_initMarkup",value:function(){P(B(k.prototype),"_initMarkup",this).call(this),this._initActions(),this._firstItemViewLoad=!0,this._lockSelectionProcessing=!1,this._lockFocusedItemProcessing=!1,this._itemKeyToFocus=void 0,this._controller=new p.default({currentPath:this.option("currentPath"),currentPathKeys:this.option("currentPathKeys"),rootText:this.option("rootFolderName"),fileProvider:this.option("fileSystemProvider"),allowedFileExtensions:this.option("allowedFileExtensions"),uploadMaxFileSize:this.option("upload").maxFileSize,uploadChunkSize:this.option("upload").chunkSize,onInitialized:this._onControllerInitialized.bind(this),onDataLoading:this._onDataLoading.bind(this),onSelectedDirectoryChanged:this._onSelectedDirectoryChanged.bind(this)}),this._commandManager=new m.FileManagerCommandManager(this.option("permissions")),this.$element().addClass("dx-filemanager"),this._createNotificationControl(),this._initCommandManager(),this._setItemsViewAreaActive(!1)}},{key:"_createNotificationControl",value:function(){var t=this,e=(0,i.default)("<div>").addClass("dx-filemanager-notification-container").appendTo(this.$element());this._notificationControl=this._createComponent(e,w.default,{progressPanelContainer:this.$element(),contentTemplate:function(e){return t._createWrapper(e)},onActionProgress:function(e){return t._onActionProgress(e)},positionTarget:".".concat("dx-filemanager-container")}),this._editing.option("notificationControl",this._notificationControl)}},{key:"_createWrapper",value:function(t){var e=this;this._$wrapper=(0,i.default)("<div>").addClass("dx-filemanager-wrapper").appendTo(t),this._createEditing();var n=(0,i.default)("<div>").appendTo(this._$wrapper);this._toolbar=this._createComponent(n,b.default,{commandManager:this._commandManager,generalItems:this.option("toolbar.items"),fileItems:this.option("toolbar.fileSelectionItems"),itemViewMode:this.option("itemView").mode,onItemClick:function(t){return e._actions.onToolbarItemClick(t)}}),this._createAdaptivityControl()}},{key:"_createAdaptivityControl",value:function(){var t=this,e=(0,i.default)("<div>").addClass("dx-filemanager-container").appendTo(this._$wrapper);this._adaptivityControl=this._createComponent(e,S.default,{drawerTemplate:function(e){return t._createFilesTreeView(e)},contentTemplate:function(e){return t._createItemsPanel(e)},onAdaptiveStateChanged:function(e){return t._onAdaptiveStateChanged(e)}})}},{key:"_createEditing",value:function(){var t=this,e=(0,i.default)("<div>").addClass("dx-filemanager-editing-container").appendTo(this.$element());this._editing=this._createComponent(e,x.default,{controller:this._controller,model:{getMultipleSelectedItems:this._getMultipleSelectedItems.bind(this)},getItemThumbnail:this._getItemThumbnailInfo.bind(this),onSuccess:function(e){var n=e.updatedOnlyFiles;return t._redrawComponent(n)},onCreating:function(){return t._setItemsViewAreaActive(!1)},onError:function(e){return t._onEditingError(e)}})}},{key:"_createItemsPanel",value:function(t){this._$itemsPanel=(0,i.default)("<div>").addClass("dx-filemanager-items-panel").appendTo(t),this._createBreadcrumbs(this._$itemsPanel),this._createItemView(this._$itemsPanel)}},{key:"_createFilesTreeView",value:function(t){var e=this;this._filesTreeViewContextMenu=this._createContextMenu();var n=(0,i.default)("<div>").addClass("dx-filemanager-dirs-panel").appendTo(t);this._filesTreeView=this._createComponent(n,_.default,{storeExpandedState:!0,contextMenu:this._filesTreeViewContextMenu,getDirectories:this.getDirectories.bind(this),getCurrentDirectory:this._getCurrentDirectory.bind(this),onDirectoryClick:this._onFilesTreeViewDirectoryClick.bind(this),onClick:function(){return e._setItemsViewAreaActive(!1)}})}},{key:"_createItemView",value:function(t,e){var n=this;this._itemViewContextMenu=this._createContextMenu(!0);var r=this.option("itemView"),a={selectionMode:this.option("selectionMode"),selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),contextMenu:this._itemViewContextMenu,getItems:this._getItemViewItems.bind(this),onError:function(t){var e=t.error;return n._showError(e)},onSelectionChanged:this._onItemViewSelectionChanged.bind(this),onFocusedItemChanged:this._onItemViewFocusedItemChanged.bind(this),onSelectedItemOpened:this._onSelectedItemOpened.bind(this),getItemThumbnail:this._getItemThumbnailInfo.bind(this),customizeDetailColumns:this.option("customizeDetailColumns"),detailColumns:this.option("itemView.details.columns")},s=(0,i.default)("<div>").appendTo(t),l="thumbnails"===(e=e||r.mode)?y.default:v.default;this._itemView=this._createComponent(s,l,a),o.default.on(s,"click",this._onItemViewClick.bind(this))}},{key:"_createBreadcrumbs",value:function(t){var e=this,n=(0,i.default)("<div>").appendTo(t);this._breadcrumbs=this._createComponent(n,C.default,{rootFolderDisplayName:this.option("rootFolderName"),onCurrentDirectoryChanging:function(t){var n=t.currentDirectory;return e._setCurrentDirectory(n)}}),this._breadcrumbs.setCurrentDirectory(this._getCurrentDirectory())}},{key:"_createContextMenu",value:function(t){var e=this,n=(0,i.default)("<div>").appendTo(this._$wrapper);return this._createComponent(n,g.default,{commandManager:this._commandManager,items:this.option("contextMenu.items"),onItemClick:function(t){return e._actions.onContextMenuItemClick(t)},isolateCreationItemCommands:t})}},{key:"_initCommandManager",value:function(){var t=this,e=(0,r.extend)(this._editing.getCommandActions(),{refresh:function(){return t._refreshAndShowProgress()},thumbnails:function(){return t.option("itemView.mode","thumbnails")},details:function(){return t.option("itemView.mode","details")},clearSelection:function(){return t._clearSelection()},showNavPane:function(){return t._adaptivityControl.toggleDrawer()}});this._commandManager.registerActions(e)}},{key:"_onFilesTreeViewDirectoryClick",value:function(t){var e=t.itemData;this._setCurrentDirectory(e),this._setItemsViewAreaActive(!1)}},{key:"_onItemViewSelectionChanged",value:function(t){var e=t.selectedItemInfos,n=t.selectedItems,i=t.selectedItemKeys,o=t.currentSelectedItemKeys,r=t.currentDeselectedItemKeys;this._updateToolbar(e),this._lockSelectionProcessing=!0,this.option("selectedItemKeys",i),this._lockSelectionProcessing=!1,this._actions.onSelectionChanged({selectedItems:n,selectedItemKeys:i,currentSelectedItemKeys:o,currentDeselectedItemKeys:r})}},{key:"_onItemViewFocusedItemChanged",value:function(t){this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",t.itemKey),this._lockFocusedItemProcessing=!1,this._actions.onFocusedItemChanged({item:t.item,itemElement:t.itemElement})}},{key:"_onAdaptiveStateChanged",value:function(t){var e=t.enabled;this._commandManager.setCommandEnabled("showNavPane",e),this._updateToolbar()}},{key:"_onActionProgress",value:function(t){var e=t.message,n=t.status;this._toolbar.updateRefreshItem(e,n),this._updateToolbar()}},{key:"_onEditingError",value:function(t){var e=(0,f.extendAttributes)({},t,["errorCode","errorText","fileSystemItem"]);this._actions.onErrorOccurred(e),t.errorText=e.errorText}},{key:"_refreshAndShowProgress",value:function(){var t=this;return(0,s.when)(this._notificationControl.tryShowProgressPanel(),this._controller.refresh()).then((function(){return t._filesTreeView.refresh()}))}},{key:"_updateToolbar",value:function(t){var e=t||this._getSelectedItemInfos();this._toolbar.update(e)}},{key:"_setItemsViewAreaActive",value:function(t){if(this._itemsViewAreaActive!==t){this._itemsViewAreaActive=t;var e=null,n=null;t?(e=this._itemView.$element(),n=this._filesTreeView.$element()):(e=this._filesTreeView.$element(),n=this._itemView.$element()),e.removeClass("dx-filemanager-inactive-area"),n.addClass("dx-filemanager-inactive-area")}}},{key:"_switchView",value:function(t){this._disposeWidget(this._itemView.option("contextMenu")),this._disposeWidget(this._itemView),this._createItemView(this._$itemsPanel,t),this._toolbar.option({itemViewMode:t})}},{key:"_disposeWidget",value:function(t){t.dispose(),t.$element().remove()}},{key:"_clearSelection",value:function(){this._itemView.clearSelection()}},{key:"_getMultipleSelectedItems",value:function(){return this._itemsViewAreaActive?this._getSelectedItemInfos():[this._getCurrentDirectory()]}},{key:"_showError",value:function(t){this._showNotification(t,!1)}},{key:"_showNotification",value:function(t,e){(0,h.default)({message:t,width:450},e?"success":"error",5e3)}},{key:"_redrawComponent",value:function(t){!t&&this._filesTreeView.refresh(),this._itemView.refresh()}},{key:"_getItemViewItems",value:function(){var t=this,e=this.option("itemView").showFolders,n=this._controller.getCurrentItems(!e);return this._updateToolbarWithSelectionOnFirstLoad(n),this.option("itemView.showParentFolder")&&(n=(0,s.when)(n).then((function(e){return t._getPreparedItemViewItems(e)}))),n}},{key:"_updateToolbarWithSelectionOnFirstLoad",value:function(t){var e=this;if(this._firstItemViewLoad){this._firstItemViewLoad=!1;var n=this.option("selectedItemKeys");n.length>0&&(0,s.when)(t).done((function(t){var i=(0,f.findItemsByKeys)(t,n);i.length>0&&e._updateToolbar(i)}))}}},{key:"_getPreparedItemViewItems",value:function(t){var e=this._getCurrentDirectory();if(e.fileItem.isRoot())return t;var n=e.fileItem.createClone();n.isParentFolder=!0,n.name="..",n.relativeName="..",n.key="".concat("[*DXPDK*]$40F96F03-FBD8-43DF-91BE-F55F4B8BA871$").concat(e.fileItem.key);var i=T(t);return i.unshift({fileItem:n,icon:"parentfolder"}),i}},{key:"_onItemViewClick",value:function(){this._setItemsViewAreaActive(!0)}},{key:"_getItemThumbnailInfo",value:function(t){var e=this.option("customizeThumbnail"),n=a.default.isFunction(e)?e(t.fileItem):t.fileItem.thumbnail;return n?{thumbnail:n,cssClass:"dx-filemanager-item-custom-thumbnail"}:{thumbnail:t.icon}}},{key:"_getDefaultOptions",value:function(){return(0,r.extend)(P(B(k.prototype),"_getDefaultOptions",this).call(this),{fileSystemProvider:null,currentPath:"",currentPathKeys:[],rootFolderName:u.default.format("dxFileManager-rootDirectoryName"),selectionMode:"multiple",selectedItemKeys:[],focusedItemKey:void 0,toolbar:{items:["showNavPane","create","upload","switchView",{name:"separator",location:"after"},"refresh"],fileSelectionItems:["download","separator","move","copy","rename","separator","delete","clearSelection",{name:"separator",location:"after"},"refresh"]},contextMenu:{items:["create","upload","rename","move","copy","delete","refresh","download"]},itemView:{details:{columns:["thumbnail","name","dateModified","size"]},mode:"details",showFolders:!0,showParentFolder:!0},customizeThumbnail:null,customizeDetailColumns:null,onContextMenuItemClick:null,onCurrentDirectoryChanged:null,onSelectedFileOpened:null,onSelectionChanged:null,onFocusedItemChanged:null,onToolbarItemClick:null,onErrorOccurred:null,allowedFileExtensions:[],upload:{maxFileSize:0,chunkSize:2e5},permissions:{create:!1,copy:!1,move:!1,delete:!1,rename:!1,upload:!1,download:!1}})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"currentPath":this._controller.setCurrentPath(t.value);break;case"currentPathKeys":this._controller.setCurrentPathByKeys(t.value);break;case"selectedItemKeys":!this._lockSelectionProcessing&&this._itemView&&this._itemView.option("selectedItemKeys",t.value);break;case"focusedItemKey":!this._lockFocusedItemProcessing&&this._itemView&&this._itemView.option("focusedItemKey",t.value);break;case"fileSystemProvider":case"selectionMode":case"customizeThumbnail":case"customizeDetailColumns":case"rootFolderName":case"allowedFileExtensions":case"permissions":case"upload":this.repaint();break;case"itemView":"itemView.mode"===t.fullName?this._switchView(t.value):this.repaint();break;case"toolbar":var n={};"toolbar"===t.fullName&&(t.value.items&&(n.generalItems=t.value.items),t.value.fileSelectionItems&&(n.fileItems=t.value.fileSelectionItems)),"toolbar.items"===t.fullName&&(n.generalItems=t.value),"toolbar.fileSelectionItems"===t.fullName&&(n.fileItems=t.value),this._toolbar.option(n);break;case"contextMenu":if("contextMenu"===t.fullName&&t.value.items||0===t.fullName.indexOf("contextMenu.items")){var i=this.option("contextMenu.items");this._filesTreeViewContextMenu.option("items",i),this._itemViewContextMenu.option("items",i)}break;case"onContextMenuItemClick":case"onCurrentDirectoryChanged":case"onSelectedFileOpened":case"onSelectionChanged":case"onFocusedItemChanged":case"onToolbarItemClick":case"onErrorOccurred":this._actions[e]=this._createActionByOption(e);break;default:P(B(k.prototype),"_optionChanged",this).call(this,t)}}},{key:"_initActions",value:function(){this._actions={onContextMenuItemClick:this._createActionByOption("onContextMenuItemClick"),onCurrentDirectoryChanged:this._createActionByOption("onCurrentDirectoryChanged"),onSelectedFileOpened:this._createActionByOption("onSelectedFileOpened"),onSelectionChanged:this._createActionByOption("onSelectionChanged"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged"),onToolbarItemClick:this._createActionByOption("onToolbarItemClick"),onErrorOccurred:this._createActionByOption("onErrorOccurred")}}},{key:"executeCommand",value:function(t){return this._commandManager.executeCommand(t)}},{key:"_setCurrentDirectory",value:function(t){this._controller.setCurrentDirectory(t)}},{key:"_getCurrentDirectory",value:function(){return this._controller.getCurrentDirectory()}},{key:"_onControllerInitialized",value:function(t){var e=t.controller;this._controller=this._controller||e,e.getCurrentDirectory().fileItem.isRoot()||this._syncToCurrentDirectory()}},{key:"_onDataLoading",value:function(t){var e=null;"navigation"===t.operation&&(e={focusedItemKey:this._itemKeyToFocus},this._itemKeyToFocus=void 0),this._itemView.refresh(e)}},{key:"_onSelectedDirectoryChanged",value:function(){var t=this._getCurrentDirectory();this._syncToCurrentDirectory(),this._actions.onCurrentDirectoryChanged({directory:t.fileItem})}},{key:"_syncToCurrentDirectory",value:function(){var t=this._getCurrentDirectory(),e=this._controller.getCurrentPath(),n=t.fileItem.pathKeys;this._filesTreeView&&this._filesTreeView.updateCurrentDirectory(),this._breadcrumbs&&this._breadcrumbs.setCurrentDirectory(t);var i={currentPath:e};(0,l.equalByValue)(this.option("currentPathKeys"),n)||(i.currentPathKeys=n),this.option(i)}},{key:"getDirectories",value:function(t,e){return this._controller.getDirectories(t,e)}},{key:"_getSelectedItemInfos",value:function(){return this._itemView.getSelectedItems()}},{key:"refresh",value:function(){return this.executeCommand("refresh")}},{key:"getCurrentDirectory",value:function(){var t=this._getCurrentDirectory();return t&&t.fileItem||null}},{key:"getSelectedItems",value:function(){return this._getSelectedItemInfos().map((function(t){return t.fileItem}))}},{key:"_onSelectedItemOpened",value:function(t){var e=t.fileItemInfo,n=e.fileItem;if(n.isDirectory){n.isParentFolder&&(this._itemKeyToFocus=this._getCurrentDirectory().fileItem.key);var i=n.isParentFolder?this._getCurrentDirectory().parentDirectory:e;this._setCurrentDirectory(i),i&&this._filesTreeView.expandDirectory(i.parentDirectory)}else this._actions.onSelectedFileOpened({file:n})}}])&&M(e.prototype,n),c&&M(e,c),k}(d.default);(0,c.default)("dxFileManager",N),t.exports=N},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=m(n(240)),o=m(n(481)),r=m(n(879)),a=m(n(880)),s=m(n(881)),l=m(n(302)),u=n(301),c=m(n(170)),d=n(7),h=n(16),f=n(0),p=n(4);function m(t){return t&&t.__esModule?t:{default:t}}function g(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}var w=function(){function t(e){v(this,t),e=e||{},this._options=(0,f.extend)({},e),this._isInitialized=!1,this._dataLoading=!1,this._dataLoadingDeferred=null,this._rootDirectoryInfo=this._createRootDirectoryInfo(e.rootText),this._currentDirectoryInfo=this._rootDirectoryInfo,this._defaultIconMap=this._createDefaultIconMap(),this._securityController=new x({allowedFileExtensions:this._options.allowedFileExtensions,maxFileSize:this._options.uploadMaxFileSize}),this._setProvider(e.fileProvider),this._initialize()}return b(t,[{key:"_setProvider",value:function(t){this._fileProvider=this._createFileProvider(t),this._resetState()}},{key:"_createFileProvider",value:function(t){if(t||(t=[]),Array.isArray(t))return new r.default({data:t});if(t instanceof i.default)return t;switch(t.type){case"remote":return new a.default(t);case"custom":return new s.default(t)}return new r.default(t)}},{key:"setCurrentPath",value:function(t){var e=(0,u.getPathParts)(t),n=u.pathCombine.apply(void 0,g(e));if(this.getCurrentDirectory().fileItem.relativeName!==n)return this._setCurrentDirectoryByPathParts(e)}},{key:"setCurrentPathByKeys",value:function(t){if(!(0,p.equalByValue)(this.getCurrentDirectory().fileItem.pathKeys,t,0,!0))return this._setCurrentDirectoryByPathParts(t,!0)}},{key:"getCurrentPath",value:function(){for(var t="",e=this.getCurrentDirectory();e&&!e.fileItem.isRoot();){var n=(0,u.getEscapedFileName)(e.fileItem.name);t=(0,u.pathCombine)(n,t),e=e.parentDirectory}return t}},{key:"getCurrentDirectory",value:function(){return this._currentDirectoryInfo}},{key:"setCurrentDirectory",value:function(t){if(t&&(!this._currentDirectoryInfo||this._currentDirectoryInfo!==t)){var e=this._currentDirectoryInfo.fileItem.key!==t.fileItem.key;this._currentDirectoryInfo=t,e&&this._isInitialized&&(this._dataLoading||this._raiseDataLoading("navigation"),this._raiseSelectedDirectoryChanged(t))}}},{key:"getCurrentItems",value:function(t){var e=this;return this._dataLoadingDeferred?this._dataLoadingDeferred.then((function(){return e._getCurrentItemsInternal(t)})):this._getCurrentItemsInternal(t)}},{key:"_getCurrentItemsInternal",value:function(t){var e=this.getCurrentDirectory();return t?this.getFiles(e):this.getDirectoryContents(e)}},{key:"getDirectories",value:function(t,e){return this.getDirectoryContents(t,e).then((function(t){return t.filter((function(t){return t.fileItem.isDirectory}))}))}},{key:"getFiles",value:function(t){return this.getDirectoryContents(t).then((function(t){return t.filter((function(t){return!t.fileItem.isDirectory}))}))}},{key:"getDirectoryContents",value:function(t,e){var n=this;if(!t)return(new d.Deferred).resolve([this._rootDirectoryInfo]).promise();if(t.itemsLoaded)return(new d.Deferred).resolve(t.items).promise();var i=t.getInternalKey(),o=this._loadedItems[i];return o||(o=this._getFileItems(t,e).then((function(e){return e=e||[],t.items=e.map((function(e){return e.isDirectory&&n._createDirectoryInfo(e,t)||n._createFileInfo(e,t)})),t.itemsLoaded=!0,t.items})),this._loadedItems[i]=o,o.always((function(){delete n._loadedItems[i]})),o)}},{key:"_getFileItems",value:function(t,e){var n=this,i=null;try{i=this._fileProvider.getItems(t.fileItem)}catch(o){return this._handleItemLoadError(t,o,e)}return(0,d.when)(i).then((function(t){return n._securityController.getAllowedItems(t)}),(function(i){return n._handleItemLoadError(t,i,e)}))}},{key:"createDirectory",value:function(t,e){var n=this,i=this._createEditActionInfo("create",t,t);return this._processEditAction(i,(function(){return n._fileProvider.createDirectory(t.fileItem,e)}),(function(){return n._resetDirectoryState(t)}))}},{key:"renameItem",value:function(t,e){var n=this,i=this._createEditActionInfo("rename",t,t.parentDirectory);return this._processEditAction(i,(function(){return t.fileItem.isDirectory||n._securityController.validateExtension(e),n._fileProvider.renameItem(t.fileItem,e)}),(function(){n._resetDirectoryState(t.parentDirectory),n.setCurrentDirectory(t.parentDirectory)}))}},{key:"moveItems",value:function(t,e){var n=this,i=t.map((function(t){return t.fileItem})),o=this._createEditActionInfo("move",t,e);return this._processEditAction(o,(function(){return n._fileProvider.moveItems(i,e.fileItem)}),(function(){t.forEach((function(t){return n._resetDirectoryState(t.parentDirectory)})),n._resetDirectoryState(e),n.setCurrentDirectory(e)}))}},{key:"copyItems",value:function(t,e){var n=this,i=t.map((function(t){return t.fileItem})),o=this._createEditActionInfo("copy",t,e);return this._processEditAction(o,(function(){return n._fileProvider.copyItems(i,e.fileItem)}),(function(){n._resetDirectoryState(e),n.setCurrentDirectory(e),e.expanded=!0}))}},{key:"deleteItems",value:function(t){var e=this,n=t.map((function(t){return t.fileItem})),i=t.length>0?t[0].parentDirectory:null,o=this._createEditActionInfo("delete",t,i);return this._processEditAction(o,(function(){return e._fileProvider.deleteItems(n)}),(function(){t.forEach((function(t){var n=t.parentDirectory;e._resetDirectoryState(n),e.setCurrentDirectory(n)}))}))}},{key:"processUploadSession",value:function(t,e){var n=this,i=this._getItemInfosForUploaderFiles(t.files,e),o=this._createEditActionInfo("upload",i,e,{sessionInfo:t});return this._processEditAction(o,(function(){return t.deferreds}),(function(){return n._resetDirectoryState(e)}))}},{key:"uploadFileChunk",value:function(t,e,n){return this._securityController.validateMaxFileSize(t.size),this._securityController.validateExtension(t.name),(0,d.when)(this._fileProvider.uploadFileChunk(t,e,n))}},{key:"abortFileUpload",value:function(t,e,n){return(0,d.when)(this._fileProvider.abortFileUpload(t,e,n))}},{key:"getFileUploadChunkSize",value:function(){var t=this._options.uploadChunkSize;return t&&t>0?t:this._fileProvider.getFileUploadChunkSize()}},{key:"downloadItems",value:function(t){var e=t.map((function(t){return t.fileItem}));this._fileProvider.downloadItems(e)}},{key:"getItemContent",value:function(t){var e=t.map((function(t){return t.fileItem}));return(0,d.when)(this._fileProvider.getItemsContent(e))}},{key:"_handleItemLoadError",value:function(t,e,n){var i=this._createEditActionInfo("getItems",t,t);return this._raiseEditActionStarting(i),this._raiseEditActionResultAcquired(i),this._raiseEditActionError(i,{errorId:e.errorId,fileItem:t.fileItem,index:0}),this._resetDirectoryState(t),t.expanded=!1,n||this.setCurrentDirectory(t.parentDirectory),(new d.Deferred).reject().promise()}},{key:"_processEditAction",value:function(t,e,n){var i=this,o=null;this._raiseEditActionStarting(t);try{o=e()}catch(r){return this._raiseEditActionError(t,r),(new d.Deferred).reject().promise()}return Array.isArray(o)?o.length>1&&(t.singleRequest=!1):o=[o],this._raiseEditActionResultAcquired(t),(0,c.default)(o,(function(e){return i._raiseCompleteEditActionItem(t,e)}),(function(e){return i._raiseEditActionItemError(t,e)})).then((function(){n(),i._raiseCompleteEditAction(t)}))}},{key:"_createEditActionInfo",value:function(t,e,n,i){i=i||{};var o=(e=Array.isArray(e)?e:[e]).map((function(t){return t.fileItem}));return{name:t,itemInfos:e,items:o,directory:n,customData:i,singleRequest:!0}}},{key:"_getItemInfosForUploaderFiles",value:function(t,e){for(var n=this._getPathInfo(e),i=[],r=0;r<t.length;r++){var a=t[r],s=new o.default(n,a.name,!1),l=this._createFileInfo(s,e);i.push(l)}return i}},{key:"refresh",value:function(){var t=this;return this._lockRefresh?this._refreshDeferred:(this._lockRefresh=!0,this._executeDataLoad((function(){return t._refreshDeferred=t._refreshInternal()}),"refresh"))}},{key:"_refreshInternal",value:function(){var t=this,e={items:this._rootDirectoryInfo.items},n=this._getDirectoryPathKeyParts(this.getCurrentDirectory());return this._resetDirectoryState(this._rootDirectoryInfo),this._loadItemsRecursive(this._rootDirectoryInfo,e).then((function(){var e=t._findSelectedDirectoryByPathKeyParts(n);t.setCurrentDirectory(e),delete t._lockRefresh}))}},{key:"_loadItemsRecursive",value:function(t,e){var n=this;return this.getDirectories(t).then((function(t){for(var i=[],o=function(o){var r=(0,h.find)(e.items,(function(e){return t[o].fileItem.key===e.fileItem.key}));if(!r)return"continue";t[o].expanded=r.expanded,t[o].expanded&&i.push(n._loadItemsRecursive(t[o],r))},r=0;r<t.length;r++)o(r);return(0,c.default)(i)}),(function(){return null}))}},{key:"_initialize",value:function(){var t=this,e=this._options.currentPathKeys&&this._options.currentPathKeys.length?this.setCurrentPathByKeys(this._options.currentPathKeys):this.setCurrentPath(this._options.currentPath),n=function(){t._isInitialized=!0,t._raiseInitialized()};e?(0,d.when)(e).always(n):n()}},{key:"_setCurrentDirectoryByPathParts",value:function(t,e){var n=this;return this._executeDataLoad((function(){return n._setCurrentDirectoryByPathPartsInternal(t,e)}),"navigation")}},{key:"_setCurrentDirectoryByPathPartsInternal",value:function(t,e){var n=this;return this._getDirectoryByPathParts(this._rootDirectoryInfo,t,e).then((function(t){for(var e=t.parentDirectory;e;e=e.parentDirectory)e.expanded=!0;n.setCurrentDirectory(t)}))}},{key:"_executeDataLoad",value:function(t,e){var n=this;return this._dataLoading=!0,this._dataLoadingDeferred=new d.Deferred,this._isInitialized&&this._raiseDataLoading(e),t().always((function(){n._dataLoadingDeferred.resolve(),n._dataLoadingDeferred=null,n._dataLoading=!1}))}},{key:"_getDirectoryByPathParts",value:function(t,e,n){var i=this;if(e.length<1)return(new d.Deferred).resolve(t).promise();var o=n?"key":"name";return this.getDirectories(t).then((function(t){var r=(0,h.find)(t,(function(t){return t.fileItem[o]===e[0]}));if(!r)return(new d.Deferred).reject().promise();var a=g(e).splice(1);return i._getDirectoryByPathParts(r,a,n)}))}},{key:"_getDirectoryPathKeyParts",value:function(t){for(var e=[];t&&t.parentDirectory;)e.unshift(t.fileItem.key),t=t.parentDirectory;return e}},{key:"_findSelectedDirectoryByPathKeyParts",value:function(t){var e=this._rootDirectoryInfo;if(0===t.length)return e;for(var n=0,i=e;i&&n<t.length;)(i=(0,h.find)(e.items,(function(e){return e.fileItem.key===t[n]})))&&(e=i),n++;return e}},{key:"_createDirectoryInfo",value:function(t,e){return(0,f.extend)(this._createFileInfo(t,e),{icon:"folder",expanded:t.isRoot(),items:[]})}},{key:"_createFileInfo",value:function(t,e){return{fileItem:t,parentDirectory:e,icon:this._getFileItemDefaultIcon(t),getInternalKey:function(){return"FIK_".concat(this.fileItem.key)},getDisplayName:function(){return this.displayName||this.fileItem.name}}}},{key:"_resetDirectoryState",value:function(t){t.itemsLoaded=!1,t.items=[]}},{key:"_getFileItemDefaultIcon",value:function(t){if(t.isDirectory)return"folder";var e=t.getFileExtension();return this._defaultIconMap[e]||"doc"}},{key:"_createDefaultIconMap",value:function(){var t={".txt":"txtfile",".rtf":"rtffile",".doc":"docfile",".docx":"docxfile",".xls":"xlsfile",".xlsx":"xlsxfile",".ppt":"pptfile",".pptx":"pptxfile",".pdf":"pdffile"};return[".png",".gif",".jpg",".jpeg",".ico",".bmp"].forEach((function(e){t[e]="image"})),t}},{key:"_createRootDirectoryInfo",value:function(t){var e=new o.default(null,"",!0),n=this._createDirectoryInfo(e,null);return n.displayName=t||"Files",n}},{key:"_raiseInitialized",value:function(){var t={controller:this};this._options.onInitialized&&this._options.onInitialized(t)}},{key:"_raiseDataLoading",value:function(t){this._options.onDataLoading&&this._options.onDataLoading({operation:t})}},{key:"_raiseSelectedDirectoryChanged",value:function(t){var e={selectedDirectoryInfo:t};this._options.onSelectedDirectoryChanged&&this._options.onSelectedDirectoryChanged(e)}},{key:"_raiseEditActionStarting",value:function(t){this._options.onEditActionStarting&&this._options.onEditActionStarting(t)}},{key:"_raiseEditActionResultAcquired",value:function(t){this._options.onEditActionResultAcquired&&this._options.onEditActionResultAcquired(t)}},{key:"_raiseEditActionError",value:function(t,e){this._options.onEditActionError&&this._options.onEditActionError(t,e)}},{key:"_raiseEditActionItemError",value:function(t,e){this._options.onEditActionItemError&&this._options.onEditActionItemError(t,e)}},{key:"_raiseCompleteEditActionItem",value:function(t,e){this._options.onCompleteEditActionItem&&this._options.onCompleteEditActionItem(t,e)}},{key:"_raiseCompleteEditAction",value:function(t){this._options.onCompleteEditAction&&this._options.onCompleteEditAction(t)}},{key:"_resetState",value:function(){this._selectedDirectory=null,this._rootDirectoryInfo.items=[],this._loadedItems={}}},{key:"_getPathInfo",value:function(t){for(var e=[],n=t;n&&!n.fileItem.isRoot();n=n.parentDirectory)e.unshift({key:n.fileItem.key,name:n.fileItem.name});return e}},{key:"on",value:function(t,e){var n="on".concat(t);this._options[n]=e}}]),t}();e.default=w;var x=function(){function t(e){var n=this;v(this,t);this._options=(0,f.extend)({allowedFileExtensions:[],maxFileSize:0},e),this._extensionsMap={},this._allowedFileExtensions.forEach((function(t){n._extensionsMap[t.toUpperCase()]=!0}))}return b(t,[{key:"getAllowedItems",value:function(t){var e=this;return 0===this._allowedFileExtensions.length?t:t.filter((function(t){return t.isDirectory||e._isValidExtension(t.name)}))}},{key:"validateExtension",value:function(t){this._isValidExtension(t)||this._throwError(l.default.WrongFileExtension)}},{key:"validateMaxFileSize",value:function(t){this._maxFileSize&&t>this._maxFileSize&&this._throwError(l.default.MaxFileSizeExceeded)}},{key:"_isValidExtension",value:function(t){if(0===this._allowedFileExtensions.length)return!0;var e=(0,u.getFileExtension)(t).toUpperCase();return this._extensionsMap[e]}},{key:"_throwError",value:function(t){throw{errorId:t}}},{key:"_allowedFileExtensions",get:function(){return this._options.allowedFileExtensions}},{key:"_maxFileSize",get:function(){return this._options.maxFileSize}}]),t}()},function(t,e,n){"use strict";var i=n(16),o=n(4),r=n(29),a=_(n(45)),s=_(n(2)),l=n(78),u=n(7),c=n(10),d=n(224),h=_(n(23)),f=_(n(387)),p=_(n(240)),m=_(n(302)),g=n(301);function _(t){return t&&t.__esModule?t:{default:t}}function v(t){return(v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function y(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return x(this,n)}}function x(t,e){return!e||"object"!==v(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=(0,c.getWindow)(),k=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(_,t);var e,n,c,p=w(_);function _(t){var e;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,_),t=(0,o.ensureDefined)(t,{}),e=p.call(this,t);var n=t.data;if(n&&!Array.isArray(n))throw l.errors.Error("E4006");var i=t.itemsExpr||"items";e._subFileItemsGetter=(0,r.compileGetter)(i),e._subFileItemsSetter=e._getSetter(i);var a=t.contentExpr||"content";e._contentGetter=(0,r.compileGetter)(a),e._contentSetter=e._getSetter(a);var s=e._getNameExpr(t);e._nameSetter=e._getSetter(s);var u=e._getIsDirExpr(t);e._getIsDirSetter=e._getSetter(u);var c=e._getKeyExpr(t);e._keySetter=e._getSetter(c);var d=e._getSizeExpr(t);e._sizeSetter=e._getSetter(d);var h=e._getDateModifiedExpr(t);return e._dateModifiedSetter=e._getSetter(h),e._data=n||[],e}return e=_,(n=[{key:"getItems",value:function(t){var e=this;return this._executeActionAsDeferred((function(){return e._getItems(t)}),!0)}},{key:"renameItem",value:function(t,e){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemCore(t,e)}))}},{key:"_renameItemCore",value:function(t,e){if(t){var n=this._findDataObject(t);this._nameSetter(n,e),t.name=e,t.key=this._ensureDataObjectKey(n)}}},{key:"createDirectory",value:function(t,e){var n=this;return this._executeActionAsDeferred((function(){n._validateDirectoryExists(t),n._createDataObject(t,e,!0)}))}},{key:"deleteItems",value:function(t){var e=this;return t.map((function(t){return e._executeActionAsDeferred((function(){return e._deleteItem(t)}))}))}},{key:"moveItems",value:function(t,e){var n=this,i=this._findDataObject(e),o=this._getDirectoryDataItems(i),r=t.map((function(t){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(t,e);var i=n._findDataObject(t);n._deleteItem(t),o.push(i)}))}));return this._updateHasSubDirs(e),r}},{key:"copyItems",value:function(t,e){var n=this,i=this._findDataObject(e),o=this._getDirectoryDataItems(i),r=t.map((function(t){return n._executeActionAsDeferred((function(){n._checkAbilityToMoveOrCopyItem(t,e);var i=n._findDataObject(t),r=n._createCopy(i);o.push(r)}))}));return this._updateHasSubDirs(e),r}},{key:"uploadFileChunk",value:function(t,e,n){var i=this;if(e.chunkIndex>0)return e.customData.deferred;this._validateDirectoryExists(n);var o=e.customData.deferred=new u.Deferred,r=this._createFileReader();return r.readAsDataURL(t),r.onload=function(){var e=r.result.split(",")[1],a=i._createDataObject(n,t.name,!1);i._sizeSetter(a,t.size),i._dateModifiedSetter(a,t.lastModifiedDate),i._contentSetter(a,e),o.resolve()},r.onerror=function(t){return o.reject(t)},o}},{key:"downloadItems",value:function(t){1===t.length?this._downloadSingleFile(t[0]):this._downloadMultipleFiles(t)}},{key:"_downloadSingleFile",value:function(t){for(var e=this._getFileContent(t),n=S.atob(e),i=new ArrayBuffer(n.length),o=new Uint8Array(i),r=0;r<n.length;r++)o[r]=n.charCodeAt(r);var a=new S.Blob([i],{type:"application/octet-stream"});d.fileSaver.saveAs(t.name,null,a)}},{key:"_downloadMultipleFiles",value:function(t){var e=this,n=new(function(){if(!f.default)throw h.default.Error("E1041","JSZip");return f.default}());t.forEach((function(t){return n.file(t.name,e._getFileContent(t),{base64:!0})}));var i={type:"blob",compression:"DEFLATE",mimeType:"application/zip"},o=new u.Deferred;n.generateAsync?n.generateAsync(i).then(o.resolve):o.resolve(n.generate(i)),o.done((function(t){return d.fileSaver.saveAs("files.zip",null,t)}))}},{key:"_getFileContent",value:function(t){var e=this._findDataObject(t);return this._contentGetter(e)||""}},{key:"_validateDirectoryExists",value:function(t){if(!this._isFileItemExists(t)||this._isDirGetter(t.fileItem))throw{errorId:m.default.DirectoryNotFound,fileItem:t}}},{key:"_checkAbilityToMoveOrCopyItem",value:function(t,e){var n=this,i=this._findDataObject(t),o=this._getKeyFromDataObject(i,t.parentPath),r=e.getFullPathInfo(),a="";r.forEach((function(e){if(a=(0,g.pathCombine)(a,e.name),n._getDataObjectKey(e.key,a)===o)throw{errorId:m.default.Other,fileItem:t}}))}},{key:"_createDataObject",value:function(t,e,n){var i={};this._nameSetter(i,e),this._getIsDirSetter(i,n),this._keySetter(i,String(new a.default));var o=this._findDataObject(t);return this._getDirectoryDataItems(o).push(i),n&&this._updateHasSubDirs(t),i}},{key:"_createCopy",value:function(t){var e=this,n={};this._nameSetter(n,this._nameGetter(t)),this._getIsDirSetter(n,this._isDirGetter(t));var i=this._subFileItemsGetter(t);if(Array.isArray(i)){var o=[];i.forEach((function(t){var n=e._createCopy(t);o.push(n)})),this._subFileItemsSetter(n,o)}return n}},{key:"_deleteItem",value:function(t){var e=this._findDataObject(t),n=this._findFileItemObj(t.pathInfo),i=this._getDirectoryDataItems(n),o=i.indexOf(e);i.splice(o,1)}},{key:"_getDirectoryDataItems",value:function(t){if(!t)return this._data;var e=this._subFileItemsGetter(t);return Array.isArray(e)||(e=[],this._subFileItemsSetter(t,e)),e}},{key:"_getItems",value:function(t){this._validateDirectoryExists(t);var e=t.getFullPathInfo(),n=e&&e.length>0?e[e.length-1].key:null,i=this._data;if(n){var o=this._findFileItemObj(e);i=o&&this._subFileItemsGetter(o)||[]}return this._ensureKeysForDuplicateNameItems(i),this._convertDataObjectsToFileItems(i,e)}},{key:"_ensureKeysForDuplicateNameItems",value:function(t){var e=this,n={};t.forEach((function(t){var i=e._nameGetter(t);n[i]?e._ensureDataObjectKey(t):n[i]=!0}))}},{key:"_findDataObject",value:function(t){if(t.isRoot())return null;var e=this._findFileItemObj(t.getFullPathInfo());if(!e)throw{errorId:t.isDirectory?m.default.DirectoryNotFound:m.default.FileNotFound,fileItem:t};return e}},{key:"_findFileItemObj",value:function(t){var e=this;Array.isArray(t)||(t=[]);for(var n="",o=null,r=this._data,a=function(a){(o=(0,i.find)(r,(function(i){var o=e._isDirGetter(i)||a===t.length-1;return e._getKeyFromDataObject(i,n)===t[a].key&&e._nameGetter(i)===t[a].name&&o})))&&(n=(0,g.pathCombine)(n,e._nameGetter(o)),r=e._subFileItemsGetter(o))},s=0;s<t.length&&(0===s||o);s++)a(s);return o}},{key:"_getKeyFromDataObject",value:function(t,e){var n=this._keyGetter(t),i=(0,g.pathCombine)(e,this._nameGetter(t));return this._getDataObjectKey(n,i)}},{key:"_getDataObjectKey",value:function(t,e){return t||e}},{key:"_ensureDataObjectKey",value:function(t){var e=this._keyGetter(t);return e||(e=String(new a.default),this._keySetter(t,e)),e}},{key:"_updateHasSubDirs",value:function(t){if(t&&!t.isRoot()){var e=this._findDataObject(t);t.hasSubDirectories=this._hasSubDirs(e)}}},{key:"_hasSubDirs",value:function(t){var e=(0,o.ensureDefined)(this._subFileItemsGetter(t),[]);if(!Array.isArray(e))return!0;for(var n=0;n<e.length;n++)if(!0===this._isDirGetter(e[n]))return!0;return!1}},{key:"_getSetter",value:function(t){return s.default.isFunction(t)?t:(0,r.compileSetter)(t)}},{key:"_isFileItemExists",value:function(t){return t.isDirectory&&t.isRoot()||!!this._findFileItemObj(t.getFullPathInfo())}},{key:"_createFileReader",value:function(){return new S.FileReader}}])&&y(e.prototype,n),c&&y(e,c),_}(p.default);t.exports=k,t.exports.default=t.exports},function(t,e,n){"use strict";var i=f(n(3)),o=f(n(134)),r=n(4),a=f(n(45)),s=n(10),l=n(5),u=n(7),c=f(n(6)),d=f(n(240)),h=n(29);function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==p(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=(0,s.getWindow)(),w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(f,t);var e,n,s,d=_(f);function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),t=(0,r.ensureDefined)(t,{}),(e=d.call(this,t))._endpointUrl=t.endpointUrl,e._hasSubDirsGetter=(0,h.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),e}return e=f,(n=[{key:"getItems",value:function(t){var e=this,n=t.getFullPathInfo();return this._getEntriesByPath(n).then((function(t){return e._convertDataObjectsToFileItems(t.result,n)}))}},{key:"renameItem",value:function(t,e){return this._executeRequest("Rename",{pathInfo:t.getFullPathInfo(),isDirectory:t.isDirectory,name:e})}},{key:"createDirectory",value:function(t,e){return this._executeRequest("CreateDir",{pathInfo:t.getFullPathInfo(),name:e}).done((function(){t&&!t.isRoot()&&(t.hasSubDirectories=!0)}))}},{key:"deleteItems",value:function(t){var e=this;return t.map((function(t){return e._executeRequest("Remove",{pathInfo:t.getFullPathInfo(),isDirectory:t.isDirectory})}))}},{key:"moveItems",value:function(t,e){var n=this;return t.map((function(t){return n._executeRequest("Move",{sourcePathInfo:t.getFullPathInfo(),sourceIsDirectory:t.isDirectory,destinationPathInfo:e.getFullPathInfo()})}))}},{key:"copyItems",value:function(t,e){var n=this;return t.map((function(t){return n._executeRequest("Copy",{sourcePathInfo:t.getFullPathInfo(),sourceIsDirectory:t.isDirectory,destinationPathInfo:e.getFullPathInfo()})}))}},{key:"uploadFileChunk",value:function(t,e,n){0===e.chunkIndex&&(e.customData.uploadId=new a.default);var i={destinationPathInfo:n.getFullPathInfo(),chunkMetadata:JSON.stringify({UploadId:e.customData.uploadId,FileName:t.name,Index:e.chunkIndex,TotalCount:e.chunkCount,FileSize:t.size})},s=new b.FormData;s.append("chunk",e.chunkBlob),s.append("arguments",JSON.stringify(i)),s.append("command","UploadChunk");var l=new u.Deferred;return o.default.sendRequest({url:this._endpointUrl,method:"POST",dataType:"json",data:s,upload:{onprogress:r.noop,onloadstart:r.noop,onabort:r.noop},cache:!1}).done((function(t){!t.success&&l.reject(t)||l.resolve()})).fail(l.reject),l.promise()}},{key:"abortFileUpload",value:function(t,e,n){return this._executeRequest("AbortUpload",{uploadId:e.customData.uploadId})}},{key:"downloadItems",value:function(t){var e=this._getDownloadArgs(t),n=(0,i.default)("<form>").css({display:"none"}).attr({method:"post",action:e.url});["command","arguments"].forEach((function(t){(0,i.default)("<input>").attr({type:"hidden",name:t,value:e[t]}).appendTo(n)})),n.appendTo("body"),c.default.trigger(n,"submit"),setTimeout((function(){return n.remove()}))}},{key:"getItemsContent",value:function(t){var e=this._getDownloadArgs(t),n=new b.FormData;return n.append("command",e.command),n.append("arguments",e.arguments),o.default.sendRequest({url:e.url,method:"POST",responseType:"arraybuffer",data:n,upload:{onprogress:r.noop,onloadstart:r.noop,onabort:r.noop},cache:!1})}},{key:"_getDownloadArgs",value:function(t){var e={pathInfoList:t.map((function(t){return t.getFullPathInfo()}))},n=JSON.stringify(e);return{url:this._endpointUrl,arguments:n,command:"Download"}}},{key:"_getItemsIds",value:function(t){return t.map((function(t){return t.relativeName}))}},{key:"_getEntriesByPath",value:function(t){return this._executeRequest("GetDirContents",{pathInfo:t})}},{key:"_executeRequest",value:function(t,e){var n="GetDirContents"===t?"GET":"POST",i=new u.Deferred;return o.default.sendRequest({url:this._getEndpointUrl(t,e),method:n,dataType:"json",cache:!1}).then((function(t){!t.success&&i.reject(t)||i.resolve(t)}),(function(t){return i.reject(t)})),i.promise()}},{key:"_getEndpointUrl",value:function(t,e){var n=this._getQueryString({command:t,arguments:JSON.stringify(e)}),i=this._endpointUrl&&this._endpointUrl.indexOf("?")>0?"&":"?";return this._endpointUrl+i+n}},{key:"_getQueryString",value:function(t){for(var e=[],n=Object.keys(t),i=0;i<n.length;i++){var o=n[i],r=t[o];if(void 0!==r)if(null===r&&(r=""),Array.isArray(r))this._processQueryStringArrayParam(o,r,e);else{var a=this._getQueryStringPair(o,r);e.push(a)}}return e.join("&")}},{key:"_processQueryStringArrayParam",value:function(t,e,n){var i=this;(0,l.each)(e,(function(e,o){var r=i._getQueryStringPair(t,o);n.push(r)}))}},{key:"_getQueryStringPair",value:function(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}},{key:"_hasSubDirs",value:function(t){var e=this._hasSubDirsGetter(t);return"boolean"!==typeof e||e}},{key:"_getKeyExpr",value:function(t){return t.keyExpr||"key"}}])&&m(e.prototype,n),s&&m(e,s),f}(d.default);t.exports=w,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(4),r=n(2),a=n(29),s=n(240);function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(l,t);var e,n,i,s=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),t=(0,o.ensureDefined)(t,{}),(e=s.call(this,t))._hasSubDirsGetter=(0,a.compileGetter)(t.hasSubDirectoriesExpr||"hasSubDirectories"),e._getItemsFunction=e._ensureFunction(t.getItems,(function(){return[]})),e._renameItemFunction=e._ensureFunction(t.renameItem),e._createDirectoryFunction=e._ensureFunction(t.createDirectory),e._deleteItemFunction=e._ensureFunction(t.deleteItem),e._moveItemFunction=e._ensureFunction(t.moveItem),e._copyItemFunction=e._ensureFunction(t.copyItem),e._uploadFileChunkFunction=e._ensureFunction(t.uploadFileChunk),e._abortFileUploadFunction=e._ensureFunction(t.abortFileUpload),e._downloadItemsFunction=e._ensureFunction(t.downloadItems),e._getItemsContentFunction=e._ensureFunction(t.getItemsContent),e}return e=l,(n=[{key:"getItems",value:function(t){var e=this,n=t.getFullPathInfo();return this._executeActionAsDeferred((function(){return e._getItemsFunction(t)}),!0).then((function(t){return e._convertDataObjectsToFileItems(t,n)}))}},{key:"renameItem",value:function(t,e){var n=this;return this._executeActionAsDeferred((function(){return n._renameItemFunction(t,e)}))}},{key:"createDirectory",value:function(t,e){var n=this;return this._executeActionAsDeferred((function(){return n._createDirectoryFunction(t,e)}))}},{key:"deleteItems",value:function(t){var e=this;return t.map((function(t){return e._executeActionAsDeferred((function(){return e._deleteItemFunction(t)}))}))}},{key:"moveItems",value:function(t,e){var n=this;return t.map((function(t){return n._executeActionAsDeferred((function(){return n._moveItemFunction(t,e)}))}))}},{key:"copyItems",value:function(t,e){var n=this;return t.map((function(t){return n._executeActionAsDeferred((function(){return n._copyItemFunction(t,e)}))}))}},{key:"uploadFileChunk",value:function(t,e,n){var i=this;return this._executeActionAsDeferred((function(){return i._uploadFileChunkFunction(t,e,n)}))}},{key:"abortFileUpload",value:function(t,e,n){var i=this;return this._executeActionAsDeferred((function(){return i._abortFileUploadFunction(t,e,n)}))}},{key:"downloadItems",value:function(t){return this._downloadItemsFunction(t)}},{key:"getItemsContent",value:function(t){var e=this;return this._executeActionAsDeferred((function(){return e._getItemsContentFunction(t)}))}},{key:"_hasSubDirs",value:function(t){var e=this._hasSubDirsGetter(t);return"boolean"!==typeof e||e}},{key:"_getKeyExpr",value:function(t){return t.keyExpr||"key"}},{key:"_ensureFunction",value:function(t,e){return e=e||o.noop,(0,r.isFunction)(t)?t:e}}])&&u(e.prototype,n),i&&u(e,i),l}(((i=s)&&i.__esModule?i:{default:i}).default);t.exports=p,t.exports.default=t.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileManagerCommandManager=void 0;var i,o=n(0),r=n(2),a=n(12),s=(i=a)&&i.__esModule?i:{default:i};function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.FileManagerCommandManager=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._actions={},this._permissions=e||{},this._initCommands()}var e,n,i;return e=t,(n=[{key:"_initCommands",value:function(){var t=this;this._commands=[{name:"create",text:s.default.format("dxFileManager-commandCreate"),icon:"newfolder",enabled:this._permissions.create,noFileItemRequired:!0},{name:"rename",text:s.default.format("dxFileManager-commandRename"),icon:"rename",enabled:this._permissions.rename,isSingleFileItemCommand:!0},{name:"move",text:s.default.format("dxFileManager-commandMove"),icon:"movetofolder",enabled:this._permissions.move},{name:"copy",text:s.default.format("dxFileManager-commandCopy"),icon:"copy",enabled:this._permissions.copy},{name:"delete",text:s.default.format("dxFileManager-commandDelete"),icon:"trash",enabled:this._permissions.delete},{name:"download",text:s.default.format("dxFileManager-commandDownload"),icon:"download",enabled:this._permissions.download},{name:"upload",text:s.default.format("dxFileManager-commandUpload"),icon:"upload",enabled:this._permissions.upload,noFileItemRequired:!0},{name:"refresh",text:s.default.format("dxFileManager-commandRefresh"),icon:"dx-filemanager-i dx-filemanager-i-refresh",enabled:!0,noFileItemRequired:!0},{name:"thumbnails",text:s.default.format("dxFileManager-commandThumbnails"),icon:"mediumiconslayout",enabled:!0,noFileItemRequired:!0},{name:"details",text:s.default.format("dxFileManager-commandDetails"),icon:"detailslayout",enabled:!0,noFileItemRequired:!0},{name:"clearSelection",text:s.default.format("dxFileManager-commandClearSelection"),icon:"remove",enabled:!0},{name:"showNavPane",hint:s.default.format("dxFileManager-commandShowNavPane"),icon:"menu",enabled:!1,noFileItemRequired:!0}],this._commandMap={},this._commands.forEach((function(e){t._commandMap[e.name]=e}))}},{key:"registerActions",value:function(t){this._actions=(0,o.extend)(this._actions,t)}},{key:"executeCommand",value:function(t,e){var n=(0,r.isString)(t)?t:t.name,i=this._actions[n];if(i)return i(e)}},{key:"setCommandEnabled",value:function(t,e){var n=this.getCommandByName(t);n&&(n.enabled=e)}},{key:"getCommandByName",value:function(t){return this._commandMap[t]}},{key:"isCommandAvailable",value:function(t,e){var n=this.getCommandByName(t);if(!n||!n.enabled)return!1;if(n.noFileItemRequired)return!0;var i=e&&e.length||0;return 0!==i&&!e.some((function(t){return t.fileItem.isRoot()||t.fileItem.isParentFolder}))&&("download"===t?e.every((function(t){return!t.fileItem.isDirectory})):!n.isSingleFileItemCommand||1===i)}}])&&l(e.prototype,n),i&&l(e,i),t}()},function(t,e,n){"use strict";var i=u(n(3)),o=n(0),r=n(2),a=n(4),s=u(n(20)),l=u(n(414));function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function f(t,e,n){return(f="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v={create:{},upload:{},download:{},rename:{},move:{},copy:{},delete:{},refresh:{beginGroup:!0}},y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(c,t);var e,n,s,u=m(c);function c(){return d(this,c),u.apply(this,arguments)}return e=c,(n=[{key:"_initMarkup",value:function(){var t=this;this._initActions(),this._isVisible=!1;var e=(0,i.default)("<div>").appendTo(this.$element());this._contextMenu=this._createComponent(e,l.default,{cssClass:"dx-filemanager-context-menu",showEvent:"",onItemClick:function(e){return t._onContextMenuItemClick(e.itemData.name,e)},onHidden:function(){return t._onContextMenuHidden()}}),f(_(c.prototype),"_initMarkup",this).call(this)}},{key:"showAt",value:function(t,e,n){this._isVisible&&this._raiseContextMenuHidden(),this._isVisible=!0;var i=this.createContextMenuItems(t),o={of:e,at:"top left",my:"top left",offset:""};n?o.offset=n.offsetX+" "+n.offsetY:(o.my="left top",o.at="left bottom",o.boundaryOffset="1"),this._contextMenu.option({dataSource:i,target:e,position:o}),this._contextMenu.show()}},{key:"createContextMenuItems",value:function(t,e){var n=this;this._targetFileItems=t;var i=[];return(e||this.option("items")).forEach((function(e){var o=(0,r.isString)(e)?e:e.name,a=n._configureItemByCommandName(o,e,t);n._isContextMenuItemAvailable(a,t)&&i.push(a)})),i}},{key:"_isContextMenuItemAvailable",value:function(t,e){return this._isDefaultItem(t.name)&&t._autoHide?!(this._isIsolatedCreationItemCommand(t.name)&&e&&e.length)&&this._commandManager.isCommandAvailable(t.name,e):(0,a.ensureDefined)(t.visible,!0)}},{key:"_isIsolatedCreationItemCommand",value:function(t){return("create"===t||"upload"===t)&&this.option("isolateCreationItemCommands")}},{key:"_isDefaultItem",value:function(t){return!!v[t]}},{key:"_extendAttributes",value:function(t,e,n){n.forEach((function(n){(0,o.extend)(t,e[n]?function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},n,e[n]):{})}))}},{key:"_configureItemByCommandName",value:function(t,e,n){if(!this._isDefaultItem(t)){var i=(0,o.extend)(!0,{},e);return i.originalItemData=e,this._addItemClickHandler(t,i),Array.isArray(e.items)&&(i.items=this.createContextMenuItems(n,e.items)),i}var a=this._createMenuItemByCommandName(t),s=v[t];return(0,o.extend)(a,s),a.originalItemData=e,this._extendAttributes(a,e,["visible","beginGroup","text","icon"]),(0,r.isDefined)(a.visible)?this._extendAttributes(a,e,["visible","disabled"]):a._autoHide=!0,t&&!a.name&&(0,o.extend)(a,{name:t}),a}},{key:"_createMenuItemByCommandName",value:function(t){var e=this._commandManager.getCommandByName(t),n={name:t,text:e.text,icon:e.icon};return this._addItemClickHandler(t,n),n}},{key:"_addItemClickHandler",value:function(t,e){var n=this;e.onItemClick=function(e){return n._onContextMenuItemClick(t,e)}}},{key:"_onContextMenuItemClick",value:function(t,e){var n=(0,o.extend)(!0,{},e);if(n.itemData=e.itemData.originalItemData,this._actions.onItemClick(n),this._isDefaultItem(t)){var i=this._isIsolatedCreationItemCommand(t)?null:this._targetFileItems;this._commandManager.executeCommand(t,i)}}},{key:"_initActions",value:function(){this._actions={onContextMenuHidden:this._createActionByOption("onContextMenuHidden"),onItemClick:this._createActionByOption("onItemClick")}}},{key:"_onContextMenuHidden",value:function(){this._isVisible=!1,this._raiseContextMenuHidden()}},{key:"_raiseContextMenuHidden",value:function(){this._actions.onContextMenuHidden()}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(f(_(c.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,onContextMenuHidden:null,onItemClick:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"commandManager":this.repaint();break;case"items":if(this._isVisible){var n=this.createContextMenuItems(this._targetFileItems);this._contextMenu.option("dataSource",n)}break;case"onItemClick":case"onContextMenuHidden":this._actions[e]=this._createActionByOption(e);break;default:f(_(c.prototype),"_optionChanged",this).call(this,t)}}},{key:"_commandManager",get:function(){return this.option("commandManager")}}])&&h(e.prototype,n),s&&h(e,s),c}(s.default);t.exports=y},function(t,e,n){"use strict";var i=d(n(3)),o=n(0),r=n(170),a=n(2),s=d(n(12)),l=d(n(417)),u=d(n(484)),c=d(n(483));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b={thumbnail:{caption:"",calculateSortValue:"isDirectory",width:36,alignment:"center",cssClass:"dx-filemanager-details-item-is-directory"},name:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionName")},dateModified:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionDateModified"),width:110,hidingPriority:1},size:{caption:s.default.format("dxFileManager-listDetailsColumnCaptionFileSize"),width:90,alignment:"right",hidingPriority:0},isParentFolder:{caption:"isParentFolder",visible:!1,sortIndex:0,sortOrder:"asc"}},w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(d,t);var e,n,s,u=_(d);function d(){return f(this,d),u.apply(this,arguments)}return e=d,(n=[{key:"_initMarkup",value:function(){var t=this;this._itemCount=0,this._focusedItem=null,this._hasParentDirectoryItem=!1,this._parentDirectoryItemKey=null,this._selectAllCheckBox=null,this._selectAllCheckBoxUpdating=!1,this.$element().addClass("dx-filemanager-details"),this._createFilesView(),this._contextMenu.option("onContextMenuHidden",(function(){return t._onContextMenuHidden()})),m(y(d.prototype),"_initMarkup",this).call(this)}},{key:"_createFilesView",value:function(){var t=(0,i.default)("<div>").appendTo(this.$element()),e=this._isMultipleSelectionMode()?"multiple":"none";this._filesView=this._createComponent(t,l.default,{dataSource:this._createDataSource(),hoverStateEnabled:!0,selection:{mode:e,showCheckBoxesMode:this._isDesktop()?"onClick":"none"},selectedRowKeys:this.option("selectedItemKeys"),focusedRowKey:this.option("focusedItemKey"),focusedRowEnabled:!0,allowColumnResizing:!0,scrolling:{mode:"virtual"},sorting:{mode:"single",showSortIndexes:!1},showColumnLines:!1,showRowLines:!1,columnHidingEnabled:!0,columns:this._createColumns(),onEditorPreparing:this._onEditorPreparing.bind(this),onRowPrepared:this._onRowPrepared.bind(this),onContextMenuPreparing:this._onContextMenuPreparing.bind(this),onSelectionChanged:this._onFilesViewSelectionChanged.bind(this),onFocusedRowChanged:this._onFilesViewFocusedRowChanged.bind(this),onOptionChanged:this._onFilesViewOptionChanged.bind(this)})}},{key:"_createColumns",value:function(){var t=this,e=this.option("detailColumns");e=(e=e.slice(0)).map((function(e){var n=e;return(0,a.isString)(e)&&(n={dataField:e}),t._getPreparedColumn(n)}));var n=this.option("customizeDetailColumns");return(0,a.isFunction)(n)&&(e=n(e)),e.push(this._getPreparedColumn({dataField:"isParentFolder"})),e.forEach((function(e){return t._updateColumnDataField(e)})),e}},{key:"_getPreparedColumn",value:function(t){var e={},n="";if(this._isDefaultColumn(t.dataField)){var i=(0,o.extend)(!0,{},b[t.dataField]);n=i.cssClass||"","thumbnail"===t.dataField&&(i.cellTemplate=this._createThumbnailColumnCell.bind(this),i.calculateSortValue="fileItem.".concat(i.calculateSortValue)),"name"===t.dataField&&(i.cellTemplate=this._createNameColumnCell.bind(this)),"size"===t.dataField&&(i.calculateCellValue=this._calculateSizeColumnCellValue.bind(this)),(0,o.extend)(!0,e,i)}return(0,r.extendAttributes)(e,t,["alignment","caption","dataField","dataType","hidingPriority","sortIndex","sortOrder","visible","visibleIndex","width"]),t.cssClass&&(n=n?"".concat(n," ").concat(t.cssClass):t.cssClass),n&&(e.cssClass=n),e}},{key:"_updateColumnDataField",value:function(t){var e=this._isDefaultColumn(t.dataField)?"":"dataItem.";return t.dataField="fileItem."+e+t.dataField,t}},{key:"_isDefaultColumn",value:function(t){return!!b[t]}},{key:"_onFileItemActionButtonClick",value:function(t){var e=t.component,n=t.element;t.event.stopPropagation();var i=e.$element().closest(this._getItemSelector()).data("item");this._selectItem(i),this._showContextMenu(this._getFileItemsForContextMenu(i),n),this._activeFileActionsButton=e,this._activeFileActionsButton.setActive(!0)}},{key:"_onContextMenuHidden",value:function(){this._activeFileActionsButton&&this._activeFileActionsButton.setActive(!1)}},{key:"_getItemThumbnailCssClass",value:function(){return"dx-filemanager-details-item-thumbnail"}},{key:"_getItemSelector",value:function(){return".".concat("dx-data-row")}},{key:"_onItemDblClick",value:function(t){var e=(0,i.default)(t.currentTarget).data("item");this._raiseSelectedItemOpened(e)}},{key:"_isAllItemsSelected",value:function(){var t=this._hasParentDirectoryItem?this._itemCount-1:this._itemCount,e=this._filesView.option("selectedRowKeys");return!!e.length&&(e.length>=t||void 0)}},{key:"_onEditorPreparing",value:function(t){var e=this,n=t.component,i=t.command,o=t.row,r=t.parentType,a=t.editorOptions;this._filesView||(this._filesView=n),"select"===i&&o?this._isParentDirectoryItem(o.data)&&(a.disabled=!0):"headerRow"===r&&(a.onInitialized=function(t){var n=t.component;e._selectAllCheckBox=n},a.value=this._isAllItemsSelected(),a.onValueChanged=function(t){return e._onSelectAllCheckBoxValueChanged(t)})}},{key:"_onSelectAllCheckBoxValueChanged",value:function(t){var e=t.event,n=t.previousValue,i=t.value;e?this._isAllItemsSelected()!==i&&(i?this._filesView.selectAll():this._filesView.deselectAll(),e.preventDefault()):n&&!this._selectAllCheckBoxUpdating&&this._selectAllCheckBox&&this._selectAllCheckBox.option("value",n)}},{key:"_onRowPrepared",value:function(t){var e=t.rowType,n=t.rowElement,o=t.data;if("data"===e){var r=(0,i.default)(n);r.data("item",o),this._isParentDirectoryItem(o)&&r.addClass("dx-filemanager-parent-directory-item")}}},{key:"_onContextMenuPreparing",value:function(t){if(this._isDesktop()){var e=null;if(t.row&&"data"===t.row.rowType){var n=t.row.data;this._selectItem(n),e=this._getFileItemsForContextMenu(n)}t.items=this._contextMenu.createContextMenuItems(e)}}},{key:"_onFilesViewSelectionChanged",value:function(t){var e=t.component,n=t.selectedRowsData,i=t.selectedRowKeys,o=t.currentSelectedRowKeys,r=t.currentDeselectedRowKeys;this._filesView=this._filesView||e,this._selectAllCheckBox&&(this._selectAllCheckBoxUpdating=!0,this._selectAllCheckBox.option("value",this._isAllItemsSelected()),this._selectAllCheckBoxUpdating=!1);var a=n.map((function(t){return t.fileItem}));this._tryRaiseSelectionChanged({selectedItemInfos:n,selectedItems:a,selectedItemKeys:i,currentSelectedItemKeys:o,currentDeselectedItemKeys:r})}},{key:"_onFilesViewFocusedRowChanged",value:function(t){var e,n;this._isMultipleSelectionMode()||this._selectItemSingleSelection(null===(n=t.row)||void 0===n?void 0:n.data);var i=(null===(e=t.row)||void 0===e?void 0:e.data.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null===i||void 0===i?void 0:i.key,itemElement:t.rowElement})}},{key:"_onFilesViewOptionChanged",value:function(t){t.fullName.indexOf("sortOrder")>-1&&this._filesView.columnOption("isParentFolder",{sortOrder:"asc",sortIndex:0})}},{key:"_createThumbnailColumnCell",value:function(t,e){this._getItemThumbnailContainer(e.data).appendTo(t)}},{key:"_createNameColumnCell",value:function(t,e){var n=this,o=(0,i.default)("<div>"),r=(0,i.default)("<span>").text(e.data.fileItem.name).addClass("dx-filemanager-details-item-name"),a=(0,i.default)("<div>").append(r,o).addClass("dx-filemanager-details-item-name-wrapper");(0,i.default)(t).append(a),this._createComponent(o,c.default,{onClick:function(t){return n._onFileItemActionButtonClick(t)}})}},{key:"_calculateSizeColumnCellValue",value:function(t){return t.fileItem.isDirectory?"":(0,r.getDisplayFileSize)(t.fileItem.size)}},{key:"_selectItem",value:function(t){(this._isMultipleSelectionMode()?this._selectItemMultipleSelection:this._selectItemSingleSelection).call(this,t)}},{key:"_deselectItem",value:function(t){this._filesView.deselectRows([t.fileItem.key])}},{key:"_selectItemSingleSelection",value:function(t){if(!this._focusedItem||!t||this._focusedItem.fileItem.key!==t.fileItem.key){var e=this._focusedItem;this._focusedItem=t;var n=[];e&&n.push(e.fileItem.key);var i=[],o=[];t&&(i.push(t.fileItem),o.push(t.fileItem.key)),this._raiseSelectionChanged({selectedItems:i,selectedItemKeys:o,currentSelectedItemKeys:[].concat(o),currentDeselectedItemKeys:n})}}},{key:"_selectItemMultipleSelection",value:function(t){var e=t.fileItem;if(!this._filesView.isRowSelected(e.key)){var n=this._filesView.getController("selection").isSelectionWithCheckboxes();this._filesView.selectRows([e.key],n)}}},{key:"_setSelectedItemKeys",value:function(t){this._filesView.option("selectedRowKeys",t)}},{key:"_setFocusedItemKey",value:function(t){this._filesView.option("focusedRowKey",t)}},{key:"clearSelection",value:function(){this._isMultipleSelectionMode()?this._filesView.clearSelection():this._filesView.option("focusedRowIndex",-1)}},{key:"refresh",value:function(t){var e={dataSource:this._createDataSource()};t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&((0,a.isDefined)(t.focusedItemKey)?e.focusedRowKey=t.focusedItemKey:e.focusedRowIndex=-1),this._filesView.option(e)}},{key:"getSelectedItems",value:function(){return this._isMultipleSelectionMode()?this._filesView.getSelectedRowsData():this._focusedItem&&!this._isParentDirectoryItem(this._focusedItem)?[this._focusedItem]:[]}}])&&p(e.prototype,n),s&&p(e,s),d}(u.default);t.exports=w},function(t,e,n){"use strict";var i=f(n(3)),o=n(0),r=n(7),a=f(n(6)),s=n(11),l=n(257),u=n(170),c=f(n(12)),d=f(n(886)),h=f(n(484));function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return(p="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e,n){return(_="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}(p,t);var e,n,h,f=y(p);function p(){return m(this,p),f.apply(this,arguments)}return e=p,(n=[{key:"_initMarkup",value:function(){_(w(p.prototype),"_initMarkup",this).call(this),this.$element().addClass("dx-filemanager-thumbnails");var t=(0,s.addNamespace)(l.name,"dxFileManager_thumbnails");a.default.on(this.$element(),t,this._onContextMenu.bind(this)),this._createItemList()}},{key:"_createItemList",value:function(){var t=this._isMultipleSelectionMode()?"multiple":"single",e=(0,i.default)("<div>").appendTo(this.$element());this._itemList=this._createComponent(e,d.default,{dataSource:this._createDataSource(),selectionMode:t,selectedItemKeys:this.option("selectedItemKeys"),focusedItemKey:this.option("focusedItemKey"),activeStateEnabled:!0,hoverStateEnabled:!0,loopItemFocus:!1,focusStateEnabled:!0,onItemEnterKeyPressed:this._tryOpen.bind(this),itemThumbnailTemplate:this._getItemThumbnailContainer.bind(this),getTooltipText:this._getTooltipText.bind(this),onSelectionChanged:this._onItemListSelectionChanged.bind(this),onFocusedItemChanged:this._onItemListFocusedItemChanged.bind(this)})}},{key:"_onContextMenu",value:function(t){if(t.preventDefault(),this._isDesktop()){var e=null,n=(0,i.default)(t.target).closest(this._getItemSelector());if(n.length>0){var o=this._itemList.getItemByItemElement(n);this._itemList.selectItem(o),e=this._getFileItemsForContextMenu(o)}this._showContextMenu(e,t.target,t)}}},{key:"_getItemThumbnailCssClass",value:function(){return"dx-filemanager-thumbnails-item-thumbnail"}},{key:"_getItemSelector",value:function(){return".".concat("dx-filemanager-thumbnails-item")}},{key:"_getTooltipText",value:function(t){var e=t.fileItem;if(e.tooltipText)return e.tooltipText;var n="".concat(e.name,"\r\n");return e.isDirectory||(n+="".concat(c.default.format("dxFileManager-listThumbnailsTooltipTextSize"),": ").concat((0,u.getDisplayFileSize)(e.size),"\r\n")),n+="".concat(c.default.format("dxFileManager-listThumbnailsTooltipTextDateModified"),": ").concat(e.dateModified)}},{key:"_onItemDblClick",value:function(t){var e=(0,i.default)(t.currentTarget),n=this._itemList.getItemByItemElement(e);this._tryOpen(n)}},{key:"_tryOpen",value:function(t){t&&this._raiseSelectedItemOpened(t)}},{key:"_getItemsInternal",value:function(){return _(w(p.prototype),"_getItemsInternal",this).call(this).then((function(t){var e=new r.Deferred;return setTimeout((function(){return e.resolve(t)})),e.promise()}))}},{key:"_disableDragging",value:function(){return!1}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(_(w(p.prototype),"_getDefaultOptions",this).call(this),{focusStateEnabled:!0})}},{key:"_onItemListSelectionChanged",value:function(t){var e=t.addedItemKeys,n=t.removedItemKeys,i=this.getSelectedItems(),o=i.map((function(t){return t.fileItem})),r=o.map((function(t){return t.key}));this._tryRaiseSelectionChanged({selectedItemInfos:i,selectedItems:o,selectedItemKeys:r,currentSelectedItemKeys:e,currentDeselectedItemKeys:n})}},{key:"_onItemListFocusedItemChanged",value:function(t){var e=t.item,n=t.itemElement;this._isMultipleSelectionMode()||this._selectItemSingleSelection(e);var i=(null===e||void 0===e?void 0:e.fileItem)||null;this._onFocusedItemChanged({item:i,itemKey:null===i||void 0===i?void 0:i.key,itemElement:n||void 0})}},{key:"_setSelectedItemKeys",value:function(t){this._itemList.option("selectedItemKeys",t)}},{key:"_setFocusedItemKey",value:function(t){this._itemList.option("focusedItemKey",t)}},{key:"refresh",value:function(t){var e={dataSource:this._createDataSource()};t&&Object.prototype.hasOwnProperty.call(t,"focusedItemKey")&&(e.focusedItemKey=t.focusedItemKey),this._itemList.option(e)}},{key:"_deselectItem",value:function(t){var e=this._itemList.getItemElementByItem(t);this._itemList.unselectItem(e)}},{key:"_selectItemSingleSelection",value:function(t){t?this._itemList.selectItem(t):this._itemList.clearSelection()}},{key:"clearSelection",value:function(){this._itemList.clearSelection()}},{key:"getSelectedItems",value:function(){return this._itemList.getSelectedItems()}}])&&g(e.prototype,n),h&&g(e,h),p}(h.default);t.exports=x},function(t,e,n){"use strict";var i=m(n(3)),o=n(0),r=n(16),a=n(2),s=n(7),l=m(n(135)),u=n(11),c=m(n(6)),d=n(73),h=m(n(266)),f=m(n(69)),p=m(n(258));function m(t){return t&&t.__esModule?t:{default:t}}function g(t){return(g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function b(t,e,n){return(b="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=(0,u.addNamespace)(l.default.name,"dxFileManagerThumbnailsListBox"),I=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(n,t);var e=x(n);function n(){return _(this,n),e.apply(this,arguments)}return y(n,[{key:"_initMarkup",value:function(){this._initActions(),this._lockFocusedItemProcessing=!1,this.$element().addClass("dx-filemanager-thumbnails-view-port"),this._renderScrollView(),this._renderItemsContainer(),this._createScrollViewControl(),b(S(n.prototype),"_initMarkup",this).call(this),this.onFocusedItemChanged=this._onFocusedItemChanged.bind(this),this._layoutUtils=new T(this._scrollView,this.$element(),this._$itemContainer,this.itemElements().first()),this._syncFocusedItemKey()}},{key:"_initActions",value:function(){this._actions={onItemEnterKeyPressed:this._createActionByOption("onItemEnterKeyPressed"),onFocusedItemChanged:this._createActionByOption("onFocusedItemChanged")}}},{key:"_initTemplates",value:function(){b(S(n.prototype),"_initTemplates",this).call(this),this._itemThumbnailTemplate=this.option("itemThumbnailTemplate"),this._getTooltipText=this.option("getTooltipText"),this._templateManager.addDefaultTemplates({item:new d.BindableTemplate(function(t,e,n){var i=this._getDefaultItemTemplate(n,t);t.append(i)}.bind(this),["fileItem"],this.option("integrationOptions.watchMethod"))})}},{key:"_createScrollViewControl",value:function(){this._scrollView||(this._scrollView=this._createComponent(this._$scrollView,h.default,{scrollByContent:!0,scrollByThumb:!0,useKeyboard:!1,showScrollbar:"onHover"}))}},{key:"_renderScrollView",value:function(){this._$scrollView||(this._$scrollView=(0,i.default)("<div>").appendTo(this.$element()))}},{key:"_renderItemsContainer",value:function(){this._$itemContainer||(this._$itemContainer=(0,i.default)("<div>").addClass("dx-filemanager-thumbnails-container").appendTo(this._$scrollView))}},{key:"_render",value:function(){b(S(n.prototype),"_render",this).call(this),this._detachEventHandlers(),this._attachEventHandlers()}},{key:"_clean",value:function(){this._detachEventHandlers(),b(S(n.prototype),"_clean",this).call(this)}},{key:"_supportedKeys",value:function(){return(0,o.extend)(b(S(n.prototype),"_supportedKeys",this).call(this),{upArrow:function(t){this._beforeKeyProcessing(t),this._processArrowKeys(-1,!1,t)},downArrow:function(t){this._beforeKeyProcessing(t),this._processArrowKeys(1,!1,t)},home:function(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(0,!0,t)},end:function(t){this._beforeKeyProcessing(t),this._processHomeEndKeys(this._getItemsLength()-1,!0,t)},pageUp:function(t){this._beforeKeyProcessing(t),this._processPageChange(!0,t)},pageDown:function(t){this._beforeKeyProcessing(t),this._processPageChange(!1,t)},enter:function(t){this._beforeKeyProcessing(t),this._actions.onItemEnterKeyPressed(this._getFocusedItem())},A:function(t){this._beforeKeyProcessing(t),(t.ctrlKey||t.metaKey)&&this.selectAll()}})}},{key:"_beforeKeyProcessing",value:function(t){t.preventDefault(),this._layoutUtils.reset()}},{key:"_processArrowKeys",value:function(t,e,n){var i=this._getFocusedItem();if(i){if(!e){var o=this._layoutUtils.getLayoutModel();if(!o)return;t*=o.itemPerRowCount}var r=this._getIndexByItem(i)+t;this._focusItemByIndex(r,!0,n)}}},{key:"_processHomeEndKeys",value:function(t,e,n){this._focusItemByIndex(t,e,n)}},{key:"_processPageChange",value:function(t,e){var n=this._getFocusedItem();if(n){var i=this._layoutUtils.getLayoutModel();if(i){var o=this._layoutUtils.createItemLayoutModel(this._getIndexByItem(n)),r=t?i.rowPerPageRate:-i.rowPerPageRate,a=o.itemRowIndex-r,s=(t?Math.ceil:Math.floor)(a)*i.itemPerRowCount+o.itemColumnIndex;s<0?s=0:s>=this._getItemsLength()&&(s=this._getItemsLength()-1),this._focusItemByIndex(s,!0,e)}}}},{key:"_processLongTap",value:function(t){var e=this._closestItemElement((0,i.default)(t.target)),n=this._getIndexByItemElement(e);this._selection.changeItemSelection(n,{control:!0})}},{key:"_attachEventHandlers",value:function(){var t=this;"multiple"===this.option("selectionMode")&&c.default.on(this._itemContainer(),k,".".concat(this._itemContentClass()),(function(e){t._processLongTap(e),e.stopPropagation()})),c.default.on(this._itemContainer(),"mousedown selectstart",(function(t){t.shiftKey&&t.preventDefault()}))}},{key:"_detachEventHandlers",value:function(){c.default.off(this._itemContainer(),k),c.default.off(this._itemContainer(),"mousedown selectstart")}},{key:"_itemContainer",value:function(){return this._$itemContainer}},{key:"_itemClass",value:function(){return"dx-filemanager-thumbnails-item"}},{key:"_itemDataKey",value:function(){return"dxFileManagerItemData"}},{key:"_getDefaultItemTemplate",value:function(t,e){e.attr("title",this._getTooltipText(t));var n=this._itemThumbnailTemplate(t),o=(0,i.default)("<div>").addClass("dx-filemanager-thumbnails-item-spacer"),r=(0,i.default)("<div>").addClass("dx-filemanager-thumbnails-item-name").text(t.fileItem.name);e.append(n,o,r)}},{key:"_itemSelectHandler",value:function(t){var e={};"multiple"===this.option("selectionMode")&&(this._isPreserveSelectionMode||(this._isPreserveSelectionMode=t.ctrlKey||t.metaKey||t.shiftKey),e={control:this._isPreserveSelectionMode,shift:t.shiftKey});var n=this._getIndexByItemElement(t.currentTarget);this._selection.changeItemSelection(n,e)}},{key:"_initSelectionModule",value:function(){var t=this;b(S(n.prototype),"_initSelectionModule",this).call(this);var e=(0,o.extend)(this._selection.options,{selectedKeys:this.option("selectedItemKeys"),onSelectionChanged:function(e){t.option("selectedItems",t._getItemsByKeys(e.selectedItemKeys,e.selectedItems)),t._updateSelectedItems(e)}});this._selection=new p.default(e)}},{key:"_updateSelectedItems",value:function(t){var e=this,n=t.addedItemKeys,i=t.removedItemKeys;if(this._rendered&&(n.length||i.length)){var o=this._selectionChangePromise;if(!this._rendering){var r,a=[],l=[];this._editStrategy.beginCache();for(var u=0;u<i.length;u++)r=this._getIndexByKey(i[u]),l.push(r),this._removeSelection(r);for(var c=0;c<n.length;c++)r=this._getIndexByKey(n[c]),a.push(r),this._addSelection(r);this._editStrategy.endCache(),this._updateSelection(a,l)}(0,s.when)(o).done((function(){return e._fireSelectionChangeEvent(t)}))}}},{key:"_fireSelectionChangeEvent",value:function(t){this._createActionByOption("onSelectionChanged",{excludeValidators:["disabled","readOnly"]})(t)}},{key:"_updateSelection",value:function(t,e){0===this.getSelectedItems().length&&(this._isPreserveSelectionMode=!1)}},{key:"_normalizeSelectedItems",value:function(){var t=this._getKeysByItems(this.option("selectedItems")),e=this._selection.getSelectedItemKeys();return this._compareKeys(e,t)||this._selection.setSelection(t),(new s.Deferred).resolve().promise()}},{key:"_focusOutHandler",value:function(){}},{key:"_getItems",value:function(){return this.option("items")||[]}},{key:"_getItemsLength",value:function(){return this._getItems().length}},{key:"_getIndexByItemElement",value:function(t){return this._editStrategy.getNormalizedIndex(t)}},{key:"_getItemByIndex",value:function(t){return this._getItems()[t]}},{key:"_getFocusedItem",value:function(){return this.getItemByItemElement(this.option("focusedElement"))}},{key:"_focusItem",value:function(t,e){this.option("focusedElement",this.getItemElementByItem(t)),e&&this._layoutUtils.scrollToItem(this._getIndexByItem(t))}},{key:"_focusItemByIndex",value:function(t,e,n){if(t>=0&&t<this._getItemsLength()){var i=this._getItemByIndex(t);this._focusItem(i,e,n)}}},{key:"_syncFocusedItemKey",value:function(){var t=this;this._syncFocusedItemKeyDeferred||(this._syncFocusedItemKeyDeferred=new s.Deferred);var e=this._syncFocusedItemKeyDeferred;if(this._dataSource&&this._dataSource.isLoading())return e.promise();var n=this.option("focusedItemKey");if((0,a.isDefined)(n)){var i=this.option("items"),o=(0,r.find)(i,(function(e){return t.keyOf(e)===n}));o?(this._focusItem(o,!0),e.resolve()):(this.option("focusedItemKey",void 0),e.reject())}else e.resolve();return this._syncFocusedItemKeyDeferred=null,e.promise()}},{key:"_onFocusedItemChanged",value:function(){var t=this._getFocusedItem(),e=this.keyOf(t);e!==this.option("focusedItemKey")&&(this._lockFocusedItemProcessing=!0,this.option("focusedItemKey",e),this._lockFocusedItemProcessing=!1,this._raiseFocusedItemChanged(t))}},{key:"_raiseFocusedItemChanged",value:function(t){var e={item:t,itemElement:this.option("focusedElement")};this._actions.onFocusedItemChanged(e)}},{key:"_changeItemSelection",value:function(t,e){if(this.isItemSelected(t)!==e){var n=this.getItemElementByItem(t),i=this._getIndexByItemElement(n);this._selection.changeItemSelection(i,{control:this._isPreserveSelectionMode})}}},{key:"_chooseSelectOption",value:function(){return"selectedItemKeys"}},{key:"getSelectedItems",value:function(){return this._selection.getSelectedItems()}},{key:"getItemElementByItem",value:function(t){return this._editStrategy.getItemElement(t)}},{key:"getItemByItemElement",value:function(t){return this._getItemByIndex(this._getIndexByItemElement(t))}},{key:"selectAll",value:function(){"multiple"===this.option("selectionMode")&&(this._selection.selectAll(),this._isPreserveSelectionMode=!0)}},{key:"selectItem",value:function(t){this._changeItemSelection(t,!0)}},{key:"deselectItem",value:function(t){this._changeItemSelection(t,!1)}},{key:"clearSelection",value:function(){this._selection.deselectAll()}},{key:"_optionChanged",value:function(t){var e=this;switch(t.name){case"items":this._layoutUtils&&this._layoutUtils.updateItems(this.itemElements().first()),b(S(n.prototype),"_optionChanged",this).call(this,t);break;case"focusedItemKey":if(this._lockFocusedItemProcessing)break;(0,a.isDefined)(t.value)?this._syncFocusedItemKey().done((function(){var t=e._getFocusedItem();e._raiseFocusedItemChanged(t)})):(this.option("focusedElement",null),this._raiseFocusedItemChanged(null));break;case"onItemEnterKeyPressed":case"onFocusedItemChanged":this._actions[t.name]=this._createActionByOption(t.name);break;default:b(S(n.prototype),"_optionChanged",this).call(this,t)}}}]),n}(f.default),T=function(){function t(e,n,i,o){_(this,t),this._layoutModel=null,this._scrollView=e,this._$viewPort=n,this._$itemContainer=i,this._$item=o}return y(t,[{key:"updateItems",value:function(t){this._$item=t}},{key:"reset",value:function(){this._layoutModel=null}},{key:"getLayoutModel",value:function(){return this._layoutModel||(this._layoutModel=this._createLayoutModel()),this._layoutModel}},{key:"_createLayoutModel",value:function(){if(!this._$item)return null;var t=this._$item.outerWidth(!0);if(0===t)return null;var e=this._$item.outerHeight(!0),n=this._$itemContainer.innerWidth(),i=this._$viewPort.innerHeight(),o=this._scrollView.scrollTop();return{itemWidth:t,itemHeight:e,viewPortWidth:n,viewPortHeight:i,viewPortScrollTop:o,viewPortScrollBottom:o+i,itemPerRowCount:Math.floor(n/t),rowPerPageRate:i/e}}},{key:"createItemLayoutModel",value:function(t){var e=this.getLayoutModel();if(!e)return null;var n=Math.floor(t/e.itemPerRowCount),i=t%e.itemPerRowCount,o=n*e.itemHeight;return{itemRowIndex:n,itemColumnIndex:i,itemTop:o,itemBottom:o+e.itemHeight}}},{key:"scrollToItem",value:function(t){var e=this.getLayoutModel();if(e){var n=Math.floor(t/e.itemPerRowCount)*e.itemHeight,i=n+e.itemHeight,o=e.viewPortScrollTop;n<e.viewPortScrollTop?o=n:i>e.viewPortScrollBottom&&(o=i-e.viewPortHeight),this._scrollView.scrollTo(o)}}}]),t}();t.exports=I},function(t,e,n){"use strict";var i=d(n(3)),o=n(0),r=n(2),a=n(4),s=d(n(12)),l=n(170),u=d(n(20)),c=d(n(167));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n(479);var b={showNavPane:{location:"before"},create:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},upload:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},refresh:{location:"after",showText:"inMenu",cssClass:"dx-filemanager-toolbar-has-large-icon",compactMode:{showText:"inMenu",locateInMenu:"auto"}},switchView:{location:"after"},download:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},move:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},copy:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},rename:{location:"before",compactMode:{showText:"inMenu",locateInMenu:"auto"}},delete:{location:"before",compactMode:{showText:"inMenu"}},clearSelection:{location:"after",locateInMenu:"never",compactMode:{showText:"inMenu"}},separator:{location:"before"}},w=["separator","switchView"],x={default:"dx-filemanager-i dx-filemanager-i-refresh",progress:"dx-filemanager-i dx-filemanager-i-progress",success:"dx-filemanager-i dx-filemanager-i-done",error:"dx-filemanager-i dx-filemanager-i-danger"},C=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(h,t);var e,n,u,d=_(h);function h(){return f(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"_initMarkup",value:function(){this._commandManager=this.option("commandManager"),this._createItemClickedAction(),this._generalToolbarVisible=!0,this._$viewSwitcherPopup=(0,i.default)("<div>").addClass("dx-filemanager-view-switcher-popup"),this._generalToolbar=this._createToolbar(this.option("generalItems")),this._fileToolbar=this._createToolbar(this.option("fileItems"),!0),this._$viewSwitcherPopup.appendTo(this.$element()),this.$element().addClass("dx-filemanager-toolbar dx-filemanager-general-toolbar")}},{key:"_render",value:function(){m(y(h.prototype),"_render",this).call(this);var t=this._getVisibleToolbar();this._checkCompactMode(t)}},{key:"_dimensionChanged",value:function(t){if(!t||"height"!==t){var e=this._getVisibleToolbar();this._checkCompactMode(e)}}},{key:"_getVisibleToolbar",value:function(){return this._generalToolbarVisible?this._generalToolbar:this._fileToolbar}},{key:"_createToolbar",value:function(t,e){var n=this,o=this._getPreparedItems(t),r=(0,i.default)("<div>").appendTo(this.$element()),a=this._createComponent(r,c.default,{items:o,visible:!e,onItemClick:function(t){return n._raiseItemClicked(t)}});return a.compactMode=!1,a}},{key:"_getPreparedItems",value:function(t){var e=this;return t=t.map((function(t){var n=t;(0,r.isString)(t)&&(n={name:t});var i=n.name,o=e._configureItemByCommandName(i,n);if(o.originalItemData=t,"separator"!==i){o.available=e._isToolbarItemAvailable(o);var a=o.available;o.visible=a}return o})),this._updateSeparatorsVisibility(t),t}},{key:"_updateSeparatorsVisibility",value:function(t,e){var n=this,i=!1,o=this._getMenuItems(e),r={before:!1,center:!1,after:!1},a={before:this._getItemsInGroup(t,o,"before"),center:this._getItemsInGroup(t,o,"center"),after:this._getItemsInGroup(t,o,"after")};return t.forEach((function(t,e){var s=t.location;if("separator"===t.name){var l=r[s]&&n._groupHasItemsAfter(a[s]);t.visible!==l&&(i=!0,t.visible=l),r[s]=!1}else n._isItemInMenu(o,t)||(r[s]=r[s]||t.visible),a[s].shift()})),e&&i&&e.repaint(),i}},{key:"_getMenuItems",value:function(t){return(t?t._getMenuItems():[]).map((function(t){return t.originalItemData}))}},{key:"_isItemInMenu",value:function(t,e){return!!t.length&&"never"!==(0,a.ensureDefined)(e.locateInMenu,"never")&&-1!==t.indexOf(e.originalItemData)}},{key:"_getItemsInGroup",value:function(t,e,n){var i=this;return t.filter((function(t){return t.location===n&&!i._isItemInMenu(e,t)}))}},{key:"_groupHasItemsAfter",value:function(t){for(var e=0;e<t.length;e++)if("separator"!==t[e].name&&t[e].visible)return!0;return!1}},{key:"_configureItemByCommandName",value:function(t,e){var n={},i=this._commandManager.getCommandByName(t);switch(i&&(n=this._createCommandItem(i)),t){case"separator":n=this._createSeparatorItem();break;case"switchView":n=this._createViewModeItem()}if(this._isDefaultItem(t)){var s=b[t];(0,o.extend)(!0,n,s),(0,l.extendAttributes)(n,e,["visible","location","locateInMenu"]),(0,r.isDefined)(e.visible)?(0,l.extendAttributes)(n,e,["disabled"]):n._autoHide=!0,(0,l.extendAttributes)(n.options,e,["text","icon"]),"dxButton"===n.widget&&("inMenu"!==n.showText||(0,r.isDefined)(n.options.hint)||(n.options.hint=n.options.text),n.compactMode&&!(0,r.isDefined)(n.options.hint)&&this._configureHintForCompactMode(n))}else(0,o.extend)(!0,n,e),n.widget||(n.widget="dxButton"),"dxButton"===n.widget&&!n.compactMode&&!n.showText&&n.options.icon&&n.options.text&&(n.compactMode={showText:"inMenu"});return t&&!n.name&&(0,o.extend)(n,{name:t}),n.location=(0,a.ensureDefined)(n.location,"before"),"dxButton"===n.widget&&(0,o.extend)(!0,n,{options:{stylingMode:"text"}}),"dxSelectBox"===n.widget&&(0,o.extend)(!0,n,{options:{stylingMode:"filled"}}),n}},{key:"_isDefaultItem",value:function(t){return!!b[t]}},{key:"_createCommandItem",value:function(t){var e=this;return{widget:"dxButton",options:{text:t.text,hint:t.hint,commandText:t.text,icon:t.icon,stylingMode:"text",onClick:function(n){return e._executeCommand(t)}}}}},{key:"_createSeparatorItem",value:function(){return{template:function(t,e,n){(0,i.default)(n).addClass("dx-filemanager-toolbar-separator-item")}}}},{key:"_createViewModeItem",value:function(){var t=this,e=["details","thumbnails"].map((function(e){var n=t._commandManager.getCommandByName(e);return{name:e,text:n.text,icon:n.icon}})),n="thumbnails"===this.option("itemViewMode")?1:0;return{cssClass:"dx-filemanager-toolbar-viewmode-item",widget:"dxDropDownButton",options:{items:e,keyExpr:"name",selectedItemKey:this.option("itemViewMode"),displayExpr:" ",hint:e[n].text,stylingMode:"text",showArrowIcon:!1,useSelectMode:!0,dropDownOptions:{container:this._$viewSwitcherPopup},onItemClick:function(e){return t._executeCommand(e.itemData.name)}}}}},{key:"_configureHintForCompactMode",value:function(t){t.options.hint="",t.compactMode.options=t.compactMode.options||{},t.compactMode.options.hint=t.options.text}},{key:"_checkCompactMode",value:function(t){t.compactMode&&this._toggleCompactMode(t,!1);var e=this._toolbarHasItemsOverflow(t);t.compactMode!==e?(t.compactMode||this._toggleCompactMode(t,e),t.compactMode=e):t.compactMode&&this._toggleCompactMode(t,!0)}},{key:"_toolbarHasItemsOverflow",value:function(t){return t.$element().width()<t._getItemsWidth()}},{key:"_toggleCompactMode",value:function(t,e){var n=this,i=!1,r=t.option("items");r.forEach((function(t){if(t.compactMode){var r=null;e?(t.saved=n._getCompactModeOptions(t,t.available),r=t.compactMode):r=t.saved;var a=n._getCompactModeOptions(r,t.available);(0,o.extend)(!0,t,a),i=!0}})),(i=this._updateSeparatorsVisibility(r)||i)&&t.repaint(),this._updateSeparatorsVisibility(r,t)}},{key:"_getCompactModeOptions",value:function(t,e){var n=t.showText,i=t.locateInMenu,o=t.options;return{visible:e,showText:(0,a.ensureDefined)(n,"always"),locateInMenu:(0,a.ensureDefined)(i,"never"),options:{hint:null===o||void 0===o?void 0:o.hint}}}},{key:"_ensureAvailableCommandsVisible",value:function(t,e){var n=this,i=!1,o=t.option("items");o.forEach((function(t){if("separator"!==t.name){var o=t.available;t.available=n._isToolbarItemAvailable(t,e),t.available!==o&&(t.visible=t.available,i=!0)}})),(i=this._updateSeparatorsVisibility(o)||i)&&t.repaint(),this._updateSeparatorsVisibility(o,t)}},{key:"_fileToolbarHasEffectiveItems",value:function(t){var e=this;return this._fileToolbar.option("items").some((function(n){return e._isFileToolbarItemAvailable(n,t)}))}},{key:"_executeCommand",value:function(t){this._commandManager.executeCommand(t)}},{key:"_isToolbarItemAvailable",value:function(t,e){return this._isDefaultItem(t.name)&&t._autoHide?"refresh"===t.name?this._generalToolbarVisible||!!this._isRefreshVisibleInFileToolbar:w.indexOf(t.name)>-1||this._commandManager.isCommandAvailable(t.name,e):(0,a.ensureDefined)(t.visible,!0)}},{key:"_isFileToolbarItemAvailable",value:function(t,e){var n=t.name,i=t.visible;return!this._isDefaultItem(n)&&(0,a.ensureDefined)(i,!0)||"clearSelection"!==n&&"refresh"!==n&&this._commandManager.isCommandAvailable(n,e)}},{key:"_updateItemInToolbar",value:function(t,e,n){t.beginUpdate();for(var i=t.option("items"),o=0;o<i.length;o++)if(i[o].name===e){t.option("items[".concat(o,"]"),n);break}t.endUpdate()}},{key:"_raiseItemClicked",value:function(t){var e=(0,o.extend)(!0,{},t);e.itemData=t.itemData.originalItemData,this._itemClickedAction(e)}},{key:"_createItemClickedAction",value:function(){this._itemClickedAction=this._createActionByOption("onItemClick")}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(m(y(h.prototype),"_getDefaultOptions",this).call(this),{commandManager:null,generalItems:[],fileItems:[],itemViewMode:"details",onItemClick:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"commandManager":case"itemViewMode":case"generalItems":case"fileItems":this.repaint();break;case"onItemClick":this._itemClickedAction=this._createActionByOption(e);break;default:m(y(h.prototype),"_optionChanged",this).call(this,t)}}},{key:"updateRefreshItem",value:function(t,e){var n=null,i=s.default.format("dxFileManager-commandRefresh"),r="inMenu";this._isRefreshVisibleInFileToolbar=!1,"default"===e?n={options:{icon:x.default}}:(n={options:{icon:x[e]}},this._isRefreshVisibleInFileToolbar=!0,i=t,r="always");var a=(0,o.extend)({},n,{visible:this._isRefreshVisibleInFileToolbar});this._applyRefreshItemOptions(n,a),this._refreshItemTextTimeout=this._updateRefreshItemText("progress"===e,i,r)}},{key:"_updateRefreshItemText",value:function(t,e,n){var i=this,o={showText:n,options:{text:e}};return t?setTimeout((function(){i._applyRefreshItemOptions(o),i._refreshItemTextTimeout=void 0}),500):(this._refreshItemTextTimeout&&clearTimeout(this._refreshItemTextTimeout),void this._applyRefreshItemOptions(o))}},{key:"_applyRefreshItemOptions",value:function(t,e){e||(e=(0,o.extend)({},t)),this._updateItemInToolbar(this._generalToolbar,"refresh",t),this._updateItemInToolbar(this._fileToolbar,"refresh",e)}},{key:"update",value:function(t){var e=0===(t=(0,a.ensureDefined)(t,[])).length||!this._fileToolbarHasEffectiveItems(t);this._generalToolbarVisible!==e&&(this._generalToolbar.option("visible",e),this._fileToolbar.option("visible",!e),this._generalToolbarVisible=e,this.$element().toggleClass("dx-filemanager-general-toolbar",e),this.$element().toggleClass("dx-filemanager-file-toolbar",!e));var n=this._getVisibleToolbar();this._ensureAvailableCommandsVisible(n,t),this._checkCompactMode(n)}}])&&p(e.prototype,n),u&&p(e,u),h}(u.default);t.exports=C},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=h(n(3)),o=n(0),r=n(2),a=n(7),s=n(10),l=h(n(20)),u=h(n(48)),c=h(n(300)),d=h(n(889));function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e,n){return(g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=(0,s.getWindow)(),x="".concat("dx-filemanager-notification","-drawer"),C="".concat(x,"-panel"),S="".concat("dx-filemanager-notification","-popup"),k="".concat("dx-filemanager-notification","-popup-error"),I="".concat("dx-filemanager-notification","-common"),T="".concat("dx-filemanager-notification","-separator"),E="".concat("dx-filemanager-notification","-details"),O="".concat("dx-filemanager-notification","-common-no-item"),M=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(f,t);var e,n,l,h=v(f);function f(){return p(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_initMarkup",value:function(){var t=this;g(b(f.prototype),"_initMarkup",this).call(this),this._initActions(),this._actionProgressStatus="default",this._operationInProgressCount=0,this._failedOperationCount=0,this._isInAdaptiveState=this._isSmallScreen();var e=this.option("progressPanelContainer"),n=(0,i.default)("<div>").addClass(x).appendTo(e);(0,i.default)("<div>").addClass(C).appendTo(n);var a=(0,o.extend)({opened:!1,position:"right",template:function(e){return t._ensureProgressPanelCreated(e)}},this._getProgressDrawerAdaptiveOptions());this._progressDrawer=this._createComponent(n,c.default,a);var s=n.find(".".concat(C)).first(),l=this.option("contentTemplate");(0,r.isFunction)(l)&&l(s)}},{key:"tryShowProgressPanel",value:function(){var t=this,e=new a.Deferred;return"default"===this._actionProgressStatus||this._isProgressDrawerOpened()?e.resolve().promise():(setTimeout((function(){t._progressDrawer.show().done(e.resolve),t._getNotificationPopup().hide(),t._tryHideActionProgress()})),e.promise())}},{key:"addOperation",value:function(t,e,n){this._operationInProgressCount++;var i=this._progressPanel.addOperation(t,e,n);return this._updateActionProgress(t,"progress"),i}},{key:"addOperationDetails",value:function(t,e,n){this._progressPanel.addOperationDetails(t,e,n)}},{key:"updateOperationItemProgress",value:function(t,e,n,i){this._progressPanel.updateOperationItemProgress(t,e,n,i)}},{key:"completeOperationItem",value:function(t,e,n){this._progressPanel.completeOperationItem(t,e,n)}},{key:"completeOperation",value:function(t,e,n,i){if(this._operationInProgressCount--,n?this._failedOperationCount++:this._showPopup(e),this._progressPanel.completeOperation(t,e,n,i),!this._isProgressDrawerOpened()||!this._tryHideActionProgress()){var o=0===this._failedOperationCount?"success":"error";this._updateActionProgress("",o)}}},{key:"completeSingleOperationWithError",value:function(t,e){this._progressPanel.completeSingleOperationWithError(t,e.detailErrorText),this._notifyError(e)}},{key:"addOperationDetailsError",value:function(t,e){this._progressPanel.addOperationDetailsError(t,e.itemIndex,e.detailErrorText),this._notifyError(e)}},{key:"_hideProgressPanel",value:function(){var t=this;setTimeout((function(){return t._progressDrawer.hide()}))}},{key:"_tryHideActionProgress",value:function(){return 0===this._operationInProgressCount&&0===this._failedOperationCount&&(this._updateActionProgress("","default"),!0)}},{key:"_updateActionProgress",value:function(t,e){this._actionProgressStatus=e,this._raiseActionProgress(t,e)}},{key:"_isSmallScreen",value:function(){return!!(0,s.hasWindow)()&&(0,i.default)(w).width()<=1e3}},{key:"_dimensionChanged",value:function(t){t&&"height"===t||this._checkAdaptiveState()}},{key:"_checkAdaptiveState",value:function(){var t=this._isInAdaptiveState;if(this._isInAdaptiveState=this._isSmallScreen(),this._progressDrawer&&t!==this._isInAdaptiveState){this._progressPanel&&this._progressPanel.$element().detach();var e=this._getProgressDrawerAdaptiveOptions();this._progressDrawer.option(e)}}},{key:"_getProgressDrawerAdaptiveOptions",value:function(){return this._isInAdaptiveState?{openedStateMode:"overlap",shading:!0,closeOnOutsideClick:!0}:{openedStateMode:"shrink",shading:!1,closeOnOutsideClick:!1}}},{key:"_ensureProgressPanelCreated",value:function(t){var e=this;if(this._progressPanel)this._progressPanel.$element().appendTo(t);else{var n=(0,i.default)("<div>").appendTo(t);this._progressPanel=this._createComponent(n,this._getProgressPanelComponent(),{onOperationClosed:function(t){var n=t.info;return e._onProgressPanelOperationClosed(n)},onOperationCanceled:function(t){var n=t.info;return e._raiseOperationCanceled(n)},onOperationItemCanceled:function(t){var n=t.item,i=t.itemIndex;return e._raiseOperationItemCanceled(n,i)},onPanelClosed:function(){return e._hideProgressPanel()}})}}},{key:"_getProgressPanelComponent",value:function(){return d.default}},{key:"_notifyError",value:function(t){this._showPopupError(t),this._updateActionProgress(t.commonErrorText,"error")}},{key:"_onProgressPanelOperationClosed",value:function(t){t.hasError&&(this._failedOperationCount--,this._tryHideActionProgress())}},{key:"_isProgressDrawerOpened",value:function(){return this._progressDrawer.option("opened")}},{key:"_showPopup",value:function(t,e){this._isProgressDrawerOpened()||(this._getNotificationPopup()._wrapper().toggleClass(k,!!e),this._getNotificationPopup().option("contentTemplate",t),this._getNotificationPopup().option("visible")||this._getNotificationPopup().show())}},{key:"_showPopupError",value:function(t){var e=(0,i.default)("<div>"),n=(0,i.default)("<div>").addClass(I).text(t.commonErrorText),o=(0,i.default)("<div>").addClass(T);(0,i.default)("<div>").appendTo(o);var r=(0,i.default)("<div>").addClass(E);t.item?this._progressPanel.createErrorDetailsProgressBox(r,t.item,t.detailErrorText):(n.addClass(O),this._progressPanel.renderError(r,o,t.detailErrorText)),e.append(n,o,r),this._showPopup(e,!0)}},{key:"_getNotificationPopup",value:function(){if(!this._notificationPopup){var t=(0,i.default)("<div>").addClass(S).appendTo(this.$element());this._notificationPopup=this._createComponent(t,u.default,{container:this.$element(),width:"auto",height:"auto",showTitle:!1,dragEnabled:!1,shading:!1,visible:!1,closeOnOutsideClick:!0,animation:{duration:0},position:{my:"right top",at:"right top",of:this.option("positionTarget"),offset:"-10 -5"}})}return this._notificationPopup}},{key:"_raiseActionProgress",value:function(t,e){this._actions.onActionProgress({message:t,status:e})}},{key:"_raiseOperationCanceled",value:function(t){this._actions.onOperationCanceled({info:t})}},{key:"_raiseOperationItemCanceled",value:function(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}},{key:"_initActions",value:function(){this._actions={onActionProgress:this._createActionByOption("onActionProgress"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled")}}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(g(b(f.prototype),"_getDefaultOptions",this).call(this),{progressPanelContainer:null,contentTemplate:null,onActionProgress:null,onOperationCanceled:null,onOperationItemCanceled:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"progressPanelContainer":case"contentTemplate":break;case"onActionProgress":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:g(b(f.prototype),"_optionChanged",this).call(this,t)}}}])&&m(e.prototype,n),l&&m(e,l),f}(l.default);e.default=M},function(t,e,n){"use strict";var i=h(n(3)),o=n(0),r=n(4),a=n(70),s=h(n(12)),l=h(n(20)),u=h(n(299)),c=h(n(42)),d=h(n(266));function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e,n){return(g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w="".concat("dx-filemanager-progress-panel","-container"),x="".concat("dx-filemanager-progress-panel","-title"),C="".concat("dx-filemanager-progress-panel","-title-text"),S="".concat("dx-filemanager-progress-panel","-close-button"),k="".concat("dx-filemanager-progress-panel","-infos-container"),I="".concat("dx-filemanager-progress-panel","-separator"),T="".concat("dx-filemanager-progress-panel","-info"),E="".concat("dx-filemanager-progress-panel","-common"),O="".concat("dx-filemanager-progress-panel","-info-with-details"),M="".concat("dx-filemanager-progress-panel","-details"),P="".concat("dx-filemanager-progress-box","-error"),D="".concat("dx-filemanager-progress-box","-without-close-button"),A="".concat("dx-filemanager-progress-box","-image"),R="".concat("dx-filemanager-progress-box","-wrapper"),B="".concat("dx-filemanager-progress-box","-common"),N="".concat("dx-filemanager-progress-box","-progress-bar"),L="".concat("dx-filemanager-progress-box","-close-button"),F=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(f,t);var e,n,l,h=v(f);function f(){return p(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_initMarkup",value:function(){var t=this;g(b(f.prototype),"_initMarkup",this).call(this),this._initActions(),this._operationCount=0,this.$element().addClass("dx-filemanager-progress-panel");var e=(0,i.default)("<div>").appendTo(this.$element()),n=(0,i.default)("<div>").addClass(w).appendTo(e);this._scrollView=this._createComponent(e,d.default,{scrollByContent:!0,scrollByThumb:!0,showScrollbar:"onScroll"});var o=(0,i.default)("<div>").addClass(x).appendTo(n);(0,i.default)("<div>").text(s.default.format("dxFileManager-notificationProgressPanelTitle")).addClass(C).appendTo(o);var r=(0,i.default)("<div>").addClass(S).appendTo(o);this._createComponent(r,c.default,{icon:"close",stylingMode:"text",onClick:function(){return t._raisePanelClosed()}}),this._$infosContainer=(0,i.default)("<div>").addClass(k).appendTo(n),this._renderEmptyListText()}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(g(b(f.prototype),"_getDefaultOptions",this).call(this),{onOperationClosed:null,onOperationCanceled:null,onOperationItemCanceled:null,onPanelClosed:null})}},{key:"_initActions",value:function(){this._actions={onOperationClosed:this._createActionByOption("onOperationClosed"),onOperationCanceled:this._createActionByOption("onOperationCanceled"),onOperationItemCanceled:this._createActionByOption("onOperationItemCanceled"),onPanelClosed:this._createActionByOption("onPanelClosed")}}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"test":break;case"onOperationClosed":case"onOperationCanceled":case"onOperationItemCanceled":this._actions[e]=this._createActionByOption(e);break;default:g(b(f.prototype),"_optionChanged",this).call(this,t)}}},{key:"addOperation",value:function(t,e,n){var o=this;this._operationCount?(0,i.default)("<div>").addClass(I).prependTo(this._$infosContainer):this._$infosContainer.empty(),this._operationCount++;var a={customCloseHandling:e,allowProgressAutoUpdate:(0,r.ensureDefined)(n,!0)},s=(0,i.default)("<div>").addClass(T).prependTo(this._$infosContainer);a.$info=s;var l=(0,i.default)("<div>").addClass(E).appendTo(s);return a.common=this._createProgressBox(l,{commonText:t,showCloseButton:!0,showCloseButtonAlways:e,onCloseButtonClick:function(){return o._closeOperation(a)}}),a}},{key:"addOperationDetails",value:function(t,e,n){var o=this;t.$info.addClass(O);var r=(0,i.default)("<div>").addClass(M).appendTo(t.$info);t.details=e.map((function(e,i){return e.info=t,o._createDetailsItem(r,e,i,!1,n)}))}},{key:"_createDetailsItem",value:function(t,e,n,o,r){var a=this,s=(0,i.default)("<div>").appendTo(t);return-1!==n&&s.addClass("dx-card"),this._createProgressBox(s,{commonText:e.commonText,imageUrl:e.imageUrl,skipProgressBox:o,showCloseButton:r,showCloseButtonAlways:r,onCloseButtonClick:function(){return a._cancelOperationItem(e,n)}})}},{key:"completeOperationItem",value:function(t,e,n){t.allowProgressAutoUpdate&&this.updateOperationItemProgress(t,e,100,n),this._setCloseButtonVisible(t.details[e],!1)}},{key:"updateOperationItemProgress",value:function(t,e,n,i){t.common.progressBar.option("value",i),t.details&&t.details[e].progressBar.option("value",n)}},{key:"completeOperation",value:function(t,e,n,i){t.completed=!0,t.common.$commonText.text(e),n?this._removeProgressBar(t.common):t.allowProgressAutoUpdate&&t.common.progressBar.option("value",100),i&&this._setProgressBarText(t.common,i),this._setCloseButtonVisible(t.common,!0)}},{key:"completeSingleOperationWithError",value:function(t,e){t.completed=!0,this._renderOperationError(t.details?t.details[0]:t.common,e),this._setCloseButtonVisible(t.common,!0)}},{key:"addOperationDetailsError",value:function(t,e,n){var i=t.details[e];this._renderOperationError(i,n),this._setCloseButtonVisible(i,!1)}},{key:"renderError",value:function(t,e,n){(0,i.default)("<div>").text(n).addClass(P).appendTo(t)}},{key:"createErrorDetailsProgressBox",value:function(t,e,n){var i=this._createDetailsItem(t,e,-1,!0);this._renderOperationError(i,n)}},{key:"_renderEmptyListText",value:function(){this._$infosContainer.text(s.default.format("dxFileManager-notificationProgressPanelEmptyListText"))}},{key:"_renderOperationError",value:function(t,e){this._removeProgressBar(t),this.renderError(t.$wrapper,t.$commonText,e)}},{key:"_removeProgressBar",value:function(t){t.progressBar&&(t.progressBar.dispose(),t.progressBar.$element().remove(),t.progressBar=null)}},{key:"_createProgressBox",value:function(t,e){var n=this;t.addClass("dx-filemanager-progress-box"),e.showCloseButtonAlways||t.addClass(D),e.imageUrl&&(0,a.getImageContainer)(e.imageUrl).addClass(A).appendTo(t);var o=(0,i.default)("<div>").addClass(R).appendTo(t),r=(0,i.default)("<div>").addClass(B).text(e.commonText).appendTo(o),s=null;if(!e.skipProgressBox){var l=(0,i.default)("<div>").addClass(N).appendTo(o);s=this._createComponent(l,u.default,{min:0,max:100,width:"100%",validationMessageMode:"always",statusFormat:function(t,e){return n._getStatusString(t,e)}})}var d=null;if(e.showCloseButton){var h=(0,i.default)("<div>").addClass(L).appendTo(t);d=this._createComponent(h,c.default,{icon:"dx-filemanager-i dx-filemanager-i-cancel",stylingMode:"text",visible:e.showCloseButtonAlways,onClick:e.onCloseButtonClick})}return{$commonText:r,progressBar:s,$element:t,$wrapper:o,closeButton:d}}},{key:"_setCloseButtonVisible",value:function(t,e){t.closeButton&&(t.$element.toggleClass(D,!e),t.closeButton.option("visible",e))}},{key:"_setProgressBarText",value:function(t,e){t.progressBar.option("statusFormat",(function(){return e}))}},{key:"_closeOperation",value:function(t){var e=this;t.customCloseHandling&&!t.completed?(this._raiseOperationCanceled(t),this._setCloseButtonVisible(t.common,!1),t.details.forEach((function(t){return e._displayClosedOperationItem(t)}))):(this._raiseOperationClosed(t),t.$info.next(".".concat(I)).remove(),t.$info.remove(),this._operationCount--,this._operationCount||this._renderEmptyListText())}},{key:"_cancelOperationItem",value:function(t,e){this._raiseOperationItemCanceled(t,e);var n=t.info.details[e];this._displayClosedOperationItem(n)}},{key:"_displayClosedOperationItem",value:function(t){this._setProgressBarText(t,s.default.format("dxFileManager-notificationProgressPanelOperationCanceled")),this._setCloseButtonVisible(t,!1)}},{key:"_getStatusString",value:function(t,e){return 1===t?s.default.format("Done"):Math.round(100*t)+"%"}},{key:"_raiseOperationClosed",value:function(t){this._actions.onOperationClosed({info:t})}},{key:"_raiseOperationCanceled",value:function(t){this._actions.onOperationCanceled({info:t})}},{key:"_raiseOperationItemCanceled",value:function(t,e){this._actions.onOperationItemCanceled({item:t,itemIndex:e})}},{key:"_raisePanelClosed",value:function(){this._actions.onPanelClosed()}}])&&m(e.prototype,n),l&&m(e,l),f}(l.default);t.exports=F},function(t,e,n){"use strict";var i=f(n(3)),o=n(0),r=n(7),a=n(5),s=n(55),l=f(n(12)),u=f(n(20)),c=f(n(891)),d=f(n(895)),h=n(896);function f(t){return t&&t.__esModule?t:{default:t}}function p(t){return function(t){if(Array.isArray(t))return m(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return m(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function g(t){return(g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function y(t,e,n){return e&&v(t.prototype,e),n&&v(t,n),t}function b(t,e,n){return(b="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(n,t);var e=x(n);function n(){return _(this,n),e.apply(this,arguments)}return y(n,[{key:"_initMarkup",value:function(){b(S(n.prototype),"_initMarkup",this).call(this),this._initActions(),this._controller=this.option("controller"),this._controller.on("EditActionStarting",this._onEditActionStarting.bind(this)),this._controller.on("EditActionResultAcquired",this._onEditActionResultAcquired.bind(this)),this._controller.on("EditActionItemError",this._onEditActionItemError.bind(this)),this._controller.on("EditActionError",this._onEditActionError.bind(this)),this._controller.on("CompleteEditActionItem",this._onCompleteEditActionItem.bind(this)),this._controller.on("CompleteEditAction",this._onCompleteEditAction.bind(this)),this._model=this.option("model"),this._uploadOperationInfoMap={},this._dialogManager=new c.default(this.$element(),{chooseDirectoryDialog:{provider:this._controller._fileProvider,getDirectories:this._controller.getDirectories.bind(this._controller),getCurrentDirectory:this._controller.getCurrentDirectory.bind(this._controller)},onDialogClosed:this._onDialogClosed.bind(this)}),this._fileUploader=this._createFileUploader(),this._createMetadataMap()}},{key:"_initNotificationControl",value:function(t){var e=this;this._notificationControl=t,this._notificationControl.option({onOperationCanceled:function(t){var n=t.info;return e._onCancelUploadSession(n)},onOperationItemCanceled:function(t){var n=t.item,i=t.itemIndex;return e._onCancelFileUpload(n,i)}})}},{key:"_getFileUploaderComponent",value:function(){return d.default}},{key:"_createFileUploader",value:function(){var t=this,e=(0,i.default)("<div>").appendTo(this.$element());return this._createComponent(e,this._getFileUploaderComponent(),{getController:this._getFileUploaderController.bind(this),onUploadSessionStarted:function(e){return t._onUploadSessionStarted(e)},onUploadProgress:function(e){return t._onUploadProgress(e)}})}},{key:"_getFileUploaderController",value:function(){var t=this,e=this._uploadDirectoryInfo&&this._uploadDirectoryInfo.fileItem;return{chunkSize:this._controller.getFileUploadChunkSize(),uploadFileChunk:function(n,i){return t._controller.uploadFileChunk(n,i,e)},abortFileUpload:function(n,i){return t._controller.abortFileUpload(n,i,e)}}}},{key:"_createMetadataMap",value:function(){var t=this;this._metadataMap={create:{action:function(e){return t._tryCreate(e)},affectsAllItems:!0,singleItemProcessingMessage:l.default.format("dxFileManager-editingCreateSingleItemProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingCreateSingleItemSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingCreateSingleItemErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingCreateCommonErrorMessage")},rename:{action:function(e){return t._tryRename(e)},singleItemProcessingMessage:l.default.format("dxFileManager-editingRenameSingleItemProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingRenameSingleItemSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingRenameSingleItemErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingRenameCommonErrorMessage")},delete:{action:function(e){return t._tryDelete(e)},singleItemProcessingMessage:l.default.format("dxFileManager-editingDeleteSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingDeleteSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingDeleteSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingDeleteMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingDeleteCommonErrorMessage")},move:{action:function(e){return t._tryMove(e)},singleItemProcessingMessage:l.default.format("dxFileManager-editingMoveSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingMoveMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingMoveSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingMoveMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingMoveSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingMoveMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingMoveCommonErrorMessage")},copy:{action:function(e){return t._tryCopy(e)},singleItemProcessingMessage:l.default.format("dxFileManager-editingCopySingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingCopyMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingCopySingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingCopyMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingCopySingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingCopyMultipleItemsErrorMessage"),commonErrorMessage:l.default.format("dxFileManager-editingCopyCommonErrorMessage")},upload:{action:function(e){return t._tryUpload(e)},allowCancel:!0,allowItemProgress:!0,singleItemProcessingMessage:l.default.format("dxFileManager-editingUploadSingleItemProcessingMessage"),multipleItemsProcessingMessage:l.default.format("dxFileManager-editingUploadMultipleItemsProcessingMessage"),singleItemSuccessMessage:l.default.format("dxFileManager-editingUploadSingleItemSuccessMessage"),multipleItemsSuccessMessage:l.default.format("dxFileManager-editingUploadMultipleItemsSuccessMessage"),singleItemErrorMessage:l.default.format("dxFileManager-editingUploadSingleItemErrorMessage"),multipleItemsErrorMessage:l.default.format("dxFileManager-editingUploadMultipleItemsErrorMessage"),canceledMessage:l.default.format("dxFileManager-editingUploadCanceledMessage")},download:{action:function(e){return t._download(e)}},getItemContent:{action:function(e){return t._getItemContent(e)}},getItems:{singleItemProcessingMessage:"",singleItemErrorMessage:l.default.format("dxFileManager-errorDirectoryOpenFailed"),commonErrorMessage:l.default.format("dxFileManager-errorDirectoryOpenFailed")}}}},{key:"getCommandActions",value:function(){var t=this,e={};return(0,a.each)(this._metadataMap,(function(n){Object.prototype.hasOwnProperty.call(t._metadataMap,n)&&(e[n]=function(e){return t._executeAction(n,e)})})),e}},{key:"_executeAction",value:function(t,e){var n=this._metadataMap[t];return n?n.action(e):null}},{key:"_onCancelUploadSession",value:function(t){this._fileUploader.cancelUpload(t.uploadSessionId)}},{key:"_onCancelFileUpload",value:function(t,e){this._fileUploader.cancelFileUpload(t.info.uploadSessionId,e)}},{key:"_onUploadProgress",value:function(t){var e=t.sessionId,n=t.fileIndex,i=t.commonValue,o=t.fileValue,r=this._uploadOperationInfoMap[e];this._notificationControl.updateOperationItemProgress(r,n,100*o,100*i)}},{key:"_onUploadSessionStarted",value:function(t){var e=t.sessionInfo;this._controller.processUploadSession(e,this._uploadDirectoryInfo)}},{key:"_onEditActionStarting",value:function(t){var e=this._metadataMap[t.name],n=new I(e,t.itemInfos,t.directory),i=this._notificationControl.addOperation(n.processingMessage,e.allowCancel,!e.allowItemProgress);if((0,o.extend)(t.customData,{context:n,operationInfo:i}),"upload"===t.name){var r=t.customData.sessionInfo.sessionId;i.uploadSessionId=r,this._uploadOperationInfoMap[r]=i}}},{key:"_onEditActionResultAcquired",value:function(t){var e=this,n=t.customData,i=n.context,o=n.operationInfo;i.singleRequest=t.singleRequest;var r=i.itemInfos.map((function(t){return e._getItemProgressDisplayInfo(t)}));this._notificationControl.addOperationDetails(o,r,i.actionMetadata.allowCancel)}},{key:"_onEditActionError",value:function(t,e){var n=t.customData,i=n.context,o=n.operationInfo;i.singleRequest=t.singleRequest,this._handleActionError(o,i,e),this._completeAction(o,i)}},{key:"_onEditActionItemError",value:function(t,e){var n=t.customData,i=n.context,o=n.operationInfo;this._handleActionError(o,i,e)}},{key:"_onCompleteEditActionItem",value:function(t,e){var n=t.customData,i=n.context,o=n.operationInfo;e.result&&e.result.canceled||(i.completeOperationItem(e.index),this._notificationControl.completeOperationItem(o,e.index,i.commonProgress))}},{key:"_onCompleteEditAction",value:function(t){var e=t.customData,n=e.context,i=e.operationInfo;this._completeAction(i,n),"upload"===t.name&&delete this._uploadOperationInfoMap[t.customData.sessionInfo.sessionId]}},{key:"_tryCreate",value:function(t){var e=this,n=t&&t[0]||this._getCurrentDirectory(),i=l.default.format("dxFileManager-newDirectoryName");return this._showDialog(this._dialogManager.getCreateItemDialog(),i).then((function(t){var i=t.name;return e._controller.createDirectory(n,i)}))}},{key:"_tryRename",value:function(t){var e=this,n=t&&t[0]||this._model.getMultipleSelectedItems()[0];return this._showDialog(this._dialogManager.getRenameItemDialog(),n.fileItem.name).then((function(t){var i=t.name;return e._controller.renameItem(n,i)}))}},{key:"_tryDelete",value:function(t){var e=this,n=(t=t||this._model.getMultipleSelectedItems())[0].fileItem.name,i=t.length;return this._showDialog(this._dialogManager.getDeleteItemDialog(),{itemName:n,itemCount:i}).then((function(){return e._controller.deleteItems(t)}))}},{key:"_tryMove",value:function(t){var e=this;return t=t||this._model.getMultipleSelectedItems(),this._showDialog(this._dialogManager.getMoveDialog()).then((function(n){var i=n.folder;return e._controller.moveItems(t,i)}))}},{key:"_tryCopy",value:function(t){var e=this;return t=t||this._model.getMultipleSelectedItems(),this._showDialog(this._dialogManager.getCopyDialog()).then((function(n){var i=n.folder;return e._controller.copyItems(t,i)}))}},{key:"_tryUpload",value:function(t){this._uploadDirectoryInfo=t&&t[0]||this._getCurrentDirectory(),this._fileUploader.tryUpload()}},{key:"_download",value:function(t){return t=t||this._model.getMultipleSelectedItems(),this._controller.downloadItems(t)}},{key:"_getItemContent",value:function(t){return t=t||this._model.getMultipleSelectedItems(),this._controller.getItemContent(t)}},{key:"_completeAction",value:function(t,e){this._notificationControl.completeOperation(t,e.completionMessage,!e.success,e.statusText),e.hasModifiedItems()&&this._raiseOnSuccess(e.onlyFiles)}},{key:"_handleActionError",value:function(t,e,n){t.hasError=!0,e.singleRequest?this._handleSingleRequestActionError(t,e,n):this._handleMultipleRequestActionError(t,e,n)}},{key:"_handleSingleRequestActionError",value:function(t,e,n){var i=e.getItemForSingleRequestError(),o=this._getErrorText(n,i);e.processSingleRequestError(o);var r=this._getOperationErrorInfo(e);this._notificationControl.completeSingleOperationWithError(t,r),e.multipleItems&&this._raiseOnSuccess(e.onlyFiles)}},{key:"_handleMultipleRequestActionError",value:function(t,e,n){var i=e.getItemForMultipleRequestError(n.index),o=this._getErrorText(n,i);e.processMultipleRequestError(n.index,o);var r=this._getOperationErrorInfo(e);this._notificationControl.addOperationDetailsError(t,r)}},{key:"_getOperationErrorInfo",value:function(t){var e=t.errorState.currentDetailError;return{commonErrorText:t.errorState.commonErrorText,item:e.itemInfo?this._getItemProgressDisplayInfo(e.itemInfo):null,itemIndex:e.itemIndex,detailErrorText:e.errorText}}},{key:"_getErrorText",value:function(t,e){var n=e?e.fileItem.name:null,i=h.FileManagerMessages.get(t.errorId,n),o={fileSystemItem:e?e.fileItem:null,errorCode:t.errorId,errorText:i};return this._raiseOnError(o),o.errorText}},{key:"_getItemProgressDisplayInfo",value:function(t){return{commonText:t.fileItem.name,imageUrl:this._getItemThumbnail(t)}}},{key:"_showDialog",value:function(t,e){return this._dialogDeferred=new r.Deferred,t.show(e),this._dialogDeferred.promise()}},{key:"_onDialogClosed",value:function(t){var e=t.dialogResult;e?this._dialogDeferred.resolve(e):this._dialogDeferred.reject()}},{key:"_getItemThumbnail",value:function(t){var e=this.option("getItemThumbnail");if(!e)return null;var n=e(t);return n?n.thumbnail:null}},{key:"_initActions",value:function(){this._actions={onSuccess:this._createActionByOption("onSuccess"),onError:this._createActionByOption("onError"),onCreating:this._createActionByOption("onCreating")}}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(b(S(n.prototype),"_getDefaultOptions",this).call(this),{model:{getMultipleSelectedItems:null},notificationControl:null,getItemThumbnail:null,onSuccess:null,onError:null,onCreating:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"model":this.repaint();break;case"notificationControl":this._initNotificationControl(t.value);break;case"getItemThumbnail":break;case"onSuccess":case"onError":case"onCreating":this._actions[e]=this._createActionByOption(e);break;default:b(S(n.prototype),"_optionChanged",this).call(this,t)}}},{key:"_raiseOnSuccess",value:function(t){this._actions.onSuccess({updatedOnlyFiles:t})}},{key:"_raiseOnError",value:function(t){this._actions.onError(t)}},{key:"_getCurrentDirectory",value:function(){return this._controller.getCurrentDirectory()}}]),n}(u.default),I=function(){function t(e,n,i){_(this,t),this._actionMetadata=e,this._itemInfos=n,this._onlyFiles=!this._actionMetadata.affectsAllItems&&this._itemInfos.every((function(t){return!t.fileItem.isDirectory})),this._items=this._itemInfos.map((function(t){return t.fileItem})),this._multipleItems=this._items.length>1,this._location=i.getDisplayName(),this._singleRequest=!0,this._completedItems=[],this._commonProgress=0,this._errorState={failedCount:0}}return y(t,[{key:"completeOperationItem",value:function(t){if(this._singleRequest)this._completedItems=p(this._items);else{var e=this._items[t];this._completedItems.push(e)}this._actionMetadata.allowItemProgress||(this._commonProgress=this._completedItems.length/this._items.length*100)}},{key:"processSingleRequestError",value:function(t){this._errorState.failedCount=1,this._errorState.commonErrorText=this._multipleItems?this._actionMetadata.commonErrorMessage:this._actionMetadata.singleItemErrorMessage;var e=this._multipleItems?-1:1,n=this.getItemForSingleRequestError();this._setCurrentDetailError(e,n,t)}},{key:"processMultipleRequestError",value:function(t,e){this._errorState.failedCount++,this._errorState.commonErrorText=this._errorState.failedCount>1?(0,s.format)(this._actionMetadata.multipleItemsErrorMessage,this._errorState.failedCount):this._actionMetadata.singleItemErrorMessage;var n=this.getItemForMultipleRequestError(t);this._setCurrentDetailError(t,n,e)}},{key:"hasModifiedItems",value:function(){return this._hasCompletedItems()||this._singleRequest&&!this.success&&this._multipleItems}},{key:"getItemForSingleRequestError",value:function(){return this._multipleItems?null:this._itemInfos[0]}},{key:"getItemForMultipleRequestError",value:function(t){return this._itemInfos[t]}},{key:"_setCurrentDetailError",value:function(t,e,n){this._errorState.currentDetailError={itemIndex:t,itemInfo:e,errorText:n}}},{key:"_hasCompletedItems",value:function(){return this._completedItems.length>0}},{key:"actionMetadata",get:function(){return this._actionMetadata}},{key:"itemInfos",get:function(){return this._itemInfos}},{key:"errorState",get:function(){return this._errorState}},{key:"singleRequest",get:function(){return this._singleRequest},set:function(t){this._singleRequest=t}},{key:"multipleItems",get:function(){return this._multipleItems}},{key:"onlyFiles",get:function(){return this._onlyFiles}},{key:"processingMessage",get:function(){return this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsProcessingMessage,this._items.length,this._location):(0,s.format)(this._actionMetadata.singleItemProcessingMessage,this._location)}},{key:"successMessage",get:function(){return this._hasCompletedItems()?this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsSuccessMessage,this._completedItems.length,this._location):(0,s.format)(this._actionMetadata.singleItemSuccessMessage,this._location):this._multipleItems?(0,s.format)(this._actionMetadata.multipleItemsErrorMessage,this._items.length):this._actionMetadata.singleItemErrorMessage}},{key:"completionMessage",get:function(){return this.success?this.successMessage:this.errorState.commonErrorText}},{key:"statusText",get:function(){return this.success&&!this._hasCompletedItems()?this._actionMetadata.canceledMessage:void 0}},{key:"commonProgress",get:function(){return this._commonProgress}},{key:"success",get:function(){return!this._errorState.failedCount}}]),t}();t.exports=k},function(t,e,n){"use strict";var i=u(n(3)),o=n(0),r=u(n(12)),a=u(n(892)),s=u(n(893)),l=u(n(894));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._$element=e,this._options=n;var u=(0,i.default)("<div>").appendTo(this._$element);this._chooseDirectoryDialog=new s.default(u,(0,o.extend)(this._options.chooseDirectoryDialog,{onClosed:this._options.onDialogClosed}));var c=(0,i.default)("<div>").appendTo(this._$element);this._renameItemDialog=new a.default(c,{title:r.default.format("dxFileManager-dialogRenameItemTitle"),buttonText:r.default.format("dxFileManager-dialogRenameItemButtonText"),onClosed:this._options.onDialogClosed});var d=(0,i.default)("<div>").appendTo(this._$element);this._createItemDialog=new a.default(d,{title:r.default.format("dxFileManager-dialogCreateDirectoryTitle"),buttonText:r.default.format("dxFileManager-dialogCreateDirectoryButtonText"),onClosed:this._options.onDialogClosed});var h=(0,i.default)("<div>").appendTo(this._$element);this._deleteItemDialog=new l.default(h,{onClosed:this._options.onDialogClosed})}var e,n,u;return e=t,(n=[{key:"getCopyDialog",value:function(){return this._chooseDirectoryDialog.switchToCopyDialog(),this._chooseDirectoryDialog}},{key:"getMoveDialog",value:function(){return this._chooseDirectoryDialog.switchToMoveDialog(),this._chooseDirectoryDialog}},{key:"getRenameItemDialog",value:function(){return this._renameItemDialog}},{key:"getCreateItemDialog",value:function(){return this._createItemDialog}},{key:"getDeleteItemDialog",value:function(){return this._deleteItemDialog}}])&&c(e.prototype,n),u&&c(e,u),t}();t.exports=d},function(t,e,n){"use strict";var i=s(n(3)),o=n(0),r=s(n(102)),a=s(n(303));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,a,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"show",value:function(t){t=t||"",this._nameTextBox?this._nameTextBox.option("value",t):this._initialNameValue=t,d(m(l.prototype),"show",this).call(this)}},{key:"_onPopupShown",value:function(){if(this._nameTextBox){var t=this._nameTextBox._input();t.length&&t[0].select(),this._nameTextBox.focus()}}},{key:"_getDialogOptions",value:function(){return(0,o.extend)(d(m(l.prototype),"_getDialogOptions",this).call(this),{title:this.option("title"),buttonText:this.option("buttonText"),contentCssClass:"dx-filemanager-dialog-name-editor",popupCssClass:"dx-filemanager-dialog-name-editor-popup"})}},{key:"_createContentTemplate",value:function(t){d(m(l.prototype),"_createContentTemplate",this).call(this,t),this._nameTextBox=this._createComponent((0,i.default)("<div>"),r.default,{value:this._initialNameValue,onEnterKey:this._applyDialogChanges.bind(this)}),this._$contentElement.append(this._nameTextBox.$element())}},{key:"_getDialogResult",value:function(){var t=this._nameTextBox.option("value");return t?{name:t}:null}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(d(m(l.prototype),"_getDefaultOptions",this).call(this),{title:"",buttonText:""})}}])&&c(e.prototype,n),a&&c(e,a),l}(a.default);t.exports=g},function(t,e,n){"use strict";var i=l(n(3)),o=n(0),r=l(n(12)),a=l(n(303)),s=l(n(482));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,a,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"show",value:function(){this._filesTreeView&&this._filesTreeView.refresh(),h(g(u.prototype),"show",this).call(this)}},{key:"switchToCopyDialog",value:function(){this._setTitle(r.default.format("dxFileManager-dialogDirectoryChooserCopyTitle")),this._setButtonText(r.default.format("dxFileManager-dialogDirectoryChooserCopyButtonText"))}},{key:"switchToMoveDialog",value:function(){this._setTitle(r.default.format("dxFileManager-dialogDirectoryChooserMoveTitle")),this._setButtonText(r.default.format("dxFileManager-dialogDirectoryChooserMoveButtonText"))}},{key:"_getDialogOptions",value:function(){return(0,o.extend)(h(g(u.prototype),"_getDialogOptions",this).call(this),{contentCssClass:"dx-filemanager-dialog-folder-chooser",popupCssClass:"dx-filemanager-dialog-folder-chooser-popup"})}},{key:"_createContentTemplate",value:function(t){h(g(u.prototype),"_createContentTemplate",this).call(this,t),this._filesTreeView=this._createComponent((0,i.default)("<div>"),s.default,{getDirectories:this.option("getDirectories"),getCurrentDirectory:this._getDialogSelectedDirectory.bind(this),onDirectoryClick:this._onFilesTreeViewDirectoryClick.bind(this)}),this._$contentElement.append(this._filesTreeView.$element())}},{key:"_getDialogResult",value:function(){return{folder:this._getDialogSelectedDirectory()}}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(h(g(u.prototype),"_getDefaultOptions",this).call(this),{getItems:null})}},{key:"_getDialogSelectedDirectory",value:function(){return this._selectedDirectoryInfo||this.option("getCurrentDirectory")()}},{key:"_onFilesTreeViewDirectoryClick",value:function(t){var e=t.itemData;this._selectedDirectoryInfo=e,this._filesTreeView.updateCurrentDirectory()}}])&&d(e.prototype,n),a&&d(e,a),u}(a.default);t.exports=_},function(t,e,n){"use strict";var i=s(n(3)),o=n(0),r=s(n(12)),a=s(n(303));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,a,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"show",value:function(t){var e=t.itemName,n=t.itemCount,i=1===n?r.default.format("dxFileManager-dialogDeleteItemSingleItemConfirmation",e):r.default.format("dxFileManager-dialogDeleteItemMultipleItemsConfirmation",n);this._$text?this._$text.text(i):this._initialText=i,d(m(l.prototype),"show",this).call(this)}},{key:"_getDialogOptions",value:function(){return(0,o.extend)(d(m(l.prototype),"_getDialogOptions",this).call(this),{title:r.default.format("dxFileManager-dialogDeleteItemTitle"),buttonText:r.default.format("dxFileManager-dialogDeleteItemButtonText"),contentCssClass:"dx-filemanager-dialog-delete-item",popupCssClass:"dx-filemanager-dialog-delete-item-popup"})}},{key:"_createContentTemplate",value:function(t){d(m(l.prototype),"_createContentTemplate",this).call(this,t),this._$text=(0,i.default)("<div>").text(this._initialText).appendTo(this._$contentElement)}},{key:"_getDialogResult",value:function(){return{}}}])&&c(e.prototype,n),a&&c(e,a),l}(a.default);t.exports=g},function(t,e,n){"use strict";var i=d(n(3)),o=n(0),r=n(7),a=n(2),s=d(n(45)),l=d(n(20)),u=d(n(298)),c=d(n(170));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(h,t);var e,n,l,d=_(h);function h(){return f(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"_initMarkup",value:function(){this._initActions(),this.$element().addClass("dx-filemanager-fileuploader"),this._uploaderInfos=[],this._createInternalFileUploader(),m(y(h.prototype),"_initMarkup",this).call(this)}},{key:"_createInternalFileUploader",value:function(){var t=this,e=this._getController().chunkSize,n=(0,i.default)("<div>").appendTo(this.$element()),o=this._createComponent(n,u.default,{name:"file",multiple:!0,showFileList:!1,activeStateEnabled:!1,focusStateEnabled:!1,hoverStateEnabled:!1,labelText:"",readyToUploadMessage:"",accept:"*",chunkSize:e,onValueChanged:function(e){return t._onFileUploaderValueChanged(e)},onProgress:function(e){return t._onFileUploaderProgress(e)},onUploaded:function(e){return t._onFileUploaderUploaded(e)},onUploadAborted:function(e){return t._onFileUploaderUploadAborted(e)},onUploadError:function(e){return t._onFileUploaderUploadError(e)}});o.option({uploadChunk:function(e,n){return t._fileUploaderUploadChunk(o,e,n)},abortUpload:function(e,n){return t._fileUploaderAbortUpload(o,e,n)}});var r={fileUploader:o};this._uploaderInfos.push(r)}},{key:"tryUpload",value:function(){var t=this._findAvailableUploaderInfo();t&&t.fileUploader._selectButtonClickHandler()}},{key:"cancelUpload",value:function(t){this._cancelUpload(t)}},{key:"cancelFileUpload",value:function(t,e){this._cancelUpload(t,e)}},{key:"_cancelUpload",value:function(t,e){var n=this._findUploaderInfoBySessionId(t).fileUploader,i=(0,a.isDefined)(e)?[n._files[e]]:n._files;n._preventFilesUploading(i)}},{key:"_fileUploaderUploadChunk",value:function(t,e,n){var i=this._findSessionByFile(t,e),o=i.session,r=i.fileIndex,a=o.controller;return n.fileIndex=r,a.uploadFileChunk(e,n)}},{key:"_fileUploaderAbortUpload",value:function(t,e,n){var i=this._findSessionByFile(t,e),o=i.session,r=i.fileIndex,a=o.controller;return n.fileIndex=r,a.abortFileUpload(e,n)}},{key:"_onFileUploaderValueChanged",value:function(t){var e=this,n=t.component,i=t.value;if(0!==i.length){var o=i.slice(),r=this._findUploaderInfo(n);this._uploadFiles(r,o),setTimeout((function(){e._findAvailableUploaderInfo()||e._createInternalFileUploader()}))}}},{key:"_onFileUploaderProgress",value:function(t){var e=t.component,n=t.file,i=t.bytesLoaded,o=t.bytesTotal,r=this._findSessionByFile(e,n),a=r.session,s=r.fileIndex,l=0!==o?i/o:1,u=e.option("progress")/100,c={sessionId:a.id,fileIndex:s,commonValue:u,fileValue:l};this._raiseUploadProgress(c)}},{key:"_onFileUploaderUploaded",value:function(t){var e=t.component,n=t.file;this._getDeferredForFile(e,n).resolve()}},{key:"_onFileUploaderUploadAborted",value:function(t){var e=t.component,n=t.file;this._getDeferredForFile(e,n).resolve({canceled:!0})}},{key:"_onFileUploaderUploadError",value:function(t){var e=t.component,n=t.file,i=t.error;this._getDeferredForFile(e,n).reject(i)}},{key:"_uploadFiles",value:function(t,e){var n=(new s.default).toString(),i=this._getController(),o=e.map((function(){return new r.Deferred})),a={id:n,controller:i,files:e,deferreds:o};t.session=a;var l={sessionId:n,deferreds:o,files:e};return this._raiseUploadSessionStarted(l),(0,c.default)(o).always((function(){return setTimeout((function(){t.fileUploader.option("value",[]),t.session=null}))}))}},{key:"_getDeferredForFile",value:function(t,e){var n=this._findSessionByFile(t,e),i=n.session,o=n.fileIndex;return i.deferreds[o]}},{key:"_findSessionByFile",value:function(t,e){var n=this._findUploaderInfo(t).session,i=n.files.indexOf(e);return{session:n,fileIndex:i}}},{key:"_findUploaderInfoBySessionId",value:function(t){for(var e=0;e<this._uploaderInfos.length;e++){var n=this._uploaderInfos[e],i=n.session;if(i&&i.id===t)return n}return null}},{key:"_findAvailableUploaderInfo",value:function(){for(var t=0;t<this._uploaderInfos.length;t++){var e=this._uploaderInfos[t];if(!e.session)return e}return null}},{key:"_findUploaderInfo",value:function(t){for(var e=0;e<this._uploaderInfos.length;e++){var n=this._uploaderInfos[e];if(n.fileUploader===t)return n}return null}},{key:"_getController",value:function(){return this.option("getController")()}},{key:"_raiseUploadSessionStarted",value:function(t){this._actions.onUploadSessionStarted({sessionInfo:t})}},{key:"_raiseUploadProgress",value:function(t){this._actions.onUploadProgress(t)}},{key:"_initActions",value:function(){this._actions={onUploadSessionStarted:this._createActionByOption("onUploadSessionStarted"),onUploadProgress:this._createActionByOption("onUploadProgress")}}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(m(y(h.prototype),"_getDefaultOptions",this).call(this),{getController:null,onUploadSessionStarted:null,onUploadProgress:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"getController":this.repaint();break;case"onUploadSessionStarted":case"onUploadProgress":this._actions[e]=this._createActionByOption(e);break;default:m(y(h.prototype),"_optionChanged",this).call(this,t)}}}])&&p(e.prototype,n),l&&p(e,l),h}(l.default);t.exports=b},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.FileManagerMessages=void 0;var i=r(n(12)),o=r(n(302));function r(t){return t&&t.__esModule?t:{default:t}}e.FileManagerMessages={get:function(t,e){switch(t){case o.default.NoAccess:return i.default.format("dxFileManager-errorNoAccess");case o.default.FileExists:return i.default.format("dxFileManager-errorFileExistsFormat",e);case o.default.FileNotFound:return i.default.format("dxFileManager-errorFileNotFoundFormat",e);case o.default.DirectoryExists:return i.default.format("dxFileManager-errorDirectoryExistsFormat",e);case o.default.DirectoryNotFound:return i.default.format("dxFileManager-errorDirectoryNotFoundFormat",e);case o.default.WrongFileExtension:return i.default.format("dxFileManager-errorWrongFileExtension");case o.default.MaxFileSizeExceeded:return i.default.format("dxFileManager-errorMaxFileSizeExceeded");case o.default.InvalidSymbols:return i.default.format("dxFileManager-errorInvalidSymbols")}return i.default.format("dxFileManager-errorDefault")}};t.exports.ErrorCode=o.default},function(t,e,n){"use strict";var i=s(n(3)),o=n(0),r=s(n(20)),a=s(n(455));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,r,s=f(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_init",value:function(){d(m(l.prototype),"_init",this).call(this),this._currentDirectory=null}},{key:"_initMarkup",value:function(){d(m(l.prototype),"_initMarkup",this).call(this),this._initActions(),this._currentDirectory&&this._renderMenu(),this.$element().addClass("dx-filemanager-breadcrumbs")}},{key:"setCurrentDirectory",value:function(t){this._areDirsEqual(this._currentDirectory,t)||(this._currentDirectory=t,this.repaint())}},{key:"_renderMenu",value:function(){var t=(0,i.default)("<div>").appendTo(this.$element());this._menu=this._createComponent(t,a.default,{dataSource:this._getMenuItems(),onItemClick:this._onItemClick.bind(this),onItemRendered:this._onItemRendered.bind(this)})}},{key:"_getMenuItems",value:function(){var t=this._getParentDirsLine(),e=[{icon:"arrowup",directory:this._currentDirectory.parentDirectory,isPathItem:!0,cssClass:"dx-filemanager-breadcrumbs-parent-folder-item"},{text:"\xa0",cssClass:"dx-filemanager-breadcrumbs-separator-item"}];return t.forEach((function(n,i){e.push({text:n.getDisplayName(),directory:n,isPathItem:!0}),i!==t.length-1&&e.push({icon:"spinnext",cssClass:"dx-filemanager-breadcrumbs-path-separator-item"})})),e}},{key:"_onItemClick",value:function(t){var e=t.itemData;if(e.isPathItem){var n=e.directory;this._areDirsEqual(n,this._currentDirectory)||this._raiseCurrentDirectoryChanged(n)}}},{key:"_onItemRendered",value:function(t){var e=t.itemElement,n=t.itemData;n.cssClass&&(0,i.default)(e).addClass(n.cssClass)}},{key:"_getParentDirsLine",value:function(){for(var t=this._currentDirectory,e=[];t;)e.unshift(t),t=t.parentDirectory;return e}},{key:"_areDirsEqual",value:function(t,e){return t&&e&&t===e&&t.fileItem.key===e.fileItem.key}},{key:"_initActions",value:function(){this._actions={onCurrentDirectoryChanging:this._createActionByOption("onCurrentDirectoryChanging")}}},{key:"_raiseCurrentDirectoryChanged",value:function(t){this._actions.onCurrentDirectoryChanging({currentDirectory:t})}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(d(m(l.prototype),"_getDefaultOptions",this).call(this),{rootFolderDisplayName:"Files",onCurrentDirectoryChanging:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"rootFolderDisplayName":this.repaint();break;case"onCurrentDirectoryChanging":this._actions[e]=this._createActionByOption(e);break;default:d(m(l.prototype),"_optionChanged",this).call(this,t)}}}])&&c(e.prototype,n),r&&c(e,r),l}(r.default);t.exports=g},function(t,e,n){"use strict";var i=c(n(3)),o=n(0),r=n(2),a=n(10),s=c(n(20)),l=c(n(300)),u=c(n(485));function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return(p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=(0,a.getWindow)(),b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(d,t);var e,n,s,c=g(d);function d(){return h(this,d),c.apply(this,arguments)}return e=d,(n=[{key:"_initMarkup",value:function(){p(v(d.prototype),"_initMarkup",this).call(this),this._initActions(),this._isInAdaptiveState=!1;var t=(0,i.default)("<div>").appendTo(this.$element());(0,i.default)("<div>").addClass("dx-filemanager-adaptivity-drawer-panel").appendTo(t),this._drawer=this._createComponent(t,l.default),this._drawer.option({opened:!0,template:this._createDrawerTemplate.bind(this)}),(0,i.default)(this._drawer.content()).addClass("dx-drawer-panel-content-initial");var e=t.find(".".concat("dx-filemanager-adaptivity-drawer-panel")).first(),n=this.option("contentTemplate");(0,r.isFunction)(n)&&n(e)}},{key:"_createDrawerTemplate",value:function(t){this.option("drawerTemplate")(t),this._splitter=this._createComponent("<div>",u.default,{container:this.$element(),leftElement:(0,i.default)(this._drawer.content()),rightElement:(0,i.default)(this._drawer.viewContent()),onApplyPanelSize:this._onApplyPanelSize.bind(this)}),this._splitter.$element().appendTo(t)}},{key:"_render",value:function(){p(v(d.prototype),"_render",this).call(this),this._checkAdaptiveState()}},{key:"_onApplyPanelSize",value:function(t){(0,a.hasWindow)()&&(this._splitter.isSplitterMoved()?((0,i.default)(this._drawer.content()).removeClass("dx-drawer-panel-content-initial"),(0,i.default)(this._drawer.content()).css("width",t.leftPanelWidth),this._drawer._initSize(),this._drawer.resizeContent()):this._updateDrawerDimensions())}},{key:"_updateDrawerDimensions",value:function(){(0,i.default)(this._drawer.content()).css("width",""),this._drawer._initSize(),this._drawer._strategy.setPanelSize(!0)}},{key:"_dimensionChanged",value:function(t){t&&"height"===t||this._checkAdaptiveState()}},{key:"_checkAdaptiveState",value:function(){var t=this._isInAdaptiveState;this._isInAdaptiveState=this._isSmallScreen(),t!==this._isInAdaptiveState&&(this.toggleDrawer(!this._isInAdaptiveState,!0),this._raiseAdaptiveStateChanged(this._isInAdaptiveState))}},{key:"_isSmallScreen",value:function(){return(0,i.default)(y).width()<=573}},{key:"_initActions",value:function(){this._actions={onAdaptiveStateChanged:this._createActionByOption("onAdaptiveStateChanged")}}},{key:"_raiseAdaptiveStateChanged",value:function(t){this._actions.onAdaptiveStateChanged({enabled:t})}},{key:"_getDefaultOptions",value:function(){return(0,o.extend)(p(v(d.prototype),"_getDefaultOptions",this).call(this),{drawerTemplate:null,contentTemplate:null,onAdaptiveStateChanged:null})}},{key:"_optionChanged",value:function(t){var e=t.name;switch(e){case"drawerTemplate":case"contentTemplate":this.repaint();break;case"onAdaptiveStateChanged":this._actions[e]=this._createActionByOption(e);break;default:p(v(d.prototype),"_optionChanged",this).call(this,t)}}},{key:"isInAdaptiveState",value:function(){return this._isInAdaptiveState}},{key:"toggleDrawer",value:function(t,e){this._drawer.option("animationEnabled",!e),this._drawer.toggle(t);var n=this._drawer.option("opened")&&!this.isInAdaptiveState();this._splitter.toggleState(n)}}])&&f(e.prototype,n),s&&f(e,s),d}(s.default);t.exports=b},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(298),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.FileUploader=a,a.propTypes={abortUpload:r.func,accept:r.string,accessKey:r.string,activeStateEnabled:r.bool,allowCanceling:r.bool,allowedFileExtensions:r.array,chunkSize:r.number,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,invalidFileExtensionMessage:r.string,invalidMaxFileSizeMessage:r.string,invalidMinFileSizeMessage:r.string,isValid:r.bool,labelText:r.string,maxFileSize:r.number,minFileSize:r.number,multiple:r.bool,name:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onProgress:r.func,onUploadAborted:r.func,onUploaded:r.func,onUploadError:r.func,onUploadStarted:r.func,onValueChanged:r.func,progress:r.number,readOnly:r.bool,readyToUploadMessage:r.string,rtlEnabled:r.bool,selectButtonText:r.string,showFileList:r.bool,tabIndex:r.number,uploadButtonText:r.string,uploadChunk:r.func,uploadedMessage:r.string,uploadFailedMessage:r.string,uploadFile:r.func,uploadHeaders:r.object,uploadMethod:r.oneOf(["POST","PUT"]),uploadMode:r.oneOf(["instantly","useButtons","useForm"]),uploadUrl:r.string,validationError:r.object,validationErrors:r.array,validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.array,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(461),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={customOperation:{optionName:"customOperations",isCollectionItem:!0},field:{optionName:"fields",isCollectionItem:!0},filterOperationDescriptions:{optionName:"filterOperationDescriptions",isCollectionItem:!1},groupOperationDescriptions:{optionName:"groupOperationDescriptions",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.FilterBuilder=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowHierarchicalFields:r.bool,customOperations:r.array,disabled:r.bool,elementAttr:r.object,fields:r.array,filterOperationDescriptions:r.object,focusStateEnabled:r.bool,groupOperationDescriptions:r.object,groupOperations:r.array,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxGroupLevel:r.number,onContentReady:r.func,onDisposing:r.func,onEditorPrepared:r.func,onEditorPreparing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,rtlEnabled:r.bool,tabIndex:r.number,value:r.oneOfType([r.array,r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="customOperations",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.CustomOperation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fields",e.IsCollectionItem=!0,e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.Field=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterOperationDescriptions",e}(s.default);e.FilterOperationDescriptions=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groupOperationDescriptions",e}(s.default);e.GroupOperationDescriptions=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.Lookup=p,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(169),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultFormData:"formData"},e._expectedChildren={ButtonItem:{optionName:"items",isCollectionItem:!0},colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1},EmptyItem:{optionName:"items",isCollectionItem:!0},GroupItem:{optionName:"items",isCollectionItem:!0},item:{optionName:"items",isCollectionItem:!0},SimpleItem:{optionName:"items",isCollectionItem:!0},TabbedItem:{optionName:"items",isCollectionItem:!0}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Form=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,alignItemLabels:r.bool,alignItemLabelsInAllGroups:r.bool,colCount:r.oneOfType([r.number,r.oneOf(["auto"])]),colCountByScreen:r.object,customizeItem:r.func,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,formData:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,items:r.array,labelLocation:r.oneOf(["left","right","top"]),minColWidth:r.number,onContentReady:r.func,onDisposing:r.func,onEditorEnterKey:r.func,onFieldDataChanged:r.func,onInitialized:r.func,onOptionChanged:r.func,optionalMark:r.string,readOnly:r.bool,requiredMark:r.string,requiredMessage:r.string,rtlEnabled:r.bool,screenByWidth:r.func,scrollingEnabled:r.bool,showColonAfterLabel:r.bool,showOptionalMark:r.bool,showRequiredMark:r.bool,showValidationSummary:r.bool,tabIndex:r.number,validationGroup:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"async"},e}(s.default);e.AsyncRule=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={buttonOptions:{optionName:"buttonOptions",isCollectionItem:!1}},e.PredefinedProps={itemType:"button"},e}(s.default);e.ButtonItem=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttonOptions",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ButtonOptions=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="colCountByScreen",e}(s.default);e.ColCountByScreen=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"compare"},e}(s.default);e.CompareRule=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"custom"},e}(s.default);e.CustomRule=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"email"},e}(s.default);e.EmailRule=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.PredefinedProps={itemType:"empty"},e}(s.default);e.EmptyItem=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e.PredefinedProps={itemType:"group"},e}(s.default);e.GroupItem=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"numeric"},e}(s.default);e.NumericRule=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"pattern"},e}(s.default);e.PatternRule=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"range"},e}(s.default);e.RangeRule=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.RequiredRule=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e.PredefinedProps={itemType:"simple"},e}(s.default);e.SimpleItem=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"stringLength"},e}(s.default);e.StringLengthRule=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tabs",e.IsCollectionItem=!0,e.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Tab=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={tab:{optionName:"tabs",isCollectionItem:!0},tabPanelOptions:{optionName:"tabPanelOptions",isCollectionItem:!1}},e.PredefinedProps={itemType:"tabbed"},e}(s.default);e.TabbedItem=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tabPanelOptions",e.DefaultsProps={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0},tabPanelOptionsItem:{optionName:"items",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"itemTitleTemplate",render:"itemTitleRender",component:"itemTitleComponent",keyFn:"itemTitleKeyFn"}],e}(s.default);e.TabPanelOptions=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.TabPanelOptionsItem=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.ValidationRule=M,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(903),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator"},e._expectedChildren={adaptiveLayout:{optionName:"adaptiveLayout",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},funnelTitle:{optionName:"title",isCollectionItem:!1},item:{optionName:"item",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},legend:{optionName:"legend",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Funnel=l,l.propTypes={adaptiveLayout:r.object,algorithm:r.oneOf(["dynamicHeight","dynamicSlope"]),argumentField:r.string,colorField:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,export:r.object,hoverEnabled:r.bool,inverted:r.bool,item:r.object,label:r.object,legend:r.object,loadingIndicator:r.object,margin:r.object,neckHeight:r.number,neckWidth:r.number,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onHoverChanged:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onLegendClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onSelectionChanged:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),pathModified:r.bool,redrawOnResize:r.bool,resolveLabelOverlapping:r.oneOf(["hide","none","shift"]),rtlEnabled:r.bool,selectionMode:r.oneOf(["multiple","none","single"]),size:r.object,sortData:r.bool,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,valueField:r.string};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adaptiveLayout",e}(s.default);e.AdaptiveLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connector",e}(s.default);e.Connector=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},funnelTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.FunnelTitle=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.FunnelTitleSubtitle=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},itemBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.HoverStyle=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="item",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},itemBorder:{optionName:"border",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1}},e}(s.default);e.Item=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.ItemBorder=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},connector:{optionName:"connector",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},labelBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Label=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.LabelBorder=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legend",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendBorder:{optionName:"border",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.LegendBorder=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},itemBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.SelectionStyle=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=B,e.default=l},function(t,e,n){"use strict";var i=n(486);i.addPlugin(n(908).plugin),i.addPlugin(n(119).plugin),i.addPlugin(n(121).plugin),i.addPlugin(n(227).plugin),i.addPlugin(n(909).plugin),i.addPlugin(n(910).plugin),i.addPlugin(n(139).plugin),t.exports=i,t.exports.default=t.exports},function(t,e,n){"use strict";var i,o=n(13).normalizeEnum,r={};e.getAlgorithm=function(t){return r[o(t)]||i},e.addAlgorithm=function(t,e,n){r[t]=e,n&&(i=r[t])}},function(t,e,n){"use strict";t.exports={getFigures:function(t){var e=1/t.length;return t.map((function(t,n,i){var o=i[n+1]?i[n+1]:i[n];return[.5-t/2,e*n,.5+t/2,e*n,.5+o/2,e*(n+1),.5-o/2,e*(n+1)]}))},normalizeValues:function(t){var e=t.reduce((function(t,e){return Math.max(e.value,t)}),t[0]&&t[0].value||0);return t.map((function(t){return t.value/e}))}}},function(t,e,n){"use strict";t.exports={getFigures:function(t,e,n){var i=0,o=0,r=0,a=0,s=e/2,l=.5-s,u=1-n,c=.5-s,d=.5+s;return t.map((function(t){return r=a,o=i,a=l*(i+=t)/u,o<=u&&i<=u?[r,o,1-r,o,1-a,i,0+a,i]:o<=u&&i>u?[r,o,1-r,o,d,u,d,i,c,i,c,u]:[c,o,d,o,d,i,c,i]}))},normalizeValues:function(t){var e=t.reduce((function(t,e){return t+e.value}),0);return t.map((function(t){return t.value/e}))}}},function(t,e,n){"use strict";var i=["normal","hover","selection","selection"],o=n(2).isDefined;function r(t,e,n){var i=e.border,r=n.border,a=o(i.visible)?i.visible:r.visible,s=o(i.width)?i.width:r.width;return{fill:t,hatching:e.hatching,stroke:i.color||r.color,"stroke-width":a?s:0}}function a(t,e){var n=e.data;this.code=0,this.widget=t,this.figure=e.figure,this.argument=n.argument,this.value=n.value,this.data=n.dataItem,this.percent=e.percent,this.id=e.id,this.color=e.color,this.states={normal:r(e.color,e.itemOptions,e.itemOptions),hover:r(e.color,e.itemOptions.hoverStyle,e.itemOptions),selection:r(e.color,e.itemOptions.selectionStyle,e.itemOptions)}}a.prototype={getState:function(){return i[this.code]},getNormalStyle:function(){return this.states.normal},setHover:function(){this.hover(!0)},hover:function(t){this.widget._getOption("hoverEnabled",!0)&&t!==this.isHovered()&&(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(1,t),this.widget._eventTrigger("hoverChanged",{item:this}),this.widget._resume())},setState:function(t,e){e?this.code|=t:this.code&=~t,this.widget._applyTilesAppearance()},select:function(t){var e=this.widget._getOption("selectionMode",!0);"none"!==e&&t!==this.isSelected()&&(this.widget._suspend(),t&&"multiple"!==e&&this.widget.clearSelection(),this.setState(2,t),this.widget._eventTrigger("selectionChanged",{item:this}),this.widget._resume())},showTooltip:function(t){this.widget._showTooltip(this.id,t)},getColor:function(){return this.color},isHovered:function(){return!!(1&this.code)},isSelected:function(){return!!(2&this.code)}},t.exports=a},function(t,e,n){"use strict";var i,o=n(289),r=(i=o)&&i.__esModule?i:{default:i},a=n(13),s=n(0),l=n(4);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||d(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(t,e){if(t){if("string"===typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function f(t){return"outside"===(t=(0,a.normalizeEnum)(t))||"inside"!==t}function p(t,e,n){return n?t-e.height:t}function m(t,e,n,i){return{x:t[2]+n.horizontalOffset+5,y:p(t[3]+n.verticalOffset,e,i)}}function g(t,e,n,i){return{x:t[0]-e.width-n.horizontalOffset-5,y:p(t[1]+n.verticalOffset,e,i)}}function _(t,e,n){var i=t[2]-t[0],o=t[7]-t[1];return{x:t[0]+i/2+n.horizontalOffset-e.width/2,y:t[1]+n.verticalOffset+o/2-e.height/2}}e.plugin={name:"lables",init:l.noop,dispose:l.noop,extenders:{_initCore:function(){this._labelsGroup=this._renderer.g().attr({class:this._rootClassPrefix+"-labels"}).append(this._renderer.root),this._labels=[]},_applySize:function(){var t,e=this._getOption("label"),n=this._getOption("adaptiveLayout"),i=this._rect,o=0,r=i[2]-i[0];(this._labelRect=i.slice(),this._labels.length&&f(e.position))?(o=this._labels.map((function(t){return t.resetEllipsis(),t.getBoundingRect().width})).reduce((function(t,e){return Math.max(t,e)}),0)+e.horizontalOffset+(t=e.position,"outside"===(t=(0,a.normalizeEnum)(t))?5:"inside"===t?0:20),!n.keepLabels&&r-o<n.width?this._labels.forEach((function(t){t.draw(!1)})):(r-o<n.width&&(o=(o=r-n.width)>0?o:0),this._labels.forEach((function(t){t.draw(!0)})),"left"===e.horizontalAlignment?i[0]+=o:i[2]-=o)):(0,a.normalizeEnum)("none"!==this._getOption("resolveLabelOverlapping",!0))&&this._labels.forEach((function(t){return!t.isVisible()&&t.draw(!0)}))},_buildNodes:function(){this._createLabels()},_change_TILING:function(){var t,e=this,n=e._getOption("label"),i=_,o=e._getOption("inverted",!0);f(n.position)&&("outside"===(0,a.normalizeEnum)(n.position)?i="left"===n.horizontalAlignment?g:m:(t=this._defaultLabelTextAlignment(),i="left"===n.horizontalAlignment?function(t,e,n){return function(i,o,r,a){return{x:"left"===n?t[0]:e[0]-o.width-r.horizontalOffset-20,y:p(i[3]+r.verticalOffset,o,a)}}}(this._labelRect,this._rect,t):function(t,e,n){return function(i,o,r,a){return{x:"left"===n?e[2]+r.horizontalOffset+20:t[2]-o.width,y:p(i[3]+r.verticalOffset,o,a)}}}(this._labelRect,this._rect,t))),e._labels.forEach((function(t,r){var a=e._items[r],s=a.getNormalStyle()["stroke-width"],l=o?s/2:-s/2,u=l?a.coords.map((function(t,e){return 1===e||3===e?t-l:2===e?t-s:0===e?t+s:t})):a.coords;if(n.showForZeroValues||0!==a.value){f(n.position)&&e._correctLabelWidth(t,a.coords,n);var c=t.getBoundingRect(),d=function(t,e,n){return t.x<n[0]&&(t.x=n[0]),t.x+e.width>n[2]&&(t.x=n[2]-e.width),t.y<n[1]&&(t.y=n[1]),t.y+e.height>n[3]&&(t.y=n[3]-e.height),t}(i(u,c,n,o),c,e._labelRect);t.setFigureToDrawConnector(u),t.shift(d.x,d.y)}else t.draw(!1)})),e._resolveLabelOverlapping()}},members:{_resolveLabelOverlapping:function(){var t=this,e=(0,a.normalizeEnum)(t._getOption("resolveLabelOverlapping",!0)),n=this._getOption("inverted",!0)?t._labels.slice().reverse():t._labels;if("hide"===e)n.reduce((function(t,e){return e.getBoundingRect().y<t?e.hide():t=e.getBoundingRect().y+e.getBoundingRect().height,t}),0);else if("shift"===e){var i=this._labelRect[3];n.reduce((function(e,n,o,r){var a=u(e,2),s=a[0],l=a[1],c=n.getBoundingRect(),d=c.y;return c.y<s&&(n.shift(c.x,s),d=s),d-s>0&&(l+=d-s),d+c.height>i?l&&l>d+c.height-i?(!function(t,e,n){t.reduce((function(t,e,i,o){var r=o[i+1];if(t>0){var a=e.getBoundingRect(),s=r?r.getBoundingRect().y+r.getBoundingRect().height:n,l=a.y-s,u=Math.min(l,t);o.slice(0,i+1).forEach((function(t){var e=t.getBoundingRect();t.shift(e.x,e.y-u)})),t-=u}return t}),e)}(r.slice(0,o).reverse(),d+c.height-i,t._labelRect[1]),l-=d+c.height-i,n.shift(c.x,d-(d+c.height-i)),s=d-(d+c.height-i)+c.height):n.hide():s=d+c.height,[s,l]}),[this._labelRect[1],0])}},_defaultLabelTextAlignment:function(){return this._getOption("rtlEnabled",!0)?"right":"left"},_correctLabelWidth:function(t,e,n){var i="left"===n.horizontalAlignment,o=i?this._labelRect[0]:e[2],r=(i?e[0]:this._labelRect[2])-o;t.getBoundingRect().width>r&&t.fit(r)},_createLabels:function(){var t=this,e=t._getOption("label"),n=function(t,e){var n="left"===t.horizontalAlignment,i=n?4:-4,o=e?-1:0;function r(t){return n?[t[0]+1,t[1]+o]:[t[2]-1,t[3]+o]}return{isLabelInside:function(){return!f(t.position)},getFigureCenter:r,prepareLabelPoints:function(t){var e=t.x+i,n=t.y,o=e+t.width;return c(Array(t.height+1)).map((function(t,i){return[e,n+i]})).concat(c(Array(t.height+1)).map((function(t,e){return[o,n+e]})))},isHorizontal:function(){return!0},findFigurePoint:function(t){return r(t)},adjustPoints:function(t){return t.map(Math.round)}}}(e,t._getOption("inverted",!0));this._labelsGroup.clear(),e.visible&&(this._labels=t._items.map((function(i){var o=new r.default.Label({renderer:t._renderer,labelsGroup:t._labelsGroup,strategy:n});return o.setOptions(function(t,e,n){var i=t||{},o=(0,s.extend)({},i.font)||{},r=i.border||{},l=i.connector||{},u={fill:i.backgroundColor||e,"stroke-width":r.visible&&r.width||0,stroke:r.visible&&r.width?r.color:"none",dashStyle:r.dashStyle},c={stroke:l.visible&&l.width?l.color||e:"none","stroke-width":l.visible&&l.width||0,opacity:l.opacity};return o.color="none"===i.backgroundColor&&"#ffffff"===(0,a.normalizeEnum)(o.color)&&"inside"!==i.position?e:o.color,{format:i.format,textAlignment:i.textAlignment||(f(i.position)?n:"center"),customizeText:i.customizeText,attributes:{font:o},visible:0!==o.size&&i.visible,showForZeroValues:i.showForZeroValues,horizontalOffset:i.horizontalOffset,verticalOffset:i.verticalOffset,background:u,connector:c,wordWrap:t.wordWrap,textOverflow:t.textOverflow}}(e,i.color,t._defaultLabelTextAlignment())),o.setData({item:i,value:i.value,percent:i.percent}),o.draw(!0),o})),this._labels.length&&f(e.position)&&this._requestChange(["LAYOUT"]))}},customize:function(t){t.prototype._proxyData.push((function(t,e){var n,i=this;return i._labels.forEach((function(o,r){var a=o.getBoundingRect();if(t>=a.x&&t<=a.x+a.width&&e>=a.y&&e<=a.y+a.height){var s=f(i._getOption("label").position)?"outside":"inside";return n={id:r,type:s+"-label"},!0}})),n})),["label","resolveLabelOverlapping"].forEach((function(e){t.addChange({code:e.toUpperCase(),handler:function(){this._createLabels(),this._requestChange(["LAYOUT"])},isThemeDependent:!0,isOptionChange:!0,option:e})}))},fontFields:["label.font"]}},function(t,e,n){"use strict";var i=n(486).prototype,o=n(304).Tracker,r=n(2).isDefined,a=0;i._eventsMap.onItemClick={name:"itemClick"},i._eventsMap.onLegendClick={name:"legendClick"},e.plugin={name:"tracker",init:function(){var t=this,e="__funnel_data_"+a++,n=function(e){var n=t._renderer.getRootOffset(),i=Math.floor(e.pageX-n.left),o=Math.floor(e.pageY-n.top);return t._hitTestTargets(i,o)};t._tracker=new o({widget:t,root:t._renderer.root,getData:function(t,i){var o=t.target[e];if(r(o))return o;var a=n(t);return i&&a&&"inside-label"!==a.type?void 0:a&&a.id},getNode:function(e){return t._items[e]},click:function(e){var i=n(e.event),o="legend"===(i&&i.type)?"legendClick":"itemClick";t._eventTrigger(o,{item:e.node,event:e.event})}}),this._dataKey=e},dispose:function(){this._tracker.dispose()},extenders:{_change_TILING:function(){var t=this._dataKey;this._items.forEach((function(e,n){e.element.data(t,n)}))}}}},function(t,e,n){"use strict";var i=n(4).noop;e.plugin={name:"funnel-tooltip",init:i,dispose:i,extenders:{_buildNodes:function(){this.hideTooltip()},_change_TILING:function(){this._tooltipIndex>=0&&this._moveTooltip(this._items[this._tooltipIndex])}},members:{hideTooltip:function(){this._tooltipIndex>=0&&(this._tooltipIndex=-1,this._tooltip.hide())},_moveTooltip:function(t,e){var n=e||t.coords&&function(t,e){var n=e.getRootOffset();return[(t[0]+t[2])/2+n.left,(t[1]+t[5])/2+n.top]}(t.coords,this._renderer)||[-1e3,-1e3];this._tooltip.move(n[0],n[1],0)},_showTooltip:function(t,e){var n=this._tooltip,i=this._items[t],o=this._tooltipIndex===t||n.show({value:i.value,valueText:n.formatValue(i.value),percentText:n.formatValue(i.percent,"percent"),percent:i.percent,item:i},{x:0,y:0,offset:0},{item:i});o?this._moveTooltip(i,e):n.hide(),this._tooltipIndex=o?t:-1}},customize:function(t){t.addPlugin(n(122).plugin)}}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(912),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Gallery=l,l.propTypes={accessKey:r.string,animationDuration:r.number,animationEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,indicatorEnabled:r.bool,initialItemWidth:r.number,itemHoldTimeout:r.number,items:r.array,loop:r.bool,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,rtlEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,showIndicator:r.bool,showNavButtons:r.bool,slideshowDelay:r.number,stretchImages:r.bool,swipeEnabled:r.bool,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapAround:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(8),a=n(4),s=n(2),l=n(10),u=n(0).extend,c=n(17).getPublicElement,d=n(47),h=n(25),f=n(33),p=n(18),m=n(20),g=n(11),_=n(69),v=n(164),y=n(73).BindableTemplate,b=n(7).Deferred,w=m.inherit({_supportedKeys:function(){return u(this.callBase(),{pageUp:a.noop,pageDown:a.noop})},_getDefaultOptions:function(){return u(this.callBase(),{direction:"next",onClick:null,hoverStateEnabled:!0,activeStateEnabled:!0})},_render:function(){this.callBase();var t=this,e=this.$element(),n=g.addNamespace(h.name,this.NAME);e.addClass("dx-gallery-nav-button-"+this.option("direction")),o.off(e,n),o.on(e,n,(function(e){t._createActionByOption("onClick")({event:e})}))},_optionChanged:function(t){switch(t.name){case"onClick":case"direction":this._invalidate();break;default:this.callBase(t)}}}),x=_.inherit({_activeStateUnit:".dx-gallery-item",_getDefaultOptions:function(){return u(this.callBase(),{activeStateEnabled:!1,animationDuration:400,animationEnabled:!0,loop:!1,swipeEnabled:!0,indicatorEnabled:!0,showIndicator:!0,selectedIndex:0,slideshowDelay:0,showNavButtons:!1,wrapAround:!1,initialItemWidth:void 0,stretchImages:!1,_itemAttributes:{role:"option"},loopItemFocus:!1,selectOnFocus:!0,selectionMode:"single",selectionRequired:!0,selectionByClick:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===p.real().deviceType&&!p.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.option("loopItemFocus",this.option("loop"))},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({item:new y(function(t,e){var n=i("<img>").addClass("dx-gallery-item-image");s.isPlainObject(e)?(this._prepareDefaultItemTemplate(e,t),n.attr({src:e.imageSrc,alt:e.imageAlt}).appendTo(t)):n.attr("src",String(e)).appendTo(t)}.bind(this),["imageSrc","imageAlt","text","html"],this.option("integrationOptions.watchMethod"))})},_dataSourceOptions:function(){return{paginate:!1}},_itemContainer:function(){return this._$container},_itemClass:function(){return"dx-gallery-item"},_itemDataKey:function(){return"dxGalleryItemData"},_actualItemWidth:function(){var t=this.option("wrapAround");return this.option("stretchImages")?1/(t?this._itemsPerPage()+1:this._itemsPerPage()):t?this._itemPercentWidth()*this._itemsPerPage()/(this._itemsPerPage()+1):this._itemPercentWidth()},_itemPercentWidth:function(){var t=this.$element().outerWidth(),e=this.option("initialItemWidth");return e&&e<=t?e/t:1},_itemsPerPage:function(){var t=l.hasWindow()?Math.floor(1/this._itemPercentWidth()):1;return Math.min(t,this._itemsCount())},_pagesCount:function(){return Math.ceil(this._itemsCount()/this._itemsPerPage())},_itemsCount:function(){return(this.option("items")||[]).length},_offsetDirection:function(){return this.option("rtlEnabled")?-1:1},_initMarkup:function(){this._renderWrapper(),this._renderItemsContainer(),this.$element().addClass("dx-gallery"),this.$element().toggleClass("dx-gallery-loop",this.option("loop")),this.callBase(),this.setAria({role:"listbox",label:"gallery"})},_render:function(){this._renderDragHandler(),this._renderContainerPosition(),this._renderItemSizes(),this._renderItemPositions(),this._renderNavButtons(),this._renderIndicator(),this._renderSelectedItem(),this._renderItemVisibility(),this._renderUserInteraction(),this._setupSlideShow(),this._reviseDimensions(),this.callBase()},_dimensionChanged:function(){var t=this.option("selectedIndex")||0;this._stopItemAnimations(),this._clearCacheWidth(),this._cloneDuplicateItems(),this._renderItemSizes(),this._renderItemPositions(),this._renderIndicator(),this._renderContainerPosition(this._calculateIndexOffset(t),!0),this._renderItemVisibility()},_renderDragHandler:function(){var t=g.addNamespace("dragstart",this.NAME);o.off(this.$element(),t),o.on(this.$element(),t,"img",(function(){return!1}))},_renderWrapper:function(){this._$wrapper||(this._$wrapper=i("<div>").addClass("dx-gallery-wrapper").appendTo(this.$element()))},_renderItems:function(t){if(!l.hasWindow()){var e=this.option("selectedIndex");t=t.length>e?t.slice(e,e+1):t.slice(0,1)}this.callBase(t),this._loadNextPageIfNeeded()},_renderItemsContainer:function(){this._$container||(this._$container=i("<div>").addClass("dx-gallery-container").appendTo(this._$wrapper))},_cloneDuplicateItems:function(){if(this.option("loop")){var t,e=(this.option("items")||[]).length,n=e-1;if(e){this._getLoopedItems().remove();var i=Math.min(this._itemsPerPage(),e),o=this._getRealItems(),r=this._itemContainer();for(t=0;t<i;t++)this._cloneItemForDuplicate(o[t],r);for(t=0;t<i;t++)this._cloneItemForDuplicate(o[n-t],r)}}},_cloneItemForDuplicate:function(t,e){t&&i(t).clone(!0).addClass("dx-gallery-item-loop").css("margin",0).appendTo(e)},_getRealItems:function(){return this.$element().find(".dx-gallery-item:not(.dx-gallery-item-loop)")},_getLoopedItems:function(){return this.$element().find(".dx-gallery-item-loop")},_emptyMessageContainer:function(){return this._$wrapper},_renderItemSizes:function(t){var e=this._itemElements(),n=this._actualItemWidth();void 0!==t&&(e=e.slice(t)),e.each((function(t){i(e[t]).outerWidth(100*n+"%")}))},_renderItemPositions:function(){var t=this._actualItemWidth(),e=this._itemsCount(),n=this._itemsPerPage(),o=this.$element().find(".dx-gallery-item-loop").length,r=e+o-1,a=this.option("wrapAround")?.5:0,s=this._itemFreeSpace(),l=!!s,u=this.option("rtlEnabled"),c=this.option("selectedIndex"),d=u?"Right":"Left";this._itemElements().each((function(o){var u=o,c=i(this).hasClass("dx-gallery-item-loop");if(o>e+n-1&&(u=r-u-n),c||0===u){var h=t*(u+a)+s*(u+1-a),f=c?d.toLowerCase():"margin"+d;i(this).css(f,100*h+"%")}else l&&i(this).css("margin"+d,100*s+"%")})),this._relocateItems(c,c,!0)},_itemFreeSpace:function(){var t=this._itemsPerPage();return this.option("wrapAround")&&(t+=1),(1-this._actualItemWidth()*t)/(t+1)},_renderContainerPosition:function(t,e,n){this._releaseInvisibleItems(),t=t||0;var i,o=this,r=this._actualItemWidth(),a=t,l=this._offsetDirection()*a*(r+this._itemFreeSpace());return s.isDefined(this._animationOverride)&&(n=this._animationOverride,delete this._animationOverride),n?(o._startSwipe(),i=o._animate(l).done(o._endSwipe.bind(o))):(f.move(this._$container,{left:l*this._elementWidth(),top:0}),i=(new b).resolveWith(o)),i.done((function(){this._deferredAnimate&&o._deferredAnimate.resolveWith(o),e&&this._renderItemVisibility()})),i.promise()},_startSwipe:function(){this.$element().addClass("dx-gallery-active")},_endSwipe:function(){this.$element().removeClass("dx-gallery-active")},_animate:function(t,e){var n=this,i=this._$container,o=new b;return d.animate(this._$container,u({type:"slide",to:{left:t*this._elementWidth()},duration:n.option("animationDuration"),complete:function(){n._needMoveContainerForward()&&f.move(i,{left:0,top:0}),n._needMoveContainerBack()&&f.move(i,{left:n._maxContainerOffset()*n._elementWidth(),top:0}),o.resolveWith(n)}},e||{})),o},_needMoveContainerForward:function(){return this._$container.position().left*this._offsetDirection()<=-this._maxItemWidth()*this._elementWidth()*this._itemsCount()+1},_needMoveContainerBack:function(){return this._$container.position().left*this._offsetDirection()>=this._actualItemWidth()*this._elementWidth()-1},_maxContainerOffset:function(){return-this._maxItemWidth()*(this._itemsCount()-this._itemsPerPage())*this._offsetDirection()},_maxItemWidth:function(){return this._actualItemWidth()+this._itemFreeSpace()},_reviseDimensions:function(){var t=this._itemElements().first().find(".dx-item-content");t&&!t.is(":hidden")&&(this.option("height")||this.option("height",t.outerHeight()),this.option("width")||this.option("width",t.outerWidth()),this._dimensionChanged())},_renderIndicator:function(){if(this._cleanIndicators(),this.option("showIndicator")){for(var t=this._$indicator=i("<div>").addClass("dx-gallery-indicator").appendTo(this._$wrapper),e=this.option("indicatorEnabled"),n=0;n<this._pagesCount();n++){var o=i("<div>").addClass("dx-gallery-indicator-item").appendTo(t);e&&this._attachIndicatorClickHandler(o,n)}this._renderSelectedPageIndicator()}},_attachIndicatorClickHandler:function(t,e){o.on(t,g.addNamespace(h.name,this.NAME),function(t){this._indicatorSelectHandler(t,e)}.bind(this))},_detachIndicatorClickHandler:function(t){o.off(t,g.addNamespace(h.name,this.NAME))},_toggleIndicatorInteraction:function(t){var e,n=(null===(e=this._$indicator)||void 0===e?void 0:e.find(".dx-gallery-indicator-item"))||[];n.length&&n.each(function(e,n){t?this._attachIndicatorClickHandler(i(n),e):this._detachIndicatorClickHandler(i(n))}.bind(this))},_cleanIndicators:function(){this._$indicator&&this._$indicator.remove()},_renderSelectedItem:function(){var t=this.option("selectedIndex");this._itemElements().removeClass("dx-gallery-item-selected").eq(t).addClass("dx-gallery-item-selected")},_renderItemVisibility:function(){this.option("initialItemWidth")||this.option("wrapAround")?this._releaseInvisibleItems():(this._itemElements().each(function(t,e){this.option("selectedIndex")===t?i(e).removeClass("dx-gallery-item-invisible"):i(e).addClass("dx-gallery-item-invisible")}.bind(this)),this._getLoopedItems().addClass("dx-gallery-item-invisible"))},_releaseInvisibleItems:function(){this._itemElements().removeClass("dx-gallery-item-invisible"),this._getLoopedItems().removeClass("dx-gallery-item-invisible")},_renderSelectedPageIndicator:function(){if(this._$indicator){var t=this.option("selectedIndex"),e=this._pagesCount()-1,n=Math.ceil(t/this._itemsPerPage());n=Math.min(e,n),this._$indicator.find(".dx-gallery-indicator-item").removeClass("dx-gallery-indicator-item-selected").eq(n).addClass("dx-gallery-indicator-item-selected")}},_renderUserInteraction:function(){var t=this.$element(),e=this.option("swipeEnabled")&&this._itemsCount()>1;this._createComponent(t,v,{disabled:this.option("disabled")||!e,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._elementWidth.bind(this)})},_indicatorSelectHandler:function(t,e){if(this.option("indicatorEnabled")){var n=this._fitPaginatedIndex(e*this._itemsPerPage());this._needLongMove=!0,this.option("selectedIndex",n),this._loadNextPageIfNeeded(n)}},_renderNavButtons:function(){var t=this;t.option("showNavButtons")?(t._prevNavButton=i("<div>").appendTo(this._$wrapper),t._createComponent(t._prevNavButton,w,{direction:"prev",onClick:function(){t._prevPage()}}),t._nextNavButton=i("<div>").appendTo(this._$wrapper),t._createComponent(t._nextNavButton,w,{direction:"next",onClick:function(){t._nextPage()}}),this._renderNavButtonsVisibility()):t._cleanNavButtons()},_prevPage:function(){var t=this._itemsPerPage(),e=this.option("selectedIndex")-t;return e===-t&&t===this._itemsCount()?this._relocateItems(e,0):this.goToItem(this._fitPaginatedIndex(e))},_nextPage:function(){var t=this._itemsPerPage(),e=this.option("selectedIndex")+t;return e===t&&t===this._itemsCount()?this._relocateItems(e,0):this.goToItem(this._fitPaginatedIndex(e)).done(this._loadNextPageIfNeeded)},_loadNextPageIfNeeded:function(t){t=void 0===t?this.option("selectedIndex"):t,this._dataSource&&this._dataSource.paginate()&&this._shouldLoadNextPage(t)&&!this._isDataSourceLoading()&&!this._isLastPage()&&this._loadNextPage().done(function(){this._renderIndicator(),this._renderItemPositions(),this._renderNavButtonsVisibility(),this._renderItemSizes(t)}.bind(this))},_shouldLoadNextPage:function(t){return t+2*this._itemsPerPage()>this.option("items").length},_allowDynamicItemsAppend:function(){return!0},_fitPaginatedIndex:function(t){var e=this._itemsPerPage(),n=t<0?e+t:this._itemsCount()-t;return t>this._itemsCount()-1?(t=0,this._goToGhostItem=!0):n<e&&n>0&&(t>0?t-=e-n:t+=e-n),t},_cleanNavButtons:function(){this._prevNavButton&&(this._prevNavButton.remove(),delete this._prevNavButton),this._nextNavButton&&(this._nextNavButton.remove(),delete this._nextNavButton)},_renderNavButtonsVisibility:function(){if(this.option("showNavButtons")&&this._prevNavButton&&this._nextNavButton){var t=this.option("selectedIndex"),e=this.option("loop"),n=this._itemsCount();if(this._prevNavButton.show(),this._nextNavButton.show(),0===n&&(this._prevNavButton.hide(),this._nextNavButton.hide()),!e){var i=t===n-this._itemsPerPage(),o=n<2||0===t;i=this._dataSource&&this._dataSource.paginate()?i&&this._isLastPage():i||n<2,o&&this._prevNavButton.hide(),i&&this._nextNavButton.hide()}}},_setupSlideShow:function(){var t=this,e=t.option("slideshowDelay");clearTimeout(t._slideshowTimer),e&&(t._slideshowTimer=setTimeout((function(){t._userInteraction?t._setupSlideShow():t.nextItem(!0).done(t._setupSlideShow)}),e))},_elementWidth:function(){return this._cacheElementWidth||(this._cacheElementWidth=this.$element().width()),this._cacheElementWidth},_clearCacheWidth:function(){delete this._cacheElementWidth},_swipeStartHandler:function(t){this._releaseInvisibleItems(),this._clearCacheWidth(),this._elementWidth();var e=this._itemsCount();if(e){if(this._stopItemAnimations(),this._startSwipe(),this._userInteraction=!0,!this.option("loop")){var n=this.option("selectedIndex"),i=e-n-this._itemsPerPage(),o=n,r=this.option("rtlEnabled");t.event.maxLeftOffset=r?o:i,t.event.maxRightOffset=r?i:o}}else t.event.cancel=!0},_stopItemAnimations:function(){d.stop(this._$container,!0)},_swipeUpdateHandler:function(t){var e=this.option("wrapAround")?1:0,n=this._offsetDirection()*t.event.offset*(this._itemsPerPage()+e)-this.option("selectedIndex");n<0&&this._loadNextPageIfNeeded(Math.ceil(Math.abs(n))),this._renderContainerPosition(n)},_swipeEndHandler:function(t){var e=t.event.targetOffset*this._offsetDirection()*this._itemsPerPage(),n=this.option("selectedIndex"),i=this._fitIndex(n-e),o=this._fitPaginatedIndex(i);Math.abs(e)<this._itemsPerPage()?this._relocateItems(n):this._itemsPerPage()!==this._itemsCount()?this.option("selectedIndex",o):e>0?this._relocateItems(-e):this._relocateItems(0)},_setFocusOnSelect:function(){this._userInteraction=!0;var t=this.itemElements().filter(".dx-gallery-item-selected");this.option("focusedElement",c(t)),this._userInteraction=!1},_flipIndex:function(t){var e=this._itemsCount();return(t%=e)>(e+1)/2&&(t-=e),t<-(e-1)/2&&(t+=e),t},_fitIndex:function(t){if(!this.option("loop"))return t;var e=this._itemsCount();return(t>=e||t<0)&&(this._goToGhostItem=!0),t>=e&&(t=e-t),(t%=e)<0&&(t+=e),t},_clean:function(){this.callBase(),this._cleanIndicators(),this._cleanNavButtons()},_dispose:function(){clearTimeout(this._slideshowTimer),this.callBase()},_updateSelection:function(t,e){this._stopItemAnimations(),this._renderNavButtonsVisibility(),this._renderSelectedItem(),this._relocateItems(t[0],e[0]),this._renderSelectedPageIndicator()},_relocateItems:function(t,e,n){void 0===e&&(e=t);var i=this._calculateIndexOffset(t,e);this._renderContainerPosition(i,!0,this.option("animationEnabled")&&!n).done((function(){this._setFocusOnSelect(),this._userInteraction=!1,this._setupSlideShow()}))},_focusInHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_focusOutHandler:function(){d.isAnimating(this._$container)||this._userInteraction||this.callBase.apply(this,arguments)},_selectFocusedItem:a.noop,_moveFocus:function(){this._stopItemAnimations(),this.callBase.apply(this,arguments);var t=this.itemElements().index(i(this.option("focusedElement")));this.goToItem(t,this.option("animationEnabled"))},_visibilityChanged:function(t){t&&this._reviseDimensions()},_calculateIndexOffset:function(t,e){void 0===e&&(e=t);var n=e-t;return this.option("loop")&&!this._needLongMove&&this._goToGhostItem&&(this._isItemOnFirstPage(t)&&this._isItemOnLastPage(e)?n=-this._itemsPerPage():this._isItemOnLastPage(t)&&this._isItemOnFirstPage(e)&&(n=this._itemsPerPage()),this._goToGhostItem=!1),this._needLongMove=!1,n-=e},_isItemOnLastPage:function(t){return t>=this._itemsCount()-this._itemsPerPage()},_isItemOnFirstPage:function(t){return t<=this._itemsPerPage()},_optionChanged:function(t){switch(t.name){case"width":case"initialItemWidth":this.callBase.apply(this,arguments),this._dimensionChanged();break;case"animationDuration":this._renderNavButtonsVisibility();break;case"animationEnabled":break;case"loop":this.$element().toggleClass("dx-gallery-loop",t.value),this.option("loopItemFocus",t.value),l.hasWindow()&&(this._cloneDuplicateItems(),this._renderItemPositions(),this._renderNavButtonsVisibility());break;case"showIndicator":this._renderIndicator();break;case"showNavButtons":this._renderNavButtons();break;case"slideshowDelay":this._setupSlideShow();break;case"wrapAround":case"stretchImages":l.hasWindow()&&(this._renderItemSizes(),this._renderItemPositions(),this._renderItemVisibility());break;case"swipeEnabled":this._renderUserInteraction();break;case"indicatorEnabled":this._toggleIndicatorInteraction(t.value);break;default:this.callBase(t)}},goToItem:function(t,e){var n=this.option("selectedIndex"),i=this._itemsCount();return void 0!==e&&(this._animationOverride=e),t=this._fitIndex(t),this._deferredAnimate=new b,t>i-1||t<0||n===t?this._deferredAnimate.resolveWith(this).promise():(this.option("selectedIndex",t),this._deferredAnimate.promise())},prevItem:function(t){return this.goToItem(this.option("selectedIndex")-1,t)},nextItem:function(t){return this.goToItem(this.option("selectedIndex")+1,t)}});r("dxGallery",x),t.exports=x,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(914),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={column:{optionName:"columns",isCollectionItem:!0},dependencies:{optionName:"dependencies",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},resourceAssignments:{optionName:"resourceAssignments",isCollectionItem:!1},resources:{optionName:"resources",isCollectionItem:!1},stripLine:{optionName:"stripLines",isCollectionItem:!0},tasks:{optionName:"tasks",isCollectionItem:!1},toolbar:{optionName:"toolbar",isCollectionItem:!1},validation:{optionName:"validation",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Gantt=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowSelection:r.bool,columns:r.array,dependencies:r.object,disabled:r.bool,editing:r.object,elementAttr:r.object,firstDayOfWeek:r.oneOf([0,1,2,3,4,5,6]),focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,resourceAssignments:r.object,resources:r.object,scaleType:r.oneOf(["auto","minutes","hours","days","weeks","months","quarters","years"]),showResources:r.bool,showRowLines:r.bool,stripLines:r.array,tabIndex:r.number,taskListWidth:r.number,tasks:r.object,taskTitlePosition:r.oneOf(["inside","outside","none"]),toolbar:r.object,validation:r.object,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"async"},e}(s.default);e.AsyncRule=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Button=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columns",e.IsCollectionItem=!0,e.DefaultsProps={defaultFilterValue:"filterValue",defaultFilterValues:"filterValues",defaultSelectedFilterOperation:"selectedFilterOperation",defaultSortIndex:"sortIndex",defaultSortOrder:"sortOrder",defaultVisible:"visible",defaultVisibleIndex:"visibleIndex"},e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},button:{optionName:"buttons",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1},formItem:{optionName:"formItem",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"},{tmplOption:"editCellTemplate",render:"editCellRender",component:"editCellComponent",keyFn:"editCellKeyFn"},{tmplOption:"headerCellTemplate",render:"headerCellRender",component:"headerCellComponent",keyFn:"headerCellKeyFn"}],e}(s.default);e.Column=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"compare"},e}(s.default);e.CompareRule=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"custom"},e}(s.default);e.CustomRule=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dependencies",e}(s.default);e.Dependencies=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="editing",e}(s.default);e.Editing=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"email"},e}(s.default);e.EmailRule=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="formItem",e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.FormItem=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e}(s.default);e.HeaderFilter=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.Lookup=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"numeric"},e}(s.default);e.NumericRule=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"pattern"},e}(s.default);e.PatternRule=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"range"},e}(s.default);e.RangeRule=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.RequiredRule=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="resourceAssignments",e}(s.default);e.ResourceAssignments=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="resources",e}(s.default);e.Resources=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"stringLength"},e}(s.default);e.StringLengthRule=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stripLines",e.IsCollectionItem=!0,e}(s.default);e.StripLine=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tasks",e}(s.default);e.Tasks=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbar",e.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.Toolbar=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validation",e}(s.default);e.Validation=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.ValidationRule=R,e.default=l},function(t,e,n){"use strict";t.exports=n(915),t.exports.default=t.exports},function(t,e,n){"use strict";var i=v(n(3)),o=v(n(2)),r=v(n(20)),a=v(n(8)),s=v(n(29)),l=n(916),u=n(920),c=v(n(487)),d=n(0),h=n(24),f=n(10),p=v(n(954)),m=v(n(485)),g=n(955),_=v(n(195));function v(t){return t&&t.__esModule?t:{default:t}}function y(t){return(y="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function x(t,e,n){return(x="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=I(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==y(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}(v,t);var e,n,r,a=S(v);function v(){return b(this,v),a.apply(this,arguments)}return e=v,(n=[{key:"_initMarkup",value:function(){x(I(v.prototype),"_initMarkup",this).call(this),this.$element().addClass("dx-gantt"),this._$toolbarWrapper=(0,i.default)("<div>").addClass("dx-gantt-toolbar-wrapper").appendTo(this.$element()),this._$toolbar=(0,i.default)("<div>").appendTo(this._$toolbarWrapper),this._$mainWrapper=(0,i.default)("<div>").addClass("dx-gantt-main-wrapper").appendTo(this.$element()),this._$treeListWrapper=(0,i.default)("<div>").addClass("dx-gantt-treelist-wrapper").appendTo(this._$mainWrapper),this._$treeList=(0,i.default)("<div>").appendTo(this._$treeListWrapper),this._$splitter=(0,i.default)("<div>").appendTo(this._$mainWrapper),this._$ganttView=(0,i.default)("<div>").addClass("dx-gantt-view").appendTo(this._$mainWrapper),this._$dialog=(0,i.default)("<div>").appendTo(this.$element()),this._$loadPanel=(0,i.default)("<div>").appendTo(this.$element()),this._$contextMenu=(0,i.default)("<div>").appendTo(this.$element()),this._refreshDataSource("tasks"),this._refreshDataSource("dependencies"),this._refreshDataSource("resources"),this._refreshDataSource("resourceAssignments")}},{key:"_renderContent",value:function(){this._renderBars(),this._renderTreeList(),this._renderSplitter()}},{key:"_renderTreeList",value:function(){var t=this,e=this.option("tasks"),n=e.keyExpr,i=e.parentIdExpr;this._treeList=this._createComponent(this._$treeList,c.default,{dataSource:this._tasksRaw,keyExpr:n,parentIdExpr:i,columns:this.option("columns"),columnResizingMode:"nextColumn",height:this._$treeList.height()?this._$treeList.height():"100%",width:this.option("taskListWidth"),selection:{mode:this._getSelectionMode(this.option("allowSelection"))},selectedRowKeys:this._getArrayFromOneElement(this.option("selectedRowKey")),sorting:{mode:"none"},scrolling:{showScrollbar:"onHover",mode:"virtual"},allowColumnResizing:!0,autoExpandAll:!0,showRowLines:this.option("showRowLines"),onContentReady:function(e){t._onTreeListContentReady(e)},onSelectionChanged:function(e){t._onTreeListSelectionChanged(e)},onRowCollapsed:function(e){return t._ganttView.changeTaskExpanded(e.key,!1)},onRowExpanded:function(e){return t._ganttView.changeTaskExpanded(e.key,!0)},onRowPrepared:function(e){t._onTreeListRowPrepared(e)},onContextMenuPreparing:function(e){t._onTreeListContextMenuPreparing(e)},onRowDblClick:function(){t._onTreeListRowDblClick()}})}},{key:"_renderSplitter",value:function(){this._splitter=this._createComponent(this._$splitter,m.default,{container:this.$element(),leftElement:this._$treeListWrapper,rightElement:this._$ganttView,onApplyPanelSize:this._onApplyPanelSize.bind(this)}),this._splitter.option("initialLeftPanelWidth",this.option("taskListWidth"))}},{key:"_renderBars",value:function(){this._bars=[],this._toolbar=new u.GanttToolbar(this._$toolbar,this),this._updateToolbarContent(),this._bars.push(this._toolbar),this._contextMenuBar=new u.GanttContextMenuBar(this._$contextMenu,this),this._bars.push(this._contextMenuBar)}},{key:"_initGanttView",value:function(){this._ganttView||(this._ganttView=this._createComponent(this._$ganttView,l.GanttView,{width:"100%",height:this._treeList._$element.get(0).offsetHeight,rowHeight:this._getTreeListRowHeight(),headerHeight:this._getTreeListHeaderHeight(),tasks:this._tasks,dependencies:this._dependencies,resources:this._resources,resourceAssignments:this._resourceAssignments,allowSelection:this.option("allowSelection"),selectedRowKey:this.option("selectedRowKey"),showResources:this.option("showResources"),taskTitlePosition:this.option("taskTitlePosition"),firstDayOfWeek:this.option("firstDayOfWeek"),showRowLines:this.option("showRowLines"),scaleType:this.option("scaleType"),editing:this.option("editing"),validation:this.option("validation"),stripLines:this.option("stripLines"),bars:this._bars,mainElement:this.$element(),onSelectionChanged:this._onGanttViewSelectionChanged.bind(this),onScroll:this._onGanttViewScroll.bind(this),onDialogShowing:this._showDialog.bind(this),onPopupMenuShowing:this._showPopupMenu.bind(this),onExpandAll:this._expandAll.bind(this),onCollapseAll:this._collapseAll.bind(this),modelChangesListener:this._createModelChangesListener()}),this._fireContentReadyAction())}},{key:"_onApplyPanelSize",value:function(t){this._setInnerElementsWidth(t)}},{key:"_onTreeListContentReady",value:function(t){t.component.getDataSource()&&(this._initGanttView(),this._initScrollSync(t.component))}},{key:"_onTreeListRowPrepared",value:function(t){"data"===t.rowType&&t.node.children.length>0&&(0,i.default)(t.rowElement).addClass("dx-gantt-collapsable-row")}},{key:"_onTreeListContextMenuPreparing",value:function(t){t.row&&"data"===t.row.rowType&&(this._setTreeListOption("selectedRowKeys",[t.row.data[this.option("tasks.keyExpr")]]),t.items=[],this._showPopupMenu({position:{x:t.event.pageX,y:t.event.pageY}}))}},{key:"_onTreeListRowDblClick",value:function(){this._ganttView._ganttViewCore.commandManager.showTaskEditDialog.execute()}},{key:"_onTreeListSelectionChanged",value:function(t){var e=t.currentSelectedRowKeys[0];this._setGanttViewOption("selectedRowKey",e),this.option("selectedRowKey",e),this._raiseSelectionChangedAction(e)}},{key:"_onGanttViewSelectionChanged",value:function(t){this._setTreeListOption("selectedRowKeys",this._getArrayFromOneElement(t.id))}},{key:"_onGanttViewScroll",value:function(t){var e=this._treeList.getScrollable();if(e){var n=t.scrollTop-e.scrollTop();0!==n&&e.scrollBy({left:0,top:n})}}},{key:"_onTreeListScroll",value:function(t){var e=this._ganttView.getTaskAreaContainer();e.scrollTop!==t.component.scrollTop()&&(e.scrollTop=t.component.scrollTop())}},{key:"_expandAll",value:function(){var t=this;this._treeList.forEachNode((function(e){e.children&&e.children.length&&(t._treeList.expandRow(e.key),t._ganttView.changeTaskExpanded(e.key,!0))}))}},{key:"_collapseAll",value:function(){var t=this;this._treeList.forEachNode((function(e){e.children&&e.children.length&&(t._treeList.collapseRow(e.key),t._ganttView.changeTaskExpanded(e.key,!1))}))}},{key:"_initScrollSync",value:function(t){var e=this,n=t.getScrollable();n&&(n.off("scroll"),n.on("scroll",(function(t){e._onTreeListScroll(t)})))}},{key:"_getTreeListRowHeight",value:function(){var t=this._treeList._$element.find(".dx-data-row"),e=t.length?(0,h.getBoundingRect)(t.last().get(0)).height:34;return e||34}},{key:"_getTreeListHeaderHeight",value:function(){return(0,h.getBoundingRect)(this._treeList._$element.find(".dx-treelist-headers").get(0)).height}},{key:"_setInnerElementsWidth",value:function(t){if((0,f.hasWindow)()){t||(t=this._getPanelsWidthByOption());var e=t.leftPanelWidth,n=t.rightPanelWidth;this._$treeListWrapper.width(e);var i=o.default.isString(e)&&"%"===e.slice(-1);this._$treeList.width(i?"100%":e),this._$ganttView.width(n),this._setGanttViewOption("width",this._$ganttView.width())}}},{key:"_getPanelsWidthByOption",value:function(){return{leftPanelWidth:this.option("taskListWidth"),rightPanelWidth:this._$element.width()-this.option("taskListWidth")}}},{key:"_setGanttViewOption",value:function(t,e){this._ganttView&&this._ganttView.option(t,e)}},{key:"_setTreeListOption",value:function(t,e){this._treeList&&this._treeList.option(t,e)}},{key:"_refreshDataSource",value:function(t){var e=this,n=this["_".concat(t,"Option")];n&&(n._disposeDataSource(),delete this["_".concat(t,"Option")],delete this["_".concat(t)]),this.option("".concat(t,".dataSource"))&&((n=new p.default(t,this._getLoadPanel(),(function(t,n){e._dataSourceChanged(t,n)}))).option("dataSource",this._getSpecificDataSourceOption(t)),n._refreshDataSource(),this["_".concat(t,"Option")]=n)}},{key:"_getSpecificDataSourceOption",value:function(t){var e=this.option("".concat(t,".dataSource"));return Array.isArray(e)?{store:{type:"array",data:e,key:this.option("".concat(t,".keyExpr"))}}:e}},{key:"_compileGettersByOption",value:function(t){var e={},n=this.option(t);for(var i in n){var o=i.match(/(\w*)Expr/);o&&(e[o[1]]=s.default.compileGetter(n[o[0]]))}return e}},{key:"_compileSettersByOption",value:function(t){var e={},n=this.option(t);for(var i in n){var o=i.match(/(\w*)Expr/);o&&(e[o[1]]=s.default.compileSetter(n[o[0]]))}return e}},{key:"_getStoreObject",value:function(t,e){var n=this._compileSettersByOption(t);return Object.keys(n).reduce((function(t,i){return"key"!==i&&n[i](t,e[i]),t}),{})}},{key:"_prepareSetterMapHandler",value:function(t){return function(e){return Object.keys(t).reduce((function(n,i){var o="key"===i?"id":i;return t[i](n,e[o]),n}),{})}}},{key:"_prepareMapHandler",value:function(t){return function(e){return Object.keys(t).reduce((function(n,i){return n["key"===i?"id":i]=t[i](e),n}),{})}}},{key:"_dataSourceChanged",value:function(t,e){var n=this._compileGettersByOption(t),i=e.map(this._prepareMapHandler(n));if(this["_".concat(t)]=i,this._setGanttViewOption(t,i),"tasks"===t){this._tasksRaw=e;var o=e.map((function(t){return t.parentId})).filter((function(t,e,n){return t&&n.indexOf(t)===e}));this._setTreeListOption("expandedRowKeys",o),this._setTreeListOption("dataSource",e)}}},{key:"_createModelChangesListener",value:function(){var t=this;return{NotifyTaskCreated:function(e,n,i){t._onRecordInserted("tasks",e,n)},NotifyTaskRemoved:function(e,n){t._onRecordRemoved("tasks",e)},NotifyTaskTitleChanged:function(e,n,i){t._onRecordUpdated("tasks",e,"title",n)},NotifyTaskDescriptionChanged:function(e,n,i){t._onRecordUpdated("tasks",e,"description",n)},NotifyTaskStartChanged:function(e,n,i){t._onRecordUpdated("tasks",e,"start",n)},NotifyTaskEndChanged:function(e,n,i){t._onRecordUpdated("tasks",e,"end",n)},NotifyTaskProgressChanged:function(e,n,i){t._onRecordUpdated("tasks",e,"progress",n)},NotifyDependencyInserted:function(e,n,i){t._onRecordInserted("dependencies",e,n)},NotifyDependencyRemoved:function(e,n){t._onRecordRemoved("dependencies",e)},NotifyResourceCreated:function(e,n,i){t._onRecordInserted("resources",e,n)},NotifyResourceRemoved:function(e,n){t._onRecordRemoved("resources",e)},NotifyResourceAssigned:function(e,n,i){t._onRecordInserted("resourceAssignments",e,n)},NotifyResourceUnassigned:function(e,n){t._onRecordRemoved("resourceAssignments",e)},NotifyParentDataRecalculated:function(e){t._onParentTasksRecalculated(e)}}}},{key:"_onRecordInserted",value:function(t,e,n){var i=this,o=this["_".concat(t,"Option")];if(o){var r=this._getStoreObject(t,e);o.insert(r,(function(o){var r=s.default.compileGetter(i.option("".concat(t,".keyExpr")))(o);if(n(r),"tasks"===t){i._updateTreeListDataSource();var a=e.parentId;if(void 0!==a){var l=i._treeList.option("expandedRowKeys");-1===l.indexOf(a)&&(l.push(a),i._treeList.option("expandedRowKeys",l))}i._setTreeListOption("selectedRowKeys",i._getArrayFromOneElement(r)),i._setTreeListOption("focusedRowKey",r)}}))}}},{key:"_onRecordRemoved",value:function(t,e){var n=this,i=this["_".concat(t,"Option")];i&&i.remove(e,(function(){"tasks"===t&&n._updateTreeListDataSource()}))}},{key:"_onRecordUpdated",value:function(t,e,n,i){var o=this,r=this["_".concat(t,"Option")];if(r){var a={};s.default.compileSetter(this.option("".concat(t,".").concat(n,"Expr")))(a,i),r.update(e,a,(function(){"tasks"===t&&o._updateTreeListDataSource()}))}}},{key:"_onParentTasksRecalculated",value:function(t){var e=this._compileSettersByOption("tasks"),n=this._appendCustomFields(t.map(this._prepareSetterMapHandler(e)));this._setTreeListOption("dataSource",n)}},{key:"_appendCustomFields",value:function(t){var e=this._tasksOption&&this._tasksOption._getItems(),n=s.default.compileGetter(this.option("".concat("tasks",".keyExpr")));return t.reduce((function(t,i){var o=e&&e.filter((function(t){return n(t)===n(i)}))[0];if(o){var r={};for(var a in o)r[a]=Object.prototype.hasOwnProperty.call(i,a)?i[a]:o[a];t.push(r)}else t.push(i);return t}),[])}},{key:"_updateTreeListDataSource",value:function(){if(!this._skipUpdateTreeListDataSource()){var t=this.option("tasks.dataSource"),e=this._tasksOption._getStore()._array||t.items&&t.items();this._setTreeListOption("dataSource",e||t)}}},{key:"_skipUpdateTreeListDataSource",value:function(){return this.option("validation.autoUpdateParentTasks")}},{key:"_getLoadPanel",value:function(){return this._loadPanel||(this._loadPanel=this._createComponent(this._$loadPanel,_.default,{position:{of:this.$element()}})),this._loadPanel}},{key:"_createSelectionChangedAction",value:function(){this._selectionChangedAction=this._createActionByOption("onSelectionChanged")}},{key:"_raiseSelectionChangedAction",value:function(t){this._selectionChangedAction||this._createSelectionChangedAction(),this._selectionChangedAction({selectedRowKey:t})}},{key:"_getSelectionMode",value:function(t){return t?"single":"none"}},{key:"_getArrayFromOneElement",value:function(t){return void 0===t||null===t?[]:[t]}},{key:"_getToolbarItems",value:function(){var t=this.option("toolbar.items");return t||[]}},{key:"_updateToolbarContent",value:function(){var t=this._getToolbarItems();t.length?this._$toolbarWrapper.show():this._$toolbarWrapper.hide(),this._toolbar&&this._toolbar.createItems(t),this._updateBarItemsState()}},{key:"_updateBarItemsState",value:function(){this._ganttView&&this._ganttView.updateBarItemsState()}},{key:"_showDialog",value:function(t){this._dialogInstance||(this._dialogInstance=new g.GanttDialog(this,this._$dialog)),this._dialogInstance.show(t.name,t.parameters,t.callback,t.afterClosing,this.option("editing"))}},{key:"_showPopupMenu",value:function(t){this._ganttView.getBarManager().updateContextMenu(),this._contextMenuBar.show(t.position)}},{key:"_executeCoreCommand",value:function(t){this._ganttView.executeCoreCommand(t)}},{key:"_clean",value:function(){delete this._ganttView,delete this._dialogInstance,x(I(v.prototype),"_clean",this).call(this)}},{key:"_getDefaultOptions",value:function(){return(0,d.extend)(x(I(v.prototype),"_getDefaultOptions",this).call(this),{tasks:{dataSource:null,keyExpr:"id",parentIdExpr:"parentId",startExpr:"start",endExpr:"end",progressExpr:"progress",titleExpr:"title",colorExpr:"color"},dependencies:{dataSource:null,keyExpr:"id",predecessorIdExpr:"predecessorId",successorIdExpr:"successorId",typeExpr:"type"},resources:{dataSource:null,keyExpr:"id",textExpr:"text",colorExpr:"color"},resourceAssignments:{dataSource:null,keyExpr:"id",taskIdExpr:"taskId",resourceIdExpr:"resourceId"},columns:void 0,taskListWidth:300,showResources:!0,taskTitlePosition:"inside",firstDayOfWeek:void 0,selectedRowKey:void 0,onSelectionChanged:null,allowSelection:!0,showRowLines:!0,stripLines:void 0,scaleType:"auto",editing:{enabled:!1,allowTaskAdding:!0,allowTaskDeleting:!0,allowTaskUpdating:!0,allowDependencyAdding:!0,allowDependencyDeleting:!0,allowResourceAdding:!0,allowResourceDeleting:!0,allowResourceUpdating:!0},validation:{validateDependencies:!1,autoUpdateParentTasks:!1},toolbar:null})}},{key:"_optionChanged",value:function(t){switch(t.name){case"tasks":this._refreshDataSource("tasks");break;case"dependencies":this._refreshDataSource("dependencies");break;case"resources":this._refreshDataSource("resources");break;case"resourceAssignments":this._refreshDataSource("resourceAssignments");break;case"columns":this._setTreeListOption("columns",this.option(t.name));break;case"taskListWidth":this._setInnerElementsWidth();break;case"showResources":this._setGanttViewOption("showResources",t.value);break;case"taskTitlePosition":this._setGanttViewOption("taskTitlePosition",t.value);break;case"firstDayOfWeek":this._setGanttViewOption("firstDayOfWeek",t.value);break;case"selectedRowKey":this._setTreeListOption("selectedRowKeys",this._getArrayFromOneElement(t.value));break;case"onSelectionChanged":this._createSelectionChangedAction();break;case"allowSelection":this._setTreeListOption("selection.mode",this._getSelectionMode(t.value)),this._setGanttViewOption("allowSelection",t.value);break;case"showRowLines":this._setTreeListOption("showRowLines",t.value),this._setGanttViewOption("showRowLines",t.value);break;case"stripLines":this._setGanttViewOption("stripLines",t.value);break;case"scaleType":this._setGanttViewOption("scaleType",t.value);break;case"editing":this._setGanttViewOption("editing",this.option(t.name));break;case"validation":this._setGanttViewOption("validation",this.option(t.name));break;case"toolbar":this._updateToolbarContent();break;default:x(I(v.prototype),"_optionChanged",this).call(this,t)}}}])&&w(e.prototype,n),r&&w(e,r),v}(r.default);(0,a.default)("dxGantt",T),t.exports=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttView=void 0;var i=l(n(20)),o=n(917),r=n(919),a=l(n(43)),s=n(2);function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.GanttView=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,i,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"_init",value:function(){h(g(u.prototype),"_init",this).call(this),this._onSelectionChanged=this._createActionByOption("onSelectionChanged"),this._onScroll=this._createActionByOption("onScroll"),this._onDialogShowing=this._createActionByOption("onDialogShowing"),this._onPopupMenuShowing=this._createActionByOption("onPopupMenuShowing"),this._expandAll=this._createActionByOption("onExpandAll"),this._collapseAll=this._createActionByOption("onCollapseAll")}},{key:"_initMarkup",value:function(){var t=(0,o.getGanttViewCore)().GanttView;this._ganttViewCore=new t(this.$element().get(0),this,{showResources:this.option("showResources"),taskTitlePosition:this._getTaskTitlePosition(this.option("taskTitlePosition")),firstDayOfWeek:this._getFirstDayOfWeek(this.option("firstDayOfWeek")),allowSelectTask:this.option("allowSelection"),editing:this._parseEditingSettings(this.option("editing")),validation:this.option("validation"),stripLines:{stripLines:this.option("stripLines")},areHorizontalBordersEnabled:this.option("showRowLines"),areAlternateRowsEnabled:!1,viewType:this._getViewTypeByScaleType(this.option("scaleType")),cultureInfo:this._getCultureInfo()}),this._selectTask(this.option("selectedRowKey")),this.updateBarItemsState()}},{key:"_getFirstDayOfWeek",value:function(t){return(0,s.isDefined)(t)?t:a.default.firstDayOfWeekIndex()}},{key:"getTaskAreaContainer",value:function(){return this._ganttViewCore.taskAreaContainer}},{key:"getBarManager",value:function(){return this._ganttViewCore.barManager}},{key:"executeCoreCommand",value:function(t){var e=this._ganttViewCore.commandManager.getCommand(t);e&&e.execute()}},{key:"changeTaskExpanded",value:function(t,e){this._ganttViewCore.changeTaskExpanded(t,e)}},{key:"updateView",value:function(){this._ganttViewCore.updateView()}},{key:"updateBarItemsState",value:function(){this._ganttViewCore.barManager.updateItemsState([])}},{key:"setWidth",value:function(t){this._ganttViewCore.setWidth(t)}},{key:"_selectTask",value:function(t){this._ganttViewCore.selectTaskById(t)}},{key:"_update",value:function(){this._ganttViewCore.loadOptionsFromGanttOwner(),this._ganttViewCore.resetAndUpdate()}},{key:"_getCultureInfo",value:function(){return{monthNames:a.default.getMonthNames("wide"),dayNames:a.default.getDayNames("wide"),abbrMonthNames:a.default.getMonthNames("abbreviated"),abbrDayNames:a.default.getDayNames("abbreviated"),quarterNames:a.default.getQuarterNames(),amText:a.default.getPeriodNames()[0],pmText:a.default.getPeriodNames()[1]}}},{key:"_getTaskTitlePosition",value:function(t){switch(t){case"outside":return 1;case"none":return 2;default:return 0}}},{key:"_getViewTypeByScaleType",value:function(t){switch(t){case"minutes":return 0;case"hours":return 1;case"days":return 3;case"weeks":return 4;case"months":return 5;case"quarters":return 6;case"years":return 7;default:return}}},{key:"_parseEditingSettings",value:function(t){return{enabled:t.enabled,allowDependencyDelete:t.allowDependencyDeleting,allowDependencyInsert:t.allowDependencyAdding,allowTaskDelete:t.allowTaskDeleting,allowTaskInsert:t.allowTaskAdding,allowTaskUpdate:t.allowTaskUpdating,allowResourceDelete:t.allowResourceDeleting,allowResourceInsert:t.allowResourceAdding,allowResourceUpdate:t.allowResourceUpdating}}},{key:"_optionChanged",value:function(t){switch(t.name){case"width":h(g(u.prototype),"_optionChanged",this).call(this,t),this._ganttViewCore.setWidth(t.value);break;case"tasks":case"dependencies":case"resources":case"resourceAssignments":this._update();break;case"showResources":this._ganttViewCore.setShowResources(t.value);break;case"taskTitlePosition":this._ganttViewCore.setTaskTitlePosition(this._getTaskTitlePosition(t.value));break;case"firstDayOfWeek":this._ganttViewCore.setFirstDayOfWeek(this._getFirstDayOfWeek(t.value));break;case"allowSelection":this._ganttViewCore.setAllowSelection(t.value);break;case"selectedRowKey":this._selectTask(t.value);break;case"editing":this._ganttViewCore.setEditingSettings(this._parseEditingSettings(t.value));break;case"validation":this._ganttViewCore.setValidationSettings(t.value),this._update();break;case"showRowLines":this._ganttViewCore.setRowLinesVisible(t.value);break;case"scaleType":this._ganttViewCore.setViewType(this._getViewTypeByScaleType(t.value));break;case"stripLines":this._ganttViewCore.setStripLines({stripLines:t.value});break;default:h(g(u.prototype),"_optionChanged",this).call(this,t)}}},{key:"getRowHeight",value:function(){return this.option("rowHeight")}},{key:"getHeaderHeight",value:function(){return this.option("headerHeight")}},{key:"getGanttTasksData",value:function(){return this.option("tasks")}},{key:"getGanttDependenciesData",value:function(){return this.option("dependencies")}},{key:"getGanttResourcesData",value:function(){return this.option("resources")}},{key:"getGanttResourceAssignmentsData",value:function(){return this.option("resourceAssignments")}},{key:"getGanttWorkTimeRules",value:function(){return{}}},{key:"getExternalTaskAreaContainer",value:function(t){return this._taskAreaContainer||(this._taskAreaContainer=new r.TaskAreaContainer(t,this)),this._taskAreaContainer}},{key:"changeGanttTaskSelection",value:function(t,e){this._onSelectionChanged({id:t,selected:e})}},{key:"onGanttScroll",value:function(t){this._onScroll({scrollTop:t})}},{key:"showDialog",value:function(t,e,n,i){this._onDialogShowing({name:t,parameters:e,callback:n,afterClosing:i})}},{key:"getModelChangesListener",value:function(){return this.option("modelChangesListener")}},{key:"showPopupMenu",value:function(t){this._onPopupMenuShowing({position:t})}},{key:"getMainElement",value:function(){return this.option("mainElement").get(0)}},{key:"adjustControl",value:function(){}},{key:"getRequireFirstLoadParentAutoCalc",value:function(){return this.option("validation.autoUpdateParentTasks")}},{key:"collapseAll",value:function(){this._collapseAll()}},{key:"expandAll",value:function(){this._expandAll()}},{key:"bars",get:function(){return this.option("bars")}}])&&d(e.prototype,n),i&&d(e,i),u}(i.default)},function(t,e,n){"use strict";var i=n(23),o=n(918);t.exports.getGanttViewCore=function(){if(!o)throw i.Error("E1041","devexpress-gantt");return o}},function(module,exports,__webpack_require__){var factory;window,factory=function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=43)}([function(t,e,n){"use strict";n.r(e),n.d(e,"__extends",(function(){return o})),n.d(e,"__assign",(function(){return r})),n.d(e,"__rest",(function(){return a})),n.d(e,"__decorate",(function(){return s})),n.d(e,"__param",(function(){return l})),n.d(e,"__metadata",(function(){return u})),n.d(e,"__awaiter",(function(){return c})),n.d(e,"__generator",(function(){return d})),n.d(e,"__createBinding",(function(){return h})),n.d(e,"__exportStar",(function(){return f})),n.d(e,"__values",(function(){return p})),n.d(e,"__read",(function(){return m})),n.d(e,"__spread",(function(){return g})),n.d(e,"__spreadArrays",(function(){return _})),n.d(e,"__await",(function(){return v})),n.d(e,"__asyncGenerator",(function(){return y})),n.d(e,"__asyncDelegator",(function(){return b})),n.d(e,"__asyncValues",(function(){return w})),n.d(e,"__makeTemplateObject",(function(){return x})),n.d(e,"__importStar",(function(){return C})),n.d(e,"__importDefault",(function(){return S})),n.d(e,"__classPrivateFieldGet",(function(){return k})),n.d(e,"__classPrivateFieldSet",(function(){return I}));var i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function o(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var r=function(){return(r=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var o in e=arguments[n])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function a(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(t,i[o])&&(n[i[o]]=t[i[o]])}return n}function s(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}function l(t,e){return function(n,i){e(n,i,t)}}function u(t,e){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,e)}function c(t,e,n,i){return new(n||(n=Promise))((function(o,r){function a(t){try{l(i.next(t))}catch(e){r(e)}}function s(t){try{l(i.throw(t))}catch(e){r(e)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}l((i=i.apply(t,e||[])).next())}))}function d(t,e){var n,i,o,r,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return r={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function s(r){return function(s){return function(r){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)return o;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case 0:case 1:o=r;break;case 4:return a.label++,{value:r[1],done:!1};case 5:a.label++,i=r[1],r=[0];continue;case 7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break}o[2]&&a.ops.pop(),a.trys.pop();continue}r=e.call(t,a)}catch(s){r=[6,s],i=0}finally{n=o=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,s])}}}function h(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}function f(t,e){for(var n in t)"default"===n||e.hasOwnProperty(n)||(e[n]=t[n])}function p(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],i=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,o,r=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=r.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function g(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(m(arguments[e]));return t}function _(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),o=0;for(e=0;e<n;e++)for(var r=arguments[e],a=0,s=r.length;a<s;a++,o++)i[o]=r[a];return i}function v(t){return this instanceof v?(this.v=t,this):new v(t)}function y(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,o=n.apply(t,e||[]),r=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i;function a(t){o[t]&&(i[t]=function(e){return new Promise((function(n,i){r.push([t,e,n,i])>1||s(t,e)}))})}function s(t,e){try{(n=o[t](e)).value instanceof v?Promise.resolve(n.value.v).then(l,u):c(r[0][2],n)}catch(i){c(r[0][3],i)}var n}function l(t){s("next",t)}function u(t){s("throw",t)}function c(t,e){t(e),r.shift(),r.length&&s(r[0][0],r[0][1])}}function b(t){var e,n;return e={},i("next"),i("throw",(function(t){throw t})),i("return"),e[Symbol.iterator]=function(){return this},e;function i(i,o){e[i]=t[i]?function(e){return(n=!n)?{value:v(t[i](e)),done:"return"===i}:o?o(e):e}:o}}function w(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(n){e[n]=t[n]&&function(e){return new Promise((function(i,o){!function(t,e,n,i){Promise.resolve(i).then((function(e){t({value:e,done:n})}),e)}(i,o,(e=t[n](e)).done,e.value)}))}}}function x(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function C(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function S(t){return t&&t.__esModule?t:{default:t}}function k(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function I(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8),o=n(14),r=function(){function t(){}return t.clientEventRequiresDocScrollCorrection=function(){var t=i.Browser.Safari&&i.Browser.Version<3,e=i.Browser.MacOSMobilePlatform&&i.Browser.Version<5.1;return i.Browser.AndroidDefaultBrowser||i.Browser.AndroidChromeBrowser||!(t||e)},t.getEventX=function(e){return t.isTouchEvent(e)?o.TouchUIHelper.getEventX(e):e.clientX+(this.clientEventRequiresDocScrollCorrection()?this.getDocumentScrollLeft():0)},t.getEventY=function(e){return t.isTouchEvent(e)?o.TouchUIHelper.getEventY(e):e.clientY+(this.clientEventRequiresDocScrollCorrection()?this.getDocumentScrollTop():0)},t.getEventSource=function(t){return t.srcElement?t.srcElement:t.target},t.GetKeyCode=function(t){return i.Browser.NetscapeFamily||i.Browser.Opera?t.which:t.keyCode},t.GetIsParent=function(t,e){if(!t||!e)return!1;for(;e;){if(e===t)return!0;if("BODY"===e.tagName)return!1;e=e.parentNode}return!1},t.getCurrentStyle=function(t){return document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(t,null):window.getComputedStyle(t,null)},t.getTopPaddings=function(t){var e=this.getCurrentStyle(t);return this.pxToInt(e.paddingTop)},t.getLeftPadding=function(t){var e=this.getCurrentStyle(t);return this.pxToInt(e.paddingLeft)},t.getVerticalBordersWidth=function(t){var e=window.getComputedStyle?window.getComputedStyle(t):this.getCurrentStyle(t),n=0;return"none"!=e.borderTopStyle&&(n+=this.pxToFloat(e.borderTopWidth)),"none"!=e.borderBottomStyle&&(n+=this.pxToFloat(e.borderBottomWidth)),n},t.getHorizontalBordersWidth=function(t){var e=window.getComputedStyle?window.getComputedStyle(t):this.getCurrentStyle(t),n=0;return"none"!=e.borderLeftStyle&&(n+=this.pxToFloat(e.borderLeftWidth)),"none"!=e.borderRightStyle&&(n+=this.pxToFloat(e.borderRightWidth)),n},t.pxToInt=function(t){return this.pxToNumber(t,parseInt)},t.pxToFloat=function(t){return this.pxToNumber(t,parseFloat)},t.pxToNumber=function(t,e){var n=0;if(null!=t&&""!=t)try{var i=t.indexOf("px");i>-1&&(n=e(t.substr(0,i)))}catch(o){}return n},t.getDocumentScrollTop=function(){var t=i.Browser.IE&&"hidden"==this.getCurrentStyle(document.body).overflow&&document.body.scrollTop>0;return i.Browser.WebKitFamily||i.Browser.Edge||t?i.Browser.MacOSMobilePlatform?window.pageYOffset:i.Browser.WebKitFamily&&document.documentElement.scrollTop||document.body.scrollTop:document.documentElement.scrollTop},t.getDocumentScrollLeft=function(){var t=i.Browser.IE&&"hidden"==this.getCurrentStyle(document.body).overflow&&document.body.scrollLeft>0;return i.Browser.Edge||t?document.body?document.body.scrollLeft:document.documentElement.scrollLeft:i.Browser.WebKitFamily?document.documentElement.scrollLeft||document.body.scrollLeft:document.documentElement.scrollLeft},t.getAbsolutePositionY=function(t){return i.Browser.IE?this.getAbsolutePositionY_IE(t):i.Browser.Firefox&&i.Browser.Version>=3?this.getAbsolutePositionY_FF3(t):i.Browser.Opera?this.getAbsolutePositionY_Opera(t):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?this.getAbsolutePositionY_NS(t):i.Browser.WebKitFamily||i.Browser.Edge?this.getAbsolutePositionY_FF3(t):this.getAbsolutePositionY_Other(t)},t.getAbsolutePositionY_Opera=function(t){var e=!0;t&&"TR"==t.tagName&&t.cells.length>0&&(t=t.cells[0]);for(var n=this.getAbsoluteScrollOffset_OperaFF(t,!1);null!=t;)n+=t.offsetTop,e||(n-=t.scrollTop),t=t.offsetParent,e=!1;return n+=document.body.scrollTop},t.getAbsolutePositionY_IE=function(t){return null==t||i.Browser.IE&&null==t.parentNode?0:t.getBoundingClientRect().top+this.getDocumentScrollTop()},t.getAbsolutePositionY_FF3=function(t){if(null==t)return 0;var e=t.getBoundingClientRect().top+this.getDocumentScrollTop();return Math.round(e)},t.getAbsolutePositionY_NS=function(t){for(var e=this.getAbsoluteScrollOffset_OperaFF(t,!1),n=!0;null!=t;){if(e+=t.offsetTop,n||null==t.offsetParent||(e-=t.scrollTop),!n&&i.Browser.Firefox){var o=this.getCurrentStyle(t);"DIV"==t.tagName&&"visible"!=o.overflow&&(e+=this.pxToInt(o.borderTopWidth))}n=!1,t=t.offsetParent}return e},t.getAbsolutePositionY_Other=function(t){for(var e=0,n=!0;null!=t;)e+=t.offsetTop,n||null==t.offsetParent||(e-=t.scrollTop),n=!1,t=t.offsetParent;return e},t.getAbsoluteScrollOffset_OperaFF=function(t,e){for(var n=0,i=!0;null!=t&&"BODY"!=t.tagName;){var o=this.getCurrentStyle(t);if("absolute"==o.position)break;i||"DIV"!=t.tagName||""!=o.position&&"static"!=o.position||(n-=e?t.scrollLeft:t.scrollTop),t=t.parentNode,i=!1}return n},t.getAbsolutePositionX=function(t){return i.Browser.IE?this.getAbsolutePositionX_IE(t):i.Browser.Firefox&&i.Browser.Version>=3?this.getAbsolutePositionX_FF3(t):i.Browser.Opera?this.getAbsolutePositionX_Opera(t):i.Browser.NetscapeFamily&&(!i.Browser.Firefox||i.Browser.Version<3)?this.getAbsolutePositionX_NS(t):i.Browser.WebKitFamily||i.Browser.Edge?this.getAbsolutePositionX_FF3(t):this.getAbsolutePositionX_Other(t)},t.getAbsolutePositionX_Opera=function(t){for(var e=!0,n=this.getAbsoluteScrollOffset_OperaFF(t,!0);null!=t;)n+=t.offsetLeft,e||(n-=t.scrollLeft),t=t.offsetParent,e=!1;return n+=document.body.scrollLeft},t.getAbsolutePositionX_IE=function(t){return null==t||i.Browser.IE&&null==t.parentNode?0:t.getBoundingClientRect().left+this.getDocumentScrollLeft()},t.getAbsolutePositionX_FF3=function(t){if(null==t)return 0;var e=t.getBoundingClientRect().left+this.getDocumentScrollLeft();return Math.round(e)},t.getAbsolutePositionX_NS=function(t){for(var e=this.getAbsoluteScrollOffset_OperaFF(t,!0),n=!0;null!=t;){if(e+=t.offsetLeft,n||null==t.offsetParent||(e-=t.scrollLeft),!n&&i.Browser.Firefox){var o=this.getCurrentStyle(t);"DIV"==t.tagName&&"visible"!=o.overflow&&(e+=this.pxToInt(o.borderLeftWidth))}n=!1,t=t.offsetParent}return e},t.getAbsolutePositionX_Other=function(t){for(var e=0,n=!0;null!=t;)e+=t.offsetLeft,n||null==t.offsetParent||(e-=t.scrollLeft),n=!1,t=t.offsetParent;return e},t.GetEvent=function(t){return"undefined"!=typeof event&&null!=event&&i.Browser.IE?event:t},t.isExists=function(t){return"undefined"!=typeof t&&null!=t},t.isTouchEvent=function(e){return!!e&&i.Browser.WebKitTouchUI&&t.isExists(e.changedTouches)},t.IsLeftButtonPressed=function(e){return!!t.isTouchEvent(e)||!!(e=t.GetEvent(e))&&(i.Browser.IE&&i.Browser.Version<11?!!i.Browser.MSTouchUI||e.button%2==1:i.Browser.WebKitFamily?"pointermove"===e.type?1===e.buttons:1==e.which:i.Browser.NetscapeFamily||i.Browser.Edge||i.Browser.IE&&i.Browser.Version>=11?e.type===t.touchMouseMoveEventName?1===e.buttons:1==e.which:!i.Browser.Opera||0==e.button)},t.setAttribute=function(e,n,i){e.setAttribute?(t.isSourceResetRequired()&&"src"===n.toLowerCase()&&e.setAttribute(n,""),e.setAttribute(n,i)):e.setProperty&&e.setProperty(n,i,"")},t.getAttribute=function(t,e){if(t.getAttribute)return t.getAttribute(e);if(t.getPropertyValue){if(i.Browser.Firefox)try{return t.getPropertyValue(e)}catch(n){return t[e]}return t.getPropertyValue(e)}return null},t.getTabIndexAttributeName=function(){return i.Browser.IE?"tabIndex":"tabindex"},t.changeStyleAttribute=function(e,n,i){t.changeAttributeExtended(e.style,n,e,"saved"+n,i)},t.changeAttributeExtended=function(e,n,i,o,r){t.saveAttribute(e,n,i,o),t.setAttribute(e,n,r)},t.saveAttribute=function(e,n,i,o){if(!t.isExistsAttribute(i,o)){var r=t.isExistsAttribute(e,n)?t.getAttribute(e,n):t.EmptyObject;t.setAttribute(i,o,r)}},t.restoreAttributeExtended=function(e,n,i,o){if(t.isExistsAttribute(i,o)){var r=t.getAttribute(i,o);return r!=t.EmptyObject?t.setAttribute(e,n,r):t.removeAttribute(e,n),t.removeAttribute(i,o),!0}return!1},t.removeAttribute=function(t,e){t.removeAttribute?t.removeAttribute(e):t.removeProperty&&t.removeProperty(e)},t.isExistsAttribute=function(e,n){var i=t.getAttribute(e,n);return null!=i&&""!==i},t.isSourceResetRequired=function(){return i.Browser.IE&&i.Browser.MajorVersion>=11},t.EmptyObject={},t.touchMouseMoveEventName=i.Browser.WebKitTouchUI?"touchmove":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",t.getMouseWheelEventName=function(){return i.Browser.Safari?"mousewheel":i.Browser.NetscapeFamily&&i.Browser.MajorVersion<17?"DOMMouseScroll":"wheel"},t.getWheelDelta=function(t){var e;return e=i.Browser.NetscapeFamily&&i.Browser.MajorVersion<17?-t.detail:i.Browser.Safari?t.wheelDelta:-t.deltaY,i.Browser.Opera&&i.Browser.Version<9&&(e=-e),e},t.IsRightButtonPressed=function(e){return e=t.GetEvent(e),!!t.isExists(e)&&(i.Browser.IE||i.Browser.Edge?"pointermove"===e.type?2===e.buttons:2==e.button:i.Browser.NetscapeFamily||i.Browser.WebKitFamily?3==e.which:!i.Browser.Opera||1==e.button)},t.addClassNameToElement=function(e,n){if(e&&"string"===typeof n&&(n=t.trim(n),!t.elementHasCssClass(e,n)&&""!==n)){var i=t.getClassName(e);t.setClassName(e,""===i?n:i+" "+n)}},t.removeClassNameFromElement=function(e,n){if(e){var i=" "+t.getClassName(e)+" ",o=i.replace(" "+n+" "," ");i.length!=o.length&&t.setClassName(e,t.trim(o))}},t.elementHasCssClass=function(e,n){try{var i,o=t.getClassNameList(e);if(!o){var r=t.getClassName(e);if(!r)return!1;i=r.split(" ")}for(var a=n.split(" "),s=a.length-1;s>=0;s--)if(o){if(-1===o.indexOf(a[s]))return!1}else if(i.indexOf(a[s])<0)return!1;return!0}catch(l){return!1}},t.getClassName=function(t){var e="";return t&&(e="svg"===t.tagName?t.className.baseVal:t.className?t.className:""),e},t.getClassNameList=function(e){var n=[];return e&&(n="svg"===e.tagName?t.getClassName(e).replace(/^\s+|\s+$/g,"").split(/\s+/):e.classList?[].slice.call(e.classList):t.getClassName(e).replace(/^\s+|\s+$/g,"").split(/\s+/)),n},t.setClassName=function(e,n){"svg"===e.tagName?e.className.baseVal=t.trim(n):e.className=t.trim(n)},t.trim=function(t){var e=t;return e=(e=e.replace(/^\s+/,"")).replace(/\s+$/,"")},t.restoreStyleAttribute=function(e,n){return t.restoreAttributeExtended(e.style,n,e,"saved"+n)},t}();e.DomUtils=r},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var JsonUtils=function(){function JsonUtils(){}return JsonUtils.isExists=function(t){return"undefined"!=typeof t&&null!=t},JsonUtils.isValidJson=function(t){return!/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(t.replace(/"(\\.|[^"\\])*"/g,""))},JsonUtils.evalJson=function(json){return JsonUtils.isValidJson(json)?eval("("+json+")"):null},JsonUtils}();exports.JsonUtils=JsonUtils},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(29),o=n(30),r=n(2),a=n(7),s=n(31),l=function(){function t(){}return t.compareDates=function(t,e){return t&&e?e.getTime()-t.getTime():-1},t.areDatesEqual=function(t,e){return 0==this.compareDates(t,e)},t.getMaxDate=function(t,e){return t||e?t?e&&this.compareDates(t,e)>0?e:t:e:null},t.getMinDate=function(t,e){return t||e?t?e?this.compareDates(t,e)>0?t:e:t:e:null},t.getDaysBetween=function(t,e){var n=Math.abs(e.getTime()-t.getTime());return Math.ceil(n/this.msInDay)},t.getWeeksBetween=function(t,e){var n=this.getDaysBetween(t,e),i=Math.floor(n/7);return t.getDay()>e.getDay()&&i++,i},t.getMonthsDifference=function(t,e){var n=this.compareDates(t,e),i=n>=0?t:e,o=n>=0?e:t;return 12*(o.getFullYear()-i.getFullYear())+(o.getMonth()-i.getMonth())},t.getYearsDifference=function(t,e){return Math.abs(e.getFullYear()-t.getFullYear())},t.getDayNumber=function(t){return Math.ceil(t.getTime()/this.msInDay)},t.getDateByDayNumber=function(t){var e=new Date(t*this.msInDay);return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e},t.addDays=function(t,e){return new Date(t.getTime()+e*this.msInDay)},t.checkDayOfMonth=function(t,e){return t==e.getDate()},t.checkDayOfWeek=function(t,e){return t==e.getDay()},t.checkMonth=function(t,e){return t==e.getMonth()},t.checkYear=function(t,e){return t==e.getFullYear()},t.checkDayOfWeekOccurrenceInMonth=function(t,e,n){var i=this.getSpecificDayOfWeekInMonthDates(e,t.getFullYear(),t.getMonth());return n==s.DayOfWeekMonthlyOccurrence.Last?this.areDatesEqual(t,i[i.length-1]):this.areDatesEqual(t,i[n])},t.getFirstDayOfWeekInMonth=function(t,e){return new Date(t,e,1).getDay()},t.getSpecificDayOfWeekInMonthDates=function(t,e,n){for(var i=this.getFirstDayOfWeekInMonth(e,n),o=t>=i?t-i:t+7-i,r=new Array,a=new Date(e,n,o+1);a.getMonth()==n;)r.push(a),a=this.addDays(a,7);return r},t.getSpecificDayOfWeekInMonthDate=function(t,e,n,i){var o=this.getSpecificDayOfWeekInMonthDates(t,e,n);return i==s.DayOfWeekMonthlyOccurrence.Last?o[o.length-1]:o[i]},t.checkValidDayInMonth=function(t,e,n){return!(n<1||n>31||new Date(t,e,n).getMonth()!=e)},t.getNextMonth=function(t,e){return void 0===e&&(e=1),(t+e)%12},t.convertToDate=function(t){if(t instanceof Date)return new Date(t);var e=Date.parse(t);return isNaN(e)?null:new Date(e)},t.convertTimeRangeToDateRange=function(t,e){var n=this.getDateByDayNumber(e),i=n.getFullYear(),o=n.getMonth(),r=n.getDate(),s=t.start,l=new Date(i,o,r,s.hour,s.min,s.sec,s.msec),u=t.end,c=new Date(i,o,r,u.hour,u.min,u.sec,u.msec);return new a.DateRange(l,c)},t.convertToTimeRanges=function(t){var e=this;return t instanceof Array?t.map((function(t){return e.convertToTimeRange(t)})):this.parseTimeRanges(t)},t.convertToTimeRange=function(t){return t?t instanceof o.TimeRange?t:r.JsonUtils.isExists(t.start)&&r.JsonUtils.isExists(t.end)?new o.TimeRange(this.convertToTime(t.start),this.convertToTime(t.end)):this.parseTimeRange(t):null},t.convertToTime=function(t){return t?t instanceof i.Time?t:t instanceof Date?this.getTimeGromJsDate(t):this.parseTime(t):null},t.parseTimeRanges=function(t){var e=this;return t?t.split(/;|,/).map((function(t){return e.parseTimeRange(t)})).filter((function(t){return!!t})):null},t.parseTimeRange=function(t){if(!t)return null;var e=t.split("-"),n=e[0],i=e[1];return r.JsonUtils.isExists(n)&&r.JsonUtils.isExists(i)?new o.TimeRange(this.parseTime(n),this.parseTime(i)):null},t.parseTime=function(t){if(!t)return null;var e=t.split(":"),n=parseInt(e[0])||0,o=parseInt(e[1])||0,r=parseInt(e[2])||0,a=parseInt(e[3])||0;return new i.Time(n,o,r,a)},t.getTimeGromJsDate=function(t){if(!t)return null;var e=t.getHours(),n=t.getMinutes(),o=t.getSeconds(),r=t.getMilliseconds();return new i.Time(e,n,o,r)},t.caclTimeDifference=function(t,e){return e.getTimeInMilleconds()-t.getTimeInMilleconds()},t.areTimesEqual=function(t,e){return 0==this.caclTimeDifference(t,e)},t.getMaxTime=function(t,e){return t||e?t?e&&this.caclTimeDifference(t,e)>0?e:t:e:null},t.getMinTime=function(t,e){return t||e?t?e?this.caclTimeDifference(t,e)>0?t:e:t:e:null},t.getLastTimeOfDay=function(){return new i.Time(23,59,59,999)},t.msInDay=864e5,t}();e.DateTimeUtils=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.x=null,this.y=null,void 0!==t&&(this.x=t),void 0!==e&&(this.y=e)};e.Point=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t){this.control=t}return Object.defineProperty(t.prototype,"modelManipulator",{get:function(){return this.control.modelManipulator},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"history",{get:function(){return this.control.history},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validationController",{get:function(){return this.control.validationController},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state||(this._state=this.getState()),this._state},enumerable:!0,configurable:!0}),t.prototype.execute=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(!this.state.enabled)return!1;var n=this.executeInternal.apply(this,t);return n&&this.control.barManager.updateItemsState([]),n},t.prototype.isEnabled=function(){return this.control.settings.editing.enabled},t.prototype.executeInternal=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];throw new Error("Not implemented")},t}();e.CommandBase=i;var o=function(t,e){this.visible=!0,this.enabled=t,this.value=e};e.SimpleCommandState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(1),o=n(4),r=n(8),a=n(16),s=n(14);!function(t){t[t.TaskArea=0]="TaskArea",t[t.TaskEdit_Frame=1]="TaskEdit_Frame",t[t.TaskEdit_Progress=2]="TaskEdit_Progress",t[t.TaskEdit_Start=3]="TaskEdit_Start",t[t.TaskEdit_End=4]="TaskEdit_End",t[t.TaskEdit_DependencyStart=5]="TaskEdit_DependencyStart",t[t.TaskEdit_DependencyFinish=6]="TaskEdit_DependencyFinish",t[t.Successor_Wrapper=7]="Successor_Wrapper",t[t.Successor_DependencyStart=8]="Successor_DependencyStart",t[t.Successor_DependencyFinish=9]="Successor_DependencyFinish"}(e.MouseEventSource||(e.MouseEventSource={}));var l=function(){function t(t){this.time=new Date,this.touchTime=new Date,this.ganttView=t,this.eventManager=t.eventManager,this.position=new o.Point(-1,-1),r.Browser.WebKitTouchUI||this.initMouseEvents(),r.Browser.isTouchEnabled()&&this.initTouchEvents()}return t.prototype.initMouseEvents=function(){var t=this;this.ganttView.taskArea.addEventListener("click",(function(e){t.onTaskAreaClick(e)})),this.ganttView.taskArea.addEventListener("scroll",this.ganttView.updateView.bind(this.ganttView)),this.ganttView.taskArea.addEventListener("contextmenu",(function(e){t.onContextMenu(e)})),this.ganttView.taskArea.addEventListener(i.DomUtils.getMouseWheelEventName(),(function(e){t.onMouseWheel(e)})),this.ganttView.taskArea.addEventListener("mousedown",(function(e){t.onMouseDown(e)})),document.addEventListener("mousemove",(function(e){t.onDocumentMouseMove(e)})),document.addEventListener("mouseup",(function(e){t.onDocumentMouseUp(e)})),document.addEventListener("keydown",(function(e){t.onDocumentKeyDown(e)}))},t.prototype.initTouchEvents=function(){var e=this;r.Browser.WebKitTouchUI||r.Browser.WindowsPlatform&&!r.Browser.Edge&&!r.Browser.IE?(this.ganttView.taskArea.addEventListener("touchstart",(function(t){e.onTouchStart(t)})),this.ganttView.taskArea.addEventListener("touchend",(function(t){e.onTouchEnd(t)})),this.ganttView.taskArea.addEventListener("touchmove",(function(t){e.onTouchMove(t)}))):r.Browser.MSTouchUI&&(this.ganttView.taskArea.classList.add(t.MS_POINTER_ACTIVE_CLASS),this.ganttView.taskArea.addEventListener("pointerdown",(function(t){e.onMouseDown(t)})),this.ganttView.taskArea.addEventListener("pointerup",(function(t){e.onDocumentMouseUp(t)})),this.ganttView.taskArea.addEventListener("pointermove",(function(t){e.onDocumentMouseMove(t)})))},t.prototype.attachEventsOnTask=function(t){var e=this;t.addEventListener("mouseenter",(function(t){r.Browser.MSTouchUI?setTimeout((function(){return e.onTaskElementHover(t)}),0):e.onTaskElementHover(t)}))},t.prototype.onMouseDown=function(t){this.eventManager.onMouseDown(t),this.preventSelect=!1,this.position=new o.Point(t.clientX,t.clientY)},t.prototype.onDocumentMouseUp=function(t){var e=this;this.ganttView.isFocus=!!i.DomUtils.GetIsParent(this.ganttView.taskArea,i.DomUtils.getEventSource(t)),this.ganttView.isFocus&&!this.preventSelect&&this.ganttView.settings.allowSelectTask&&!this.isConnectorLine(t)&&setTimeout((function(){e.changeTaskSelection(e.getClickedTaskIndex(t))}),0),this.eventManager.onMouseUp(t)},t.prototype.onMouseWheel=function(t){this.eventManager.onMouseWheel(t)},t.prototype.onDocumentKeyDown=function(t){this.eventManager.onKeyDown(t)},t.prototype.onDocumentMouseMove=function(t){this.position.x==t.clientX&&this.position.y==t.clientY||(this.eventManager.onMouseMove(t),this.preventSelect=!0)},t.prototype.onTouchStart=function(e){this.position=new o.Point(s.TouchUIHelper.getEventX(e),s.TouchUIHelper.getEventY(e));var n=new Date;if(1===e.touches.length&&n.getTime()-this.touchTime.getTime()<t.DBLCLICK_INTERVAL){e.preventDefault();var i=this.ganttView.viewModel.items[this.getClickedTaskIndex(e)];i&&this.ganttView.commandManager.showTaskEditDialog.execute(i.task)}else this.eventManager.onTouchStart(e);this.touchTime=n,this.preventSelect=!1},t.prototype.onTouchEnd=function(t){this.eventManager.onTouchEnd(t)},t.prototype.onTouchMove=function(t){this.position.x==s.TouchUIHelper.getEventX(t)&&this.position.y==s.TouchUIHelper.getEventY(t)||(this.eventManager.onTouchMove(t),this.preventSelect=!0)},t.prototype.onContextMenu=function(t){t.stopPropagation&&t.stopPropagation(),t.preventDefault&&t.preventDefault(),r.Browser.WebKitFamily&&(t.returnValue=!1),this.ganttView.ganttOwner.showPopupMenu(new o.Point(i.DomUtils.getEventX(t),i.DomUtils.getEventY(t)))},t.prototype.onTaskElementHover=function(t){t.preventDefault();var e=this.getClickedTaskIndex(t);this.ganttView.taskEditController.show(e),this.ganttView.taskEditController.showTaskInfo(i.DomUtils.getEventX(t))},t.prototype.getClickedTaskIndex=function(t){var e=i.DomUtils.getEventY(t)-i.DomUtils.getAbsolutePositionY(this.ganttView.taskArea);return Math.floor(e/this.ganttView.tickSize.height)},t.prototype.changeTaskSelection=function(t){var e=this.ganttView.viewModel.items[t];e&&this.ganttView.ganttOwner.changeGanttTaskSelection(e.task.id,!0)},t.prototype.onTaskAreaClick=function(e){var n=new Date(Date.now()),i=this.getClickedTaskIndex(e);if(this.time&&n.getTime()-this.time.getTime()<t.DBLCLICK_INTERVAL){e.preventDefault();var o=this.ganttView.viewModel.items[i];o&&this.ganttView.commandManager.showTaskEditDialog.execute(o.task)}this.time=n},t.prototype.isConnectorLine=function(t){var e=i.DomUtils.getEventSource(t);return i.DomUtils.elementHasCssClass(e,a.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||i.DomUtils.elementHasCssClass(e,a.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)},t.DBLCLICK_INTERVAL=300,t.MS_POINTER_ACTIVE_CLASS="ms-pointer-active",t}();e.TaskAreaManager=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.start=t,this.end=e};e.DateRange=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){}return t.IdentUserAgent=function(e,n){void 0===n&&(n=!1);var i=["Mozilla","IE","Firefox","Netscape","Safari","Chrome","Opera","Opera10","Edge"],o={Safari:2,Chrome:.1,Mozilla:1.9,Netscape:8,Firefox:2,Opera:9,IE:6,Edge:12};if(e&&0!=e.length){e=e.toLowerCase(),t.indentPlatformMajorVersion(e);try{for(var r,a={Windows:"Win",Macintosh:"Mac","Mac OS":"Mac",Mac_PowerPC:"Mac","cpu os":"MacMobile","cpu iphone os":"MacMobile",Android:"Android","!Windows Phone":"WinPhone","!WPDesktop":"WinPhone","!ZuneWP":"WinPhone"},s="(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",l={Safari:"applewebkit(?:.*?(?:version/(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?[\\.\\w\\d]*?(?:\\s+mobile/\\S*)?\\s+safari))?",Chrome:"(?:chrome|crios)(?!frame)(?:/|\\s*)?"+s,Mozilla:"mozilla(?:.*rv:"+s+".*Gecko)?",Netscape:"(?:netscape|navigator)\\d*/?\\s*"+s,Firefox:"firefox(?:/|\\s*)?"+s,Opera:"(?:opera|sopr)(?:/|\\s*)?"+s,Opera10:"opera.*\\s*version(?:/|\\s*)?"+s,IE:"msie\\s*"+s,Edge:"edge(?:/|\\s*)?"+s},u=-1,c=0;c<i.length;c++){var d=i[c],h=new RegExp(l[d],"i");h.compile&&h.compile(l[d],"i");var f=h.exec(e);if(f&&f.index>=0){if("IE"==r&&u>=11&&"Safari"==d)continue;"Opera10"==(r=d)&&(r="Opera"),u=t.GetBrowserVersion(e,f,"trident(?:/|\\s*)?(?:(\\d+)(?:\\.((?:\\d+?[1-9])|\\d)0*?)?)?",t.getIECompatibleVersionString()),"Mozilla"==r&&u>=11&&(r="IE")}}r||(r="IE");var p,m=-1!=u;m||(u=o[r]);var g=Number.MAX_VALUE;for(var _ in a)if(a.hasOwnProperty(_)){var v="!"==_.substr(0,1),y=e.indexOf((v?_.substr(1):_).toLowerCase());y>=0&&(y<g||v)&&(g=v?0:y,p=a[_])}var b=e.toUpperCase().match("SM-[A-Z]"),w=b&&b.length>0;"WinPhone"==p&&u<9&&(u=Math.floor(t.getVersionFromTrident(e,"trident(?:/|\\s*)?"+s))),!n&&"IE"==r&&u>7&&document.documentMode<u&&(u=document.documentMode),"WinPhone"==p&&(u=Math.max(9,u)),p||(p="Win"),p!=a["cpu os"]||m||(u=4),t.fillUserAgentInfo(i,r,u,p,w)}catch(x){t.fillUserAgentInfo(i,"IE",o.IE,"Win")}}else t.fillUserAgentInfo(i,"IE",o.IE,"Win")},t.GetBrowserVersion=function(e,n,i,o){var r=t.getVersionFromMatches(n);if(o){var a=t.getVersionFromTrident(e,i);if("edge"===o||parseInt(o)===a)return a}return r},t.getIECompatibleVersionString=function(){if(document.compatible)for(var t=0;t<document.compatible.length;t++)if("IE"===document.compatible[t].userAgent&&document.compatible[t].version)return document.compatible[t].version.toLowerCase();return""},t.isTouchEnabled=function(){return"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0},t.fillUserAgentInfo=function(e,n,i,o,r){void 0===r&&(r=!1);for(var a=0;a<e.length;a++){var s=e[a];t[s]=s==n}t.Version=Math.floor(10*i)/10,t.MajorVersion=Math.floor(t.Version),t.WindowsPlatform="Win"==o||"WinPhone"==o,t.MacOSMobilePlatform="MacMobile"==o||"Mac"==o&&t.isTouchEnabled(),t.MacOSPlatform="Mac"==o&&!t.MacOSMobilePlatform,t.AndroidMobilePlatform="Android"==o,t.WindowsPhonePlatform="WinPhone"==o,t.WebKitFamily=t.Safari||t.Chrome||t.Opera&&t.MajorVersion>=15,t.NetscapeFamily=t.Netscape||t.Mozilla||t.Firefox,t.HardwareAcceleration=t.IE&&t.MajorVersion>=9||t.Firefox&&t.MajorVersion>=4||t.AndroidMobilePlatform&&t.Chrome||t.Chrome&&t.MajorVersion>=37||t.Safari&&!t.WindowsPlatform||t.Edge||t.Opera&&t.MajorVersion>=46,t.WebKitTouchUI=t.MacOSMobilePlatform||t.AndroidMobilePlatform;var l=t.IE&&t.MajorVersion>9&&t.WindowsPlatform&&t.UserAgent.toLowerCase().indexOf("touch")>=0;if(t.MSTouchUI=l||t.Edge&&!!window.navigator.maxTouchPoints,t.TouchUI=t.WebKitTouchUI||t.MSTouchUI,t.MobileUI=t.WebKitTouchUI||t.WindowsPhonePlatform,t.AndroidDefaultBrowser=t.AndroidMobilePlatform&&!t.Chrome,t.AndroidChromeBrowser=t.AndroidMobilePlatform&&t.Chrome,r&&(t.SamsungAndroidDevice=r),t.MSTouchUI){var u=t.UserAgent.toLowerCase().indexOf("arm;")>-1;t.VirtualKeyboardSupported=u||t.WindowsPhonePlatform}else t.VirtualKeyboardSupported=t.WebKitTouchUI;t.fillDocumentElementBrowserTypeClassNames(e)},t.indentPlatformMajorVersion=function(e){var n=/(?:(?:windows nt|macintosh|mac os|cpu os|cpu iphone os|android|windows phone|linux) )(\d+)(?:[-0-9_.])*/.exec(e);n&&(t.PlaformMajorVersion=n[1])},t.prototype.GetBrowserVersion=function(e,n,i,o){var r=t.getVersionFromMatches(n);if(o){var a=t.getVersionFromTrident(e,i);if("edge"===o||parseInt(o)===a)return a}return r},t.getVersionFromMatches=function(t){var e=-1,n="";return t[1]&&(n+=t[1],t[2]&&(n+="."+t[2])),""!=n&&(e=parseFloat(n),isNaN(e)&&(e=-1)),e},t.getVersionFromTrident=function(e,n){var i=new RegExp(n,"i").exec(e);return t.getVersionFromMatches(i)+4},t.fillDocumentElementBrowserTypeClassNames=function(e){for(var n="",i=e.concat(["WindowsPlatform","MacOSPlatform","MacOSMobilePlatform","AndroidMobilePlatform","WindowsPhonePlatform","WebKitFamily","WebKitTouchUI","MSTouchUI","TouchUI","AndroidDefaultBrowser"]),o=0;o<i.length;o++){var r=i[o];t[r]&&(n+="dx"+r+" ")}n+="dxBrowserVersion-"+t.MajorVersion,document&&document.documentElement&&(""!=document.documentElement.className&&(n=" "+n),document.documentElement.className+=n,t.Info=n)},t.UserAgent=window.navigator.userAgent.toLowerCase(),t._foo=t.IdentUserAgent(t.UserAgent),t}();e.Browser=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(){function t(){this.internalId=this.generateGuid()}return t.prototype.assignFromObject=function(t){i.JsonUtils.isExists(t)&&i.JsonUtils.isExists(t.id)&&(this.id=t.id,this.internalId=String(t.id))},t.prototype.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t}();e.DataObject=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){this.modelManipulator=t};e.HistoryItem=o;var r=function(t){function e(){var e=t.call(this,null)||this;return e.historyItems=[],e}return i.__extends(e,t),e.prototype.redo=function(){for(var t,e=0;t=this.historyItems[e];e++)t.redo()},e.prototype.undo=function(){for(var t,e=this.historyItems.length-1;t=this.historyItems[e];e--)t.undo()},e.prototype.add=function(t){if(null==t)throw new Error("Can't add null HistoryItem");this.historyItems.push(t)},e.prototype.undoItemsQuery=function(){this.undo()},e}(o);e.CompositionHistoryItem=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(){function t(){this._items=new Array,this._isGanttCollection=!0}return t.prototype.add=function(t){if(i.JsonUtils.isExists(t)){if(this.getItemById(t.internalId))throw"The collection item with id ='"+t.internalId+"' already exists.";this._items.push(t)}},t.prototype.addRange=function(t){for(var e=0;e<t.length;e++)this.add(t[e])},t.prototype.remove=function(t){var e=this._items.indexOf(t);e>-1&&e<this._items.length&&this._items.splice(e,1)},t.prototype.clear=function(){this._items.splice(0,this._items.length)},Object.defineProperty(t.prototype,"items",{get:function(){return this._items.slice()},set:function(t){t&&(this._items=t.slice())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._items.length},enumerable:!0,configurable:!0}),t.prototype.getItem=function(t){return t>-1&&t<this._items.length?this._items[t]:null},t.prototype.getItemById=function(t){return this._items.filter((function(e){return e.internalId===t}))[0]},t.prototype.getItemByPublicId=function(t){return this._items.filter((function(e){return e.id===t||e.id.toString()===t}))[0]},t.prototype.assign=function(t){i.JsonUtils.isExists(t)&&(this.items=t.items)},t.prototype.importFromObject=function(t){i.JsonUtils.isExists(t)&&(this.clear(),t._isGanttCollection?this.assign(t):t instanceof Array?this.importFromArray(t):this.createItemFromObjectAndAdd(t))},t.prototype.createItemFromObjectAndAdd=function(t){if(i.JsonUtils.isExists(t)){var e=this.createItem();e.assignFromObject(t),this.add(e)}},t.prototype.importFromArray=function(t){for(var e=0;e<t.length;e++)this.createItemFromObjectAndAdd(t[e])},t.prototype.importFromJSON=function(t){this.importFromObject(i.JsonUtils.evalJson(t))},t}();e.CollectionBase=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0),r=n(9),a=n(2);!function(t){t[t.FS=0]="FS",t[t.SS=1]="SS",t[t.FF=2]="FF",t[t.SF=3]="SF"}(i=e.DependencyType||(e.DependencyType={}));var s=function(t){function e(){var e=t.call(this)||this;return e.predecessorId="",e.successorId="",e.type=null,e}return o.__extends(e,t),e.prototype.assignFromObject=function(e){a.JsonUtils.isExists(e)&&(t.prototype.assignFromObject.call(this,e),this.internalId=String(e.id),this.predecessorId=String(e.predecessorId),this.successorId=String(e.successorId),this.type=this.parseType(e.type))},e.prototype.parseType=function(t){if(!a.JsonUtils.isExists(t))return i.FS;switch(t.toString().toUpperCase()){case"SS":case"1":return i.SS;case"FF":case"2":return i.FF;case"SF":case"3":return i.SF;default:return i.FS}},e}(r.DataObject);e.Dependency=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.TenMinutes=0]="TenMinutes",t[t.Hours=1]="Hours",t[t.SixHours=2]="SixHours",t[t.Days=3]="Days",t[t.Weeks=4]="Weeks",t[t.Months=5]="Months",t[t.Quarter=6]="Quarter",t[t.Years=7]="Years",t[t.FiveYears=8]="FiveYears"}(e.ViewType||(e.ViewType={})),function(t){t[t.Left=0]="Left",t[t.Top=1]="Top",t[t.Right=2]="Right",t[t.Bottom=3]="Bottom"}(e.Position||(e.Position={})),function(t){t[t.Inside=0]="Inside",t[t.Outside=1]="Outside",t[t.None=2]="None"}(e.TaskTitlePosition||(e.TaskTitlePosition={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8),o=function(){function t(){}return t.isTouchEventName=function(t){return i.Browser.WebKitTouchUI&&(t.indexOf("touch")>-1||t.indexOf("gesture")>-1)},t.getEventX=function(t){return i.Browser.IE?t.pageX:t.changedTouches[0].pageX},t.getEventY=function(t){return i.Browser.IE?t.pageY:t.changedTouches[0].pageY},t.touchMouseDownEventName=i.Browser.WebKitTouchUI?"touchstart":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerdown":"mousedown",t.touchMouseUpEventName=i.Browser.WebKitTouchUI?"touchend":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointerup":"mouseup",t.touchMouseMoveEventName=i.Browser.WebKitTouchUI?"touchmove":i.Browser.Edge&&i.Browser.MSTouchUI&&window.PointerEvent?"pointermove":"mousemove",t.msTouchDraggableClassName="dxMSTouchDraggable",t}();e.TouchUIHelper=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(9),r=n(58),a=n(31),s=n(59),l=n(2),u=n(3),c=n(32),d=function(t){function e(e,n,i,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=1),void 0===o&&(o=0);var r=t.call(this)||this;return r._start=null,r._end=null,r._interval=1,r._occurrenceCount=0,r._dayOfWeek=0,r._day=1,r._dayOfWeekOccurrence=0,r._month=0,r._calculateByDayOfWeek=!1,r.start=e,r.end=n,r.interval=i,r.occurrenceCount=o,r}return i.__extends(e,t),e.prototype.assignFromObject=function(e){l.JsonUtils.isExists(e)&&(t.prototype.assignFromObject.call(this,e),this.start=u.DateTimeUtils.convertToDate(e.start),this.end=u.DateTimeUtils.convertToDate(e.end),l.JsonUtils.isExists(e.interval)&&(this.interval=e.interval),l.JsonUtils.isExists(e.occurrenceCount)&&(this.occurrenceCount=e.occurrenceCount),l.JsonUtils.isExists(e.dayOfWeek)&&(this.dayOfWeekInternal=c.RecurrenceFactory.getEnumValue(r.DayOfWeek,e.dayOfWeek)),l.JsonUtils.isExists(e.day)&&(this.dayInternal=e.day),l.JsonUtils.isExists(e.dayOfWeekOccurrence)&&(this.dayOfWeekOccurrenceInternal=c.RecurrenceFactory.getEnumValue(a.DayOfWeekMonthlyOccurrence,e.dayOfWeekOccurrence)),l.JsonUtils.isExists(e.month)&&(this.monthInternal=c.RecurrenceFactory.getEnumValue(s.Month,e.month)),l.JsonUtils.isExists(e.calculateByDayOfWeek)&&(this._calculateByDayOfWeek=!!e.calculateByDayOfWeek))},e.prototype.calculatePoints=function(t,e){if(!t||!e)return new Array;var n=u.DateTimeUtils.getMaxDate(t,this._start),i=u.DateTimeUtils.getMinDate(e,this._end);return this._occurrenceCount>0?this.calculatePointsByOccurrenceCount(n,i):this.calculatePointsByDateRange(n,i)},e.prototype.calculatePointsByOccurrenceCount=function(t,e){for(var n=new Array,i=this.getFirstPoint(t);i&&n.length<this._occurrenceCount&&u.DateTimeUtils.compareDates(i,e)>=0;)this.isRecurrencePoint(i)&&n.push(i),i=this.getNextPoint(i);return n},e.prototype.calculatePointsByDateRange=function(t,e){for(var n=new Array,i=this.getFirstPoint(t);i&&u.DateTimeUtils.compareDates(i,e)>=0;)this.isRecurrencePoint(i)&&n.push(i),i=this.getNextPoint(i);return n},e.prototype.getFirstPoint=function(t){return this.isRecurrencePoint(t)?t:this.getNextPoint(t)},e.prototype.isRecurrencePoint=function(t){return this.isDateInRange(t)&&this.checkDate(t)&&(!this.useIntervalInCalc()||this.checkInterval(t))},e.prototype.isDateInRange=function(t){return!!t&&!(this._start&&u.DateTimeUtils.compareDates(this.start,t)<0)&&!(0==this._occurrenceCount&&this.end&&u.DateTimeUtils.compareDates(t,this.end)<0)},e.prototype.useIntervalInCalc=function(){return this.interval>1&&!!this._start},e.prototype.getNextPoint=function(t){return this.isDateInRange(t)?this.useIntervalInCalc()?this.calculatePointByInterval(t):this.calculateNearestPoint(t):null},e.prototype.getSpecDayInMonth=function(t,e){return this._calculateByDayOfWeek?u.DateTimeUtils.getSpecificDayOfWeekInMonthDate(this.dayOfWeekInternal,t,e,this.dayOfWeekOccurrenceInternal):new Date(t,e,this.dayInternal)},Object.defineProperty(e.prototype,"dayInternal",{get:function(){return this._day},set:function(t){t>0&&t<=31&&(this._day=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeekInternal",{get:function(){return this._dayOfWeek},set:function(t){t>=r.DayOfWeek.Sunday&&t<=r.DayOfWeek.Saturday&&(this._dayOfWeek=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeekOccurrenceInternal",{get:function(){return this._dayOfWeekOccurrence},set:function(t){t>=a.DayOfWeekMonthlyOccurrence.First&&t<=a.DayOfWeekMonthlyOccurrence.Last&&(this._dayOfWeekOccurrence=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"monthInternal",{get:function(){return this._month},set:function(t){t>=s.Month.January&&t<=s.Month.December&&(this._month=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._start},set:function(t){t&&(this._start=t,this._end&&t>this._end&&(this._end=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._end},set:function(t){t&&(this._end=t,this._start&&t<this._start&&(this._start=t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"occurrenceCount",{get:function(){return this._occurrenceCount},set:function(t){t<0&&(t=0),this._occurrenceCount=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"interval",{get:function(){return this._interval},set:function(t){t>0&&(this._interval=t)},enumerable:!0,configurable:!0}),e}(o.DataObject);e.RecurrenceBase=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=n(7),r=n(13),a=n(35),s=n(34),l=n(4),u=n(12),c=n(36),d=function(){function t(){this.tileToDependencyMap=[],this.tileToNoWorkingIntervalsMap=[],this.minLineLength=10,this.resourceMaxWidth=500,this.minTaskWidth=2}return t.prototype.setSettings=function(t,e,n,o,r,a,l){void 0===l&&(l=0),this.visibleTaskAreaSize=t,this.tickSize=e,this.viewType=a,this.range=o,this.verticalTickCount=r.itemCount,this.viewModel=r,this.elementSizeValues=n,this.taskHeight=n.taskHeight,this.parentTaskHeight=n.parentTaskHeight,this.milestoneWidth=n.milestoneWidth,this.scaleHeight=n.scaleItemHeight,this.arrowSize=new i.Size(n.connectorArrowWidth,n.connectorArrowWidth),this.lineThickness=n.connectorLineThickness,this.minConnectorSpaceFromTask=(this.tickSize.height-this.taskHeight)/2,this.tickTimeSpan=s.DateUtils.getTickTimeSpan(a),this.horizontalTickCount=this.getTotalTickCount(),this.scrollBarHeight=l,this.createTileToConnectorLinesMap(),this.createTileToNonWorkingIntervalsMap()},t.prototype.getTaskAreaBorderInfo=function(t,e){var n=e?this.getVerticalGridLineHeight():this.tickSize.width*this.horizontalTickCount;return this.getGridBorderInfo(t,e,n)},t.prototype.getScaleBorderInfo=function(t,e){var n=this.getGridBorderInfo(t,!0,this.scaleHeight);return n.position.x*=this.getScaleItemColSpan(e),n},t.prototype.getGridBorderInfo=function(t,e,n){var i=new a.GridElementInfo;return i.setPosition(this.getGridBorderPosition(t,e)),n&&i.setSize(this.getGridBorderSize(e,n)),i.className=e?"dx-gantt-vb":"dx-gantt-hb",i},t.prototype.getGridBorderPosition=function(t,e){var n=new l.Point,i=(t+1)*(e?this.tickSize.width:this.tickSize.height);return e?n.x=i:n.y=i,n},t.prototype.getGridBorderSize=function(t,e){var n=new i.Size;return t?n.height=e:n.width=e,n},t.prototype.getScaleElementInfo=function(t,e){var n=new a.GridElementInfo;return n.setPosition(this.getScaleItemPosition(t,e)),n.setSize(this.getScaleItemSize(e)),n.className=this.getScaleItemClassName(e,n,this.getRenderedNoWorkingIntervals(n.position.x)),n},t.prototype.getScaleItemClassName=function(t,e,n){var i="dx-gantt-si";return t.valueOf()==this.viewType.valueOf()&&this.isScaleItemInsideNoWorkingInterval(e,n)&&(i+=" dx-gantt-holiday-scaleItem"),i},t.prototype.isScaleItemInsideNoWorkingInterval=function(t,e){for(var n=t.position.x,i=t.position.x+t.size.width,o=0;o<e.length;o++){var r=e[o].position.x,a=e[o].position.x+e[o].size.width;if(n>=r&&i<=a)return!0}return!1},t.prototype.getScaleItemPosition=function(t,e){return new l.Point(t*this.tickSize.width*this.getScaleItemColSpan(e))},t.prototype.getScaleItemSize=function(t){return new i.Size(this.tickSize.width*this.getScaleItemColSpan(t))},t.prototype.getScaleItemColSpan=function(t){return t.valueOf()==this.viewType.valueOf()?1:this.viewType==r.ViewType.TenMinutes?6:this.viewType==r.ViewType.Hours?24:this.viewType==r.ViewType.SixHours?4:this.viewType==r.ViewType.Days?7:this.viewType==r.ViewType.Weeks?4.29:this.viewType==r.ViewType.Months?12:this.viewType==r.ViewType.Quarter?4:this.viewType==r.ViewType.Years?5:1},t.prototype.getTaskWrapperElementInfo=function(t){var e=new a.GridElementInfo;return e.className=this.getTaskWrapperClassName(t),e.setPosition(this.getTaskWrapperPoint(t)),e.setAttribute("task-index",t),e},t.prototype.getTaskWrapperClassName=function(t){var e="dx-gantt-taskWrapper";return this.getTask(t).isMilestone()&&(e="dx-gantt-milestoneWrapper"),this.viewModel.items[t].selected&&(e+=" dx-gantt-selectedTask"),e},t.prototype.getTaskWrapperPoint=function(t){var e=this.getTaskHeight(t),n=t*this.tickSize.height+(this.tickSize.height-e)/2,i=new l.Point(this.getPosByDate(this.getTask(t).start),n);if(this.getTask(t).isMilestone()){var o=this.getTaskHeight(t);i.x-=o/2}return i},t.prototype.getTaskElementInfo=function(t,e){void 0===e&&(e=!1);var n=new a.GridElementInfo,i=this.getTask(t),o=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(t);return i.isMilestone()||(n.size.width=this.getTaskWidth(t),e&&(n.size.height=this.getTaskHeight(t))),n.className=this.getTaskClassName(t,n.size.width),i.color&&(n.style.backgroundColor=i.color,o&&(n.style.borderLeftColor=i.color,n.style.borderRightColor=i.color,n.style.borderTopColor=i.color)),n},t.prototype.getTaskClassName=function(t,e){var n="dx-gantt-task",i=this.getTask(t),o=this.viewModel.parentAutoCalc&&this.viewModel.taskHasChildrenByIndex(t);return i.isMilestone()?n+=" dx-gantt-milestone":e<=this.elementSizeValues.smallTaskWidth&&(n+=" dx-gantt-smallTask"),o&&(n+=this.getAutoCalcParentTaskClassName(i)),n},t.prototype.getAutoCalcParentTaskClassName=function(t){var e=" dx-gantt-parent";return 0==t.progress&&(e+=" dx-gantt-noPrg"),t.progress>=100&&(e+=" dx-gantt-cmpl"),e},t.prototype.getTaskPoint=function(t){var e=this.getTaskWrapperPoint(t);return this.getTask(t).isMilestone()||(e.y+=this.elementSizeValues.taskWrapperTopPadding),e},t.prototype.getTaskSize=function(t){return new i.Size(this.getTaskWidth(t),this.getTaskHeight(t))},t.prototype.getTaskWidth=function(t){var e=this.getTask(t);return e.isMilestone()?this.getTaskHeight(t):Math.max(this.getWidthByDateRange(e.start,e.end),this.minTaskWidth)},t.prototype.getTaskHeight=function(t){var e=this.getTask(t);return e.isMilestone()?this.milestoneWidth:this.viewModel.isTaskToCalculateByChildren(e.id)?this.parentTaskHeight:this.taskHeight},t.prototype.getTask=function(t){return this.viewModel.items[t].task},t.prototype.getTaskProgressElementInfo=function(t){var e=new a.GridElementInfo;return e.className="dx-gantt-tPrg",e.setSize(this.getTaskProgressSize(t)),e},t.prototype.getTaskProgressSize=function(t){return new i.Size(this.getTaskProgressWidth(t),null)},t.prototype.getTaskProgressWidth=function(t){return this.getTaskWidth(t)*this.getTask(t).progress/100},t.prototype.getTaskTextElementInfo=function(t,e){var n=new a.GridElementInfo;if(n.className=this.getTaskTextElementClassName(e),!e){var i=this.getTaskPoint(t).x;i<this.elementSizeValues.outsideTaskTextDefaultWidth&&(n.size.width=i,n.margins.marginLeft=-i)}return n},t.prototype.getTaskTextElementClassName=function(t){var e="dx-gantt-taskTitle";return e+=t?" dx-gantt-titleIn":" dx-gantt-titleOut"},t.prototype.getTaskResourcesWrapperElementInfo=function(t){var e=new a.GridElementInfo,n=this.getTaskSize(t).width;return e.className="dx-gantt-taskResWrapper",e.setPosition(this.getTaskWrapperPoint(t)),e.position.x=e.position.x+n,e},t.prototype.getTaskResourceElementInfo=function(){var t=new a.GridElementInfo;return t.className="dx-gantt-taskRes",t},t.prototype.getSelectionElementInfo=function(t){return this.getRowElementInfo(t,"dx-gantt-sel")},t.prototype.getSelectionPosition=function(t){var e=new l.Point;return e.y=t*this.tickSize.height,e},t.prototype.getSelectionSize=function(){return new i.Size(this.tickSize.width*this.horizontalTickCount,this.tickSize.height)},t.prototype.getHighlightRowInfo=function(t){return this.getRowElementInfo(t,"dx-gantt-altRow")},t.prototype.getRowElementInfo=function(t,e){var n=new a.GridElementInfo;return n.className=e,n.setPosition(this.getSelectionPosition(t)),n.setSize(this.getSelectionSize()),n},t.prototype.getNoWorkingIntervalInfo=function(t){var e=new a.GridElementInfo;return e.className="dx-gantt-nwi",e.setPosition(this.getNoWorkingIntervalPosition(t.start)),e.setSize(this.getNoWorkingIntervalSize(t)),e},t.prototype.getNoWorkingIntervalPosition=function(t){var e=new l.Point;return e.x=this.getPosByDate(t),e},t.prototype.getNoWorkingIntervalSize=function(t){return new i.Size(this.getWidthByDateRange(t.start,t.end),this.getVerticalGridLineHeight())},t.prototype.getVerticalGridLineHeight=function(){return Math.max(this.visibleTaskAreaSize.height-this.scrollBarHeight,this.tickSize.height*this.verticalTickCount)},t.prototype.getConnectorInfo=function(t,e,n,i){for(var o=new Array,r=this.getConnectorPoints(e,n,i),a=0;a<r.length-1;a++)o.push(this.getConnectorLineInfo(t,r[a],r[a+1],0==a||a==r.length-2));return o.push(this.getArrowInfo(t,r,o,e,n)),o},t.prototype.getConnectorLineInfo=function(t,e,n,i){var o=new a.GridElementInfo,r=e.x==n.x;return o.className=this.getConnectorClassName(r),o.setPosition(this.getConnectorPosition(e,n)),o.setSize(this.getConnectorSize(e,n,r,i)),o.setAttribute("dependency-id",t),o},t.prototype.getConnectorClassName=function(e){return e?t.CLASSNAMES.CONNECTOR_VERTICAL:t.CLASSNAMES.CONNECTOR_HORIZONTAL},t.prototype.getConnectorPosition=function(t,e){return new l.Point(Math.min(t.x,e.x),Math.min(t.y,e.y))},t.prototype.getConnectorSize=function(t,e,n,o){var r=new i.Size,a=o?0:1;return n?r.height=Math.abs(e.y-t.y)+a:r.width=Math.abs(e.x-t.x)+a,r},t.prototype.getArrowInfo=function(t,e,n,i,o){var r=new a.GridElementInfo,s=this.findArrowLineInfo(n,i,o),l=this.getArrowPosition(e,i,o);return r.className=this.getArrowClassName(l),r.setPosition(this.getArrowPoint(s,l)),r.setAttribute("dependency-id",t),r},t.prototype.findArrowLineInfo=function(t,e,n){return t[e<n?t.length-1:0]},t.prototype.getArrowPosition=function(t,e,n){var i=t[e<n?t.length-2:1],o=t[e<n?t.length-1:0];return i.x==o.x?i.y>o.y?r.Position.Top:r.Position.Bottom:i.x>o.x?r.Position.Left:r.Position.Right},t.prototype.getArrowClassName=function(t){var e="dx-gantt-arrow";switch(t){case r.Position.Left:e+=" dx-gantt-LA";break;case r.Position.Top:e+=" dx-gantt-TA";break;case r.Position.Right:e+=" dx-gantt-RA";break;case r.Position.Bottom:e+=" dx-gantt-BA"}return e},t.prototype.getArrowPoint=function(t,e){return new l.Point(this.getArrowX(t,e),this.getArrowY(t,e))},t.prototype.getArrowX=function(t,e){switch(e){case r.Position.Left:return t.position.x-this.arrowSize.width/2;case r.Position.Right:return t.position.x+t.size.width-this.arrowSize.width/2;case r.Position.Top:case r.Position.Bottom:return t.position.x-(this.arrowSize.width-this.lineThickness)/2}},t.prototype.getArrowY=function(t,e){switch(e){case r.Position.Top:return t.position.y-this.arrowSize.height/2;case r.Position.Bottom:return t.position.y+t.size.height-this.arrowSize.height/2;case r.Position.Left:case r.Position.Right:return t.position.y-(this.arrowSize.height-this.lineThickness)/2}},t.prototype.getPosByDate=function(t){return this.getWidthByDateRange(this.range.start,t)},t.prototype.getWidthByDateRange=function(t,e){return this.getRangeTickCount(t,e)*this.tickSize.width},t.prototype.getRangeTickCount=function(t,e){return this.viewType==r.ViewType.Months?this.getRangeTickCountInMonthsViewType(t,e):this.viewType==r.ViewType.Quarter?this.getRangeTickCountInQuarterViewType(t,e):(e.getTime()-t.getTime())/this.tickTimeSpan},t.prototype.getRangeTickCountInMonthsViewType=function(t,e){var n=new Date(t.getFullYear(),t.getMonth(),1),i=new Date(e.getFullYear(),e.getMonth(),1);return s.DateUtils.getOffsetInMonths(n,i)+(e.getTime()-i.getTime()-(t.getTime()-n.getTime()))/s.DateUtils.msPerMonth},t.prototype.getRangeTickCountInQuarterViewType=function(t,e){var n=new Date(t.getFullYear(),3*Math.floor(t.getMonth()/3),1),i=new Date(e.getFullYear(),3*Math.floor(e.getMonth()/3),1);return s.DateUtils.getOffsetInQuarters(n,i)+(e.getTime()-i.getTime()-(t.getTime()-n.getTime()))/(3*s.DateUtils.msPerMonth)},t.prototype.getDateByPos=function(t){var e=t/this.tickSize.width,n=new Date(this.range.start);if(this.viewType==r.ViewType.Months||this.viewType==r.ViewType.Quarter){var i=Math.floor(e);n=new Date(n.setMonth(n.getMonth()+(this.viewType==r.ViewType.Months?i:3*i))),e=(t-this.getPosByDate(n))/this.tickSize.width}var o=e*this.tickTimeSpan+n.getTime(),a=new Date;return a.setTime(o),a},t.prototype.getTotalTickCount=function(){return this.getRangeTickCount(this.range.start,this.range.end)},t.prototype.getConnectorPoints=function(t,e,n){switch(n){case u.DependencyType.FS:return this.getFinishToStartConnectorPoints(t,e);case u.DependencyType.SF:return this.getStartToFinishConnectorPoints(t,e);case u.DependencyType.SS:return this.getStartToStartConnectorPoints(t,e);case u.DependencyType.FF:return this.getFinishToFinishConnectorPoints(t,e);default:return new Array}},t.prototype.getFinishToStartConnectorPoints=function(t,e){return t<e?this.getTask(t).end<=this.getTask(e).start?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide(t,e,!1):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(t,e,!1):this.getTask(t).end<=this.getTask(e).start?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide(e,t,!1):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(e,t,!0)},t.prototype.getFinishToFinishConnectorPoints=function(t,e){return t<e?this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(t,e):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide(e,t)},t.prototype.getStartToStartConnectorPoints=function(t,e){return t<e?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(t,e):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide(e,t)},t.prototype.getStartToFinishConnectorPoints=function(t,e){return t<e?this.getTask(t).start>=this.getTask(e).end?this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide(t,e,!0):this.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide(t,e,!1):this.getTask(t).start>=this.getTask(e).end?this.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide(e,t,!0):this.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide(e,t,!0)},t.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskTopSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskRightCenter(o,t),s=this.getTask(e).isMilestone(),u=this.getTaskTopCenter(r,e),c=n?this.getTaskWidth(e)-this.minLineLength:this.minLineLength;return i.push(new l.Point(Math.floor(a.x),Math.floor(a.y))),i.push(new l.Point(Math.floor(s?u.x:r.x+c),Math.floor(i[0].y))),i.push(new l.Point(Math.floor(i[1].x),Math.floor(u.y))),i},t.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskRightSide=function(t,e){var n=new Array,i=this.getTaskPoint(t),o=this.getTaskPoint(e),r=this.getTaskRightCenter(i,t),a=this.getTaskRightCenter(o,e);return n.push(new l.Point(Math.floor(r.x),Math.floor(r.y))),n.push(new l.Point(Math.floor(Math.max(r.x,a.x)+this.minLineLength),Math.floor(n[0].y))),n.push(new l.Point(Math.floor(n[1].x),Math.floor(a.y))),n.push(new l.Point(Math.floor(a.x),Math.floor(a.y))),n},t.prototype.getConnectorPoints_FromTopTaskRightSide_ToBottomTaskLeftSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskRightCenter(o,t),s=this.getTaskBottomCenter(o,t),u=this.getTaskLeftCenter(r,e),c=this.getTaskTopCenter(r,e);return i.push(new l.Point(Math.floor(a.x),Math.floor(a.y))),i.push(new l.Point(Math.floor(i[0].x+this.minLineLength),Math.floor(i[0].y))),i.push(new l.Point(Math.floor(i[1].x),Math.floor(n?s.y+this.minConnectorSpaceFromTask:c.y-this.minConnectorSpaceFromTask))),i.push(new l.Point(Math.floor(u.x-this.minLineLength),Math.floor(i[2].y))),i.push(new l.Point(Math.floor(i[3].x),Math.floor(u.y))),i.push(new l.Point(Math.floor(u.x),Math.floor(u.y))),i},t.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskRightSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskBottomCenter(o,t),s=this.getTask(t).isMilestone(),u=this.getTaskRightCenter(r,e),c=n?this.getTaskWidth(t)-this.minLineLength:this.minLineLength;return i.push(new l.Point(Math.floor(s?a.x:o.x+c),Math.floor(a.y))),i.push(new l.Point(Math.floor(i[0].x),Math.floor(u.y))),i.push(new l.Point(Math.floor(u.x),Math.floor(u.y))),i},t.prototype.getConnectorPoints_FromTopTaskBottomSide_ToBottomTaskLeftSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskBottomCenter(o,t),s=this.getTask(t).isMilestone(),u=this.getTaskLeftCenter(r,e),c=n?this.getTaskWidth(t)-this.minLineLength:this.minLineLength;return i.push(new l.Point(Math.floor(s?a.x:o.x+c),Math.floor(a.y))),i.push(new l.Point(Math.floor(i[0].x),Math.floor(u.y))),i.push(new l.Point(Math.floor(u.x),Math.floor(u.y))),i},t.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskTopSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskLeftCenter(o,t),s=this.getTaskTopCenter(r,e),u=this.getTask(e).isMilestone(),c=n?this.getTaskWidth(e)-this.minLineLength:this.minLineLength;return i.push(new l.Point(Math.floor(a.x),Math.floor(a.y))),i.push(new l.Point(Math.floor(u?s.x:r.x+c),Math.floor(i[0].y))),i.push(new l.Point(Math.floor(i[1].x),Math.floor(s.y))),i},t.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskRightSide=function(t,e,n){var i=new Array,o=this.getTaskPoint(t),r=this.getTaskPoint(e),a=this.getTaskLeftCenter(o,t),s=this.getTaskBottomCenter(o,t),u=this.getTaskRightCenter(r,e),c=this.getTaskTopCenter(r,e);return i.push(new l.Point(Math.floor(a.x),a.y)),i.push(new l.Point(Math.floor(i[0].x-this.minLineLength),i[0].y)),i.push(new l.Point(Math.floor(i[1].x),Math.floor(n?s.y+this.minConnectorSpaceFromTask:c.y-this.minConnectorSpaceFromTask))),i.push(new l.Point(Math.floor(u.x+this.minLineLength),Math.floor(i[2].y))),i.push(new l.Point(Math.floor(i[3].x),Math.floor(u.y))),i.push(new l.Point(Math.floor(u.x),Math.floor(u.y))),i},t.prototype.getConnectorPoints_FromTopTaskLeftSide_ToBottomTaskLeftSide=function(t,e){var n=new Array,i=this.getTaskPoint(t),o=this.getTaskPoint(e),r=this.getTaskLeftCenter(i,t),a=this.getTaskLeftCenter(o,e);return n.push(new l.Point(Math.floor(r.x),Math.floor(r.y))),n.push(new l.Point(Math.floor(Math.min(r.x,a.x)-this.minLineLength),Math.floor(n[0].y))),n.push(new l.Point(Math.floor(n[1].x),Math.floor(a.y))),n.push(new l.Point(Math.floor(a.x),Math.floor(a.y))),n},t.prototype.getTaskLeftCenter=function(t,e){return new l.Point(t.x-this.getTaskEdgeCorrection(e),t.y+this.getTaskHeight(e)/2)},t.prototype.getTaskRightCenter=function(t,e){return new l.Point(t.x+this.getTaskWidth(e)+this.getTaskEdgeCorrection(e),t.y+this.getTaskHeight(e)/2)},t.prototype.getTaskTopCenter=function(t,e){return new l.Point(t.x+this.getTaskWidth(e)/2,t.y-this.getTaskEdgeCorrection(e))},t.prototype.getTaskBottomCenter=function(t,e){return new l.Point(t.x+this.getTaskWidth(e)/2,t.y+this.getTaskHeight(e)+this.getTaskEdgeCorrection(e))},t.prototype.getTaskEdgeCorrection=function(t){return this.viewModel.items[t].task.isMilestone()?this.getTaskHeight(t)*(Math.sqrt(2)-1)/2:0},t.prototype.getRenderedRowColumnIndices=function(t,e){for(var n=e?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width,i=e?this.tickSize.height:this.tickSize.width,o=e?this.verticalTickCount:this.horizontalTickCount,r=this.getFirstVisibleGridCellIndex(t,i),a=this.getLastVisibleGridCellIndex(t,i,n,o),s=new Array,l=r;l<=a;l++)s.push(l);return s},t.prototype.getRenderedScaleItemIndices=function(t,e){for(var n=this.getScaleItemColSpan(t),i=Math.floor(e[0]/n),o=Math.floor(e[e.length-1]/n),r=new Array,a=i;a<=o;a++)r.push(a);return r},t.prototype.getFirstVisibleGridCellIndex=function(t,e){var n=Math.floor(t/e);return n=Math.max(n-10,0)},t.prototype.getLastVisibleGridCellIndex=function(t,e,n,i){var o=Math.floor((t+n)/e);return o=Math.min(o+10,i-1)},t.prototype.createTileToConnectorLinesMap=function(){this.tileToDependencyMap=[];for(var t=0;t<this.viewModel.items.length;t++)for(var e=0;e<this.viewModel.items[t].dependencies.length;e++)this.createConnecotInfo(this.viewModel.items[t].dependencies[e],this.viewModel.items[t].visibleIndex)},t.prototype.updateTileToConnectorLinesMap=function(t){this.tileToDependencyMap.forEach((function(e,n,i){i[n]=e.filter((function(e){return e.attr["dependency-id"]!=t}))}));var e=[],n=this.viewModel.items.filter((function(e){return e.dependencies.filter((function(e){return e.id==t})).length>0}))[0];if(n){var i=n.dependencies.filter((function(e){return e.id===t}))[0];e=this.createConnecotInfo(i,n.visibleIndex)}return e},t.prototype.createConnecotInfo=function(t,e){var n=this,i=t.predecessor.visibleIndex,o=t.type,r=t.id,a=this.getConnectorInfo(r,i,e,o);return a.forEach((function(t){n.addElementInfoToTileMap(t,n.tileToDependencyMap,!0)})),a},t.prototype.createTileToNonWorkingIntervalsMap=function(){this.tileToNoWorkingIntervalsMap=[];for(var t=0;t<this.viewModel.noWorkingIntervals.length;t++){var e=this.getAdjustedNoWorkingInterval(this.viewModel.noWorkingIntervals[t]);if(e){var n=this.getNoWorkingIntervalInfo(e);this.addElementInfoToTileMap(n,this.tileToNoWorkingIntervalsMap,!1)}}},t.prototype.getAdjustedNoWorkingInterval=function(t){return t.end.getTime()-t.start.getTime()<this.tickTimeSpan-1?null:new o.DateRange(s.DateUtils.getNearestScaleTickDate(t.start,this.range,this.tickTimeSpan,this.viewType),s.DateUtils.getNearestScaleTickDate(t.end,this.range,this.tickTimeSpan,this.viewType))},t.prototype.addElementInfoToTileMap=function(t,e,n){for(var i=n?t.position.y:t.position.x,o=n?t.size.height:t.size.width,r=2*(n?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width),a=Math.floor(i/r),s=Math.floor((i+o)/r),l=a;l<=s;l++)e[l]||(e[l]=new Array),e[l].push(t)},t.prototype.getRenderedConnectorLines=function(t){return this.getElementsInRenderedTiles(this.tileToDependencyMap,!0,t)},t.prototype.getRenderedNoWorkingIntervals=function(t){return this.getElementsInRenderedTiles(this.tileToNoWorkingIntervalsMap,!1,t)},t.prototype.getRenderedStripLines=function(t){var e=new Array,n=t.stripLines.map((function(t){return t.clone()}));t.showCurrentTime&&n.push(new c.StripLine(new Date,null,t.currentTimeTitle,t.currentTimeCssClass,!0));for(var i=0,o=void 0;o=n[i];i++){var r=s.DateUtils.parse(o.start),l=o.end?s.DateUtils.parse(o.end):null;if(r>=this.range.start&&r<=this.range.end||l&&l>=this.range.start&&l<=this.range.end){var u=r>this.range.start?r:this.range.start,d=new a.GridElementInfo;d.size.height=this.getVerticalGridLineHeight(),d.position.x=this.getPosByDate(u),d.size.width=l?this.getWidthByDateRange(u,l<this.range.end?l:this.range.end):0,d.className=o.isCurrent?"dx-gantt-tc":l?"dx-gantt-ti":"dx-gantt-tm",d.className+=o.cssClass?" "+o.cssClass:"",d.attr.title=o.title,e.push(d)}}return e},t.prototype.getElementsInRenderedTiles=function(t,e,n){var i=new Array,o=e?this.visibleTaskAreaSize.height:this.visibleTaskAreaSize.width;if(o>0)for(var r=Math.floor(n/(2*o)),a=Math.floor((n+o)/(2*o)),s=r;s<=a;s++)t[s]&&t[s].forEach((function(t){-1==i.indexOf(t)&&i.push(t)}));return i},t.CLASSNAMES={CONNECTOR_VERTICAL:"dx-gantt-conn-v",CONNECTOR_HORIZONTAL:"dx-gantt-conn-h"},t}();e.GridLayoutCalculator=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(38),r=n(7),a=function(){function t(t,e){this.viewModel=t,this.dispatcher=e}return t.prototype.getErrorCallback=function(){return this.viewModel.getDataUpdateErrorCallback()},t}();e.BaseManipulator=a;var s=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.title=new u(e,n),i.description=new c(e,n),i.progress=new d(e,n),i.start=new h(e,n),i.end=new f(e,n),i.move=new p(e,n),i.color=new m(e,n),i}return i.__extends(e,t),e}(a);e.TaskPropertiesManipulator=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setValue=function(t,e){var n=this.viewModel.tasks.getItemById(t),i=new o.HistoryItemState(t,this.getPropertyValue(n));this.setPropertyValue(n,e);var r=this.viewModel.findItem(t);return r&&this.viewModel.owner.recreateTaskElement(r.visibleIndex),i},e.prototype.restoreValue=function(t){if(t){var e=this.viewModel.tasks.getItemById(t.id);this.setPropertyValue(e,t.value);var n=this.viewModel.findItem(t.id);n&&this.viewModel.owner.recreateTaskElement(n.visibleIndex)}},e}(a);e.TaskPropertyManipulator=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.title},e.prototype.setPropertyValue=function(t,e){t.title=e,this.dispatcher.notifyTaskTitleChanged(t.id,e,this.getErrorCallback())},e}(l),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.description},e.prototype.setPropertyValue=function(t,e){t.description=e,this.dispatcher.notifyTaskDescriptionChanged(t.id,e,this.getErrorCallback())},e}(l),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.progress},e.prototype.setPropertyValue=function(t,e){e=e<0?0:e>100?100:e,t.progress=e,this.dispatcher.notifyTaskProgressChanged(t.id,e,this.getErrorCallback())},e}(l),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.start},e.prototype.setPropertyValue=function(t,e){t.start=e,this.dispatcher.notifyTaskStartChanged(t.id,e,this.getErrorCallback())},e}(l),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.end},e.prototype.setPropertyValue=function(t,e){t.end=e,this.dispatcher.notifyTaskEndChanged(t.id,e,this.getErrorCallback())},e}(l),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return new r.DateRange(t.start,t.end)},e.prototype.setPropertyValue=function(t,e){t.start=e.start,t.end=e.end,this.dispatcher.notifyTaskStartChanged(t.id,e.start,this.getErrorCallback()),this.dispatcher.notifyTaskEndChanged(t.id,e.end,this.getErrorCallback())},e}(l),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.color},e.prototype.setPropertyValue=function(t,e){t.color=e,this.dispatcher.notifyTaskColorChanged(t.id,e,this.getErrorCallback())},e}(l)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(1),r=function(){function t(t){this.handler=t}return t.prototype.start=function(){},t.prototype.finish=function(){},t.prototype.getRelativePos=function(t){var e=o.DomUtils.getAbsolutePositionX(this.handler.control.taskArea),n=o.DomUtils.getAbsolutePositionY(this.handler.control.taskArea);return new i.Point(t.x-e,t.y-n)},t}();e.HandlerStateBase=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(10),r=function(t){function e(e,n,i,o){var r=t.call(this,e)||this;return r.predecessorId=n,r.successorId=i,r.type=o,r}return i.__extends(e,t),e.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.insertDependency(this.predecessorId,this.successorId,this.type,this.dependency?this.dependency.internalId:null)},e.prototype.undo=function(){this.modelManipulator.dependency.removeDependency(this.dependency.internalId)},e}(o.HistoryItem);e.InsertDependencyHistoryItem=r;var a=function(t){function e(e,n){var i=t.call(this,e)||this;return i.dependencyId=n,i}return i.__extends(e,t),e.prototype.redo=function(){this.dependency=this.modelManipulator.dependency.removeDependency(this.dependencyId)},e.prototype.undo=function(){this.modelManipulator.dependency.insertDependency(this.dependency.predecessorId,this.dependency.successorId,this.dependency.type,this.dependencyId)},e}(o.HistoryItem);e.RemoveDependencyHistoryItem=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(21);!function(t){t[t.TaskDelete=0]="TaskDelete",t[t.DependencyDelete=1]="DependencyDelete",t[t.ResourcesDelete=2]="ResourcesDelete"}(e.ConfirmationType||(e.ConfirmationType={}));var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.applyParameters=function(t,e){return this.history.beginTransaction(),e.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([]),!0},e.prototype.createParameters=function(t){return t},e.prototype.getDialogName=function(){return"Confirmation"},e}(o.DialogBase);e.ConfirmationDialog=r;var a=function(t){function e(e,n){var i=t.call(this)||this;return i.type=e,i.callback=n,i}return i.__extends(e,t),e.prototype.clone=function(){var t=new e(this.type,this.callback);return t.message=this.message,t},e}(o.DialogParametersBase);e.ConfirmationDialogParameters=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.executeInternal=function(t){var e=this,n=this.createParameters(t),i=n.clone();return this.control.ganttOwner.showDialog(this.getDialogName(),n,(function(t){t&&e.applyParameters(t,i)}),(function(){e.afterClosing()})),!0},e.prototype.applyParameters=function(t,e){return!1},e.prototype.afterClosing=function(){},e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e}(o.CommandBase);e.DialogBase=r;var a=function(){};e.DialogParametersBase=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(47),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.createItem=function(){return new r.Resource},e}(o.CollectionBase);e.ResourceCollection=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.width=null,this.height=null,void 0!==t&&(this.width=t),void 0!==e&&(this.height=e)};e.Size=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseDoubleClick=function(t){},e.prototype.onMouseDown=function(t){},e.prototype.onMouseUp=function(t){},e.prototype.onMouseMove=function(t){},e.prototype.onMouseWheel=function(t){},e}(n(18).HandlerStateBase);e.MouseHandlerStateBase=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseDown=function(t){this.currentPosition=new o.Point(r.DomUtils.getEventX(t),r.DomUtils.getEventY(t)),null!=this.handler.control.taskEditController.dependencyId&&this.handler.control.selectDependency(null)},e.prototype.onMouseUp=function(t){this.onMouseUpInternal(t),this.handler.switchToDefaultState()},e.prototype.onMouseMove=function(t){t.preventDefault();var e=new o.Point(r.DomUtils.getEventX(t),r.DomUtils.getEventY(t));this.onMouseMoveInternal(e),this.currentPosition=e},e.prototype.onMouseUpInternal=function(t){},e.prototype.onMouseMoveInternal=function(t){},e}(n(24).MouseHandlerStateBase);e.MouseHandlerDragBaseState=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(41),r=n(4),a=n(14),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){this.currentPosition=new r.Point(a.TouchUIHelper.getEventX(t),a.TouchUIHelper.getEventY(t)),null!=this.handler.control.taskEditController.dependencyId&&this.handler.control.selectDependency(null)},e.prototype.onTouchEnd=function(t){this.onTouchEndInternal(t),this.handler.switchToDefaultState()},e.prototype.onTouchMove=function(t){t.preventDefault();var e=new r.Point(a.TouchUIHelper.getEventX(t),a.TouchUIHelper.getEventY(t));this.onTouchMoveInternal(e),this.currentPosition=e},e.prototype.onTouchEndInternal=function(t){},e.prototype.onTouchMoveInternal=function(t){},e}(o.TouchHandlerStateBase);e.TouchHandlerDragBaseState=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(10),r=function(t){function e(e,n){var i=t.call(this,e)||this;return i.text=n,i}return i.__extends(e,t),e.prototype.redo=function(){this.resource=this.modelManipulator.resource.create(this.text,this.resource?this.resource.internalId:null)},e.prototype.undo=function(){this.modelManipulator.resource.remove(this.resource.internalId)},e}(o.HistoryItem);e.CreateResourceHistoryItem=r;var a=function(t){function e(e,n){var i=t.call(this)||this;return i.modelManipulator=e,i.resourceId=n,i}return i.__extends(e,t),e.prototype.redo=function(){t.prototype.redo.call(this),this.resource=this.modelManipulator.resource.remove(this.resourceId)},e.prototype.undo=function(){var e=this;this.modelManipulator.resource.create(this.resource.text,this.resourceId,(function(){e.resource.color&&e.modelManipulator.resource.properties.color.setValue(e.resource.internalId,e.resource.color),t.prototype.undo.call(e)}))},e.prototype.undoItemsQuery=function(){this.modelManipulator.resource.create(this.resource.text,this.resourceId,(function(){})),this.resource.color&&this.modelManipulator.resource.properties.color.setValue(this.resource.internalId,this.resource.color),t.prototype.undo.call(this)},e}(o.CompositionHistoryItem);e.RemoveResourceHistoryItem=a;var s=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.resourceId=n,o.taskId=i,o}return i.__extends(e,t),e.prototype.redo=function(){this.assignment=this.modelManipulator.resource.assign(this.resourceId,this.taskId,this.assignment?this.assignment.internalId:null)},e.prototype.undo=function(){this.modelManipulator.resource.deassig(this.assignment.internalId)},e}(o.HistoryItem);e.AssignResourceHistoryItem=s;var l=function(t){function e(e,n){var i=t.call(this,e)||this;return i.assignmentId=n,i}return i.__extends(e,t),e.prototype.redo=function(){this.assignment=this.modelManipulator.resource.deassig(this.assignmentId)},e.prototype.undo=function(){this.modelManipulator.resource.assign(this.assignment.resourceId,this.assignment.taskId,this.assignmentId)},e}(o.HistoryItem);e.DeassignResourceHistoryItem=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.taskId=n,o.newValue=i,o}return i.__extends(e,t),e.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.taskId,this.newValue)},e.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},e.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},e}(n(10).HistoryItem);e.TaskPropertiesHistoryItemBase=o;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.title},e}(o);e.TaskTitleHistoryItem=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.description},e}(o);e.TaskDesriptionHistoryItem=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.progress},e}(o);e.TaskProgressHistoryItem=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.start},e}(o);e.TaskStartHistoryItem=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.end},e}(o);e.TaskEndHistoryItem=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.move},e}(o);e.TaskMoveHistoryItem=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.task.properties.color},e}(o);e.TaskColorHistoryItem=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this._hour=0,this._min=0,this._sec=0,this._msec=0,this._fullmsec=0,this.hour=t,this.min=e,this.sec=n,this.msec=i}return Object.defineProperty(t.prototype,"hour",{get:function(){return this._hour},set:function(t){t>=0&&t<24&&(this._hour=t,this.updateFullMilleconds())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){t>=0&&t<60&&(this._min=t,this.updateFullMilleconds())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sec",{get:function(){return this._sec},set:function(t){t>=0&&t<60&&(this._sec=t,this.updateFullMilleconds())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"msec",{get:function(){return this._msec},set:function(t){t>=0&&t<1e3&&(this._msec=t,this.updateFullMilleconds())},enumerable:!0,configurable:!0}),t.prototype.updateFullMilleconds=function(){var t=60*(60*this._hour+this._min)+this._sec;this._fullmsec=1e3*t+this._msec},t.prototype.getTimeInMilleconds=function(){return this._fullmsec},t}();e.Time=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=function(){function t(t,e){i.DateTimeUtils.caclTimeDifference(t,e)>=0?(this._start=t,this._end=e):(this._start=e,this._end=t)}return Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(t){t&&i.DateTimeUtils.caclTimeDifference(t,this._end)>=0&&(this._start=t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._end},set:function(t){t&&i.DateTimeUtils.caclTimeDifference(this._start,t)>=0&&(this._end=t)},enumerable:!0,configurable:!0}),t.prototype.isTimeInRange=function(t){return i.DateTimeUtils.caclTimeDifference(this._start,t)>=0&&i.DateTimeUtils.caclTimeDifference(t,this._end)>=0},t.prototype.hasIntersect=function(t){return this.isTimeInRange(t.start)||this.isTimeInRange(t.end)||t.isTimeInRange(this.start)||t.isTimeInRange(this.end)},t.prototype.concatWith=function(t){return!!this.hasIntersect(t)&&(this.start=i.DateTimeUtils.getMinTime(this.start,t.start),this.end=i.DateTimeUtils.getMaxTime(this.end,t.end),!0)},t}();e.TimeRange=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.First=0]="First",t[t.Second=1]="Second",t[t.Third=2]="Third",t[t.Forth=3]="Forth",t[t.Last=4]="Last"}(e.DayOfWeekMonthlyOccurrence||(e.DayOfWeekMonthlyOccurrence={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=n(33),r=n(60),a=n(61),s=n(63),l=function(){function t(){}return t.createRecurrenceByType=function(t){if(!t)return null;switch(t.toLowerCase()){case"daily":return new o.Daily;case"weekly":return new r.Weekly;case"monthly":return new a.Monthly;case"yearly":return new s.Yearly}return null},t.createRecurrenceFromObject=function(t){if(!t)return null;var e=this.createRecurrenceByType(t.type);return e&&e.assignFromObject(t),e},t.getEnumValue=function(t,e){if(!i.JsonUtils.isExists(t[e]))return null;var n=parseInt(e);return isNaN(n)?t[e]:n},t}();e.RecurrenceFactory=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(3),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.checkDate=function(t){return!0},e.prototype.checkInterval=function(t){return r.DateTimeUtils.getDaysBetween(this.start,t)%this.interval==0},e.prototype.calculatePointByInterval=function(t){var e=this.interval;return this.isRecurrencePoint(t)||(e-=r.DateTimeUtils.getDaysBetween(this.start,t)%this.interval),r.DateTimeUtils.addDays(t,e)},e.prototype.calculateNearestPoint=function(t){return r.DateTimeUtils.addDays(t,1)},e}(o.RecurrenceBase);e.Daily=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=n(1),r=function(){function t(){}return t.getDaysInMonth=function(t,e){return new Date(e,t+1,0).getDate()},t.getOffsetInMonths=function(t,e){return 12*(e.getFullYear()-t.getFullYear())+e.getMonth()-t.getMonth()},t.getOffsetInQuarters=function(t,e){return 4*(e.getFullYear()-t.getFullYear())+Math.floor(e.getMonth()/3)-Math.floor(t.getMonth()/3)},t.getNearestScaleTickDate=function(t,e,n,i){var o=new Date,r=e.start.getTime(),a=e.end.getTime();if(o.setTime(t.getTime()),t.getTime()<r)o.setTime(r);else if(t.getTime()>a)o.setTime(a);else if(this.needCorrectDate(t,r,n,i)){var s=this.getNearestLeftTickTime(t,r,n,i),l=this.getNextTickTime(s,n,i);Math.abs(t.getTime()-s)>Math.abs(t.getTime()-l)?o.setTime(l):o.setTime(s)}return o},t.needCorrectDate=function(t,e,n,o){return o==i.ViewType.Months?t.getTime()!==new Date(t.getFullYear(),t.getMonth(),1).getTime():(t.getTime()-e)%n!==0},t.getNearestLeftTickTime=function(t,e,n,o){return o==i.ViewType.Months?new Date(t.getFullYear(),t.getMonth(),1).getTime():e+Math.floor((t.getTime()-e)/n)*n},t.getNextTickTime=function(t,e,n){if(n==i.ViewType.Months){var o=new Date;return o.setTime(t),o.setMonth(o.getMonth()+1),o.getTime()}return t+e},t.adjustStartDateByViewType=function(t,e,n){switch(void 0===n&&(n=0),e){case i.ViewType.TenMinutes:return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours());case i.ViewType.SixHours:case i.ViewType.Hours:return new Date(t.getFullYear(),t.getMonth(),t.getDate());case i.ViewType.Days:case i.ViewType.Weeks:return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay()+n);case i.ViewType.Months:case i.ViewType.Quarter:case i.ViewType.Years:return new Date(t.getFullYear(),0,1);default:return new Date}},t.adjustEndDateByViewType=function(t,e,n){switch(void 0===n&&(n=0),e){case i.ViewType.TenMinutes:return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours()+1);case i.ViewType.SixHours:case i.ViewType.Hours:return new Date(t.getFullYear(),t.getMonth(),t.getDate()+1);case i.ViewType.Days:case i.ViewType.Weeks:return new Date(t.getFullYear(),t.getMonth(),t.getDate()+7-t.getDay()+n);case i.ViewType.Months:case i.ViewType.Quarter:case i.ViewType.Years:return new Date(t.getFullYear()+1,0,1);default:return new Date}},t.roundStartDate=function(t,e){switch(e){case i.ViewType.TenMinutes:case i.ViewType.Hours:return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours()-1);case i.ViewType.SixHours:case i.ViewType.Days:return new Date(t.getFullYear(),t.getMonth(),t.getDate()-1);case i.ViewType.Weeks:return new Date(t.getFullYear(),t.getMonth(),t.getDate()-t.getDay());case i.ViewType.Months:return new Date(t.getFullYear(),t.getMonth()-1);case i.ViewType.Quarter:case i.ViewType.Years:return new Date(t.getFullYear()-1,0,1);default:return new Date}},t.getTickTimeSpan=function(e){switch(e){case i.ViewType.TenMinutes:return t.msPerHour/6;case i.ViewType.Hours:return t.msPerHour;case i.ViewType.SixHours:return 6*t.msPerHour;case i.ViewType.Days:return t.msPerDay;case i.ViewType.Weeks:return t.msPerWeek;case i.ViewType.Months:return t.msPerMonth;case i.ViewType.Quarter:return 3*t.msPerMonth;case i.ViewType.Years:return 12*t.msPerMonth}},t.parse=function(t){return"function"===typeof t?new Date(t()):new Date(t)},t.msPerHour=36e5,t.msPerDay=24*t.msPerHour,t.msPerWeek=7*t.msPerDay,t.msPerMonth=30*t.msPerDay,t.ViewTypeToScaleMap=function(){var t={};return t[i.ViewType.TenMinutes]=i.ViewType.Hours,t[i.ViewType.Hours]=i.ViewType.Days,t[i.ViewType.SixHours]=i.ViewType.Days,t[i.ViewType.Days]=i.ViewType.Weeks,t[i.ViewType.Weeks]=i.ViewType.Months,t[i.ViewType.Months]=i.ViewType.Years,t[i.ViewType.Quarter]=i.ViewType.Years,t[i.ViewType.Years]=i.ViewType.FiveYears,t}(),t}();e.DateUtils=r;var a=function(){function t(t){this.longestAbbrMonthName=null,this.longestMonthName=null,this.longestAbbrDayName=null;var e=document.createElement("canvas");this.textMeasureContext=e.getContext("2d"),this.cultureInfo=t}return t.prototype.setFont=function(t){var e=o.DomUtils.getCurrentStyle(t),n=e.font?e.font:e.fontStyle+" "+e.fontVariant+" "+e.fontWeight+" "+e.fontSize+" / "+e.lineHeight+" "+e.fontFamily;this.textMeasureContext.font=n},t.prototype.setSettings=function(t,e,n){this.startTime=t,this.viewType=e,this.modelItems=n},t.prototype.getScaleItemStartDate=function(t,e){var n=new Date(this.startTime);switch(e){case i.ViewType.TenMinutes:n.setTime(this.startTime+t*r.msPerHour/6);break;case i.ViewType.Hours:n.setTime(this.startTime+t*r.msPerHour);break;case i.ViewType.SixHours:n.setTime(this.startTime+t*r.msPerHour*6);break;case i.ViewType.Days:n.setTime(this.startTime+t*r.msPerDay);break;case i.ViewType.Weeks:n.setTime(this.startTime+t*r.msPerWeek);break;case i.ViewType.Months:n.setMonth(n.getMonth()+t);break;case i.ViewType.Quarter:n.setMonth(n.getMonth()+3*t);break;case i.ViewType.Years:n.setFullYear(n.getFullYear()+t);break;case i.ViewType.FiveYears:n.setFullYear(n.getFullYear()+5*t)}return n},t.prototype.getScaleItemText=function(t,e){var n=this.getScaleItemStartDate(t,e),o=this.viewType.valueOf()==e.valueOf();switch(e){case i.ViewType.TenMinutes:return this.getTenMinutesScaleItemText(n);case i.ViewType.Hours:case i.ViewType.SixHours:return this.getHoursScaleItemText(n);case i.ViewType.Days:return this.getDaysScaleItemText(n,o);case i.ViewType.Weeks:return this.getWeeksScaleItemText(n,o);case i.ViewType.Months:return this.getMonthsScaleItemText(n,o);case i.ViewType.Quarter:return this.getQuarterScaleItemText(n,o);case i.ViewType.Years:return this.getYearsScaleItemText(n);case i.ViewType.FiveYears:return this.getFiveYearsScaleItemText(n)}},t.prototype.getTenMinutesScaleItemText=function(t){var e=t.getMinutes()+1;return(10*Math.ceil(e/10)).toString()},t.prototype.getThirtyMinutesScaleItemText=function(t){return t.getMinutes()<30?"30":"60"},t.prototype.getHoursScaleItemText=function(t){var e=t.getHours(),n=this.getHourDisplayText(e),i=e<12?this.getAmText():this.getPmText();return this.getHoursScaleItemTextCore(n,i)},t.prototype.getDaysScaleItemText=function(t,e){return this.getDayTotalText(t,!0,e,e,!e)},t.prototype.getWeeksScaleItemText=function(t,e){var n=new Date(t.getTime()+r.msPerWeek-r.msPerDay);return this.getWeeksScaleItemTextCore(this.getDayTotalText(t,e,!0,e,!e),this.getDayTotalText(n,e,!0,e,!e))},t.prototype.getMonthsScaleItemText=function(t,e){var n=this.getMonthNames(),i=e?"":t.getFullYear().toString();return this.getMonthsScaleItemTextCore(n[t.getMonth()],i)},t.prototype.getQuarterScaleItemText=function(t,e){var n=this.getQuarterNames(),i=e?"":t.getFullYear().toString();return this.getMonthsScaleItemTextCore(n[Math.floor(t.getMonth()/3)],i)},t.prototype.getYearsScaleItemText=function(t){return t.getFullYear().toString()},t.prototype.getFiveYearsScaleItemText=function(t){return t.getFullYear().toString()+" - "+(t.getFullYear()+4).toString()},t.prototype.getHourDisplayText=function(t){return this.hasAmPm()?(0==t?12:t<=12?t:t-12).toString():t<10?"0"+t:t.toString()},t.prototype.getDayTotalText=function(t,e,n,i,o){var r=i?this.getAbbrMonthNames():this.getMonthNames(),a=n?this.getAbbrDayNames():this.getDayNames(),s=e?a[t.getDay()]:"",l=t.getDate(),u=r[t.getMonth()],c=o?t.getFullYear().toString():"";return this.getDayTotalTextCore(s,l.toString(),u,c)},t.prototype.getTaskText=function(t){var e=this.modelItems[t];return e?e.task.title:""},t.prototype.getTaskVisibility=function(t){var e=this.modelItems[t];return!!e&&e.getVisible()},t.prototype.hasAmPm=function(){return this.getAmText().length>0||this.getPmText().length>0},t.prototype.getScaleItemTextTemplate=function(t){switch(t){case i.ViewType.TenMinutes:return"00";case i.ViewType.Hours:case i.ViewType.SixHours:return this.getHoursScaleItemTextCore("00",this.getAmText());case i.ViewType.Days:return this.getDayTextTemplate();case i.ViewType.Weeks:return this.getWeekTextTemplate();case i.ViewType.Months:return this.getMonthsScaleItemTextCore(this.getLongestMonthName(),"");case i.ViewType.Quarter:return"Q4";case i.ViewType.Years:return"0000"}},t.prototype.getDayTextTemplate=function(){return this.getDayTotalTextCore(this.getLongestAbbrDayName(),"00",this.getLongestAbbrMonthName(),"")},t.prototype.getWeekTextTemplate=function(){var t=this.getDayTextTemplate();return this.getWeeksScaleItemTextCore(t,t)},t.prototype.getHoursScaleItemTextCore=function(t,e){return t+":00"+(this.hasAmPm()?" "+e:"")},t.prototype.getDayTotalTextCore=function(t,e,n,i){var o=t.length>0?t+", ":"";return o+=e+" "+n,o+=i.length>0?" "+i:""},t.prototype.getWeeksScaleItemTextCore=function(t,e){return t+" - "+e},t.prototype.getMonthsScaleItemTextCore=function(t,e){var n=t;return e.length>0&&(n+=" "+e),n},t.prototype.getLongestAbbrMonthName=function(){return null==this.longestAbbrMonthName&&(this.longestAbbrMonthName=this.getLongestText(this.getAbbrMonthNames())),this.longestAbbrMonthName},t.prototype.getLongestMonthName=function(){return null==this.longestMonthName&&(this.longestMonthName=this.getLongestText(this.getMonthNames())),this.longestMonthName},t.prototype.getLongestAbbrDayName=function(){return null==this.longestAbbrDayName&&(this.longestAbbrDayName=this.getLongestText(this.getAbbrDayNames())),this.longestAbbrDayName},t.prototype.getLongestText=function(t){var e=this,n="",i=0;return t.forEach((function(t){var o=e.getTextWidth(t);o>i&&(i=o,n=t)})),n},t.prototype.getTextWidth=function(t){return Math.round(this.textMeasureContext.measureText(t).width)},t.prototype.getAmText=function(){return this.cultureInfo.amText},t.prototype.getPmText=function(){return this.cultureInfo.pmText},t.prototype.getQuarterNames=function(){return this.cultureInfo.quarterNames},t.prototype.getMonthNames=function(){return this.cultureInfo.monthNames},t.prototype.getDayNames=function(){return this.cultureInfo.dayNames},t.prototype.getAbbrMonthNames=function(){return this.cultureInfo.abbrMonthNames},t.prototype.getAbbrDayNames=function(){return this.cultureInfo.abbrDayNames},t}();e.ElementTextHelper=a;var s=function(){};e.ElementTextHelperCultureInfo=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(4),o=n(23),r=n(65),a=function(){function t(e,n,a){this.id=t.id++,this.position=new i.Point,this.size=new o.Size,this.margins=new r.Margins,this.attr={},this.style={},e&&(this.className=e),n&&this.setPosition(n),a&&this.setSize(a)}return t.prototype.setSize=function(t){this.size.width=t.width,this.size.height=t.height},t.prototype.setPosition=function(t){this.position.x=t.x,this.position.y=t.y},t.prototype.assignToElement=function(t){this.assignPosition(t),this.assignSize(t),this.assignMargins(t),this.className&&(t.className=this.className)},t.prototype.assignPosition=function(t){null!=this.position.x&&(t.style.left=this.position.x+"px"),null!=this.position.y&&(t.style.top=this.position.y+"px")},t.prototype.assignSize=function(t){this.size.width&&(t.style.width=this.size.width+"px"),this.size.height&&(t.style.height=this.size.height+"px")},t.prototype.assignMargins=function(t){this.margins.marginLeft&&(t.style.marginLeft=this.margins.marginLeft+"px"),this.margins.marginTop&&(t.style.marginTop=this.margins.marginTop+"px"),this.margins.marginRight&&(t.style.marginRight=this.margins.marginRight+"px"),this.margins.marginBottom&&(t.style.marginBottom=this.margins.marginBottom+"px")},t.prototype.setAttribute=function(t,e){this.attr[t]=e},t.id=0,t}();e.GridElementInfo=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=n(2),r=function(){function t(){this.viewType=void 0,this.taskTitlePosition=i.TaskTitlePosition.Inside,this.showResources=!0,this.areHorizontalBordersEnabled=!0,this.areVerticalBordersEnabled=!0,this.areAlternateRowsEnabled=!0,this.allowSelectTask=!0,this.firstDayOfWeek=0,this.editing=new a,this.validation=new u,this.stripLines=new s}return t.parse=function(e){var n=new t;return e&&(o.JsonUtils.isExists(e.viewType)&&(n.viewType=e.viewType),o.JsonUtils.isExists(e.taskTitlePosition)&&(n.taskTitlePosition=e.taskTitlePosition),o.JsonUtils.isExists(e.showResources)&&(n.showResources=e.showResources),o.JsonUtils.isExists(e.areHorizontalBordersEnabled)&&(n.areHorizontalBordersEnabled=e.areHorizontalBordersEnabled),o.JsonUtils.isExists(e.areVerticalBordersEnabled)&&(n.areHorizontalBordersEnabled=e.areHorizontalBordersEnabled),o.JsonUtils.isExists(e.areAlternateRowsEnabled)&&(n.areAlternateRowsEnabled=e.areAlternateRowsEnabled),o.JsonUtils.isExists(e.allowSelectTask)&&(n.allowSelectTask=e.allowSelectTask),o.JsonUtils.isExists(e.firstDayOfWeek)&&(n.firstDayOfWeek=e.firstDayOfWeek),o.JsonUtils.isExists(e.editing)&&(n.editing=a.parse(e.editing)),o.JsonUtils.isExists(e.validation)&&(n.validation=u.parse(e.validation)),o.JsonUtils.isExists(e.stripLines)&&(n.stripLines=s.parse(e.stripLines))),n},t.prototype.equal=function(t){var e=!0;return e=(e=(e=(e=(e=(e=(e=(e=(e=e&&this.viewType===t.viewType)&&this.taskTitlePosition===t.taskTitlePosition)&&this.showResources===t.showResources)&&this.areHorizontalBordersEnabled===t.areHorizontalBordersEnabled)&&this.areAlternateRowsEnabled===t.areAlternateRowsEnabled)&&this.allowSelectTask===t.allowSelectTask)&&this.editing.equal(t.editing))&&this.validation.equal(t.validation))&&this.stripLines.equal(t.stripLines)},t}();e.Settings=r;var a=function(){function t(){this.enabled=!1,this.allowDependencyDelete=!0,this.allowDependencyInsert=!0,this.allowTaskDelete=!0,this.allowTaskInsert=!0,this.allowTaskUpdate=!0,this.allowResourceDelete=!0,this.allowResourceInsert=!0,this.allowResourceUpdate=!0}return t.parse=function(e){var n=new t;return e&&(o.JsonUtils.isExists(e.enabled)&&(n.enabled=e.enabled),o.JsonUtils.isExists(e.allowDependencyDelete)&&(n.allowDependencyDelete=e.allowDependencyDelete),o.JsonUtils.isExists(e.allowDependencyInsert)&&(n.allowDependencyInsert=e.allowDependencyInsert),o.JsonUtils.isExists(e.allowTaskDelete)&&(n.allowTaskDelete=e.allowTaskDelete),o.JsonUtils.isExists(e.allowTaskInsert)&&(n.allowTaskInsert=e.allowTaskInsert),o.JsonUtils.isExists(e.allowTaskUpdate)&&(n.allowTaskUpdate=e.allowTaskUpdate),o.JsonUtils.isExists(e.allowResourceDelete)&&(n.allowResourceDelete=e.allowResourceDelete),o.JsonUtils.isExists(e.allowResourceInsert)&&(n.allowResourceInsert=e.allowResourceInsert),o.JsonUtils.isExists(e.allowResourceUpdate)&&(n.allowResourceUpdate=e.allowResourceUpdate)),n},t.prototype.equal=function(t){var e=!0;return e=(e=(e=(e=(e=(e=(e=(e=(e=e&&this.enabled===t.enabled)&&this.allowDependencyDelete===t.allowDependencyDelete)&&this.allowDependencyInsert===t.allowDependencyInsert)&&this.allowTaskDelete===t.allowTaskDelete)&&this.allowTaskInsert===t.allowTaskInsert)&&this.allowTaskUpdate===t.allowTaskUpdate)&&this.allowResourceDelete===t.allowResourceDelete)&&this.allowResourceInsert===t.allowResourceInsert)&&this.allowResourceUpdate===t.allowResourceUpdate},t}();e.EditingSettings=a;var s=function(){function t(){this.showCurrentTime=!1,this.currentTimeUpdateInterval=6e4,this.stripLines=[]}return t.parse=function(e){var n=new t;if(e&&(o.JsonUtils.isExists(e.showCurrentTime)&&(n.showCurrentTime=e.showCurrentTime),o.JsonUtils.isExists(e.currentTimeUpdateInterval)&&(n.currentTimeUpdateInterval=e.currentTimeUpdateInterval),o.JsonUtils.isExists(e.currentTimeTitle)&&(n.currentTimeTitle=e.currentTimeTitle),o.JsonUtils.isExists(e.currentTimeCssClass)&&(n.currentTimeCssClass=e.currentTimeCssClass),o.JsonUtils.isExists(e.stripLines)))for(var i=0;i<e.stripLines.length;i++)n.stripLines.push(l.parse(e.stripLines[i]));return n},t.prototype.equal=function(t){var e=!0;if(e=(e=(e=(e=(e=e&&this.showCurrentTime==t.showCurrentTime)&&this.currentTimeUpdateInterval==t.currentTimeUpdateInterval)&&this.currentTimeTitle==t.currentTimeTitle)&&this.currentTimeCssClass==t.currentTimeCssClass)&&this.stripLines.length===t.stripLines.length)for(var n=0;n<t.stripLines.length;n++)e=e&&this.stripLines[n].equal(t.stripLines[n]);return e},t}();e.StripLineSettings=s;var l=function(){function t(t,e,n,i,o){this.isCurrent=!1,this.start=t,this.end=e,this.title=n,this.cssClass=i,this.isCurrent=o}return t.parse=function(e){var n=new t;return e&&(o.JsonUtils.isExists(e.start)&&(n.start=e.start),o.JsonUtils.isExists(e.end)&&(n.end=e.end),o.JsonUtils.isExists(e.title)&&(n.title=e.title),o.JsonUtils.isExists(e.cssClass)&&(n.cssClass=e.cssClass)),n},t.prototype.clone=function(){return new t(this.start,this.end,this.title,this.cssClass,this.isCurrent)},t.prototype.equal=function(t){var e=!0;return e=(e=(e=(e=e&&this.start==t.start)&&this.end==t.end)&&this.title==t.title)&&this.cssClass==t.cssClass},t}();e.StripLine=l;var u=function(){function t(){this.validateDependencies=!1,this.autoUpdateParentTasks=!1}return t.parse=function(e){var n=new t;return e&&(o.JsonUtils.isExists(e.validateDependencies)&&(n.validateDependencies=e.validateDependencies),o.JsonUtils.isExists(e.autoUpdateParentTasks)&&(n.autoUpdateParentTasks=e.autoUpdateParentTasks)),n},t.prototype.equal=function(t){var e=!0;return e=(e=e&&this.validateDependencies==t.validateDependencies)&&this.autoUpdateParentTasks==t.autoUpdateParentTasks},t}();e.ValidationSettings=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(13),o=n(7),r=n(1),a=n(8),s=function(){function t(t){this.taskIndex=-1,this.successorIndex=-1,this.editing=!1,this.gantt=t,this.createElements()}return Object.defineProperty(t.prototype,"taskId",{get:function(){return this.gantt.viewModel.items[this.taskIndex].task.internalId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"successorId",{get:function(){return this.gantt.viewModel.items[this.successorIndex].task.internalId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"task",{get:function(){return this.gantt.viewModel.items[this.taskIndex].task},enumerable:!0,configurable:!0}),t.prototype.show=function(e){this.editing||(this.taskIndex=e,this.updateWrapInfo(),this.wrapInfo.assignPosition(this.baseElement),this.wrapInfo.assignSize(this.baseElement),this.gantt.taskArea.appendChild(this.baseElement),this.baseElement.className=t.CLASSNAMES.TASK_EDIT_BOX,this.gantt.settings.editing.enabled&&this.gantt.settings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.task.isMilestone()?this.baseElement.className=this.baseElement.className+" milestone":(this.gantt.settings.editing.enabled&&this.gantt.settings.editing.allowTaskUpdate&&this.canUpdateTask()||(this.baseElement.className=this.baseElement.className+" hide-updating"),this.progressEdit.style.left=this.task.progress/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px"),this.taskDateRange=new o.DateRange(this.task.start,this.task.end))},t.prototype.hide=function(){var t=this.baseElement.parentNode;t&&t.removeChild(this.baseElement),this.tooltip.hide()},t.prototype.showTaskInfo=function(t){this.tooltip.showInfo(this.task,t,500)},t.prototype.updateWrapInfo=function(){this.wrapInfo=this.getTaskWrapperElementInfo(this.taskIndex),this.wrapInfo.position.x--},t.prototype.showDependencySuccessor=function(t){if(this.successorIndex!=t&&this.taskIndex!=t){this.successorIndex=t;var e=this.getTaskWrapperElementInfo(t);e.assignPosition(this.dependencySuccessorBaseElement),e.assignSize(this.dependencySuccessorBaseElement),e.assignSize(this.dependencySuccessorFrame),this.gantt.taskArea.appendChild(this.dependencySuccessorBaseElement)}},t.prototype.hideDependencySuccessor=function(){var t=this.dependencySuccessorBaseElement.parentNode;t&&t.removeChild(this.dependencySuccessorBaseElement),this.successorIndex=-1},t.prototype.processProgress=function(t){this.editing=!0;var e=t.x-this.wrapInfo.position.x,n=0;t.x>this.wrapInfo.position.x&&(n=t.x<this.wrapInfo.position.x+this.wrapInfo.size.width?Math.round(e/this.baseElement.clientWidth*100):100),this.progressEdit.style.left=n/100*this.wrapInfo.size.width-this.progressEdit.offsetWidth/2+"px",this.tooltip.showProgress(n,r.DomUtils.getAbsolutePositionX(this.progressEdit)+this.progressEdit.offsetWidth/2)},t.prototype.confirmProgress=function(){this.editing=!1;var t=Math.round((this.progressEdit.offsetLeft+this.progressEdit.offsetWidth/2)/this.wrapInfo.size.width*100);this.gantt.commandManager.changeTaskProgressCommand.execute(this.taskId,t)},t.prototype.processEnd=function(t){this.baseElement.className=this.baseElement.className+" move",this.editing=!0;var e=t.x>this.wrapInfo.position.x?t.x:this.wrapInfo.position.x,n=e-this.wrapInfo.position.x;this.baseElement.style.width=(n<1?0:n)+"px";var i=this.task.start,o=this.gantt.gridLayoutCalculator.getDateByPos(e);o.setSeconds(0),o<i||n<1?this.taskDateRange.end.setTime(i.getTime()):this.taskDateRange.end=this.getNewDate(this.task.end,o),this.tooltip.showTime(i,this.taskDateRange.end,r.DomUtils.getAbsolutePositionX(this.baseElement)+this.baseElement.clientWidth)},t.prototype.confirmEnd=function(){this.baseElement.className=t.CLASSNAMES.TASK_EDIT_BOX,this.editing=!1,this.gantt.commandManager.changeTaskEndCommand.execute(this.taskId,this.taskDateRange.end),this.hide(),this.updateWrapInfo()},t.prototype.processStart=function(t){this.baseElement.className=this.baseElement.className+" move",this.editing=!0;var e=t.x<this.wrapInfo.position.x+this.wrapInfo.size.width?t.x:this.wrapInfo.position.x+this.wrapInfo.size.width,n=this.wrapInfo.size.width-(e-this.wrapInfo.position.x);this.baseElement.style.left=e+"px",this.baseElement.style.width=(n<1?0:n)+"px";var i=this.task.end,o=this.gantt.gridLayoutCalculator.getDateByPos(e);o.setSeconds(0),o>i||n<1?this.taskDateRange.start.setTime(i.getTime()):this.taskDateRange.start=this.getNewDate(this.task.start,o),this.tooltip.showTime(this.taskDateRange.start,i,r.DomUtils.getAbsolutePositionX(this.baseElement))},t.prototype.confirmStart=function(){this.baseElement.className=t.CLASSNAMES.TASK_EDIT_BOX,this.editing=!1,this.gantt.commandManager.changeTaskStartCommand.execute(this.taskId,this.taskDateRange.start),this.hide(),this.updateWrapInfo()},t.prototype.processMove=function(t){if(this.gantt.settings.editing.enabled&&this.gantt.settings.editing.allowTaskUpdate){this.baseElement.className=this.baseElement.className+" move",this.editing=!0;var e=this.baseElement.offsetLeft+t;this.baseElement.style.left=e+"px";var n=this.gantt.gridLayoutCalculator.getDateByPos(e);this.taskDateRange.start=this.getNewDate(this.task.start,n);var i=this.task.start.getTime()-this.taskDateRange.start.getTime(),o=new Date(this.task.end.getTime()-i);this.taskDateRange.end=this.getNewDate(this.task.end,o),this.tooltip.showTime(this.taskDateRange.start,this.taskDateRange.end,r.DomUtils.getAbsolutePositionX(this.baseElement))}},t.prototype.confirmMove=function(){this.gantt.settings.editing.enabled&&this.gantt.settings.editing.allowTaskUpdate&&(this.gantt.settings.editing.allowDependencyInsert||(this.baseElement.className=this.baseElement.className+" hide-dependency"),this.editing&&(this.baseElement.className=t.CLASSNAMES.TASK_EDIT_BOX,this.gantt.commandManager.taskMoveCommand.execute(this.taskId,this.taskDateRange.start,this.taskDateRange.end),this.updateWrapInfo(),this.hide(),this.editing=!1))},t.prototype.getNewDate=function(t,e){if(this.gantt.settings.viewType>i.ViewType.SixHours){var n=new Date(t.getTime());return n.setDate(e.getDate()),n.setMonth(e.getMonth()),n.setFullYear(e.getFullYear()),this.gantt.settings.viewType==i.ViewType.Days&&n.setHours(e.getHours()),n}return e},t.prototype.startDependency=function(e){this.dependencyLine=document.createElement("DIV"),this.dependencyLine.className=t.CLASSNAMES.TASK_EDIT_DEPENDENCY_LINE,this.gantt.taskArea.appendChild(this.dependencyLine),this.startPosition=e},t.prototype.processDependency=function(t){this.editing=!0,this.drawline(this.startPosition,t)},t.prototype.endDependency=function(t){this.editing=!1,null!=t&&this.gantt.commandManager.createDependencyCommand.execute(this.task.internalId,this.successorId,t);var e=this.dependencyLine.parentNode;e&&e.removeChild(this.dependencyLine),this.dependencyLine=null,this.hideDependencySuccessor(),this.hide()},t.prototype.selectDependency=function(t){this.gantt.settings.editing.allowDependencyDelete&&(this.dependencyId=t)},t.prototype.isDependencySelected=function(t){return this.dependencyId&&this.dependencyId==t},t.prototype.deleteSelectedDependency=function(){this.dependencyId&&this.gantt.commandManager.removeDependencyCommand.execute(this.dependencyId)},t.prototype.getTaskWrapperElementInfo=function(t){var e=this.gantt.gridLayoutCalculator,n=e.getTaskWrapperElementInfo(t);return n.size.width=e.getTaskWidth(t),n.size.height=e.getTaskHeight(t),n},t.prototype.createElements=function(){this.baseElement=document.createElement("DIV"),this.baseFrame=document.createElement("DIV"),this.baseFrame.className=t.CLASSNAMES.TASK_EDIT_FRAME,this.baseElement.appendChild(this.baseFrame),this.progressEdit=document.createElement("DIV"),this.progressEdit.className=t.CLASSNAMES.TASK_EDIT_PROGRESS,this.baseFrame.appendChild(this.progressEdit),this.progressEdit.appendChild(document.createElement("DIV")),this.dependencyFinish=document.createElement("DIV"),this.dependencyFinish.classList.add(t.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencyFinish.classList.add(t.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyFinish),this.dependencyStart=document.createElement("DIV"),this.dependencyStart.classList.add(t.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencyStart.classList.add(t.CLASSNAMES.TASK_EDIT_TOUCH),this.baseFrame.appendChild(this.dependencyStart),this.startEdit=document.createElement("DIV"),this.startEdit.className=t.CLASSNAMES.TASK_EDIT_START,this.baseFrame.appendChild(this.startEdit),this.endEdit=document.createElement("DIV"),this.endEdit.className=t.CLASSNAMES.TASK_EDIT_END,this.baseFrame.appendChild(this.endEdit),this.dependencySuccessorBaseElement=document.createElement("DIV"),this.dependencySuccessorBaseElement.className=t.CLASSNAMES.TASK_EDIT_BOX_SUCCESSOR,this.dependencySuccessorFrame=document.createElement("DIV"),this.dependencySuccessorFrame.className=t.CLASSNAMES.TASK_EDIT_FRAME_SUCCESSOR,this.dependencySuccessorBaseElement.appendChild(this.dependencySuccessorFrame),this.dependencySuccessorStart=document.createElement("DIV"),this.dependencySuccessorStart.classList.add(t.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH),a.Browser.TouchUI&&this.dependencySuccessorStart.classList.add(t.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorStart),this.dependencySuccessorFinish=document.createElement("DIV"),this.dependencySuccessorFinish.classList.add(t.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT),a.Browser.TouchUI&&this.dependencySuccessorFinish.classList.add(t.CLASSNAMES.TASK_EDIT_TOUCH),this.dependencySuccessorFrame.appendChild(this.dependencySuccessorFinish),this.tooltip=new l(this.baseElement,this.gantt.elementTextHelper.cultureInfo),this.attachEvents()},t.prototype.attachEvents=function(){this.baseElement.addEventListener("mouseleave",function(t){this.editing||this.hide()}.bind(this))},t.prototype.drawline=function(t,e){if(t.x>e.x){var n=e;e=t,t=n}var i=Math.atan((t.y-e.y)/(e.x-t.x));i=-(i=180*i/Math.PI);var o=Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y));this.dependencyLine.style.left=t.x+"px",this.dependencyLine.style.top=t.y+"px",this.dependencyLine.style.width=o+"px",this.dependencyLine.style.transform="rotate("+i+"deg)"},t.prototype.canUpdateTask=function(){return!this.gantt.viewModel.isTaskToCalculateByChildren(this.task.internalId)},t.CLASSNAMES={TASK_EDIT_BOX:"dx-gantt-task-edit-wrapper",TASK_EDIT_FRAME:"dx-gantt-task-edit-frame",TASK_EDIT_PROGRESS:"dx-gantt-task-edit-progress",TASK_EDIT_DEPENDENCY_RIGTH:"dx-gantt-task-edit-dependency-r",TASK_EDIT_DEPENDENCY_LEFT:"dx-gantt-task-edit-dependency-l",TASK_EDIT_START:"dx-gantt-task-edit-start",TASK_EDIT_END:"dx-gantt-task-edit-end",TASK_EDIT_DEPENDENCY_LINE:"dx-gantt-task-edit-dependency-line",TASK_EDIT_BOX_SUCCESSOR:"dx-gantt-task-edit-wrapper-successor",TASK_EDIT_FRAME_SUCCESSOR:"dx-gantt-task-edit-frame-successor",TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH:"dx-gantt-task-edit-successor-dependency-r",TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT:"dx-gantt-task-edit-successor-dependency-l",TASK_EDIT_TOUCH:"dx-gantt-edit-touch"},t}();e.TaskEditController=s;var l=function(){function t(e,n){this.parentElement=e,this.baseElement=document.createElement("DIV"),this.baseElement.className=t.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS,e.appendChild(this.baseElement),this.cultureInfo=n}return t.prototype.showInfo=function(e,n,i){void 0===i&&(i=0);var o=function(){this.baseElement.innerHTML="";var i=document.createElement("DIV");i.className=t.CLASSNAMES.TASK_EDIT_TASK_TITLE;var o=document.createElement("SPAN");if(i.appendChild(o),this.baseElement.appendChild(i),o.innerHTML=e.title,this.baseElement.appendChild(this.getTimeContent(e.start,e.end)),!isNaN(e.progress)){var r=document.createElement("DIV");r.className=t.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var a=document.createElement("SPAN"),s=document.createElement("SPAN");r.appendChild(a),r.appendChild(s),this.baseElement.appendChild(r),a.innerHTML=(this.cultureInfo.progress?this.cultureInfo.progress:"Progress")+": ",s.innerHTML=e.progress+"%"}this.show(n,!1)};i?this.timerId=setTimeout(o.bind(this),i):o()},t.prototype.showProgress=function(t,e){this.baseElement.innerHTML=t+"%",this.show(e)},t.prototype.showTime=function(t,e,n){this.baseElement.innerHTML="",this.baseElement.appendChild(this.getTimeContent(t,e)),this.show(n)},t.prototype.show=function(t,e){var n=this;void 0===e&&(e=!0);var i=parseInt(getComputedStyle(this.baseElement,"::before").borderLeftWidth);this.baseElement.style.display="block",this.baseElement.style.left=t-parseInt(getComputedStyle(this.baseElement).paddingLeft)-i+"px",this.baseElement.style.top=r.DomUtils.getAbsolutePositionY(this.parentElement)-this.baseElement.clientHeight-5-r.DomUtils.getDocumentScrollTop()+"px",e&&(this.timerId&&clearTimeout(this.timerId),this.timerId=setTimeout((function(){n.baseElement.style.display="none"}),1500))},t.prototype.hide=function(){this.baseElement.style.display="none",clearTimeout(this.timerId)},t.prototype.getTimeContent=function(e,n){var i=document.createElement("TABLE");i.className=t.CLASSNAMES.TASK_EDIT_PROGRESS_STATUS_TIME;var o=document.createElement("TBODY");i.appendChild(o);var r=document.createElement("TR"),a=document.createElement("TD"),s=document.createElement("TD"),l=document.createElement("TR"),u=document.createElement("TD"),c=document.createElement("TD");return r.appendChild(a),r.appendChild(s),l.appendChild(u),l.appendChild(c),o.appendChild(r),o.appendChild(l),a.innerHTML=(this.cultureInfo.start?this.cultureInfo.start:"Start")+": ",s.innerHTML=this.formatDate(e),u.innerHTML=(this.cultureInfo.end?this.cultureInfo.end:"End")+": ",c.innerHTML=this.formatDate(n),i},t.prototype.formatDate=function(t){return("0"+t.getDate()).slice(-2)+"/"+("0"+(t.getMonth()+1)).slice(-2)+"/"+t.getFullYear()+" "+("0"+t.getHours()).slice(-2)+":"+("0"+t.getMinutes()).slice(-2)},t.CLASSNAMES={TASK_EDIT_PROGRESS_STATUS:"dx-gantt-task-edit-tooltip",TASK_EDIT_TASK_TITLE:"dx-gantt-task-title",TASK_EDIT_PROGRESS_STATUS_TIME:"dx-gantt-status-time"},t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.id=t,this.value=e};e.HistoryItemState=i},function(t,e,n){"use strict";var i;Object.defineProperty(e,"__esModule",{value:!0});var o=n(6),r=n(37),a=function(){function t(t){this.control=t,this.switchToDefaultState()}return t.prototype.switchState=function(t){this.state&&this.state.finish(),this.state=t,this.state.start()},t.prototype.switchToDefaultState=function(){throw new Error("Not implemented")},t.prototype.getEventSource=function(e){var n=(e.nodeType===Node.ELEMENT_NODE?e:e.parentNode).classList[0];return t.classToSource[n]||o.MouseEventSource.TaskArea},t.classToSource=((i={})[r.TaskEditController.CLASSNAMES.TASK_EDIT_PROGRESS]=o.MouseEventSource.TaskEdit_Progress,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_START]=o.MouseEventSource.TaskEdit_Start,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_END]=o.MouseEventSource.TaskEdit_End,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_FRAME]=o.MouseEventSource.TaskEdit_Frame,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_RIGTH]=o.MouseEventSource.TaskEdit_DependencyStart,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_DEPENDENCY_LEFT]=o.MouseEventSource.TaskEdit_DependencyFinish,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_RIGTH]=o.MouseEventSource.Successor_DependencyStart,i[r.TaskEditController.CLASSNAMES.TASK_EDIT_SUCCESSOR_DEPENDENCY_LEFT]=o.MouseEventSource.Successor_DependencyFinish,i),t}();e.HandlerBase=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(4),r=n(1),a=n(24),s=n(6),l=n(12);e.dependencyMap=[],e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyStart]=[],e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyFinish]=[],e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyStart][s.MouseEventSource.Successor_DependencyStart]=l.DependencyType.SS,e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyStart][s.MouseEventSource.Successor_DependencyFinish]=l.DependencyType.SF,e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyFinish][s.MouseEventSource.Successor_DependencyStart]=l.DependencyType.FS,e.dependencyMap[s.MouseEventSource.TaskEdit_DependencyFinish][s.MouseEventSource.Successor_DependencyFinish]=l.DependencyType.FF;var u=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(n,t),n.prototype.onMouseDown=function(t){var e=r.DomUtils.getEventSource(t);this.source=this.handler.getEventSource(e);var n=this.getRelativePos(new o.Point(r.DomUtils.getAbsolutePositionX(e)+e.clientWidth/2,r.DomUtils.getAbsolutePositionY(e)+e.clientHeight/2));this.handler.control.taskEditController.startDependency(n)},n.prototype.onMouseUp=function(t){if(t instanceof PointerEvent){var n=this.getRelativePos(new o.Point(r.DomUtils.getAbsolutePositionX(this.handler.control.taskEditController.dependencySuccessorStart)+this.handler.control.taskEditController.dependencySuccessorStart.clientWidth/2,r.DomUtils.getAbsolutePositionY(this.handler.control.taskEditController.dependencySuccessorStart)+this.handler.control.taskEditController.dependencySuccessorStart.clientHeight/2)),i=this.getRelativePos(new o.Point(r.DomUtils.getAbsolutePositionX(this.handler.control.taskEditController.dependencySuccessorFinish)+this.handler.control.taskEditController.dependencySuccessorFinish.clientWidth/2,r.DomUtils.getAbsolutePositionY(this.handler.control.taskEditController.dependencySuccessorFinish)+this.handler.control.taskEditController.dependencySuccessorFinish.clientHeight/2)),a=this.getRelativePos(new o.Point(r.DomUtils.getEventX(t),r.DomUtils.getEventY(t))),l=(u=this.isTouchNearby(a,n)?s.MouseEventSource.Successor_DependencyStart:this.isTouchNearby(a,i)?s.MouseEventSource.Successor_DependencyFinish:null)===s.MouseEventSource.Successor_DependencyStart||u==s.MouseEventSource.Successor_DependencyFinish?e.dependencyMap[this.source][u]:null;this.handler.control.taskEditController.endDependency(l)}else{var u;l=(u=this.handler.getEventSource(r.DomUtils.getEventSource(t)))===s.MouseEventSource.Successor_DependencyStart||u==s.MouseEventSource.Successor_DependencyFinish?e.dependencyMap[this.source][u]:null,this.handler.control.taskEditController.endDependency(l)}this.handler.switchToDefaultState()},n.prototype.onMouseMove=function(t){t.preventDefault();var e=this.getRelativePos(new o.Point(r.DomUtils.getEventX(t),r.DomUtils.getEventY(t))),n=Math.floor(e.y/this.handler.control.tickSize.height);this.handler.control.taskEditController.processDependency(e),this.handler.control.viewModel.tasks.items[n]&&this.handler.control.taskEditController.showDependencySuccessor(n)},n.prototype.isTouchNearby=function(t,e){return Math.abs(e.x-t.x)<=10&&Math.abs(e.y-t.y)<=10},n}(a.MouseHandlerStateBase);e.MouseHandlerDependencyState=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){},e.prototype.onDoubleTap=function(t){},e.prototype.onTouchEnd=function(t){},e.prototype.onTouchMove=function(t){},e}(n(18).HandlerStateBase);e.TouchHandlerStateBase=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0),r=n(21),a=n(19);!function(t){t[t.DoNothing=0]="DoNothing",t[t.RemoveDependency=1]="RemoveDependency",t[t.KeepDependency=2]="KeepDependency"}(i=e.ConstraintViolationOption||(e.ConstraintViolationOption={}));var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o.__extends(e,t),e.prototype.applyParameters=function(t,e){return t.option!==i.DoNothing&&(t.option===i.RemoveDependency&&(this.history.beginTransaction(),this.history.addAndRedo(new a.RemoveDependencyHistoryItem(this.modelManipulator,e.validationError.dependencyId)),e.callback(),this.history.endTransaction(),this.control.barManager.updateItemsState([])),t.option===i.KeepDependency&&(e.callback(),this.control.barManager.updateItemsState([])),!0)},e.prototype.createParameters=function(t){var e=this.control.viewModel.dependencies.getItemById(t.validationError.dependencyId),n=this.control.viewModel.tasks.getItemById(e.successorId),i=this.control.viewModel.tasks.getItemById(e.predecessorId);return t.successorTaskTitle=n.title,t.predecessorTaskTitle=i.title,t},e.prototype.getDialogName=function(){return"ConstraintViolation"},e}(r.DialogBase);e.ConstraintViolationDialogCommand=s;var l=function(t){function e(e,n){var i=t.call(this)||this;return i.validationError=e,i.callback=n,i}return o.__extends(e,t),e.prototype.clone=function(){var t=new e(this.validationError,this.callback);return t.option=this.option,t},e}(r.DialogParametersBase);e.ConstraintViolationDialogParameters=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n(44);var i=n(45);e.default=i.GanttView,e.GanttView=i.GanttView},function(t,e,n){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(46),o=n(13),r=n(34),a=n(1),s=n(7),l=n(23),u=n(4),c=n(35),d=n(16),h=n(66),f=n(37),p=n(6),m=n(67),g=n(72),_=n(74),v=n(88),y=n(36),b=n(89),w=n(91),x=n(106),C=n(8),S=n(107),k=n(3),I=n(108),T=function(){function t(t,e,n){var i=this;this.timeScaleAreas=new Array,this.horTaskAreaBorders=[],this.vertTaskAreaBorders=[],this.scaleBorders=[],this.scaleElements=[],this.taskElements=[],this.resourcesElements=[],this.selectionElements=[],this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this.renderedScaleItemIndices=[],this.dependencyMap=[],this.renderedConnectorLines=[],this.connectorLinesToElementsMap={},this.noWorkingIntervalsToElementsMap={},this.renderedNoWorkingIntervals=[],this.renderedStripLines=[],this.stripLinesMap=[],this.gridLayoutCalculator=new d.GridLayoutCalculator,this.etalonSizeValues=new h.EtalonSizeValues,this.tickSize=new l.Size,this.scaleCount=2,this.isFocus=!1,this.currentZoom=1,this.maxZoom=3,this.stripLinesUpdaterId=null,this.currentSelectedTaskID="",this.ganttOwner=e,this.settings=y.Settings.parse(n),this.elementTextHelper=new r.ElementTextHelper(n.cultureInfo),this.validationController=new S.ValidationController(this),this.createMainElement(t),this.createHeader(),this.calculateEtalonSizeValues(),this.createTaskAreaContainer(),this.loadOptionsFromGanttOwner(),this.elementTextHelper.setFont(this.mainElement),this.setupHelpers(),this.setSizeForTaskArea(),this.createTimeScaleContainer(),this.createTimeScaleAreas(),this.commandManager=new w.CommandManager(this),this.barManager=new x.BarManager(this,e.bars),this.eventManager=new _.EventManager(this),this.taskEditController=new f.TaskEditController(this),this.history=new g.History,this.taskAreaManager=new p.TaskAreaManager(this),this.fullScreenModeHelper=new I.FullScreenModeHelper(this),window.addEventListener("resize",(function(){i.onBrowserWindowResize()})),this.updateView(),setTimeout((function(){i.scrollLeftByViewType()}),0),this.initializeStripLinesUpdater()}return t.prototype.reset=function(){this.timeScaleContainer.innerHTML="",this.taskArea.innerHTML="",this.horTaskAreaBorders=[],this.vertTaskAreaBorders=[],this.scaleBorders=[],this.scaleElements=[],this.taskElements=[],this.selectionElements=[],this.hlRowElements=[],this.renderedRowIndices=[],this.renderedColIndices=[],this.renderedConnectorLines=[],this.timeScaleAreas=[],this.renderedScaleItemIndices=[],this.connectorLinesToElementsMap={},this.renderedNoWorkingIntervals=[],this.renderedStripLines=[],this.noWorkingIntervalsToElementsMap={}},t.prototype.setupHelpers=function(){var t=new l.Size(this.taskAreaContainer.getWidth(),this.taskAreaContainer.getHeight()),e=this.taskAreaContainer.getHeight()-this.taskAreaContainer.getElement().clientHeight;this.gridLayoutCalculator.setSettings(t,this.tickSize,this.etalonSizeValues,this.range,this.viewModel,this.settings.viewType,e),this.elementTextHelper.setSettings(this.range.start.getTime(),this.settings.viewType,this.viewModel.items)},t.prototype.getDateRange=function(t,e){var n=new Date(t.getTime()-this.getVisibleAreaTime());n=r.DateUtils.adjustStartDateByViewType(n,this.settings.viewType,this.settings.firstDayOfWeek);var i=new Date(e.getTime()+this.getVisibleAreaTime());return i=r.DateUtils.adjustEndDateByViewType(i,this.settings.viewType,this.settings.firstDayOfWeek),new s.DateRange(n,i)},t.prototype.getVisibleAreaTime=function(){return Math.ceil(this.taskAreaContainer.getWidth()/this.tickSize.width)*r.DateUtils.getTickTimeSpan(this.settings.viewType)},t.prototype.calculateEtalonSizeValues=function(){var t=this.createEtalonElementsContainer(),e=this.createEtalonElements(t);this.calculateEtalonSizeValuesCore(e),this.mainElement.removeChild(t)},t.prototype.calculateEtalonSizeValuesCore=function(t){this.etalonSizeValues.taskHeight=t[0].firstChild.offsetHeight,this.etalonSizeValues.milestoneWidth=t[1].firstChild.offsetWidth,this.etalonSizeValues.taskWrapperTopPadding=a.DomUtils.getTopPaddings(t[0]),this.etalonSizeValues.connectorLineThickness=a.DomUtils.getVerticalBordersWidth(t[2]),this.etalonSizeValues.connectorArrowWidth=a.DomUtils.getHorizontalBordersWidth(t[3]);for(var e=0;e<=o.ViewType.Years;e++)t[4].innerText=this.elementTextHelper.getScaleItemTextTemplate(e),this.etalonSizeValues.scaleItemWidths[e]=t[4].offsetWidth;this.etalonSizeValues.smallTaskWidth=2*a.DomUtils.getLeftPadding(t[0].firstChild.firstChild),this.etalonSizeValues.outsideTaskTextDefaultWidth=a.DomUtils.pxToFloat(a.DomUtils.getCurrentStyle(t[5]).width),this.etalonSizeValues.scaleItemHeight=this.ganttOwner.getHeaderHeight()/this.scaleCount,this.etalonSizeValues.parentTaskHeight=t[t.length-1].firstChild.offsetHeight},t.prototype.createEtalonElementsContainer=function(){var t=document.createElement("DIV");return t.style.visibility="hidden",t.style.position="absolute",t.style.left="-1000px",this.mainElement.appendChild(t),t},t.prototype.createEtalonElements=function(t){var e=[],n=this.createElement(new c.GridElementInfo("dx-gantt-taskWrapper"),null,t),i=this.createElement(new c.GridElementInfo("dx-gantt-task"),null,n);this.createElement(new c.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,i).innerText="WWW",e.push(n);var o=this.createElement(new c.GridElementInfo("dx-gantt-taskWrapper"),null,t);this.createElement(new c.GridElementInfo("dx-gantt-task dx-gantt-milestone"),null,o),e.push(o);for(var r=["dx-gantt-conn-h","dx-gantt-arrow","dx-gantt-si","dx-gantt-taskTitle dx-gantt-titleOut"],a=0;a<r.length;a++){var s=new c.GridElementInfo(r[a]);e.push(this.createElement(s,null,t))}var l=this.createElement(new c.GridElementInfo("dx-gantt-taskWrapper"),null,t),u=this.createElement(new c.GridElementInfo("dx-gantt-task dx-gantt-parent"),null,l);return this.createElement(new c.GridElementInfo("dx-gantt-taskTitle dx-gantt-titleIn"),null,u).innerText="WWW",e.push(l),e},t.prototype.zoomIn=function(t){void 0===t&&(t=this.taskAreaContainer.getWidth()/2);var e=this.gridLayoutCalculator.getDateByPos(this.taskAreaContainer.scrollLeft+t);this.currentZoom<this.maxZoom?(this.currentZoom++,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType>o.ViewType.TenMinutes&&(this.currentZoom=1,this.setViewType(this.settings.viewType-1,!1)),this.scrollToDate(e,t)},t.prototype.zoomOut=function(t){void 0===t&&(t=this.taskAreaContainer.getWidth()/2);var e=this.gridLayoutCalculator.getDateByPos(this.taskAreaContainer.scrollLeft+t);this.currentZoom>1?(this.currentZoom--,this.updateTickSizeWidth(),this.resetAndUpdate()):this.settings.viewType<o.ViewType.Years&&(this.currentZoom=this.maxZoom,this.setViewType(this.settings.viewType+1,!1)),this.scrollToDate(e,t)},t.prototype.scrollToDate=function(t,e){this.taskAreaContainer.scrollLeft=Math.round(this.gridLayoutCalculator.getPosByDate(t))-e},t.prototype.scrollLeftByViewType=function(){var t=r.DateUtils.roundStartDate(this.dataRange.start,this.settings.viewType);this.taskAreaContainer.scrollLeft=Math.round(this.gridLayoutCalculator.getPosByDate(t))+1},t.prototype.onVisualModelChanged=function(){this.resetAndUpdate()},t.prototype.initializeStripLinesUpdater=function(){var t=this;this.settings.stripLines.showCurrentTime&&(this.stripLinesUpdaterId=setInterval((function(){t.recreateStripLines&&t.recreateStripLines()}),Math.max(this.settings.stripLines.currentTimeUpdateInterval,100)))},t.prototype.clearStripLinesUpdater=function(){this.stripLinesUpdaterId&&clearInterval(this.stripLinesUpdaterId),this.stripLinesUpdaterId=null},t.prototype.getGanttViewStartDate=function(t){if(!t)return new Date;var e=t.map((function(t){return"string"==typeof t.start?new Date(t.start):t.start})).filter((function(t){return a.DomUtils.isExists(t)}));return e.length>0?e.reduce((function(t,e){return e<t?e:t}),e[0]):new Date},t.prototype.getGanttViewEndDate=function(t){if(!t)return new Date;var e=t.map((function(t){return"string"==typeof t.end?new Date(t.end):t.end})).filter((function(t){return a.DomUtils.isExists(t)}));return e.length>0?e.reduce((function(t,e){return e>t?e:t}),e[0]):new Date},t.prototype.getTaskAreaWidth=function(){return this.gridLayoutCalculator.horizontalTickCount*this.tickSize.width},t.prototype.getTaskAreaHeight=function(){return this.gridLayoutCalculator.getVerticalGridLineHeight()},t.prototype.getVisibleTaskCount=function(){return this.viewModel.itemCount},t.prototype.getTask=function(t){return this.viewModel.items[t].task},t.prototype.createMainElement=function(t){this.mainElement=document.createElement("DIV"),this.mainElement.style.width=t.offsetWidth+"px",this.mainElement.style.height=t.offsetHeight+"px",t.appendChild(this.mainElement)},t.prototype.createHeader=function(){this.header=document.createElement("DIV"),this.header.className="dx-gantt-header",this.mainElement.appendChild(this.header)},t.prototype.createTimeScaleContainer=function(){this.timeScaleContainer=document.createElement("DIV"),this.timeScaleContainer.className="dx-gantt-tsac",this.timeScaleContainer.style.height=this.etalonSizeValues.scaleItemHeight*this.scaleCount+"px",this.header.appendChild(this.timeScaleContainer)},t.prototype.createTimeScaleArea=function(){var t=document.createElement("DIV");return t.className="dx-gantt-tsa",t.style.width=this.getTaskAreaWidth()+"px",t.style.height=this.etalonSizeValues.scaleItemHeight+"px",this.timeScaleContainer.appendChild(t),this.timeScaleAreas.unshift(t),t},t.prototype.createTimeScaleAreas=function(){for(var t=0;t<this.scaleCount;t++){var e=this.createTimeScaleArea();0==t&&this.settings.viewType==o.ViewType.Weeks&&this.createMonthsScale(e)}},t.prototype.createTaskAreaContainer=function(){var t=document.createElement("DIV");t.className="dx-gantt-tac",this.mainElement.appendChild(t),this.createTaskArea(t),this.taskAreaContainer=this.ganttOwner.getExternalTaskAreaContainer(t),null==this.taskAreaContainer&&(this.taskAreaContainer=new v.TaskAreaContainer(t,this)),this.prepareTaskAreaContainer()},t.prototype.prepareTaskAreaContainer=function(){var t=this.taskAreaContainer.getElement();this.settings.areHorizontalBordersEnabled?a.DomUtils.addClassNameToElement(t,"dx-gantt-tac-hb"):a.DomUtils.removeClassNameFromElement(t,"dx-gantt-tac-hb");var e=parseInt(getComputedStyle(t).getPropertyValue("margin-top"))||0;t.style.height="calc(100% - "+(this.etalonSizeValues.scaleItemHeight*this.scaleCount+e)+"px)"},t.prototype.createTaskArea=function(t){this.taskArea=document.createElement("DIV"),this.taskArea.id="dx-gantt-ta",t.appendChild(this.taskArea)},t.prototype.setSizeForTaskArea=function(){this.taskArea.style.width=this.getTaskAreaWidth()+"px",this.taskArea.style.height=this.getTaskAreaHeight()+"px"},t.prototype.updateTickSizeWidth=function(){this.tickSize.width=this.etalonSizeValues.scaleItemWidths[this.settings.viewType]*this.currentZoom},t.prototype.createMonthsScale=function(t){var e=new Date;e.setTime(this.range.start.getTime());for(var n=0,i=0;e.getTime()<this.range.end.getTime();){var a=r.DateUtils.getDaysInMonth(e.getMonth(),e.getFullYear())-e.getDate()+1,s=new Date;s.setTime(e.getTime()+Math.min(a*r.DateUtils.msPerDay,this.range.end.getTime()-e.getTime()));var d=this.gridLayoutCalculator.getWidthByDateRange(e,s),h=new c.GridElementInfo("dx-gantt-si",new u.Point(n),new l.Size(d,this.etalonSizeValues.scaleItemHeight)),f=this.createElement(h,null,t);f.innerText=this.elementTextHelper.getScaleItemText(i,o.ViewType.Months),f.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px";var p=new c.GridElementInfo("dx-gantt-vb",new u.Point(n+d),new l.Size(0,this.etalonSizeValues.scaleItemHeight));this.createElement(p,null,t),n+=d,i++,e=s}},t.prototype.updateView=function(){this.timeScaleContainer.scrollLeft=this.taskAreaContainer.scrollLeft,this.processScroll(!1),this.processScroll(!0),this.ganttOwner.onGanttScroll(this.taskAreaContainer.scrollTop)},t.prototype.processScroll=function(t){this.taskEditController.tooltip.hide(),this.recreateTaskAreaBordersAndTaskElements(t),t?this.recreateConnectorLineElements():(this.recreateNoWorkingIntervalElements(),this.recreateStripLines(),this.recreateScalesElements())},t.prototype.recreateTaskAreaBordersAndTaskElements=function(t){var e=this,n=t?this.taskAreaContainer.scrollTop:this.taskAreaContainer.scrollLeft,i=this.gridLayoutCalculator.getRenderedRowColumnIndices(n,t),o=t?this.renderedRowIndices:this.renderedColIndices;this.recreateElements(o,i,(function(n){e.removeTaskAreaBorderAndTaskElement(n,t)}),(function(n){e.createTaskAreaBorderAndTaskElement(n,t)})),t?this.renderedRowIndices=i:this.renderedColIndices=i},t.prototype.recreateNoWorkingIntervalElements=function(){var t=this,e=this.gridLayoutCalculator.getRenderedNoWorkingIntervals(this.taskAreaContainer.scrollLeft);this.recreateElements(this.renderedNoWorkingIntervals,e,(function(e){t.removeNoWorkingIntervalElement(e)}),(function(e){t.createNoWorkingIntervalElement(e)})),this.renderedNoWorkingIntervals=e},t.prototype.recreateStripLines=function(){var t=this,e=this.gridLayoutCalculator.getRenderedStripLines(this.settings.stripLines);this.recreateElements(this.renderedStripLines,e,(function(e){t.removeElement(e,null,t.taskArea,t.stripLinesMap)}),(function(e){return t.createElement(e,null,t.taskArea,t.stripLinesMap)})),this.renderedStripLines=e},t.prototype.recreateConnectorLineElements=function(){var t=this,e=this.gridLayoutCalculator.getRenderedConnectorLines(this.taskAreaContainer.scrollTop);this.recreateElements(this.renderedConnectorLines,e,(function(e){t.removeConnectorLineElement(e)}),(function(e){t.createConnectorLineElement(e)})),this.renderedConnectorLines=e},t.prototype.recreateScalesElements=function(){this.recreateScaleElements(this.settings.viewType,0),this.settings.viewType!=o.ViewType.Weeks&&this.recreateScaleElements(r.DateUtils.ViewTypeToScaleMap[this.settings.viewType],1)},t.prototype.recreateScaleElements=function(t,e){var n=this,i=this.gridLayoutCalculator.getRenderedScaleItemIndices(t,this.renderedColIndices),o=this.renderedScaleItemIndices[t-this.settings.viewType]||[];this.recreateElements(o,i,(function(t){n.removeScaleElementAndBorder(t,e)}),(function(i){n.createScaleElementAndBorder(i,e,t)})),this.renderedScaleItemIndices[t-this.settings.viewType]=i},t.prototype.recreateElements=function(t,e,n,i){t.filter((function(t){return-1===e.indexOf(t)})).forEach((function(t){n(t)})),e.filter((function(e){return-1===t.indexOf(e)})).forEach((function(t){i(t)}))},t.prototype.recreateTaskElement=function(t){var e=this,n=this.renderedRowIndices.filter((function(e){return e===t})).length>0,i=this.viewModel.items[t],o=i&&i.task;if(o){var r=this.viewModel.dependencies.items.filter((function(t){return t.predecessorId==o.id||t.successorId==o.id}));r.length&&r.forEach((function(t){return e.recreateConnectorLineElement(t.internalId)})),n&&(this.removeTaskElement(t),this.createTaskElement(t))}},t.prototype.recreateConnectorLineElement=function(t,e){var n=this;void 0===e&&(e=!1);var i=[];this.renderedConnectorLines=this.renderedConnectorLines.filter((function(e){return e.attr["dependency-id"]!=t||(i.push(e),!1)}));var o=i.length>0;i.forEach((function(t){n.removeConnectorLineElement(t)})),i=this.gridLayoutCalculator.updateTileToConnectorLinesMap(t),(o||e)&&i.forEach((function(t){n.createConnectorLineElement(t),n.renderedConnectorLines.push(t)}))},t.prototype.allowTaskAreaBorders=function(t){return t?this.settings.areHorizontalBordersEnabled:this.settings.areVerticalBordersEnabled},t.prototype.createTaskAreaBorderAndTaskElement=function(t,e){this.allowTaskAreaBorders(e)&&this.createTaskAreaBorder(t,!e),e&&this.createTaskElement(t)},t.prototype.removeTaskAreaBorderAndTaskElement=function(t,e){this.allowTaskAreaBorders(e)&&this.removeTaskAreaBorder(t,!e),e&&this.removeTaskElement(t)},t.prototype.getTaskAreaBordersDictionary=function(t){return t?this.vertTaskAreaBorders:this.horTaskAreaBorders},t.prototype.createTaskAreaBorder=function(t,e){var n=this.gridLayoutCalculator.getTaskAreaBorderInfo(t,e);this.createElement(n,t,this.taskArea,this.getTaskAreaBordersDictionary(e))},t.prototype.removeTaskAreaBorder=function(t,e){this.removeElement(null,t,this.taskArea,this.getTaskAreaBordersDictionary(e))},t.prototype.createScaleElementAndBorder=function(t,e,n){this.createScaleElement(t,e,n),this.createScaleBorder(t,e,n)},t.prototype.createScaleElement=function(t,e,n){var i=this.gridLayoutCalculator.getScaleElementInfo(t,n),o=this.createScaleElementCore(t,i,e,this.scaleElements);o.innerText=this.elementTextHelper.getScaleItemText(t,n),o.style.lineHeight=this.etalonSizeValues.scaleItemHeight+"px"},t.prototype.createScaleBorder=function(t,e,n){var i=this.gridLayoutCalculator.getScaleBorderInfo(t,n);this.createScaleElementCore(t,i,e,this.scaleBorders)},t.prototype.createScaleElementCore=function(t,e,n,i){return i[n]||(i[n]=[]),this.createElement(e,t,this.timeScaleAreas[n],i[n])},t.prototype.removeScaleElementAndBorder=function(t,e){this.removeElement(null,t,this.timeScaleAreas[e],this.scaleElements[e]),this.removeElement(null,t,this.timeScaleAreas[e],this.scaleBorders[e])},t.prototype.createTaskElement=function(t){this.createTaskWrapperElement(t),this.settings.taskTitlePosition==o.TaskTitlePosition.Outside&&this.createTaskTextElement(t,this.taskElements[t]);var e=this.createTaskVisualElement(t);this.viewModel.items[t].task.isMilestone()||(this.settings.taskTitlePosition==o.TaskTitlePosition.Inside&&this.createTaskTextElement(t,e),this.createTaskProgressElement(t,e)),this.settings.showResources&&(this.createResourcesWrapperElement(t),this.createResources(t)),this.viewModel.items[t].selected&&this.createTaskSelectionElement(t),this.isHighlightRowElementAllowed(t)&&this.createHighlightRowElement(t)},t.prototype.isHighlightRowElementAllowed=function(t){return t%2!==0&&this.settings.areAlternateRowsEnabled||this.viewModel.items[t].children.length>0},t.prototype.createResourcesWrapperElement=function(t){var e=this.gridLayoutCalculator.getTaskResourcesWrapperElementInfo(t);this.createElement(e,t,this.taskArea,this.resourcesElements),this.resourcesElements[t].style.display=this.elementTextHelper.getTaskVisibility(t)?"":"none"},t.prototype.createResources=function(t){for(var e=this.viewModel.items[t].resources.items,n=0;n<e.length;n++)this.createResourceElement(t,e[n])},t.prototype.createTaskWrapperElement=function(t){var e=this.gridLayoutCalculator.getTaskWrapperElementInfo(t);this.createElement(e,t,this.taskArea,this.taskElements),this.taskElements[t].style.display=this.elementTextHelper.getTaskVisibility(t)?"":"none"},t.prototype.createTaskVisualElement=function(t){var e=this.gridLayoutCalculator.getTaskElementInfo(t,this.settings.taskTitlePosition!==o.TaskTitlePosition.Inside),n=this.createElement(e,t,this.taskElements[t]);return this.taskAreaManager.attachEventsOnTask(n),n},t.prototype.createTaskProgressElement=function(t,e){var n=this.gridLayoutCalculator.getTaskProgressElementInfo(t);this.createElement(n,t,e)},t.prototype.createTaskTextElement=function(t,e){var n=this.gridLayoutCalculator.getTaskTextElementInfo(t,this.settings.taskTitlePosition==o.TaskTitlePosition.Inside);this.createElement(n,t,e).innerText=this.elementTextHelper.getTaskText(t)},t.prototype.createResourceElement=function(t,e){var n=this.gridLayoutCalculator.getTaskResourceElementInfo();e.color&&(n.style.backgroundColor=e.color),this.createElement(n,t,this.resourcesElements[t]).innerText=e.text},t.prototype.createTaskSelectionElement=function(t){var e=this.gridLayoutCalculator.getSelectionElementInfo(t);this.taskAreaContainer.isExternal&&!this.settings.areHorizontalBordersEnabled&&e.size.height++,this.createElement(e,t,this.taskArea,this.selectionElements)},t.prototype.createHighlightRowElement=function(t){var e=this.gridLayoutCalculator.getHighlightRowInfo(t);this.createElement(e,t,this.taskArea,this.hlRowElements)},t.prototype.removeTaskElement=function(t){this.removeElement(null,t,this.taskArea,this.taskElements),this.removeElement(null,t,this.taskArea,this.resourcesElements),this.removeElement(null,t,this.taskArea,this.selectionElements),this.isHighlightRowElementAllowed(t)&&this.removeElement(null,t,this.taskArea,this.hlRowElements)},t.prototype.createConnectorLineElement=function(t){var e=t.attr["dependency-id"];return this.taskEditController.isDependencySelected(e)&&(t.className=t.className+" active"),this.createElement(t,null,this.taskArea,this.connectorLinesToElementsMap)},t.prototype.removeConnectorLineElement=function(t){this.removeElement(t,null,this.taskArea,this.connectorLinesToElementsMap)},t.prototype.createNoWorkingIntervalElement=function(t){return this.createElement(t,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},t.prototype.removeNoWorkingIntervalElement=function(t){this.removeElement(t,null,this.taskArea,this.noWorkingIntervalsToElementsMap)},t.prototype.createElement=function(t,e,n,i){var o=document.createElement("DIV");for(var r in t.assignToElement(o),n.appendChild(o),i&&(i instanceof Array&&null!==e?i[e]=o:i[t.id]=o),t.attr)t.attr.hasOwnProperty(r)&&o.setAttribute(r,t.attr[r]);for(var r in t.style)t.style.hasOwnProperty(r)&&(o.style[r]=t.style[r]);return o},t.prototype.removeElement=function(t,e,n,i){var o;i instanceof Array&&null!==e?(o=i[e],delete i[e]):(o=i[t.id],delete i[t.id]),o&&o.parentNode==n&&n.removeChild(o)},t.prototype.calculateAutoViewType=function(t,e){var n=(e.getTime()-t.getTime())/36e5;return n>8760?o.ViewType.Years:n>720?o.ViewType.Months:n>168?o.ViewType.Weeks:n>24?o.ViewType.Days:n>6?o.ViewType.SixHours:n>1?o.ViewType.Hours:o.ViewType.TenMinutes},t.prototype.changeTaskExpanded=function(t,e){var n=this.getTaskByPublicId(t);n&&this.viewModel.changeTaskExpanded(n.internalId,e)},t.prototype.expandTask=function(t){this.viewModel.changeTaskExpanded(t,!0)},t.prototype.collapseTask=function(t){this.viewModel.changeTaskExpanded(t,!1)},t.prototype.showTask=function(t){this.viewModel.changeTaskVisibility(t,!0)},t.prototype.hideTask=function(t){this.viewModel.changeTaskVisibility(t,!1)},t.prototype.getTaskVisibility=function(t){return this.viewModel.getTaskVisibility(t)},t.prototype.unselectCurrentSelectedTask=function(){this.unselectTask(this.currentSelectedTaskID)},t.prototype.getTaskSelected=function(t){return this.viewModel.getTaskSelected(t)},t.prototype.setViewType=function(t,e){void 0===e&&(e=!0),void 0==t&&(t=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.settings.viewType!==t&&(this.settings.viewType=t,this.updateTickSizeWidth(),this.resetAndUpdate(),e&&this.scrollLeftByViewType(),this.ganttOwner.UpdateGanttViewType&&this.ganttOwner.UpdateGanttViewType(t))},t.prototype.setTaskTitlePosition=function(t){this.settings.taskTitlePosition!==t&&(this.settings.taskTitlePosition=t,this.resetAndUpdate())},t.prototype.setShowResources=function(t){this.settings.showResources!==t&&(this.settings.showResources=t,this.resetAndUpdate())},t.prototype.setFirstDayOfWeek=function(t){this.settings.firstDayOfWeek!==t&&(this.settings.firstDayOfWeek=t,this.resetAndUpdate())},t.prototype.loadOptionsFromGanttOwner=function(){this.tickSize.height=this.ganttOwner.getRowHeight();var t=this.ganttOwner.getGanttTasksData();this.dataRange=new s.DateRange(this.getGanttViewStartDate(t),this.getGanttViewEndDate(t)),void 0==this.settings.viewType&&(this.settings.viewType=this.calculateAutoViewType(this.dataRange.start,this.dataRange.end)),this.updateTickSizeWidth(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.dispatcher=new b.ModelChangesDispatcher;var e=this.ganttOwner.getModelChangesListener();e&&this.dispatcher.onModelChanged.add(e),this.viewModel=new i.ViewVisualModel(this,t,this.ganttOwner.getGanttDependenciesData(),this.ganttOwner.getGanttResourcesData(),this.ganttOwner.getGanttResourceAssignmentsData(),this.range,this.ganttOwner.getGanttWorkTimeRules()),this.modelManipulator=new m.ModelManipulator(this.viewModel,this.dispatcher)},t.prototype.resetAndUpdate=function(){this.reset(),this.range=this.getDateRange(this.dataRange.start,this.dataRange.end),this.viewModel.updateRange(this.range),this.setupHelpers(),this.createTimeScaleAreas(),this.setSizeForTaskArea(),C.Browser.IE&&this.taskEditController.createElements(),this.updateView()},t.prototype.selectTask=function(t){this.selectDependency(null),this.viewModel.changeTaskSelected(t,!0),this.currentSelectedTaskID=t},t.prototype.unselectTask=function(t){this.viewModel.changeTaskSelected(t,!1)},t.prototype.selectTaskById=function(t){this.unselectCurrentSelectedTask();var e=this.getTaskByPublicId(t);e&&this.selectTask(e.internalId)},t.prototype.selectDependency=function(t){this.taskEditController.selectDependency(t),this.gridLayoutCalculator.createTileToConnectorLinesMap(),this.recreateConnectorLineElements()},t.prototype.getTaskAreaContainer=function(){return this.taskAreaContainer},t.prototype.setWidth=function(t){this.mainElement.style.width=t+"px"},t.prototype.setAllowSelection=function(t){this.settings.allowSelectTask=t},t.prototype.setEditingSettings=function(t){this.settings.editing=t},t.prototype.setValidationSettings=function(t){this.settings.validation=t},t.prototype.setRowLinesVisible=function(t){this.settings.areHorizontalBordersEnabled=t,this.prepareTaskAreaContainer(),this.resetAndUpdate()},t.prototype.setStripLines=function(t){this.settings.stripLines=y.StripLineSettings.parse(t),this.clearStripLinesUpdater(),this.initializeStripLinesUpdater(),this.recreateStripLines()},t.prototype.setTaskTitle=function(t,e){var n=this.getTaskByPublicId(t);n&&this.commandManager.changeTaskTitleCommand.execute(n.internalId,e)},t.prototype.setTaskProgress=function(t,e){var n=this.getTaskByPublicId(t);if(n){var i=Math.max(e,0);i=Math.min(e,100),this.commandManager.changeTaskProgressCommand.execute(n.internalId,i)}},t.prototype.setTaskStart=function(t,e){var n=this.getTaskByPublicId(t);n&&this.commandManager.changeTaskStartCommand.execute(n.internalId,k.DateTimeUtils.getMinDate(e,n.end))},t.prototype.setTaskEnd=function(t,e){var n=this.getTaskByPublicId(t);n&&this.commandManager.changeTaskEndCommand.execute(n.internalId,k.DateTimeUtils.getMaxDate(e,n.start))},t.prototype.removeTask=function(t){var e=this.getTaskByPublicId(t);e&&this.commandManager.removeTaskCommand.execute(e.internalId)},t.prototype.createTask=function(t){var e=this.getTaskByPublicId(t),n=e?e.internalId:null;this.commandManager.createTaskCommand.execute(null,null,"",n)},t.prototype.getTaskByPublicId=function(t){return this.viewModel.tasks.getItemByPublicId(t)},t.prototype.getPrevTask=function(t){var e=this.viewModel.findItem(t),n=(e.parent||this.viewModel.root).children.indexOf(e)-1;return n>-1?e.parent.children[n].task:e.parent.task},t.prototype.updateCreatedTaskIdAfterServerUpdate=function(t,e){var n=this.viewModel.findItem(t),i=n&&n.task;i&&(i.id=e)},t.prototype.getTaskIdByInternalId=function(t){var e=this.viewModel.findItem(t),n=e&&e.task;return n?n.id:null},t.prototype.isTaskHasChildren=function(t){var e=this.viewModel.findItem(t);return e&&e.children.length>0},t.prototype.requireFirstLoadParentAutoCalc=function(){var t=this.ganttOwner;return t.getRequireFirstLoadParentAutoCalc&&t.getRequireFirstLoadParentAutoCalc()},t.prototype.getOwnerControlMainElement=function(){var t=this.ganttOwner;return t.getMainElement&&t.getMainElement()},t.prototype.adjustOwnerControl=function(){var t=this.ganttOwner;t.adjustControl&&t.adjustControl()},t.prototype.onBrowserWindowResize=function(){this.fullScreenModeHelper.isInFullScreenMode?this.fullScreenModeHelper.adjustControlInFullScreenMode():this.adjustOwnerControl()},t.prototype.applySettings=function(t,e){void 0===e&&(e=!1);var n=y.Settings.parse(t),i=e||this.settings.equal(n);this.settings=n,i||this.resetAndUpdate()},t.prototype.getDataUpdateErrorCallback=function(){var t=this,e=this.history,n=e.getCurrentProcessingItemInfo();return function(){t.dispatcher.lock(),e.rollBackAndRemove(n),t.dispatcher.unlock(),t.barManager.updateItemsState([])}},t}();e.GanttView=T},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(22),o=n(48),r=n(50),a=n(51),s=n(53),l=n(54),u=n(55),c=n(2),d=function(){function t(t,e,n,s,l,c,d){this._fLockCount=0,this.owner=t,this.tasks=new o.TaskCollection,this.tasks.importFromObject(e),this.dependencies=new r.DependencyCollection,this.dependencies.importFromObject(n),this.resources=new i.ResourceCollection,this.resources.importFromObject(s),this.assignments=new a.ResourceAssignmentCollection,this.assignments.importFromObject(l),this._itemList=new Array,this._viewItemList=new Array,this._workTimeCalculator=new u.WorkingTimeCalculator(c,d),this.updateModel()}return t.prototype.updateModel=function(){this._itemList.splice(0,this._itemList.length);for(var t=this.tasks.items,e=0;e<t.length;e++){var n=t[e];n&&this._itemList.push(new s.ViewVisualModelItem(n,this.getAssignedResources(n)))}this.createHierarchy(),this.populateItemsForView(),this.owner&&this.owner.currentSelectedTaskID&&this.changeTaskSelected(this.owner.currentSelectedTaskID,!0)},t.prototype.createHierarchy=function(){var t=this;this.root=new s.ViewVisualModelItem(null,null);for(var e=this._itemList,n=this.requireFirstLoadParentAutoCalc,i=function(){var i=e[r],a=i.task.parentId,s=e.filter((function(t){return t.task&&t.task.internalId===a||t.task.internalId.toString()===a}))[0]||o.root;i.parent=s,s.addChild(i),n&&o.owner.validationController.recalculateParents(i,(function(e){if(c.JsonUtils.isExists(e.id)){var n=t.tasks.getItemById(e.id);c.JsonUtils.isExists(e.start)&&(n.start=e.start),c.JsonUtils.isExists(e.end)&&(n.end=e.end),c.JsonUtils.isExists(e.progress)&&(n.progress=e.progress)}}))},o=this,r=0;r<e.length;r++)i();n&&this.owner.dispatcher.notifyParentDataRecalculated(this.getCurrentTaskData())},t.prototype.getCurrentTaskData=function(){var t=this;return this.tasks.items.map((function(e){return t.getTaskObjectForDataSource(e)}))},t.prototype.getTaskObjectForDataSource=function(t){var e=t.parentId&&this.tasks.getItemById(t.parentId);return{id:t.id,start:t.start,end:t.end,duration:t.duration,description:t.description,parentId:e&&e.id,progress:t.progress,taskType:t.taskType,title:t.title,customFields:t.customFields,expanded:t.expanded}},t.prototype.populateItemsForView=function(){this._viewItemList.splice(0,this._viewItemList.length),this.populateVisibleItems(this.root),this.updateVisibleItemDependencies()},t.prototype.populateVisibleItems=function(t){var e=this,n=t===this.root;t&&(t.task||n)&&(n||(this._viewItemList.push(t),t.visibleIndex=this._viewItemList.length-1),(t.getExpanded()||t===this.root)&&t.children.forEach((function(t){return e.populateVisibleItems(t)})))},t.prototype.updateVisibleItemDependencies=function(){for(var t=this._viewItemList,e=0;e<t.length;e++){var n=t[e],i=this.getTasVisibleDependencies(n.task);n.setDependencies(i)}},t.prototype.getAssignedResources=function(t){var e=this,n=new i.ResourceCollection;return this.assignments.items.filter((function(e){return e.taskId==t.internalId})).forEach((function(t){n.add(e.resources.getItemById(t.resourceId))})),n},t.prototype.getTasVisibleDependencies=function(t){for(var e=new Array,n=t.internalId,i=this.dependencies.items.filter((function(t){return t.successorId==n})),o=0;o<i.length;o++){var r=i[o],a=this.findItem(r.predecessorId);a&&a.getVisible()&&e.push(new l.ViewVisualModelDependencyInfo(r.internalId,a,r.type))}return e},t.prototype.changeTaskExpanded=function(t,e){var n=this.tasks.getItemById(String(t));n&&(n.expanded=e,this.changed())},t.prototype.changeTaskVisibility=function(t,e){var n=this.findItem(t);n&&(n.visible=e,this.changed())},t.prototype.changeTaskSelected=function(t,e){var n=this._itemList.filter((function(e){return e.task&&e.task.internalId===t}))[0];if(n){n.selected=e;var i=this.findItem(t),o=i&&i.visibleIndex;o>-1&&this.owner.recreateTaskElement(o)}},t.prototype.beginUpdate=function(){this._fLockCount++},t.prototype.endUpdate=function(){this._fLockCount--,0==this._fLockCount&&this.changed()},t.prototype.changed=function(){0===this._fLockCount&&(this.populateItemsForView(),this.owner&&this.owner.onVisualModelChanged&&this.owner.onVisualModelChanged())},t.prototype.findItem=function(t){return this._viewItemList.filter((function(e){return e.task&&e.task.internalId===t}))[0]},Object.defineProperty(t.prototype,"items",{get:function(){return this._viewItemList.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemCount",{get:function(){return this.items.length},enumerable:!0,configurable:!0}),t.prototype.getTaskVisibility=function(t){var e=this.findItem(t);return!!e&&e.getVisible()},t.prototype.getTaskSelected=function(t){var e=this.findItem(t);return!!e&&e.selected},Object.defineProperty(t.prototype,"noWorkingIntervals",{get:function(){return this._workTimeCalculator.noWorkingIntervals},enumerable:!0,configurable:!0}),t.prototype.updateRange=function(t){this._workTimeCalculator.updateRange(t)},t.prototype.taskHasChildrenByIndex=function(t){return this._viewItemList[t].children.length>0},t.prototype.taskHasChildren=function(t){var e=this.findItem(t);return e&&e.children.length>0},Object.defineProperty(t.prototype,"parentAutoCalc",{get:function(){var t=this.owner&&this.owner.settings;return t&&t.validation&&t.validation.autoUpdateParentTasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"requireFirstLoadParentAutoCalc",{get:function(){return this.parentAutoCalc&&this.owner.requireFirstLoadParentAutoCalc()},enumerable:!0,configurable:!0}),t.prototype.isTaskToCalculateByChildren=function(t){return this.parentAutoCalc&&this.taskHasChildren(t)},t.prototype.hasTasks=function(){return this.tasks.length>0},t.prototype.getDataUpdateErrorCallback=function(){return this.owner.getDataUpdateErrorCallback&&this.owner.getDataUpdateErrorCallback()},t}();e.ViewVisualModel=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(2),r=function(t){function e(){var e=t.call(this)||this;return e.text="",e.color="",e}return i.__extends(e,t),e.prototype.assignFromObject=function(e){o.JsonUtils.isExists(e)&&(t.prototype.assignFromObject.call(this,e),this.text=e.text,o.JsonUtils.isExists(e.color)&&(this.color=e.color))},e}(n(9).DataObject);e.Resource=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(49),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.createItem=function(){return new o.Task},e}(n(11).CollectionBase);e.TaskCollection=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(0),r=n(2),a=n(9);!function(t){t[t.Regular=0]="Regular",t[t.Summary=1]="Summary",t[t.Milestone=2]="Milestone"}(i||(i={}));var s=function(t){function e(){var e=t.call(this)||this;return e.start=null,e.end=null,e.duration=null,e.description="",e.parentId="",e.title="",e.owner=null,e.progress=0,e.taskType=null,e.customFields={},e.expanded=!0,e.color="",e}return o.__extends(e,t),e.prototype.assignFromObject=function(e){r.JsonUtils.isExists(e)&&(t.prototype.assignFromObject.call(this,e),this.owner=e.owner,this.parentId=null!=e.parentId?String(e.parentId):null,this.description=e.description,this.title=e.title,this.start=e.start,this.end=e.end,this.start="string"==typeof e.start?new Date(e.start):e.start||new Date(0),this.end="string"==typeof e.end?new Date(e.end):e.end||new Date(0),this.duration=e.duration,this.progress=e.progress,this.taskType=e.taskType,r.JsonUtils.isExists(e.expanded)&&(this.expanded=!!e.expanded),r.JsonUtils.isExists(e.color)&&(this.color=e.color),this.assignCustomFields(e.customFields))},e.prototype.assignCustomFields=function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this.customFields[e]=t[e])},e.prototype.isMilestone=function(){return this.start.getTime()==this.end.getTime()},e.prototype.getDuration=function(){return this.end.getTime()-this.start.getTime()},e}(a.DataObject);e.Task=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(12),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.createItem=function(){return new r.Dependency},e}(o.CollectionBase);e.DependencyCollection=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(52),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.createItem=function(){return new r.ResourceAssignment},e}(o.CollectionBase);e.ResourceAssignmentCollection=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(9),r=n(2),a=function(t){function e(){var e=t.call(this)||this;return e.taskId="",e.resourceId="",e}return i.__extends(e,t),e.prototype.assignFromObject=function(e){r.JsonUtils.isExists(e)&&(t.prototype.assignFromObject.call(this,e),this.taskId=String(e.taskId),this.resourceId=String(e.resourceId))},e}(o.DataObject);e.ResourceAssignment=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(2),o=function(){function t(t,e){this.dependencies=new Array,this.parent=null,this.visible=!0,this.selected=!1,this.visibleIndex=-1,this.task=t,this.resources=e,this.children=new Array}return Object.defineProperty(t.prototype,"resourceText",{get:function(){var t="";return this.resources.items.forEach((function(e){return t+=e.text+" "})),t},enumerable:!0,configurable:!0}),t.prototype.addChild=function(t){i.JsonUtils.isExists(t)&&this.children.indexOf(t)<0&&this.children.push(t)},t.prototype.removeChild=function(t){var e=this.children.indexOf(t);e>-1&&this.children.splice(e,1)},t.prototype.getExpanded=function(){return!!this.task&&this.task.expanded},t.prototype.getVisible=function(){if(!this.visible)return!1;for(var t=this.parent;t;){if(!t.visible)return!1;t=t.parent}return!0},t.prototype.changeVisibility=function(t){this.visible=t},t.prototype.changeSelection=function(t){this.selected=t},t.prototype.setDependencies=function(t){t&&(this.dependencies=t.slice())},t}();e.ViewVisualModelItem=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){this.id=t,this.predecessor=e,this.type=n};e.ViewVisualModelDependencyInfo=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(56),o=n(64),r=n(3),a=function(){function t(t,e){this._workingRules=new i.WorkingDayRuleCollection,this._workDayList=new Array,this._calculationRange=t,this._workingRules.importFromObject(e)}return t.prototype.calculateWorkDayList=function(){if(this._calculationRange){this.clearList();for(var t=this._workingRules.items,e=0;e<t.length;e++)this.processRule(t[e]);this.sortList()}},t.prototype.processRule=function(t){for(var e=t.recurrence.calculatePoints(this._calculationRange.start,this._calculationRange.end),n=function(n){var a=e[n],s=r.DateTimeUtils.getDayNumber(a),l=i._workDayList.filter((function(t){return t.dayNumber==s}))[0];l?(l.isWorkDay=l.isWorkDay&&t.isWorkDay,l.addWorkingIntervals(t.workTimeRanges)):i._workDayList.push(new o.DayWorkingTimeInfo(s,t.isWorkDay,t.workTimeRanges))},i=this,a=0;a<e.length;a++)n(a)},t.prototype.sortList=function(){this._workDayList.sort((function(t,e){return t.dayNumber-e.dayNumber}))},t.prototype.clearList=function(){this._workDayList.splice(0,this._workDayList.length)},t.prototype.calculateNoWorkTimeIntervals=function(){var t=this,e=new Array;return 0==this._workDayList.length&&this.calculateWorkDayList(),this._workDayList.forEach((function(n){return e=e.concat(t.getNoWorkTimeRangesFromDay(n))})),this.concatJointedRanges(e)},t.prototype.concatJointedRanges=function(t){for(var e=new Array,n=0;n<t.length;n++){var i=t[n];e.length>0&&r.DateTimeUtils.compareDates(e[e.length-1].end,i.start)<2?e[e.length-1].end=i.end:e.push(i)}return e},t.prototype.getNoWorkTimeRangesFromDay=function(t){return t.noWorkingIntervals.map((function(e){return r.DateTimeUtils.convertTimeRangeToDateRange(e,t.dayNumber)}))},Object.defineProperty(t.prototype,"noWorkingIntervals",{get:function(){return this._noWorkingIntervals||(this._noWorkingIntervals=this.calculateNoWorkTimeIntervals()),this._noWorkingIntervals.slice()},enumerable:!0,configurable:!0}),t.prototype.updateRange=function(t){this._calculationRange=t,this.invalidate()},t.prototype.invalidate=function(){this._noWorkingIntervals=null,this.clearList()},t}();e.WorkingTimeCalculator=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(11),r=n(57),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.createItem=function(){return new r.WorkingTimeRule},e}(o.CollectionBase);e.WorkingDayRuleCollection=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(9),r=n(2),a=n(3),s=n(32),l=n(33),u=function(t){function e(e,n,i){void 0===e&&(e=null),void 0===n&&(n=!0),void 0===i&&(i=null);var o=t.call(this)||this;return o.isWorkDay=!0,o.workTimeRanges=new Array,o.recurrence=e,o.isWorkDay=n,i&&o.workTimeRanges.concat(i),o}return i.__extends(e,t),e.prototype.assignFromObject=function(e){if(r.JsonUtils.isExists(e)){t.prototype.assignFromObject.call(this,e),this.recurrence=s.RecurrenceFactory.createRecurrenceByType(e.recurrenceType)||new l.Daily,r.JsonUtils.isExists(e.recurrence)&&this.recurrence.assignFromObject(e.recurrence),r.JsonUtils.isExists(e.isWorkDay)&&(this.isWorkDay=!!e.isWorkDay);var n=a.DateTimeUtils.convertToTimeRanges(e.workTimeRanges);n&&(this.workTimeRanges=n)}},e}(o.DataObject);e.WorkingTimeRule=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.DayOfWeek||(e.DayOfWeek={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.January=0]="January",t[t.February=1]="February",t[t.March=2]="March",t[t.April=3]="April",t[t.May=4]="May",t[t.June=5]="June",t[t.July=6]="July",t[t.August=7]="August",t[t.September=8]="September",t[t.October=9]="October",t[t.November=10]="November",t[t.December=11]="December"}(e.Month||(e.Month={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(3),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.checkDate=function(t){return r.DateTimeUtils.checkDayOfWeek(this.dayOfWeekInternal,t)},e.prototype.checkInterval=function(t){return r.DateTimeUtils.getWeeksBetween(this.start,t)%this.interval==0},e.prototype.calculatePointByInterval=function(t){var e=r.DateTimeUtils.getWeeksBetween(this.start,t),n=Math.floor(e/this.interval);(e%this.interval>0||t.getDay()>=this.dayOfWeekInternal)&&n++;var i=n*this.interval;return this.calcNextPointWithWeekCount(this.start,i)},e.prototype.calculateNearestPoint=function(t){var e=this.dayOfWeekInternal-t.getDay();return e>0?r.DateTimeUtils.addDays(new Date(t),e):this.calcNextPointWithWeekCount(t,1)},e.prototype.calcNextPointWithWeekCount=function(t,e){void 0===e&&(e=1);var n=7*e+this.dayOfWeekInternal-t.getDay();return r.DateTimeUtils.addDays(new Date(t),n)},Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(t){this.dayOfWeekInternal=t},enumerable:!0,configurable:!0}),e}(o.RecurrenceBase);e.Weekly=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(3),a=n(62),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.checkDate=function(t){return this._calculateByDayOfWeek?r.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(t,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):r.DateTimeUtils.checkDayOfMonth(this.dayInternal,t)},e.prototype.checkInterval=function(t){return r.DateTimeUtils.getMonthsDifference(this.start,t)%this.interval==0},e.prototype.calculatePointByInterval=function(t){var e=this.start,n=r.DateTimeUtils.getMonthsDifference(e,t),i=Math.floor(n/this.interval)*this.interval,o=new a.MonthInfo(e.getMonth(),e.getFullYear());o.addMonths(i);var s=this.getSpecDayInMonth(o.year,o.month);return r.DateTimeUtils.compareDates(s,t)>=0&&(o.addMonths(this.interval),s=this.getSpecDayInMonth(o.year,o.month)),s},e.prototype.calculateNearestPoint=function(t){var e=t.getMonth(),n=t.getFullYear(),i=this.getSpecDayInMonth(n,e);if(r.DateTimeUtils.compareDates(i,t)>=0){var o=new a.MonthInfo(e,n);o.addMonths(1),i=this.getSpecDayInMonth(o.year,o.month)}return i},Object.defineProperty(e.prototype,"day",{get:function(){return this.dayInternal},set:function(t){this.dayInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(t){this.dayOfWeekInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(t){this.dayOfWeekOccurrenceInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(t){this._calculateByDayOfWeek=t},enumerable:!0,configurable:!0}),e}(o.RecurrenceBase);e.Monthly=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3),o=function(){function t(t,e){this.month=t,this.year=e}return t.prototype.addMonths=function(t){var e=i.DateTimeUtils.getNextMonth(this.month,t),n=Math.floor(t/12);e<this.month&&++n,this.month=e,this.year+=n},t}();e.MonthInfo=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(15),r=n(3),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.checkDate=function(t){return!!r.DateTimeUtils.checkMonth(this.month,t)&&(this._calculateByDayOfWeek?r.DateTimeUtils.checkDayOfWeekOccurrenceInMonth(t,this.dayOfWeekInternal,this.dayOfWeekOccurrenceInternal):r.DateTimeUtils.checkDayOfMonth(this.dayInternal,t))},e.prototype.checkInterval=function(t){return r.DateTimeUtils.getYearsDifference(this.start,t)%this.interval==0},e.prototype.calculatePointByInterval=function(t){var e=r.DateTimeUtils.getYearsDifference(this.start,t),n=Math.floor(e/this.interval)*this.interval,i=this.start.getFullYear()+n,o=this.getSpecDayInMonth(i,this.monthInternal);return r.DateTimeUtils.compareDates(o,t)>=0&&(i+=this.interval,o=this.getSpecDayInMonth(i,this.monthInternal)),o},e.prototype.calculateNearestPoint=function(t){var e=t.getFullYear(),n=this.getSpecDayInMonth(e,this.monthInternal);return r.DateTimeUtils.compareDates(n,t)>=0&&(n=this.getSpecDayInMonth(++e,this.monthInternal)),n},Object.defineProperty(e.prototype,"month",{get:function(){return this.monthInternal},set:function(t){this.monthInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"day",{get:function(){return this.dayInternal},set:function(t){this.dayInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeek",{get:function(){return this.dayOfWeekInternal},set:function(t){this.dayOfWeekInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dayOfWeekOccurrence",{get:function(){return this.dayOfWeekOccurrenceInternal},set:function(t){this.dayOfWeekOccurrenceInternal=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"calculateByDayOfWeek",{get:function(){return this._calculateByDayOfWeek},set:function(t){this._calculateByDayOfWeek=t},enumerable:!0,configurable:!0}),e}(o.RecurrenceBase);e.Yearly=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(30),o=n(3),r=n(29),a=function(){function t(t,e,n){void 0===t&&(t=0),void 0===e&&(e=!0),void 0===n&&(n=null),this._workingIntervals=new Array,this.dayNumber=t,this.isWorkDay=e,this.addWorkingIntervals(n)}return t.prototype.addWorkingIntervals=function(t){t&&(this._workingIntervals=this._workingIntervals.concat(t.filter((function(t){return!!t}))),this.rearrangeWorkingIntervals())},t.prototype.rearrangeWorkingIntervals=function(){for(var t=0;t<this._workingIntervals.length;t++)this.concatWithIntersectedRanges(this._workingIntervals[t]);this.sortIntervals()},t.prototype.concatWithIntersectedRanges=function(t){var e=this;this.getIntersectedIntervals(t).forEach((function(n){t.concatWith(n),e.removeInterval(n)}))},t.prototype.getIntersectedIntervals=function(t){return this._workingIntervals.filter((function(e){return e.hasIntersect(t)&&e!==t}))},t.prototype.sortIntervals=function(){this._workingIntervals.sort((function(t,e){return o.DateTimeUtils.caclTimeDifference(e.start,t.start)}))},t.prototype.removeInterval=function(t){var e=this._workingIntervals.indexOf(t);e>-1&&e<this._workingIntervals.length&&this._workingIntervals.splice(e,1)},t.prototype.clearIntervals=function(){this._workingIntervals.splice(0,this._workingIntervals.length)},Object.defineProperty(t.prototype,"workingIntervals",{get:function(){return this._workingIntervals.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"noWorkingIntervals",{get:function(){var t=new Array;if(this.isWorkDay&&0==this._workingIntervals.length)return t;var e=this._workingIntervals.map((function(t){return t.end}));e.splice(0,0,new r.Time);var n=this._workingIntervals.map((function(t){return t.start}));n.push(o.DateTimeUtils.getLastTimeOfDay());for(var a=0;a<e.length;a++){var s=e[a],l=n[a];o.DateTimeUtils.areTimesEqual(s,l)||t.push(new i.TimeRange(s,l))}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isWorkDay",{get:function(){return this._isWorkDay},set:function(t){this._isWorkDay=t,t||this.clearIntervals()},enumerable:!0,configurable:!0}),t}();e.DayWorkingTimeInfo=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){this.marginLeft=null,this.marginTop=null,this.marginRight=null,this.marginBottom=null};e.Margins=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){this.scaleItemWidths={}};e.EtalonSizeValues=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(68),o=n(69),r=n(71),a=function(t,e){this.task=new r.TaskManipulator(t,e),this.dependency=new i.TaskDependencyManipulator(t,e),this.resource=new o.ResourcesManipulator(t,e)};e.ModelManipulator=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.insertDependency=function(t,e,n,i){var o=this.viewModel.dependencies.createItem();return o.predecessorId=t,o.successorId=e,o.type=n,i&&(o.internalId=i),o.id=o.internalId,this.viewModel.dependencies.add(o),this.dispatcher.notifyDependencyInserted(this.getObjectForDataSource(o),(function(t){return o.id=t}),this.getErrorCallback()),this.viewModel.updateVisibleItemDependencies(),this.viewModel.owner.recreateConnectorLineElement(o.internalId,!0),o},e.prototype.removeDependency=function(t){var e=this.viewModel.dependencies.getItemById(t);return this.viewModel.dependencies.remove(e),this.dispatcher.notifyDependencyRemoved(e.id,this.getErrorCallback()),this.viewModel.updateVisibleItemDependencies(),this.viewModel.owner.recreateConnectorLineElement(e.internalId),e},e.prototype.getObjectForDataSource=function(t){return{id:t.id,predecessorId:this.viewModel.tasks.getItemById(t.predecessorId).id,successorId:this.viewModel.tasks.getItemById(t.successorId).id,type:t.type}},e}(n(17).BaseManipulator);e.TaskDependencyManipulator=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(17),r=n(70),a=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.properties=new r.ResourcePropertiesManipulator(e,n),i}return i.__extends(e,t),e.prototype.create=function(t,e,n){var i=this.viewModel.resources.createItem();return i.text=t,e&&(i.internalId=e),i.id=i.internalId,this.viewModel.resources.add(i),this.dispatcher.notifyResourceCreated(this.getResourceObjectForDataSource(i),(function(t){i.id=t,n&&n()}),this.getErrorCallback()),i},e.prototype.remove=function(t){var e=this.viewModel.resources.getItemById(t);if(!e)throw new Error("Invalid resource id");if(this.viewModel.assignments.items.filter((function(e){return e.resourceId==t})).length)throw new Error("Can't delete assigned resource");return this.viewModel.resources.remove(e),this.dispatcher.notifyResourceRemoved(e.id,this.getErrorCallback()),e},e.prototype.assign=function(t,e,n){var i=this.viewModel.assignments.createItem();return i.resourceId=t,i.taskId=e,n&&(i.internalId=n),i.id=i.internalId,this.viewModel.assignments.add(i),this.dispatcher.notifyResourceAssigned(this.getResourceAssignmentObjectForDataSource(i),(function(t){return i.id=t}),this.getErrorCallback()),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),i},e.prototype.deassig=function(t){var e=this.viewModel.assignments.getItemById(t);return this.viewModel.assignments.remove(e),this.dispatcher.notifyResourceUnassigned(t,this.getErrorCallback()),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),e},e.prototype.getResourceObjectForDataSource=function(t){return{id:t.id,text:t.text}},e.prototype.getResourceAssignmentObjectForDataSource=function(t){return{id:t.id,taskId:this.viewModel.tasks.getItemById(t.taskId).id,resourceId:this.viewModel.resources.getItemById(t.resourceId).id}},e}(o.BaseManipulator);e.ResourcesManipulator=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(17),r=n(38),a=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.color=new l(e,n),i}return i.__extends(e,t),e}(o.BaseManipulator);e.ResourcePropertiesManipulator=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.setValue=function(t,e){var n=this,i=this.viewModel.resources.getItemById(t),o=new r.HistoryItemState(t,this.getPropertyValue(i));return this.setPropertyValue(i,e),this.viewModel.assignments.items.filter((function(t){return t.resourceId==i.internalId})).forEach((function(t){var e=n.viewModel.findItem(t.taskId).visibleIndex;n.viewModel.owner.recreateTaskElement(e)})),o},e.prototype.restoreValue=function(t){var e=this;if(t){var n=t.value,i=this.viewModel.resources.getItemById(t.id);this.setPropertyValue(i,n),this.viewModel.assignments.items.filter((function(t){return t.resourceId==i.internalId})).forEach((function(t){var n=e.viewModel.findItem(t.taskId).visibleIndex;e.viewModel.owner.recreateTaskElement(n)}))}},e}(o.BaseManipulator);e.ResourcePropertyManipulator=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertyValue=function(t){return t.color},e.prototype.setPropertyValue=function(t,e){t.color=e,this.dispatcher.notifyResourceColorChanged(t.id,e,this.getErrorCallback())},e}(s)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(17),r=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.properties=new o.TaskPropertiesManipulator(e,n),i}return i.__extends(e,t),e.prototype.create=function(t,e,n,i,o,r){var a=this,s=this.viewModel.tasks.createItem();s.start=t,s.end=e,s.title=n;var l=this.viewModel.tasks.getItemById(i);return l&&(l.expanded=!0,s.parentId=i),o&&(s.internalId=o),s.id=s.internalId,this.viewModel.tasks.add(s),this.viewModel.updateModel(),this.dispatcher.notifyTaskCreated(this.getObjectForDataSource(s),(function(t){if(s.id=t,r&&r(),a.viewModel.requireFirstLoadParentAutoCalc){var e=a.viewModel.getCurrentTaskData().map((function(t){return""===t.parentId&&(t.parentId=null),t}));a.dispatcher.notifyParentDataRecalculated(e)}}),this.getErrorCallback()),this.viewModel.owner.resetAndUpdate(),s},e.prototype.remove=function(t){var e=this.viewModel.tasks.getItemById(t);if(!e)throw new Error("Invalid task id");if(this.viewModel.dependencies.items.filter((function(e){return e.predecessorId==t||e.successorId==t})).length)throw new Error("Can't delete task with dependency");if(this.viewModel.assignments.items.filter((function(e){return e.taskId==t})).length)throw new Error("Can't delete task with assigned resource");return this.viewModel.tasks.remove(e),this.dispatcher.notifyTaskRemoved(e.id,this.getErrorCallback()),this.viewModel.updateModel(),this.viewModel.owner.resetAndUpdate(),e},e.prototype.getObjectForDataSource=function(t){return this.viewModel.getTaskObjectForDataSource(t)},e}(o.BaseManipulator);e.TaskManipulator=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(10),o=n(73),r=function(){function t(){this.historyItems=[],this.currentIndex=-1,this.currentProcessingItemInfo=null,this.transaction=null,this.transactionLevel=-1}return t.prototype.undo=function(){this.canUndo()&&(this.activateItem(this.historyItems[this.currentIndex],!0),this.currentIndex--)},t.prototype.redo=function(){this.canRedo()&&(this.currentIndex++,this.activateItem(this.historyItems[this.currentIndex]))},t.prototype.beginTransaction=function(){this.transactionLevel++,0==this.transactionLevel&&(this.transaction=new i.CompositionHistoryItem)},t.prototype.endTransaction=function(){if(!(--this.transactionLevel>=0)){var t=this.transaction.historyItems.length;t>1?this.addInternal(this.transaction):1==t&&this.addInternal(this.transaction.historyItems.pop()),this.transaction=null}},t.prototype.addAndRedo=function(t){this.add(t),this.activateItem(t)},t.prototype.add=function(t){this.transactionLevel>=0?this.transaction.add(t):this.addInternal(t)},t.prototype.canUndo=function(){return this.currentIndex>=0},t.prototype.canRedo=function(){return this.currentIndex<this.historyItems.length-1},t.prototype.addInternal=function(t){this.currentIndex<this.historyItems.length-1&&this.historyItems.splice(this.currentIndex+1),this.historyItems.push(t),this.currentIndex++,this.deleteOldItems()},t.prototype.deleteOldItems=function(){var e=this.historyItems.length-t.MAX_HISTORY_ITEM_COUNT;e>0&&this.currentIndex>e&&(this.historyItems.splice(0,e),this.currentIndex-=e)},t.prototype.clear=function(){this.currentIndex=-1,this.historyItems=[]},t.prototype.activateItem=function(t,e){void 0===e&&(e=!1),this.currentProcessingItemInfo=new o.HistoryItemInfo(t,e),e?t.undo():t.redo(),this.currentProcessingItemInfo=null},t.prototype.getCurrentProcessingItemInfo=function(){return this.currentProcessingItemInfo},t.prototype.rollBackAndRemove=function(t){var e=t.item;this.checkAndRemoveItem(e)&&(t.isUndo?e.redo():e instanceof i.CompositionHistoryItem?e.undoItemsQuery():e.undo())},t.prototype.checkAndRemoveItem=function(t){var e=this.historyItems.indexOf(t);return e>-1?(this.historyItems.splice(e,1),this.currentIndex--):this.transaction&&(e=this.transaction.historyItems.indexOf(t))>-1&&this.transaction.historyItems.splice(e,1),e>-1},t.MAX_HISTORY_ITEM_COUNT=100,t}();e.History=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){void 0===e&&(e=!1),this.item=t,this.isUndo=e};e.HistoryItemInfo=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(75),o=n(1),r=n(80),a=n(8),s=n(81),l=function(){function t(t){this.control=t,this.mouseHandler=new i.MouseHandler(t),this.touchHandler=new s.TouchHandler(t)}return t.prototype.onMouseDown=function(t){this.mouseHandler.onMouseDown(t)},t.prototype.onMouseMove=function(t){this.mouseHandler.onMouseMove(t)},t.prototype.onMouseUp=function(t){this.mouseHandler.onMouseUp(t)},t.prototype.onMouseDblClick=function(t){this.mouseHandler.onMouseDoubleClick(t)},t.prototype.onMouseWheel=function(t){this.mouseHandler.onMouseWheel(t)},t.prototype.onTouchStart=function(t){this.touchHandler.onTouchStart(t)},t.prototype.onTouchEnd=function(t){this.touchHandler.onTouchEnd(t)},t.prototype.onTouchMove=function(t){this.touchHandler.onTouchMove(t)},t.prototype.onDoubleTap=function(t){this.touchHandler.onDoubleTap(t)},t.prototype.onKeyDown=function(t){if(this.control.isFocus){var e=this.getShortcutCode(t);e==(r.ModifierKey.Ctrl|r.KeyCode.Key_z)&&this.control.history.undo(),e==(r.ModifierKey.Ctrl|r.KeyCode.Key_y)&&this.control.history.redo(),e==r.KeyCode.Delete&&this.control.taskEditController.deleteSelectedDependency()}},t.prototype.getShortcutCode=function(t){var e=o.DomUtils.GetKeyCode(t),n=0;return t.altKey&&(n|=r.ModifierKey.Alt),t.ctrlKey&&(n|=r.ModifierKey.Ctrl),t.shiftKey&&(n|=r.ModifierKey.Shift),t.metaKey&&a.Browser.MacOSPlatform&&(n|=r.ModifierKey.Meta),n|e},t}();e.EventManager=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(39),r=n(6),a=n(76),s=n(1),l=n(77),u=n(78),c=n(79),d=n(40),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseDoubleClick=function(t){this.state.onMouseDoubleClick(t)},e.prototype.onMouseDown=function(t){switch(this.getEventSource(s.DomUtils.getEventSource(t))){case r.MouseEventSource.TaskEdit_Frame:this.switchState(new l.MouseHandlerMoveTaskState(this));break;case r.MouseEventSource.TaskEdit_Progress:this.switchState(new u.MouseHandlerProgressTaskState(this));break;case r.MouseEventSource.TaskEdit_Start:case r.MouseEventSource.TaskEdit_End:this.switchState(new c.MouseHandlerTimestampTaskState(this));break;case r.MouseEventSource.TaskEdit_DependencyStart:case r.MouseEventSource.TaskEdit_DependencyFinish:this.switchState(new d.MouseHandlerDependencyState(this))}this.state.onMouseDown(t)},e.prototype.onMouseUp=function(t){this.state.onMouseUp(t)},e.prototype.onMouseMove=function(t){this.state.onMouseMove(t)},e.prototype.onMouseWheel=function(t){this.state.onMouseWheel(t)},e.prototype.switchToDefaultState=function(){this.state=new a.MouseHandlerDefaultState(this)},e}(o.HandlerBase);e.MouseHandler=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(1),r=n(24),a=n(16),s=n(4),l=function(t){function e(e){var n=t.call(this,e)||this;return n.isInScrolling=!1,n.ganttMovingHelper=new u(n.handler.control),n}return i.__extends(e,t),e.prototype.onMouseDown=function(t){t.preventDefault();var e=o.DomUtils.getEventSource(t);if(o.DomUtils.elementHasCssClass(e,a.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||o.DomUtils.elementHasCssClass(e,a.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)){var n=e.getAttribute("dependency-id");this.handler.control.taskEditController.dependencyId!=n&&(this.handler.control.selectDependency(n),t instanceof PointerEvent&&this.handler.control.ganttOwner.showPopupMenu(new s.Point(o.DomUtils.getEventX(t),o.DomUtils.getEventY(t))))}else o.DomUtils.IsLeftButtonPressed(t)&&this.ganttMovingHelper.startMoving(t),null!=this.handler.control.taskEditController.dependencyId&&this.handler.control.selectDependency(null)},e.prototype.onMouseUp=function(t){this.ganttMovingHelper.onMouseUp(t)},e.prototype.onMouseMove=function(t){this.ganttMovingHelper.movingInfo&&(this.handler.control.taskEditController.hide(),this.ganttMovingHelper.onMouseMove(t),t.preventDefault())},e.prototype.onMouseWheel=function(t){var e=this;if(t.ctrlKey&&(t.preventDefault(),t.stopPropagation(),!this.isInScrolling)){this.isInScrolling=!0,setTimeout((function(){e.isInScrolling=!1}),50);var n=o.DomUtils.getWheelDelta(t)>0,i=o.DomUtils.getEventX(t)-o.DomUtils.getAbsolutePositionX(this.handler.control.taskAreaContainer.getElement());n?this.handler.control.zoomIn(i):this.handler.control.zoomOut(i)}},e}(r.MouseHandlerStateBase);e.MouseHandlerDefaultState=l;var u=function(){function t(t){this.gantt=t,this.movingInfo=null}return t.prototype.startMoving=function(t){this.movingInfo=this.calcMovingInfo(t),this.updateGanttAreaCursor(!0)},t.prototype.cancelMoving=function(){this.movingInfo=null},t.prototype.onMouseMove=function(t){this.move(t)},t.prototype.onMouseUp=function(t){this.cancelMoving(),this.updateGanttAreaCursor(!1)},t.prototype.move=function(t){this.updateScrollPosition(t)},t.prototype.updateScrollPosition=function(t){var e=Math.round(o.DomUtils.getEventX(t)),n=Math.round(o.DomUtils.getEventY(t)),i=e-this.movingInfo.eventX,r=n-this.movingInfo.eventY,a=i<0?-1:1,s=r<0?-1:1,l=a<0?this.movingInfo.maxRightDelta:this.movingInfo.maxLeftDelta,u=s<0?this.movingInfo.maxBottomDelta:this.movingInfo.maxTopDelta;Math.abs(i)>l&&(i=l*a),Math.abs(r)>u&&(r=u*s);var c=this.movingInfo.scrollLeft-i,d=this.movingInfo.scrollTop-r,h=this.gantt.taskAreaContainer;h.scrollLeft!==c&&(h.scrollLeft=c),h.scrollTop!==d&&(h.scrollTop=d)},t.prototype.calcMovingInfo=function(t){var e=this.gantt.taskAreaContainer;return{eventX:o.DomUtils.getEventX(t),eventY:o.DomUtils.getEventY(t),scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,maxLeftDelta:e.scrollLeft,maxRightDelta:e.scrollWidth-e.scrollLeft-e.getElement().offsetWidth,maxTopDelta:e.scrollTop,maxBottomDelta:e.scrollHeight-e.scrollTop-e.getElement().offsetHeight}},t.prototype.updateGanttAreaCursor=function(t){this.gantt.taskAreaContainer.getElement().style.cursor=t?"grabbing":"default"},t}();e.GanttMovingHelper=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseUpInternal=function(t){this.handler.control.taskEditController.confirmMove()},e.prototype.onMouseMoveInternal=function(t){this.handler.control.taskEditController.processMove(t.x-this.currentPosition.x)},e}(n(25).MouseHandlerDragBaseState);e.MouseHandlerMoveTaskState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseUpInternal=function(t){this.handler.control.taskEditController.confirmProgress()},e.prototype.onMouseMoveInternal=function(t){var e=this.getRelativePos(t);this.handler.control.taskEditController.processProgress(e)},e}(n(25).MouseHandlerDragBaseState);e.MouseHandlerProgressTaskState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(6),r=n(1),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onMouseDown=function(e){t.prototype.onMouseDown.call(this,e),this.source=this.handler.getEventSource(r.DomUtils.getEventSource(e))},e.prototype.onMouseUpInternal=function(t){this.source==o.MouseEventSource.TaskEdit_Start?this.handler.control.taskEditController.confirmStart():this.handler.control.taskEditController.confirmEnd()},e.prototype.onMouseMoveInternal=function(t){var e=this.getRelativePos(t);this.source==o.MouseEventSource.TaskEdit_Start&&this.handler.control.taskEditController.processStart(e),this.source==o.MouseEventSource.TaskEdit_End&&this.handler.control.taskEditController.processEnd(e)},e}(n(25).MouseHandlerDragBaseState);e.MouseHandlerTimestampTaskState=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.None=0]="None",t[t.Ctrl=65536]="Ctrl",t[t.Shift=262144]="Shift",t[t.Alt=1048576]="Alt",t[t.Meta=16777216]="Meta"}(e.ModifierKey||(e.ModifierKey={})),function(t){t[t.Backspace=8]="Backspace",t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Pause=19]="Pause",t[t.CapsLock=20]="CapsLock",t[t.Esc=27]="Esc",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.Left=37]="Left",t[t.Up=38]="Up",t[t.Right=39]="Right",t[t.Down=40]="Down",t[t.Insert=45]="Insert",t[t.Delete=46]="Delete",t[t.Key_0=48]="Key_0",t[t.Key_1=49]="Key_1",t[t.Key_2=50]="Key_2",t[t.Key_3=51]="Key_3",t[t.Key_4=52]="Key_4",t[t.Key_5=53]="Key_5",t[t.Key_6=54]="Key_6",t[t.Key_7=55]="Key_7",t[t.Key_8=56]="Key_8",t[t.Key_9=57]="Key_9",t[t.Key_a=65]="Key_a",t[t.Key_b=66]="Key_b",t[t.Key_c=67]="Key_c",t[t.Key_d=68]="Key_d",t[t.Key_e=69]="Key_e",t[t.Key_f=70]="Key_f",t[t.Key_g=71]="Key_g",t[t.Key_h=72]="Key_h",t[t.Key_i=73]="Key_i",t[t.Key_j=74]="Key_j",t[t.Key_k=75]="Key_k",t[t.Key_l=76]="Key_l",t[t.Key_m=77]="Key_m",t[t.Key_n=78]="Key_n",t[t.Key_o=79]="Key_o",t[t.Key_p=80]="Key_p",t[t.Key_q=81]="Key_q",t[t.Key_r=82]="Key_r",t[t.Key_s=83]="Key_s",t[t.Key_t=84]="Key_t",t[t.Key_u=85]="Key_u",t[t.Key_v=86]="Key_v",t[t.Key_w=87]="Key_w",t[t.Key_x=88]="Key_x",t[t.Key_y=89]="Key_y",t[t.Key_z=90]="Key_z",t[t.Windows=91]="Windows",t[t.ContextMenu=93]="ContextMenu",t[t.Numpad_0=96]="Numpad_0",t[t.Numpad_1=97]="Numpad_1",t[t.Numpad_2=98]="Numpad_2",t[t.Numpad_3=99]="Numpad_3",t[t.Numpad_4=100]="Numpad_4",t[t.Numpad_5=101]="Numpad_5",t[t.Numpad_6=102]="Numpad_6",t[t.Numpad_7=103]="Numpad_7",t[t.Numpad_8=104]="Numpad_8",t[t.Numpad_9=105]="Numpad_9",t[t.Multiply=106]="Multiply",t[t.Add=107]="Add",t[t.Subtract=109]="Subtract",t[t.Decimal=110]="Decimal",t[t.Divide=111]="Divide",t[t.F1=112]="F1",t[t.F2=113]="F2",t[t.F3=114]="F3",t[t.F4=115]="F4",t[t.F5=116]="F5",t[t.F6=117]="F6",t[t.F7=118]="F7",t[t.F8=119]="F8",t[t.F9=120]="F9",t[t.F10=121]="F10",t[t.F11=122]="F11",t[t.F12=123]="F12",t[t.NumLock=144]="NumLock",t[t.ScrollLock=145]="ScrollLock",t[t.Semicolon=186]="Semicolon",t[t.Equals=187]="Equals",t[t.Comma=188]="Comma",t[t.Dash=189]="Dash",t[t.Period=190]="Period",t[t.ForwardSlash=191]="ForwardSlash",t[t.GraveAccent=192]="GraveAccent",t[t.OpenBracket=219]="OpenBracket",t[t.BackSlash=220]="BackSlash",t[t.CloseBracket=221]="CloseBracket",t[t.SingleQuote=222]="SingleQuote"}(e.KeyCode||(e.KeyCode={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(39),r=n(1),a=n(6),s=n(82),l=n(83),u=n(84),c=n(85),d=n(86),h=n(87),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){switch(t.touches.length>1&&t.preventDefault(),this.getEventSource(r.DomUtils.getEventSource(t))){case a.MouseEventSource.TaskEdit_Frame:this.switchState(new s.TouchHandlerMoveTaskState(this));break;case a.MouseEventSource.TaskEdit_Progress:this.switchState(new u.TouchHandlerProgressTaskState(this));break;case a.MouseEventSource.TaskEdit_Start:case a.MouseEventSource.TaskEdit_End:this.switchState(new c.TouchHandlerTimestampTaskState(this));break;case a.MouseEventSource.TaskEdit_DependencyStart:case a.MouseEventSource.TaskEdit_DependencyFinish:this.switchState(new d.TouchHandlerDependencyState(this))}this.state.onTouchStart(t)},e.prototype.onDoubleTap=function(t){this.state.onDoubleTap(t)},e.prototype.onTouchEnd=function(t){this.state.onTouchEnd(t)},e.prototype.onTouchMove=function(t){t.touches.length>1&&(this.state instanceof h.TouchHandlerZoomState||this.switchState(new h.TouchHandlerZoomState(this))),this.state.onTouchMove(t)},e.prototype.switchToDefaultState=function(){this.state=new l.TouchHandlerDefaultState(this)},e}(o.HandlerBase);e.TouchHandler=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchEndInternal=function(t){this.handler.control.taskEditController.confirmMove()},e.prototype.onTouchMoveInternal=function(t){this.handler.control.taskEditController.processMove(t.x-this.currentPosition.x)},e}(n(26).TouchHandlerDragBaseState);e.TouchHandlerMoveTaskState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(18),r=n(4),a=n(1),s=n(14),l=n(16),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){var e=this;if(this.preventSelect=!1,clearTimeout(this.popupTimer),1===t.touches.length){var n=a.DomUtils.getEventSource(t);if(a.DomUtils.elementHasCssClass(n,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_HORIZONTAL)||a.DomUtils.elementHasCssClass(n,l.GridLayoutCalculator.CLASSNAMES.CONNECTOR_VERTICAL)){this.preventSelect=!0;var i=n.getAttribute("dependency-id");this.handler.control.taskEditController.dependencyId!=i&&this.handler.control.selectDependency(i),this.handler.control.ganttOwner.showPopupMenu(new r.Point(s.TouchUIHelper.getEventX(t),s.TouchUIHelper.getEventY(t)))}else this.popupTimer=setTimeout((function(){e.changeTaskSelection(e.getTaskIndex(t)),e.handler.control.ganttOwner.showPopupMenu(new r.Point(s.TouchUIHelper.getEventX(t),s.TouchUIHelper.getEventY(t)))}),500)}},e.prototype.onDoubleTap=function(t){},e.prototype.onTouchEnd=function(t){clearTimeout(this.popupTimer),this.preventSelect||this.changeTaskSelection(this.getTaskIndex(t))},e.prototype.onTouchMove=function(t){clearTimeout(this.popupTimer),this.preventSelect=!0},e.prototype.getTaskIndex=function(t){var e=s.TouchUIHelper.getEventY(t)-a.DomUtils.getAbsolutePositionY(this.handler.control.taskArea);return Math.floor(e/this.handler.control.tickSize.height)},e.prototype.changeTaskSelection=function(t){var e=this.handler.control.viewModel.items[t];e&&this.handler.control.ganttOwner.changeGanttTaskSelection(e.task.id,!0)},e}(o.HandlerStateBase);e.TouchHandlerDefaultState=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchEndInternal=function(t){this.handler.control.taskEditController.confirmProgress()},e.prototype.onTouchMoveInternal=function(t){var e=this.getRelativePos(t);this.handler.control.taskEditController.processProgress(e)},e}(n(26).TouchHandlerDragBaseState);e.TouchHandlerProgressTaskState=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(26),r=n(6),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(e){t.prototype.onTouchStart.call(this,e),this.source=this.handler.getEventSource(a.DomUtils.getEventSource(e))},e.prototype.onTouchEndInternal=function(t){this.source==r.MouseEventSource.TaskEdit_Start?this.handler.control.taskEditController.confirmStart():this.handler.control.taskEditController.confirmEnd()},e.prototype.onTouchMoveInternal=function(t){var e=this.getRelativePos(t);this.source==r.MouseEventSource.TaskEdit_Start&&this.handler.control.taskEditController.processStart(e),this.source==r.MouseEventSource.TaskEdit_End&&this.handler.control.taskEditController.processEnd(e)},e}(o.TouchHandlerDragBaseState);e.TouchHandlerTimestampTaskState=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(41),r=n(6),a=n(1),s=n(4),l=n(40),u=n(14),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){t.preventDefault();var e=a.DomUtils.getEventSource(t);this.source=this.handler.getEventSource(e);var n=this.getRelativePos(new s.Point(a.DomUtils.getAbsolutePositionX(e)+e.clientWidth/2,a.DomUtils.getAbsolutePositionY(e)+e.clientHeight/2));this.handler.control.taskEditController.startDependency(n)},e.prototype.onTouchEnd=function(t){var e=this.getRelativePos(new s.Point(a.DomUtils.getAbsolutePositionX(this.handler.control.taskEditController.dependencySuccessorStart)+this.handler.control.taskEditController.dependencySuccessorStart.clientWidth/2,a.DomUtils.getAbsolutePositionY(this.handler.control.taskEditController.dependencySuccessorStart)+this.handler.control.taskEditController.dependencySuccessorStart.clientHeight/2)),n=this.getRelativePos(new s.Point(a.DomUtils.getAbsolutePositionX(this.handler.control.taskEditController.dependencySuccessorFinish)+this.handler.control.taskEditController.dependencySuccessorFinish.clientWidth/2,a.DomUtils.getAbsolutePositionY(this.handler.control.taskEditController.dependencySuccessorFinish)+this.handler.control.taskEditController.dependencySuccessorFinish.clientHeight/2)),i=this.getRelativePos(new s.Point(u.TouchUIHelper.getEventX(t),u.TouchUIHelper.getEventY(t))),o=this.isTouchNearby(i,e)?r.MouseEventSource.Successor_DependencyStart:this.isTouchNearby(i,n)?r.MouseEventSource.Successor_DependencyFinish:null,c=o===r.MouseEventSource.Successor_DependencyStart||o==r.MouseEventSource.Successor_DependencyFinish?l.dependencyMap[this.source][o]:null;this.handler.control.taskEditController.endDependency(c),this.handler.switchToDefaultState()},e.prototype.onTouchMove=function(t){t.preventDefault();var e=this.getRelativePos(new s.Point(u.TouchUIHelper.getEventX(t),u.TouchUIHelper.getEventY(t))),n=Math.floor(e.y/this.handler.control.tickSize.height);this.handler.control.taskEditController.processDependency(e),this.handler.control.viewModel.tasks.items[n]&&this.handler.control.taskEditController.showDependencySuccessor(n)},e.prototype.isTouchNearby=function(t,e){return Math.abs(e.x-t.x)<=10&&Math.abs(e.y-t.y)<=10},e}(o.TouchHandlerStateBase);e.TouchHandlerDependencyState=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(18),r=n(4),a=n(1),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.onTouchStart=function(t){},e.prototype.onDoubleTap=function(t){},e.prototype.onTouchEnd=function(t){this.prevDistance=null,this.handler.switchToDefaultState()},e.prototype.onTouchMove=function(t){if(t.stopPropagation(),t.preventDefault(),t.touches.length>1){var e=this.getTouchDistance(t);if(this.prevDistance){var n=this.prevDistance-e;if(Math.abs(n)>3){var i=this.getMiddleAbsPoint(t).x;n>0?this.handler.control.zoomOut(i):this.handler.control.zoomIn(i),this.prevDistance=e}}else this.prevDistance=e}},e.prototype.getTouchDistance=function(t){var e=new r.Point(t.touches[0].clientX,t.touches[0].clientY),n=new r.Point(t.touches[1].clientX,t.touches[1].clientY);return this.getDistance(e,n)},e.prototype.getDistance=function(t,e){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},e.prototype.getMiddleAbsPoint=function(t){var e=this;return this.getMiddlePointByEvent(t,(function(t){return new r.Point(t.pageX-a.DomUtils.getAbsolutePositionX(e.handler.control.taskAreaContainer.getElement()),t.pageY-a.DomUtils.getAbsolutePositionY(e.handler.control.taskAreaContainer.getElement()))}))},e.prototype.getMiddlePointByEvent=function(t,e){if(t.touches.length>1)return new r.Point((e(t.touches[0]).x+e(t.touches[1]).x)/2,(e(t.touches[0]).y+e(t.touches[1]).y)/2)},e}(o.HandlerStateBase);e.TouchHandlerZoomState=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.element=t,this.element.addEventListener("scroll",(function(){e.updateView()}))}return Object.defineProperty(t.prototype,"scrollTop",{get:function(){return this.element.scrollTop},set:function(t){this.element.scrollTop=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollLeft",{get:function(){return this.element.scrollLeft},set:function(t){this.element.scrollLeft=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollWidth",{get:function(){return this.element.scrollWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"scrollHeight",{get:function(){return this.element.scrollHeight},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isExternal",{get:function(){return!1},enumerable:!0,configurable:!0}),t.prototype.getWidth=function(){return this.element.offsetWidth},t.prototype.getHeight=function(){return this.element.offsetHeight},t.prototype.getElement=function(){return this.element},t}();e.TaskAreaContainer=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(90),o=function(){function t(){this.onModelChanged=new i.EventDispatcher,this.isLocked=!1}return t.prototype.notifyTaskCreated=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskCreated",t,e,n)},t.prototype.notifyTaskRemoved=function(t,e){this.isLocked||this.onModelChanged.raise("NotifyTaskRemoved",t,e)},t.prototype.notifyTaskTitleChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskTitleChanged",t,e,n)},t.prototype.notifyTaskDescriptionChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskDescriptionChanged",t,e,n)},t.prototype.notifyTaskStartChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskStartChanged",t,e,n)},t.prototype.notifyTaskEndChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskEndChanged",t,e,n)},t.prototype.notifyTaskProgressChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskProgressChanged",t,e,n)},t.prototype.notifyTaskColorChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyTaskColorChanged",t,e,n)},t.prototype.notifyDependencyInserted=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyDependencyInserted",t,e,n)},t.prototype.notifyDependencyRemoved=function(t,e){this.isLocked||this.onModelChanged.raise("NotifyDependencyRemoved",t,e)},t.prototype.notifyResourceCreated=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyResourceCreated",t,e,n)},t.prototype.notifyResourceRemoved=function(t,e){this.isLocked||this.onModelChanged.raise("NotifyResourceRemoved",t,e)},t.prototype.notifyResourceColorChanged=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyResourceColorChanged",t,e,n)},t.prototype.notifyResourceAssigned=function(t,e,n){this.isLocked||this.onModelChanged.raise("NotifyResourceAssigned",t,e,n)},t.prototype.notifyResourceUnassigned=function(t,e){this.isLocked||this.onModelChanged.raise("NotifyResourceUnassigned",t,e)},t.prototype.notifyParentDataRecalculated=function(t){this.onModelChanged.raise("NotifyParentDataRecalculated",t)},t.prototype.lock=function(){this.isLocked=!0},t.prototype.unlock=function(){this.isLocked=!1},t}();e.ModelChangesDispatcher=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(){this.listeners=[]}return t.prototype.add=function(t){if(!t)throw new Error("Error");this.hasEventListener(t)||this.listeners.push(t)},t.prototype.remove=function(t){for(var e,n=0;e=this.listeners[n];n++)if(e===t){this.listeners.splice(n,1);break}},t.prototype.raise=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i,o=0;i=this.listeners[o];o++)i[t].apply(i,e)},t.prototype.hasEventListener=function(t){for(var e=0,n=this.listeners.length;e<n;e++)if(this.listeners[e]===t)return!0;return!1},t}();e.EventDispatcher=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(92),o=n(94),r=n(95),a=n(96),s=n(97),l=n(42),u=n(98),c=n(99),d=n(100),h=n(101),f=n(102),p=n(103),m=n(20),g=n(104),_=function(){function t(t){this.control=t,this.commands={},this.createCommand(c.GanttClientCommand.CreateTask,this.createTaskCommand),this.createCommand(c.GanttClientCommand.CreateSubTask,this.createSubTaskCommand),this.createCommand(c.GanttClientCommand.RemoveTask,this.removeTaskCommand),this.createCommand(c.GanttClientCommand.RemoveDependency,this.removeDependencyCommand),this.createCommand(c.GanttClientCommand.TaskInformation,this.showTaskEditDialog),this.createCommand(c.GanttClientCommand.TaskAddContextItem,new i.TaskAddContextItemCommand(this.control)),this.createCommand(c.GanttClientCommand.Undo,new d.UndoCommand(this.control)),this.createCommand(c.GanttClientCommand.Redo,new d.RedoCommand(this.control)),this.createCommand(c.GanttClientCommand.ZoomIn,new h.ZoomInCommand(this.control)),this.createCommand(c.GanttClientCommand.ZoomOut,new h.ZoomOutCommand(this.control)),this.createCommand(c.GanttClientCommand.FullScreen,new f.ToggleFullScreenCommand(this.control)),this.createCommand(c.GanttClientCommand.CollapseAll,new p.CollapseAllCommand(this.control)),this.createCommand(c.GanttClientCommand.ExpandAll,new p.ExpandAllCommand(this.control))}return Object.defineProperty(t.prototype,"createTaskCommand",{get:function(){return new i.CreateTaskCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"createSubTaskCommand",{get:function(){return new i.CreateSubTaskCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeTaskCommand",{get:function(){return new i.RemoveTaskCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskTitleCommand",{get:function(){return new o.TaskTitleCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskDescriptionCommand",{get:function(){return new o.TaskDescriptionCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskProgressCommand",{get:function(){return new o.TaskProgressCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskColorCommand",{get:function(){return new o.TaskColorCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskStartCommand",{get:function(){return new o.TaskStartCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"taskMoveCommand",{get:function(){return new o.TaskMoveCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeTaskEndCommand",{get:function(){return new o.TaskEndCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"createDependencyCommand",{get:function(){return new r.CreateDependencyCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeDependencyCommand",{get:function(){return new r.RemoveDependencyCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"createResourceCommand",{get:function(){return new a.CreateResourceCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"removeResourceCommand",{get:function(){return new a.RemoveResourceCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"assignResourceCommand",{get:function(){return new a.AssignResourceCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"deassignResourceCommand",{get:function(){return new a.DeassignResourceCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"changeResourceColorCommand",{get:function(){return new g.ResourceColorCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showTaskEditDialog",{get:function(){return new s.TaskEditDialogCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showConstraintViolationDialog",{get:function(){return new l.ConstraintViolationDialogCommand(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showConfirmationDialog",{get:function(){return new m.ConfirmationDialog(this.control)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showResourcesDialog",{get:function(){return new u.ResourcesDialogCommand(this.control)},enumerable:!0,configurable:!0}),t.prototype.getCommand=function(t){return this.commands[t]},t.prototype.createCommand=function(t,e){this.commands[t]=e},t}();e.CommandManager=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(93),a=n(19),s=n(27),l=n(20),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){var t=new o.SimpleCommandState(this.isEnabled());return t.visible=t.enabled&&!this.control.taskEditController.dependencyId,t},e}(o.CommandBase);e.TaskCommandBase=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n,i,o){return t.prototype.execute.call(this,e,n,i,o)},e.prototype.executeInternal=function(t,e,n,i){if(!i){var o=this.control.viewModel.findItem(this.control.currentSelectedTaskID),a=o&&o.task;a&&(i=a.parentId)}var s=this.control.viewModel.findItem(i)||this.control.viewModel.items[0],l=s&&s.task;return t||(t=l?new Date(l.start.getTime()):new Date(this.control.range.start.getTime())),e||(e=l?new Date(l.end.getTime()):new Date(this.control.range.end.getTime())),n=n||"New task",this.history.addAndRedo(new r.CreateTaskHistoryItem(this.modelManipulator,t,e,n,i)),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskInsert},e}(u);e.CreateTaskCommand=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e){return t.prototype.execute.call(this,e)},e.prototype.executeInternal=function(t){t=t||this.control.currentSelectedTaskID;var e=this.control.viewModel.findItem(t);return!!e.selected&&(this.history.addAndRedo(new r.CreateTaskHistoryItem(this.modelManipulator,new Date(e.task.start.getTime()),new Date(e.task.end.getTime()),"New task",t)),!0)},e.prototype.isEnabled=function(){var e=this.control;return t.prototype.isEnabled.call(this)&&e.settings.editing.allowTaskInsert&&e.viewModel.hasTasks()},e.prototype.getState=function(){var e=t.prototype.getState.call(this),n=this.control.viewModel.findItem(this.control.currentSelectedTaskID);return e.visible=e.visible&&n&&n.selected,e},e}(u);e.CreateSubTaskCommand=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n,i){var o=this;return void 0===n&&(n=!0),n?(this.control.commandManager.showConfirmationDialog.execute(new l.ConfirmationDialogParameters(l.ConfirmationType.TaskDelete,(function(){o.executeInternal(e,i)}))),!1):t.prototype.execute.call(this,e,i)},e.prototype.executeInternal=function(t,n){var i=this;t=t||this.control.currentSelectedTaskID,this.control.viewModel.beginUpdate();var o=n||new r.RemoveTaskHistoryItem(this.modelManipulator);o.addTask(t);var l=this.control.viewModel.tasks.items.filter((function(e){return e.parentId==t}));l.forEach((function(t){return new e(i.control).execute(t.internalId,!1,o)}));var u=this.control.viewModel.findItem(t),c=u&&u.parent,d=this.control.viewModel.dependencies.items.filter((function(e){return e.predecessorId==t||e.successorId==t}));if(d.length){if(!this.control.settings.editing.allowDependencyDelete)return!1;(d=d.filter((function(t){return 0==l.filter((function(e){return e.internalId==t.predecessorId||e.internalId==t.successorId})).length}))).forEach((function(t){return o.add(new a.RemoveDependencyHistoryItem(i.modelManipulator,t.internalId))}))}return this.control.viewModel.assignments.items.filter((function(e){return e.taskId==t})).forEach((function(t){return o.add(new s.DeassignResourceHistoryItem(i.modelManipulator,t.internalId))})),n||this.history.addAndRedo(o),this.updateParent(c),this.control.viewModel.endUpdate(),!0},e.prototype.updateParent=function(t){t&&t.children.length>0&&this.control.validationController.updateParentsIfRequired(t.children[0].task.internalId)},e.prototype.isEnabled=function(){var e=this.control;return t.prototype.isEnabled.call(this)&&e.settings.editing.allowTaskDelete&&e.viewModel.hasTasks()},e}(u);e.RemoveTaskCommand=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){var e=t.prototype.getState.call(this);return e.visible=e.visible&&this.control.settings.editing.allowTaskInsert,e},e.prototype.execute=function(){return!1},e}(u);e.TaskAddContextItemCommand=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(10),r=n(19),a=function(t){function e(e,n,i,o,r){var a=t.call(this,e)||this;return a.start=n,a.end=i,a.title=o,a.parentId=r,a}return i.__extends(e,t),e.prototype.redo=function(){this.taskId=this.modelManipulator.task.create(this.start,this.end,this.title,this.parentId,this.taskId?this.taskId:null).internalId},e.prototype.undo=function(){this.modelManipulator.task.remove(this.taskId)},e}(o.HistoryItem);e.CreateTaskHistoryItem=a;var s=function(t){function e(e){var n=t.call(this)||this;return n.taskIds=[],n.tasks=[],n.modelManipulator=e,n}return i.__extends(e,t),e.prototype.redo=function(){var e=this;t.prototype.redo.call(this),this.taskIds.forEach((function(t){e.tasks.push(e.modelManipulator.task.remove(t))}))},e.prototype.undo=function(){var e=this;if(this.tasks.length){var n=this.tasks.shift();this.modelManipulator.task.create(n.start,n.end,n.title,n.parentId,n.internalId,(function(){e.modelManipulator.task.properties.progress.setValue(n.internalId,n.progress),n.color&&e.modelManipulator.task.properties.color.setValue(n.internalId,n.color),e.tasks.length?e.undo():t.prototype.undo.call(e)}))}},e.prototype.undoItemsQuery=function(){for(;this.tasks.length;){var e=this.tasks.shift();this.modelManipulator.task.create(e.start,e.end,e.title,e.parentId,e.internalId,(function(){})),this.modelManipulator.task.properties.progress.setValue(e.internalId,e.progress),e.color&&this.modelManipulator.task.properties.color.setValue(e.internalId,e.color)}t.prototype.undo.call(this)},e.prototype.addTask=function(t){this.taskIds.push(t)},e.prototype.add=function(e){if(e instanceof r.RemoveDependencyHistoryItem){var n=e;this.historyItems.filter((function(t){return t instanceof r.RemoveDependencyHistoryItem&&t.dependencyId==n.dependencyId})).length||this.historyItems.push(n)}else t.prototype.add.call(this,e)},e}(o.CompositionHistoryItem);e.RemoveTaskHistoryItem=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(28),a=n(42),s=n(7),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowTaskUpdate},e}(o.CommandBase);e.TaskPropertyCommandBase=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return this.control.viewModel.tasks.getItemById(t).title!=e&&(this.history.addAndRedo(new r.TaskTitleHistoryItem(this.modelManipulator,t,e)),!0)},e}(l);e.TaskTitleCommand=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return this.control.viewModel.tasks.getItemById(t).description!=e&&(this.history.addAndRedo(new r.TaskDesriptionHistoryItem(this.modelManipulator,t,e)),!0)},e}(l);e.TaskDescriptionCommand=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return this.control.viewModel.tasks.getItemById(t).progress!=e&&(this.control.history.beginTransaction(),this.history.addAndRedo(new r.TaskProgressHistoryItem(this.modelManipulator,t,e)),this.validationController.updateParentsIfRequired(t),this.control.history.endTransaction(),!0)},e}(l);e.TaskProgressCommand=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return this.control.viewModel.tasks.getItemById(t).color!=e&&(this.history.addAndRedo(new r.TaskColorHistoryItem(this.modelManipulator,t,e)),!0)},e}(l);e.TaskColorCommand=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.executeInternal=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=this.control.settings.validation.validateDependencies?this.validate.apply(this,e):[],o=i.filter((function(t){return t.critical}));return!i.length||i.length>1&&0===o.length?this.executeCore.apply(this,e):(1===i.length&&this.control.commandManager.showConstraintViolationDialog.execute(new a.ConstraintViolationDialogParameters(i[0],(function(){t.executeCore.apply(t,e)}))),!1)},e.prototype.executeCore=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return!1},e.prototype.validate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return[]},e}(l);e.TaskPropertyCommandValidation=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(e,n){return t.prototype.executeInternal.call(this,e,n)},e.prototype.executeCore=function(t,e){var n=this.control.viewModel.tasks.getItemById(t).start;if(n.getTime()==e.getTime())return!1;this.control.history.beginTransaction(),this.history.addAndRedo(new r.TaskStartHistoryItem(this.modelManipulator,t,e)),this.control.settings.validation.validateDependencies&&this.control.validationController.moveStartDependTasks(t,n),this.validationController.updateParentsIfRequired(t),this.control.history.endTransaction();var i=this.control.viewModel.tasks.items.reduce((function(t,e){return t.start.getTime()<e.start.getTime()?t:e}));return i.start<this.control.dataRange.start&&(this.control.dataRange.start=i.start,this.control.resetAndUpdate()),!0},e.prototype.validate=function(t,e){return this.control.validationController.checkStartDependencies(t,e)},e}(f);e.TaskStartCommand=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(e,n){return t.prototype.executeInternal.call(this,e,n)},e.prototype.executeCore=function(t,e){var n=this.control.viewModel.tasks.getItemById(t).end;if(n.getTime()==e.getTime())return!1;this.control.history.beginTransaction(),this.history.addAndRedo(new r.TaskEndHistoryItem(this.modelManipulator,t,e)),this.control.settings.validation.validateDependencies&&this.control.validationController.moveEndDependTasks(t,n),this.validationController.updateParentsIfRequired(t),this.control.history.endTransaction();var i=this.control.viewModel.tasks.items.reduce((function(t,e){return t.end.getTime()>e.end.getTime()?t:e}));return i.end>this.control.dataRange.end&&(this.control.dataRange.end=i.end,this.control.resetAndUpdate()),!0},e.prototype.validate=function(t,e){return this.control.validationController.checkEndDependencies(t,e)},e}(f);e.TaskEndCommand=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n,i){return t.prototype.execute.call(this,e,n,i)},e.prototype.executeInternal=function(e,n,i){return t.prototype.executeInternal.call(this,e,n,i)},e.prototype.executeCore=function(t,e,n){var i=this.control.viewModel.tasks.getItemById(t),o=new s.DateRange(new Date(i.start.getTime()),new Date(i.end.getTime()));this.control.history.beginTransaction(),this.history.addAndRedo(new r.TaskMoveHistoryItem(this.modelManipulator,t,new s.DateRange(e,n))),this.validationController.correctOnMoving(t,e.getTime()-o.start.getTime()),this.control.settings.validation.validateDependencies&&(this.control.validationController.moveStartDependTasks(t,o.start),this.control.validationController.moveEndDependTasks(t,o.end)),this.control.history.endTransaction();var a=this.control.viewModel.tasks.items.reduce((function(t,e){return t.end.getTime()>e.end.getTime()?t:e}));a.end>this.control.dataRange.end&&(this.control.dataRange.end=a.end,this.control.resetAndUpdate());var l=this.control.viewModel.tasks.items.reduce((function(t,e){return t.start.getTime()<e.start.getTime()?t:e}));return l.start<this.control.dataRange.start&&(this.control.dataRange.start=l.start,this.control.resetAndUpdate()),!0},e.prototype.validate=function(t,e,n){var i=this.control.validationController.checkStartDependencies(t,e),o=this.control.validationController.checkEndDependencies(t,n);return i.concat(o)},e}(f);e.TaskMoveCommand=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(19),a=n(12),s=n(20),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e}(o.CommandBase);e.DependencyCommandBase=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n,i){return t.prototype.execute.call(this,e,n,i)},e.prototype.executeInternal=function(t,e,n){if(this.control.viewModel.dependencies.items.filter((function(n){return n.predecessorId==t&&n.successorId==e||n.successorId==t&&n.predecessorId==e})).length)return!1;if(this.control.history.beginTransaction(),this.history.addAndRedo(new r.InsertDependencyHistoryItem(this.modelManipulator,t,e,n)),this.control.settings.validation.validateDependencies){var i=this.control.viewModel.tasks.getItemById(t);n===a.DependencyType.SF||n===a.DependencyType.SS?this.control.validationController.moveStartDependTasks(t,i.start):this.control.validationController.moveEndDependTasks(t,i.end)}return this.control.history.endTransaction(),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyInsert},e}(l);e.CreateDependencyCommand=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){var i=this;return void 0===n&&(n=!0),n?(this.control.commandManager.showConfirmationDialog.execute(new s.ConfirmationDialogParameters(s.ConfirmationType.DependencyDelete,(function(){i.executeInternal(e)}))),!1):t.prototype.execute.call(this,e)},e.prototype.executeInternal=function(t){return!(null==(t=t||this.control.taskEditController.dependencyId)||!this.control.viewModel.dependencies.items.filter((function(e){return e.internalId==t}))[0])&&(this.history.addAndRedo(new r.RemoveDependencyHistoryItem(this.modelManipulator,t)),t===this.control.taskEditController.dependencyId&&this.control.taskEditController.selectDependency(null),this.control.barManager.updateItemsState([]),!0)},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowDependencyDelete},e.prototype.getState=function(){var e=t.prototype.getState.call(this);return e.visible=e.enabled&&null!=this.control.taskEditController.dependencyId,e},e}(l);e.RemoveDependencyCommand=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(27),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e}(o.CommandBase);e.ResourceCommandBase=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e){return t.prototype.execute.call(this,e)},e.prototype.executeInternal=function(t){return this.history.addAndRedo(new r.CreateResourceHistoryItem(this.modelManipulator,t)),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceInsert},e}(a);e.CreateResourceCommand=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e){return t.prototype.execute.call(this,e)},e.prototype.executeInternal=function(t){var e=this;if(this.control.viewModel.resources.items.filter((function(e){return e.internalId==t}))[0]){var n=new r.RemoveResourceHistoryItem(this.modelManipulator,t);return this.control.viewModel.assignments.items.filter((function(e){return e.resourceId==t})).forEach((function(t){return n.add(new r.DeassignResourceHistoryItem(e.modelManipulator,t.internalId))})),this.history.addAndRedo(n),!0}return!1},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceDelete},e}(a);e.RemoveResourceCommand=l;var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return!this.control.viewModel.assignments.items.filter((function(n){return n.resourceId==t&&n.taskId==e}))[0]&&(this.history.addAndRedo(new r.AssignResourceHistoryItem(this.modelManipulator,t,e)),!0)},e}(a);e.AssignResourceCommand=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e){return t.prototype.execute.call(this,e)},e.prototype.executeInternal=function(t){return!!this.control.viewModel.assignments.items.filter((function(e){return e.internalId==t}))[0]&&(this.history.addAndRedo(new r.DeassignResourceHistoryItem(this.modelManipulator,t)),!0)},e}(a);e.DeassignResourceCommand=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(21),r=n(28),a=n(22),s=n(27),l=n(5),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.applyParameters=function(t,e){this.history.beginTransaction(),t.title!=e.title&&this.history.addAndRedo(new r.TaskTitleHistoryItem(this.modelManipulator,e.id,t.title)),t.progress!=e.progress&&this.history.addAndRedo(new r.TaskProgressHistoryItem(this.modelManipulator,e.id,t.progress)),t.end.getTime()<t.start.getTime()&&(t.end=t.start),t.start!=e.start&&(this.history.addAndRedo(new r.TaskStartHistoryItem(this.modelManipulator,e.id,t.start)),this.control.settings.validation.validateDependencies&&this.control.validationController.moveStartDependTasks(e.id,e.start)),t.end!=e.end&&(this.history.addAndRedo(new r.TaskEndHistoryItem(this.modelManipulator,e.id,t.end)),this.control.settings.validation.validateDependencies&&this.control.validationController.moveEndDependTasks(e.id,e.end));for(var n=0;n<t.assigned.length;n++)e.assigned.getItemById(t.assigned.getItem(n).internalId)||this.history.addAndRedo(new s.AssignResourceHistoryItem(this.modelManipulator,t.assigned.getItem(n).internalId,e.id));var i=function(n){var i=e.assigned.getItem(n);if(!t.assigned.getItemById(i.internalId)){var r=o.control.viewModel.assignments.items.filter((function(t){return t.resourceId==i.internalId&&t.taskId==e.id}))[0];o.history.addAndRedo(new s.DeassignResourceHistoryItem(o.modelManipulator,r.internalId))}},o=this;for(n=0;n<e.assigned.length;n++)i(n);return(t.start!=e.start||t.end!=e.end||t.progress!=e.progress||t.title!=e.title)&&this.validationController.updateParentsIfRequired(e.id),this.history.endTransaction(),!1},e.prototype.createParameters=function(t){t=t||this.control.viewModel.tasks.getItemById(this.control.currentSelectedTaskID);var e=new c;return e.id=t.internalId,e.title=t.title,e.progress=t.progress,e.start=t.start,e.end=t.end,e.assigned=this.control.viewModel.getAssignedResources(t),e.resources=new a.ResourceCollection,e.resources.addRange(this.control.viewModel.resources.items),e.showResourcesDialogCommand=this.control.commandManager.showResourcesDialog,e.enableEdit=this.isTaskEditEnabled(),e.enableRangeEdit=this.isTaskRangeEditEnabled(t),e},e.prototype.isTaskEditEnabled=function(){var t=this.control.settings;return t.editing.enabled&&t.editing.allowTaskUpdate},e.prototype.isTaskRangeEditEnabled=function(t){return!this.control.viewModel.isTaskToCalculateByChildren(t.internalId)},e.prototype.isEnabled=function(){return this.control.viewModel.hasTasks()},e.prototype.getState=function(){var t=new l.SimpleCommandState(this.isEnabled());return t.visible=t.enabled&&!this.control.taskEditController.dependencyId,t},e.prototype.getDialogName=function(){return"TaskEdit"},e}(o.DialogBase);e.TaskEditDialogCommand=u;var c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.enableEdit=!0,e.enableRangeEdit=!0,e}return i.__extends(e,t),e.prototype.clone=function(){var t=new e;return t.id=this.id,t.title=this.title,t.progress=this.progress,t.start=this.start,t.end=this.end,t.assigned=new a.ResourceCollection,t.assigned.addRange(this.assigned.items),t.resources=new a.ResourceCollection,t.resources.addRange(this.resources.items),t.showResourcesDialogCommand=this.showResourcesDialogCommand,t.enableEdit=this.enableEdit,t.enableRangeEdit=this.enableRangeEdit,t},e}(o.DialogParametersBase);e.TaskEditParameters=c},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(21),r=n(22),a=n(20),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.resourcesForDelete=[],e}return i.__extends(e,t),e.prototype.applyParameters=function(t,e){this.history.beginTransaction();for(var n=0;n<t.resources.length;n++)e.resources.getItemById(t.resources.getItem(n).internalId)||this.control.commandManager.createResourceCommand.execute(t.resources.getItem(n).text);for(n=0;n<e.resources.length;n++)t.resources.getItemById(e.resources.getItem(n).internalId)||this.resourcesForDelete.push(e.resources.getItem(n));return this.history.endTransaction(),!1},e.prototype.createParameters=function(t){this.callBack=t;var e=new l;return e.resources=new r.ResourceCollection,e.resources.addRange(this.control.viewModel.resources.items),e},e.prototype.afterClosing=function(){var t=this;if(this.resourcesForDelete.length){var e=this.control.commandManager.showConfirmationDialog,n=new a.ConfirmationDialogParameters(a.ConfirmationType.ResourcesDelete,(function(){t.history.beginTransaction();for(var e=0;e<t.resourcesForDelete.length;e++)t.control.commandManager.removeResourceCommand.execute(t.resourcesForDelete[e].internalId);t.history.endTransaction()}));n.message=this.resourcesForDelete.reduce((function(t,e){return t.concat([e.text])}),[]).join(", "),this.callBack&&(e.afterClosing=function(){return t.callBack()}),e.execute(n)}else this.callBack&&this.callBack()},e.prototype.getDialogName=function(){return"Resources"},e}(o.DialogBase);e.ResourcesDialogCommand=s;var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.clone=function(){var t=new e;return t.resources=new r.ResourceCollection,t.resources.addRange(this.resources.items),t},e}(o.DialogParametersBase);e.ResourcesDialogParameters=l},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.CreateTask=0]="CreateTask",t[t.CreateSubTask=1]="CreateSubTask",t[t.RemoveTask=2]="RemoveTask",t[t.RemoveDependency=3]="RemoveDependency",t[t.TaskInformation=4]="TaskInformation",t[t.TaskAddContextItem=5]="TaskAddContextItem",t[t.Undo=6]="Undo",t[t.Redo=7]="Redo",t[t.ZoomIn=8]="ZoomIn",t[t.ZoomOut=9]="ZoomOut",t[t.FullScreen=10]="FullScreen",t[t.CollapseAll=11]="CollapseAll",t[t.ExpandAll=12]="ExpandAll"}(e.GanttClientCommand||(e.GanttClientCommand={}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){var t=new o.SimpleCommandState(this.isEnabled());return t.visible=this.control.settings.editing.enabled,t},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.history.undo(),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.history.canUndo()},e}(o.CommandBase);e.UndoCommand=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){var t=new o.SimpleCommandState(this.isEnabled());return t.visible=this.control.settings.editing.enabled,t},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.history.redo(),!0},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.history.canRedo()},e}(o.CommandBase);e.RedoCommand=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(!0)},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.control.zoomIn(),!0},e}(o.CommandBase);e.ZoomInCommand=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(!0)},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.control.zoomOut(),!0},e}(o.CommandBase);e.ZoomOutCommand=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isInFullScreenMode=!1,e.fullScreenTempVars={},e}return i.__extends(e,t),e.prototype.getState=function(){var t=new o.SimpleCommandState(!0);return t.value=this.control.fullScreenModeHelper.isInFullScreenMode,t},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.control.fullScreenModeHelper.toggle(),!0},e}(o.CommandBase);e.ToggleFullScreenCommand=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.control.ganttOwner.collapseAll(),!0},e.prototype.isEnabled=function(){return!0},e}(o.CommandBase);e.CollapseAllCommand=r;var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e.prototype.execute=function(){return t.prototype.execute.call(this)},e.prototype.executeInternal=function(){return this.control.ganttOwner.expandAll(),!0},e.prototype.isEnabled=function(){return!0},e}(o.CommandBase);e.ExpandAllCommand=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(5),r=n(105),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getState=function(){return new o.SimpleCommandState(this.isEnabled())},e.prototype.isEnabled=function(){return t.prototype.isEnabled.call(this)&&this.control.settings.editing.allowResourceUpdate},e}(o.CommandBase);e.ResourcePropertyCommandBase=a;var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.execute=function(e,n){return t.prototype.execute.call(this,e,n)},e.prototype.executeInternal=function(t,e){return this.control.viewModel.resources.getItemById(t).color!=e&&(this.history.addAndRedo(new r.ResourceColorHistoryItem(this.modelManipulator,t,e)),!0)},e}(a);e.ResourceColorCommand=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=function(t){function e(e,n,i){var o=t.call(this,e)||this;return o.resourceId=n,o.newValue=i,o}return i.__extends(e,t),e.prototype.redo=function(){this.oldState=this.getPropertiesManipulator().setValue(this.resourceId,this.newValue)},e.prototype.undo=function(){this.getPropertiesManipulator().restoreValue(this.oldState)},e.prototype.getPropertiesManipulator=function(){throw new Error("Not Implemented")},e}(n(10).HistoryItem);e.ResourcePropertiesHistoryItemBase=o;var r=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i.__extends(e,t),e.prototype.getPropertiesManipulator=function(){return this.modelManipulator.resource.properties.color},e}(o);e.ResourceColorHistoryItem=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.control=t,this.bars=e}return t.prototype.updateContextMenu=function(){for(var t,e=0;t=this.bars[e];e++)if(t.isContextMenu()){t.updateItemsList();for(var n=t.getCommandKeys(),i=0;i<n.length;i++)this.updateBarItem(t,n[i])}},t.prototype.updateItemsState=function(t){for(var e,n=!!t.length,i=function(){if(e.isVisible()){for(var i=e.getCommandKeys(),r=function(r){if(n&&!t.filter((function(t){return t==i[r]})).length)return"continue";o.updateBarItem(e,i[r])},a=0;a<i.length;a++)r(a);e.completeUpdate()}},o=this,r=0;e=this.bars[r];r++)i()},t.prototype.updateBarItem=function(t,e){var n=this.control.commandManager.getCommand(e);if(n){var i=n.getState();t.setItemVisible(e,i.visible),i.visible&&(t.setItemEnabled(e,i.enabled),t.setItemValue(e,i.value))}},t}();e.BarManager=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(12),o=n(28),r=n(7),a=n(3),s=n(2),l=function(t,e){void 0===e&&(e=!1),this.dependencyId=t,this.critical=e};e.ValidationError=l;var u=function(){function t(t){this.gantt=t}return Object.defineProperty(t.prototype,"viewModel",{get:function(){return this.gantt.viewModel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"history",{get:function(){return this.gantt.history},enumerable:!0,configurable:!0}),t.prototype.checkStartDependencies=function(t,e){var n=this,o=[],r=this.gantt.viewModel.tasks.getItemById(t);return this.viewModel.dependencies.items.filter((function(e){return e.successorId==t})).forEach((function(t){var a=n.gantt.viewModel.tasks.getItemById(t.predecessorId);(t.type==i.DependencyType.FS&&a.end>e||t.type==i.DependencyType.SS&&a.start>e)&&o.push(new l(t.internalId,!0)),(t.type==i.DependencyType.FS&&a.end.valueOf()==r.start.valueOf()&&e>a.end||t.type==i.DependencyType.SS&&a.start.valueOf()==r.start.valueOf()&&e>a.start)&&o.push(new l(t.internalId))})),o},t.prototype.checkEndDependencies=function(t,e){var n=this,o=[],r=this.gantt.viewModel.tasks.getItemById(t);return this.viewModel.dependencies.items.filter((function(e){return e.successorId==t})).forEach((function(t){var a=n.gantt.viewModel.tasks.getItemById(t.predecessorId);(t.type==i.DependencyType.SF&&a.start>e||t.type==i.DependencyType.FF&&a.end>e)&&o.push(new l(t.internalId,!0)),(t.type==i.DependencyType.SF&&a.start.valueOf()==r.end.valueOf()&&e>a.start||t.type==i.DependencyType.FF&&a.end.valueOf()==r.end.valueOf()&&e>a.end)&&o.push(new l(t.internalId))})),o},t.prototype.moveEndDependTasks=function(t,e){var n=this;this.viewModel.dependencies.items.filter((function(e){return e.predecessorId==t})).forEach((function(a){var s=n.gantt.viewModel.tasks.getItemById(t),l=n.gantt.viewModel.tasks.getItemById(a.successorId),u=new r.DateRange(new Date(l.start.getTime()),new Date(l.end.getTime())),c=new r.DateRange(new Date,new Date);a.type==i.DependencyType.FS&&(l.start<s.end||l.start.valueOf()===e.valueOf()&&l.start>s.end)&&(c.start.setTime(s.end.getTime()),c.end.setTime(c.start.getTime()+(l.end.getTime()-l.start.getTime())),n.correctMoving(l.internalId,c),n.history.addAndRedo(new o.TaskMoveHistoryItem(n.gantt.modelManipulator,a.successorId,c)),n._parentAutoCalc&&n.updateParentsRangeByChild(l.internalId),n.moveStartDependTasks(a.successorId,u.start),n.moveEndDependTasks(a.successorId,u.end)),a.type==i.DependencyType.FF&&(l.end<s.end||l.end.valueOf()===e.valueOf()&&l.end>s.end)&&(c.start.setTime(s.end.getTime()-(l.end.getTime()-l.start.getTime())),c.end.setTime(s.end.getTime()),n.correctMoving(l.internalId,c),n.history.addAndRedo(new o.TaskMoveHistoryItem(n.gantt.modelManipulator,a.successorId,c)),n._parentAutoCalc&&n.updateParentsRangeByChild(l.internalId),n.moveStartDependTasks(a.successorId,u.start),n.moveEndDependTasks(a.successorId,u.end))}))},t.prototype.moveStartDependTasks=function(t,e){var n=this;this.viewModel.dependencies.items.filter((function(e){return e.predecessorId==t})).forEach((function(a){var s=n.gantt.viewModel.tasks.getItemById(t),l=n.gantt.viewModel.tasks.getItemById(a.successorId),u=new r.DateRange(new Date(l.start.getTime()),new Date(l.end.getTime())),c=new r.DateRange(new Date,new Date);a.type==i.DependencyType.SF&&(l.end<s.start||l.end.valueOf()===e.valueOf()&&l.end>s.start)&&(c.start.setTime(s.start.getTime()-(l.end.getTime()-l.start.getTime())),c.end.setTime(s.start.getTime()),n.correctMoving(l.internalId,c),n.history.addAndRedo(new o.TaskMoveHistoryItem(n.gantt.modelManipulator,a.successorId,c)),n._parentAutoCalc&&n.updateParentsRangeByChild(l.internalId),n.moveStartDependTasks(a.successorId,u.start),n.moveEndDependTasks(a.successorId,u.end)),a.type==i.DependencyType.SS&&(l.start<s.start||l.start.valueOf()===e.valueOf()&&l.start>s.start)&&(c.start.setTime(s.start.getTime()),c.end.setTime(s.start.getTime()+(l.end.getTime()-l.start.getTime())),n.correctMoving(l.internalId,c),n.history.addAndRedo(new o.TaskMoveHistoryItem(n.gantt.modelManipulator,a.successorId,c)),n._parentAutoCalc&&n.updateParentsRangeByChild(l.internalId),n.moveStartDependTasks(a.successorId,u.start),n.moveEndDependTasks(a.successorId,u.end))}))},t.prototype.correctMoving=function(t,e){var n=this,o=e.end.getTime()-e.start.getTime();return this.checkStartDependencies(t,e.start).concat(this.checkEndDependencies(t,e.end)).filter((function(t){return t.critical})).forEach((function(t){var r=n.gantt.viewModel.dependencies.getItemById(t.dependencyId),a=n.gantt.viewModel.tasks.getItemById(r.predecessorId);r.type==i.DependencyType.FS&&e.start<a.end&&(e.start.setTime(a.end.getTime()),e.end.setTime(e.start.getTime()+o)),r.type==i.DependencyType.SS&&e.start<a.start&&(e.start.setTime(a.start.getTime()),e.end.setTime(e.start.getTime()+o)),r.type==i.DependencyType.FF&&e.end<a.end&&(e.end.setTime(a.end.getTime()),e.start.setTime(e.end.getTime()-o)),r.type==i.DependencyType.SF&&e.end<a.start&&(e.end.setTime(a.start.getTime()),e.start.setTime(e.end.getTime()-o))})),e},t.prototype.recalculateParents=function(t,e){for(var n=t&&t.parent;n&&n.task;){for(var i=n.children,o=this.gantt.range.end,r=this.gantt.range.start,s=0,l=0,u={id:n.task.internalId},c=0;c<i.length;c++){var d=i[c].task;o=a.DateTimeUtils.getMinDate(o,d.start),r=a.DateTimeUtils.getMaxDate(r,d.end);var h=d.getDuration();s+=d.progress*h,l+=h}a.DateTimeUtils.areDatesEqual(n.task.start,o)||(u.start=o),a.DateTimeUtils.areDatesEqual(n.task.end,r)||(u.end=r),(s=Math.ceil(s/l))!==n.task.progress&&(u.progress=s),e(u),n=n.parent}},t.prototype.updateParentsRangeByChild=function(t){var e=this;this.recalculateParents(this.viewModel.findItem(t),(function(t){if(s.JsonUtils.isExists(t.id)){var n=e.history,i=e.gantt.modelManipulator;s.JsonUtils.isExists(t.start)&&n.addAndRedo(new o.TaskStartHistoryItem(i,t.id,t.start)),s.JsonUtils.isExists(t.end)&&n.addAndRedo(new o.TaskEndHistoryItem(i,t.id,t.end)),s.JsonUtils.isExists(t.progress)&&n.addAndRedo(new o.TaskProgressHistoryItem(i,t.id,t.progress))}}))},t.prototype.updateChildRangeByParent=function(t,e,n){var i=this.viewModel.findItem(t);if(i&&0!==i.children.length)for(var r=i.children,a=0;a<r.length;a++){var s=r[a].task,l=new Date(s.start.getTime()+e),u=new Date(s.end.getTime()+e);n.push({id:s.internalId,start:s.start,end:s.end}),l<s.end?(this.history.addAndRedo(new o.TaskStartHistoryItem(this.gantt.modelManipulator,s.internalId,l)),this.history.addAndRedo(new o.TaskEndHistoryItem(this.gantt.modelManipulator,s.internalId,u))):(this.history.addAndRedo(new o.TaskEndHistoryItem(this.gantt.modelManipulator,s.internalId,u)),this.history.addAndRedo(new o.TaskStartHistoryItem(this.gantt.modelManipulator,s.internalId,l))),this.updateChildRangeByParent(s.internalId,e,n)}},t.prototype.updateParentsIfRequired=function(t){this._parentAutoCalc&&(this.updateParentsRangeByChild(t),this.gantt.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData()))},t.prototype.correctOnMoving=function(t,e){var n=this;if(this._parentAutoCalc&&0!==e){this.updateParentsRangeByChild(t);var i=[];this.updateChildRangeByParent(t,e,i),this.gantt.settings.validation.validateDependencies&&i.forEach((function(t){n.moveStartDependTasks(t.id,t.start),n.moveEndDependTasks(t.id,t.end)})),this.gantt.dispatcher.notifyParentDataRecalculated(this.viewModel.getCurrentTaskData())}},Object.defineProperty(t.prototype,"_parentAutoCalc",{get:function(){return this.viewModel.parentAutoCalc},enumerable:!0,configurable:!0}),t}();e.ValidationController=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(8),o=n(1),r=function(){function t(t){this._isInFullScreenMode=!1,this.fullScreenTempVars={},this.gantt=t}return Object.defineProperty(t.prototype,"isInFullScreenMode",{get:function(){return this._isInFullScreenMode},enumerable:!0,configurable:!0}),t.prototype.toggle=function(){return this._isInFullScreenMode=!this._isInFullScreenMode,this._isInFullScreenMode?this.setFullScreenMode():this.setNormalMode(),!0},t.prototype.setFullScreenMode=function(){this.prepareFullScreenMode(),this.adjustControlInFullScreenMode()},t.prototype.prepareFullScreenMode=function(){var t=this.getMainElement();o.DomUtils.changeStyleAttribute(t,i.Browser.IE?"borderTopWidth":"border-top-width","0px"),o.DomUtils.changeStyleAttribute(t,i.Browser.IE?"borderLeftWidth":"border-left-width","0px"),o.DomUtils.changeStyleAttribute(t,i.Browser.IE?"borderRightWidth":"border-right-width","0px"),o.DomUtils.changeStyleAttribute(t,i.Browser.IE?"borderBottomWidth":"border-bottom-width","0px"),this.fullScreenTempVars.scrollTop=o.DomUtils.getDocumentScrollTop(),this.fullScreenTempVars.scrollLeft=o.DomUtils.getDocumentScrollLeft(),o.DomUtils.changeStyleAttribute(t,"background-color","white"),o.DomUtils.changeStyleAttribute(t,"position","fixed"),o.DomUtils.changeStyleAttribute(t,"top","0px"),o.DomUtils.changeStyleAttribute(t,"left","0px"),o.DomUtils.changeStyleAttribute(t,i.Browser.IE?"zIndex":"z-index",10001),o.DomUtils.changeStyleAttribute(document.documentElement,"position","static"),o.DomUtils.changeStyleAttribute(document.documentElement,"overflow","hidden"),this.fullScreenTempVars.bodyMargin=document.body.style.margin,document.body.style.margin="0",this.fullScreenTempVars.width=t.style.width,this.fullScreenTempVars.height=t.style.height,window.self!==window.top&&this.requestFullScreen(document.body)},t.prototype.setNormalMode=function(){this.cancelFullScreen(document);var t=this.getMainElement();o.DomUtils.restoreStyleAttribute(t,"left"),o.DomUtils.restoreStyleAttribute(t,"top"),o.DomUtils.restoreStyleAttribute(t,"background-color"),o.DomUtils.restoreStyleAttribute(document.documentElement,"overflow"),o.DomUtils.restoreStyleAttribute(document.documentElement,"position"),o.DomUtils.restoreStyleAttribute(t,i.Browser.IE?"zIndex":"z-index"),document.body.style.margin=this.fullScreenTempVars.bodyMargin,o.DomUtils.restoreStyleAttribute(t,"position"),o.DomUtils.restoreStyleAttribute(t,i.Browser.IE?"borderTopWidth":"border-top-width"),o.DomUtils.restoreStyleAttribute(t,i.Browser.IE?"borderLeftWidth":"border-left-width"),o.DomUtils.restoreStyleAttribute(t,i.Browser.IE?"borderRightWidth":"border-right-width"),o.DomUtils.restoreStyleAttribute(t,i.Browser.IE?"borderBottomWidth":"border-bottom-width"),this.setHeight(this.fullScreenTempVars.height),this.setWidth(this.fullScreenTempVars.width),document.documentElement.scrollTop=this.fullScreenTempVars.scrollTop,document.documentElement.scrollLeft=this.fullScreenTempVars.scrollLeft,this.adjustControl()},t.prototype.adjustControlInFullScreenMode=function(){var t=0==document.documentElement.clientWidth?document.body.clientWidth:document.documentElement.clientWidth,e=0==document.documentElement.clientHeight?document.body.clientHeight:document.documentElement.clientHeight;this.setWidth(t),this.setHeight(e),this.adjustControl()},t.prototype.requestFullScreen=function(t){t.requestFullscreen?t.requestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.msRequestFullscreen&&t.msRequestFullscreen()},t.prototype.cancelFullScreen=function(t){i.Browser.Firefox&&!this.getFullScreenElement(t)||(t.webkitExitFullscreen?t.webkitExitFullscreen():t.mozCancelFullScreen?t.mozCancelFullScreen():t.msExitFullscreen?t.msExitFullscreen():t.exitFullscreen&&t.exitFullscreen())},t.prototype.getFullScreenElement=function(t){return t.fullscreenElement||t.webkitFullscreenElement||t.mozFullScreenElement||t.msFullscreenElement},t.prototype.setWidth=function(t){this.getMainElement().style.width=this.isNumber(t)?t+"px":t},t.prototype.setHeight=function(t){this.getMainElement().style.height=this.isNumber(t)?t+"px":t},t.prototype.isNumber=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},t.prototype.getMainElement=function(){return this.gantt.getOwnerControlMainElement()},t.prototype.adjustControl=function(){this.gantt.adjustOwnerControl()},t}();e.FullScreenModeHelper=r}])},module.exports=factory()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.TaskAreaContainer=void 0;var i,o=n(116),r=(i=o)&&i.__esModule?i:{default:i};function a(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.TaskAreaContainer=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._element=e,this._scrollView=n._createComponent(this._element,r.default,{scrollByContent:!1,scrollByThumb:!0,showScrollbar:"onHover",direction:"both",onScroll:function(){n.updateView()}})}var e,n,i;return e=t,(n=[{key:"getWidth",value:function(){return this._element.offsetWidth}},{key:"getHeight",value:function(){return this._element.offsetHeight}},{key:"getElement",value:function(){return this._element}},{key:"scrollTop",get:function(){return this._scrollView.scrollTop()},set:function(t){var e=t-this._scrollView.scrollTop();0!==e&&this._scrollView.scrollBy({left:0,top:e})}},{key:"scrollLeft",get:function(){return this._scrollView.scrollLeft()},set:function(t){var e=t-this._scrollView.scrollLeft();0!==e&&this._scrollView.scrollBy({left:e,top:0})}},{key:"scrollWidth",get:function(){return this._scrollView.scrollWidth()}},{key:"scrollHeight",get:function(){return this._scrollView.scrollHeight()}},{key:"isExternal",get:function(){return!0}}])&&a(e.prototype,n),i&&a(e,i),t}()},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttContextMenuBar=e.GanttToolbar=void 0;var i=l(n(3)),o=l(n(167)),r=l(n(109)),a=l(n(12)),s=n(0);function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}var v=0,y=1,b=2,w=3,x=4,C=5,S=6,k=7,I=8,T=9,E=10,O=11,M=12,P=function(){function t(e,n){m(this,t),this._element=e,this._owner=n,this._createControl()}return _(t,[{key:"_getItemsCache",value:function(){return this._cache||(this._cache={},this._fillCache(this._items)),this._cache}},{key:"_fillCache",value:function(t){var e=this;t.forEach((function(t){var n=t.commandId;void 0!==n&&(e._cache[n]||(e._cache[n]=[]),e._cache[n].push(t)),t.items&&e._fillCache(t.items)}))}},{key:"_getIcon",value:function(t){return"dx-gantt-i dx-gantt-i-"+t}},{key:"getCommandKeys",value:function(){var t=this._getItemsCache(),e=[];for(var n in t)e.push(parseInt(n));return e}},{key:"setItemEnabled",value:function(t,e){this._getItemsCache()[t].forEach((function(t){t.disabled=!e}))}},{key:"setItemVisible",value:function(t,e){this._getItemsCache()[t].forEach((function(t){t.visible=e}))}},{key:"setItemValue",value:function(t,e){}},{key:"setEnabled",value:function(t){this._menu.option("disabled",!t)}},{key:"updateItemsList",value:function(){}},{key:"isVisible",value:function(){return!0}},{key:"isContextMenu",value:function(){return!1}},{key:"completeUpdate",value:function(){}}]),t}();e.GanttToolbar=function(t){c(n,t);var e=h(n);function n(){return m(this,n),e.apply(this,arguments)}return _(n,[{key:"_createControl",value:function(){var t=this;this._menu=this._owner._createComponent(this._element,o.default,{onItemClick:function(e){void 0!==e.itemData.commandId&&t._owner._executeCoreCommand(e.itemData.commandId)}})}},{key:"createItems",value:function(t){var e=this;this._cache=null,this._items=t.map((function(t){return"string"===typeof t?e._createItemByText(t):t.name?(0,s.extend)(e._createItemByText(t.name),t):(0,s.extend)(e._getDefaultItemOptions(),t)})),this._menu.option("items",this._items)}},{key:"_createItemByText",value:function(t){switch(t.toLowerCase()){case"separator":return this._createSeparator();case"undo":return this._createDefaultItem(S,a.default.format("dxGantt-undo"),this._getIcon("undo"));case"redo":return this._createDefaultItem(k,a.default.format("dxGantt-redo"),this._getIcon("redo"));case"expandall":return this._createDefaultItem(M,a.default.format("dxGantt-expandAll"),this._getIcon("expand"));case"collapseall":return this._createDefaultItem(O,a.default.format("dxGantt-collapseAll"),this._getIcon("collapse"));case"addtask":return this._createDefaultItem(v,a.default.format("dxGantt-addNewTask"),this._getIcon("add"));case"deletetask":return this._createDefaultItem(b,a.default.format("dxGantt-deleteSelectedTask"),this._getIcon("delete"));case"zoomin":return this._createDefaultItem(I,a.default.format("dxGantt-zoomIn"),this._getIcon("zoom-in"));case"zoomout":return this._createDefaultItem(T,a.default.format("dxGantt-zoomOut"),this._getIcon("zoom-out"));case"fullscreen":return this._createDefaultItem(E,a.default.format("dxGantt-fullScreen"),this._getIcon("full-screen"));default:return(0,s.extend)(this._getDefaultItemOptions(),{options:{text:t}})}}},{key:"_createDefaultItem",value:function(t,e,n){return{commandId:t,disabled:!0,widget:"dxButton",location:"before",options:{icon:n,stylingMode:"text",hint:e}}}},{key:"_createSeparator",value:function(){return{location:"before",template:function(t,e,n){(0,i.default)(n).addClass("dx-gantt-toolbar-separator")}}}},{key:"_getDefaultItemOptions",value:function(){return{location:"before",widget:"dxButton"}}},{key:"completeUpdate",value:function(){this._menu.option("items",this._items)}}]),n}(P),e.GanttContextMenuBar=function(t){c(n,t);var e=h(n);function n(){return m(this,n),e.apply(this,arguments)}return _(n,[{key:"_createControl",value:function(){var t=this;this._createItems(),this._menu=this._owner._createComponent(this._element,r.default,{showEvent:void 0,items:this._items,onItemClick:function(e){void 0!==e.itemData.commandId&&t._owner._executeCoreCommand(e.itemData.commandId)}})}},{key:"_createItems",value:function(){this._items=[{text:a.default.format("dxGantt-dialogButtonAdd"),commandId:C,icon:this._getIcon("add"),items:[{text:a.default.format("dxGantt-contextMenuNewTask"),commandId:v,icon:this._getIcon("add-task")},{text:a.default.format("dxGantt-contextMenuNewSubtask"),commandId:y,icon:this._getIcon("add-sub-task")}]},{text:a.default.format("dxGantt-dialogTaskDetailsTitle")+"...",commandId:x,icon:this._getIcon("task-details")},{text:a.default.format("dxGantt-contextMenuDeleteTask"),commandId:b,icon:this._getIcon("delete")},{text:a.default.format("dxGantt-contextMenuDeleteDependency"),commandId:w,icon:this._getIcon("delete-dependency")}]}},{key:"show",value:function(t){this._menu.option("items",this._items),this._menu.option("position.offset",{x:t.x,y:t.y}),this._menu.show()}},{key:"isContextMenu",value:function(){return!0}}]),n}(P)},function(t,e,n){"use strict";var i,o=n(922),r=(i=o)&&i.__esModule?i:{default:i};n(932),n(933),n(934),n(935),n(937),n(938),n(939),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(947),n(948),n(949),n(950),n(951),n(952),n(953),t.exports=r.default},function(t,e,n){"use strict";var i=d(n(8)),o=d(n(4)),r=d(n(2)),a=n(5),s=n(0),l=d(n(20)),u=d(n(34)),c=d(n(36));function d(t){return t&&t.__esModule?t:{default:t}}n(923),n(924),n(925),n(926),n(927),n(928),n(929),n(930),n(931);var h=u.default.callModuleItemsMethod;u.default.registerModulesOrder(["stateStoring","columns","selection","editorFactory","columnChooser","editing","grouping","masterDetail","validating","adaptivity","data","virtualScrolling","columnHeaders","filterRow","headerPanel","headerFilter","sorting","search","rows","pager","columnsResizingReordering","contextMenu","keyboardNavigation","errorHandling","summary","columnFixing","export","gridView"]);var f=l.default.inherit({_activeStateUnit:".dx-row",_getDefaultOptions:function(){var t=this.callBase();return(0,a.each)(u.default.modules,(function(){r.default.isFunction(this.defaultOptions)&&(0,s.extend)(!0,t,this.defaultOptions())})),t},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return c.default.isMaterial()},options:{showRowLines:!0,showColumnLines:!1,headerFilter:{height:315},editing:{useIcons:!0}}}])},_init:function(){this.callBase(),u.default.processModules(this,u.default),h(this,"init")},_clean:o.default.noop,_optionChanged:function(t){h(this,"optionChanged",[t]),t.handled||this.callBase(t)},_dimensionChanged:function(){this.updateDimensions(!0)},_visibilityChanged:function(t){t&&this.updateDimensions()},_initMarkup:function(){this.callBase.apply(this,arguments),this.$element().addClass("dx-treelist"),this.getView("gridView").render(this.$element())},_renderContentImpl:function(){this.getView("gridView").update()},_renderContent:function(){var t=this;o.default.deferRender((function(){t._renderContentImpl()}))},_dispose:function(){this.callBase(),h(this,"dispose")},isReady:function(){return this.getController("data").isReady()},beginUpdate:function(){this.callBase(),h(this,"beginUpdate")},endUpdate:function(){h(this,"endUpdate"),this.callBase()},getController:function(t){return this._controllers[t]},getView:function(t){return this._views[t]},focus:function(t){this.callBase(),r.default.isDefined(t)&&this.getController("keyboardNavigation").focus(t)}});f.registerModule=u.default.registerModule.bind(u.default),(0,i.default)("dxTreeList",f),t.exports=f},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(418));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columnHeaders",o.default)},function(t,e,n){"use strict";var i=n(2),o=a(n(34)),r=a(n(420));function a(t){return t&&t.__esModule?t:{default:t}}e.ColumnsController=r.default.controllers.columns.inherit({_getFirstItems:function(t){return this.callBase(t).map((function(t){return t.data}))},getFirstDataColumnIndex:function(){for(var t=this.getVisibleColumns(),e=t.length,n=0,o=0;o<=e-1;o++)if(!(0,i.isDefined)(t[o].command)){n=t[o].index;break}return n}}),o.default.registerModule("columns",{defaultOptions:r.default.defaultOptions,controllers:{columns:e.ColumnsController}})},function(t,e,n){"use strict";var i=n(0),o=n(7),r=u(n(34)),a=n(4),s=u(n(488)),l=u(n(422));function u(t){return t&&t.__esModule?t:{default:t}}e.DataController=l.default.controllers.data.inherit({_getDataSourceAdapter:function(){return s.default},_getNodeLevel:function(t){for(var e=-1;t.parent;)t.visible&&e++,t=t.parent;return e},_generateDataItem:function(t,e){return{rowType:"data",node:t,key:t.key,data:t.data,isExpanded:this.isRowExpanded(t.key,e),level:this._getNodeLevel(t)}},_loadOnOptionChange:function(){this._dataSource.load()},_isItemEquals:function(t,e){return!!this.callBase.apply(this,arguments)&&(!t.node||!e.node||t.node.hasChildren===e.node.hasChildren)&&t.level===e.level},init:function(){this.createAction("onRowExpanding"),this.createAction("onRowExpanded"),this.createAction("onRowCollapsing"),this.createAction("onRowCollapsed"),this.callBase.apply(this,arguments)},keyOf:function(t){var e=this._dataSource;if(e)return e.keyOf(t)},key:function(){var t=this._dataSource;if(t)return t.getKeyExpr()},publicMethods:function(){return this.callBase().concat(["expandRow","collapseRow","isRowExpanded","getRootNode","getNodeByKey","loadDescendants","forEachNode"])},changeRowExpand:function(t){if(this._dataSource){var e=this,n={key:t},i=this.isRowExpanded(t);if(e.executeAction(i?"onRowCollapsing":"onRowExpanding",n),!n.cancel)return e._dataSource.changeRowExpand(t).done((function(){e.executeAction(i?"onRowCollapsed":"onRowExpanded",n)}))}return(new o.Deferred).resolve()},isRowExpanded:function(t,e){return this._dataSource&&this._dataSource.isRowExpanded(t,e)},expandRow:function(t){return this.isRowExpanded(t)?(new o.Deferred).resolve():this.changeRowExpand(t)},collapseRow:function(t){return this.isRowExpanded(t)?this.changeRowExpand(t):(new o.Deferred).resolve()},getRootNode:function(){return this._dataSource&&this._dataSource.getRootNode()},optionChanged:function(t){switch(t.name){case"rootValue":case"parentIdExpr":case"itemsExpr":case"filterMode":case"expandNodesOnFiltering":case"autoExpandAll":case"hasItemsExpr":case"dataStructure":this._columnsController.reset(),this._items=[],this._refreshDataSource(),t.handled=!0;break;case"expandedRowKeys":case"onNodesInitialized":!this._dataSource||this._dataSource._isNodesInitializing||(0,a.equalByValue)(t.value,t.previousValue)||this._loadOnOptionChange(),t.handled=!0;break;case"maxFilterLengthInRequest":t.handled=!0;break;default:this.callBase(t)}},getNodeByKey:function(t){if(this._dataSource)return this._dataSource.getNodeByKey(t)},getChildNodeKeys:function(t){if(this._dataSource)return this._dataSource.getChildNodeKeys(t)},loadDescendants:function(t,e){if(this._dataSource)return this._dataSource.loadDescendants(t,e)},forEachNode:function(){this._dataSource.forEachNode.apply(this,arguments)}}),r.default.registerModule("data",{defaultOptions:function(){return(0,i.extend)({},l.default.defaultOptions(),{itemsExpr:"items",parentIdExpr:"parentId",rootValue:0,dataStructure:"plain",expandedRowKeys:[],filterMode:"withAncestors",expandNodesOnFiltering:!0,autoExpandAll:!1,onNodesInitialized:null,maxFilterLengthInRequest:1500,paging:{enabled:!1}})},controllers:{data:e.DataController}})},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(423));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("sorting",o.default)},function(t,e,n){"use strict";var i=a(n(3)),o=a(n(34)),r=a(n(425));function a(t){return t&&t.__esModule?t:{default:t}}e.RowsView=r.default.views.rowsView.inherit(function(){var t=function(t,e){var n=(0,i.default)("<div>").addClass("dx-treelist-empty-space");return t&&n.toggleClass("dx-treelist-expanded",e).toggleClass("dx-treelist-collapsed",!e).append((0,i.default)("<span>")),n};return{_renderIconContainer:function(t,e){var n=this,o=(0,i.default)("<div>").addClass("dx-treelist-icon-container").appendTo(t);return e.watch&&e.watch((function(){return[e.row.level,e.row.isExpanded,e.row.node.hasChildren]}),(function(){o.empty(),n._renderIcons(o,e)})),t.addClass("dx-treelist-cell-expandable"),this._renderIcons(o,e)},_renderIcons:function(e,n){for(var i=n.row,o=i.level,r=0;r<=o;r++)e.append(t(r===o&&i.node.hasChildren,i.isExpanded));return e},_renderCellCommandContent:function(t,e){return this._renderIconContainer(t,e),!0},_processTemplate:function(t,e){var n=this,o=this.callBase(t),r=n._columnsController.getFirstDataColumnIndex();return o&&e.column.index===r?{render:function(t){var e=t.container;n._renderCellCommandContent(e,t.model)&&(t.container=function(t){return(0,i.default)("<div>").addClass("dx-treelist-text-content").appendTo(t)}(e)),o.render(t)}}:o},_updateCell:function(t,e){t=t.hasClass("dx-treelist-text-content")?t.parent():t,this.callBase(t,e)},_rowClick:function(t){var e=this._dataController,n=(0,i.default)(t.event.target),o=this.isExpandIcon(n),r=e&&e.items()[t.rowIndex];o&&r&&e.changeRowExpand(r.key),this.callBase(t)},_createRow:function(t){var e=t&&t.node,n=this.callBase.apply(this,arguments);return e&&(this.setAria("level",t.level,n),e.hasChildren&&this.setAria("expanded",t.isExpanded,n)),n},isExpandIcon:function(t){return!!t.closest(".dx-treelist-expanded, .dx-treelist-collapsed").length}}}()),o.default.registerModule("rows",{defaultOptions:r.default.defaultOptions,views:{rowsView:e.RowsView}})},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(426));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("contextMenu",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(427));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("errorHandling",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(428));function r(t){return t&&t.__esModule?t:{default:t}}var a=o.default.views.gridView.inherit({_getWidgetAriaLabel:function(){return"dxTreeList-ariaTreeList"},_getTableRoleName:function(){return"treegrid"}});i.default.registerModule("gridView",{defaultOptions:o.default.defaultOptions,controllers:o.default.controllers,views:{gridView:a},extenders:{controllers:{resizing:{_toggleBestFitMode:function(t){(this.callBase(t),this.option("legacyRendering"))||this._rowsView._getTableElement().find(".dx-treelist-cell-expandable").toggleClass(this.addWidgetPrefix("best-fit"),t)}}}}})},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(429));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("headerPanel",o.default)},function(t,e,n){"use strict";var i=a(n(34)),o=n(0),r=a(n(431));function a(t){return t&&t.__esModule?t:{default:t}}var s=r.default.extenders.controllers.stateStoring.applyState;i.default.registerModule("stateStoring",(0,o.extend)(!0,{},r.default,{extenders:{controllers:{stateStoring:{applyState:function(t){s.apply(this,arguments),Object.prototype.hasOwnProperty.call(t,"expandedRowKeys")&&this.option("expandedRowKeys",t.expandedRowKeys&&t.expandedRowKeys.slice())}},data:{getUserState:function(){var t=this.callBase.apply(this,arguments);return this.option("autoExpandAll")||(t.expandedRowKeys=this.option("expandedRowKeys")),t}}}}}))},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(434));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columnChooser",o.default)},function(t,e,n){"use strict";var i=a(n(34)),o=a(n(437)),r=n(0);function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("masterDetail",(0,r.extend)(!0,{},o.default,{extenders:{controllers:{data:{isRowExpanded:function(){return this.callBase.apply(this,arguments)},_processItems:function(){return this.callBase.apply(this,arguments)},_processDataItem:function(){return this.callBase.apply(this,arguments)}}}}}))},function(t,e,n){"use strict";n(936);var i=h(n(3)),o=h(n(23)),r=n(2),a=n(0),s=n(7),l=h(n(12)),u=h(n(34)),c=h(n(40)),d=h(n(441));function h(t){return t&&t.__esModule?t:{default:t}}var f=d.default.controllers.editing.inherit({_generateNewItem:function(t){var e=this.callBase(t);return e.data={key:t},e.children=[],e.level=0,e.parentKey=this.option("rootValue"),e},_needInsertItem:function(t,e,n,i){var o=t.key.parentKey;if(void 0!==o&&o!==this.option("rootValue")){var r=c.default.getIndexByKey(o,n);return r>=0&&this._dataController.isRowExpanded(o)&&n.splice(r+1,0,i),!1}return this.callBase.apply(this,arguments)},_isEditColumnVisible:function(){var t=this.callBase.apply(this,arguments),e=this.option("editing");return t||e&&e.allowAdding},_isDefaultButtonVisible:function(t,e){var n=this.callBase.apply(this,arguments),i=e.row;return"add"===t.name?this.allowAdding(e)&&i.rowIndex!==this._getVisibleEditRowIndex()&&!(i.removed||i.isNewRow):n},_getEditingButtons:function(t){var e=this.callBase.apply(this,arguments);return t.column.buttons||e.unshift(this._getButtonConfig("add",t)),e},_beforeSaveEditData:function(t){var e=this._dataController,n=this.callBase.apply(this,arguments);if(t&&"insert"!==t.type){var i=e&&e.store(),a=i&&i.key();if(!(0,r.isDefined)(a))throw o.default.Error("E1045")}return n},addRowByRowIndex:function(t){var e=this.getController("data").getVisibleRows()[t];return this.addRow(e?e.key:void 0)},addRow:function(t){var e=this,n=e.callBase,i=e.getController("data");if(void 0!==t&&!i.isRowExpanded(t)){var o=new s.Deferred;return i.expandRow(t).done((function(){setTimeout((function(){n.call(e,t).done(o.resolve).fail(o.reject)}))})).fail(o.reject),o.promise()}return void 0===t&&(t=e.option("rootValue")),n.call(e,t)},_initNewRow:function(t,e){var n=this.getController("data"),i=n.dataSource(),o=i.createParentIdSetter();return o(t.data,e),this.callBase.apply(this,arguments)},allowAdding:function(t){return this._allowEditAction("allowAdding",t)},_needToCloseEditableCell:function(t){return this.callBase.apply(this,arguments)||t.closest(".dx-treelist-icon-container").length&&this.isEditing()},getButtonLocalizationNames:function(){var t=this.callBase.apply(this);return t.add="dxTreeList-editingAddRowToNode",t}}),p=d.default.extenders.views.rowsView._rowClick,m=d.default.extenders.views.rowsView._rowDblClick,g=function(t){var e=(0,i.default)(t.event.target),n="dxdblclick"===t.event.type?m:p;return!e.closest(".dx-select-checkbox").length&&!_.call(this,t,n)};function _(t,e){return!(0,i.default)(t.event.target).closest(".dx-treelist-icon-container").length&&(e.call(this,t),!0)}var v=(0,a.extend)({},d.default.extenders.views.rowsView,{_renderCellCommandContent:function(t,e){var n=this._editingController,i=e.row&&n.isEditRow(e.row.rowIndex),o=e.isEditing||i;return!o&&this.callBase.apply(this,arguments)},_rowClick:function(t){g.call(this,t)&&this.callBase.apply(this,arguments)},_rowDblClick:function(t){g.call(this,t)&&this.callBase.apply(this,arguments)}});u.default.registerModule("editing",{defaultOptions:function(){return(0,a.extend)(!0,d.default.defaultOptions(),{editing:{texts:{addRowToNode:l.default.format("dxTreeList-editingAddRowToNode")}}})},controllers:{editing:f},extenders:{controllers:(0,a.extend)(!0,{},d.default.extenders.controllers,{data:{changeRowExpand:function(){return this._editingController.refresh(),this.callBase.apply(this,arguments)}}}),views:{rowsView:v,headerPanel:d.default.extenders.views.headerPanel}}})},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(438));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("editorFactory",o.default)},function(t,e,n){"use strict";var i=n(0),o=a(n(34)),r=a(n(449));function a(t){return t&&t.__esModule?t:{default:t}}var s=(0,i.extend)({},r.default.extenders.controllers.editing);delete s.processItems,delete s.processDataItem,o.default.registerModule("validating",{defaultOptions:r.default.defaultOptions,controllers:r.default.controllers,extenders:{controllers:{editing:s,editorFactory:r.default.extenders.controllers.editorFactory},views:r.default.extenders.views}})},function(t,e,n){"use strict";var i=s(n(34)),o=s(n(488)),r=s(n(451)),a=n(0);function s(t){return t&&t.__esModule?t:{default:t}}var l=r.default.defaultOptions,u=r.default.extenders.controllers.data,c=r.default.extenders.dataSourceAdapter;r.default.extenders.controllers.data=(0,a.extend)({},u,{_loadOnOptionChange:function(){var t=this._dataSource&&this._dataSource._virtualScrollController;t&&t.reset(),this.callBase()}}),r.default.extenders.dataSourceAdapter=(0,a.extend)({},c,{changeRowExpand:function(){var t=this;return this.callBase.apply(this,arguments).done((function(){var e=t.getViewportItemIndex();e>=0&&t.setViewportItemIndex(e)}))}}),i.default.registerModule("virtualScrolling",(0,a.extend)({},r.default,{defaultOptions:function(){return(0,a.extend)(!0,l(),{scrolling:{mode:"virtual"}})}})),o.default.extend(r.default.extenders.dataSourceAdapter)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(453));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterRow",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(456));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("headerFilter",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(458));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterSync",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(460));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterBuilder",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(462));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("filterPanel",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(464));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("pager",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(465));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columnsResizingReordering",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(467));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("columnFixing",o.default)},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(468));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("adaptivity",o.default)},function(t,e,n){"use strict";var i=u(n(3)),o=u(n(34)),r=n(4),a=u(n(433)),s=u(n(23)),l=n(0);function u(t){return t&&t.__esModule?t:{default:t}}var c=a.default.extenders.views.rowsView._rowClick,d=a.default.extenders.controllers.data._handleDataChanged,h=function(t,e){return!!t.filter((function(t){return t===e})).length};o.default.registerModule("selection",(0,l.extend)(!0,{},a.default,{defaultOptions:function(){return(0,l.extend)(!0,a.default.defaultOptions(),{selection:{showCheckBoxesMode:"always",recursive:!1}})},extenders:{controllers:{data:{_handleDataChanged:function(t){var e=this.getController("selection"),n=e.isRecursiveSelection();!n||t&&"updateSelectionState"===t.changeType||e.updateSelectionState({selectedItemKeys:this.option("selectedRowKeys")}),d.apply(this,arguments)},loadDescendants:function(){var t=this,e=t.callBase.apply(t,arguments),n=t.getController("selection"),i=n.isRecursiveSelection();return i&&e.done((function(){n.updateSelectionState({selectedItemKeys:t.option("selectedRowKeys")})})),e}},selection:{init:function(){this.callBase.apply(this,arguments),this._selectionStateByKey={}},_getSelectionConfig:function(){var t=arguments,e=this,n=this.callBase.apply(this,arguments),i=n.plainItems;return n.plainItems=function(n){return n?e._dataController.getCachedStoreData()||[]:i.apply(e,t).map((function(t){return t.data}))},n.isItemSelected=function(t){var n=e._dataController.keyOf(t);return e.isRowSelected(n)},n.isSelectableItem=function(){return!0},n.getItemData=function(t){return t},n},renderSelectCheckBoxContainer:function(t,e){var n=this.component.getView("rowsView");t.addClass("dx-cell-focus-disabled");var i=n._renderSelectCheckBox(t,{value:e.row.isSelected,row:e.row,column:e.column});n._attachCheckBoxClickEvent(i)},_updateSelectColumn:r.noop,_getSelectAllNodeKeys:function(){var t=this.component,e=t.getRootNode(),n={},i=[],r=this.isRecursiveSelection();return e&&o.default.foreachNodes(e.children,(function(e){return void 0!==e.key&&(e.visible||r)&&i.push(e.key),!e.visible||!r&&t.isRowExpanded(e.key,n)})),i},isSelectAll:function(){var t=this.component,e=this._getSelectAllNodeKeys(),n=e.filter((function(e){return t.isRowSelected(e)}));return n.length?n.length===e.length||void 0:!!e.some((function(e){return void 0===t.isRowSelected(e)}))&&void 0},selectAll:function(){var t=this,e=t._getSelectAllNodeKeys().filter((function(e){return!t.isRowSelected(e)}));return t.selectRows(e,!0)},deselectAll:function(){var t=this._getSelectAllNodeKeys();return this.deselectRows(t)},selectedItemKeys:function(t,e,n,i){var o=this,a=o.option("selectedRowKeys"),s=this.isRecursiveSelection()&&o._normalizeSelectionArgs({keys:t||[]},!n);return s&&!(0,r.equalByValue)(s.selectedRowKeys,a)?(o._isSelectionNormalizing=!0,this.callBase(s.selectedRowKeys,!1,!1,!1).always((function(){o._isSelectionNormalizing=!1})).done((function(t){s.selectedRowsData=t,o._fireSelectionChanged(s)}))):this.callBase(t,e,n,i)},changeItemSelection:function(t,e){var n=this.isRecursiveSelection();if(n&&!e.shift){var i=this._dataController.getKeyByRowIndex(t);return this.selectedItemKeys(i,!0,this.isRowSelected(i))}return this.callBase.apply(this,arguments)},_updateParentSelectionState:function(t,e){var n=this,i=e,o=t.parent;if(o){if(o.children.length>1)if(!1===e)i=!!o.children.some((function(t,e,i){return n._selectionStateByKey[t.key]}))&&void 0;else if(!0===e)i=!o.children.some((function(t){return!n._selectionStateByKey[t.key]}))||void 0;this._selectionStateByKey[o.key]=i,o.parent&&o.parent.level>=0&&this._updateParentSelectionState(o,i)}},_updateChildrenSelectionState:function(t,e){var n=this,i=t.children;i&&i.forEach((function(t){n._selectionStateByKey[t.key]=e,t.children.length>0&&n._updateChildrenSelectionState(t,e)}))},_updateSelectionStateCore:function(t,e){for(var n=this._dataController,i=0;i<t.length;i++){this._selectionStateByKey[t[i]]=e;var o=n.getNodeByKey(t[i]);o&&(this._updateParentSelectionState(o,e),this._updateChildrenSelectionState(o,e))}},_getSelectedParentKeys:function(t,e,n){for(var i,o=this._dataController.getNodeByKey(t),r=o&&o.parent,a=[];r&&r.level>=0;){if(a.unshift(r.key),n?!h(e,r.key)&&this.isRowSelected(r.key):e.indexOf(r.key)>=0){i=r,a=this._getSelectedParentKeys(i.key,e,n).concat(a);break}if(n)break;r=r.parent}return i&&a||[]},_getSelectedChildKeys:function(t,e){var n=this,i=[];return t&&o.default.foreachNodes(t.children,(function(t){var o=e.indexOf(t.key);return o<0&&i.push(t.key),o>0||o<0&&void 0===n._selectionStateByKey[t.key]})),i},_normalizeParentKeys:function(t,e){var n=[t],i=this._getSelectedParentKeys(t,e.selectedRowKeys);if(i.length){(n=n.concat(i)).forEach((function(t){var n=e.selectedRowKeys.indexOf(t);n>=0&&e.selectedRowKeys.splice(n,1)}));var o=this._dataController.getNodeByKey(i[0]),r=this._getSelectedChildKeys(o,n);e.selectedRowKeys=e.selectedRowKeys.concat(r)}},_normalizeChildrenKeys:function(t,e){var n=this,i=n._dataController.getNodeByKey(t);i&&i.children.forEach((function(t){var i=e.selectedRowKeys.indexOf(t.key);i>=0&&e.selectedRowKeys.splice(i,1),n._normalizeChildrenKeys(t.key,e)}))},_normalizeSelectedRowKeysCore:function(t,e,n){var i=this;t.forEach((function(t){if(i.isRowSelected(t)!==n){i._normalizeChildrenKeys(t,e);var o=e.selectedRowKeys.indexOf(t);n?(o<0&&e.selectedRowKeys.push(t),e.currentSelectedRowKeys.push(t)):(o>=0&&e.selectedRowKeys.splice(o,1),e.currentDeselectedRowKeys.push(t),i._normalizeParentKeys(t,e))}}))},_normalizeSelectionArgs:function(t,e){var n,i=Array.isArray(t.keys)?t.keys:[t.keys],o=this.option("selectedRowKeys")||[];return i.length&&(n={currentSelectedRowKeys:[],currentDeselectedRowKeys:[],selectedRowKeys:o.slice(0)},this._normalizeSelectedRowKeysCore(i,n,e)),n},_updateSelectedItems:function(t){this.updateSelectionState(t),this.callBase(t)},_fireSelectionChanged:function(){this._isSelectionNormalizing||this.callBase.apply(this,arguments)},_isModeLeavesOnly:function(t){return"leavesOnly"===t||!0===t},_getAllSelectedRowKeys:function(t){var e=this,n=[];return t.forEach((function(t){var i=n.length,o=e._getSelectedParentKeys(t,n,!0),r=e._dataController.getChildNodeKeys(t);n.splice.apply(n,[i,0].concat(o)),n.push(t),n=n.concat(r)})),n},_getParentSelectedRowKeys:function(t){var e=this,n=[];return t.forEach((function(i){!e._getSelectedParentKeys(i,t).length&&n.push(i)})),n},_getLeafSelectedRowKeys:function(t){var e=[],n=this._dataController;return t.forEach((function(t){var i=n.getNodeByKey(t);i&&!i.hasChildren&&e.push(t)})),e},isRecursiveSelection:function(){var t=this.option("selection.mode"),e=this.option("selection.recursive");return"multiple"===t&&e},updateSelectionState:function(t){var e=t.removedItemKeys||[],n=t.selectedItemKeys||[];this._updateSelectionStateCore(e,!1),this._updateSelectionStateCore(n,!0)},isRowSelected:function(t){var e=this.callBase.apply(this,arguments),n=this.isRecursiveSelection();return!e&&n?t in this._selectionStateByKey&&this._selectionStateByKey[t]:e},getSelectedRowKeys:function(t){var e=this;if(!e._dataController)return[];!0===t&&s.default.log("W0002","dxTreeList","getSelectedRowKeys(leavesOnly)","18.1","Use the 'getSelectedRowKeys(mode)' method with a string parameter instead");var n=e.callBase.apply(e,arguments);return t&&(this.isRecursiveSelection()&&(n=this._getAllSelectedRowKeys(n)),"all"!==t&&("excludeRecursive"===t?n=e._getParentSelectedRowKeys(n):e._isModeLeavesOnly(t)&&(n=e._getLeafSelectedRowKeys(n)))),n},getSelectedRowsData:function(t){var e=this._dataController,n=this.getSelectedRowKeys(t)||[],i=[];return n.forEach((function(t){var n=e.getNodeByKey(t);n&&i.push(n.data)})),i},refresh:function(){return this._selectionStateByKey={},this.callBase.apply(this,arguments)}}},views:{columnHeadersView:{_processTemplate:function(t,e){var n=this,i=this.callBase(t,e),o=n._columnsController.getFirstDataColumnIndex();return i&&"header"===e.rowType&&e.column.index===o?{render:function(t){"multiple"===n.option("selection.mode")&&n.renderSelectAll(t.container,t.model),i.render(t)}}:i},renderSelectAll:function(t,e){t.addClass("dx-treelist-select-all"),this._renderSelectAllCheckBox(t)},_isSortableElement:function(t){return this.callBase(t)&&!t.closest(".dx-select-checkbox").length}},rowsView:{_renderIcons:function(t,e){return this.callBase.apply(this,arguments),"multiple"===this.option("selection.mode")&&this.getController("selection").renderSelectCheckBoxContainer(t,e),t},_rowClick:function(t){var e=(0,i.default)(t.event.target);this.isExpandIcon(e)?this.callBase.apply(this,arguments):c.apply(this,arguments)}}}}}))},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(463));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("search",o.default)},function(t,e,n){"use strict";var i=a(n(34)),o=a(n(466)),r=n(0);function a(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("keyboardNavigation",(0,r.extend)(!0,{},o.default,{extenders:{controllers:{keyboardNavigation:{_leftRightKeysHandler:function(t,e){var n=this.getVisibleRowIndex(),i=this._dataController;if(!t.ctrl)return this.callBase.apply(this,arguments);var o=this._getDirectionCodeByKey(t.keyName),r=i.getKeyByRowIndex(n);"nextInRow"===o?i.expandRow(r):i.collapseRow(r)}}}}}))},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(469));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("virtualColumns",o.default)},function(t,e,n){"use strict";var i=s(n(34)),o=n(0),r=n(7),a=s(n(472));function s(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("focus",(0,o.extend)(!0,{},a.default,{extenders:{controllers:{data:{changeRowExpand:function(t){return this.option("focusedRowEnabled")&&this.isRowExpanded(t)&&this._isFocusedRowInside(t)&&this.option("focusedRowKey",t),this.callBase.apply(this,arguments)},_isFocusedRowInside:function(t){for(var e=this.option("focusedRowKey"),n=this.getRowIndexByKey(e),i=n>=0&&this.getVisibleRows()[n],o=i&&i.node.parent;o;){if(o.key===t)return!0;o=o.parent}return!1},getParentKey:function(t){var e=this._dataSource,n=this.getNodeByKey(t),i=new r.Deferred;return n?i.resolve(n.parent?n.parent.key:void 0):e.load({filter:[e.getKeyExpr(),"=",t]}).done((function(t){var n=t[0];n?i.resolve(e.parentKeyOf(n)):i.reject()})).fail(i.reject),i.promise()},expandAscendants:function(t){var e=this,n=e._dataSource,i=new r.Deferred;return e.getParentKey(t).done((function(t){n&&void 0!==t&&t!==e.option("rootValue")?(n._isNodesInitializing=!0,e.expandRow(t),n._isNodesInitializing=!1,e.expandAscendants(t).done(i.resolve).fail(i.reject)):i.resolve()})).fail(i.reject),i.promise()},getPageIndexByKey:function(t){var e=this,n=e._dataSource,i=new r.Deferred;return e.expandAscendants(t).done((function(){n.load({filter:e.getCombinedFilter(),sort:e.getController("columns").getSortDataSourceParameters(!n.remoteOperations().sorting),parentIds:[]}).done((function(n){var o=function(t,e){var n=-1;return t.forEach((function(t,i){e(t)&&(n=i)})),n}(n,(function(n){return e.keyOf(n.data)===t})),r=e.pageIndex();o>=0&&(r=Math.floor(o/e.pageSize())),i.resolve(r)})).fail(i.reject)})).fail(i.reject),i.promise()}}}}}))},function(t,e,n){"use strict";var i=r(n(34)),o=r(n(473));function r(t){return t&&t.__esModule?t:{default:t}}i.default.registerModule("rowDragging",o.default)},function(t,e,n){"use strict";var i=r(n(189)),o=r(n(99));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(r,t);var e,n,i,o=u(r);function r(t,e,n){var i;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(i=o.call(this))._optionName=t,i._loadPanel=e,i._dataSourceChangedCallback=n,i}return e=r,(n=[{key:"insert",value:function(t,e,n){var i=this;this._showLoadPanel(),this._getStore().insert(t).done((function(t){e&&e(t),i._hideLoadPanel()})).fail((function(t){n&&n(t),i._hideLoadPanel()}))}},{key:"update",value:function(t,e,n,i){var o=this;this._showLoadPanel(),this._getStore().update(t,e).done((function(t,e){n&&n(t,e),o._hideLoadPanel()})).fail((function(t){i&&i(t),o._hideLoadPanel()}))}},{key:"remove",value:function(t,e,n){var i=this;this._showLoadPanel(),this._getStore().remove(t).done((function(t){e&&e(t),i._hideLoadPanel()})).fail((function(t){n&&n(t),i._hideLoadPanel()}))}},{key:"_dataSourceChangedHandler",value:function(t,e){this._dataSourceChangedCallback(this._optionName,t)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_dataSourceLoadingChangedHandler",value:function(t){t&&!this._dataSource.isLoaded()?this._showLoadPanel():this._hideLoadPanel()}},{key:"_showLoadPanel",value:function(){this._loadPanel.show()}},{key:"_hideLoadPanel",value:function(){this._loadPanel.hide()}},{key:"_getStore",value:function(){return this._dataSource.store()}},{key:"_getItems",value:function(){return this._getStore()._array||this._dataSource.items()}}])&&s(e.prototype,n),i&&s(e,i),r}(i.default);h.include(o.default),t.exports=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.GanttDialog=void 0;var i=a(n(48)),o=a(n(169));n(305);var r=a(n(12));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}e.GanttDialog=function(){function t(e,n){f(this,t),this._popupInstance=e._createComponent(n,i.default),this.infoMap={TaskEdit:_,Resources:v,Confirmation:y,ConstraintViolation:b}}return m(t,[{key:"_apply",value:function(){var t=this._dialogInfo.getResult();this._callback(t),this.hide()}},{key:"show",value:function(t,e,n,i,o){this._callback=n,this._afterClosing=i,this.infoMap[t]&&(this._dialogInfo=new this.infoMap[t](e,this._apply.bind(this),this.hide.bind(this),o),this._popupInstance.option({showTitle:!!this._dialogInfo.getTitle(),title:this._dialogInfo.getTitle(),toolbarItems:this._dialogInfo.getToolbarItems(),maxWidth:this._dialogInfo.getMaxWidth(),height:this._dialogInfo.getHeight(),contentTemplate:this._dialogInfo.getContentTemplate()}),this._popupInstance.show())}},{key:"hide",value:function(){this._popupInstance.hide(),this._afterClosing&&this._afterClosing()}}]),t}();var g=function(){function t(e,n,i,o){f(this,t),this._parameters=e,this._applyAction=n,this._hideAction=i,this._editingOptions=o}return m(t,[{key:"_getFormItems",value:function(){return{}}},{key:"_getFormCssClass",value:function(){return""}},{key:"_getFormData",value:function(){return this._parameters}},{key:"_updateParameters",value:function(){}},{key:"_getOkToolbarItem",value:function(){return this._getToolbarItem("OK",this._applyAction)}},{key:"_getCancelToolbarItem",value:function(){return this._getToolbarItem("Cancel",this._hideAction)}},{key:"_getYesToolbarItem",value:function(){return this._getToolbarItem("Yes",this._applyAction)}},{key:"_getNoToolbarItem",value:function(){return this._getToolbarItem("No",this._hideAction)}},{key:"_getToolbarItem",value:function(t,e){return{widget:"dxButton",toolbar:"bottom",options:{text:r.default.format(t),onClick:e}}}},{key:"getTitle",value:function(){return""}},{key:"getToolbarItems",value:function(){return this._editingOptions.enabled?[this._getOkToolbarItem(),this._getCancelToolbarItem()]:[this._getCancelToolbarItem()]}},{key:"getMaxWidth",value:function(){return 400}},{key:"getHeight",value:function(){return"auto"}},{key:"getContentTemplate",value:function(){var t=this;return function(e){return t._form=new o.default(e,{formData:t._getFormData(),items:t._getFormItems(),elementAttr:{class:t._getFormCssClass()}}),e}}},{key:"getResult",value:function(){var t=this._form&&this._form.option("formData");return this._updateParameters(t),this._parameters}}]),t}(),_=function(t){l(n,t);var e=c(n);function n(){return f(this,n),e.apply(this,arguments)}return m(n,[{key:"getTitle",value:function(){return r.default.format("dxGantt-dialogTaskDetailsTitle")}},{key:"_getFormItems",value:function(){var t=this,e=!this._editingOptions.enabled||!this._editingOptions.allowTaskUpdating,n=e||!this._parameters.enableRangeEdit;return[{dataField:"title",editorType:"dxTextBox",label:{text:r.default.format("dxGantt-dialogTitle")},editorOptions:{readOnly:e}},{dataField:"start",editorType:"dxDateBox",label:{text:r.default.format("dxGantt-dialogStartTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n}},{dataField:"end",editorType:"dxDateBox",label:{text:r.default.format("dxGantt-dialogEndTitle")},editorOptions:{type:"datetime",width:"100%",readOnly:n}},{dataField:"progress",editorType:"dxNumberBox",label:{text:r.default.format("dxGantt-dialogProgressTitle")},editorOptions:{showSpinButtons:!0,min:0,max:1,format:"#0%",step:.01,readOnly:n}},{dataField:"assigned.items",editorType:"dxTagBox",label:{text:r.default.format("dxGantt-dialogResourcesTitle")},editorOptions:{readOnly:e,dataSource:this._parameters.resources.items,displayExpr:"text",buttons:[{name:"editResources",location:"after",options:{text:"...",hint:r.default.format("dxGantt-dialogEditResourceListHint"),onClick:function(){t._parameters.showResourcesDialogCommand.execute()}}}]}}]}},{key:"_getFormData",value:function(){var t={};for(var e in this._parameters)t[e]="progress"===e?this._parameters[e]/100:this._parameters[e];return t}},{key:"_updateParameters",value:function(t){this._parameters.title=t.title,this._parameters.start=t.start,this._parameters.end=t.end,this._parameters.progress=100*t.progress,this._parameters.assigned=t.assigned}}]),n}(g),v=function(t){l(n,t);var e=c(n);function n(){return f(this,n),e.apply(this,arguments)}return m(n,[{key:"getTitle",value:function(){return r.default.format("dxGantt-dialogResourceManagerTitle")}},{key:"_getFormItems",value:function(){var t=this;return[{label:{visible:!1},dataField:"resources.items",editorType:"dxList",editorOptions:{allowItemDeleting:this._editingOptions.enabled&&this._editingOptions.allowResourceDeleting,itemDeleteMode:"static",selectionMode:"none",items:this._parameters.resources.items,height:250,noDataText:r.default.format("dxGantt-dialogEditNoResources"),onInitialized:function(e){t.list=e.component},onItemDeleted:function(e){t._parameters.resources.remove(e.itemData)}}},{label:{visible:!1},editorType:"dxTextBox",editorOptions:{readOnly:!this._editingOptions.enabled||!this._editingOptions.allowResourceAdding,onInitialized:function(e){t.textBox=e.component},onInput:function(t){var e=t.component.getButton("addResource"),n=t.component.option("text");e.option("disabled",0===n.length)},buttons:[{name:"addResource",location:"after",options:{text:r.default.format("dxGantt-dialogButtonAdd"),disabled:!0,onClick:function(e){var n=t._parameters.resources.createItem();n.text=t.textBox.option("text"),t._parameters.resources.add(n),t.list.option("items",t._parameters.resources.items),t.list.scrollToItem(n),t.textBox.reset(),e.component.option("disabled",!0)}}}]}}]}}]),n}(g),y=function(t){l(n,t);var e=c(n);function n(){return f(this,n),e.apply(this,arguments)}return m(n,[{key:"getContentTemplate",value:function(){var t=this;return function(e){return t._getConfirmMessage()}}},{key:"_getConfirmMessage",value:function(){switch(this._parameters.type){case 0:return r.default.format("dxGantt-dialogTaskDeleteConfirmation");case 1:return r.default.format("dxGantt-dialogDependencyDeleteConfirmation");case 2:return r.default.format("dxGantt-dialogResourcesDeleteConfirmation",this._parameters.message);default:return""}}},{key:"getToolbarItems",value:function(){return[this._getYesToolbarItem(),this._getNoToolbarItem()]}}]),n}(g),b=function(t){l(n,t);var e=c(n);function n(){return f(this,n),e.apply(this,arguments)}return m(n,[{key:"_getFormItems",value:function(){var t=[];return t.push({text:r.default.format("dxGantt-dialogCancelOperationMessage"),value:0}),t.push({text:r.default.format("dxGantt-dialogDeleteDependencyMessage"),value:1}),this._parameters.validationError.critical||t.push({text:r.default.format("dxGantt-dialogMoveTaskAndKeepDependencyMessage"),value:2}),[{template:this._parameters.validationError.critical?r.default.format("dxGantt-dialogConstraintCriticalViolationMessage"):r.default.format("dxGantt-dialogConstraintViolationMessage")},{cssClass:"dx-cv-dialog-row",dataField:"option",label:{visible:!1},editorType:"dxRadioGroup",editorOptions:{items:t,valueExpr:"value",value:0}}]}},{key:"_getFormCssClass",value:function(){return"dx-cv-dialog"}},{key:"_updateParameters",value:function(t){this._parameters.option=t.option}}]),n}(g)},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(957),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={mediaResizing:{optionName:"mediaResizing",isCollectionItem:!1},mention:{optionName:"mentions",isCollectionItem:!0},toolbar:{optionName:"toolbar",isCollectionItem:!1},variables:{optionName:"variables",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.HtmlEditor=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,customizeModules:r.func,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,mediaResizing:r.object,mentions:r.array,name:r.string,onContentReady:r.func,onDisposing:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,tabIndex:r.number,toolbar:r.object,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueType:r.oneOf(["html","markdown"]),variables:r.object,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="mediaResizing",e}(s.default);e.MediaResizing=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="mentions",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Mention=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbar",e.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.Toolbar=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="variables",e}(s.default);e.Variables=f,e.default=l},function(t,e,n){"use strict";t.exports=n(958),t.exports.default=t.exports},function(t,e,n){"use strict";var i=S(n(3)),o=n(0),r=n(2),a=n(17),s=n(4),l=S(n(8)),u=n(98),c=S(n(62)),d=S(n(23)),h=S(n(39)),f=n(7),p=S(n(6)),m=n(11),g=S(n(268)),_=n(306),v=S(n(959));n(974);var y=S(n(491)),b=S(n(975)),w=S(n(976)),x=S(n(977)),C=S(n(978));function S(t){return t&&t.__esModule?t:{default:t}}var k=c.default.inherit({_getDefaultOptions:function(){return(0,o.extend)(this.callBase(),{focusStateEnabled:!0,valueType:"html",placeholder:"",toolbar:null,variables:null,mediaResizing:null,mentions:null,customizeModules:null,formDialogOptions:null})},_init:function(){this.callBase(),this._cleanCallback=(0,h.default)(),this._contentInitializedCallback=(0,h.default)()},_getAnonymousTemplateName:function(){return"htmlContent"},_initTemplates:function(){var t,e,n;this._templateManager.addDefaultTemplates((t={},e="htmlContent",n=new u.EmptyTemplate,e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t)),this.callBase()},_focusTarget:function(){return this._getContent()},_getContent:function(){return this.$element().find(".".concat("dx-htmleditor-content"))},_focusInHandler:function(t){var e=t.relatedTarget;this._shouldSkipFocusEvent(e)||(this._toggleFocusClass(!0,this.$element()),this.callBase.apply(this,arguments))},_focusOutHandler:function(t){var e=t.relatedTarget;this._shouldSkipFocusEvent(e)||(this._toggleFocusClass(!1,this.$element()),this.callBase.apply(this,arguments))},_shouldSkipFocusEvent:function(t){return(0,i.default)(t).hasClass("ql-clipboard")},_initMarkup:function(){this._$htmlContainer=(0,i.default)("<div>").addClass("dx-quill-container"),this.$element().addClass("dx-htmleditor").wrapInner(this._$htmlContainer);var t=this._getTemplate("htmlContent");this._$templateResult=t&&t.render({container:(0,a.getPublicElement)(this._$htmlContainer),noModel:!0,transclude:!0}),this._renderSubmitElement(),this.callBase(),this._updateContainerMarkup()},_renderSubmitElement:function(){this._$submitElement=(0,i.default)("<textarea>").addClass("dx-htmleditor-submit-element").attr("hidden",!0).appendTo(this.$element()),this._setSubmitValue(this.option("value"))},_setSubmitValue:function(t){this._getSubmitElement().val(t)},_getSubmitElement:function(){return this._$submitElement},_updateContainerMarkup:function(){var t=this.option("value");this._isMarkdownValue()&&(this._prepareMarkdownConverter(),t=this._markdownConverter.toHtml(t)),t&&this._$htmlContainer.html(t)},_prepareMarkdownConverter:function(){var t=y.default.getConverter("markdown");if(!t)throw d.default.Error("E1051","markdown");this._markdownConverter=new t},_render:function(){this._prepareConverters(),this.callBase()},_prepareQuillRegistrator:function(){this._quillRegistrator||(this._quillRegistrator=new v.default)},_getRegistrator:function(){return this._prepareQuillRegistrator(),this._quillRegistrator},_prepareConverters:function(){if(!this._deltaConverter){var t=y.default.getConverter("delta");t&&(this._deltaConverter=new t)}"markdown"!==this.option("valueType")||this._markdownConverter||this._prepareMarkdownConverter()},_renderContentImpl:function(){this._contentRenderedDeferred=new f.Deferred;var t=this._contentRenderedDeferred.promise();return this.callBase(),this._renderHtmlEditor(),this._renderFormDialog(),this._addKeyPressHandler(),t},_addKeyPressHandler:function(){var t=(0,m.addNamespace)("keydown","".concat(this.NAME,"TextChange"));p.default.on(this._$htmlContainer,t,this._keyDownHandler.bind(this))},_keyDownHandler:function(t){this._saveValueChangeEvent(t)},_renderHtmlEditor:function(){var t=this,e=this.option("customizeModules"),n=this._getModulesConfig();(0,r.isFunction)(e)&&e(n),this._quillInstance=this._getRegistrator().createEditor(this._$htmlContainer[0],{placeholder:this.option("placeholder"),readOnly:this.option("readOnly")||this.option("disabled"),modules:n,theme:"basic"}),this._deltaConverter.setQuillInstance(this._quillInstance),this._textChangeHandlerWithContext=this._textChangeHandler.bind(this),this._quillInstance.on("text-change",this._textChangeHandlerWithContext),this._renderScrollHandler(),this._hasTranscludedContent()?this._updateContentTask=(0,s.executeAsync)((function(){t._applyTranscludedContent()})):this._finalizeContentRendering()},_renderScrollHandler:function(){var t=this._getContent(),e=(0,_.prepareScrollData)(t);p.default.on(t,(0,m.addNamespace)(g.default.init,this.NAME),e,s.noop)},_applyTranscludedContent:function(){var t=this._deltaConverter.toHtml(),e=this._quillInstance.clipboard.convert(t);e.ops.length?this._quillInstance.setContents(e):this._finalizeContentRendering()},_hasTranscludedContent:function(){return this._$templateResult&&this._$templateResult.length},_getModulesConfig:function(){var t=this._getRegistrator().getQuill(),e=(0,b.default)(t),n=(0,x.default)();return(0,o.extend)({toolbar:this._getModuleConfigByOption("toolbar"),variables:this._getModuleConfigByOption("variables"),dropImage:this._getBaseModuleConfig(),resizing:this._getModuleConfigByOption("mediaResizing"),mentions:this._getModuleConfigByOption("mentions"),clipboard:{matchVisual:!1,matchers:[["p.MsoListParagraphCxSpFirst",e],["p.MsoListParagraphCxSpMiddle",e],["p.MsoListParagraphCxSpLast",e],[1,(0,w.default)(t)],[1,n],[3,n]]}},this._getCustomModules())},_getModuleConfigByOption:function(t){var e=this.option(t),n={};if((0,r.isDefined)(e))return Array.isArray(e)?n[t]=e:n=e,(0,o.extend)(this._getBaseModuleConfig(),n)},_getBaseModuleConfig:function(){return{editorInstance:this}},_getCustomModules:function(){var t=this,e={};return this._getRegistrator().getRegisteredModuleNames().forEach((function(n){e[n]=t._getBaseModuleConfig()})),e},_textChangeHandler:function(t,e,n){var i=this._deltaConverter.toHtml(),o=this._isMarkdownValue()?this._updateValueByType("markdown",i):i,r=this.option("value");r===o||this._isNullValueConverted(r,o)||(this._isEditorUpdating=!0,this.option("value",o)),this._finalizeContentRendering()},_isNullValueConverted:function(t,e){return null===t&&""===e},_finalizeContentRendering:function(){this._contentRenderedDeferred&&(this.clearHistory(),this._contentInitializedCallback.fire(),this._contentRenderedDeferred.resolve(),this._contentRenderedDeferred=void 0)},_updateValueByType:function(t,e){var n=this._markdownConverter;if((0,r.isDefined)(n)){var i=(0,s.ensureDefined)(e,this.option("value"));return"markdown"===t?n.toMarkdown(i):n.toHtml(i)}},_isMarkdownValue:function(){return"markdown"===this.option("valueType")},_resetEnabledState:function(){if(this._quillInstance){var t=!(this.option("readOnly")||this.option("disabled"));this._quillInstance.enable(t)}},_renderFormDialog:function(){var t=(0,o.extend)(!0,{width:"auto",height:"auto",closeOnOutsideClick:!0},this.option("formDialogOptions"));this._formDialog=new C.default(this,t)},_getQuillContainer:function(){return this._$htmlContainer},_optionChanged:function(t){switch(t.name){case"value":if(this._quillInstance)if(this._isEditorUpdating)this._isEditorUpdating=!1;else{var e=this._isMarkdownValue()?this._updateValueByType("HTML",t.value):t.value;this._updateHtmlContent(e)}else this._$htmlContainer.html(t.value);this._setSubmitValue(t.value),this.callBase(t);break;case"placeholder":case"variables":case"toolbar":case"mentions":case"customizeModules":this._invalidate();break;case"valueType":this._prepareConverters();var n=this._updateValueByType(t.value);"html"===t.value&&this._quillInstance?this._updateHtmlContent(n):this.option("value",n);break;case"readOnly":case"disabled":this.callBase(t),this._resetEnabledState();break;case"formDialogOptions":this._renderFormDialog();break;case"mediaResizing":t.previousValue&&t.value?this._quillInstance.getModule("resizing").option(t.name,t.value):this._invalidate();break;case"width":this.callBase(t),this._repaintToolbar();break;default:this.callBase(t)}},_repaintToolbar:function(){var t=this._quillInstance.getModule("toolbar");t&&t.repaint()},_updateHtmlContent:function(t){var e=this._quillInstance.clipboard.convert(t);this._quillInstance.setContents(e)},_clean:function(){this._quillInstance&&(p.default.off(this._getContent(),".".concat(this.NAME)),this._quillInstance.off("text-change",this._textChangeHandlerWithContext),this._cleanCallback.fire()),this._abortUpdateContentTask(),this._cleanCallback.empty(),this._contentInitializedCallback.empty(),this.callBase()},_abortUpdateContentTask:function(){this._updateContentTask&&(this._updateContentTask.abort(),this._updateContentTask=void 0)},_applyQuillMethod:function(t,e){if(this._quillInstance)return this._quillInstance[t].apply(this._quillInstance,e)},_applyQuillHistoryMethod:function(t){this._quillInstance&&this._quillInstance.history&&this._quillInstance.history[t]()},addCleanCallback:function(t){this._cleanCallback.add(t)},addContentInitializedCallback:function(t){this._contentInitializedCallback.add(t)},register:function(t){this._getRegistrator().registerModules(t),this._quillInstance&&this.repaint()},get:function(t){return this._getRegistrator().getQuill().import(t)},getQuillInstance:function(){return this._quillInstance},getSelection:function(){return this._applyQuillMethod("getSelection")},setSelection:function(t,e){this._applyQuillMethod("setSelection",arguments)},format:function(t,e){this._applyQuillMethod("format",arguments)},formatText:function(t,e,n,i){this._applyQuillMethod("formatText",arguments)},formatLine:function(t,e,n,i){this._applyQuillMethod("formatLine",arguments)},getFormat:function(t,e){return this._applyQuillMethod("getFormat",arguments)},removeFormat:function(t,e){return this._applyQuillMethod("removeFormat",arguments)},clearHistory:function(){this._applyQuillHistoryMethod("clear")},undo:function(){this._applyQuillHistoryMethod("undo")},redo:function(){this._applyQuillHistoryMethod("redo")},getLength:function(){return this._applyQuillMethod("getLength")},delete:function(t,e){this._applyQuillMethod("deleteText",arguments)},insertText:function(t,e,n){this._applyQuillMethod("insertText",arguments)},insertEmbed:function(t,e,n){this._applyQuillMethod("insertEmbed",arguments)},showFormDialog:function(t){return this._formDialog.show(t)},formDialogOption:function(t,e){return this._formDialog.popupOption.apply(this._formDialog,arguments)},focus:function(){this.callBase(),this._applyQuillMethod("focus")}});(0,l.default)("dxHtmlEditor",k),t.exports=k},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(489),o=m(n(960)),r=m(n(961)),a=m(n(962)),s=m(n(963)),l=m(n(964)),u=m(n(965)),c=m(n(966)),d=m(n(968)),h=m(n(969)),f=m(n(971)),p=m(n(972));function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var _=function(){function t(){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),!t.initialized){var e=this.getQuill(),n=e.import("attributors/style/direction");e.register({"formats/align":u.default,"formats/direction":n,"formats/font":s.default,"formats/size":l.default,"formats/extendedImage":r.default,"formats/link":a.default,"modules/toolbar":c.default,"modules/dropImage":d.default,"modules/variables":h.default,"modules/resizing":f.default,"modules/mentions":p.default,"themes/basic":o.default},!0),this._customModules=[],t._initialized=!0}}var e,n,m;return e=t,(n=[{key:"createEditor",value:function(t,e){return new(this.getQuill())(t,e)}},{key:"registerModules",value:function(t){var e=RegExp("modules/*"),n=this.getQuill(),i=function(t){return!!n.imports[t]};for(var o in t)e.test(o)&&!i(o)&&this._customModules.push(o.slice(8));n.register(t,!0)}},{key:"getRegisteredModuleNames",value:function(){return this._customModules}},{key:"getQuill",value:function(){return(0,i.getQuill)()}}])&&g(e.prototype,n),m&&g(e,m),t}();e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o,r=n(68),a=(i=r)&&i.__esModule?i:{default:i};function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}a.default?o=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=u(n);function n(t,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(o=e.call(this,t,i)).quill.root.classList.add("dx-htmleditor-content"),o}return n}(a.default.import("core/theme")):o={};e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i},a=n(2);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m={};r.default&&((m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(r,t);var e,n,i,o=h(r);function r(){return l(this,r),o.apply(this,arguments)}return e=r,i=[{key:"create",value:function(t){var e=t&&t.src||t,n=c(p(r),"create",this).call(this,e);if((0,a.isObject)(t)){var i=function(e,i){t[e]&&n.setAttribute(e,i)};i("alt",t.alt),i("width",t.width),i("height",t.height)}return n}},{key:"formats",value:function(t){var e=c(p(r),"formats",this).call(this,t);return e.imageSrc=t.getAttribute("src"),e}},{key:"value",value:function(t){return{src:t.getAttribute("src"),width:t.getAttribute("width"),height:t.getAttribute("height"),alt:t.getAttribute("alt")}}}],(n=[{key:"formats",value:function(){var t=c(p(r.prototype),"formats",this).call(this),e=this.domNode.style.float;return e&&(t.float=e),t}},{key:"format",value:function(t,e){"float"===t?this.domNode.style[t]=e:c(p(r.prototype),"format",this).call(this,t,e)}}])&&u(e.prototype,n),i&&u(e,i),r}(r.default.import("formats/image"))).blotName="extendedImage");e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i},a=n(2);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m={};r.default&&(m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(r,t);var e,n,i,o=h(r);function r(){return l(this,r),o.apply(this,arguments)}return e=r,i=[{key:"create",value:function(t){var e=t&&t.href||t,n=c(p(r),"create",this).call(this,e);return(0,a.isObject)(t)&&(t.text&&(n.innerText=t.text),t.target||n.removeAttribute("target")),n}},{key:"formats",value:function(t){return{href:t.getAttribute("href"),target:t.getAttribute("target")}}},{key:"value",value:function(t){return{href:t.getAttribute("href"),text:t.innerText,target:!!t.getAttribute("target")}}}],(n=[{key:"formats",value:function(){var t=c(p(r.prototype),"formats",this).call(this),e=r.formats(this.domNode),n=e.href,i=e.target;return t.link=n,t.target=i,t}},{key:"format",value:function(t,e){"link"===t&&(0,a.isObject)(e)?(e.text&&(this.domNode.innerText=e.text),e.target?this.domNode.setAttribute("target","_blank"):this.domNode.removeAttribute("target"),this.domNode.setAttribute("href",e.href)):c(p(r.prototype),"format",this).call(this,t,e)}}])&&u(e.prototype,n),i&&u(e,i),r}(r.default.import("formats/link")));e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i};var a={};r.default&&((a=r.default.import("attributors/style/font")).whitelist=null),e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i};var a={};r.default&&((a=r.default.import("attributors/style/size")).whitelist=null),e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i};var a={};r.default&&(a=r.default.import("attributors/style/align")).whitelist.push("left"),e.default=a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=p(n(68)),o=p(n(3)),r=p(n(167));n(110),n(413);var a=p(n(967)),s=n(5),l=n(2),u=n(0),c=n(12),d=n(46),h=p(n(6)),f=n(11);function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var C={};if(i.default){var S=i.default.import("core/module"),k=(0,c.format)("dxHtmlEditor-heading"),I=(0,c.format)("dxHtmlEditor-normalText");C=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(m,t);var e,n,i,p=b(m);function m(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),(n=p.call(this,t,e))._editorInstance=e.editorInstance,n._toolbarWidgets=new a.default,n._formatHandlers=n._getFormatHandlers(),(0,l.isDefined)(e.items)&&(n._addCallbacks(),n._renderToolbar(),n.quill.on("editor-change",(function(t){var e="selection-change"===t;n._updateToolbar(e)}))),n}return e=m,(n=[{key:"_applyFormat",value:function(t,e){var n;this._editorInstance._saveValueChangeEvent(e),(n=this.quill).format.apply(n,g(t))}},{key:"_addCallbacks",value:function(){this._editorInstance.addCleanCallback(this.clean.bind(this)),this._editorInstance.addContentInitializedCallback(this.updateHistoryWidgets.bind(this))}},{key:"_updateToolbar",value:function(t){this.updateFormatWidgets(t),this.updateHistoryWidgets()}},{key:"_getDefaultClickHandler",value:function(t){var e=this;return function(n){var i=n.event,o=e.quill.getFormat(),r=o[t],a=!((0,l.isBoolean)(r)?r:(0,l.isDefined)(r));e._applyFormat([t,a,"user"],i),e._updateFormatWidget(t,a,o)}}},{key:"_updateFormatWidget",value:function(t,e,n){var i=this._toolbarWidgets.getByName(t);i&&(e?this._markActiveFormatWidget(t,i,n):(this._resetFormatWidget(t,i),Object.prototype.hasOwnProperty.call(t)&&delete n[t]),this._toggleClearFormatting(e||!(0,l.isEmptyObject)(n)))}},{key:"_getFormatHandlers",value:function(){var t=this;return{clear:function(e){var n=t.quill.getSelection();n&&(t.quill.removeFormat(n),t.updateFormatWidgets())},link:this._prepareLinkHandler(),image:this._prepareImageHandler(),color:this._prepareColorClickHandler("color"),background:this._prepareColorClickHandler("background"),orderedList:this._prepareShortcutHandler("list","ordered"),bulletList:this._prepareShortcutHandler("list","bullet"),alignLeft:this._prepareShortcutHandler("align","left"),alignCenter:this._prepareShortcutHandler("align","center"),alignRight:this._prepareShortcutHandler("align","right"),alignJustify:this._prepareShortcutHandler("align","justify"),codeBlock:this._getDefaultClickHandler("code-block"),undo:function(e){var n=e.event;t._editorInstance._saveValueChangeEvent(n),t.quill.history.undo()},redo:function(e){var n=e.event;t._editorInstance._saveValueChangeEvent(n),t.quill.history.redo()},increaseIndent:function(e){var n=e.event;t._applyFormat(["indent","+1","user"],n)},decreaseIndent:function(e){var n=e.event;t._applyFormat(["indent","-1","user"],n)},superscript:this._prepareShortcutHandler("script","super"),subscript:this._prepareShortcutHandler("script","sub")}}},{key:"_prepareShortcutHandler",value:function(t,e){var n=this;return function(i){var o=i.event,r=n.quill.getFormat()[t]!==e&&e;n._applyFormat([t,r,"user"],o),n.updateFormatWidgets(!0)}}},{key:"_prepareLinkHandler",value:function(){var t=this;return function(){t.quill.focus();var e=t.quill.getSelection(),n=t._hasEmbedContent(e),i=e?t.quill.getFormat():{},o={href:i.link||"",text:e&&!n?t.quill.getText(e):"",target:!Object.prototype.hasOwnProperty.call(i,"target")||!!i.target};t._editorInstance.formDialogOption("title",(0,c.format)("dxHtmlEditor-dialogLinkCaption"));var r=t._editorInstance.showFormDialog({formData:o,items:t._getLinkFormItems(e)});r.done((function(i,o){if(e&&!n){var r=i.text||i.href,a=e.index,s=e.length;i.text=void 0,t._editorInstance._saveValueChangeEvent(o),s&&t.quill.deleteText(a,s,"silent"),t.quill.insertText(a,r,"link",i,"user"),t.quill.setSelection(a+r.length,0,"user")}else i.text=e||i.text?i.text:i.href,t._applyFormat(["link",i,"user"],o)})),r.fail((function(){t.quill.focus()}))}}},{key:"_hasEmbedContent",value:function(t){return!!t&&this.quill.getText(t).trim().length<t.length}},{key:"_getLinkFormItems",value:function(t){return[{dataField:"href",label:{text:(0,c.format)("dxHtmlEditor-dialogLinkUrlField")}},{dataField:"text",label:{text:(0,c.format)("dxHtmlEditor-dialogLinkTextField")},visible:!this._hasEmbedContent(t)},{dataField:"target",editorType:"dxCheckBox",editorOptions:{text:(0,c.format)("dxHtmlEditor-dialogLinkTargetField")},cssClass:"dx-formdialog-field-target",label:{visible:!1}}]}},{key:"_prepareImageHandler",value:function(){var t=this;return function(){var e=t.quill.getFormat(),n=Object.prototype.hasOwnProperty.call(e,"imageSrc"),i=t._defaultPasteIndex;if(n){var o=t.quill.getFormat(i-1,1).imageSrc;e.src=e.imageSrc,delete e.imageSrc,o&&0!==i||t.quill.setSelection(i+1,0,"silent")}var r=t._embedFormatIndex;t._editorInstance.formDialogOption("title",(0,c.format)("dxHtmlEditor-dialogImageCaption")),t._editorInstance.showFormDialog({formData:e,items:t._imageFormItems}).done((function(e,o){var a=i;t._editorInstance._saveValueChangeEvent(o),n&&(a=r,t.quill.deleteText(a,1,"silent")),t.quill.insertEmbed(a,"extendedImage",e,"user"),t.quill.setSelection(a+1,0,"user")})).always((function(){t.quill.focus()}))}}},{key:"_renderToolbar",value:function(){var t=this,e=this.options.container||this._getContainer();this._$toolbar=(0,o.default)("<div>").addClass("dx-htmleditor-toolbar").appendTo(e),this._$toolbarContainer=(0,o.default)(e).addClass("dx-htmleditor-toolbar-wrapper"),h.default.on(this._$toolbarContainer,(0,f.addNamespace)("mousedown",this._editorInstance.NAME),(function(t){t.preventDefault()})),this.toolbarInstance=this._editorInstance._createComponent(this._$toolbar,r.default,this.toolbarConfig),this._editorInstance.on("optionChanged",(function(e){var n=e.name;"readOnly"!==n&&"disabled"!==n||t.toolbarInstance.option("disabled",t.isInteractionDisabled)}))}},{key:"isMultilineMode",value:function(){var t;return null===(t=this.options.multiline)||void 0===t||t}},{key:"clean",value:function(){this._toolbarWidgets.clear(),this._$toolbarContainer&&this._$toolbarContainer.empty().removeClass("dx-htmleditor-toolbar-wrapper")}},{key:"repaint",value:function(){this.toolbarInstance&&this.toolbarInstance.repaint()}},{key:"_getContainer",value:function(){var t=(0,o.default)("<div>");return this._editorInstance.$element().prepend(t),t}},{key:"_prepareToolbarItems",value:function(){var t=this,e=[];return(0,s.each)(this.options.items,(function(n,i){var o;if((0,l.isObject)(i))o=t._handleObjectItem(i);else if((0,l.isString)(i)){var r=t._prepareButtonItemConfig(i);o=t._getToolbarItem(r)}o&&e.push(o)})),e}},{key:"_handleObjectItem",value:function(t){if(t.formatName&&t.formatValues&&this._isAcceptableItem(t.widget,"dxSelectBox")){var e=this._prepareSelectItemConfig(t);return this._getToolbarItem(e)}if(t.formatName&&this._isAcceptableItem(t.widget,"dxButton")){var n=this._prepareButtonItemConfig(t.formatName),i=(0,u.extend)(!0,n,t);return this._getToolbarItem(i)}return this._getToolbarItem(t)}},{key:"_isAcceptableItem",value:function(t,e){return!t||t===e}},{key:"_prepareButtonItemConfig",value:function(t){var e="clear"===t?"clearformat":t,n=(0,d.titleize)(t);return{widget:"dxButton",formatName:t,options:{hint:n,text:n,icon:e.toLowerCase(),onClick:this._formatHandlers[t]||this._getDefaultClickHandler(t),stylingMode:"text"},showText:"inMenu"}}},{key:"_prepareSelectItemConfig",value:function(t){var e=this;return(0,u.extend)(!0,{widget:"dxSelectBox",formatName:t.formatName,options:{stylingMode:"filled",dataSource:t.formatValues,placeholder:(0,d.titleize)(t.formatName),onValueChanged:function(n){e._isReset||(e._applyFormat([t.formatName,n.value,"user"],n.event),e._setValueSilent(n.component,n.value))}}},t)}},{key:"_prepareColorClickHandler",value:function(t){var e=this;return function(){var n=e.quill.getFormat(),i="color"===t?"dxHtmlEditor-dialogColorCaption":"dxHtmlEditor-dialogBackgroundCaption";e._editorInstance.formDialogOption("title",(0,c.format)(i));var r=e._editorInstance.showFormDialog({formData:n,items:[{dataField:t,editorType:"dxColorView",editorOptions:{onContentReady:function(t){(0,o.default)(t.element).closest(".".concat("dx-box-item-content")).css("flexBasis","auto")},focusStateEnabled:!1},label:{visible:!1}}]});r.done((function(n,i){e._applyFormat([t,n[t],"user"],i)})),r.fail((function(){e.quill.focus()}))}}},{key:"_getToolbarItem",value:function(t){var e=this,n={options:{onInitialized:function(n){t.formatName&&(n.component.$element().addClass("dx-htmleditor-toolbar-format"),n.component.$element().toggleClass("dx-".concat(t.formatName.toLowerCase(),"-format"),!!t.formatName),e._toolbarWidgets.add(t.formatName,n.component))}}},i=this.isMultilineMode()?{location:"before",locateInMenu:"never"}:{};return(0,u.extend)(!0,{location:"before",locateInMenu:"auto"},this._getDefaultConfig(t.formatName),t,n,i)}},{key:"_getDefaultItemsConfig",value:function(){return{header:{options:{displayExpr:function(t){return(0,l.isDefined)(t)&&!1!==t?"".concat(k," ").concat(t):I}}},clear:{options:{disabled:!0}},undo:{options:{disabled:!0}},redo:{options:{disabled:!0}},separator:{template:function(t,e,n){(0,o.default)(n).addClass("dx-htmleditor-toolbar-separator")},menuItemTemplate:function(t,e,n){(0,o.default)(n).addClass("dx-htmleditor-toolbar-menu-separator")}}}}},{key:"_getDefaultConfig",value:function(t){return this._getDefaultItemsConfig()[t]}},{key:"updateHistoryWidgets",value:function(){var t=this.quill.history;if(t){var e=t.stack.undo,n=t.stack.redo;this._updateHistoryWidget(this._toolbarWidgets.getByName("undo"),e),this._updateHistoryWidget(this._toolbarWidgets.getByName("redo"),n)}}},{key:"_updateHistoryWidget",value:function(t,e){t&&t.option("disabled",!e.length)}},{key:"updateFormatWidgets",value:function(t){var e=this.quill.getSelection();if(e){var n=this.quill.getFormat(e),i=!(0,l.isEmptyObject)(n);for(var o in i&&!t||this._resetFormatWidgets(),n){var r=this._getFormatWidgetName(o,n),a=this._toolbarWidgets.getByName(r)||this._toolbarWidgets.getByName(o);a&&this._markActiveFormatWidget(o,a,n)}this._toggleClearFormatting(i)}}},{key:"_markActiveFormatWidget",value:function(t,e,n){this._isColorFormat(t)&&this._updateColorWidget(t,n[t]),"value"in e.option()?this._setValueSilent(e,n[t]):e.$element().addClass("dx-format-active")}},{key:"_toggleClearFormatting",value:function(t){var e=this._toolbarWidgets.getByName("clear");e&&e.option("disabled",!t)}},{key:"_isColorFormat",value:function(t){return"color"===t||"background"===t}},{key:"_updateColorWidget",value:function(t,e){var n=this._toolbarWidgets.getByName(t);n&&n.$element().find(".".concat("dx-icon")).css("borderBottomColor",e||"transparent")}},{key:"_getFormatWidgetName",value:function(t,e){var n;switch(t){case"align":n=t+(0,d.titleize)(e[t]);break;case"list":n=e[t]+(0,d.titleize)(t);break;case"code-block":n="codeBlock";break;case"script":n=e[t]+t;break;case"imageSrc":n="image";break;default:n=t}return n}},{key:"_setValueSilent",value:function(t,e){this._isReset=!0,t.option("value",e),this._isReset=!1}},{key:"_resetFormatWidgets",value:function(){var t=this;this._toolbarWidgets.each((function(e,n){t._resetFormatWidget(e,n)}))}},{key:"_resetFormatWidget",value:function(t,e){e.$element().removeClass("dx-format-active"),this._isColorFormat(t)&&this._updateColorWidget(t),"clear"===t&&e.option("disabled",!0),"dxSelectBox"===e.NAME&&this._setValueSilent(e,null)}},{key:"addClickHandler",value:function(t,e){this._formatHandlers[t]=e;var n=this._toolbarWidgets.getByName(t);n&&"dxButton"===n.NAME&&n.option("onClick",e)}},{key:"_embedFormatIndex",get:function(){var t=this.quill.getSelection();return t?t.length?t.index:t.index-1:this.quill.getLength()}},{key:"_defaultPasteIndex",get:function(){var t=this.quill.getSelection();return t&&t.index||this.quill.getLength()}},{key:"_imageFormItems",get:function(){return[{dataField:"src",label:{text:(0,c.format)("dxHtmlEditor-dialogImageUrlField")}},{dataField:"width",label:{text:(0,c.format)("dxHtmlEditor-dialogImageWidthField")}},{dataField:"height",label:{text:(0,c.format)("dxHtmlEditor-dialogImageHeightField")}},{dataField:"alt",label:{text:(0,c.format)("dxHtmlEditor-dialogImageAltField")}}]}},{key:"toolbarConfig",get:function(){return{dataSource:this._prepareToolbarItems(),disabled:this.isInteractionDisabled,menuContainer:this._$toolbarContainer,multiline:this.isMultilineMode()}}},{key:"isInteractionDisabled",get:function(){return this._editorInstance.option("readOnly")||this._editorInstance.option("disabled")}}])&&v(e.prototype,n),i&&v(e,i),m}(S)}e.default=C},function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._collection=[]}var e,n,o;return e=t,(n=[{key:"clear",value:function(){this._collection=[]}},{key:"add",value:function(t,e){this._collection.push({name:t,instance:e})}},{key:"getByName",value:function(t){return(this._collection.find((function(e){var n=e.name;return t===n}))||{}).instance}},{key:"each",value:function(t){this._collection.forEach((function(e){var n=e.name,i=e.instance;return i&&t(n,i)}))}}])&&i(e.prototype,n),o&&i(e,o),t}();e.default=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=u(n(68)),o=u(n(6)),r=n(11),a=n(5),s=u(n(31)),l=n(10);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?m(t):e}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _={};i.default&&(_=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(c,t);var e,n,i,u=f(c);function c(t,e){var n;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),(n=u.call(this,t,e)).editorInstance=e.editorInstance;var i=n.editorInstance.NAME;return o.default.on(n.quill.root,(0,r.addNamespace)("dragover",i),n._dragOverHandler.bind(m(n))),o.default.on(n.quill.root,(0,r.addNamespace)("drop",i),n._dropHandler.bind(m(n))),o.default.on(n.quill.root,(0,r.addNamespace)("paste",i),n._pasteHandler.bind(m(n))),n}return e=c,(n=[{key:"_dragOverHandler",value:function(t){s.default.msie&&t.preventDefault()}},{key:"_dropHandler",value:function(t){var e,n=t.originalEvent.dataTransfer,i=null===n||void 0===n||null===(e=n.files)||void 0===e?void 0:e.length;this.editorInstance._saveValueChangeEvent(t),t.preventDefault(),i&&this._getImage(n.files,this._addImage.bind(this))}},{key:"_pasteHandler",value:function(t){var e,n=this,i=t.originalEvent.clipboardData;if(this.editorInstance._saveValueChangeEvent(t),i){var o=null===(e=i.items)||void 0===e?void 0:e.length;!i.getData("text/html")&&o&&this._getImage(i.items,(function(t){n._isBrowserSupportImagePaste(s.default)||(s.default.msie?setTimeout((function(){n._addImage(t)})):n._addImage(t))}))}}},{key:"_isBrowserSupportImagePaste",value:function(t){var e=t.mozilla,n=t.chrome,i=t.version;return e||n&&i>82}},{key:"_isImage",value:function(t){return!!t.type.match(/^image\/(a?png|bmp|gif|p?jpe?g|svg|vnd\.microsoft\.icon|webp)/i)}},{key:"_getImage",value:function(t,e){var n=this,i=(0,l.getWindow)();(0,a.each)(t,(function(t,o){if(n._isImage(o)){var r=new i.FileReader;r.onload=function(t){var n=t.target;e(n.result)};var a=o.getAsFile?o.getAsFile():o;a instanceof i.Blob&&r.readAsDataURL(a)}}))}},{key:"_addImage",value:function(t){var e=this.quill.getSelection(),n=e?e.index:this.quill.getLength();this.quill.insertEmbed(n,"extendedImage",t,"user")}}])&&d(e.prototype,n),i&&d(e,i),c}(i.default.import("core/module")));e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=u(n(68)),o=u(n(3)),r=n(24),a=u(n(490)),s=u(n(970)),l=n(0);function u(t){return t&&t.__esModule?t:{default:t}}function c(t){return(c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==c(e)&&"function"!==typeof e?g(t):e}function g(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function _(t,e,n){return(_="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y={};if(i.default){i.default.register({"formats/variable":s.default},!0),y=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(n,t);var e=p(n);function n(t,i){var r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),r=e.call(this,t,i);var a=t.getModule("toolbar");return a&&a.addClickHandler("variable",r.showPopup.bind(g(r))),t.keyboard.addBinding({key:"P",altKey:!0},r.showPopup.bind(g(r))),r._popup.on("shown",(function(t){var e=(0,o.default)(t.component.option("position").of);e.hasClass("dx-variable-format")&&e.addClass("dx-format-active")})),r}return h(n,[{key:"_getDefaultOptions",value:function(){var t=_(v(n.prototype),"_getDefaultOptions",this).call(this);return(0,l.extend)(t,{escapeChar:""})}}]),h(n,[{key:"showPopup",value:function(t){var e=this.quill.getSelection(),i=e?e.index:this.quill.getLength();this.savePosition(i),this._resetPopupPosition(t,i),_(v(n.prototype),"showPopup",this).call(this)}},{key:"_resetPopupPosition",value:function(t,e){if(t&&t.element)this._popup.option("position",{of:t.element,offset:{h:0,v:0},my:"top center",at:"bottom center",collision:"fit"});else{var n=this.quill.getBounds(e),i=(0,r.getBoundingRect)(this.quill.root);this._popup.option("position",{of:this.quill.root,offset:{h:n.left,v:n.bottom-i.height},my:"top center",at:"bottom left",collision:"fit flip"})}}},{key:"insertEmbedContent",value:function(t){var e=this.getPosition(),n=t.component.option("selectedItem"),i=(0,l.extend)({},{value:n,escapeChar:this.options.escapeChar});setTimeout(function(){this.quill.insertEmbed(e,"variable",i),this.quill.setSelection(e+1)}.bind(this))}}]),n}(a.default)}e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(68),r=(i=o)&&i.__esModule?i:{default:i},a=n(4),s=n(0);function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e,n){return(d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=m(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g={};if(r.default){(g=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(r,t);var e,n,i,o=f(r);function r(){return u(this,r),o.apply(this,arguments)}return e=r,i=[{key:"create",value:function(t){var e,n,i=d(m(r),"create",this).call(this),o=t.value;return Array.isArray(t.escapeChar)?(e=(0,a.ensureDefined)(t.escapeChar[0],""),n=(0,a.ensureDefined)(t.escapeChar[1],"")):e=n=t.escapeChar,i.innerText=e+o+n,i.dataset.varStartEscChar=e,i.dataset.varEndEscChar=n,i.dataset.varValue=t.value,i}},{key:"value",value:function(t){return(0,s.extend)({},{value:t.dataset.varValue,escapeChar:[t.dataset.varStartEscChar||"",t.dataset.varEndEscChar||""]})}}],(n=null)&&c(e.prototype,n),i&&c(e,i),r}(r.default.import("blots/embed"))).blotName="variable",g.tagName="span",g.className="dx-variable"}e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=h(n(3)),o=h(n(6)),r=n(25),a=n(11),s=n(33),l=h(n(18)),u=h(n(220)),c=n(24),d=h(n(68));function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var p=(0,a.addNamespace)("keydown","dxHtmlResizingModule"),m=(0,a.addNamespace)("scroll","dxHtmlResizingModule"),g=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.quill=e,this.editorInstance=n.editorInstance,this.allowedTargets=n.allowedTargets||["image"],this.enabled=!!n.enabled,this.enabled&&(this._attachEvents(),this._createResizeFrame())}var e,n,h;return e=t,(n=[{key:"_attachEvents",value:function(){o.default.on(this.quill.root,(0,a.addNamespace)(r.name,"dxHtmlResizingModule"),this._clickHandler.bind(this)),o.default.on(this.quill.root,m,this._scrollHandler.bind(this))}},{key:"_detachEvents",value:function(){o.default.off(this.quill.root,"dxHtmlResizingModule")}},{key:"_clickHandler",value:function(t){if(this._isAllowedTarget(t.target)){if(this._$target===t.target)return;this._$target=t.target,this.updateFramePosition(),this.showFrame()}else this._$target&&this.hideFrame()}},{key:"_scrollHandler",value:function(t){this._$target&&this.updateFramePosition()}},{key:"_isAllowedTarget",value:function(t){return this._isImage(t)}},{key:"_isImage",value:function(t){return-1!==this.allowedTargets.indexOf("image")&&"IMG"===t.tagName.toUpperCase()}},{key:"showFrame",value:function(){this._$resizeFrame.show(),o.default.on(this.quill.root,p,this._handleFrameKeyDown.bind(this))}},{key:"_handleFrameKeyDown",value:function(t){var e=(0,a.normalizeKeyName)(t);"del"!==e&&"backspace"!==e||this._deleteImage(),this.hideFrame()}},{key:"hideFrame",value:function(){this._$target=null,this._$resizeFrame.hide(),o.default.off(this.quill.root,p)}},{key:"updateFramePosition",value:function(){var t=(0,c.getBoundingRect)(this._$target),e=t.height,n=t.width,i=t.top,o=t.left,r=(0,c.getBoundingRect)(this.quill.root),a=r.top,l=r.left,u=this._getBorderWidth();this._$resizeFrame.css({height:e,width:n,padding:1,top:i-a-u-1,left:o-l-u-1}),(0,s.move)(this._$resizeFrame,{left:0,top:0})}},{key:"_getBorderWidth",value:function(){return parseInt(this._$resizeFrame.css("borderTopWidth"))}},{key:"_createResizeFrame",value:function(){var t=this;if(!this._$resizeFrame){var e=l.default.current().deviceType;this._$resizeFrame=(0,i.default)("<div>").addClass("dx-resize-frame").toggleClass("dx-touch-device","desktop"!==e).appendTo(this.editorInstance._getQuillContainer()).hide(),this.editorInstance._createComponent(this._$resizeFrame,u.default,{onResize:function(e){if(t._$target){var n=2*(1+t._getBorderWidth());(0,i.default)(t._$target).attr({height:e.height-n,width:e.width-n}),t.updateFramePosition()}}})}}},{key:"_deleteImage",value:function(){this._isAllowedTarget(this._$target)&&d.default.find(this._$target).deleteAt(0)}},{key:"option",value:function(t,e){var n=this;"mediaResizing"!==t?"enabled"===t?(this.enabled=e,e?this._attachEvents():this._detachEvents()):"allowedTargets"===t&&Array.isArray(e)&&(this.allowedTargets=e):Object.keys(e).forEach((function(t){return n.option(t,e[t])}))}},{key:"clean",value:function(){this._detachEvents(),this._$resizeFrame.remove(),this._$resizeFrame=void 0}}])&&f(e.prototype,n),h&&f(e,h),t}();e.default=g},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=h(n(3)),o=h(n(68)),r=n(29),a=n(2),s=n(0),l=n(17),u=n(6),c=h(n(490)),d=h(n(973));function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return e&&p(t.prototype,e),n&&p(t,n),t}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?y(t):e}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e,n){return(b="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=w(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x={};if(o.default){var C={ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,ENTER:13,ESCAPE:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36},S=[C.ARROW_LEFT,C.ARROW_RIGHT,C.PAGE_UP,C.PAGE_DOWN,C.END,C.HOME],k=[" ","\n"];o.default.register({"formats/mention":d.default},!0),x=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(n,t);var e=_(n);function n(t,i){var o;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,n),(o=e.call(this,t,i))._mentions={},o.editorInstance=i.editorInstance,i.mentions.forEach((function(t){var e=t.marker;e||(t.marker=e="@");var n=t.template;if(n){var i=o.editorInstance._getTemplate(n);i&&d.default.addTemplate(e,i)}o._mentions[e]=(0,s.extend)({},o._getDefaultOptions(),t)})),o._attachKeyboardHandlers(),o.editorInstance.addCleanCallback(o.clean.bind(y(o))),o.quill.on("text-change",o.onTextChange.bind(y(o))),o}return m(n,[{key:"_getDefaultOptions",value:function(){var t=b(w(n.prototype),"_getDefaultOptions",this).call(this);return(0,s.extend)(t,{itemTemplate:"item",valueExpr:"this",displayExpr:"this",template:null,searchExpr:null,searchTimeout:500,minSearchLength:0})}}]),m(n,[{key:"_attachKeyboardHandlers",value:function(){var t=this;this.quill.keyboard.addBinding({key:C.ARROW_UP},this._moveToItem.bind(this,"prev")),this.quill.keyboard.addBinding({key:C.ARROW_DOWN},this._moveToItem.bind(this,"next")),this.quill.keyboard.addBinding({key:C.ENTER},this._selectItemHandler.bind(this));var e=this.quill.keyboard.bindings[C.ENTER];e.unshift(e.pop()),this.quill.keyboard.addBinding({key:C.ESCAPE},this._escapeKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.SPACE},this._selectItemHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_LEFT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),this.quill.keyboard.addBinding({key:C.ARROW_RIGHT,shiftKey:!0},this._ignoreKeyHandler.bind(this)),S.forEach((function(e){t.quill.keyboard.addBinding({key:e},t._ignoreKeyHandler.bind(t))}))}},{key:"_moveToItem",value:function(t){var e=this._list.getDataSource();if(this._isMentionActive&&!e.isLoading()){var n="next"===t?"first":"last",o=(0,i.default)(this._list.option("focusedElement"))[t]();o=o.length?o:this._activeListItems[n](),this._list.option("focusedElement",(0,l.getPublicElement)(o)),this._list.scrollToItem(o)}return!this._isMentionActive}},{key:"_ignoreKeyHandler",value:function(){return!this._isMentionActive}},{key:"_fitIntoRange",value:function(t,e,n){return t>n?e:t<e?n:t}},{key:"_selectItemHandler",value:function(){return this._isMentionActive&&this._list.selectItem(this._list.option("focusedElement")),!this._isMentionActive}},{key:"_escapeKeyHandler",value:function(){return this._isMentionActive&&this._popup.hide(),!this._isMentionActive}},{key:"renderList",value:function(t,e){this.compileGetters(this.options),b(w(n.prototype),"renderList",this).call(this,t,e)}},{key:"compileGetters",value:function(t){var e=t.displayExpr,n=t.valueExpr;this._valueGetter=(0,r.compileGetter)(e),this._idGetter=(0,r.compileGetter)(n)}},{key:"_getListConfig",value:function(t){var e=this,i=b(w(n.prototype),"_getListConfig",this).call(this,t);return(0,s.extend)(i,{itemTemplate:this.options.itemTemplate,onContentReady:function(){e._hasSearch&&(e._popup.repaint(),e._focusFirstElement(),e._hasSearch=!1)}})}},{key:"insertEmbedContent",value:function(){var t=this._activeMentionConfig.marker.length,e=t+this._searchValue.length,n=this.getPosition(),i=Math.max(0,n-t),o=this._list.option("selectedItem"),r={value:this._valueGetter(o),id:this._idGetter(o),marker:this._activeMentionConfig.marker};setTimeout(function(){this.quill.insertText(i," ","silent"),this.quill.deleteText(i+1,e,"silent"),this.quill.insertEmbed(i,"mention",r),this.quill.setSelection(i+2)}.bind(this))}},{key:"_getLastInsertOperation",value:function(t){var e=t[t.length-1];if("insert"in e)return e;var n="delete"in e;if(n&&t.length>=2){var i=t[t.length-2];if(n&&"insert"in i)return i}return null}},{key:"onTextChange",value:function(t,e,n){if("user"===n){var i=t.ops[t.ops.length-1];if(this._isMentionActive&&this._isPopupVisible)this._processSearchValue(i)&&this._filterList(this._searchValue);else{var o=t.ops,r=this._getLastInsertOperation(o);r&&this.checkMentionRequest(r,o)}}}},{key:"_processSearchValue",value:function(t){if("insert"in t)this._searchValue+=t.insert;else{if(!this._searchValue.length||t.delete>1)return this._popup.hide(),!1;this._searchValue=this._searchValue.slice(0,-1)}return!0}},{key:"checkMentionRequest",value:function(t,e){var n=t.insert,i=this.quill.getSelection();n&&(0,a.isString)(n)&&i&&!this._isMarkerPartOfText(e[0].retain)&&(this._activeMentionConfig=this._mentions[n],this._activeMentionConfig&&(this._updateList(this._activeMentionConfig),this.savePosition(i.index),this._popup.option("position",this._popupPosition),this._searchValue="",this._popup.show()))}},{key:"_isMarkerPartOfText",value:function(t){return!(!t||-1!==k.indexOf(this._getCharByIndex(t-1)))}},{key:"_getCharByIndex",value:function(t){return this.quill.getContents(t,1).ops[0].insert}},{key:"_updateList",value:function(t){var e=t.dataSource,n=t.displayExpr,i=t.valueExpr,o=t.itemTemplate,r=t.searchExpr;this.compileGetters({displayExpr:n,valueExpr:i}),this._list.unselectAll(),this._list.option({dataSource:e,displayExpr:n,itemTemplate:o,searchExpr:r})}},{key:"_filterList",value:function(t){var e=this;if(this._isMinSearchLengthExceeded(t)){var n=this._activeMentionConfig.searchTimeout;n?(clearTimeout(this._searchTimer),this._searchTimer=setTimeout((function(){e._search(t)}),n)):this._search(t)}else this._resetFilter()}},{key:"_isMinSearchLengthExceeded",value:function(t){return t.length>=this._activeMentionConfig.minSearchLength}},{key:"_resetFilter",value:function(){clearTimeout(this._searchTimer),this._search(null)}},{key:"_search",value:function(t){this._hasSearch=!0,this._list.option("searchValue",t)}},{key:"_focusFirstElement",value:function(){if(this._list){var t=this._activeListItems.first();this._list.option("focusedElement",(0,l.getPublicElement)(t)),this._list.scrollToItem(t)}}},{key:"_getPopupConfig",value:function(){var t=this;return(0,s.extend)(b(w(n.prototype),"_getPopupConfig",this).call(this),{closeOnTargetScroll:!1,onShown:function(){t._isMentionActive=!0,t._hasSearch=!1,t._focusFirstElement()},onHidden:function(){t._list.unselectAll(),t._list.option("focusedElement",null),t._isMentionActive=!1,t._search(null)},focusStateEnabled:!1})}},{key:"clean",value:function(){var t=this;Object.keys(this._mentions).forEach((function(e){t._mentions[e].template&&d.default.removeTemplate(e)}))}},{key:"_isPopupVisible",get:function(){var t;return null===(t=this._popup)||void 0===t?void 0:t.option("visible")}},{key:"_popupPosition",get:function(){var t=this.getPosition(),e=this.quill.getBounds(t?t-1:t),n=e.left,o=e.top,r=e.height,a=(0,i.default)(this.quill.root).offset(),s=a.left,l=a.top;return{of:(0,u.Event)("positionEvent",{pageX:s+n,pageY:l+o}),offset:{v:r},my:"top left",at:"top left",collision:{y:"flip",x:"flipfit"}}}},{key:"_activeListItems",get:function(){return this._list.itemElements().filter(":not(.".concat("dx-state-disabled",")"))}}]),n}(c.default)}e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(68)),o=r(n(3));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p={};if(i.default){(p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,i,r=d(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,i=[{key:"create",value:function(t){var e=u(f(a),"create",this).call(this);return e.setAttribute("spellcheck",!1),e.dataset.marker=t.marker,e.dataset.mentionValue=t.value,e.dataset.id=t.id,this.renderContent(e,t),e}},{key:"value",value:function(t){return{marker:t.dataset.marker,id:t.dataset.id,value:t.dataset.mentionValue}}},{key:"renderContent",value:function(t,e){var n=this._templates.get(e.marker);n?n.render({model:e,container:t}):this.baseContentRender(t,e)}},{key:"baseContentRender",value:function(t,e){var n=(0,o.default)("<span>").text(e.marker);(0,o.default)(t).append(n).append(e.value)}},{key:"addTemplate",value:function(t,e){this._templates.set(t,e)}},{key:"removeTemplate",value:function(t){this._templates.delete(t)}}],(n=null)&&l(e.prototype,n),i&&l(e,i),a}(i.default.import("blots/embed"))).blotName="mention",p.tagName="span",p.className="dx-mention",p._templates=new Map}e.default=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=n(491),r=(i=o)&&i.__esModule?i:{default:i},a=n(489),s=n(2);function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||u(t)||h(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function c(t,e){return p(t)||function(t,e){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(l){o=!0,r=l}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}(t,e)||h(t,e)||d()}function d(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(t,e){if(t){if("string"===typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function p(t){if(Array.isArray(t))return t}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var g={"&":"&","<":"<",">":">",'"':""","'":"'"},_=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.TextBlot=(0,a.getQuill)().import("blots/text"),this.BreakBlot=(0,a.getQuill)().import("blots/break")}var e,n,i;return e=t,(n=[{key:"setQuillInstance",value:function(t){this.quillInstance=t}},{key:"toHtml",value:function(){if(this.quillInstance)return this._isQuillEmpty()?"":this._convertHTML(this.quillInstance.scroll,0,this.quillInstance.getLength(),!0)}},{key:"_isQuillEmpty",value:function(){var t=this.quillInstance.getContents();return 1===t.length()&&this._isDeltaEmpty(t)}},{key:"_isDeltaEmpty",value:function(t){return t.reduce((function(t,e){return-1!==e.insert.indexOf("\n")}))}},{key:"_convertHTML",value:function(t,e,n){var i=this,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if((0,s.isFunction)(t.html))return t.html(e,n);if(t instanceof this.TextBlot)return this._escapeText(t.value().slice(e,e+n));if(t.children){if("list"===t.statics.blotName)return this._convertList(t,e,n);var r=[];if(t.children.forEachAt(e,n,(function(t,e,n){r.push(i._convertHTML(t,e,n))})),this._handleBreakLine(t.children,r),o||"list-item"===t.statics.blotName)return r.join("");var a=t.domNode,l=a.outerHTML,u=a.innerHTML,d=l.split(">".concat(u,"<")),h=c(d,2),f=h[0],p=h[1];return"".concat(f,">").concat(r.join(""),"<").concat(p)}return t.domNode.outerHTML}},{key:"_handleBreakLine",value:function(t,e){1===t.length&&t.head instanceof this.BreakBlot&&e.push("<br>")}},{key:"_convertList",value:function(t,e,n){var i=[],o=t.formats();return t.children.forEachAt(e,n,(function(t,e,n){var r=t.formats();i.push({child:t,offset:e,length:n,indent:r.indent||0,type:o.list})})),this._getListMarkup(i,-1,[],t)}},{key:"_getListMarkup",value:function(t,e,n,i){if(0===t.length){var o=this._getListType(n.pop());return e<=0?"</li></".concat(o,">"):this._processListMarkup([[],e-1,n],o)}var r,a=p(r=t)||u(r)||h(r)||d(),s=a[0],l=s.child,c=s.offset,f=s.length,m=s.indent,g=s.type,_=a.slice(1),v=this._getListType(g),y=[l,c,f],b=[_,m,n];if(m>e)return n.push(g),this._correctListMultiIndent(n,g,v,m-e-1)+this._processIndentListMarkup(y,b,v,i);if(m===e)return this._processIndentListMarkup(y,b);var w=this._getListType(n.pop());return this._processListMarkup([t,e-1,n],w)}},{key:"_correctListMultiIndent",value:function(t,e,n,i){for(var o="";i;)o+="<".concat(n,">"),t.push(e),i--;return o}},{key:"_processListMarkup",value:function(t,e){return"</li></".concat(e,">").concat(this._getListMarkup.apply(this,l(t)))}},{key:"_processIndentListMarkup",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"/li",i=arguments.length>3?arguments[3]:void 0,o=i&&this._getBlotNodeAttributes(i)||"",r=this._getBlotNodeAttributes(t[0]);return"<".concat(n).concat(o,"><li").concat(r,">").concat(this._convertHTML.apply(this,l(t))).concat(this._getListMarkup.apply(this,l(e).concat([i])))}},{key:"_getBlotNodeAttributes",value:function(t){var e=t.domNode;if(!e.hasAttributes())return"";for(var n=e.attributes,i=" ",o=0;o<n.length;o++){var r=n[o].name,a=n[o].value;"class"===r&&(a=this._removeIndentClass(a)),a.length&&(i+="".concat(r,'="').concat(a,'"'))}return i.length>1?i:""}},{key:"_getListType",value:function(t){return"ordered"===t?"ol":"ul"}},{key:"_removeIndentClass",value:function(t){return t.replace(/ql-indent-\d/g,"").trim()}},{key:"_escapeText",value:function(t){return t.replace(/[&<>"']/g,(function(t){return g[t]}))}}])&&m(e.prototype,n),i&&m(e,i),t}();r.default.addConverter("delta",_),e.default=_},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(t){var e=t.import("delta");return function(t,n){var i=n.ops.slice(),o=i[0];o.insert=o.insert.replace(/^\s+/,"");var r,a=o.insert.match(/^(\S+)\s+/),s=a&&function(t){var e=t.getAttribute("style");if(e){var n=e.replace(/\n+/g,"").match(/level(\d+)/);return n?n[1]-1:0}return!1}(t);return a&&!1!==s?(o.insert=o.insert.substring(a[0].length,o.insert.length),function(t){var e=t[t.length-1];e.insert=e.insert.trim()}(i),i.push({insert:"\n",attributes:{list:(r=a,r[1].match(/\S+\./)?"ordered":"bullet"),indent:s}}),new e(i)):n}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n(2);e.default=function(t){var e=t.import("delta"),n=function t(n,r,a){return(0,o.isObject)(r)?Object.keys(r).reduce((function(e,n){return t(e,n,r[n])}),n):n.reduce((function(t,e){var n=e.attributes,o=e.insert;return n&&n[r]?t.push(e):t.insert(o,(0,i.extend)({},function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}({},r,a),n))}),new e)};return function(t,e){var i={},o=(t.style||{}).textDecoration,r=o&&-1!==o.indexOf("line-through"),a=o&&-1!==o.indexOf("underline");return r&&(i.strike=!0),a&&(i.underline=!0),(r||a)&&(e=n(e,i)),e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=function(){return function(t,e){return!function(t){var e=(t.ops[t.ops.length-1]||{}).insert;return"string"===typeof e&&"\n"===e.slice(-1)}(e)&&function(t){return 0!==t.childNodes.length&&-1!==["address","article","blockquote","canvas","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","iframe","li","main","nav","ol","output","p","pre","section","table","td","tr","ul","video"].indexOf(t.tagName.toLowerCase())}(t)?e.insert("\n"):e}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=h(n(3)),o=n(0),r=h(n(48)),a=h(n(169)),s=n(15),l=n(17),u=n(7),c=n(12),d=h(n(31));function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var p=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._editorInstance=e,this._popupUserConfig=n,this._renderPopup()}var e,n,h;return e=t,(n=[{key:"_renderPopup",value:function(){var t=this._editorInstance,e=(0,i.default)("<div>").addClass("dx-formdialog").appendTo(t.$element()),n=this._getPopupConfig();return t._createComponent(e,r.default,n)}},{key:"_escKeyHandler",value:function(){this._popup.hide()}},{key:"_addEscapeHandler",value:function(t){t.component.registerKeyHandler("escape",this._escKeyHandler.bind(this))}},{key:"_getPopupConfig",value:function(){var t=this;return(0,o.extend)({onInitialized:function(e){t._popup=e.component,t._popup.on("hiding",(function(){t.deferred.reject()})),t._popup.on("shown",(function(){t._form.focus()}))},deferRendering:!1,focusStateEnabled:!1,showCloseButton:!1,contentTemplate:function(e){var n=(0,i.default)("<div>").appendTo(e);t._renderForm(n,{onEditorEnterKey:function(e){var n=e.component,i=e.dataField,o=e.event;t._updateEditorValue(n,i),t.hide(n.option("formData"),o)},customizeItem:function(e){"simple"===e.itemType&&(e.editorOptions=(0,o.extend)(!0,{},e.editorOptions,{onInitialized:t._addEscapeHandler.bind(t)}))}})},toolbarItems:[{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,c.format)("OK"),onClick:function(e){var n=e.event;t.hide(t._form.option("formData"),n)}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{onInitialized:this._addEscapeHandler.bind(this),text:(0,c.format)("Cancel"),onClick:function(){t._popup.hide()}}}]},this._popupUserConfig)}},{key:"_updateEditorValue",value:function(t,e){if(d.default.msie&&parseInt(d.default.version)<=11){var n=t.getEditor(e),i=(0,s.getActiveElement)();n.$element().find(i).length&&(0,l.resetActiveElement)()}}},{key:"_renderForm",value:function(t,e){t.addClass("dx-formdialog-form"),this._form=this._editorInstance._createComponent(t,a.default,e)}},{key:"show",value:function(t){if(!this._popup.option("visible")){this.deferred=new u.Deferred;var e=(0,o.extend)({},t);return this._form.option(e),this._popup.show(),this.deferred.promise()}}},{key:"hide",value:function(t,e){this.deferred.resolve(t,e),this._popup.hide()}},{key:"popupOption",value:function(t,e){return this._popup.option.apply(this._popup,arguments)}}])&&f(e.prototype,n),h&&f(e,h),t}();e.default=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(980),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator",defaultSubvalues:"subvalues",defaultValue:"value"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},geometry:{optionName:"geometry",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},rangeContainer:{optionName:"rangeContainer",isCollectionItem:!1},scale:{optionName:"scale",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},subvalueIndicator:{optionName:"subvalueIndicator",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1},valueIndicator:{optionName:"valueIndicator",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.LinearGauge=l,l.propTypes={animation:r.object,containerBackgroundColor:r.string,disabled:r.bool,elementAttr:r.object,export:r.object,geometry:r.object,loadingIndicator:r.object,margin:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,pathModified:r.bool,rangeContainer:r.object,redrawOnResize:r.bool,rtlEnabled:r.bool,scale:r.object,size:r.object,subvalueIndicator:r.object,subvalues:r.array,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,value:r.number,valueIndicator:r.object};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="geometry",e}(s.default);e.Geometry=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Label=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.MinorTick=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="ranges",e.IsCollectionItem=!0,e}(s.default);e.Range=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="rangeContainer",e.ExpectedChildren={range:{optionName:"ranges",isCollectionItem:!0},width:{optionName:"width",isCollectionItem:!1}},e}(s.default);e.RangeContainer=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scale",e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1}},e}(s.default);e.Scale=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Subtitle=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subvalueIndicator",e.ExpectedChildren={text:{optionName:"text",isCollectionItem:!1}},e}(s.default);e.SubvalueIndicator=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="text",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Text=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.Tick=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.Title=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueIndicator",e}(s.default);e.ValueIndicator=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="width",e}(s.default);e.Width=P,e.default=l},function(t,e,n){"use strict";t.exports=n(981),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(5).each,o=Math.max,r=Math.min,a=Math.round,s=n(8),l=n(0).extend,u=n(54),c=n(162).dxBaseGauge,d=n(225).dxGauge,h=n(13).normalizeEnum,f=n(982),p=n(225).createIndicatorCreator,m=n(983),g=d.inherit({_rootClass:"dxg-linear-gauge",_factoryMethods:{rangeContainer:"createLinearRangeContainer",indicator:"createLinearIndicator"},_gridSpacingFactor:25,_scaleTypes:{type:"xyAxes",drawingType:"linear"},_getTicksOrientation:function(t){return t.isHorizontal?t.verticalOrientation:t.horizontalOrientation},_getThemeManagerOptions:function(){var t=this.callBase.apply(this,arguments);return t.subTheme="_linear",t},_updateScaleTickIndent:function(t){var e,n,i=t.label.indentFromTick,o=t.tick.length,r=this._scale.measureLabels(l({},this._canvas)),a=t.isHorizontal?r.height+r.y:0,s=i>0;t.isHorizontal?(n=o*(s?{center:.5,top:0,bottom:1}:{center:.5,top:1,bottom:0})[t.verticalOrientation],e=r.y):(n=o*(s?{center:.5,left:0,right:1}:{center:.5,left:1,right:0})[t.horizontalOrientation],e=-r.width),t.label.indentFromAxis=-i+(s?-n+e:n-a),this._scale.updateOptions(t)},_shiftScale:function(t,e){var n=l({},this._canvas),i=e.isHorizontal,o=this._scale;n[i?"left":"top"]=this._area[i?"startCoord":"endCoord"],n[i?"right":"bottom"]=n[i?"width":"height"]-this._area[i?"endCoord":"startCoord"],o.draw(n),o.shift({left:-t.x,top:-t.y})},_setupCodomain:function(){var t=this.option("geometry")||{},e="vertical"===h(t.orientation);this._area={vertical:e,x:0,y:0,startCoord:-100,endCoord:100},this._rangeContainer.vertical=e,this._translator.setCodomain(-100,100)},_getScaleLayoutValue:function(){return this._area[this._area.vertical?"x":"y"]},_getTicksCoefficients:function(t){var e={inner:0,outer:1};return this._area.vertical?"left"===t.horizontalOrientation?(e.inner=1,e.outer=0):"center"===t.horizontalOrientation&&(e.inner=e.outer=.5):"top"===t.verticalOrientation?(e.inner=1,e.outer=0):"center"===t.verticalOrientation&&(e.inner=e.outer=.5),e},_correctScaleIndents:function(t,e,n){var i=this._area.vertical;e>=0?t.max+=e+n[i?"width":"height"]:t.min-=-e+n[i?"width":"height"],t.indent=n[i?"height":"width"]/2},_measureMainElements:function(t,e){var n=this._area.x,a=this._area.y,s=1e3,l=0,u=0,c=this._scale;return i(t.concat(c),(function(t,i){var c=i.measure?i.measure({x:n+i.getOffset(),y:a+i.getOffset()}):e;void 0!==c.max&&(l=o(l,c.max)),void 0!==c.min&&(s=r(s,c.min)),c.indent>0&&(u=o(u,c.indent))})),{minBound:s,maxBound:l,indent:u}},_applyMainLayout:function(t,e){var n,i,o=this._measureMainElements(t,e),r=this._area;r.vertical?(i=((n=_(this._innerRect,{width:o.maxBound-o.minBound})).left+n.right)/2-(o.minBound+o.maxBound)/2,r.startCoord=n.bottom-o.indent,r.endCoord=n.top+o.indent,r.x=a(r.x+i)):(i=((n=_(this._innerRect,{height:o.maxBound-o.minBound})).top+n.bottom)/2-(o.minBound+o.maxBound)/2,r.startCoord=n.left+o.indent,r.endCoord=n.right-o.indent,r.y=a(r.y+i)),this._translator.setCodomain(r.startCoord,r.endCoord),this._innerRect=n},_getElementLayout:function(t){return{x:a(this._area.x+t),y:a(this._area.y+t)}},_getApproximateScreenRange:function(){var t=this._area,e=t.vertical?this._canvas.height:this._canvas.width;return e>t.totalSize&&(e=t.totalSize),e*=.8},_getDefaultSize:function(){return"vertical"===(this.option("geometry")||{}).orientation?{width:100,height:300}:{width:300,height:100}},_factory:u.clone(c.prototype._factory)});function _(t,e,n){var i,o=l({},t);return n=n||{},e&&(o.left+=n.left||0,o.right-=n.right||0,o.top+=n.top||0,o.bottom-=n.bottom||0,e.width>0&&(i=(o.right-o.left-e.width)/2)>0&&(o.left+=i,o.right-=i),e.height>0&&(i=(o.bottom-o.top-e.height)/2)>0&&(o.top+=i,o.bottom-=i)),o}var v=g.prototype._factory.indicators={};g.prototype._factory.createIndicator=p(v),v._default=f._default,v.rectangle=f.rectangle,v.rhombus=f.rhombus,v.circle=f.circle,v.trianglemarker=f.trianglemarker,v.textcloud=f.textcloud,v.rangebar=f.rangebar,g.prototype._factory.RangeContainer=m,s("dxLinearGauge",g),t.exports=g},function(t,e,n){"use strict";var i=n(283),o=i.BaseIndicator,r=i.BaseTextCloudMarker,a=i.BaseRangeBar,s=Number,l=n(13).normalizeEnum,u=o.inherit({_move:function(){var t=this._actualPosition-this._zeroPosition;this._rootElement.move(this.vertical?0:t,this.vertical?t:0),this._trackerElement&&this._trackerElement.move(this.vertical?0:t,this.vertical?t:0)},_isEnabled:function(){return this.vertical=this._options.vertical,this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_getTrackerSettings:function(){var t,e,n,i,o=this._options,r=o.width/2,a=o.length/2,s=this._zeroPosition;return r>10||(r=10),a>10||(a=10),this.vertical?(t=o.x-a,e=o.x+a,n=s+r,i=s-r):(t=s-r,e=s+r,n=o.y+a,i=o.y-a),{points:[t,n,t,i,e,i,e,n]}},_render:function(){this._zeroPosition=this._translator.getCodomainStart()},_clear:function(){delete this._element},measure:function(t){var e=this.vertical?t.x:t.y;return{min:e-this._options.length/2,max:e+this._options.length/2}},getTooltipParameters:function(){var t=this._options,e=this._actualPosition,n={x:e,y:e,value:this._currentValue,color:t.color,offset:t.width/2};return this.vertical?n.x=t.x:n.y=t.y,n}}),c=u.inherit({_render:function(){var t,e,n,i,o=this._options;this.callBase();var r=this._zeroPosition;this.vertical?(t=o.x-o.length/2,e=o.x+o.length/2,n=r+o.width/2,i=r-o.width/2):(t=r-o.width/2,e=r+o.width/2,n=o.y+o.length/2,i=o.y-o.length/2),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t,n,t,i,e,i,e,n]})}}),d=u.inherit({_render:function(){var t,e,n,i,o=this._options;this.callBase(),this.vertical?(t=o.x,e=this._zeroPosition,n=o.length/2||0,i=o.width/2||0):(t=this._zeroPosition,e=o.y,n=o.width/2||0,i=o.length/2||0),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr({points:[t-n,e,t,e-i,t+n,e,t,e+i]})}}),h=u.inherit({_render:function(){var t,e,n=this._options;this.callBase(),this.vertical?(t=n.x,e=this._zeroPosition):(t=this._zeroPosition,e=n.y);var i=n.length/2||0;this._element=this._element||this._renderer.circle().append(this._rootElement),this._element.attr({cx:t,cy:e,r:i})}}),f=u.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===l(this._options.horizontalOrientation):"bottom"===l(this._options.verticalOrientation),this._options.length>0&&this._options.width>0},_isVisible:function(){return!0},_render:function(){var t,e,n,i,o=this._options,r={stroke:"none","stroke-width":0,"stroke-linecap":"square"};this.callBase(),this.vertical?(t=o.x,n=this._zeroPosition,e=t+s(this._inverted?o.length:-o.length),r.points=[t,n,e,n-o.width/2,e,n+o.width/2]):(n=o.y,t=this._zeroPosition,i=n+s(this._inverted?o.length:-o.length),r.points=[t,n,t-o.width/2,i,t+o.width/2,i]),o.space>0&&(r["stroke-width"]=Math.min(o.space,o.width/4)||0,r.stroke=r["stroke-width"]>0&&o.containerBackgroundColor||"none"),this._element=this._element||this._renderer.path([],"area").append(this._rootElement),this._element.attr(r).sharp()},_getTrackerSettings:function(){var t,e,n,i,o,r=this._options,a=r.width/2,l=s(r.length);return a>10||(a=10),l>20||(l=20),this.vertical?(t=e=r.x,e=t+(this._inverted?l:-l),o=[t,n=this._zeroPosition+a,e,n,e,i=this._zeroPosition-a,t,i]):(i=(n=r.y)+(this._inverted?l:-l),o=[t=this._zeroPosition-a,n,t,i,e=this._zeroPosition+a,i,e,n]),{points:o}},measure:function(t){var e,n,i=s(this._options.length);return this.vertical?(e=n=t.x,this._inverted?n=e+i:e=n-i):(e=n=t.y,this._inverted?n=e+i:e=n-i),{min:e,max:n,indent:this._options.width/2}},getTooltipParameters:function(){var t=this._options,e=(this._inverted?t.length:-t.length)/2,n=this.callBase();return this.vertical?n.x+=e:n.y+=e,n.offset=t.length/2,n}}),p=r.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===l(this._options.horizontalOrientation):"bottom"===l(this._options.verticalOrientation),!0},_isVisible:function(){return!0},_getTextCloudOptions:function(){var t,e=this._actualPosition,n=this._actualPosition;return this.vertical?(e=this._options.x,t=this._inverted?"top-left":"top-right"):(n=this._options.y,t=this._inverted?"right-top":"right-bottom"),{x:e,y:n,type:t}},measure:function(t){var e,n,i,o=s(this._options.arrowLength)||0;return this._measureText(),this.vertical?(i=this._textFullHeight,this._inverted?(e=t.x,n=t.x+o+this._textFullWidth):(e=t.x-o-this._textFullWidth,n=t.x)):(i=this._textFullWidth,this._inverted?(e=t.y,n=t.y+o+this._textFullHeight):(e=t.y-o-this._textFullHeight,n=t.y)),{min:e,max:n,indent:i}}}),m=a.inherit({_isEnabled:function(){return this.vertical=this._options.vertical,this._inverted=this.vertical?"right"===l(this._options.horizontalOrientation):"bottom"===l(this._options.verticalOrientation),this._options.size>0},_isVisible:function(){return!0},_createBarItem:function(){return this._renderer.path([],"area").append(this._rootElement)},_createTracker:function(){return this._renderer.path([],"area")},_setBarSides:function(){var t,e,n=this._options,i=s(n.size);this.vertical?this._inverted?(t=n.x,e=n.x+i):(t=n.x-i,e=n.x):this._inverted?(t=n.y,e=n.y+i):(t=n.y-i,e=n.y),this._minSide=t,this._maxSide=e,this._minBound=t,this._maxBound=e},_getSpace:function(){var t=this._options;return t.space>0?s(t.space):0},_isTextVisible:function(){var t=this._options.text||{};return t.indent>0||t.indent<0},_getTextAlign:function(){return this.vertical?this._options.text.indent>0?"left":"right":"center"},_setTextItemsSides:function(){var t=s(this._options.text.indent);t>0?(this._lineStart=this._maxSide,this._lineEnd=this._maxSide+t,this._textPosition=this._lineEnd+(this.vertical?2:this._textHeight/2),this._maxBound=this._textPosition+(this.vertical?this._textWidth:this._textHeight/2)):t<0&&(this._lineStart=this._minSide,this._lineEnd=this._minSide+t,this._textPosition=this._lineEnd-(this.vertical?2:this._textHeight/2),this._minBound=this._textPosition-(this.vertical?this._textWidth:this._textHeight/2))},_getPositions:function(){var t,e,n,i,o=this._startPosition,r=this._endPosition,a=this._space,s=this._basePosition,l=this._actualPosition;return o<r?(s<l?(t=s,e=l):(t=l,e=s),n=t-a,i=e+a):(s>l?(t=s,e=l):(t=l,e=s),n=t+a,i=e-a),{start:o,end:r,main1:t,main2:e,back1:n,back2:i}},_buildItemSettings:function(t,e){var n=this._minSide,i=this._maxSide;return{points:this.vertical?[n,t,n,e,i,e,i,t]:[t,n,t,i,e,i,e,n]}},_updateTextPosition:function(){this._text.attr(this.vertical?{x:this._textPosition,y:this._actualPosition+this._textVerticalOffset}:{x:this._actualPosition,y:this._textPosition+this._textVerticalOffset})},_updateLinePosition:function(){var t,e,n,i=this._actualPosition;this.vertical?(this._basePosition>=i?(t=i,e=i+2):(t=i-2,e=i),n=[this._lineStart,t,this._lineStart,e,this._lineEnd,e,this._lineEnd,t]):(this._basePosition<=i?(t=i-2,e=i):(t=i,e=i+2),n=[t,this._lineStart,t,this._lineEnd,e,this._lineEnd,e,this._lineStart]),this._line.attr({points:n}).sharp()},_getTooltipPosition:function(){var t=(this._minSide+this._maxSide)/2,e=(this._basePosition+this._actualPosition)/2;return this.vertical?{x:t,y:e}:{x:e,y:t}},measure:function(t){var e,n,i,o=s(this._options.size),r=s(this._options.text.indent);return this._measureText(),this.vertical?(e=n=t.x,this._inverted?n+=o:e-=o,this._hasText&&(i=this._textHeight/2,r>0&&(n+=r+this._textWidth),r<0&&(e+=r-this._textWidth))):(e=n=t.y,this._inverted?n+=o:e-=o,this._hasText&&(i=this._textWidth/2,r>0&&(n+=r+this._textHeight),r<0&&(e+=r-this._textHeight))),{min:e,max:n,indent:i}}});e._default=m,e.rectangle=c,e.rhombus=d,e.circle=h,e.trianglemarker=f,e.textcloud=p,e.rangebar=m},function(t,e,n){"use strict";var i=n(402),o=Number,r=Math.max,a=n(13).normalizeEnum,s=i.inherit({_processOptions:function(){if(this.vertical=this._options.vertical,this._inner=this._outer=0,this.vertical)switch(a(this._options.horizontalOrientation)){case"left":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}else switch(a(this._options.verticalOrientation)){case"top":this._inner=1;break;case"center":this._inner=this._outer=.5;break;default:this._outer=1}},_isVisible:function(){return!0},_createRange:function(t,e){var n,i=this._inner,o=this._outer,r=this._translator.translate(t.start),a=this._translator.translate(t.end),s=e.x,l=e.y,u=t.startWidth,c=t.endWidth;return n=this.vertical?[s-u*i,r,s-c*i,a,s+c*o,a,s+u*o,r]:[r,l+u*o,r,l-u*i,a,l-c*i,a,l+c*o],this._renderer.path(n,"area")},measure:function(t){var e,n={};return n.min=n.max=t[this.vertical?"x":"y"],e=this._options.width,e=o(e)||r(o(e.start),o(e.end)),n.min-=this._inner*e,n.max+=this._outer*e,n}});t.exports=s},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(108),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0},itemDragging:{optionName:"itemDragging",isCollectionItem:!1},menuItem:{optionName:"menuItems",isCollectionItem:!0},searchEditorOptions:{optionName:"searchEditorOptions",isCollectionItem:!1}},e._templateProps=[{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.List=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowItemDeleting:r.bool,bounceEnabled:r.bool,collapsibleGroups:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),elementAttr:r.object,focusStateEnabled:r.bool,grouped:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,indicateLoading:r.bool,itemDeleteMode:r.oneOf(["context","slideButton","slideItem","static","swipe","toggle"]),itemDragging:r.object,itemHoldTimeout:r.number,items:r.array,keyExpr:r.oneOfType([r.func,r.string]),menuItems:r.array,menuMode:r.oneOf(["context","slide"]),nextButtonText:r.string,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onGroupRendered:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemDeleted:r.func,onItemDeleting:r.func,onItemHold:r.func,onItemRendered:r.func,onItemReordered:r.func,onItemSwipe:r.func,onOptionChanged:r.func,onPageLoading:r.func,onPullRefresh:r.func,onScroll:r.func,onSelectAllValueChanged:r.func,onSelectionChanged:r.func,pageLoadingText:r.string,pageLoadMode:r.oneOf(["nextButton","scrollBottom"]),pulledDownText:r.string,pullingDownText:r.string,pullRefreshEnabled:r.bool,refreshingText:r.string,repaintChangesOnly:r.bool,rtlEnabled:r.bool,scrollByContent:r.bool,scrollByThumb:r.bool,scrollingEnabled:r.bool,searchEditorOptions:r.object,searchEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith","equals"]),searchTimeout:r.number,searchValue:r.string,selectAllMode:r.oneOf(["allPages","page"]),selectedItemKeys:r.array,selectedItems:r.array,selectionMode:r.oneOf(["all","multiple","none","single"]),showScrollbar:r.oneOf(["always","never","onHover","onScroll"]),showSelectionControls:r.bool,tabIndex:r.number,useNativeScrolling:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cursorOffset",e}(s.default);e.CursorOffset=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="itemDragging",e.ExpectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],e}(s.default);e.ItemDragging=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="menuItems",e.IsCollectionItem=!0,e}(s.default);e.MenuItem=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="searchEditorOptions",e.DefaultsProps={defaultValue:"value"},e.ExpectedChildren={button:{optionName:"buttons",isCollectionItem:!0}},e}(s.default);e.SearchEditorOptions=m,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(81),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.LoadIndicator=a,a.propTypes={elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,indicatorSrc:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(195),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultPosition:"position",defaultVisible:"visible"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.LoadPanel=l,l.propTypes={animation:r.object,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),deferRendering:r.bool,delay:r.number,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,indicatorSrc:r.string,maxHeight:r.oneOfType([r.func,r.number,r.string]),maxWidth:r.oneOfType([r.func,r.number,r.string]),message:r.string,minHeight:r.oneOfType([r.func,r.number,r.string]),minWidth:r.oneOfType([r.func,r.number,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onOptionChanged:r.func,onShowing:r.func,onShown:r.func,position:r.oneOfType([r.func,r.object,r.oneOf(["bottom","center","left","left bottom","left top","right","right bottom","right top","top"])]),rtlEnabled:r.bool,shading:r.bool,shadingColor:r.string,showIndicator:r.bool,showPane:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=_,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(988),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"},{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Lookup=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,applyButtonText:r.string,applyValueMode:r.oneOf(["instantly","useButtons"]),cancelButtonText:r.string,cleanSearchOnOpening:r.bool,clearButtonText:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),displayValue:r.string,dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,grouped:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,itemCenteringEnabled:r.bool,items:r.array,minSearchLength:r.number,name:r.string,nextButtonText:r.string,noDataText:r.string,onClosed:r.func,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.func,onOpened:r.func,onOptionChanged:r.func,onPageLoading:r.func,onPullRefresh:r.func,onScroll:r.func,onSelectionChanged:r.func,onValueChanged:r.func,opened:r.bool,pageLoadingText:r.string,pageLoadMode:r.oneOf(["nextButton","scrollBottom"]),placeholder:r.string,pulledDownText:r.string,pullingDownText:r.string,pullRefreshEnabled:r.bool,refreshingText:r.string,rtlEnabled:r.bool,searchEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith"]),searchPlaceholder:r.string,searchTimeout:r.number,showCancelButton:r.bool,showClearButton:r.bool,showDataBeforeSearch:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,useNativeScrolling:r.bool,usePopover:r.bool,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueChangeEvent:r.string,valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapItemText:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},hideEvent:{optionName:"hideEvent",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},showEvent:{optionName:"showEvent",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hideEvent",e}(s.default);e.HideEvent=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showEvent",e}(s.default);e.ShowEvent=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=x,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(10).getWindow(),a=n(58),s=n(4),l=n(17),u=n(5).each,c=n(0).extend,d=n(79),h=n(12),f=n(18),p=n(8),m=n(11),g=n(263),_=n(36),v=n(25),y=n(137),b=n(102),w=n(157).ChildDefaultTemplate,x=n(33),C=g.inherit({_supportedKeys:function(){return c(this.callBase(),{space:function(t){t.preventDefault(),this._validatedOpening()},enter:function(){this._validatedOpening()}})},_getDefaultOptions:function(){return c(this.callBase(),{placeholder:h.format("Select"),searchPlaceholder:h.format("Search"),searchEnabled:!0,cleanSearchOnOpening:!0,showCancelButton:!0,showClearButton:!1,clearButtonText:h.format("Clear"),applyButtonText:h.format("OK"),pullRefreshEnabled:!1,useNativeScrolling:!0,pullingDownText:h.format("dxList-pullingDownText"),pulledDownText:h.format("dxList-pulledDownText"),refreshingText:h.format("dxList-refreshingText"),pageLoadingText:h.format("dxList-pageLoadingText"),onScroll:null,onPullRefresh:null,onPageLoading:null,pageLoadMode:"scrollBottom",nextButtonText:h.format("dxList-nextButtonText"),grouped:!1,groupTemplate:"group",usePopover:!1,showDropDownButton:!1,focusStateEnabled:!1,animation:{},dropDownOptions:{showTitle:!0,width:function(){return.8*i(r).width()},height:function(){return.8*i(r).height()},shading:!0,closeOnOutsideClick:!1,position:void 0,animation:{},title:"",titleTemplate:"title",onTitleRendered:null,fullScreen:!1},itemCenteringEnabled:!1,_scrollToSelectedItemEnabled:!1,useHiddenSubmitElement:!0})},_defaultOptionsRules:function(){var t=_.current();return this.callBase().concat([{device:function(){return!a.nativeScrolling},options:{useNativeScrolling:!1}},{device:function(t){return!f.isSimulator()&&"desktop"===f.real().deviceType&&"generic"===t.platform},options:{usePopover:!0,dropDownOptions:{height:"auto"}}},{device:{platform:"ios",phone:!0},options:{dropDownOptions:{fullScreen:!0}}},{device:{platform:"ios",tablet:!0},options:{dropDownOptions:{width:function(){return.4*Math.min(i(r).width(),i(r).height())},height:"auto"},usePopover:!0,useInkRipple:!1}},{device:function(){return"desktop"===f.real().deviceType&&!f.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return _.isMaterial(t)},options:{usePopover:!1,searchEnabled:!1,showCancelButton:!1,itemCenteringEnabled:!0,_scrollToSelectedItemEnabled:!0,dropDownOptions:{closeOnOutsideClick:!0,width:function(){return this._getPopupWidth()}.bind(this),height:function(){return this._getPopupHeight()}.bind(this),showTitle:!1,shading:!1}}}])},_init:function(){this.callBase(),this._initActions()},_initActions:function(){this.callBase(),this._initScrollAction(),this._initPageLoadingAction(),this._initPullRefreshAction()},_initPageLoadingAction:function(){this._pageLoadingAction=this._createActionByOption("onPageLoading")},_initPullRefreshAction:function(){this._pullRefreshAction=this._createActionByOption("onPullRefresh")},_initScrollAction:function(){this._scrollAction=this._createActionByOption("onScroll")},_scrollHandler:function(t){this._scrollAction(t)},_pullRefreshHandler:function(t){this._pullRefreshAction(t)},_pageLoadingHandler:function(t){this._pageLoadingAction(t)},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({group:new w("group"),title:new w("title")})},_initMarkup:function(){this.$element().addClass("dx-lookup").toggleClass("dx-lookup-popover-mode",this.option("usePopover")),this.callBase()},_inputWrapper:function(){return this.$element().find(".dx-lookup-field-wrapper")},_dataSourceOptions:function(){return c(this.callBase(),{paginate:!0})},_fireContentReadyAction:s.noop,_popupWrapperClass:function(){return""},_renderInput:function(){var t=this._createAction(function(){this._toggleOpenState()}.bind(this));this._$field=i("<div>").addClass("dx-lookup-field"),o.on(this._$field,m.addNamespace(v.name,this.NAME),(function(e){t({event:e})}));var e=i("<div>").addClass("dx-lookup-arrow");this._$fieldWrapper=i("<div>").addClass("dx-lookup-field-wrapper").append(this._$field).append(e).appendTo(this.$element()),this.option("useInkRipple")&&this._renderInkRipple()},_getInputContainer:function(){return this._$fieldWrapper},_renderInkRipple:function(){this._inkRipple=d.render()},_toggleOpenState:function(){this.callBase(),!this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&this._setPopupPosition()},_toggleActiveState:function(t,e,n){if(this.callBase.apply(this,arguments),this._inkRipple){var i={element:this._inputWrapper(),event:n};e?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}},_renderField:function(){var t=this._getTemplateByOption("fieldTemplate");t&&this.option("fieldTemplate")?this._renderFieldTemplate(t):(this._updateField(this.option("displayValue")||this.option("placeholder")),this.$element().toggleClass("dx-lookup-empty",!this.option("selectedItem")))},_renderDisplayText:function(t){this._input().length?this.callBase(t):this._updateField(t)},_updateField:function(t){this._$field.text(t)},_renderFieldTemplate:function(t){this._$field.empty();var e=this._fieldRenderData();t.render({model:e,container:l.getPublicElement(this._$field)})},_fieldRenderData:function(){return this.option("selectedItem")},_popupShowingHandler:function(){this.callBase.apply(this,arguments),this.option("cleanSearchOnOpening")&&(this.option("searchEnabled")&&this._searchBox.option("value")&&(this._searchBox.option("value",""),this._searchCanceled()),this._list&&this._list.option("focusedElement",null)),this.option("dropDownOptions.fullScreen")&&this.option("_scrollToSelectedItemEnabled")&&(this._popup.option("position").of=i(r))},_scrollToSelectedItem:function(){var t=this._list.option("selectedIndex"),e=this._list.option("items"),n=e.length;0!==n&&(this._list.option("grouped")?this._list.scrollToItem({group:n-1,item:e[n-1].items.length-1}):this._list.scrollToItem(n-1),this._list.scrollToItem(t))},_getDifferenceOffsets:function(t){return t.offset().top-i(this.element()).offset().top},_isCenteringEnabled:function(t,e){return 1<t&&t<e-2},_getPopupOffset:function(){var t=this._listItemElements().length;if(0!==t){var e=i(this._list.element()).find(".dx-list-item-selected"),n=this._listItemElements().index(e),o=(e.height()-i(this.element()).height())/2,a=i(this._list.element()).offset().top,s=this.option("dropDownOptions.height"),l="function"===typeof s?s():s,u=i(r).height(),c=0;if(-1!==n){if(this._isCenteringEnabled(n,t)){this._scrollToSelectedItem();var d=(l-e.height())/2-this._getDifferenceOffsets(e);this._list.scrollTo(this._list.scrollTop()+4-d),a<(c=o+this._getDifferenceOffsets(e))&&n!==t-3&&(this._list.scrollTo(this._list.scrollTop()+this._getDifferenceOffsets(e)/2),c=o+this._getDifferenceOffsets(e))}else n<=1?(this._list.scrollTo(0),c=o+this._getDifferenceOffsets(e)):n>=t-2&&(this._scrollToSelectedItem(),c=o+this._getDifferenceOffsets(e));a<c&&(this._scrollToSelectedItem(),c=o+8)}var h=l-c-i(this.element()).height();return u-a<h&&(this._list.scrollTo(this._list.scrollTop()+o-h),c=l-i(this.element()).height()-8),c}},_setPopupPosition:function(){if(this.option("itemCenteringEnabled")&&!this._popup._$wrapper.hasClass("dx-popover-flipped-vertical")){var t=i(this._popup.content()).parent(),e=this._getPopupOffset(),n=x.locate(t);x.move(t,{top:n.top-e})}},_listItemGroupedElements:function(){var t=this._list._itemContainer().children(),e=[];return t.each((function(t,n){e.push(i(n).find(".dx-list-group-header")[0]),i(n).find(".dx-list-item").each((function(t,n){e.push(n)}))})),i(e)},_calculateListHeight:function(t){var e=t?this._listItemGroupedElements():this._listItemElements(),n=i(".dx-list-item-selected"),o=e.index(n),r=0;return e.length<5?e.each((function(t,e){r+=i(e).outerHeight()})):(o<=1?e.slice(0,5):this._isCenteringEnabled(o,e.length)?e.slice(o-2,o+3):e.slice(e.length-5,e.length)).each((function(t,e){r+=i(e).outerHeight()})),r+(t?8:16)},_getPopupHeight:function(){return this._list&&this._list.itemElements()?this._calculateListHeight(this.option("grouped"))+(this._$searchWrapper?this._$searchWrapper.outerHeight():0)+(this._popup._$bottom?this._popup._$bottom.outerHeight():0)+(this._popup._$title?this._popup._$title.outerHeight():0):"auto"},_getPopupWidth:function(){return i(this.element()).outerWidth()},_renderPopup:function(){this.option("usePopover")&&!this.option("dropDownOptions.fullScreen")?this.option("_scrollToSelectedItemEnabled")?this.callBase():this._renderPopover():this.callBase(),this._$popup.addClass("dx-lookup-popup"),this._popup._wrapper().addClass("dx-lookup-popup-wrapper")},_renderPopover:function(){this._popup=this._createComponent(this._$popup,y,c(this._popupConfig(),this._options.cache("dropDownOptions"),{showEvent:null,hideEvent:null,target:this.$element(),fullScreen:!1,shading:!1,closeOnTargetScroll:!0,width:this._isInitialOptionValue("dropDownOptions.width")?function(){return this.$element().outerWidth()}.bind(this):this._popupConfig().width})),this._popup.on({showing:this._popupShowingHandler.bind(this),shown:this._popupShownHandler.bind(this),hiding:this._popupHidingHandler.bind(this),hidden:this._popupHiddenHandler.bind(this),contentReady:this._contentReadyHandler.bind(this)}),this.option("_scrollToSelectedItemEnabled")&&this._popup._$arrow.remove(),this._setPopupContentId(this._popup.$content()),this._contentReadyHandler()},_popupHidingHandler:function(){this.callBase(),this.option("focusStateEnabled")&&this.focus()},_popupHiddenHandler:function(){this.callBase(),this.option("_scrollToSelectedItemEnabled")&&x.resetPosition(i(this._popup.content()).parent())},_preventFocusOnPopup:s.noop,_popupConfig:function(){var t=c(this.callBase(),{toolbarItems:this._getPopupToolbarItems(),closeOnTargetScroll:!1,onPositioned:null,maxHeight:function(){return i(r).height()},showTitle:this.option("dropDownOptions.showTitle"),title:this.option("dropDownOptions.title"),titleTemplate:this._getTemplateByOption("dropDownOptions.titleTemplate"),onTitleRendered:this.option("dropDownOptions.onTitleRendered"),fullScreen:this.option("dropDownOptions.fullScreen"),shading:this.option("dropDownOptions.shading"),closeOnOutsideClick:this.option("dropDownOptions.closeOnOutsideClick")});return delete t.animation,delete t.position,this.option("_scrollToSelectedItemEnabled")&&(t.position=this.option("itemCenteringEnabled")?{my:"left top",at:"left top",of:this.element()}:{my:"left top",at:"left bottom",of:this.element()}),u(["position","animation","width","height"],function(e,n){var i=this.option("dropDownOptions.".concat(n));void 0!==i&&(t[n]=i)}.bind(this)),t},_getPopupToolbarItems:function(){var t="useButtons"===this.option("applyValueMode")?this._popupToolbarItemsConfig():[],e=this._getCancelButtonConfig();e&&t.push(e);var n=this._getClearButtonConfig();return n&&t.push(n),this._applyButtonsLocation(t)},_popupToolbarItemsConfig:function(){return[{shortcut:"done",options:{onClick:this._applyButtonHandler.bind(this),text:this.option("applyButtonText")}}]},_getCancelButtonConfig:function(){return this.option("showCancelButton")?{shortcut:"cancel",onClick:this._cancelButtonHandler.bind(this),options:{onInitialized:function(t){t.component.registerKeyHandler("escape",this.close.bind(this))}.bind(this),text:this.option("cancelButtonText")}}:null},_getClearButtonConfig:function(){return this.option("showClearButton")?{shortcut:"clear",onClick:this._resetValue.bind(this),options:{text:this.option("clearButtonText")}}:null},_applyButtonHandler:function(){this.option("value",this._valueGetter(this._currentSelectedItem())),this.callBase()},_cancelButtonHandler:function(){this._refreshSelected(),this.callBase()},_refreshPopupVisibility:function(){this.option("opened")&&this._updatePopupDimensions()},_dimensionChanged:function(){this.option("usePopover")&&!this.option("dropDownOptions.width")&&this.option("dropDownOptions.width",this.$element().width()),this._popup&&this._updatePopupDimensions()},_input:function(){return this._$searchBox||this.callBase()},_renderPopupContent:function(){this.callBase(),this._renderSearch()},_renderSearch:function(){var t=this,e=this.option("searchEnabled");if(this._toggleSearchClass(e),e){var n=this._$searchWrapper=i("<div>").addClass("dx-lookup-search-wrapper"),o=this._$searchBox=i("<div>").addClass("dx-lookup-search").appendTo(n),r=f.current(),a=r.android&&r.version[0]>=5?"text":"search",s=!1;this._searchBox=this._createComponent(o,b,{onDisposing:function(){return s=!1},onFocusIn:function(){return s=!0},onFocusOut:function(){return s=!1},onKeyboardHandled:function(e){return s&&t._list._keyboardHandler(e)},mode:a,showClearButton:!0,valueChangeEvent:this.option("valueChangeEvent"),onValueChanged:this._searchHandler.bind(this)}),this._registerSearchKeyHandlers(),n.insertBefore(this._$list),this._setSearchPlaceholder()}},_removeSearch:function(){this._$searchWrapper&&this._$searchWrapper.remove(),delete this._$searchWrapper,this._$searchBox&&this._$searchBox.remove(),delete this._$searchBox,delete this._searchBox},_selectListItemHandler:function(t){var e=i(this._list.option("focusedElement"));e.length&&(t.preventDefault(),this._selectListItem(t.itemData,e))},_registerSearchKeyHandlers:function(){this._searchBox.registerKeyHandler("escape",this.close.bind(this)),this._searchBox.registerKeyHandler("enter",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("space",this._selectListItemHandler.bind(this)),this._searchBox.registerKeyHandler("end",s.noop),this._searchBox.registerKeyHandler("home",s.noop)},_toggleSearchClass:function(t){this._popup&&this._popup._wrapper().toggleClass("dx-lookup-popup-search",t)},_setSearchPlaceholder:function(){if(this._$searchBox){var t=this.option("minSearchLength"),e=this.option("searchPlaceholder");t&&e===h.format("Search")&&(e=h.getFormatter("dxLookup-searchPlaceholder")(t)),this._searchBox.option("placeholder",e)}},_setAriaTargetForList:s.noop,_renderList:function(){this.callBase(),this._list.registerKeyHandler("escape",function(){this.close()}.bind(this))},_listConfig:function(){return c(this.callBase(),{tabIndex:0,grouped:this.option("grouped"),groupTemplate:this._getTemplateByOption("groupTemplate"),pullRefreshEnabled:this.option("pullRefreshEnabled"),useNativeScrolling:this.option("useNativeScrolling"),pullingDownText:this.option("pullingDownText"),pulledDownText:this.option("pulledDownText"),refreshingText:this.option("refreshingText"),pageLoadingText:this.option("pageLoadingText"),onScroll:this._scrollHandler.bind(this),onPullRefresh:this._pullRefreshHandler.bind(this),onPageLoading:this._pageLoadingHandler.bind(this),pageLoadMode:this.option("pageLoadMode"),nextButtonText:this.option("nextButtonText"),indicateLoading:this.option("searchEnabled"),onSelectionChanged:this._getSelectionChangedHandler()})},_getSelectionChangedHandler:function(){return this.option("showSelectionControls")?this._selectionChangeHandler.bind(this):s.noop},_listContentReadyHandler:function(){this.callBase.apply(this,arguments),this._refreshSelected()},_setFocusPolicy:function(){this.option("focusStateEnabled")&&(this.option("searchEnabled")?this._searchBox.focus():o.trigger(this._$list,"focus"))},_focusTarget:function(){return this._$field},_keyboardEventBindingTarget:function(){return this._$field},_listItemClickHandler:function(t){this._saveValueChangeEvent(t.event),this._selectListItem(t.itemData,t.event.currentTarget)},_selectListItem:function(t,e){this._list.selectItem(e),"instantly"===this.option("applyValueMode")&&this._applyButtonHandler()},_currentSelectedItem:function(){return this.option("grouped")?this._list.option("selectedItems[0]").items[0]:this._list.option("selectedItems[0]")},_resetValue:function(t){this._saveValueChangeEvent(t.event),this.option("value",null),this.option("opened",!1)},_searchValue:function(){return this.option("searchEnabled")&&this._searchBox?this._searchBox.option("value"):""},_renderInputValue:function(){return this.callBase().always(function(){this._refreshSelected()}.bind(this))},_renderPlaceholder:function(){0!==this.$element().find(".dx-texteditor-input").length&&this.callBase()},_clean:function(){this._$fieldWrapper.remove(),this._$searchBox=null,delete this._inkRipple,this.callBase()},_setDeprecatedOptions:function(){this.callBase(),c(this._deprecatedOptions,{title:{since:"20.1",alias:"dropDownOptions.title"},titleTemplate:{since:"20.1",alias:"dropDownOptions.titleTemplate"},onTitleRendered:{since:"20.1",alias:"dropDownOptions.onTitleRendered"},fullScreen:{since:"20.1",alias:"dropDownOptions.fullScreen"},popupWidth:{since:"20.1",alias:"dropDownOptions.width"},popupHeight:{since:"20.1",alias:"dropDownOptions.height"},shading:{since:"20.1",alias:"dropDownOptions.shading"},closeOnOutsideClick:{since:"20.1",alias:"dropDownOptions.closeOnOutsideClick"},position:{since:"20.1",alias:"dropDownOptions.position"},animation:{since:"20.1",alias:"dropDownOptions.animation"}})},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"dataSource":this.callBase.apply(this,arguments),this._renderField();break;case"searchEnabled":this._popup&&(this._removeSearch(),this._renderSearch());break;case"searchPlaceholder":this._setSearchPlaceholder();break;case"minSearchLength":this._setSearchPlaceholder(),this.callBase.apply(this,arguments);break;case"title":case"titleTemplate":case"onTitleRendered":case"shading":case"animation":case"position":case"closeOnOutsideClick":case"fullScreen":this._setPopupOption(e,n);break;case"usePopover":case"placeholder":this._invalidate();break;case"clearButtonText":case"showClearButton":case"showCancelButton":this._setPopupOption("toolbarItems",this._getPopupToolbarItems());break;case"applyValueMode":this.callBase.apply(this,arguments);break;case"popupWidth":this._setPopupOption("width","auto"===n?this.initialOption("dropDownOptions").width:n);break;case"popupHeight":this._setPopupOption("height","auto"===n?this.initialOption("dropDownOptions").height:n);break;case"onPageLoading":this._initPageLoadingAction();break;case"onPullRefresh":this._initPullRefreshAction();break;case"pullRefreshEnabled":case"useNativeScrolling":case"pullingDownText":case"pulledDownText":case"refreshingText":case"pageLoadingText":case"nextButtonText":case"grouped":case"groupTemplate":this._setListOption(e);break;case"onScroll":this._initScrollAction();break;case"pageLoadMode":this._setListOption("pageLoadMode",this.option("pageLoadMode"));break;case"cleanSearchOnOpening":case"_scrollToSelectedItemEnabled":break;case"itemCenteringEnabled":this.option("_scrollToSelectedItemEnabled")&&(this.option("dropDownOptions.position",void 0),this._renderPopup());break;default:this.callBase.apply(this,arguments)}},focus:function(){this.option("opened")?this._setFocusPolicy():o.trigger(this._focusTarget(),"focus")},field:function(){return this._$field}});p("dxLookup",C),t.exports=C,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(990),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultCenter:"center",defaultMarkers:"markers",defaultRoutes:"routes",defaultZoom:"zoom"},e._expectedChildren={center:{optionName:"center",isCollectionItem:!1},key:{optionName:"key",isCollectionItem:!1},marker:{optionName:"markers",isCollectionItem:!0},route:{optionName:"routes",isCollectionItem:!0}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Map=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,autoAdjust:r.bool,center:r.oneOfType([r.array,r.object,r.string]),controls:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,key:r.oneOfType([r.object,r.string]),markerIconSrc:r.string,markers:r.array,onClick:r.oneOfType([r.func,r.string]),onDisposing:r.func,onInitialized:r.func,onMarkerAdded:r.func,onMarkerRemoved:r.func,onOptionChanged:r.func,onReady:r.func,onRouteAdded:r.func,onRouteRemoved:r.func,provider:r.oneOf(["bing","google","googleStatic"]),routes:r.array,rtlEnabled:r.bool,tabIndex:r.number,type:r.oneOf(["hybrid","roadmap","satellite"]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),zoom:r.number};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="center",e}(s.default);e.Center=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="key",e}(s.default);e.Key=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="location",e}(s.default);e.Location=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="markers",e.IsCollectionItem=!0,e.ExpectedChildren={location:{optionName:"location",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}(s.default);e.Marker=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="routes",e.IsCollectionItem=!0,e.ExpectedChildren={location:{optionName:"locations",isCollectionItem:!0}},e}(s.default);e.Route=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e}(s.default);e.Tooltip=p,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(93),a=n(7).fromPromise,s=n(8),l=n(23),u=n(18),c=n(20),d=n(46),h=n(5).each,f=n(0).extend,p=n(16).inArray,m=n(2).isNumeric,g=n(11),_=n(28),v=n(16).wrapToArray,y={googleStatic:n(991),google:n(992),bing:n(993)},b=c.inherit({_getDefaultOptions:function(){return f(this.callBase(),{bounds:{northEast:null,southWest:null},center:{lat:0,lng:0},zoom:1,width:300,height:300,type:"roadmap",provider:"google",autoAdjust:!0,markers:[],markerIconSrc:null,onMarkerAdded:null,onMarkerRemoved:null,routes:[],onRouteAdded:null,onRouteRemoved:null,key:{bing:"",google:"",googleStatic:""},controls:!1,onReady:null,onUpdated:null,onClick:null})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===u.real().deviceType&&!u.isSimulator()},options:{focusStateEnabled:!0}}])},_init:function(){this.callBase(),this.$element().addClass("dx-map").addClass("dx-native-click"),this._lastAsyncAction=r.resolve(),this._checkOption("provider"),this._checkOption("markers"),this._checkOption("routes"),this._initContainer(),this._grabEvents(),this._rendered={}},_checkOption:function(t){var e=this.option(t);if("markers"===t&&!Array.isArray(e))throw l.Error("E1022");if("routes"===t&&!Array.isArray(e))throw l.Error("E1023")},_initContainer:function(){this._$container=i("<div>").addClass("dx-map-container"),this.$element().append(this._$container)},_grabEvents:function(){var t=g.addNamespace(_.down,this.NAME);o.on(this.$element(),t,this._cancelEvent.bind(this))},_cancelEvent:function(t){this._provider&&this._provider.isEventsCanceled(t)&&!this.option("disabled")&&t.stopPropagation()},_saveRendered:function(t){var e=this.option(t);this._rendered[t]=e.slice()},_render:function(){this.callBase(),this._renderShield(),this._saveRendered("markers"),this._saveRendered("routes"),this._provider=new(y[this.option("provider")])(this,this._$container),this._queueAsyncAction("render",this._rendered.markers,this._rendered.routes)},_renderShield:function(){var t;this.option("disabled")?(t=i("<div>").addClass("dx-map-shield"),this.$element().append(t)):(t=this.$element().find(".dx-map-shield")).remove()},_clean:function(){this._cleanFocusState(),this._provider&&this._provider.clean(),this._provider=null,this._lastAsyncAction=r.resolve(),this.setOptionSilent("bounds",{northEast:null,southWest:null}),delete this._suppressAsyncAction},_optionChanged:function(t){var e=t.name,n=this._optionChangeBag;switch(this._optionChangeBag=null,e){case"disabled":this._renderShield(),this.callBase(t);break;case"width":case"height":this.callBase(t),this._dimensionChanged();break;case"provider":this._suppressAsyncAction=!0,this._invalidate();break;case"key":l.log("W1001");break;case"bounds":this._queueAsyncAction("updateBounds");break;case"center":this._queueAsyncAction("updateCenter");break;case"zoom":this._queueAsyncAction("updateZoom");break;case"type":this._queueAsyncAction("updateMapType");break;case"controls":this._queueAsyncAction("updateControls",this._rendered.markers,this._rendered.routes);break;case"autoAdjust":this._queueAsyncAction("adjustViewport");break;case"markers":case"routes":this._checkOption(e);var i=this._rendered[e];this._saveRendered(e),this._queueAsyncAction("update"+d.titleize(e),n?n.removed:i,n?n.added:this._rendered[e]).then((function(t){n&&n.resolve(t)}));break;case"markerIconSrc":this._queueAsyncAction("updateMarkers",this._rendered.markers,this._rendered.markers);break;case"onReady":case"onUpdated":case"onMarkerAdded":case"onMarkerRemoved":case"onRouteAdded":case"onRouteRemoved":case"onClick":break;default:this.callBase.apply(this,arguments)}},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dimensionChanged:function(){this._queueAsyncAction("updateDimensions")},_queueAsyncAction:function(t){var e=[].slice.call(arguments).slice(1),n=this._suppressAsyncAction;return this._lastAsyncAction=this._lastAsyncAction.then(function(){return!this._provider||n?r.resolve():this._provider[t].apply(this._provider,e).then(function(t){return(t=v(t))[0]&&this._triggerReadyAction(),t[1]}.bind(this))}.bind(this)),this._lastAsyncAction},_triggerReadyAction:function(){this._createActionByOption("onReady")({originalMap:this._provider.map()})},_triggerUpdateAction:function(){this._createActionByOption("onUpdated")()},setOptionSilent:function(t,e){this._setOptionWithoutOptionChange(t,e)},addMarker:function(t){return this._addFunction("markers",t)},removeMarker:function(t){return this._removeFunction("markers",t)},addRoute:function(t){return this._addFunction("routes",t)},removeRoute:function(t){return this._removeFunction("routes",t)},_addFunction:function(t,e){var n=this.option(t),i=v(e);return n.push.apply(n,i),this._partialArrayOptionChange(t,n,i,[])},_removeFunction:function(t,e){var n=this.option(t),i=v(e);return h(i,(function(e,o){var r=m(o)?o:p(o,n);if(-1===r)throw l.log("E1021",d.titleize(t.substring(0,t.length-1)),o);var a=n.splice(r,1)[0];i.splice(e,1,a)})),this._partialArrayOptionChange(t,n,[],i)},_partialArrayOptionChange:function(t,e,n,i){return a(new r(function(o){this._optionChangeBag={resolve:o,added:n,removed:i},this.option(t,e)}.bind(this)).then((function(t){return t&&1===t.length?t[0]:t})),this)}});s("dxMap",b),t.exports=b,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(5).each,o=n(6),r=n(93),a=n(492),s=n(117),l=n(25),u=a.inherit({_locationToString:function(t){var e=this._getLatLng(t);return e?e.lat+","+e.lng:t.toString().replace(/ /g,"+")},_renderImpl:function(){return this._updateMap()},updateDimensions:function(){return this._updateMap()},updateMapType:function(){return this._updateMap()},updateBounds:function(){return r.resolve()},updateCenter:function(){return this._updateMap()},updateZoom:function(){return this._updateMap()},updateControls:function(){return r.resolve()},addMarkers:function(t){var e=this;return this._updateMap().then((function(n){return i(t,(function(t,n){e._fireMarkerAddedAction({options:n})})),n}))},removeMarkers:function(t){var e=this;return this._updateMap().then((function(n){return i(t,(function(t,n){e._fireMarkerRemovedAction({options:n})})),n}))},adjustViewport:function(){return r.resolve()},addRoutes:function(t){var e=this;return this._updateMap().then((function(n){return i(t,(function(t,n){e._fireRouteAddedAction({options:n})})),n}))},removeRoutes:function(t){var e=this;return this._updateMap().then((function(n){return i(t,(function(t,n){e._fireRouteRemovedAction({options:n})})),n}))},clean:function(){return this._$container.css("backgroundImage","none"),o.off(this._$container,this._addEventNamespace(l.name)),r.resolve()},mapRendered:function(){return!0},_updateMap:function(){var t=this._keyOption("googleStatic"),e=this._$container,n=["sensor=false","size="+Math.round(e.width())+"x"+Math.round(e.height()),"maptype="+this._option("type"),"center="+this._locationToString(this._option("center")),"zoom="+this._option("zoom"),this._markersSubstring()];n.push.apply(n,this._routeSubstrings()),t&&n.push("key="+t);var i="https://maps.google.com/maps/api/staticmap?"+n.join("&");return this._$container.css("background",'url("'+i+'") no-repeat 0 0'),this._attachClickEvent(),r.resolve(!0)},_markersSubstring:function(){var t=this,e=[],n=this._option("markerIconSrc");return n&&e.push("icon:"+n),i(this._option("markers"),(function(n,i){e.push(t._locationToString(i.location))})),"markers="+e.join("|")},_routeSubstrings:function(){var t=this,e=[];return i(this._option("routes"),(function(n,o){var r=new s(o.color||t._defaultRouteColor()).toHex().replace("#","0x"),a=Math.round(255*(o.opacity||t._defaultRouteOpacity())).toString(16),l=o.weight||t._defaultRouteWeight(),u=[];i(o.locations,(function(e,n){u.push(t._locationToString(n))})),e.push("path=color:"+r+a+"|weight:"+l+"|"+u.join("|"))})),e},_attachClickEvent:function(){var t=this,e=this._addEventNamespace(l.name);o.off(this._$container,e),o.on(this._$container,e,(function(e){t._fireClickAction({event:e})}))}});t.exports=u},function(t,e,n){"use strict";var i,o,r=n(3),a=n(10).getWindow(),s=n(4).noop,l=n(18),u=n(93),c=n(0).extend,d=n(5).map,h=n(493),f=n(23),p=n(117),m=n(134),g=n(2).isDefined,_=function(){return a.google&&a.google.maps},v=h.inherit({_mapType:function(t){var e={hybrid:google.maps.MapTypeId.HYBRID,roadmap:google.maps.MapTypeId.ROADMAP,satellite:google.maps.MapTypeId.SATELLITE};return e[t]||e.hybrid},_movementMode:function(t){var e={driving:google.maps.TravelMode.DRIVING,walking:google.maps.TravelMode.WALKING};return e[t]||e.driving},_resolveLocation:function(t){return new u(function(e){var n=this._getLatLng(t);n?e(new google.maps.LatLng(n.lat,n.lng)):this._geocodeLocation(t).then((function(t){e(t)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(t){return new u((function(e){g(t)?(new google.maps.Geocoder).geocode({address:t},(function(t,n){n===google.maps.GeocoderStatus.OK?e(t[0].geometry.location):(f.log("W1006",n),e(new google.maps.LatLng(0,0)))})):e(new google.maps.LatLng(0,0))}))},_normalizeLocation:function(t){return{lat:t.lat(),lng:t.lng()}},_normalizeLocationRect:function(t){return{northEast:this._normalizeLocation(t.getNorthEast()),southWest:this._normalizeLocation(t.getSouthWest())}},_loadImpl:function(){return new u(function(t){_()?t():(o||(o=this._loadMapScript()),o.then(function(){_()?t():this._loadMapScript().then(t)}.bind(this)))}.bind(this)).then((function(){(i=function(t){this._position=t.position,this._offset=t.offset,this._$overlayContainer=r("<div>").css({position:"absolute",display:"none",cursor:"pointer"}).append(t.html),this.setMap(t.map)}).prototype=new google.maps.OverlayView,i.prototype.onAdd=function(){r(this.getPanes().overlayMouseTarget).append(this._$overlayContainer),this._clickListener=google.maps.event.addDomListener(this._$overlayContainer.get(0),"click",function(t){google.maps.event.trigger(this,"click"),t.preventDefault()}.bind(this)),this.draw()},i.prototype.onRemove=function(){google.maps.event.removeListener(this._clickListener),this._$overlayContainer.remove()},i.prototype.draw=function(){var t=this.getProjection().fromLatLngToDivPixel(this._position);this._$overlayContainer.css({left:t.x+this._offset.left,top:t.y+this._offset.top,display:"block"})}}))},_loadMapScript:function(){return new u(function(t){var e=this._keyOption("google");a._googleScriptReady=t,m.sendRequest({url:"https://maps.googleapis.com/maps/api/js?callback=_googleScriptReady"+(e?"&key="+e:""),dataType:"script"})}.bind(this)).then((function(){try{delete a._googleScriptReady}catch(t){a._googleScriptReady=void 0}}))},_init:function(){return new u(function(t){this._resolveLocation(this._option("center")).then(function(e){var n=this._option("controls");this._map=new google.maps.Map(this._$container[0],{zoom:this._option("zoom"),center:e,disableDefaultUI:!n});var i=google.maps.event.addListener(this._map,"idle",(function(){t(i)}))}.bind(this))}.bind(this)).then((function(t){google.maps.event.removeListener(t)}))},_attachHandlers:function(){this._boundsChangeListener=google.maps.event.addListener(this._map,"bounds_changed",this._boundsChangeHandler.bind(this)),this._clickListener=google.maps.event.addListener(this._map,"click",this._clickActionHandler.bind(this))},_boundsChangeHandler:function(){var t=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(t));var e=this._map.getCenter();this._option("center",this._normalizeLocation(e)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(t){this._fireClickAction({location:this._normalizeLocation(t.latLng)})},updateDimensions:function(){var t=this._option("center");return google.maps.event.trigger(this._map,"resize"),this._option("center",t),this.updateCenter()},updateMapType:function(){return this._map.setMapTypeId(this._mapType(this._option("type"))),u.resolve()},updateBounds:function(){return u.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(t){var e=new google.maps.LatLngBounds;e.extend(t[0]),e.extend(t[1]),this._map.fitBounds(e)}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(t){this._map.setCenter(t),this._option("center",this._normalizeLocation(t))}.bind(this))},updateZoom:function(){return this._map.setZoom(this._option("zoom")),u.resolve()},updateControls:function(){var t=this._option("controls");return this._map.setOptions({disableDefaultUI:!t}),u.resolve()},isEventsCanceled:function(t){var e=this._map&&this._map.get("gestureHandling");return!(r(t.target).closest(".".concat("gm-style-iw")).length>0||"desktop"!==l.real().deviceType&&"cooperative"===e)&&this.callBase()},_renderMarker:function(t){return this._resolveLocation(t.location).then(function(e){var n;n=t.html?new i({map:this._map,position:e,html:t.html,offset:c({top:0,left:0},t.htmlOffset)}):new google.maps.Marker({position:e,map:this._map,icon:t.iconSrc||this._option("markerIconSrc")});var o,r=this._renderTooltip(n,t.tooltip);if(t.onClick||t.tooltip){var a=this._mapWidget._createAction(t.onClick||s),l=this._normalizeLocation(e);o=google.maps.event.addListener(n,"click",function(){a({location:l}),r&&r.open(this._map,n)}.bind(this))}return{location:e,marker:n,listener:o}}.bind(this))},_renderTooltip:function(t,e){if(e){e=this._parseTooltipOptions(e);var n=new google.maps.InfoWindow({content:e.text});return e.visible&&n.open(this._map,t),n}},_destroyMarker:function(t){t.marker.setMap(null),t.listener&&google.maps.event.removeListener(t.listener)},_renderRoute:function(t){return u.all(d(t.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(e){return new u(function(n){var i={origin:e.shift(),destination:e.pop(),waypoints:d(e,(function(t){return{location:t,stopover:!0}})),optimizeWaypoints:!0,travelMode:this._movementMode(t.mode)};(new google.maps.DirectionsService).route(i,function(e,i){if(i===google.maps.DirectionsStatus.OK){var o=new p(t.color||this._defaultRouteColor()).toHex(),r={directions:e,map:this._map,suppressMarkers:!0,preserveViewport:!0,polylineOptions:{strokeWeight:t.weight||this._defaultRouteWeight(),strokeOpacity:t.opacity||this._defaultRouteOpacity(),strokeColor:o}},a=new google.maps.DirectionsRenderer(r),s=e.routes[0].bounds;n({instance:a,northEast:s.getNorthEast(),southWest:s.getSouthWest()})}else f.log("W1006",i),n({instance:new google.maps.DirectionsRenderer({})})}.bind(this))}.bind(this))}.bind(this))},_destroyRoute:function(t){t.instance.setMap(null)},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var t=this._map.getZoom();this._preventZoomChangeEvent=!0,this._map.fitBounds(this._bounds),this._boundsChangeHandler();var e=this._map.getZoom();t<e?this._map.setZoom(t):this._option("zoom",e),delete this._preventZoomChangeEvent}return u.resolve()},_extendBounds:function(t){this._bounds||(this._bounds=new google.maps.LatLngBounds),this._bounds.extend(t)},clean:function(){return this._map&&(google.maps.event.removeListener(this._boundsChangeListener),google.maps.event.removeListener(this._clickListener),this._clearMarkers(),this._clearRoutes(),delete this._map,this._$container.empty()),u.resolve()}});t.exports=v},function(t,e,n){"use strict";var i,o=n(4).noop,r=n(10).getWindow(),a=n(93),s=n(0).extend,l=n(23),u=n(5),c=n(493),d=n(117),h=n(134),f=n(2).isDefined,p=function(){return r.Microsoft&&r.Microsoft.Maps},m=c.inherit({_mapType:function(t){var e={roadmap:Microsoft.Maps.MapTypeId.road,hybrid:Microsoft.Maps.MapTypeId.aerial,satellite:Microsoft.Maps.MapTypeId.aerial};return e[t]||e.road},_movementMode:function(t){var e={driving:Microsoft.Maps.Directions.RouteMode.driving,walking:Microsoft.Maps.Directions.RouteMode.walking};return e[t]||e.driving},_resolveLocation:function(t){return new a(function(e){var n=this._getLatLng(t);n?e(new Microsoft.Maps.Location(n.lat,n.lng)):this._geocodeLocation(t).then((function(t){e(t)}))}.bind(this))},_geocodedLocations:{},_geocodeLocationImpl:function(t){return new a(function(e){if(f(t)){var n=new Microsoft.Maps.Search.SearchManager(this._map),i={where:t,count:1,callback:function(t){if(t.results[0]){var n=t.results[0].location;e(new Microsoft.Maps.Location(n.latitude,n.longitude))}else e(new Microsoft.Maps.Location(0,0))}};n.geocode(i)}else e(new Microsoft.Maps.Location(0,0))}.bind(this))},_normalizeLocation:function(t){return{lat:t.latitude,lng:t.longitude}},_normalizeLocationRect:function(t){var e=this._normalizeLocation(t.getNorthwest()),n=this._normalizeLocation(t.getSoutheast());return{northEast:{lat:e.lat,lng:n.lng},southWest:{lat:n.lat,lng:e.lng}}},_loadImpl:function(){return new a(function(t){p()?t():(i||(i=this._loadMapScript()),i.then(function(){p()?t():this._loadMapScript().then(t)}.bind(this)))}.bind(this)).then((function(){return a.all([new a((function(t){Microsoft.Maps.loadModule("Microsoft.Maps.Search",{callback:t})})),new a((function(t){Microsoft.Maps.loadModule("Microsoft.Maps.Directions",{callback:t})}))])}))},_loadMapScript:function(){return new a((function(t){r._bingScriptReady=t,h.sendRequest({url:"https://www.bing.com/api/maps/mapcontrol?callback=_bingScriptReady",dataType:"script"})})).then((function(){try{delete r._bingScriptReady}catch(t){r._bingScriptReady=void 0}}))},_init:function(){return this._createMap(),a.resolve()},_createMap:function(){var t=this._option("controls");this._map=new Microsoft.Maps.Map(this._$container[0],{credentials:this._keyOption("bing")||"AhuxC0dQ1DBTNo8L-H9ToVMQStmizZzBJdraTSgCzDSWPsA1Qd8uIvFSflzxdaLH",zoom:this._option("zoom"),showDashboard:t,showMapTypeSelector:t,showScalebar:t})},_attachHandlers:function(){this._providerViewChangeHandler=Microsoft.Maps.Events.addHandler(this._map,"viewchange",this._viewChangeHandler.bind(this)),this._providerClickHandler=Microsoft.Maps.Events.addHandler(this._map,"click",this._clickActionHandler.bind(this))},_viewChangeHandler:function(){var t=this._map.getBounds();this._option("bounds",this._normalizeLocationRect(t));var e=this._map.getCenter();this._option("center",this._normalizeLocation(e)),this._preventZoomChangeEvent||this._option("zoom",this._map.getZoom())},_clickActionHandler:function(t){"map"===t.targetType&&this._fireClickAction({location:this._normalizeLocation(t.location)})},updateDimensions:function(){var t=this._$container;return this._map.setOptions({width:t.width(),height:t.height()}),a.resolve()},updateMapType:function(){var t=this._option("type"),e=Microsoft.Maps.LabelOverlay;return this._map.setView({animate:!1,mapTypeId:this._mapType(t),labelOverlay:"satellite"===t?e.hidden:e.visible}),a.resolve()},updateBounds:function(){return a.all([this._resolveLocation(this._option("bounds.northEast")),this._resolveLocation(this._option("bounds.southWest"))]).then(function(t){var e=new Microsoft.Maps.LocationRect.fromLocations(t[0],t[1]);this._map.setView({animate:!1,bounds:e})}.bind(this))},updateCenter:function(){return this._resolveLocation(this._option("center")).then(function(t){this._map.setView({animate:!1,center:t})}.bind(this))},updateZoom:function(){return this._map.setView({animate:!1,zoom:this._option("zoom")}),a.resolve()},updateControls:function(){return this.clean(),this.render.apply(this,arguments)},_renderMarker:function(t){return this._resolveLocation(t.location).then(function(e){var n={icon:t.iconSrc||this._option("markerIconSrc")};if(t.html){s(n,{htmlContent:t.html,width:null,height:null});var i=t.htmlOffset;i&&(n.anchor=new Microsoft.Maps.Point(-i.left,-i.top))}var r=new Microsoft.Maps.Pushpin(e,n);this._map.entities.push(r);var a,l=this._renderTooltip(e,t.tooltip);if(t.onClick||t.tooltip){var u=this._mapWidget._createAction(t.onClick||o),c=this._normalizeLocation(e);a=Microsoft.Maps.Events.addHandler(r,"click",(function(){u({location:c}),l&&l.setOptions({visible:!0})}))}return{location:e,marker:r,infobox:l,handler:a}}.bind(this))},_renderTooltip:function(t,e){if(e){e=this._parseTooltipOptions(e);var n=new Microsoft.Maps.Infobox(t,{description:e.text,offset:new Microsoft.Maps.Point(0,13),visible:e.visible});return n.setMap(this._map),n}},_destroyMarker:function(t){this._map.entities.remove(t.marker),t.infobox&&t.infobox.setMap(null),t.handler&&Microsoft.Maps.Events.removeHandler(t.handler)},_renderRoute:function(t){return a.all(u.map(t.locations,function(t){return this._resolveLocation(t)}.bind(this))).then(function(e){return new a(function(n){var i=new Microsoft.Maps.Directions.DirectionsManager(this._map),o=new d(t.color||this._defaultRouteColor()).toHex(),r=new Microsoft.Maps.Color.fromHex(o);r.a=255*(t.opacity||this._defaultRouteOpacity()),i.setRenderOptions({autoUpdateMapView:!1,displayRouteSelector:!1,waypointPushpinOptions:{visible:!1},drivingPolylineOptions:{strokeColor:r,strokeThickness:t.weight||this._defaultRouteWeight()},walkingPolylineOptions:{strokeColor:r,strokeThickness:t.weight||this._defaultRouteWeight()}}),i.setRequestOptions({routeMode:this._movementMode(t.mode),routeDraggable:!1}),u.each(e,(function(t,e){var n=new Microsoft.Maps.Directions.Waypoint({location:e});i.addWaypoint(n)}));var a=[];a.push(Microsoft.Maps.Events.addHandler(i,"directionsUpdated",(function(t){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());var e=t.routeSummary[0];n({instance:i,northEast:e.northEast,southWest:e.southWest})}))),a.push(Microsoft.Maps.Events.addHandler(i,"directionsError",(function(t){for(;a.length;)Microsoft.Maps.Events.removeHandler(a.pop());var e="RouteResponseCode: "+t.responseCode+" - "+t.message;l.log("W1006",e),n({instance:i})}))),i.calculateDirections()}.bind(this))}.bind(this))},_destroyRoute:function(t){t.instance.dispose()},_fitBounds:function(){if(this._updateBounds(),this._bounds&&this._option("autoAdjust")){var t=this._map.getZoom();this._preventZoomChangeEvent=!0;var e=this._bounds.clone();e.height=1.1*e.height,e.width=1.1*e.width,this._map.setView({animate:!1,bounds:e,zoom:t});var n=this._map.getZoom();t<n?this._map.setView({animate:!1,zoom:t}):this._option("zoom",n),delete this._preventZoomChangeEvent}return a.resolve()},_extendBounds:function(t){this._bounds?this._bounds=new Microsoft.Maps.LocationRect.fromLocations(this._bounds.getNorthwest(),this._bounds.getSoutheast(),t):this._bounds=new Microsoft.Maps.LocationRect(t,1e-16,1e-16)},clean:function(){return this._map&&(Microsoft.Maps.Events.removeHandler(this._providerViewChangeHandler),Microsoft.Maps.Events.removeHandler(this._providerClickHandler),this._clearMarkers(),this._clearRoutes(),this._map.dispose()),a.resolve()}});t.exports=m},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(454),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedItem:"selectedItem"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0},showFirstSubmenuMode:{optionName:"showFirstSubmenuMode",isCollectionItem:!1},showSubmenuMode:{optionName:"showSubmenuMode",isCollectionItem:!1}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Menu=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,adaptivityEnabled:r.bool,animation:r.object,cssClass:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,disabledExpr:r.oneOfType([r.func,r.string]),displayExpr:r.oneOfType([r.func,r.string]),elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hideSubmenuOnMouseLeave:r.bool,hint:r.string,hoverStateEnabled:r.bool,items:r.array,itemsExpr:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,onSubmenuHidden:r.func,onSubmenuHiding:r.func,onSubmenuShowing:r.func,onSubmenuShown:r.func,orientation:r.oneOf(["horizontal","vertical"]),rtlEnabled:r.bool,selectByClick:r.bool,selectedExpr:r.oneOfType([r.func,r.string]),selectedItem:r.object,selectionMode:r.oneOf(["none","single"]),showFirstSubmenuMode:r.oneOfType([r.object,r.oneOf(["onClick","onHover"])]),showSubmenuMode:r.oneOfType([r.object,r.oneOf(["onClick","onHover"])]),submenuDirection:r.oneOf(["auto","leftOrTop","rightOrBottom"]),tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="delay",e}(s.default);e.Delay=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showFirstSubmenuMode",e.ExpectedChildren={delay:{optionName:"delay",isCollectionItem:!1}},e}(s.default);e.ShowFirstSubmenuMode=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showSubmenuMode",e.ExpectedChildren={delay:{optionName:"delay",isCollectionItem:!1}},e}(s.default);e.ShowSubmenuMode=m,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(445),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.MultiView=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animationEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,loop:r.bool,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,rtlEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,swipeEnabled:r.bool,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(997),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.NavBar=l,l.propTypes={accessKey:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,keyExpr:r.oneOfType([r.func,r.string]),noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,repaintChangesOnly:r.bool,rtlEnabled:r.bool,scrollByContent:r.bool,selectedIndex:r.number,selectedItem:r.object,selectedItemKeys:r.array,selectedItems:r.array,selectionMode:r.oneOf(["multiple","single"]),tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=n(8),o=n(0).extend,r=n(998),a=n(237),s=a.inherit({ctor:function(t,e){this.callBase(t,e),this._logDeprecatedComponentWarning("20.1","dxTabs")},_getDefaultOptions:function(){return o(this.callBase(),{scrollingEnabled:!1})},_render:function(){this.callBase(),this.$element().addClass("dx-navbar")},_postprocessRenderItem:function(t){this.callBase(t);var e=t.itemElement,n=t.itemData;e.addClass("dx-nav-item"),e.find(".dx-item-content").addClass("dx-nav-item-content"),n.icon||e.addClass("dx-navbar-text-item")}});s.ItemClass=r,i("dxNavBar",s),t.exports=s,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(446),o=i.inherit({_renderBadge:function(t){this.callBase(t),this._$element.children(".dx-tabs-item-badge").removeClass("dx-tabs-item-badge").addClass("dx-navbar-item-badge")}});t.exports=o},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(142),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.NumberBox=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,buttons:r.array,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,format:r.oneOfType([r.object,r.func,r.string]),height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,invalidValueMessage:r.string,isValid:r.bool,max:r.number,min:r.number,mode:r.oneOf(["number","text","tel"]),name:r.string,onChange:r.func,onContentReady:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,showClearButton:r.bool,showSpinButtons:r.bool,step:r.number,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,useLargeSpinButtons:r.bool,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.number,valueChangeEvent:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=d,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1001),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator"},e._expectedChildren={adaptiveLayout:{optionName:"adaptiveLayout",isCollectionItem:!1},animation:{optionName:"animation",isCollectionItem:!1},commonSeriesSettings:{optionName:"commonSeriesSettings",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},legend:{optionName:"legend",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},pieChartTitle:{optionName:"title",isCollectionItem:!1},series:{optionName:"series",isCollectionItem:!0},seriesTemplate:{optionName:"seriesTemplate",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e._templateProps=[{tmplOption:"centerTemplate",render:"centerRender",component:"centerComponent",keyFn:"centerKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.PieChart=l,l.propTypes={adaptiveLayout:r.object,animation:r.oneOfType([r.bool,r.object]),commonSeriesSettings:r.object,customizeLabel:r.func,customizePoint:r.func,dataSource:r.oneOfType([r.array,r.object,r.string]),diameter:r.number,disabled:r.bool,elementAttr:r.object,export:r.object,innerRadius:r.number,legend:r.object,loadingIndicator:r.object,margin:r.object,minDiameter:r.number,onDisposing:r.func,onDone:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onLegendClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onPointClick:r.oneOfType([r.func,r.string]),onPointHoverChanged:r.func,onPointSelectionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),pathModified:r.bool,pointSelectionMode:r.oneOf(["multiple","single"]),redrawOnResize:r.bool,resolveLabelOverlapping:r.oneOf(["hide","none","shift"]),rtlEnabled:r.bool,segmentsDirection:r.oneOf(["anticlockwise","clockwise"]),series:r.oneOfType([r.array,r.object]),seriesTemplate:r.object,size:r.object,sizeGroup:r.string,startAngle:r.number,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,type:r.oneOf(["donut","doughnut","pie"])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adaptiveLayout",e}(s.default);e.AdaptiveLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentFormat",e}(s.default);e.ArgumentFormat=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonSeriesSettings",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1},smallValuesGrouping:{optionName:"smallValuesGrouping",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettings=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connector",e}(s.default);e.Connector=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.HoverStyle=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},connector:{optionName:"connector",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Label=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legend",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendBorder:{optionName:"border",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.LegendBorder=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},pieChartTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.PieChartTitle=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.PieChartTitleSubtitle=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.SelectionStyle=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="series",e.IsCollectionItem=!0,e}(s.default);e.Series=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.SeriesBorder=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="seriesTemplate",e}(s.default);e.SeriesTemplate=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="smallValuesGrouping",e}(s.default);e.SmallValuesGrouping=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=V,e.default=l},function(t,e,n){"use strict";var i=n(140),o=n(13),r=n(0),a=n(2),s=n(5),l=f(n(123)),u=f(n(8)),c=n(286),d=n(4),h=f(n(384));function f(t){return t&&t.__esModule?t:{default:t}}var p=i.states.normalMark,m=i.states.hoverMark,g=i.states.selectedMark,_=[i.states.resetItem,i.states.applyHover,i.states.applySelected,i.states.applySelected];function v(t){return(0,a.isNumeric)(t)?t>1?t=1:t<0&&(t=0):t=void 0,t}var y=function(){function t(t,e){return t.filter((function(t){return t!==e}))}var e=[],n={};return{queue:function(i){var o,r=i.getSizeGroup();e=t(e,o=i).concat(o),clearTimeout(n[r]),n[r]=setTimeout((function(){!function(t,e){var n=e.filter((function(e){return e._isVisible()&&e.getSizeGroup()===t})),i=Math.min.apply(null,n.map((function(t){return t.getSizeGroupLayout().radius}))),o=n.filter((function(t){return t.getSizeGroupLayout().radius===i}));n.forEach((function(t){return t.render({force:!0,sizeGroupLayout:o.length?o[0].getSizeGroupLayout():{}})}))}(r,e)}))},remove:function(i){(e=t(e,i)).length||(n={})}}}(),b=c.BaseChart.inherit({_themeSection:"pie",_layoutManagerOptions:function(){return(0,r.extend)(!0,{},this.callBase(),{piePercentage:v(this._themeManager.getOptions("diameter")),minPiePercentage:v(this._themeManager.getOptions("minDiameter"))})},_optionChangesMap:{diameter:"REINIT",minDiameter:"REINIT",sizeGroup:"REINIT"},_disposeCore:function(){y.remove(this),this.callBase()},_groupSeries:function(){var t=this.series;this._groupsData={groups:[{series:t,valueOptions:{valueType:"numeric"}}],argumentOptions:t[0]&&t[0].getOptions()}},getArgumentAxis:function(){return null},_getValueAxis:function(){var t=(new h.default.Translator1D).setCodomain(360,0);return{getTranslator:function(){return t},setBusinessRange:function(e){t.setDomain(e.min,e.max)}}},_populateBusinessRange:function(){this.series.map((function(t){var e=new l.default.Range;return e.addRange(t.getRangeData().val),t.getValueAxis().setBusinessRange(e),e}))},_specialProcessSeries:function(){(0,s.each)(this.series,(function(t,e){e.arrangePoints()}))},_checkPaneName:function(){return!0},_processSingleSeries:function(t){this.callBase(t),t.arrangePoints()},_handleSeriesDataUpdated:function(){var t=0;this.series.forEach((function(e){t=Math.max(e.getPointsCount(),t)})),this.series.forEach((function(e){e.setMaxPointsCount(t)})),this.callBase()},_getLegendOptions:function(t){var e=this.callBase(t),n=e.legendData;return n.argument=t.argument,n.argumentIndex=t.argumentIndex,n.points=[t],e},_getLegendTargets:function(){var t=this,e={};(t.series||[]).forEach((function(t){t.getPoints().forEach((function(n){var i=n.argument.valueOf(),o=t.getPointsByArg(i).indexOf(n),r=i.valueOf().toString()+o;e[r]=e[r]||[];var a=e[r].push(n);n.index=e[r][a-2]?e[r][a-2].index:Object.keys(e).length-1,n.argumentIndex=o}))}));var n=[];return(0,s.each)(e,(function(e,i){i.forEach((function(e,i){if(0!==i){var o=n[n.length-1];o.legendData.points.push(e),o.visible||(o.visible=e.isVisible())}else n.push(t._getLegendOptions(e))}))})),n},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getLayoutSeries:function(t,e){var n,i=this._canvas,o=!1;return n=this.layoutManager.applyPieChartSeriesLayout(i,t,!0),t.forEach((function(t){t.correctPosition(n,i),o=t.drawLabelsWOPoints()||o})),o&&(n=this.layoutManager.applyPieChartSeriesLayout(i,t,e.hideLayoutLabels)),t.forEach((function(t){t.hideLabels()})),this._sizeGroupLayout={x:n.centerX,y:n.centerY,radius:n.radiusOuter,drawOptions:e},n},_getLayoutSeriesForEqualPies:function(t,e){var n=this._canvas,i=this.layoutManager.applyEqualPieChartLayout(t,e);return t.forEach((function(t){t.correctPosition(i,n),t.drawLabelsWOPoints()})),this.layoutManager.correctPieLabelRadius(t,i,n),i},_updateSeriesDimensions:function(t){var e,n,o,r=this._getVisibleSeries(),a=r.length,s=t.sizeGroupLayout;a&&(o=s?this._getLayoutSeriesForEqualPies(r,s):this._getLayoutSeries(r,t),n=(o.radiusOuter-o.radiusInner-i.pieSeriesSpacing*(a-1))/a,e=o.radiusInner,this._setGeometry(o),r.forEach((function(t){t.correctRadius({radiusInner:e,radiusOuter:e+n}),e+=n+i.pieSeriesSpacing})))},_renderSeries:function(t,e,n){if(this._calculateSeriesLayout(t,e),!t.sizeGroupLayout&&this.getSizeGroup())return y.queue(this),void this._clearCanvas();this._renderSeriesElements(t,n)},_renderExtraElements:function(){var t=this,e=this.option("centerTemplate");this._centerTemplateGroup&&this._centerTemplateGroup.clear(),e&&(this._centerTemplateGroup||(this._centerTemplateGroup=this._renderer.g().attr({class:"dxc-hole-template"}).css((0,o.patchFontOptions)(this._themeManager._font))),this._centerTemplateGroup.append(this._renderer.root),(e=this._getTemplate(e)).render({model:this,container:this._centerTemplateGroup.element,onRendered:function(){var e=t._centerTemplateGroup.getBBox();t._centerTemplateGroup.move(t._center.x-(e.x+e.width/2),t._center.y-(e.y+e.height/2))}}))},getInnerRadius:function(){return this._innerRadius},_getLegendCallBack:function(){var t=this,e=this._legend,n=this._getLegendTargets().map((function(t){return t.legendData}));return function(i){n.forEach((function(n){var o=[],r=e.getActionCallback({index:n.id});t.series.forEach((function(t){var e=t.getPointsByKeys(n.argument,n.argumentIndex);o.push.apply(o,e)})),i&&i.argument===n.argument&&i.argumentIndex===n.argumentIndex&&o.push(i),r(function(t){var e=p;return t.forEach((function(t){var n,i=null===(n=t.series)||void 0===n?void 0:n.getOptions(),o=t.fullState;"none"===(null===i||void 0===i?void 0:i.hoverMode)&&(o&=~m),"none"===(null===i||void 0===i?void 0:i.selectionMode)&&(o&=~g),e|=o})),_[e]}(o))}))}},_locateLabels:function(t){var e,n,i=0;do{n=this._adjustSeriesLabels("shift"===t),e=this._resolveLabelOverlapping(t)}while((e||n)&&++i<5)},_adjustSeriesLabels:function(t){return this.series.reduce((function(e,n){return n.adjustLabels(t)||e}),!1)},_applyExtraSettings:d.noop,_resolveLabelOverlappingShift:function(){var t=this,e="anticlockwise"===t.option("segmentsDirection"),n=t.series.reduce((function(t,e){return(t[e.getOptions().label.position]||t.outside).push(e),t}),{inside:[],columns:[],outside:[]}),i=!1;return n.inside.length>0&&(i=a(n.inside.reduce((function(t,e){return e.getVisiblePoints().reduce((function(t,e){return t.left.push(e),t}),t)}),{left:[],right:[]}),s)||i),i=n.columns.reduce((function(t,e){return a(r(e),s)||t}),i),n.outside.length>0&&(i=a(n.outside.reduce((function(t,e){return r(e,t)}),null),(function(e,n){return(0,o.getVerticallyShiftedAngularCoords)(e,-n,t._center)}))||i),i;function r(t,e){return t.getVisiblePoints().reduce((function(t,e){var n=(0,o.normalizeAngle)(e.middleAngle);return(n<=90||n>=270?t.right:t.left).push(e),t}),e||{left:[],right:[]})}function a(n,i){var o;return e&&(n.left.reverse(),n.right.reverse()),o=c.overlapping.resolveLabelOverlappingInOneDirection(n.left,t._canvas,!1,i),c.overlapping.resolveLabelOverlappingInOneDirection(n.right,t._canvas,!1,i)||o}function s(t,e){return{x:t.x,y:t.y-e}}},_setGeometry:function(t){var e=t.centerX,n=t.centerY,i=t.radiusInner;this._center={x:e,y:n},this._innerRadius=i},_disposeSeries:function(t){this.callBase.apply(this,arguments),this._abstractSeries=null},_legendDataField:"point",_legendItemTextField:"argument",_applyPointMarkersAutoHiding:d.noop,_renderTrackers:d.noop,_trackerType:"PieTracker",_createScrollBar:d.noop,_updateAxesLayout:d.noop,_applyClipRects:d.noop,_appendAdditionalSeriesGroups:d.noop,_prepareToRender:d.noop,_isLegendInside:d.noop,_renderAxes:d.noop,_shrinkAxes:d.noop,_isRotated:d.noop,_seriesPopulatedHandlerCore:d.noop,_reinitAxes:d.noop,_correctAxes:d.noop,_getExtraOptions:function(){return{startAngle:this.option("startAngle"),innerRadius:this.option("innerRadius"),segmentsDirection:this.option("segmentsDirection"),type:this.option("type")}},getSizeGroup:function(){return this._themeManager.getOptions("sizeGroup")},getSizeGroupLayout:function(){return this._sizeGroupLayout||{}}});(0,s.each)(["startAngle","innerRadius","segmentsDirection","type"],(function(t,e){b.prototype._optionChangesMap[e]="REFRESH_SERIES_DATA_INIT"})),(0,u.default)("dxPieChart",b),t.exports=b,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1003),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={export:{optionName:"export",isCollectionItem:!1},fieldChooser:{optionName:"fieldChooser",isCollectionItem:!1},fieldPanel:{optionName:"fieldPanel",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},loadPanel:{optionName:"loadPanel",isCollectionItem:!1},pivotGridTexts:{optionName:"texts",isCollectionItem:!1},scrolling:{optionName:"scrolling",isCollectionItem:!1},stateStoring:{optionName:"stateStoring",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.PivotGrid=l,l.propTypes={allowExpandAll:r.bool,allowFiltering:r.bool,allowSorting:r.bool,allowSortingBySummary:r.bool,dataFieldArea:r.oneOf(["column","row"]),dataSource:r.oneOfType([r.array,r.object]),disabled:r.bool,elementAttr:r.object,export:r.object,fieldChooser:r.object,fieldPanel:r.object,headerFilter:r.object,height:r.oneOfType([r.func,r.number,r.string]),hideEmptySummaryCells:r.bool,hint:r.string,loadPanel:r.object,onCellClick:r.func,onCellPrepared:r.func,onContentReady:r.func,onContextMenuPreparing:r.func,onDisposing:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onInitialized:r.func,onOptionChanged:r.func,rowHeaderLayout:r.oneOf(["standard","tree"]),rtlEnabled:r.bool,scrolling:r.object,showBorders:r.bool,showColumnGrandTotals:r.bool,showColumnTotals:r.bool,showRowGrandTotals:r.bool,showRowTotals:r.bool,showTotalsPrior:r.oneOf(["both","columns","none","rows"]),stateStoring:r.object,tabIndex:r.number,texts:r.object,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wordWrapEnabled:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fieldChooser",e.ExpectedChildren={fieldChooserTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.FieldChooser=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.FieldChooserTexts=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fieldPanel",e.ExpectedChildren={fieldPanelTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.FieldPanel=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.FieldPanelTexts=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e.ExpectedChildren={headerFilterTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.HeaderFilter=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.HeaderFilterTexts=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadPanel",e}(s.default);e.LoadPanel=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.PivotGridTexts=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scrolling",e}(s.default);e.Scrolling=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stateStoring",e}(s.default);e.StateStoring=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.Texts=b,e.default=l},function(t,e,n){"use strict";t.exports=n(1004),t.exports.default=t.exports},function(t,e,n){"use strict";var i=D(n(3)),o=n(10),r=n(31),a=D(n(6)),s=D(n(8)),l=n(17),u=n(55),c=n(4),d=n(5),h=n(2),f=n(0),p=n(25),m=n(12),g=D(n(20)),_=n(11),v=n(40),y=n(95),b=n(1005),w=n(1010),x=n(1011),C=n(212),S=n(1012),k=D(n(495)),I=D(n(308)),T=n(1014),E=D(n(1015)),O=D(n(48)),M=D(n(109)),P=n(7);function D(t){return t&&t.__esModule?t:{default:t}}var A=(0,o.getWindow)(),R="<tr>",B="<td>",N="<div>";function L(t){var e=0;return(0,d.each)(t,(function(t,n){e+=n||0})),e}function F(t,e){for(var n=e/t.length,i=0;i<t.length;i++)t[i]-=n}function V(t){t.off("scroll").off("stop")}var z={};function j(t,e){var n="width"===e?["borderLeftWidth","borderRightWidth"]:["borderTopWidth","borderBottomWidth"],i=0;return(0,d.each)(t,(function(t,e){var o=A.getComputedStyle(e.get(0));n.forEach((function(t){i+=parseFloat(o[t])||0}))})),i}var H=g.default.inherit({_getDefaultOptions:function(){return(0,f.extend)(this.callBase(),{scrolling:{timeout:300,renderingThreshold:150,minTimeout:10,mode:"standard",useNative:"auto",removeInvisiblePages:!0,virtualRowHeight:50,virtualColumnWidth:100},encodeHtml:!0,dataSource:null,activeStateEnabled:!1,fieldChooser:{minWidth:250,minHeight:250,enabled:!0,allowSearch:!1,searchTimeout:500,layout:0,title:(0,m.format)("dxPivotGrid-fieldChooserTitle"),width:600,height:600,applyChangesMode:"instantly"},onContextMenuPreparing:null,allowSorting:!1,allowSortingBySummary:!1,allowFiltering:!1,allowExpandAll:!1,wordWrapEnabled:!0,fieldPanel:{showColumnFields:!0,showFilterFields:!0,showDataFields:!0,showRowFields:!0,allowFieldDragging:!0,visible:!1,texts:{columnFieldArea:(0,m.format)("dxPivotGrid-columnFieldArea"),rowFieldArea:(0,m.format)("dxPivotGrid-rowFieldArea"),filterFieldArea:(0,m.format)("dxPivotGrid-filterFieldArea"),dataFieldArea:(0,m.format)("dxPivotGrid-dataFieldArea")}},dataFieldArea:"column",export:{enabled:!1,fileName:"PivotGrid",proxyUrl:void 0,ignoreExcelErrors:!0},showRowTotals:!0,showRowGrandTotals:!0,showColumnTotals:!0,showColumnGrandTotals:!0,hideEmptySummaryCells:!0,showTotalsPrior:"none",rowHeaderLayout:"standard",loadPanel:{enabled:!0,text:(0,m.format)("Loading"),width:200,height:70,showIndicator:!0,indicatorSrc:"",showPane:!0},texts:{grandTotal:(0,m.format)("dxPivotGrid-grandTotal"),total:(0,m.getFormatter)("dxPivotGrid-total"),noData:(0,m.format)("dxDataGrid-noDataText"),showFieldChooser:(0,m.format)("dxPivotGrid-showFieldChooser"),expandAll:(0,m.format)("dxPivotGrid-expandAll"),collapseAll:(0,m.format)("dxPivotGrid-collapseAll"),sortColumnBySummary:(0,m.getFormatter)("dxPivotGrid-sortColumnBySummary"),sortRowBySummary:(0,m.getFormatter)("dxPivotGrid-sortRowBySummary"),removeAllSorting:(0,m.format)("dxPivotGrid-removeAllSorting"),exportToExcel:(0,m.format)("dxDataGrid-exportToExcel"),dataNotAvailable:(0,m.format)("dxPivotGrid-dataNotAvailable")},onCellClick:null,onCellPrepared:null,showBorders:!1,stateStoring:{enabled:!1,storageKey:null,type:"localStorage",customLoad:null,customSave:null,savingTimeout:2e3},onExpandValueChanging:null,renderCellCountLimit:2e4,onExporting:null,onExported:null,onFileSaving:null,headerFilter:{width:252,height:325,allowSearch:!1,showRelevantValues:!1,searchTimeout:500,texts:{emptyValue:(0,m.format)("dxDataGrid-headerFilterEmptyValue"),ok:(0,m.format)("dxDataGrid-headerFilterOK"),cancel:(0,m.format)("dxDataGrid-headerFilterCancel")}}})},_getDataControllerOptions:function(){var t=this;return{component:t,dataSource:t.option("dataSource"),texts:t.option("texts"),showRowTotals:t.option("showRowTotals"),showRowGrandTotals:t.option("showRowGrandTotals"),showColumnTotals:t.option("showColumnTotals"),showTotalsPrior:t.option("showTotalsPrior"),showColumnGrandTotals:t.option("showColumnGrandTotals"),dataFieldArea:t.option("dataFieldArea"),rowHeaderLayout:t.option("rowHeaderLayout"),hideEmptySummaryCells:t.option("hideEmptySummaryCells"),onFieldsPrepared:function(e){(0,d.each)(e,(function(e,n){(0,d.each)(["allowSorting","allowSortingBySummary","allowFiltering","allowExpandAll"],(function(e,i){void 0===n[i]&&(0,y.setFieldProperty)(n,i,t.option(i))}))}))}}},_initDataController:function(){var t=this;t._dataController&&t._dataController.dispose(),t._dataController=new b.DataController(t._getDataControllerOptions()),(0,o.hasWindow)()&&t._dataController.changed.add((function(){t._render()})),t._dataController.scrollChanged.add((function(e){t._scrollLeft=e.left,t._scrollTop=e.top})),t._dataController.loadingChanged.add((function(e){t._updateLoading()})),t._dataController.progressChanged.add(t._updateLoading.bind(t)),t._dataController.dataSourceChanged.add((function(){t._trigger("onChanged")}));var e=t.option("onExpandValueChanging");e&&t._dataController.expandValueChanging.add((function(t){e(t)}))},_init:function(){this.callBase(),this._initDataController(),this._scrollLeft=this._scrollTop=null,this._initActions()},_initActions:function(){this._actions={onChanged:this._createActionByOption("onChanged"),onContextMenuPreparing:this._createActionByOption("onContextMenuPreparing"),onCellClick:this._createActionByOption("onCellClick"),onExporting:this._createActionByOption("onExporting"),onExported:this._createActionByOption("onExported"),onFileSaving:this._createActionByOption("onFileSaving"),onCellPrepared:this._createActionByOption("onCellPrepared")}},_trigger:function(t,e){this._actions[t](e)},_optionChanged:function(t){switch(t.name){case"dataSource":case"allowSorting":case"allowFiltering":case"allowExpandAll":case"allowSortingBySummary":case"scrolling":case"stateStoring":this._initDataController(),this._fieldChooserPopup.hide(),this._renderFieldChooser(),this._invalidate();break;case"texts":case"showTotalsPrior":case"showRowTotals":case"showRowGrandTotals":case"showColumnTotals":case"showColumnGrandTotals":case"hideEmptySummaryCells":case"dataFieldArea":this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"useNativeScrolling":case"encodeHtml":case"renderCellCountLimit":break;case"rtlEnabled":this.callBase(t),this._renderFieldChooser(),this._renderContextMenu(),(0,o.hasWindow)()&&this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate();break;case"export":this._renderDescriptionArea();break;case"onExpandValueChanging":break;case"onCellClick":case"onContextMenuPreparing":case"onExporting":case"onExported":case"onFileSaving":case"onCellPrepared":this._actions[t.name]=this._createActionByOption(t.name);break;case"fieldChooser":this._renderFieldChooser(),this._renderDescriptionArea();break;case"loadPanel":(0,o.hasWindow)()&&(this._renderLoadPanel(this._dataArea.groupElement(),this.$element()),this._invalidate());break;case"fieldPanel":this._renderDescriptionArea(),this._invalidate();break;case"headerFilter":this._renderFieldChooser(),this._invalidate();break;case"showBorders":this._tableElement().toggleClass("dx-pivotgrid-border",!!t.value),this.updateDimensions();break;case"wordWrapEnabled":this._tableElement().toggleClass("dx-word-wrap",!!t.value),this.updateDimensions();break;case"rowHeaderLayout":this._tableElement().find(".dx-area-row-cell").toggleClass("dx-area-tree-view","tree"===t.value),this._dataController.updateViewOptions(this._getDataControllerOptions());break;case"height":case"width":this._hasHeight=null,this.callBase(t),this.resize();break;default:this.callBase(t)}},_updateScrollPosition:function(t,e,n){var i,o,r=this._scrollTop||this._scrollLeft;this._scrollUpdating||(this._scrollUpdating=!0,e&&!e.hasScroll()&&this._hasHeight&&(this._scrollTop=null),t&&!t.hasScroll()&&(this._scrollLeft=null),(null!==this._scrollTop||null!==this._scrollLeft||r||this.option("rtlEnabled"))&&(i=this._scrollTop||0,o=this._scrollLeft||0,n.scrollTo({x:o,y:i}),t.scrollTo(o),e.scrollTo(i),this._dataController.updateWindowScrollPosition(this._scrollTop)),this._scrollUpdating=!1)},_subscribeToEvents:function(t,e,n){var i=this,o=function(o){var r=o.scrollOffset,a=(0,h.isDefined)(r.left)?r.left:i._scrollLeft,s=(0,h.isDefined)(r.top)&&i._hasHeight?r.top:i._scrollTop;(i._scrollLeft||0)===(a||0)&&(i._scrollTop||0)===(s||0)||(i._scrollLeft=a,i._scrollTop=s,i._updateScrollPosition(t,e,n),"virtual"===i.option("scrolling.mode")&&i._dataController.setViewportPosition(i._scrollLeft,i._scrollTop))};(0,d.each)([t,e,n],(function(t,e){!function(t,e){V(t),t.on("scroll",e).on("stop",e)}(e,o)})),!i._hasHeight&&i._dataController.subscribeToWindowScrollEvents(n.groupElement())},_clean:c.noop,_needDelayResizing:function(t){return t.length*(t.length?t[0].length:0)>this.option("renderCellCountLimit")},_renderFieldChooser:function(){var t=this,e=t._pivotGridContainer,n=t.option("fieldChooser")||{},o="onDemand"===n.applyChangesMode?[{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,m.format)("OK"),onClick:function(e){t._fieldChooserPopup.$content().dxPivotGridFieldChooser("applyChanges"),t._fieldChooserPopup.hide()}}},{toolbar:"bottom",location:"after",widget:"dxButton",options:{text:(0,m.format)("Cancel"),onClick:function(e){t._fieldChooserPopup.hide()}}}]:[],r={layout:n.layout,texts:n.texts||{},dataSource:t.getDataSource(),allowSearch:n.allowSearch,searchTimeout:n.searchTimeout,width:void 0,height:void 0,headerFilter:t.option("headerFilter"),encodeHtml:t.option("encodeHtml"),applyChangesMode:n.applyChangesMode,onContextMenuPreparing:function(e){t._trigger("onContextMenuPreparing",e)}},a={shading:!1,title:n.title,width:n.width,height:n.height,showCloseButton:!0,resizeEnabled:!0,minWidth:n.minWidth,minHeight:n.minHeight,toolbarItems:o,onResize:function(t){t.component.$content().dxPivotGridFieldChooser("updateDimensions")},onShown:function(e){t._createComponent(e.component.content(),k.default,r)},onHidden:function(t){var e=t.component.$content().dxPivotGridFieldChooser("instance");e.resetTreeView(),e.cancelChanges()}};t._fieldChooserPopup?(t._fieldChooserPopup.option(a),t._fieldChooserPopup.$content().dxPivotGridFieldChooser(r)):t._fieldChooserPopup=t._createComponent((0,i.default)(N).addClass("dx-fieldchooser-popup").appendTo(e),O.default,a)},_renderContextMenu:function(){var t=this,e=t._pivotGridContainer;t._contextMenu&&t._contextMenu.$element().remove(),t._contextMenu=t._createComponent((0,i.default)(N).appendTo(e),M.default,{onPositioning:function(e){var n=e.event;if(e.cancel=!0,n){var o=n.target.cellIndex>=0?n.target:(0,i.default)(n.target).closest("td").get(0);if(o){var r=t._createEventArgs(o,n),a=t._getContextMenuItems(r);return a?(e.component.option("items",a),void(e.cancel=!1)):void 0}}},onItemClick:function(t){t.itemData.onItemClick&&t.itemData.onItemClick(t)},cssClass:"dx-pivotgrid",target:t.$element()})},_getContextMenuItems:function(t){var e=this,n=[],i=e.option("texts");if("row"===t.area||"column"===t.area){var o=t[t.area+"Fields"],r=t["column"===t.area?"rowFields":"columnFields"],a=t.cell.path&&o[t.cell.path.length-1],s=e.getDataSource();if(a&&a.allowExpandAll&&t.cell.path.length<t[t.area+"Fields"].length&&!s.paginate()&&(n.push({beginGroup:!0,icon:"none",text:i.expandAll,onItemClick:function(){s.expandAll(a.index)}}),n.push({text:i.collapseAll,icon:"none",onItemClick:function(){s.collapseAll(a.index)}})),t.cell.isLast&&!s.paginate()){var l=0;(0,d.each)(r,(function(e,o){o.allowSortingBySummary&&(0,d.each)(t.dataFields,(function(e,r){if(!(0,h.isDefined)(t.cell.dataIndex)||t.cell.dataIndex===e){var a=!(0,h.isDefined)(t.cell.dataIndex)&&t.dataFields.length>1,c="column"===t.area?i.sortColumnBySummary:i.sortRowBySummary,d=(0,y.findField)(t.dataFields,o.sortBySummaryField)===e&&(t.cell.path||[]).join("/")===(o.sortBySummaryPath||[]).join("/"),f=(0,u.format)(c,a?o.caption+" - "+r.caption:o.caption);n.push({beginGroup:0===l,icon:d?"desc"===o.sortOrder?"sortdowntext":"sortuptext":"none",text:f,onItemClick:function(){s.field(o.index,{sortBySummaryField:r.name||r.caption||r.dataField,sortBySummaryPath:t.cell.path,sortOrder:"desc"===o.sortOrder?"asc":"desc"}),s.load()}}),l++}}))})),(0,d.each)(r,(function(t,e){if(e.allowSortingBySummary&&(0,h.isDefined)(e.sortBySummaryField))return n.push({beginGroup:0===l,icon:"none",text:i.removeAllSorting,onItemClick:function(){(0,d.each)(r,(function(t,e){s.field(e.index,{sortBySummaryField:void 0,sortBySummaryPath:void 0,sortOrder:void 0})})),s.load()}}),!1}))}}if(e.option("fieldChooser.enabled")&&n.push({beginGroup:!0,icon:"columnchooser",text:i.showFieldChooser,onItemClick:function(){e._fieldChooserPopup.show()}}),e.option("export.enabled")&&n.push({beginGroup:!0,icon:"xlsxfile",text:i.exportToExcel,onItemClick:function(){e.exportToExcel()}}),t.items=n,e._trigger("onContextMenuPreparing",t),(n=t.items)&&n.length)return n},_createEventArgs:function(t,e){var n,o=this.getDataSource(),r={rowFields:o.getAreaFields("row"),columnFields:o.getAreaFields("column"),dataFields:o.getAreaFields("data"),event:e};return(n=(0,i.default)(t)).closest(".dx-area-fields").length||n.find(".dx-area-fields").length?(0,f.extend)(this._createFieldArgs(t),r):(0,f.extend)(this._createCellArgs(t),r)},_createFieldArgs:function(t){var e=(0,i.default)(t).children().data("field"),n={field:e};return(0,h.isDefined)(e)?n:{}},_createCellArgs:function(t){var e=(0,i.default)(t),n=t.cellIndex,o=t.parentElement.rowIndex,r=e.closest("table"),a=r.data("data"),s=a&&a[o]&&a[o][n];return{area:r.data("area"),rowIndex:o,columnIndex:n,cellElement:(0,l.getPublicElement)(e),cell:s}},_handleCellClick:function(t){var e=this,n=e._createEventArgs(t.currentTarget,t),i=n.cell;i&&(n.area||!n.rowIndex&&!n.columnIndex)&&(e._trigger("onCellClick",n),i&&!n.cancel&&(0,h.isDefined)(i.expanded)&&setTimeout((function(){e._dataController[i.expanded?"collapseHeaderItem":"expandHeaderItem"](n.area,i.path)})))},_getNoDataText:function(){return this.option("texts.noData")},_renderNoDataText:v.renderNoDataText,_renderLoadPanel:v.renderLoadPanel,_updateLoading:function(t){var e=this,n=e._dataController.isLoading();if(e._loadPanel){var i=e._loadPanel.option("visible");i||(e._startLoadingTime=new Date),n&&(t?new Date-e._startLoadingTime>=1e3&&e._loadPanel.option("message",Math.floor(100*t)+"%"):e._loadPanel.option("message",e.option("loadPanel.text"))),clearTimeout(e._hideLoadingTimeoutID),i&&!n?e._hideLoadingTimeoutID=setTimeout((function(){e._loadPanel.option("visible",!1),e.$element().removeClass("dx-overflow-hidden")})):(e._loadPanel.option("visible",n),e.$element().toggleClass("dx-overflow-hidden",!n))}},_renderDescriptionArea:function(){var t,e=this,n=this.$element(),o=n.find(".dx-area-description-cell"),r=(0,i.default)(N).addClass("dx-pivotgrid-toolbar"),a=this.option("fieldPanel"),s=n.find(".dx-filter-header"),l=n.find(".dx-column-header");if(t=a.visible&&a.showFilterFields?s:a.visible&&(a.showDataFields||a.showColumnFields)?l:o,l.toggleClass("dx-bottom-border",!(!a.visible||!a.showDataFields&&!a.showColumnFields)),s.toggleClass("dx-bottom-border",!(!a.visible||!a.showFilterFields)),o.toggleClass("dx-pivotgrid-background",a.visible&&(a.showDataFields||a.showColumnFields||a.showRowFields)),this.$element().find(".dx-pivotgrid-toolbar").remove(),r.prependTo(t),this.option("fieldChooser.enabled")){var u=(0,i.default)(N).appendTo(r).addClass("dx-pivotgrid-field-chooser-button"),c={icon:"columnchooser",hint:this.option("texts.showFieldChooser"),onClick:function(){e.getFieldChooserPopup().show()}};this._createComponent(u,"dxButton",c)}if(this.option("export.enabled")){var d=(0,i.default)(N).appendTo(r).addClass("dx-pivotgrid-export-button"),h={icon:"xlsxfile",hint:this.option("texts.exportToExcel"),onClick:function(){e.exportToExcel()}};this._createComponent(d,"dxButton",h)}},_detectHasContainerHeight:function(){var t=this.$element();if(!(0,h.isDefined)(this._hasHeight)&&!t.is(":hidden")){this._pivotGridContainer.addClass("dx-hidden");var e=(0,i.default)(N).height(66666);t.append(e),this._hasHeight=66666!==t.height(),this._pivotGridContainer.removeClass("dx-hidden"),e.remove()}},_renderHeaders:function(t,e,n,i){var o=this.getDataSource();this._rowFields=this._rowFields||new S.FieldsArea(this,"row"),this._rowFields.render(t,o.getAreaFields("row")),this._columnFields=this._columnFields||new S.FieldsArea(this,"column"),this._columnFields.render(e,o.getAreaFields("column")),this._filterFields=this._filterFields||new S.FieldsArea(this,"filter"),this._filterFields.render(n,o.getAreaFields("filter")),this._dataFields=this._dataFields||new S.FieldsArea(this,"data"),this._dataFields.render(i,o.getAreaFields("data")),this.$element().dxPivotGridFieldChooserBase("instance").renderSortable()},_createTableElement:function(){var t=(0,i.default)("<table>").css({width:"100%"}).toggleClass("dx-pivotgrid-border",!!this.option("showBorders")).toggleClass("dx-word-wrap",!!this.option("wordWrapEnabled"));return a.default.on(t,(0,_.addNamespace)(p.name,"dxPivotGrid"),"td",this._handleCellClick.bind(this)),t},_renderDataArea:function(t){var e=this._dataArea||new w.DataArea(this);return this._dataArea=e,e.render(t,this._dataController.getCellsInfo()),e},_renderRowsArea:function(t){var e=this._rowsArea||new x.VerticalHeadersArea(this);return this._rowsArea=e,e.render(t,this._dataController.getRowsInfo()),e},_renderColumnsArea:function(t){var e=this._columnsArea||new x.HorizontalHeadersArea(this);return this._columnsArea=e,e.render(t,this._dataController.getColumnsInfo()),e},_initMarkup:function(){var t=this;t.callBase.apply(this,arguments),t.$element().addClass("dx-pivotgrid")},_renderContentImpl:function(){var t,e,n,o,a,s,l,u,c=!this._pivotGridContainer;(o=!c&&this._tableElement())||(this.$element().addClass("dx-row-lines").addClass("dx-pivotgrid-fields-container"),this._pivotGridContainer=(0,i.default)(N).addClass("dx-pivotgrid-container"),this._renderFieldChooser(),this._renderContextMenu(),t=(0,i.default)(B).addClass("dx-area-column-cell"),e=(0,i.default)(B).addClass("dx-area-row-cell"),n=(0,i.default)(B).addClass("dx-area-data-cell"),o=this._createTableElement(),u=(0,i.default)(B).addClass("dx-data-header"),l=(0,i.default)("<td>").attr("colspan","2").addClass("dx-filter-header"),s=(0,i.default)(B).addClass("dx-column-header"),a=(0,i.default)(B).addClass("dx-area-description-cell"),(0,i.default)(R).append(l).appendTo(o),(0,i.default)(R).append(u).append(s).appendTo(o),(0,i.default)(R).toggleClass("dx-ie",!0===r.msie).append(a).append(t).appendTo(o),(0,i.default)(R).addClass("dx-bottom-row").append(e).append(n).appendTo(o),this._pivotGridContainer.append(o),this.$element().append(this._pivotGridContainer),"tree"===this.option("rowHeaderLayout")&&e.addClass("dx-area-tree-view")),this.$element().addClass("dx-overflow-hidden"),this._createComponent(this.$element(),I.default,{dataSource:this.getDataSource(),encodeHtml:this.option("encodeHtml"),allowFieldDragging:this.option("fieldPanel.allowFieldDragging"),headerFilter:this.option("headerFilter"),visible:this.option("visible")});var d=this._renderDataArea(n),h=this._renderRowsArea(e),f=this._renderColumnsArea(t);d.tableElement().prepend(f.headElement()),c&&(this._renderLoadPanel(d.groupElement().parent(),this.$element()),this._renderDescriptionArea(),h.processScroll(),f.processScroll()),[d,h,f].forEach((function(t){V(t)})),this._renderHeaders(a,s,l,u),this._update(c)},_update:function(t){var e=this,n=function(){e.updateDimensions().done((function(){e._subscribeToEvents(e._columnsArea,e._rowsArea,e._dataArea)}))};e._needDelayResizing(e._dataArea.getData())&&t?setTimeout(n):n()},_fireContentReadyAction:function(){this._dataController.isLoading()||this.callBase()},getScrollPath:function(t){return"column"===t?this._columnsArea.getScrollPath(this._scrollLeft):this._rowsArea.getScrollPath(this._scrollTop)},getDataSource:function(){return this._dataController.getDataSource()},getFieldChooserPopup:function(){return this._fieldChooserPopup},hasScroll:function(t){return"column"===t?this._columnsArea.hasScroll():this._rowsArea.hasScroll()},_dimensionChanged:function(){this.updateDimensions()},_visibilityChanged:function(t){t&&this.updateDimensions()},_dispose:function(){var t=this;clearTimeout(t._hideLoadingTimeoutID),t.callBase.apply(t,arguments),t._dataController&&t._dataController.dispose()},_tableElement:function(){return this.$element().find("table").first()},addWidgetPrefix:function(t){return"dx-pivotgrid-"+t},resize:function(){this.updateDimensions()},isReady:function(){return this.callBase()&&!this._dataController.isLoading()},updateDimensions:function(){var t,e,n,r,a=this,s=a._tableElement(),l=a._rowsArea,u=a._columnsArea,h=a._dataArea,f=0,p=0,m=0,g=a.option("scrolling")||{},_=function(t){if(z[t])return z[t];var e,n={},o=(0,i.default)(N).css({position:"absolute",visibility:"hidden",top:-1e3,left:-1e3,width:100,height:100}).appendTo("body"),r=(0,i.default)("<p>").css({width:"100%",height:200}).appendTo(o);"auto"!==t&&(n.useNative=!!t,n.useSimulatedScrollbar=!t),o.dxScrollable(n);var a=o.dxScrollable("instance").option("useNative");return e=a?o.width()-r.width():0,o.remove(),z[t]={scrollBarWidth:e,scrollBarUseNative:a},z[t]}(g.useNative),v=_.scrollBarWidth,b=s.find(".dx-area-data-cell"),w=s.find(".dx-area-row-cell"),x=s.find(".dx-area-column-cell"),S=s.find(".dx-area-description-cell"),k=s.find(".dx-filter-header"),I=s.find(".dx-column-header"),T=a._rowFields,E=new P.Deferred;if((0,o.hasWindow)()){var O=T.isVisible()&&"tree"!==a.option("rowHeaderLayout");a._detectHasContainerHeight(),h.headElement().length||h.tableElement().prepend(u.headElement()),O&&(l.updateColspans(T.getColumnsCount()),l.tableElement().prepend(T.headElement())),s.addClass("dx-incompressible-fields"),h.reset(),l.reset(),u.reset(),T.reset();var M=function(t,e){return e-t>=1},D=function(t,e,n,i,o){return n?t:e+(i?o:0)};return(0,c.deferUpdate)((function(){var o=h.getColumnsWidth(),R=l.getRowsHeight(),B=O?R.slice(1):R,N=h.getRowsHeight(),V=(0,C.getSize)(S[0],"height",{paddings:!0,borders:!0,margins:!0})+(O?R[0]:0),z=a._dataController.getColumnsInfo().length,H=(0,y.mergeArraysByMaxValue)(B,N.slice(z)),W=N.slice(0,z),U=L(W),G=l.getColumnsWidth(),K=0,q=0;if(a._hasHeight&&(K=k.height(),e=j([x,b,s,I,k],"height"),q=a.$element().height()-K-s.find(".dx-data-header").height()-(Math.max(h.headElement().height(),x.height(),V)+e)),f=h.tableElement().width(),p=L(H),f&&p){m=L(G);var $=a.$element().width();e=j([w,b,s],"width"),t=(t=$-m-e)>0?t:f,n=a._hasHeight&&M(q,p),r=M(t,f);var Y=D(q,p,n,r,v);(0,c.deferRender)((function(){if(u.tableElement().append(h.headElement()),T.tableElement().append(l.headElement()),!r&&n&&v&&(F(o,v),f-=v),V>U&&(F(W,U-V),u.setRowsHeight(W)),s.removeClass("dx-incompressible-fields"),I.children().css("maxWidth",t),u.groupWidth(t),u.processScrollBarSpacing(n?v:0),u.setColumnsWidth(o),l.groupHeight(a._hasHeight?Y:"auto"),l.processScrollBarSpacing(r?v:0),l.setColumnsWidth(G),l.setRowsHeight(H),h.setColumnsWidth(o),h.setRowsHeight(H),h.groupWidth(t),h.groupHeight(a._hasHeight?Y:"auto"),O&&T.setColumnsWidth(G),b.toggleClass("dx-bottom-border",!n),w.toggleClass("dx-bottom-border",!n),!a._hasHeight&&$!==a.$element().width()){var e=$-a.$element().width();r||(F(o,e),u.setColumnsWidth(o),h.setColumnsWidth(o)),h.groupWidth(t-e),u.groupWidth(t-e)}if(a._hasHeight&&a._filterFields.isVisible()&&k.height()!==K){var c=k.height()-K;if(c>0){n=M(q-c,p);var y=D(q-c,p,n,r,v);h.groupHeight(y),l.groupHeight(y)}}if("virtual"===g.mode){var x=a._dataController.calculateVirtualContentParams({virtualRowHeight:g.virtualRowHeight,virtualColumnWidth:g.virtualColumnWidth,itemWidths:o,itemHeights:H,rowCount:H.length,columnCount:o.length,viewportWidth:t,viewportHeight:a._hasHeight?Y:(0,i.default)(A).outerHeight()});h.setVirtualContentParams({top:x.contentTop,left:x.contentLeft,width:x.width,height:x.height}),l.setVirtualContentParams({top:x.contentTop,width:m,height:x.height}),u.setVirtualContentParams({left:x.contentLeft,width:x.width,height:u.groupElement().height()})}var C=[];h.processScroll(_.scrollBarUseNative,r,n),(0,d.each)([u,l,h],(function(t,e){C.push(e&&e.updateScrollable())})),a._updateLoading(),a._renderNoDataText(b),P.when.apply(i.default,C).done((function(){a._updateScrollPosition(u,l,h),E.resolve()}))}))}else E.resolve()})),E}},applyPartialDataSource:function(t,e,n){this._dataController.applyPartialDataSource(t,e,n)}}).inherit(T.ExportMixin).include(E.default);(0,s.default)("dxPivotGrid",H),t.exports=H},function(t,e,n){"use strict";var i=v(n(39)),o=n(7),r=n(0),a=n(16),s=v(n(5)),l=v(n(21)),u=v(n(55)),c=v(n(4)),d=n(2),h=v(n(452)),f=v(n(470)),p=v(n(432)),m=v(n(494)),g=n(95),_=v(g);function v(t){return t&&t.__esModule?t:{default:t}}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b=Math,w=function(t,e,n){t[e]||(t[e]=function(){var t=this._dataSource;return t?t[e].apply(t,arguments):n})};e.DataController=l.default.inherit(function(){function t(t,e,n){return"#N/A"===t?n:(0,g.formatValue)(t,e)}var e=function(){var t=function(t,e){var n=e.lastIndex-e.index||1;return function(t,e,n,i,o){for(var r=o?i:n;!t[r];)t.push([]);o?t[r].push(e):t[r].unshift(e)}(t,function(t,e,n,i){var o={type:t.type,text:t.text};return t.path&&(o.path=t.path),t.width&&(o.width=t.width),(0,d.isDefined)(t.wordWrapEnabled)&&(o.wordWrapEnabled=t.wordWrapEnabled),t.isLast&&(o.isLast=!0),t.sorted&&(o.sorted=!0),t.isMetric&&(o.dataIndex=t.dataIndex),(0,d.isDefined)(t.expanded)&&(o.expanded=t.expanded),e>1&&(o[n?"colspan":"rowspan"]=e),t.depthSize&&t.depthSize>1&&(o[n?"rowspan":"colspan"]=t.depthSize),t.index>=0&&(o.dataSourceIndex=t.index),i&&t.children&&t.children.length&&!t.children[0].isMetric&&(o.width=null,o.isWhiteSpace=!0),o}(e.headerItem,n,e.isHorizontal,e.isTree),e.index,e.depth,e.isHorizontal),e.headerItem.children&&0!==e.headerItem.children.length?e.lastIndex:e.lastIndex+1},e=function(t,e,i,l,c){var h=i.length,f=function(t,e){var i,r=e&&e.length||0,a=[],s=new o.Deferred;return(0,o.when)((0,g.foreachTreeAsync)(t,(function(t,e){var o=t[0],s=(0,g.createPath)(t);(i=n(a,s.length,e)).type="D",i.value=o.value,i.path=s,i.text=o.text,i.index=o.index,i.displayText=o.displayText,i.key=o.key,i.isEmpty=o.isEmpty,s.length<r&&(!o.children||0!==o.children.length)&&(i.expanded=!!o.children)}))).done((function(){s.resolve(n(a,0,0).children||[])})),s}(t,e),p=c.dataFields,m=new o.Deferred;return(0,o.when)(f).done((function(t){c.notifyProgress(.5),c.showGrandTotals&&t[c.showTotalsPrior?"unshift":"push"]({type:"GT",isEmpty:c.isEmptyGrandTotal});var n=!1===c.showTotals||p.length>0&&p.length===c.hiddenTotals.length,f=p.length>0&&c.hiddenValues.length===p.length;f&&n&&(l=1),n&&"tree"!==c.layout||function(t,e,n,i){n=n||i,(0,g.foreachTree)(t,(function(o,a){var s=o[0],l=(o[1]?o[1].children:t)||[],u=e[o.length-1];"D"===s.type&&s.expanded&&(!1!==u.showTotals||i)&&(-1!==a&&l.splice(n?a:a+1,0,(0,r.extend)({},s,{children:null,type:"T",expanded:!!n||null,isAdditionalTotal:!0})),n&&(s.expanded=null))}))}(t,e,c.showTotalsPrior,"tree"===c.layout),(0,o.when)((0,g.foreachTreeAsync)(t,(function(t){var e=t[0];e.children&&0!==e.children.length||(e.depthSize=l-t.length+1)}))).done((function(){h>1&&function(t,e,n){(0,g.foreachTree)(t,(function(t){var i,o=t[0];if(!o.children||0===o.children.length)for(o.children=[],i=0;i<e.length;i++){var r="GT"===o.type,s="T"===o.type,l="D"===o.type;!1===e[i].visible||r&&-1!==(0,a.inArray)(i,n.hiddenGrandTotals)||s&&-1!==(0,a.inArray)(i,n.hiddenTotals)||l&&-1!==(0,a.inArray)(i,n.hiddenValues)||o.children.push({caption:e[i].caption,path:o.path,type:o.type,value:i,index:o.index,dataIndex:i,isMetric:!0,isEmpty:o.isEmpty&&o.isEmpty[i]})}}))}(t,i,c),!c.showEmpty&&function(t){(0,g.foreachTree)([{children:t}],(function(e,n){var i=e[0],o=(e[1]?e[1].children:t)||[],r=i.isEmpty;r&&r.length&&(r=i.isEmpty.filter((function(t){return t})).length===r.length),i&&!i.children&&r&&(o.splice(n,1),function t(e,n){var i=e[n+1];!e[n].children.length&&i&&i.children&&(i.children.splice((0,a.inArray)(e[n],i.children),1),t(e,n+1))}(e,1))}))}(t),c.notifyProgress(.75),(0,o.when)((0,g.foreachTreeAsync)(t,(function(n){var o=n[0],r=o.isMetric,l=e[n.length-1]||{};if("D"!==o.type||r||(o.width=l.width),!0!==f||"D"!==o.type)o.wordWrapEnabled=r?i[o.dataIndex].wordWrapEnabled:l.wordWrapEnabled,o.isLast=!o.children||!o.children.length,o.isLast&&s.default.each(c.sortBySummaryPaths,(function(t,e){if((0,d.isDefined)(o.dataIndex)||(e=e.slice(0)).pop(),function(t,e){var n,i=t[0],o=(0,d.isString)(e[0]),r=i.dataIndex>=0?t[1]:i;return n=o&&-1!==e[0].indexOf("&[")&&r.key||!r.key?(0,g.createPath)(t):s.default.map(t,(function(t){return t.dataIndex>=0?t.value:t.text})).reverse(),"GT"===i.type&&(n=n.slice(1)),n.join("/")===e.join("/")}(n,e))return o.sorted=!0,!1})),o.text=function(t,e,n){var i=t.text;return(0,d.isDefined)(t.displayText)?i=t.displayText:(0,d.isDefined)(t.caption)?i=t.caption:"GT"===t.type&&(i=n.texts.grandTotal),t.isAdditionalTotal&&(i=u.default.format(n.texts.total||"",i)),i}(o,0,c);else{var h=(n[1]?n[1].children:t)||[];h.splice((0,a.inArray)(o,h),1)}}))).done((function(){t.length||t.push({}),c.notifyProgress(1),m.resolve(t)}))}))})),m};function n(t,e,n){var i=(t[e]=t[e]||[])[n]={};if(t[e+1]){i.children=t[e+1];for(var o=e+1;o<t.length;o++)t[o]=void 0;t.length=e+1}return i}return function(n,i,r,a,s){var l=[],u=function(t){var e=0;return(0,g.foreachTree)(t,(function(t){e=b.max(e,t.length)})),e}(n)||1,c=new o.Deferred;return e(n,i,r,u,s).done((function(e){!function(e,n,i,o,r){var a,s,l=0,u=[0];(0,g.foreachTree)(n,(function(n){var c=n[0];for(s=c.isMetric?i:n.length-1;u.length-1<s;)u.push(u[u.length-1]);a=u[s]||0,l=t(e,{headerItem:c,index:a,lastIndex:l,depth:s,isHorizontal:o,isTree:r}),u.length=s,u.push(l)}))}(l,e,u,a,"tree"===s.layout),s.notifyProgress(1),c.resolve(l)})),c}}();function n(t,e){var n=[];return s.default.each(t,(function(t,i){var o=_.default.findField(e,i.sortBySummaryField);o>=0&&n.push((i.sortBySummaryPath||[]).concat([o]))})),n}function l(t,e){for(var n=0,i=[],o=0;o<t.length;o++)for(var r=0;r<t[o].length;r++){var a=o+((t[o][r].rowspan||1)-1);if(i[o]&&(n-=i[o],i[o]=0),!1===e(t[o][r],a,o,r,n))break;i[o+(t[o][r].rowspan||1)]=(i[o+(t[o][r].rowspan||1)]||0)+1,n++}}function v(t,e){var n=0,i=[];return(0,g.foreachTree)(t,(function(t){var o=t[0],a=(0,g.createPath)(t);if(!o.children||!1!==e.showTotals){var s=(0,r.extend)(!0,{},o,{visibleIndex:n++,path:a});(0,d.isDefined)(s.index)?i[s.index]=s:i.push(s)}})),i}function x(t,e,n){if(e&&"virtual"===e.option("scrolling.mode"))return new h.default.VirtualScrollController(e,(0,r.extend)({hasKnownLastPage:function(){return!0},pageCount:function(){return b.ceil(this.totalItemsCount()/this.pageSize())},updateLoading:function(){},itemsCount:function(){return this.pageIndex()<this.pageCount()-1?this.pageSize():this.totalItemsCount()%this.pageSize()},items:function(){return[]},viewportItems:function(){return[]},onChanged:function(){},isLoading:function(){return t.isLoading()},changingDuration:function(){return t._dataSource.paginate()?300:t._changingDuration||0}},n))}var C={ctor:function(t){var e=this,n=e._fireChanged.bind(e);t=e._options=t||{},e.dataSourceChanged=(0,i.default)(),e._dataSource=e._createDataSource(t),e._rowsScrollController=x(e,t.component,{totalItemsCount:function(){return e.totalRowCount()},pageIndex:function(t){return e.rowPageIndex(t)},pageSize:function(){return e.rowPageSize()},load:function(){return e._rowsScrollController.pageIndex()>=this.pageCount()&&e._rowsScrollController.pageIndex(this.pageCount()-1),e._rowsScrollController.handleDataChanged((function(){e._dataSource.paginate()?e._dataSource.load():n.apply(this,arguments)}))}}),e._columnsScrollController=x(e,t.component,{totalItemsCount:function(){return e.totalColumnCount()},pageIndex:function(t){return e.columnPageIndex(t)},pageSize:function(){return e.columnPageSize()},load:function(){return e._columnsScrollController.pageIndex()>=this.pageCount()&&e._columnsScrollController.pageIndex(this.pageCount()-1),e._columnsScrollController.handleDataChanged((function(){e._dataSource.paginate()?e._dataSource.load():n.apply(this,arguments)}))}}),e._stateStoringController=new p.default.StateStoringController(t.component).init(),e._columnsInfo=[],e._rowsInfo=[],e._cellsInfo=[],e.expandValueChanging=(0,i.default)(),e.loadingChanged=(0,i.default)(),e.progressChanged=(0,i.default)(),e.scrollChanged=(0,i.default)(),e.load(),e._update(),e.changed=(0,i.default)()},_fireChanged:function(){var t=new Date;this.changed&&!this._lockChanged&&this.changed.fire(),this._changingDuration=new Date-t},_correctSkipsTakes:function(t,e,n,i,o,r){var a=n?t+n-1:t;o[i.length]=o[i.length]||0,r[i.length]=r[i.length]||0,a<e?o[i.length]++:r[i.length]++},_calculatePagingForRowExpandedPaths:function(t,e,n,i,o){var r,a,s,l=this._rowsInfo,u=Math.min(t.rowSkip+t.rowTake,l.length),c=t.rowExpandedPaths,d=[],h={};for(c.forEach((function(t,e){h[t]=e})),r=0;r<u;r++){for(n.length=e.length=d.length+1,a=0;a<l[r].length;a++){var f=l[r][a];if("D"===f.type){this._correctSkipsTakes(r,t.rowSkip,f.rowspan,d,e,n);var p=(s=f.path||s)&&s.length>1?h[s.slice(0,-1)]:-1;p>=0&&(i[p]=e[d.length]||0,o[p]=n[d.length]||0),f.rowspan&&d.push(f.rowspan)}}d=d.map((function(t){return t-1})).filter((function(t){return t>0}))}},_calculatePagingForColumnExpandedPaths:function(t,e,n,i,o){var r={},a={};f.default.foreachColumnInfo(this._columnsInfo,(function(e,n){if("D"===e.type&&e.path&&void 0===e.dataIndex){var i=e.colspan||1,o=e.path.slice(0,-1).toString();r[o]=r[o]||0,a[o]=a[o]||0,n+i<=t.columnSkip?r[o]++:n<t.columnSkip+t.columnTake&&a[o]++}})),e[0]=r[[]],n[0]=a[[]],t.columnExpandedPaths.forEach((function(t,e){var n=r[t],s=a[t];void 0!==n&&(i[e]=n),void 0!==s&&(o[e]=s)}))},_processPagingForExpandedPaths:function(t,e,n,i){var o=t[e+"ExpandedPaths"],r=o.map((function(){return 0})),a=o.map((function(){return i?t.pageSize:0})),s=[],l=[];i||("row"===e?this._calculatePagingForRowExpandedPaths(t,s,l,r,a):this._calculatePagingForColumnExpandedPaths(t,s,l,r,a)),this._savePagingForExpandedPaths(t,e,n,s[0],l[0],r,a)},_savePagingForExpandedPaths:function(t,e,n,i,o,a,s){var l=t[e+"ExpandedPaths"];t[e+"ExpandedPaths"]=[],t[e+"Skip"]=void 0!==i?i:t[e+"Skip"],t[e+"Take"]=void 0!==o?o:t[e+"Take"];for(var u=0;u<l.length;u++)if(s[u]){var c,d=t.area&&t.area!==e;n.push((0,r.extend)({area:e,headerName:e+"s"},t,(y(c={},e+"Skip",a[u]),y(c,e+"Take",s[u]),y(c,d?"oppositePath":"path",l[u]),c)))}},_handleCustomizeStoreLoadOptions:function(t,e){var n=this,i=t[0],o=this._rowsScrollController;if(this._dataSource.paginate()&&o){var r=o._dataSource.pageSize();"rows"===i.headerName?(i.rowSkip=0,i.rowTake=r,i.rowExpandedPaths=[]):(i.rowSkip=o.beginPageIndex()*r,i.rowTake=(o.endPageIndex()-o.beginPageIndex()+1)*r,this._processPagingForExpandedPaths(i,"row",t,e))}var a=this._columnsScrollController;if(this._dataSource.paginate()&&a){var s=a._dataSource.pageSize();t.forEach((function(i,o){"columns"===i.headerName?(i.columnSkip=0,i.columnTake=s,i.columnExpandedPaths=[]):(i.columnSkip=a.beginPageIndex()*s,i.columnTake=(a.endPageIndex()-a.beginPageIndex()+1)*s,n._processPagingForExpandedPaths(i,"column",t,e))}))}},load:function(){var t=this,e=this._stateStoringController;e.isEnabled()&&!e.isLoaded()?e.load().always((function(e){e?t._dataSource.state(e):t._dataSource.load()})):t._dataSource.load()},calculateVirtualContentParams:function(t){var e=this._rowsScrollController,n=this._columnsScrollController;if(e&&n)return e.viewportItemSize(t.virtualRowHeight),e.viewportSize(t.viewportHeight/e.viewportItemSize()),e.setContentSize(t.itemHeights),n.viewportItemSize(t.virtualColumnWidth),n.viewportSize(t.viewportWidth/n.viewportItemSize()),n.setContentSize(t.itemWidths),c.default.deferUpdate((function(){n.loadIfNeed(),e.loadIfNeed()})),this.scrollChanged.fire({left:n.getViewportPosition(),top:e.getViewportPosition()}),{contentTop:e.getContentOffset(),contentLeft:n.getContentOffset(),width:n.getVirtualContentSize(),height:e.getVirtualContentSize()}},setViewportPosition:function(t,e){this._rowsScrollController.setViewportPosition(e||0),this._columnsScrollController.setViewportPosition(t||0)},subscribeToWindowScrollEvents:function(t){this._rowsScrollController&&this._rowsScrollController.subscribeToWindowScrollEvents(t)},updateWindowScrollPosition:function(t){this._rowsScrollController&&this._rowsScrollController.scrollTo(t)},updateViewOptions:function(t){(0,r.extend)(this._options,t),this._update()},_handleExpandValueChanging:function(t){this.expandValueChanging.fire(t)},_handleLoadingChanged:function(t){this.loadingChanged.fire(t)},_handleProgressChanged:function(t){this.progressChanged.fire(t)},_handleFieldsPrepared:function(t){this._options.onFieldsPrepared&&this._options.onFieldsPrepared(t)},_createDataSource:function(t){var e,n=this,i=t.dataSource;return n._isSharedDataSource=i instanceof m.default,e=n._isSharedDataSource?i:new m.default(i),n._expandValueChangingHandler=n._handleExpandValueChanging.bind(n),n._loadingChangedHandler=n._handleLoadingChanged.bind(n),n._fieldsPreparedHandler=n._handleFieldsPrepared.bind(n),n._customizeStoreLoadOptionsHandler=n._handleCustomizeStoreLoadOptions.bind(n),n._changedHandler=function(){n._update(),n.dataSourceChanged.fire()},n._progressChangedHandler=function(t){n._handleProgressChanged(.8*t)},e.on("changed",n._changedHandler),e.on("expandValueChanging",n._expandValueChangingHandler),e.on("loadingChanged",n._loadingChangedHandler),e.on("progressChanged",n._progressChangedHandler),e.on("fieldsPrepared",n._fieldsPreparedHandler),e.on("customizeStoreLoadOptions",n._customizeStoreLoadOptionsHandler),e},getDataSource:function(){return this._dataSource},isLoading:function(){return this._dataSource.isLoading()},beginLoading:function(){this._dataSource.beginLoading()},endLoading:function(){this._dataSource.endLoading()},_update:function(){var t=this,i=t._dataSource,r=t._options,a=i.getAreaFields("column"),l=i.getAreaFields("row"),u=i.getAreaFields("data"),c="row"===r.dataFieldArea?u:[],h="row"!==r.dataFieldArea?u:[],f=i.getData(),p=function(t){var e=[];return s.default.each(t,(function(t,n){!1===n.showTotals&&e.push(t)})),e}(u),m=function(t){var e=[];return t.forEach((function(t,n){(void 0===t.showValues&&!1===t.showTotals||!1===t.showValues)&&e.push(n)})),e}(u),g=function(t,e){var n=[];return s.default.each(t,(function(t,e){!1===e.showGrandTotals&&n.push(t)})),0===e.length&&n.length===t.length&&(n=[]),n}(u,a),_=!(u.length>0)||g.length!==u.length,y={isEmptyGrandTotal:f.isEmptyGrandTotalRow,texts:r.texts||{},hiddenTotals:p,hiddenValues:m,hiddenGrandTotals:[],showTotals:r.showRowTotals,showGrandTotals:!1!==r.showRowGrandTotals&&_,sortBySummaryPaths:n(a,u),showTotalsPrior:"rows"===r.showTotalsPrior||"both"===r.showTotalsPrior,showEmpty:!r.hideEmptySummaryCells,layout:r.rowHeaderLayout,fields:l,dataFields:u,progress:0},b={isEmptyGrandTotal:f.isEmptyGrandTotalColumn,texts:r.texts||{},hiddenTotals:p,hiddenValues:m,hiddenGrandTotals:g,showTotals:r.showColumnTotals,showTotalsPrior:"columns"===r.showTotalsPrior||"both"===r.showTotalsPrior,showGrandTotals:!1!==r.showColumnGrandTotals&&_,sortBySummaryPaths:n(l,u),showEmpty:!r.hideEmptySummaryCells,fields:a,dataFields:u,progress:0},w=function(e){this.progress=e,t._handleProgressChanged(.8+.1*y.progress+.1*b.progress)};y.notifyProgress=w,b.notifyProgress=w,(0,d.isDefined)(f.grandTotalRowIndex)||(f.grandTotalRowIndex=v(f.rows,y).length),(0,d.isDefined)(f.grandTotalColumnIndex)||(f.grandTotalColumnIndex=v(f.columns,b).length),i._changeLoadingCount(1),(0,o.when)(e(f.columns,a,h,!0,b),e(f.rows,l,c,!1,y)).always((function(){i._changeLoadingCount(-1)})).done((function(e,n){t._columnsInfo=e,t._rowsInfo=n,t._rowsScrollController&&t._columnsScrollController&&t.changed&&!t._dataSource.paginate()&&(t._rowsScrollController.reset(),t._columnsScrollController.reset(),t._lockChanged=!0,t._rowsScrollController.load(),t._columnsScrollController.load(),t._lockChanged=!1)})).done((function(){t._fireChanged(),t._stateStoringController.isEnabled()&&!t._dataSource.isLoading()&&(t._stateStoringController.state(t._dataSource.state()),t._stateStoringController.save())}))},getRowsInfo:function(t){var e,n=this._rowsInfo,i=this._rowsScrollController;if(i&&!t){var o=i.beginPageIndex()*this.rowPageSize(),a=i.endPageIndex()*this.rowPageSize()+this.rowPageSize(),s=[],u=1;return l(n,(function(t,n,i,l,c){var d=i<o?0:i-o,h=t;if(n>=o&&i<a)s[d]=s[d]||[],e=i<o?t.rowspan-(o-i)||1:t.rowspan,o+d+e>a&&(e=a-(d+o)||1),e!==t.rowspan&&(h=(0,r.extend)({},h,{rowspan:e})),s[d].push(h),u=b.max(u,c+1);else if(void 0>a)return!1})),l(s,(function(t,e,n,i,o){o+(t.colspan||1)>u&&(s[n][i]=(0,r.extend)({},t,{colspan:u-o||1}))})),s}return n},getColumnsInfo:function(t){var e=this._columnsInfo,n=this._columnsScrollController;if(n&&!t){var i=n.beginPageIndex()*this.columnPageSize(),o=n.endPageIndex()*this.columnPageSize()+this.columnPageSize();e=f.default.createColumnsInfo(e,i,o)}return e},totalRowCount:function(){return this._rowsInfo.length},rowPageIndex:function(t){return void 0!==t&&(this._rowPageIndex=t),this._rowPageIndex||0},totalColumnCount:function(){var t=0;if(this._columnsInfo&&this._columnsInfo.length)for(var e=0;e<this._columnsInfo[0].length;e++)t+=this._columnsInfo[0][e].colspan||1;return t},rowPageSize:function(t){return void 0!==t&&(this._rowPageSize=t),this._rowPageSize||20},columnPageSize:function(t){return void 0!==t&&(this._columnPageSize=t),this._columnPageSize||20},columnPageIndex:function(t){return void 0!==t&&(this._columnPageIndex=t),this._columnPageIndex||0},getCellsInfo:function(e){var n=this.getRowsInfo(e),i=this.getColumnsInfo(e),o=this._dataSource.getData(),r=this._options.texts||{};return function(e,n,i,o,r,a){var s=[],u="row"===r,c=i.values;return c.length&&l(e,(function(e,r){var l=s[r]=[],d=c[e.dataSourceIndex>=0?e.dataSourceIndex:i.grandTotalRowIndex]||[];e.isLast&&f.default.foreachColumnInfo(n,(function(n,r){var s=(u?e.dataIndex:n.dataIndex)||0,c=o[s];if(n.isLast&&c){var h=d[n.dataSourceIndex>=0?n.dataSourceIndex:i.grandTotalColumnIndex];Array.isArray(h)||(h=[h]);var f=h[s];l[r]={text:t(f,c,a),value:f,format:c.format,dataType:c.dataType,columnType:n.type,rowType:e.type,rowPath:e.path||[],columnPath:n.path||[],dataIndex:s},c.width&&(l[r].width=c.width)}}))})),s}(n,i,o,this._dataSource.getAreaFields("data"),this._options.dataFieldArea,r.dataNotAvailable)},dispose:function(){this._isSharedDataSource?(this._dataSource.off("changed",this._changedHandler),this._dataSource.off("expandValueChanging",this._expandValueChangingHandler),this._dataSource.off("loadingChanged",this._loadingChangedHandler),this._dataSource.off("progressChanged",this._progressChangedHandler),this._dataSource.off("fieldsPrepared",this._fieldsPreparedHandler),this._dataSource.off("customizeStoreLoadOptions",this._customizeStoreLoadOptionsHandler)):this._dataSource.dispose(),this._columnsScrollController&&this._columnsScrollController.dispose(),this._rowsScrollController&&this._rowsScrollController.dispose(),this._stateStoringController.dispose(),this.expandValueChanging.empty(),this.changed.empty(),this.loadingChanged.empty(),this.progressChanged.empty(),this.scrollChanged.empty(),this.dataSourceChanged.empty()}};return w(C,"applyPartialDataSource"),w(C,"collapseHeaderItem"),w(C,"expandHeaderItem"),w(C,"getData"),w(C,"isEmpty"),C}())},function(t,e,n){"use strict";var i=n(7),o=n(60),r=g(n(61)),a=n(67),s=n(92),l=g(n(191)),u=n(29),c=g(n(21)),d=n(4),h=n(2),f=n(5),p=n(95),m=g(n(107));function g(t){return t&&t.__esModule?t:{default:t}}e.LocalStore=c.default.inherit(function(){var t={year:function(t){return t&&t.getFullYear()},quarter:function(t){return t&&Math.floor(t.getMonth()/3)+1},month:function(t){return t&&t.getMonth()+1},day:function(t){return t&&t.getDate()},dayOfWeek:function(t){return t&&t.getDay()}};function e(t){return-1!==t.indexOf(".")?(0,u.compileGetter)(t):function(e){return e[t]}}function n(t){return function(e){var n=t(e);return!n||n instanceof Date||(n=(0,a.deserializeDate)(n)),n}}function c(i){(0,f.each)(i||[],(function(i,o){var r,a,s,l,u=o.dataField,d=o.levels;if(!o.selector){if(l=u?e(u):function(t){return t},d&&c(d),"date"===o.dataType){a=t[o.groupInterval];var f=n(l);r=function(t){var e=f(t);return a?a(e):e}}else"number"===o.dataType?(s=(0,h.isNumeric)(o.groupInterval)&&o.groupInterval>0&&o.groupInterval,r=function(t){var e=l(t);return(0,h.isString)(e)&&(e=Number(e)),s?Math.floor(e/s)*s:e}):r=l;(0,p.setDefaultFieldValueFormatting)(o),(0,p.setFieldProperty)(o,"selector",r)}}))}function g(t,e,n,i){var o=[0],r=e.headerName===i?e.path.length:0,a="rows"===i?e.rowExpandedPaths:e.columnExpandedPaths;return function t(e,n,i,o,r){var a,s,l=n.dimensions[o],u=n.expandedPathsHash;l&&(s=function(t,e,n,i){var o=i[n];return o||(o={value:t,index:i.length++},i[n]=o,e.push(o)),o}(a=l.selector(n.data),i,r=void 0!==r?r+"/./"+a:a+"",n.childrenHash),e.push(s.index),(u&&u[r]||l.expanded)&&(s.children||(s.children=[]),t(e,n,s.children,o+1,r)))}(o,{data:t,childrenHash:n[i+"Hash"],dimensions:e[i],expandedPathsHash:e.headerName!==i&&a&&a.hash},n[i],r),o}function _(t,e,n,i){var o,r,a,s,l=[],u=g(t,i,n,"rows"),c=g(t,i,n,"columns");for(r=0;r<u.length;r++)for(e[a=u[r]]=e[a]||[],o=0;o<c.length;o++)s=c[o],l.push(e[a][s]=e[a][s]||[]);return l}function v(t){if(t){var e=t.hash={};t.forEach((function(t){var n=t.map((function(t){return t+""})).join("/./");e[n]=!0}))}}function y(t){t.rows=t.rows||[],t.columns=t.columns||[],t.filters=t.filters||[],v(t.columnExpandedPaths),v(t.rowExpandedPaths),c(t.columns),c(t.rows),c(t.values),c(t.filters)}function b(t){return"custom"===t.summaryType?(t.calculateCustomSummary=t.calculateCustomSummary||d.noop,{seed:function(){var e={summaryProcess:"start",totalValue:void 0};return t.calculateCustomSummary(e),e},step:function(e,n){return e.summaryProcess="calculate",e.value=n,t.calculateCustomSummary(e),e},finalize:function(e){return e.summaryProcess="finalize",delete e.value,t.calculateCustomSummary(e),e.totalValue}}):o.aggregators[t.summaryType]||o.aggregators.count}function w(t,e,n){for(var i=0;i<t.length;i++)for(var o=t[i],r=o.selector(n),a=b(o),s="function"===typeof a.seed,l=0;l<e.length;l++){var u=e[l];u.length<=i&&(u[i]=s?a.seed():a.seed),void 0===u[i]?u[i]=r:(0,h.isDefined)(r)&&(u[i]=a.step(u[i],r))}}function x(t,e){var n=t&&t.valueOf(),i=e&&e.valueOf();if(Array.isArray(t)){e=e||[];for(var o=0;o<t.length;o++)if((n=t[o]&&t[o].valueOf())!==(i=e[o]&&e[o].valueOf()))return!1;return!0}return n===i}function C(t){var e=[];return(0,f.each)(t,(function(t,n){var i=n.filterValues||[];if(!n.groupName||!(0,h.isNumeric)(n.groupIndex)){i.length&&e.push((function(t){for(var e=n.levels?function(t,e){var n=[];return(0,f.each)(t,(function(t,i){n.push(i.selector(e))})),n}(n.levels,t):n.selector(t),o=!1,r=0;r<i.length;r++)if(x(i[r],e)){o=!0;break}return"exclude"===n.filterType?!o:o}))}})),e}function S(t){var e=C(t.rows).concat(C(t.columns)).concat(C(t.filters)),n=t[t.headerName],i=t.path;return n&&e.push((function(t){for(var e,o=0;o<i.length;o++)if(e=n[o].selector(t),(0,u.toComparable)(e,!0)!==(0,u.toComparable)(i[o],!0))return!1;return!0})),function(t){for(var n=0;n<e.length;n++)if(!e[n](t))return!1;return!0}}function k(t,e,n){var o,r,a={columns:[],rows:[],columnsHash:{length:1},rowsHash:{length:1}},s=[],l=new i.Deferred,u=0,c=S(e);return function i(){for(var d,h,p=new Date,m=u;u<t.length;u++){if(u>m&&u%1e4===0&&new Date-p>=300)return n(u/t.length),void setTimeout(i,0);r=t[u],c(r)&&(o=_(r,s,a,e),w(e.values,o,r))}d=e.values,h=s,(0,f.each)(d,(function(t,e){var n=b(e);n.finalize&&(0,f.each)(h,(function(e,i){(0,f.each)(i,(function(e,i){i&&void 0!==i[t]&&(i[t]=n.finalize(i[t]))}))}))})),n(1),l.resolve({rows:a.rows,columns:a.columns,values:s,grandTotalRowIndex:0,grandTotalColumnIndex:0})}(),l}function I(t,e){var n=t.filter();return t.store()instanceof l.default&&n?(n=M(n,e),(0,r.default)(t.items()).filter(n).toArray()):t.items()}function T(t,e,n){var o=new i.Deferred,r=function(n){t.store()instanceof m.default&&(n.storeLoadOptions.filter=M(n.storeLoadOptions.filter,e))};if(t.on("customizeStoreLoadOptions",r),!t.isLoaded()||n){var a=n?t.load():t.reload();(0,i.when)(a).done((function(){T(t,e).done((function(){o.resolve(I(t,e))})).fail(o.reject)})).fail(o.reject)}else o.resolve(I(t,e));return o.always((function(){t.off("customizeStoreLoadOptions",r)}))}function E(t,i){i.forEach((function(i){if(i.dataField&&"date"===i.dataType){var o=n(e(i.dataField));t[i.dataField]=function(t){return o(t)}}}))}function O(t){var e={};return Array.isArray(t)?E(e,t):t&&["rows","columns","filters"].forEach((function(n){t[n]&&E(e,t[n])})),e}function M(t,e){if(!Array.isArray(t))return t;t=t.slice(0),(0,h.isString)(t[0])&&(t[1]instanceof Date||t[2]instanceof Date)&&(t[0]=e[t[0]]);for(var n=0;n<t.length;n++)t[n]=M(t[n],e);return t}return{ctor:function(t){this._progressChanged=t.onProgressChanged||d.noop,this._dataSource=new s.DataSource(t),this._dataSource.paginate(!1)},getFields:function(t){var e=this._dataSource,n=new i.Deferred;return T(e,O(t)).done((function(e){n.resolve((0,p.discoverObjectFields)(e,t))})).fail(n.reject),n},key:function(){return this._dataSource.key()},load:function(t){var e=this,n=e._dataSource,o=new i.Deferred;return y(t),T(n,O(t),t.reload).done((function(n){(0,i.when)(k(n,t,e._progressChanged)).done(o.resolve)})).fail(o.reject),o},filter:function(){var t=this._dataSource;return t.filter.apply(t,arguments)},supportPaging:function(){return!1},getDrillDownItems:function(t,e){e=e||{},y(t=t||{});for(var n,i=[],o=this._dataSource.items(),r=e.maxRowCount,a=e.customColumns,s=S(t),l=S({rows:(0,p.getFiltersByPath)(t.rows,e.rowPath),columns:(0,p.getFiltersByPath)(t.columns,e.columnPath),filters:[]}),u=0;u<o.length;u++){if(l(o[u])&&s(o[u])){if(a){n={};for(var c=0;c<a.length;c++)n[a[c]]=o[u][a[c]]}else n=o[u];i.push(n)}if(r>0&&i.length===r)break}return i}}}()).include(p.storeDrillDownMixin)},function(t,e,n){"use strict";var i,o=n(2),r=n(21),a=(i=r)&&i.__esModule?i:{default:i},s=n(0),l=n(5),u=n(92),c=n(7),d=n(95),h=n(67);function f(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function m(t,e){var n=[];return(0,l.each)(t,(function(i,o){n.push({selector:o.dataField,groupInterval:o.groupInterval,desc:e&&"desc"===o.sortOrder,isExpanded:i<t.length-1})})),n}function g(t,e,n,i){return[[t,i?"<":">=",n],i?"or":"and",[t,i?">=":"<",n+e]]}function _(t,e){var n=function(t){var e=t.dataField,n=t.groupInterval;return"date"===t.dataType&&"string"===typeof n&&("quarter"===n.toLowerCase()&&(n="Month"),e=e+"."+(0,d.capitalizeFirstLetter)(n)),e}(t),i="exclude"===t.filterType,r=[n,i?"<>":"=",e];return(0,o.isDefined)(t.groupInterval)&&("string"===typeof t.groupInterval&&"quarter"===t.groupInterval.toLowerCase()?r=g(n,3,3*(e-1)+1,i):"number"===typeof t.groupInterval&&"date"!==t.dataType&&(r=g(n,t.groupInterval,e,i))),r}function v(t){var e=[];return(0,l.each)(t,(function(t,n){var i=function t(e,n){var i=[];return e.searchValue?[e.dataField,"contains",e.searchValue]:(n="exclude"===e.filterType?n||"and":n||"or",(0,l.each)(e.filterValues,(function(o,r){var a=[];Array.isArray(r)?e.levels&&e.levels.length&&(a=t({filterValues:r,filterType:e.filterType,levels:e.levels},"and")):a=_(e.levels?e.levels[o]:e,r);a.length&&(i.length&&i.push(n),i.push(a))})),i)}(n);if(!i.length)return[];e.length&&e.push("and"),e.push(i)})),1===e.length&&(e=e[0]),e}function y(t,e){var n=function(t){return t&&t.length};return n(t)&&n(e)?[t,"and",e]:n(t)?t:e}function b(t,e,n,i,r){t[n]=t[n]||[],t[n][i]=t[n][i]||[],(0,o.isDefined)(t[n][i][r])||(t[n][i][r]=e)}function w(t,e){return e&&"number"===e.dataType&&(0,o.isString)(t)?Number(t):!e||"date"!==e.dataType||e.groupInterval||t instanceof Date?t:(0,h.deserializeDate)(t)}function x(t,e,n,i){var o=[],r=[],a=i.rowHash,s=i.columnHash;if(e&&e.summary&&(0,l.each)(e.summary,(function(t,e){b(i.values,e,i.grandTotalRowIndex,i.grandTotalColumnIndex,t)})),e&&e.groupCount>=0){var u=n.rows.length?n.rowSkip:n.columnSkip;(t=f(Array(u)).concat(t)).length=e.groupCount}function c(t,e,n,o,r){var a,s,l,u=i[e+"Hash"],c=n.slice(0,o+1).join("/");return void 0!==u[c]?s=u[c]:(s={value:w(t.key,r),index:i[e+"Index"]++},l=n.slice(0,o).join("/"),(o>0&&void 0!==u[l]?(a=u[l]).children=a.children||[]:i[e+"s"]).push(s),u[c]=s),s}return function t(e,n,i){e=e||[],i=i||0;for(var o=0;o<e.length;o++){var r=e[o];n(r,i),r&&r.items&&r.items.length&&t(r.items,n,i+1)}}(t,(function(t,e){var u,d,h=e>=n.rows.length?n.rows.length:e,f=e>=n.rows.length?e-n.rows.length:0;if(!(e>=n.rows.length&&f>=n.columns.length)){e<n.rows.length&&(r=[]),e>=n.rows.length?t?(r[f]=t.key+"",u=c(t,"column",r,f,n.columns[f]),d=a[o.slice(0,h+1).join("/")]):i.columns.push({}):t?(o[h]=t.key+"",d=c(t,"row",o,h,n.rows[h]),u=s[r.slice(0,f+1).join("/")]):i.rows.push({});var p=d&&d.index||i.grandTotalRowIndex,m=u&&u.index||i.grandTotalColumnIndex;(0,l.each)(t&&t.summary||[],(function(t,e){b(i.values,e,p,m,t)}))}})),i}function C(t){return(t||[]).filter((function(t){return t.filterValues&&t.filterValues.length||t.searchValue}))}function S(t,e){if(t.headerName){if(e===t.headerName)return t.path.length;if(t.oppositePath)return t.oppositePath.length}return 0}function k(t,e,n,i){var o=[],r=n>i?0:i,a=t.headerName!==e?t[e].slice(r,n):[],u="rows"===e?t.rowExpandedPaths:t.columnExpandedPaths;return(0,l.each)(a,(function(t,e){var i=[];(0,l.each)(u,(function(e,o){o=o.slice(r,n),t<o.length&&i.push(o[t])})),i.length&&o.push((0,s.extend)({},e,{filterType:"include",filterValues:i}))})),o}function I(t,e,n,i,o,r){var a,l=("columns"===e?t.columnExpandedPaths:t.rowExpandedPaths)||[],u="columns"===e?"rows":"columns",c=t[e],d=[];if(l.length)for(var h=n;h<i+1;h++)(a={filters:o.concat(k(t,e,h,r))})[e]=c.slice(n,h+1),a[u]=[],d.push((0,s.extend)({},t,a));else(a={filters:o})[e]=c.slice(n,i+1),a[u]=[],d.push((0,s.extend)({},t,a));return d[0].includeTotalSummary=!0,d}function T(t){var e=0;return(0,l.each)(t,(function(t,n){if(!n.expanded)return e=t,!1})),e}function E(t){var e=(0,d.getExpandedLevel)(t,"rows"),n=(0,d.getExpandedLevel)(t,"columns"),i=t.filters||[],o=S(t,"columns"),r=T(t.columns),a=T(t.rows),l=S(t,"rows"),u=[],c=I(t,"columns",o,n,i=i.concat(C(t.rows)).concat(C(t.columns)).concat(function(t){return(0,d.getFiltersByPath)(t[t.headerName],t.path).concat((0,d.getFiltersByPath)(t["rows"===t.headerName?"columns":"rows"],t.oppositePath||[]))}(t)),r);if(t.rows.length&&t.columns.length){"rows"!==t.headerName&&(u=u.concat(c));for(var h=l;h<e+1;h++)for(var f=t.rows.slice(l,h+1),p=k(t,"rows",h,a),m=o;m<n+1;m++){var g=(0,s.extend)({},t,{columns:t.columns.slice(o,m+1),rows:f,filters:i.concat(k(t,"columns",m,r)).concat(p)});u.push(g)}}else u=t.columns.length?c:I(t,"rows",l,e,i,a);return u}function O(t){(0,l.each)(t||[],(function(t,e){var n=e.levels;n&&O(n),(0,d.setDefaultFieldValueFormatting)(e)}))}t.exports=a.default.inherit({ctor:function(t){this._dataSource=new u.DataSource(t),this._store=this._dataSource.store()},getFields:function(t){var e=new c.Deferred;return this._store.load({skip:0,take:20}).done((function(n){e.resolve((0,d.discoverObjectFields)(n,t))})).fail(e.reject),e},key:function(){return this._store.key()},load:function(t){var e=this,n=new c.Deferred,i={rows:[],columns:[],values:[[[]]],grandTotalRowIndex:0,grandTotalColumnIndex:0,rowHash:{},columnHash:{},rowIndex:1,columnIndex:1},o=E(t),r=[];return O(t.rows),O(t.columns),O(t.filters),(0,l.each)(o,(function(n,i){r.push(e._store.load(function(t,e,n){var i=v(t.filters),o=m(t.rows,t.rowTake).concat(m(t.columns,t.columnTake)),r={groupSummary:[],totalSummary:[],group:o.length?o:void 0,take:o.length?void 0:1};return t.rows.length&&t.rowTake?(r.skip=t.rowSkip,r.take=t.rowTake,r.requireGroupCount=!0):t.columns.length&&t.columnTake&&!n&&(r.skip=t.columnSkip,r.take=t.columnTake,r.requireGroupCount=!0),e&&(i=y(i,e)),i.length&&(r.filter=i),(0,l.each)(t.values,(function(e,n){var i={selector:n.dataField,summaryType:n.summaryType||"count"};r.groupSummary.push(i),t.includeTotalSummary&&r.totalSummary.push(i)})),r}(i,e.filter(),t.rows.length)))})),c.when.apply(null,r).done((function(){var t=r.length>1?arguments:[arguments];(0,l.each)(t,(function(t,e){x(e[0],e[1],o[t],i)})),n.resolve({rows:i.rows,columns:i.columns,values:i.values,grandTotalRowIndex:i.grandTotalRowIndex,grandTotalColumnIndex:i.grandTotalColumnIndex})})).fail(n.reject),n},filter:function(){return this._dataSource.filter.apply(this._dataSource,arguments)},supportPaging:function(){return!1},createDrillDownDataSource:function(t,e){t=t||{},e=e||{};var n=this._store,i=v((0,d.getFiltersByPath)(t.rows,e.rowPath).concat((0,d.getFiltersByPath)(t.columns,e.columnPath)).concat(C(t.rows)).concat(t.filters||[]).concat(C(t.columns)));return new u.DataSource({load:function(t){return n.load((0,s.extend)({},t,{filter:y(i,t.filter),select:e.customColumns}))}})}})},function(t,e,n){"use strict";var i=g(n(3)),o=n(10),r=g(n(21)),a=n(55),s=n(78),l=n(4),u=n(0),c=n(2),d=n(5),h=n(16),f=n(95),p=n(7),m=n(391);function g(t){return t&&t.__esModule?t:{default:t}}function _(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"===typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var y=(0,o.getWindow)();e.XmlaStore=r.default.inherit(function(){var t='<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Discover xmlns="urn:schemas-microsoft-com:xml-analysis"><RequestType>{2}</RequestType><Restrictions><RestrictionList><CATALOG_NAME>{0}</CATALOG_NAME><CUBE_NAME>{1}</CUBE_NAME></RestrictionList></Restrictions><Properties><PropertyList><Catalog>{0}</Catalog>{3}</PropertyList></Properties></Discover></Body></Envelope>',e="SELECT {2} FROM {0} {1} CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS";function n(t,e){var n=new p.Deferred,i=t.beforeSend,o={url:t.url,dataType:"text",data:e,headers:{"Content-Type":"text/xml"},xhrFields:{},method:"POST"};return(0,c.isFunction)(i)&&i(o),(0,f.sendRequest)(o).fail((function(){n.reject(arguments)})).done((function(t){var e,i=new y.DOMParser;try{try{e=i.parseFromString(t,"text/xml")}catch(o){e=void 0}if(!e||e.getElementsByTagName("parsererror").length||0===e.childNodes.length)throw new s.errors.Error("E4023",t)}catch(o){n.reject({statusText:o.message,stack:o.stack,responseText:t})}n.resolve(e)})),n}function o(){var t=(0,m.getLanguageId)();return void 0!==t?(0,a.format)("<LocaleIdentifier>{0}</LocaleIdentifier>",t):""}function r(t){return(t.hierarchyName||t.dataField)+".[All]"}function g(t){var e=t.dataField+".allMembers",n=t.searchValue;return n&&(n=n.replace(/'/g,"''"),e="Filter("+e+", instr("+t.dataField+".currentmember.member_caption,'"+n+"') > 0)"),e}function v(t){var e=t.join(",");return t.length>1?(0,a.format)("CrossJoin({0})",e):e}function b(t,e,n,i,o,s,l,u){for(var c,d,h,f,p=[],m=s[l],_=[],y=i;y<=e;y++){var b=m[y],w=b.dataField,x=m[y-1]&&m[y-1].hierarchyName,C=b.hierarchyName,S=!C||!m[y+1]||m[y+1].hierarchyName!==C,k=t.length+n+i;if(c=null,_.push(b),y<t.length)S&&(c="("+w+"."+B(t[y],w)+")");else if(y<=k)if(0===y&&0===n){var I=r(m[i]);c=C?I+","+m[i].dataField:g(m[i])}else C?(h=B(o[o.length-1]),(S||y===k)&&(x===C?(o.length&&(d=m[o.length-1]),d&&d.hierarchyName===C||(d=m[y-1],h=""),f=d.dataField,c="Descendants({"+(h||f)+"}, "+w+", SELF_AND_BEFORE)"):c=g(b))):c=g(b);else(!C||x!==C)&&(c="("+r(b)+")");if(c){if(c=(0,a.format)("{{0}}",c),u){var T=(b.hierarchyName||b.dataField)+("displayText"===b.sortBy?".MEMBER_CAPTION":".MEMBER_VALUE");c=(0,a.format)("Order({0}, {1}, {2})",c,T,"desc"===b.sortOrder?"DESC":"ASC")}p.push(c)}}return v(p)}function w(t,e,n,i,o,r,s,l,u,c){var d,h=-1,f=r[s];do{h++,d=e.length+h+i;var p=b(e,n,h,i,o,r,s,u);u||c||(p=(0,a.format)("NonEmpty({0}, {1})",p,l)),t.push(p)}while(f[d]&&f[d+1]&&f[d].expanded)}function x(t,e,n,i){return n=n||"[DX_Set_"+e.length+"]",i=i||"set",e.push((0,a.format)("{0} {1} as {2}",i,n,t)),n}function C(t,e,n,i,o){var r=t[e],s=[],l=[],u=[],c=0,h=0,p=[],m=(0,a.format)("{{0}}",n.join(","));if(r&&r.length){t.headerName===e?(l=t.path,c=l.length):t.headerName&&t.oppositePath?(l=t.oppositePath,c=l.length):u=("columns"===e?t.columnExpandedPaths:t.rowExpandedPaths)||u,h=(0,f.getExpandedLevel)(t,e),w(s,[],h,c,l,t,e,m,"rows"===e?t.rowTake:t.columnTake,t.totalsOnly),(0,d.each)(u,(function(n,i){w(s,i,h,c,i,t,e,m)}));for(var g=h;g>=l.length;g--)r[g].hierarchyName&&(o.visibleLevels[r[g].hierarchyName]=o.visibleLevels[r[g].hierarchyName]||[],o.visibleLevels[r[g].hierarchyName].push(r[g].dataField))}if(s.length){var _=function(t){var e=t.join(",");return t.length>1?"Union("+e+")":e}(s);"rows"===e&&t.rowTake&&(_=(0,a.format)("Subset({0}, {1}, {2})",_,t.rowSkip>0?t.rowSkip+1:0,t.rowSkip>0?t.rowTake:t.rowTake+1)),"columns"===e&&t.columnTake&&(_=(0,a.format)("Subset({0}, {1}, {2})",_,t.columnSkip>0?t.columnSkip+1:0,t.columnSkip>0?t.columnTake:t.columnTake+1));var y="[DX_".concat(e,"]");p.push(x(_,i,y)),t.totalsOnly&&p.push(x("COUNT(".concat(y,")"),i,"[DX_".concat(e,"_count]"),"member"))}return"columns"===e&&n.length&&!t.skipValues&&p.push(m),(0,a.format)("{0} DIMENSION PROPERTIES PARENT_UNIQUE_NAME,HIERARCHY_UNIQUE_NAME, MEMBER_VALUE ON {1}",v(p),e)}function S(t){var e=[];return(0,d.each)(t,(function(t,n){var i,o=n.dataField,r=[],s=n.filterValues||[];n.hierarchyName&&(0,c.isNumeric)(n.groupIndex)||((0,d.each)(s,(function(t,e){var i=o+"."+B(Array.isArray(e)?e[e.length-1]:e,o);"exclude"===n.filterType&&(r.push(i+".parent"),i="Descendants("+i+")"),r.push(i)})),s.length&&(i=(0,a.format)("{{0}}",r.join(",")),"exclude"===n.filterType&&(i="Except("+g(n)+","+i+")"),e.push(i)))})),e.length?v(e):""}function k(t,e,n,i){var o="["+i+"]";return(0,d.each)([t,e,n],(function(t,e){e&&(o=(0,a.format)("(SELECT {0} FROM {1})",e+"on 0",o))})),o}function I(t,n,i,o,r,s,l){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},c="",d=(n.length?"with "+n.join(" "):"")+" ";if(t.length){var h;if(u.totalsOnly){var f=[];o.length&&f.push("[DX_rows_count]"),i.length&&f.push("[DX_columns_count]"),h="{".concat(f.join(","),"} on columns")}else h=t.join(",");c=d+(0,a.format)(e,k(S(i),S(o),S(r||[]),l),s.length?(0,a.format)("WHERE ({0})",s.join(",")):"",h)}return c}function T(t,e){return(0,d.map)(e,(function(e){return(0,c.isString)(e.expression)&&x(e.expression,t,e.dataField,"member"),e.dataField}))}function E(t,e,n,i){(0,d.each)(i,(function(i,o){var r=e[n][i];r.hierarchyName&&r.hierarchyName===e[n][i+1].hierarchyName||t.push(r.dataField+"."+B(o,r.dataField))}))}function O(t,e,n){var i=t.columns||[],o=t.rows||[],r=t.values&&t.values.length?t.values:[{dataField:"[Measures]"}],a=[],s=[],l=[],u=T(s,r);return n.measureCount=t.skipValues?1:r.length,n.visibleLevels={},t.headerName&&t.path&&E(a,t,t.headerName,t.path),t.headerName&&t.oppositePath&&E(a,t,"rows"===t.headerName?"columns":"rows",t.oppositePath),(i.length||u.length)&&l.push(C(t,"columns",u,s,n)),o.length&&l.push(C(t,"rows",u,s,n)),I(l,s,i,o,t.filters,a,e,t)}function M(t,e,n){(0,d.each)(n,(function(n,i){var o=e[n];o.hierarchyName&&(e[n+1]||{}).hierarchyName===o.hierarchyName||t.push(o.dataField+"."+B(i,o.dataField))}))}function P(t){return parseInt(t,10)}function D(t,e){return A(function(t,e){return(t.getElementsByTagName(e)||[])[0]}(t,e))}function A(t){return t&&t&&(t.textContent||t.text||t.innerHTML)||""}function R(t,e,n){for(var i=[],o=[],r=0,a=[],l=t.getElementsByTagName("Cell"),u={},c=0;c<l.length;c++){var h=l[c],f=h.getElementsByTagName("Value")[0],p=f&&f.getElementsByTagName("Error")||[],m=0===p.length?A(f):"#N/A",g=parseFloat(m),_=m-g+1>0,v=P(h.getAttribute("CellOrdinal"));p.length&&(u[A(p[0].getElementsByTagName("ErrorCode")[0])]=A(p[0].getElementsByTagName("Description")[0])),a[v]={value:_?g:m||null}}return(0,d.each)(e[1],(function(){var t=[];i.push(t),(0,d.each)(e[0],(function(){0===r%n&&(o=[],t.push(o)),o.push(a[r]?a[r].value:null),r++}))})),Object.keys(u).forEach((function(t){s.errors.log("W4002",u[t])})),i}function B(t,e){return t&&(t=(0,c.isString)(t)&&-1!==t.indexOf("&")?t:"["+t+"]",e&&0===t.indexOf(e+".")&&(t=t.slice(e.length+1,t.length))),t}function N(t,e,n,i){var o=t[e];return o||(o={},t[e]=o),!(0,c.isDefined)(o.value)&&n&&(o.text=n.caption,o.value=n.value,o.key=e||"",o.levelName=n.levelName,o.hierarchyName=n.hierarchyName,o.parentName=n.parentName,o.index=i,o.level=n.level),o}function L(t,e){var n=[],i=t.children&&(t.children.length?t.children:Object.keys(t.children.grandTotalHash||{}).reduce((function(e,n){return e.concat(t.children.grandTotalHash[n].children)}),[])),o=i&&i[0];if(o&&(e[o.hierarchyName]&&-1!==(0,h.inArray)(o.levelName,e[o.hierarchyName])||!e[o.hierarchyName]||0===o.level)){var r=i.filter((function(t){return t.hierarchyName===o.hierarchyName}));return r.grandTotalHash=i.grandTotalHash,r}if(o)for(var a=0;a<i.length;a++)i[a].hierarchyName===o.hierarchyName&&n.push.apply(n,L(i[a],e));return n}function F(t,e,n,i){var o=[];(0,d.each)(e,(function(t,e){var i={children:o},r=(0,c.isDefined)(n)?Math.floor(t/n):t;(0,d.each)(e,(function(t,e){i=function(t,e,n){var i=n.children=n.children||[],o=i.hash=i.hash||{},r=i.grandTotalHash=i.grandTotalHash||{};e.parentName&&(i=(n=N(o,e.parentName)).children=n.children||[]);var a=N(o,e.name,e,t);return e.hasValue&&!a.added&&(a.index=t,a.added=!0,i.push(a)),n.value&&n.parentName||!e.parentName?r[n.name]&&delete r[e.parentName]:r[e.parentName]=n,a}(r,e,i)}))}));var r={children:o};r.children=L(r,i);var a=function(t,e){var n;if(1===t.children.length&&""===t.children[0].parentName){n=t.children[0].index;var i=t.children.grandTotalHash;t.children=t.children[0].children||[],t.children.grandTotalHash=i,t.children=L(t,e)}else 0===t.children.length&&(n=0);return n}(r,i);return(0,f.foreachTree)(r.children,(function(t){var e=t[0],n=L(e,i);n.length?e.children=n:delete e.children,delete e.levelName,delete e.hierarchyName,delete e.added,delete e.parentName,delete e.level}),!0),(0,d.each)(r.children||[],(function(e,n){t.push(n)})),a}function V(t){var e=t.getElementsByTagName("soap:Fault"),n=t.getElementsByTagName("Fault"),o=(0,i.default)([].slice.call(n.length?n:e)).find("Error");if(o.length){var r=o.attr("Description"),a=new s.errors.Error("E4000",r);return s.errors.log("E4000",r),a}return null}function z(t,e){var n={columns:[],rows:[]},i=e.measureCount,o=function(t,e){var n=[];for((0,d.each)(t.getElementsByTagName("Axis"),(function(t,i){var o=i.getAttribute("name"),r=[],a=0;0===o.indexOf("Axis")&&(0,c.isNumeric)(P(o.substr(4)))&&(n.push(r),(0,d.each)(i.getElementsByTagName("Tuple"),(function(t,i){var o,s=i.childNodes,l=0,u=[],d=e?s.length:s.length-1;1===n.length&&d--,r.push(u);for(var h=d;h>=0;h--){var f=s[h],p=P(D(f,"LNum"));u[h]={caption:D(f,"Caption"),value:(o=D(f,"MEMBER_VALUE"),(0,c.isNumeric)(o)?parseFloat(o):o),level:p,index:a++,hasValue:!l&&(!!p||0===h),name:D(f,"UName"),hierarchyName:s[h].getAttribute("Hierarchy"),parentName:D(f,"PARENT_UNIQUE_NAME"),levelName:D(f,"LName")},l+=p}})))}));n.length<2;)n.push([[{level:0}]]);return n}(t,e.skipValues);return n.grandTotalColumnIndex=F(n.columns,o[0],i,e.visibleLevels),n.grandTotalRowIndex=F(n.rows,o[1],void 0,e.visibleLevels),n.values=R(t,o,i),n}function j(t,e,n,i){var o=[],r="MEASURE"===e,a=r?"MEASUREGROUP_NAME":e+"_DISPLAY_FOLDER";return(0,d.each)(t.getElementsByTagName("row"),(function(t,s){var l="LEVEL"===e?D(s,"HIERARCHY_UNIQUE_NAME"):void 0,u=D(s,"LEVEL_NUMBER"),c=D(s,a);if(r&&(c=i[c]||c),("0"!==u||"true"!==D(s,e+"_IS_VISIBLE"))&&"2"!==D(s,"DIMENSION_TYPE")){var d=r?"DX_MEASURES":D(s,"DIMENSION_UNIQUE_NAME"),h=D(s,e+"_UNIQUE_NAME");o.push({dimension:n.names[d]||d,groupIndex:u?P(u)-1:void 0,dataField:h,caption:D(s,e+"_CAPTION"),hierarchyName:l,groupName:l,displayFolder:c,isMeasure:r,isDefault:!!n.defaultHierarchies[h]})}})),o}function H(t){var e=(t=t.replace(/_x(....)_/g,(function(t,e){return String.fromCharCode(parseInt(e,16))}))).match(/\[.+?\]/gi);return e&&e.length&&(t=e[e.length-1]),t.replace(/\[/gi,"").replace(/\]/gi,"").replace(/\$/gi,"").replace(/\./gi," ")}function W(t,e){return e=(0,i.default)("<div>").text(e).html(),n(t,(0,a.format)('<Envelope xmlns="http://schemas.xmlsoap.org/soap/envelope/"><Body><Execute xmlns="urn:schemas-microsoft-com:xml-analysis"><Command><Statement>{0}</Statement></Command><Properties><PropertyList><Catalog>{1}</Catalog><ShowHiddenCubes>True</ShowHiddenCubes><SspropInitAppName>Microsoft SQL Server Management Studio</SspropInitAppName><Timeout>3600</Timeout>{2}</PropertyList></Properties></Execute></Body></Envelope>',e,t.catalog,o()))}return{ctor:function(t){this._options=t},getFields:function(){var e=this._options,r=e.catalog,s=e.cube,l=o(),u=n(e,(0,a.format)(t,r,s,"MDSCHEMA_DIMENSIONS",l)),c=n(e,(0,a.format)(t,r,s,"MDSCHEMA_MEASURES",l)),h=n(e,(0,a.format)(t,r,s,"MDSCHEMA_HIERARCHIES",l)),f=n(e,(0,a.format)(t,r,s,"MDSCHEMA_LEVELS",l)),m=new p.Deferred;return(0,p.when)(u,c,h,f).then((function(o,u,c,h){n(e,(0,a.format)(t,r,s,"MDSCHEMA_MEASUREGROUPS",l)).done((function(t){var e=function(t){var e={names:{},defaultHierarchies:{}};return(0,d.each)((0,i.default)(t).find("row"),(function(){var t=(0,i.default)(this),n="2"===t.children("DIMENSION_TYPE").text()?"DX_MEASURES":t.children("DIMENSION_UNIQUE_NAME").text();e.names[n]=t.children("DIMENSION_CAPTION").text(),e.defaultHierarchies[t.children("DEFAULT_HIERARCHY").text()]=!0})),e}(o),n=j(c,"HIERARCHY",e),r=j(h,"LEVEL",e),a=function(t){var e={};return(0,d.each)(t.getElementsByTagName("row"),(function(t,n){e[D(n,"MEASUREGROUP_NAME")]=D(n,"MEASUREGROUP_CAPTION")})),e}(t),s=j(u,"MEASURE",e,a).concat(n),l={};(0,d.each)(r,(function(t,e){l[e.hierarchyName]=l[e.hierarchyName]||[],l[e.hierarchyName].push(e)})),(0,d.each)(n,(function(t,e){l[e.dataField]&&l[e.dataField].length>1&&(e.groupName=e.hierarchyName=e.dataField,s.push.apply(s,l[e.hierarchyName]))})),m.resolve(s)})).fail(m.reject)})).fail(m.reject),m},load:function(t){var e,n=new p.Deferred,i=this._options,o={skipValues:t.skipValues},r=O(t,i.cube,o);(t.rowSkip||t.rowTake||t.columnTake||t.columnSkip)&&(e=O((0,u.extend)({},t,{totalsOnly:!0,rowSkip:null,rowTake:null,columnSkip:null,columnTake:null}),i.cube,{}));var a=function(){r?(0,p.when)(W(i,r),e&&W(i,e)).done((function(e,i){var r=V(e)||i&&V(i);if(r)n.reject(r);else{var a=z(e,o);i&&function(t,e,n){var i=[],o=e.columns||[],r=e.rows||[];o.length&&i.push({}),r.length&&i.push({});var a=R(n,[[{}],[{},{}]],1);if(!o.length&&r.length&&(t.rowCount=Math.max(a[0][0][0]-1,0)),!r.length&&o.length&&(t.columnCount=Math.max(a[0][0][0]-1,0)),r.length&&o.length&&(t.rowCount=Math.max(a[0][0][0]-1,0),t.columnCount=Math.max(a[1][0][0]-1,0)),void 0!==t.rowCount&&e.rowTake){t.rows=_(Array(e.rowSkip)).concat(t.rows),t.rows.length=t.rowCount;for(var s=0;s<t.rows.length;s++)t.rows[s]=t.rows[s]||{}}if(void 0!==t.columnCount&&e.columnTake){t.columns=_(Array(e.columnSkip)).concat(t.columns),t.columns.length=t.columnCount;for(var l=0;l<t.columns.length;l++)t.columns[l]=t.columns[l]||{}}}(a,t,i),n.resolve(a)}})).fail(n.reject):n.resolve({columns:[],rows:[],values:[],grandTotalColumnIndex:0,grandTotalRowIndex:0})};return t.delay?setTimeout(a,t.delay):a(),n},supportPaging:function(){return!0},getDrillDownItems:function(t,e){var n=new p.Deferred,i=this._options,o=function(t,e,n){var i=t.columns||[],o=t.rows||[],r=[],a=[],s=[],l=T(a,t.values&&t.values.length?t.values:[{dataField:"[Measures]"}]),u=n.maxRowCount,c=n.customColumns||[],d=c.length>0?" return "+c.join(","):"";M(r,i,n.columnPath||[]),M(r,o,n.rowPath||[]),(i.length||i.length||l.length)&&s.push([(l[n.dataIndex]||l[0])+" on 0"]);var h=I(s,a,i,o,t.filters,r,e);return h?"drillthrough"+(u>0?" maxrows "+u:"")+h+d:h}(t,i.cube,e);return o?(0,p.when)(W(i,o)).done((function(t){var e=V(t);e?n.reject(e):n.resolve(function(t){for(var e=t.getElementsByTagName("row"),n=[],i={},o=0;o<e.length;o++){for(var r=e[o].childNodes,a={},s=0;s<r.length;s++){var l=r[s].tagName;a[i[l]=i[l]||H(l)]=A(r[s])}n.push(a)}return n}(t))})).fail(n.reject):n.resolve([]),n},key:l.noop,filter:l.noop}}()).include(f.storeDrillDownMixin)},function(t,e,n){"use strict";var i=n(2),o=n(0),r=n(16),a=n(95),s="row",l=function(t,e){var n=t/e;return(0,i.isDefined)(t)&&!isNaN(n)||(n=null),n},u=function(t,e){return l(t.value(),t.grandTotal(e).value())},c=function(t,e){var n=t.parent(e),i=n?n.value():t.value();return l(t.value(),i)},d=function(t){return function(e){var n=e.prev("column",t),o=n&&n.value();return(0,i.isDefined)(o)&&(0,i.isDefined)(e.value())?e.value()-o:null}},h={percentOfColumnTotal:function(t){return c(t,s)},percentOfRowTotal:function(t){return c(t,"column")},percentOfColumnGrandTotal:function(t){return u(t,s)},percentOfRowGrandTotal:function(t){return u(t,"column")},percentOfGrandTotal:function(t){return u(t)}},f=function(t){if(t.runningTotal){var e="column"===t.runningTotal?s:"column";return function(n){var o=t.allowCrossGroupCalculation?function t(e,n){if(e&&e.parent(n)){var i=e.prev(n);return i||(i=t(e.parent(n),n)),i}}(n,e):n.prev(e,!1),r=n.value(!0),a=o&&o.value(!0);return(0,i.isDefined)(a)&&(0,i.isDefined)(r)?r=a+r:(0,i.isDefined)(a)&&(r=a),r}}};function p(t,e,n){var o={index:-1};if(!(0,i.isObject)(e))if(n.fields[e])e=n[e];else{var s=t.columns.concat(t.rows).concat(t.values),l=(0,a.findField)(s,e);e=n[e]=s[l]}if(e){var u=e.area||"data";o=n.positions[e.index]=n.positions[e.index]||{area:u,index:(0,r.inArray)(e,t["data"===u?"values":u+"s"])}}return o}function m(t){return t===s?"_rowPath":"_columnPath"}var g=function(t,e,n,i,o,r){this._columnPath=t,this._rowPath=e,this._fieldIndex=o,this._fieldsCache=r||{fields:{},positions:{}},this._data=n,this._descriptions=i;var a=n.values&&n.values[e[0].index]&&n.values[e[0].index][t[0].index];a&&(a.originalCell=a.originalCell||a.slice(),a.postProcessedFlags=a.postProcessedFlags||[],this._cell=a)};function _(t){var e=t.summaryDisplayMode,n=t.allowCrossGroupCalculation,o=null;return(0,i.isFunction)(t.calculateSummaryValue)?o=t.calculateSummaryValue:e&&(o="absoluteVariation"===e?d(n):"percentVariation"===e?function(t){var e=d(t);return function(n){var i=e(n),o=n.prev("column",t),r=o&&o.value();return null!==i&&r?i/r:null}}(n):h[e])&&!t.format&&-1!==e.indexOf("percent")&&(0,a.setFieldProperty)(t,"format","percent"),o}function v(t,e,n,i){var o=t.values[e][n]=t.values[e][n]||[],r=o.originalCell;r&&(!o.allowResetting&&i||(t.values[e][n]=r.slice()),t.values[e][n].allowResetting=i)}g.prototype=(0,o.extend)(g.prototype,{_getPath:function(t){return this[m(t)]},_getDimension:function(t){return t=t===s?"rows":"columns",this._descriptions[t]},_createCell:function(t){return new g(t._columnPath||this._columnPath,t._rowPath||this._rowPath,this._data,this._descriptions,this._fieldIndex)},parent:function(t){var e=this._getPath(t).slice(),n={};return e.shift(),e.length?(n[m(t)]=e,this._createCell(n)):null},children:function(t){var e=this._getPath(t).slice(),n=e[0],i=[],o={};if(n.children)for(var r=0;r<n.children.length;r++)o[m(t)]=[n.children[r]].concat(e.slice()),i.push(this._createCell(o));return i},grandTotal:function(t){var e={},n=this._rowPath,i=this._columnPath,o=this._getPath(t),r=m(t);return t?e[r]=[o[o.length-1]]:(e._rowPath=[n[n.length-1]],e._columnPath=[i[i.length-1]]),this._createCell(e)},next:function(t,e){var n,i=this._getPath(t),o=i[0],a=this.parent(t);if(a){var s=(0,r.inArray)(o,i[1].children);if((n=a.children(t))[s+1])return n[s+1]}if(e&&a){do{n=(a=a.next(t,e))?a.children(t):[]}while(a&&!n.length);return n[0]||null}return null},prev:function(t,e){var n,i=this._getPath(t),o=i[0],a=this.parent(t);if(a){var s=(0,r.inArray)(o,i[1].children);if((n=a.children(t))[s-1])return n[s-1]}if(e&&a){do{n=(a=a.prev(t,e))?a.children(t):[]}while(a&&!n.length);return n[n.length-1]||null}return null},cell:function(){return this._cell},field:function(t){if("data"===t)return this._descriptions.values[this._fieldIndex];var e=this._getPath(t),n=this._getDimension(t)[e.length-2];return n||null},child:function(t,e){for(var n=this.children(t),i=0;i<n.length;i++){var o=o||n[i].field(t);if(n[i].value(o)===e)return n[i]}return null},slice:function(t,e){var n={},i=p(this._descriptions,t,this._fieldsCache),o=i.area,r=i.index,a=null;if(o===s||"column"===o){var l=this._getPath(o).slice(),u=-1!==r&&l.length-2-r;if(l[u]){[][l.length-1]=l[l.length-1];for(var c=u;c>=0;c--){if(l[c+1]){var d=l[c+1].children||[],h=c===u?e:l[c].value;l[c]=void 0;for(var f=0;f<d.length;f++)if(d[f].value===h){l[c]=d[f];break}}if(void 0===l[c])return a}n[m(o)]=l,a=this._createCell(n)}}return a},value:function(t,e){var n=this._cell,o=this._fieldIndex,r=!0===t||!1===t,a=r?null:t,s=r&&t||e;if((0,i.isDefined)(a)){var l=p(this._descriptions,a,this._fieldsCache);if(o=l.index,"data"!==l.area){var u=this._getPath(l.area),c=-1!==o&&u.length-2-o;return u[c]&&u[c].value}}return n&&n.originalCell?s?n[o]:n.originalCell[o]:null},isPostProcessed:function(t){var e=this._fieldIndex;if((0,i.isDefined)(t)){var n=p(this._descriptions,t,this._fieldsCache);if(e=n.index,"data"!==n.area)return!1}return!(!this._cell||!this._cell.postProcessedFlags[e])}}),e.applyDisplaySummaryMode=function(t,e){var n=[],i=[{index:e.grandTotalColumnIndex,children:e.columns}],o=[{index:e.grandTotalRowIndex,children:e.rows}],r=t.values,s={fields:{},positions:{}};e.values=e.values||[],(0,a.foreachTree)(o,(function(o){var l=o[0];l.isEmpty=[],e.values[l.index]=e.values[l.index]||[],(0,a.foreachTree)(i,(function(i){var a,u=i[0];u.isEmpty=u.isEmpty||[],v(e,l.index,u.index,!1);for(var c=0;c<r.length;c++){var d=r[c],h=n[c]=void 0===n[c]?_(d):n[c];if(a=!1,h){var f=new g(i,o,e,t,c,s),p=f.cell(),m=p[c]=h(f);p.postProcessedFlags[c]=!0,a=null===m||void 0===m}void 0===u.isEmpty[c]&&(u.isEmpty[c]=!0),void 0===l.isEmpty[c]&&(l.isEmpty[c]=!0),a||(l.isEmpty[c]=u.isEmpty[c]=!1)}}),!1)}),!1),e.isEmptyGrandTotalRow=o[0].isEmpty,e.isEmptyGrandTotalColumn=i[0].isEmpty},e.applyRunningTotal=function(t,e){var n=[],i=[{index:e.grandTotalColumnIndex,children:e.columns}],o=[{index:e.grandTotalRowIndex,children:e.rows}],r=t.values,s={fields:{},positions:{}};e.values=e.values||[],(0,a.foreachTree)(o,(function(o){var l=o[0];e.values[l.index]=e.values[l.index]||[],(0,a.foreachTree)(i,(function(i){var a=i[0];v(e,l.index,a.index,!0);for(var u=0;u<r.length;u++){var c=r[u],d=n[u]=void 0===n[u]?f(c):n[u];if(d){var h=new g(i,o,e,t,u,s),p=h.cell();p[u]=d(h),p.postProcessedFlags[u]=!0}}}),!1)}),!1)},e.createMockSummaryCell=function(t,e,n){var o=new g([],[],{},t,0);return o.value=function(o){if((0,i.isDefined)(o)){var r=(0,a.findField)(e,o),s=e[r];n[r]||!s||(0,i.isDefined)(s.area)||(t.values.push(s),n[r]=!0)}},o.grandTotal=function(){return this},o.children=function(){return[]},o}},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(307);e.DataArea=a.AreaItem.inherit({_getAreaName:function(){return"data"},_createGroupElement:function(){return(0,r.default)("<div>").addClass("dx-pivotgrid-area").addClass("dx-pivotgrid-area-data")},_applyCustomStyles:function(t){var e=t.cell,n=t.classArray;"T"!==e.rowType&&"T"!==e.columnType||n.push("dx-total"),"GT"!==e.rowType&&"GT"!==e.columnType||n.push("dx-grandtotal"),"T"!==e.rowType&&"GT"!==e.rowType||n.push("dx-row-total"),t.rowIndex===t.rowsCount-1&&t.cssArray.push("border-bottom: 0px"),this.callBase(t)},_moveFakeTable:function(t){this._moveFakeTableHorizontally(t.x),this._moveFakeTableTop(t.y),this.callBase()},processScroll:function(t,e,n){var i="both";e&&!n?i="horizontal":!e&&n&&(i="vertical"),this._groupElement.css("borderTopWidth",0).dxScrollable({useNative:!!t,useSimulatedScrollbar:!t,direction:i,bounceEnabled:!1,updateManually:!0})},reset:function(){this.callBase(),this._virtualContent&&this._virtualContent.parent().css("height","auto")},setVirtualContentParams:function(t){this.callBase(t),this._virtualContent.parent().css("height",t.height),this._setTableCss({top:t.top,left:t.left})}})},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(2),s=n(16),l=n(5),u=n(307);function c(t,e){if(e){var n=t.data().data,i=e.parentNode.rowIndex,o=e.cellIndex;return n[i]&&n[i][o]&&n[i][o].path}}e.HorizontalHeadersArea=u.AreaItem.inherit({_getAreaName:function(){return"column"},_getAreaClassName:function(){return"dx-pivotgrid-horizontal-headers"},_createGroupElement:function(){return(0,r.default)("<div>").addClass(this._getAreaClassName()).addClass("dx-pivotgrid-area")},_applyCustomStyles:function(t){var e=t.cssArray,n=t.cell,i=t.rowsCount,o=t.classArray;t.cellIndex===t.cellsCount-1&&e.push((t.rtlEnabled?"border-left:":"border-right:")+"0px"),n.rowspan!==i-t.rowIndex&&t.rowIndex+1!==i||e.push("border-bottom-width:0px"),"T"!==n.type&&"GT"!==n.type||o.push("dx-row-total"),"T"===t.cell.type&&o.push("dx-total"),"GT"===t.cell.type&&o.push("dx-grandtotal"),(0,a.isDefined)(n.expanded)&&o.push(n.expanded?"dx-pivotgrid-expanded":"dx-pivotgrid-collapsed"),this.callBase(t)},_getMainElementMarkup:function(){return"<thead class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</thead>"},setVirtualContentParams:function(t){this.callBase(t),this._setTableCss({left:t.left,top:0}),this._virtualContentWidth=t.width},hasScroll:function(){var t=this._virtualContent?this._virtualContentWidth:this._tableWidth;return!(!this._groupWidth||!t)&&t-this._groupWidth>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"horizontal",updateManually:!0})},processScrollBarSpacing:function(t){var e=this.option("rtlEnabled")?"right":"left";this._groupWidth&&this.groupWidth(this._groupWidth-t),this._scrollBarWidth&&this._groupElement.next().remove(),this._groupElement.toggleClass("dx-vertical-scroll",t>0),this._groupElement.css("float",e).width(this._groupHeight),this._scrollBarWidth=t},ctor:function(t){this.callBase(t),this._scrollBarWidth=0},getScrollPath:function(t){var e,n=this.tableElement();return t-=parseInt(n[0].style.left,10)||0,(0,l.each)(n.find("td"),(function(n,i){if(1===i.colSpan&&i.offsetLeft<=t&&i.offsetWidth+i.offsetLeft>t)return e=i,!1})),c(n,e)},_moveFakeTable:function(t){this._moveFakeTableHorizontally(t),this.callBase()}}),e.VerticalHeadersArea=e.HorizontalHeadersArea.inherit({_getAreaClassName:function(){return"dx-pivotgrid-vertical-headers"},_applyCustomStyles:function(t){this.callBase(t),t.cellIndex===t.cellsCount-1&&t.classArray.push("dx-last-cell"),t.rowIndex===t.rowsCount-1&&t.cssArray.push("border-bottom: 0px"),t.cell.isWhiteSpace&&t.classArray.push("dx-white-space-column")},_getAreaName:function(){return"row"},setVirtualContentParams:function(t){this.callBase(t),this._setTableCss({top:t.top,left:0}),this._virtualContentHeight=t.height},hasScroll:function(){var t=this._virtualContent?this._virtualContentHeight:this._tableHeight;return!(!this._groupHeight||!t)&&t-this._groupHeight>=1},processScroll:function(){this._getScrollable()||this._groupElement.dxScrollable({useNative:!1,useSimulatedScrollbar:!1,showScrollbar:!1,bounceEnabled:!1,direction:"vertical",updateManually:!0})},processScrollBarSpacing:function(t){this._groupHeight&&this.groupHeight(this._groupHeight-t),this._scrollBarWidth&&this._groupElement.next().remove(),t&&this._groupElement.after((0,r.default)("<div>").width("100%").height(t-1)),this._scrollBarWidth=t},getScrollPath:function(t){var e,n=this.tableElement();return t-=parseInt(n[0].style.top,10)||0,(0,l.each)(n.find("tr"),(function(n,i){var o=i.childNodes[i.childNodes.length-1];if(o&&1===o.rowSpan&&o.offsetTop<=t&&o.offsetHeight+o.offsetTop>t)return e=o,!1})),c(n,e)},_moveFakeTable:function(t){this._moveFakeTableTop(t),this.callBase()},_getRowClassNames:function(t,e,n){0!==t&e.expanded&&-1===(0,s.inArray)("dx-expand-border",n)&&n.push("dx-expand-border")},_getMainElementMarkup:function(){return"<tbody class='"+this._getAreaClassName()+"'>"},_getCloseMainElementMarkup:function(){return"</tbody>"},updateColspans:function(t){var e=this.tableElement()[0].rows,n=0,i=[];if(!(this.getColumnsCount()-t>0))for(var o=0;o<e.length;o++)for(var r=0;r<e[o].cells.length;r++){var a=e[o].cells[r],s=a.rowSpan;i[o]&&(n-=i[o],i[o]=0);var l=t-(n+a.colSpan);r===e[o].cells.length-1&&l>0&&(a.colSpan=a.colSpan+l),i[o+s]=(i[o+s]||0)+a.colSpan,n+=a.colSpan}}})},function(t,e,n){"use strict";var i=c(n(3)),o=n(4),r=n(5),a=n(307),s=n(95),l=c(n(48)),u=c(n(42));function c(t){return t&&t.__esModule?t:{default:t}}n(308);var d="<div>";e.FieldsArea=a.AreaItem.inherit({ctor:function(t,e){this.callBase(t),this._area=e},_getAreaName:function(){return"fields"},_createGroupElement:function(){return(0,i.default)(d).addClass("dx-pivotgrid-fields-area").addClass("dx-area-fields").addClass("dx-pivotgrid-drag-action").attr("group",this._area)},isVisible:function(){return!!this.option("fieldPanel.visible")&&this.option("fieldPanel.show"+(0,s.capitalizeFirstLetter)(this._area)+"Fields")},_renderButton:function(t){var e=this,n=(0,i.default)("<td>").appendTo((0,i.default)("<tr>").appendTo(t));e.component._createComponent((0,i.default)(d).appendTo(n),u.default,{text:"Fields",icon:"menu",width:"auto",onClick:function(){var t=e.tableElement().find(".dx-fields-area-popup").dxPopup("instance");t.option("visible")||t.show()}}).$element().addClass("dx-pivotgrid-fields-area-hamburger")},_getPopupOptions:function(t,e){return{contentTemplate:function(){return(0,i.default)("<table>").addClass("dx-area-field-container").append((0,i.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").append(t))},height:"auto",width:"auto",position:{at:"left",my:"left",of:e},dragEnabled:!1,animation:{show:{type:"pop",duration:200}},shading:!1,showTitle:!1,closeOnOutsideClick:!0,container:e.parent()}},_renderPopup:function(t,e){var n=t.find(".dx-button"),o=this._getPopupOptions(e,n),r=this.component.$element().dxPivotGridFieldChooserBase("instance");this._rowPopup&&this._rowPopup.$element().remove(),this._rowPopup=this.component._createComponent((0,i.default)(d).appendTo(t),l.default,o),this._rowPopup.$element().addClass("dx-fields-area-popup"),this._rowPopup.content().addClass("dx-pivotgrid-fields-container"),this._rowPopup.content().parent().attr("group","row"),r.subscribeToEvents(this._rowPopup.content()),r.renderSortable(this._rowPopup.content())},_shouldCreateButton:function(){return!1},_renderTableContent:function(t,e){var n=this,o=this.groupElement(),a=this.isVisible(),s=n.component.$element().dxPivotGridFieldChooserBase("instance"),l=(0,i.default)("<thead>").addClass("dx-pivotgrid-fields-area-head").appendTo(t),u=n._area,c=(0,i.default)("<tr>");o.toggleClass("dx-hidden",!a),t.addClass("dx-area-field-container"),a&&((0,r.each)(e,(function(t,o){if(o.area===u&&!1!==o.visible){var r=(0,i.default)("<td>").append(s.renderField(o,"row"===o.area)),a=r.find(".dx-column-indicators");a.length&&n._shouldCreateButton()&&a.insertAfter(a.next()),r.appendTo(c),function(t,e,n,o){n&&n.groupName&&n.groupName===t.groupName&&(0,i.default)(d).addClass("dx-group-connector").addClass("dx-group-connector-prev").appendTo(o),e&&e.groupName&&e.groupName===t.groupName&&(0,i.default)(d).addClass("dx-group-connector").addClass("dx-group-connector-next").appendTo(o)}(o,e[t+1],e[t-1],r)}})),c.children().length||(0,i.default)("<td>").append((0,i.default)(d).addClass("dx-empty-area-text").text(this.option("fieldPanel.texts."+u+"FieldArea"))).appendTo(c),n._shouldCreateButton()?(n._renderButton(l),n._renderPopup(t,c)):l.append(c))},reset:function(){this.callBase(),this.groupElement().css("marginTop",0)},_renderVirtualContent:o.noop})},function(t,e,n){"use strict";var i=f(n(3)),o=f(n(6)),r=n(2),a=n(0),s=n(5),l=n(11),u=f(n(8)),c=f(n(97)),d=f(n(101)),h=n(194);function f(t){return t&&t.__esModule?t:{default:t}}function p(t,e){var n;return(0,s.each)(e,(function(){(function(t,e,n){var o=(0,i.default)(t),r=o.offset();if(e>=r.left&&e<=r.left+o.outerWidth(!0)&&n>=r.top&&n<=r.top+o.outerHeight(!0))return!0})(this,t.pageX,t.pageY)&&(n=(0,i.default)(this))})),n}var m=c.default.inherit({_getDefaultOptions:function(){return(0,a.extend)(this.callBase(),{onChanged:null,onDragging:null,itemRender:null,groupSelector:null,itemSelector:".dx-sort-item",itemContainerSelector:".dx-sortable-old",sourceClass:"dx-drag-source",dragClass:"dx-drag",targetClass:"dx-drag-target",direction:"vertical",allowDragging:!0,groupFilter:null,useIndicator:!1})},_renderItem:function(t,e){var n,i=this.option("itemRender");return i?n=i(t,e):(n=t.clone()).css({width:t.width(),height:t.height()}),n},_renderIndicator:function(t,e,n,i){var o=t.outerHeight(!0),r=t.outerWidth(!0),a=t.offset().top-n.offset().top,s=t.offset().left-n.offset().left;this._indicator.css({position:"absolute",top:i&&e?a+o:a,left:i&&!e?s+r:s}).toggleClass("dx-position-indicator-horizontal",!e).toggleClass("dx-position-indicator-vertical",!!e).toggleClass("dx-position-indicator-last",!!i).height("").width("").appendTo(n),e?this._indicator.width(r):this._indicator.height(o)},_renderDraggable:function(t){this._$draggable&&this._$draggable.remove(),this._$draggable=this._renderItem(t,"drag").addClass(this.option("dragClass")).appendTo((0,h.getSwatchContainer)(t)).css({zIndex:1e6,position:"absolute"})},_detachEventHandlers:function(){var t=[d.default.move,d.default.start,d.default.end,d.default.enter,d.default.leave,d.default.drop].join(" ");o.default.off(this._getEventListener(),(0,l.addNamespace)(t,"dxSortable"))},_getItemOffset:function(t,e,n){for(var i=0;i<e.length;i++){var o=void 0,a=n.pageY<e[i].posVertical;if(t?o=a:a&&(s=n.pageX,l=e[i],u=this.option("rtlEnabled"),!(o=!(0,r.isDefined)(l.posHorizontal)||(u?s>l.posHorizontal:s<l.posHorizontal))&&e[i+1]&&e[i+1].posVertical>e[i].posVertical&&(o=!0)),o)return e[i]}var s,l,u},_getEventListener:function(){var t=this.option("groupSelector"),e=this.$element();return t?e.find(t):e},_attachEventHandlers:function(){var t,e,n,r,a,u,c,h=this,f=h.option("itemSelector"),m=h.option("itemContainerSelector"),g=h.option("groupSelector"),_=h.option("sourceClass"),v=h.option("targetClass"),y=h.option("onDragging"),b=h.option("groupFilter"),w=h.$element(),x=null,C=-1,S=function(){x&&x.dispose(),x=null};if(h._detachEventHandlers(),h.option("allowDragging")){var k=h._getEventListener();o.default.on(k,(0,l.addNamespace)(d.default.start,"dxSortable"),f,(function(o){var r=(t=(0,i.default)(o.currentTarget)).closest(g);u=r.attr("group"),e=function(t,e){var n=-1,o=e.get(0);return(0,s.each)(t,(function(e,r){var a=(0,i.default)(r);if(a.attr("item-group")&&a.attr("item-group")===t.eq(e-1).attr("item-group")||n++,r===o)return!1})),n===t.length?-1:n}((g?r:w).find(f),t),t.attr("item-group")&&(t=r.find("[item-group='"+t.attr("item-group")+"']")),h._renderDraggable(t),n=h._renderItem(t,"target").addClass(v),t.addClass(_),a=[],(0,s.each)(t,(function(t,e){a.push((0,i.default)(e).offset())})),c=g?b?(0,i.default)(g).filter(b):w.find(g):w,h._indicator=(0,i.default)("<div>").addClass("dx-position-indicator")})),o.default.on(k,(0,l.addNamespace)(d.default.move,"dxSortable"),(function(o){var l,d,g;if(t)if(C=-1,h._indicator.detach(),(0,s.each)(h._$draggable,(function(t,e){(0,i.default)(e).css({top:a[t].top+o.offset.y,left:a[t].left+o.offset.x})})),r&&r.removeClass(v),(r=p(o,c))&&function(){var i={sourceGroup:u,sourceIndex:e,sourceElement:t,targetGroup:r.attr("group"),targetIndex:r.find(f).index(n)};y&&y(i),i.cancel&&(r=void 0)}(),r&&x&&r.get(0)!==x.element().get(0)&&S(),x&&x.moveIfNeed(o),r){!x&&r.attr("allow-scrolling")&&(x=function(t){var e=null,n=t.scrollTop(),i=t.$element(),o=i.offset().top,r=i.height(),a=0;function s(t){n=t.scrollOffset.top}function l(){u(),t.scrollTo(n+=a),e=setTimeout(l,10)}function u(){clearTimeout(e)}return t.on("scroll",s),{moveIfNeed:function(t){if(t.pageY<=o+20)a=-2;else{if(!(t.pageY>=o+r-20))return a=0,void u();a=2}l()},element:function(){return i},dispose:function(){u(),t.off("scroll",s)}}}(r.dxScrollable("instance"))),r.addClass(v);var b=r.find(m),w=b.find(f),k=r.closest(".dx-sortable-old").data("dxSortableOld"),I=k.option("useIndicator"),T="vertical"===(k||h).option("direction"),E=function(t,e,n){for(var i=[],o=[],r=0;r<t.length;r+=o.length)if((o=t.eq(r)).attr("item-group")&&(o=n.find("[item-group='"+o.attr("item-group")+"']")),o.is(":visible")){var a={item:o,index:i.length,posHorizontal:e?void 0:(o.last().outerWidth(!0)+o.last().offset().left+o.offset().left)/2};a.posVertical=e?(o.last().offset().top+o.offset().top+o.last().outerHeight(!0))/2:o.last().outerHeight(!0)+o.last().offset().top,i.push(a)}return i}(w,T,b),O=h._getItemOffset(T,E,o);if(O){if(l=O.item,g=E[O.index-1]&&E[O.index-1].item,l.hasClass(_)||g&&g.hasClass(_)&&g.is(":visible"))return void n.detach();if(C=O.index,!I)return void n.insertBefore(l);var M=r.attr("group")!==u,P=C===e,D=C===e+1;if(M)return void h._renderIndicator(l,T,r,h.option("rtlEnabled")&&!T);P||D||h._renderIndicator(l,T,r,h.option("rtlEnabled")&&!T)}else{if((d=w.last()).is(":visible")&&d.hasClass(_))return;b.length&&(C=E.length?E[E.length-1].index+1:0),I?w.length&&h._renderIndicator(d,T,r,!h.option("rtlEnabled")||T):n.appendTo(b)}}else n.detach()})),o.default.on(k,(0,l.addNamespace)(d.default.end,"dxSortable"),(function(){if(S(),t){var i=h.option("onChanged"),o={sourceIndex:e,sourceElement:t,sourceGroup:u,targetIndex:C,removeSourceElement:!0,removeTargetElement:!1,removeSourceClass:!0};r&&(r.removeClass(v),o.targetGroup=r.attr("group"),(u!==o.targetGroup||C>-1)&&(i&&i(o),o.removeSourceElement&&t.remove())),h._indicator.detach(),o.removeSourceClass&&t.removeClass(_),t=null,h._$draggable.remove(),h._$draggable=null,o.removeTargetElement&&n.remove(),n.removeClass(v),n=null}}))}},_init:function(){this.callBase(),this._attachEventHandlers()},_render:function(){this.callBase(),this.$element().addClass("dx-sortable-old")},_dispose:function(){var t=this;t.callBase.apply(t,arguments),t._$draggable&&t._$draggable.detach(),t._indicator&&t._indicator.detach()},_optionChanged:function(t){switch(t.name){case"onDragging":case"onChanged":case"itemRender":case"groupSelector":case"itemSelector":case"itemContainerSelector":case"sourceClass":case"targetClass":case"dragClass":case"allowDragging":case"groupFilter":case"useIndicator":this._attachEventHandlers();break;case"direction":break;default:this.callBase(t)}},_useTemplates:function(){return!1}});(0,u.default)("dxSortableOld",m),t.exports=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PivotGridExport=void 0;var i=p(n(21)),o=n(2),r=n(0),a=n(5),s=n(10),l=n(94),u=n(74),c=n(278),d=p(c),h=p(n(471)),f=n(7);function p(t){return t&&t.__esModule?t:{default:t}}function m(t){if(t&&t.customizeText)return"string";if(t.dataType)return t.dataType;if(t.format){if(1===(0,u.parse)((0,l.format)(1,t.format)))return"number";if((0,l.format)(new Date,t.format))return"date"}return"string"}e.ExportMixin=(0,r.extend)({},h.default,{exportToExcel:function(){d.default.export(this.getDataProvider(),{fileName:this.option("export.fileName"),proxyUrl:this.option("export.proxyUrl"),format:"EXCEL",rtlEnabled:this.option("rtlEnabled"),ignoreErrors:this.option("export.ignoreExcelErrors"),exportingAction:this._actions.onExporting,exportedAction:this._actions.onExported,fileSavingAction:this._actions.onFileSaving},c.excel.getData)},_getLength:function(t){var e,n=t[0].length,i=0;for(e=0;e<n;e++)i+=t[0][e].colspan||1;return i},_correctCellsInfoItemLengths:function(t,e){for(var n=0;n<t.length;n++)for(;t[n].length<e;)t[n].push({});return t},_calculateCellInfoItemLength:function(t){for(var e=0,n=0;n<t.length;n++)e+=(0,o.isDefined)(t[n].colspan)?t[n].colspan:1;return e},_getAllItems:function(t,e,n){var i,a,s=n,l=this._getLength(e),u=t.length;if(t.length>0&&t[0].length>0&&n.length>0&&0===n[0].length){var c=this._calculateCellInfoItemLength(t[0]);c>0&&(s=this._correctCellsInfoItemLengths(n,c))}var d=t.concat(s);for(a=0;a<e.length;a++)for(i=e[a].length-1;i>=0;i--)(0,o.isDefined)(d[a+u])||(d[a+u]=[]),d[a+u].splice(0,0,(0,r.extend)({},e[a][i]));return d[0].splice(0,0,(0,r.extend)({},this._getEmptyCell(),{alignment:this._options.rtlEnabled?"right":"left",colspan:l,rowspan:u})),this._prepareItems(d)},getDataProvider:function(){var t=this,n=this._dataController,i=new f.Deferred;return n.beginLoading(),setTimeout((function(){var e=(0,r.extend)(!0,[],n.getColumnsInfo(!0)),o=(0,r.extend)(!0,[],n.getRowsInfo(!0)),a=n.getCellsInfo(!0);i.resolve(t._getAllItems(e,o,a)),n.endLoading()})),new e.DataProvider({items:i,rtlEnabled:this.option("rtlEnabled"),dataFields:this.getDataSource().getAreaFields("data"),customizeExcelCell:this.option("export.customizeExcelCell"),rowsArea:this._rowsArea,columnsArea:this._columnsArea})}}),e.DataProvider=i.default.inherit({ctor:function(t){this._options=t,this._styles=[]},ready:function(){var t=this,e=t._options,n=e.dataFields;return(0,f.when)(e.items).done((function(i){var o=i[i[0][0].rowspan-1],s={alignment:e.rtlEnabled?"left":"right"};t._styles=[{alignment:"center",dataType:"string"},{alignment:e.rtlEnabled?"right":"left",dataType:"string"}],n.length?n.forEach((function(e){t._styles.push((0,r.extend)({},s,{format:e.format,dataType:m(e)}))})):t._styles.push(s),(0,a.each)(o,(function(t,e){e.width=100})),e.columns=o,e.items=i}))},getColumns:function(){return this._options.columns},getColumnsWidths:function(){var t=this._options.columnsArea,e=this._options.rowsArea,n=this._options.columns;return!(0,s.hasWindow)()||"virtual"===t.option("scrolling.mode")||t.element().is(":hidden")?n.map((function(t){return 100})):e.getColumnsWidth().concat(t.getColumnsWidth())},getRowsCount:function(){return this._options.items.length},getGroupLevel:function(){return 0},getCellMerging:function(t,e){var n=this._options.items,i=n[t]&&n[t][e];return i?{colspan:i.colspan-1,rowspan:i.rowspan-1}:{colspan:0,rowspan:0}},getFrozenArea:function(){var t=this._options.items;return{x:t[0][0].colspan,y:t[0][0].rowspan}},getCellType:function(t,e){var n=this._styles[this.getStyleId(t,e)];return n&&n.dataType||"string"},getCellData:function(t,e,n){var i={},o=this._options.items,r=o[t]&&o[t][e]||{};if(n){i.cellSourceData=r;var a=this._tryGetAreaName(o,r,t,e);a&&(i.cellSourceData.area=a),i.cellSourceData.rowIndex=t,i.cellSourceData.columnIndex=e}return"string"===this.getCellType(t,e)?i.value=r.text:i.value=r.value,i.cellSourceData&&i.cellSourceData.isWhiteSpace&&(i.value=""),i},_tryGetAreaName:function(t,e,n,i){var r=t[0][0].rowspan,a=t[0][0].colspan;return i>=a&&n<r?"column":n>=r&&i<a?"row":(0,o.isDefined)(e.dataIndex)?"data":void 0},getStyles:function(){return this._styles},getStyleId:function(t,e){var n=this._options.items,i=n[0][0].rowspan,o=n[0][0].colspan,r=n[t]&&n[t][e]||{};return 0===e&&0===t||e>=o&&t<i?0:t>=i&&e<o?1:2+(r.dataIndex||0)},hasCustomizeExcelCell:function(){return(0,o.isDefined)(this._options.customizeExcelCell)},customizeExcelCell:function(t){this._options.customizeExcelCell&&this._options.customizeExcelCell(t)}})},function(t,e,n){"use strict";var i,o=n(3),r=(i=o)&&i.__esModule?i:{default:i},a=n(0),s=n(95),l=n(5);var u={number:"numeric",date:"datetime"},c="dxPivotGridUnbinding";function d(t,e){var n=[],i=e.length-1;return(0,l.each)(t,(function(t,o){n.push(o.text||(0,s.formatValue)(o.value,e[i-t]))})),n.reverse()}function h(t){var e=0;return(0,s.foreachTree)(t,(function(t){e=Math.max(e,t.length-1)})),e}function f(t,e,n){var i,o,r,u,c,f,p,m,g,_,v=t.getData(),y=[],b=t.getAreaFields("data"),w=t.getAreaFields("row"),x=t.getAreaFields("column"),C=[{index:v.grandTotalColumnIndex,children:v.columns}],S=[{index:v.grandTotalRowIndex,children:v.rows}],k=h(S),I=h(C);function T(){var t,s=(v.values[r]||[])[p]||[],l=s[i],d={rowPath:f,maxRowLevel:k,rowPathFormatted:c,rowFields:w,columnPathFormatted:_,maxColumnLevel:I,columnPath:g,columnFields:x,dataFields:b,dataIndex:i,dataValues:s,visible:m&&u},h=(e.inverted?_:c).join(" - "),C=(e.inverted?c:_).join("/");b.length>1&&("args"!==e.putDataFieldsInto&&"both"!==e.putDataFieldsInto||(C+=" | "+o.caption),"args"!==e.putDataFieldsInto&&(h+=" | "+o.caption,"singleAxis"!==e.dataFieldsDisplayMode&&(t=o.caption))),d.chartDataItem={val:void 0===l?null:l,series:h,arg:C},(d=function(t,e){var n=t.chartDataItem,i=e&&e(t);return i?(n=(0,a.extend)({},n,i.chartDataItem),i=(0,a.extend)({},t,i,{chartDataItem:n})):t}(d,e.processCell)).visible&&(n[d.chartDataItem.series]=n[d.chartDataItem.series]||t,y.push(d.chartDataItem))}function E(t){(0,s.foreachTree)(S,(function(n){r=n[0].index,n=n.slice(0,n.length-1),u=k===n.length,f=(0,s.createPath)(n),c=d(n,w),0===f.length&&(c=[e.grandTotalText]),(0,s.foreachTree)(C,(function(n){p=n[0].index,n=n.slice(0,n.length-1),m=I===n.length,g=(0,s.createPath)(n),_=d(n,x),0===g.length&&(_=[e.grandTotalText]),t()}))}))}function O(t){(0,l.each)(b,(function(e,n){o=n,i=e,t()}))}return!1===e.alternateDataFields?O((function(){E(T)})):E((function(){O(T)})),y}function p(t,e){var n=t.getAreaFields("data");if("args"!==e.putDataFieldsInto&&"singleAxis"!==e.dataFieldsDisplayMode||1===n.length){var i=[];return(0,l.each)(n,(function(t,n){var o={name:n.caption,title:n.caption,valueType:u[n.dataType]||n.dataType,label:{format:n.format}};n.customizeText&&(o.label.customizeText=function(t){return n.customizeText.call(n,t)}),"splitPanes"===e.dataFieldsDisplayMode&&(o.pane=n.caption),i.push(o)})),i}return[{}]}function m(t,e){var n=[],i=t.getAreaFields("data");return i.length>1&&"splitPanes"===e.dataFieldsDisplayMode&&"args"!==e.putDataFieldsInto&&(0,l.each)(i,(function(t,e){n.push({name:e.caption})})),n.length||n.push({}),n}t.exports={bindChart:function(t,e){e=(0,a.extend)({},e);var n=this,i=function(){e.grandTotalText=n.option("texts.grandTotal");var i=function(t,e){var n=e.customizeSeries,i=e.customizeChart,o={valueAxis:p(t,e),panes:m(t,e)},r={};return i&&(o=(0,a.extend)(!0,{},o,i(o))),o.dataSource=f(t,e,r),o.seriesTemplate={nameField:"series",customizeSeries:function(t){var i={};return"splitPanes"===e.dataFieldsDisplayMode?i.pane=r[t]:"singleAxis"!==e.dataFieldsDisplayMode&&(i.axis=r[t]),n&&(i=(0,a.extend)(i,n(t,i))),i}},o}(n.getDataSource(),e);t.option(i)};if(!(t=function(t){if(!t)return!1;if(t.NAME)return"dxChart"===t.NAME&&t;var e=(0,r.default)(t);return e.data("dxChart")&&e.dxChart("instance")}(t)))return null;!function(t){var e=t.$element().data(c);e&&e()}(t),n.on("changed",i),i();var o=function(){t.$element().removeData(c),n.off("changed",i)};return t.on("disposing",o),this.on("disposing",o),t.$element().data(c,o),o}}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1017),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={headerFilter:{optionName:"headerFilter",isCollectionItem:!1},pivotGridFieldChooserTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.PivotGridFieldChooser=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowSearch:r.bool,applyChangesMode:r.oneOf(["instantly","onDemand"]),dataSource:r.object,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,headerFilter:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,layout:r.oneOf([0,1,2]),onContentReady:r.func,onContextMenuPreparing:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,searchTimeout:r.number,state:r.object,tabIndex:r.number,texts:r.object,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e.ExpectedChildren={headerFilterTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.HeaderFilter=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.HeaderFilterTexts=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.PivotGridFieldChooserTexts=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.Texts=h,e.default=l},function(t,e,n){"use strict";t.exports=n(495),t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1019),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator",defaultValueAxis:"valueAxis"},e._expectedChildren={adaptiveLayout:{optionName:"adaptiveLayout",isCollectionItem:!1},animation:{optionName:"animation",isCollectionItem:!1},annotation:{optionName:"annotations",isCollectionItem:!0},argumentAxis:{optionName:"argumentAxis",isCollectionItem:!1},commonAnnotationSettings:{optionName:"commonAnnotationSettings",isCollectionItem:!1},commonAxisSettings:{optionName:"commonAxisSettings",isCollectionItem:!1},commonSeriesSettings:{optionName:"commonSeriesSettings",isCollectionItem:!1},dataPrepareSettings:{optionName:"dataPrepareSettings",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},legend:{optionName:"legend",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},polarChartTitle:{optionName:"title",isCollectionItem:!1},series:{optionName:"series",isCollectionItem:!0},seriesTemplate:{optionName:"seriesTemplate",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1},valueAxis:{optionName:"valueAxis",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.PolarChart=l,l.propTypes={adaptiveLayout:r.object,animation:r.oneOfType([r.bool,r.object]),annotations:r.array,argumentAxis:r.object,barGroupPadding:r.number,barGroupWidth:r.number,commonAnnotationSettings:r.object,commonAxisSettings:r.object,commonSeriesSettings:r.object,containerBackgroundColor:r.string,customizeAnnotation:r.func,customizeLabel:r.func,customizePoint:r.func,dataPrepareSettings:r.object,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,export:r.object,legend:r.object,loadingIndicator:r.object,margin:r.object,negativesAsZeroes:r.bool,onArgumentAxisClick:r.oneOfType([r.func,r.string]),onDisposing:r.func,onDone:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onLegendClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,onPointClick:r.oneOfType([r.func,r.string]),onPointHoverChanged:r.func,onPointSelectionChanged:r.func,onSeriesClick:r.oneOfType([r.func,r.string]),onSeriesHoverChanged:r.func,onSeriesSelectionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,onZoomEnd:r.func,onZoomStart:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),pathModified:r.bool,pointSelectionMode:r.oneOf(["multiple","single"]),redrawOnResize:r.bool,resolveLabelOverlapping:r.oneOf(["hide","none"]),rtlEnabled:r.bool,series:r.oneOfType([r.array,r.object]),seriesSelectionMode:r.oneOf(["multiple","single"]),seriesTemplate:r.object,size:r.object,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,useSpiderWeb:r.bool,valueAxis:r.object};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adaptiveLayout",e}(s.default);e.AdaptiveLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e}(s.default);e.Animation=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="annotations",e.IsCollectionItem=!0,e.ExpectedChildren={annotationBorder:{optionName:"border",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"},{tmplOption:"tooltipTemplate",render:"tooltipRender",component:"tooltipComponent",keyFn:"tooltipKeyFn"}],e}(s.default);e.Annotation=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.AnnotationBorder=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentAxis",e.ExpectedChildren={argumentAxisMinorTick:{optionName:"minorTick",isCollectionItem:!1},argumentAxisTick:{optionName:"tick",isCollectionItem:!1},axisLabel:{optionName:"label",isCollectionItem:!1},constantLine:{optionName:"constantLines",isCollectionItem:!0},constantLineStyle:{optionName:"constantLineStyle",isCollectionItem:!1},grid:{optionName:"grid",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},minorGrid:{optionName:"minorGrid",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},minorTickInterval:{optionName:"minorTickInterval",isCollectionItem:!1},strip:{optionName:"strips",isCollectionItem:!0},stripStyle:{optionName:"stripStyle",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1},tickInterval:{optionName:"tickInterval",isCollectionItem:!1}},e}(s.default);e.ArgumentAxis=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.ArgumentAxisMinorTick=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.ArgumentAxisTick=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentFormat",e}(s.default);e.ArgumentFormat=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.AxisLabel=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonAnnotationSettings",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"},{tmplOption:"tooltipTemplate",render:"tooltipRender",component:"tooltipComponent",keyFn:"tooltipKeyFn"}],e}(s.default);e.CommonAnnotationSettings=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonAxisSettings",e.ExpectedChildren={commonAxisSettingsLabel:{optionName:"label",isCollectionItem:!1},commonAxisSettingsMinorTick:{optionName:"minorTick",isCollectionItem:!1},commonAxisSettingsTick:{optionName:"tick",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1}},e}(s.default);e.CommonAxisSettings=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.CommonAxisSettingsLabel=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.CommonAxisSettingsMinorTick=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.CommonAxisSettingsTick=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonSeriesSettings",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},commonSeriesSettingsHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},commonSeriesSettingsLabel:{optionName:"label",isCollectionItem:!1},commonSeriesSettingsSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},point:{optionName:"point",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1},valueErrorBar:{optionName:"valueErrorBar",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettings=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsHoverStyle=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},connector:{optionName:"connector",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsLabel=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsSelectionStyle=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connector",e}(s.default);e.Connector=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLines",e.IsCollectionItem=!0,e}(s.default);e.ConstantLine=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.ConstantLineLabel=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="constantLineStyle",e.ExpectedChildren={constantLineStyleLabel:{optionName:"label",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.ConstantLineStyle=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.ConstantLineStyleLabel=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dataPrepareSettings",e}(s.default);e.DataPrepareSettings=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="grid",e}(s.default);e.Grid=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e}(s.default);e.HoverStyle=V;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e}(s.default);e.Image=z;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=j;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legend",e.ExpectedChildren={annotationBorder:{optionName:"border",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=H;var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=U;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="length",e}(s.default);e.Length=G;var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=K;var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=q;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorGrid",e}(s.default);e.MinorGrid=$;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.MinorTick=Y;var Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTickInterval",e}(s.default);e.MinorTickInterval=Z;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minVisualRangeLength",e}(s.default);e.MinVisualRangeLength=X;var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="point",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1},pointHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},pointSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1}},e}(s.default);e.Point=J;var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.PointBorder=Q;var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointHoverStyle=tt;var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointSelectionStyle=et;var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},polarChartTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.PolarChartTitle=nt;var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.PolarChartTitleSubtitle=it;var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e}(s.default);e.SelectionStyle=ot;var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="series",e.IsCollectionItem=!0,e}(s.default);e.Series=rt;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.SeriesBorder=at;var st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="seriesTemplate",e}(s.default);e.SeriesTemplate=st;var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=lt;var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=ut;var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="strips",e.IsCollectionItem=!0,e}(s.default);e.Strip=ct;var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.StripLabel=dt;var ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stripStyle",e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1},stripStyleLabel:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.StripStyle=ht;var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.StripStyleLabel=ft;var pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=pt;var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.Tick=mt;var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tickInterval",e}(s.default);e.TickInterval=gt;var _t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=_t;var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=vt;var yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=yt;var bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueAxis",e.DefaultsProps={defaultVisualRange:"visualRange"},e.ExpectedChildren={axisLabel:{optionName:"label",isCollectionItem:!1},commonAxisSettingsTick:{optionName:"tick",isCollectionItem:!1},constantLine:{optionName:"constantLines",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},minorTickInterval:{optionName:"minorTickInterval",isCollectionItem:!1},minVisualRangeLength:{optionName:"minVisualRangeLength",isCollectionItem:!1},strip:{optionName:"strips",isCollectionItem:!0},tick:{optionName:"tick",isCollectionItem:!1},tickInterval:{optionName:"tickInterval",isCollectionItem:!1},visualRange:{optionName:"visualRange",isCollectionItem:!1},wholeRange:{optionName:"wholeRange",isCollectionItem:!1}},e}(s.default);e.ValueAxis=bt;var wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueErrorBar",e}(s.default);e.ValueErrorBar=wt;var xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="visualRange",e.DefaultsProps={defaultEndValue:"endValue",defaultStartValue:"startValue"},e.ExpectedChildren={length:{optionName:"length",isCollectionItem:!1}},e}(s.default);e.VisualRange=xt;var Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="wholeRange",e.DefaultsProps={defaultEndValue:"endValue",defaultStartValue:"startValue"},e}(s.default);e.WholeRange=Ct,e.default=l},function(t,e,n){"use strict";var i=n(4),o=u(n(8)),r=n(0),a=u(n(13)),s=n(409),l=n(2);function u(t){return t&&t.__esModule?t:{default:t}}var c=s.AdvancedChart.inherit({_themeSection:"polar",_createPanes:function(){return this.callBase(),[{name:"default"}]},_checkPaneName:function(){return!0},_getAxisRenderingOptions:function(t){var e="argumentAxis"===t?"circular":"linear";return this.option("useSpiderWeb")&&(e+="Spider"),{axisType:"polarAxes",drawingType:e}},_prepareAxisOptions:function(t,e){var n="argumentAxis"===t,i=this._themeManager,o=this.option("argumentAxis"),r=i.getOptions("argumentAxis",o)||{},s=isFinite(r.startAngle)?a.default.normalizeAngle(r.startAngle):0;return{type:this.option("useSpiderWeb")&&n?"discrete":e.type,isHorizontal:!0,showCustomBoundaryTicks:n,startAngle:s,endAngle:s+360}},_optionChangesMap:{useSpiderWeb:"AXES_AND_PANES"},_getExtraOptions:function(){return{spiderWidget:this.option("useSpiderWeb")}},_prepareToRender:function(){return this._appendAxesGroups(),{}},_calcCanvas:function(){var t=(0,r.extend)({},this._canvas),e=this.getArgumentAxis().getMargins();return Object.keys(e).forEach((function(n){return t[n]=t["original".concat(n[0].toUpperCase()).concat(n.slice(1))]+e[n]})),t},_renderAxes:function(t){var e=this._getValueAxis(),n=this.getArgumentAxis();n.draw(this._canvas),e.setSpiderTicks(n.getSpiderTicks());var i=this._calcCanvas();return n.updateSize(i),e.draw(i),i},_getValueAxis:function(){return this._valueAxes[0]},_shrinkAxes:function(t){var e=this._getValueAxis(),n=this.getArgumentAxis();if(t&&(t.width||t.height)){n.hideOuterElements();var i=this._calcCanvas();n.updateSize(i),e.updateSize(i)}},checkForMoreSpaceForPanesCanvas:function(){return this.layoutManager.needMoreSpaceForPanesCanvas([{canvas:this.getArgumentAxis().getCanvas()}],this._isRotated())},_getLayoutTargets:function(){return[{canvas:this._canvas}]},_getSeriesForPane:function(){return this.series},_applyClipRects:function(){var t=this._getCanvasClipRectID();this._createClipPathForPane(),this.getArgumentAxis().applyClipRects(this._getElementsClipRectID(),t),this._getValueAxis().applyClipRects(this._getElementsClipRectID(),t)},_createClipPathForPane:function(){var t=this._getValueAxis(),e=t.getCenter(),n=t.getRadius(),i=this._panesClipRects;e={x:Math.round(e.x),y:Math.round(e.y)},this._createClipCircle(i.fixed,e.x,e.y,n),this._createClipCircle(i.base,e.x,e.y,n),this.series.some((function(t){return t.areErrorBarsVisible()}))?this._createClipCircle(i.wide,e.x,e.y,n):i.wide[0]=null},_createClipCircle:function(t,e,n,i){var o=t[0];o?o.attr({cx:e,cy:n,r:i}):(o=this._renderer.clipCircle(e,n,i),t[0]=o)},_applyExtraSettings:function(t){var e=this._panesClipRects.wide[0];t.setClippingParams(this._panesClipRects.base[0].id,e&&e.id,!1,!1)},getActualAngle:function(t){return this.getArgumentAxis().getOptions().inverted?360-t:t},getXYFromPolar:function(t,e,n,i){var o={angle:void 0,radius:void 0,x:void 0,y:void 0};if(!(0,l.isDefined)(t)&&!(0,l.isDefined)(e)&&!(0,l.isDefined)(n)&&!(0,l.isDefined)(i))return o;var s,u,c=this.getArgumentAxis(),d=c.getAngles()[0];if((0,l.isDefined)(n)?s=c.getTranslator().translate(n):isFinite(t)?s=this.getActualAngle(t):(0,l.isDefined)(t)||(s=0),(0,l.isDefined)(i)?u=this.getValueAxis().getTranslator().translate(i):isFinite(e)?u=e:(0,l.isDefined)(e)||(u=c.getRadius()),(0,l.isDefined)(s)&&(0,l.isDefined)(u)){var h=a.default.convertPolarToXY(c.getCenter(),d,s,u);(0,r.extend)(o,h,{angle:c.getTranslatedAngle(s),radius:u})}return o},_applyPointMarkersAutoHiding:i.noop,_createScrollBar:i.noop,_isRotated:i.noop,_getCrosshairOptions:i.noop,_isLegendInside:i.noop});c.addPlugin(n(232).plugins.core),c.addPlugin(n(232).plugins.polarChart),(0,o.default)("dxPolarChart",c),t.exports=c,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(137),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},hideEvent:{optionName:"hideEvent",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},showEvent:{optionName:"showEvent",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Popover=l,l.propTypes={animation:r.object,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),deferRendering:r.bool,disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hideEvent:r.oneOfType([r.object,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxHeight:r.oneOfType([r.func,r.number,r.string]),maxWidth:r.oneOfType([r.func,r.number,r.string]),minHeight:r.oneOfType([r.func,r.number,r.string]),minWidth:r.oneOfType([r.func,r.number,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onOptionChanged:r.func,onShowing:r.func,onShown:r.func,onTitleRendered:r.func,position:r.oneOfType([r.object,r.oneOf(["bottom","left","right","top"])]),rtlEnabled:r.bool,shading:r.bool,shadingColor:r.string,showCloseButton:r.bool,showEvent:r.oneOfType([r.object,r.string]),showTitle:r.bool,title:r.string,toolbarItems:r.array,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hideEvent",e}(s.default);e.HideEvent=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showEvent",e}(s.default);e.ShowEvent=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=b,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(299),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.ProgressBar=a,a.propTypes={disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,max:r.number,min:r.number,onComplete:r.func,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,showStatus:r.bool,statusFormat:r.oneOfType([r.func,r.string]),validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(496),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.RadioGroup=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,items:r.array,layout:r.oneOf(["horizontal","vertical"]),name:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,tabIndex:r.number,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=p(n(3)),o=n(0),r=p(n(18)),a=n(4),s=n(2),l=p(n(79)),u=p(n(8)),c=p(n(69)),d=p(n(272)),h=p(n(62)),f=n(7);function p(t){return t&&t.__esModule?t:{default:t}}function m(t){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function v(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}function y(t,e,n){return(y="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=S(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function b(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function x(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==m(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){b(n,t);var e=x(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"_focusTarget",value:function(){return this.$element().parent()}},{key:"_nullValueSelectionSupported",value:function(){return!0}},{key:"_getDefaultOptions",value:function(){var t=y(S(n.prototype),"_getDefaultOptions",this).call(this);return(0,o.extend)(t,d.default._dataExpressionDefaultOptions(),{_itemAttributes:{role:"radio"}})}},{key:"_initMarkup",value:function(){var t=this;y(S(n.prototype),"_initMarkup",this).call(this),(0,a.deferRender)((function(){t.itemElements().addClass("dx-radiobutton")}))}},{key:"_keyboardEventBindingTarget",value:function(){return this._focusTarget()}},{key:"_postprocessRenderItem",value:function(t){var e=t.itemData.html,o=t.itemElement;if(!e){var r=(0,i.default)("<div>").addClass("dx-radiobutton-icon");(0,i.default)("<div>").addClass("dx-radiobutton-icon-dot").appendTo(r);var a=(0,i.default)("<div>").append(r).addClass("dx-radio-value-container");(0,i.default)(o).prepend(a)}y(S(n.prototype),"_postprocessRenderItem",this).call(this,t)}},{key:"_processSelectableItem",value:function(t,e){y(S(n.prototype),"_processSelectableItem",this).call(this,t,e),t.toggleClass("dx-radiobutton-checked",e).find(".".concat("dx-radiobutton-icon")).first().toggleClass("dx-radiobutton-icon-checked",e),this.setAria("checked",e,t)}},{key:"_refreshContent",value:function(){this._prepareContent(),this._renderContent()}},{key:"_supportedKeys",value:function(){var t=y(S(n.prototype),"_supportedKeys",this).call(this);return(0,o.extend)({},t,{enter:function(e){return e.preventDefault(),t.enter.apply(this,arguments)},space:function(e){return e.preventDefault(),t.space.apply(this,arguments)}})}},{key:"_itemElements",value:function(){return this._itemContainer().children(this._itemSelector())}}]),n}(c.default),I=function(t){b(n,t);var e=x(n);function n(){return g(this,n),e.apply(this,arguments)}return v(n,[{key:"_clean",value:function(){delete this._inkRipple,y(S(n.prototype),"_clean",this).call(this)}},{key:"_dataSourceOptions",value:function(){return{paginate:!1}}},{key:"_defaultOptionsRules",value:function(){return y(S(n.prototype),"_defaultOptionsRules",this).call(this).concat([{device:{tablet:!0},options:{layout:"horizontal"}},{device:function(){return"desktop"===r.default.real().deviceType&&!r.default.isSimulator()},options:{focusStateEnabled:!0}}])}},{key:"_fireContentReadyAction",value:function(t){t&&y(S(n.prototype),"_fireContentReadyAction",this).call(this)}},{key:"_focusTarget",value:function(){return this.$element()}},{key:"_getAriaTarget",value:function(){return this.$element()}},{key:"_getDefaultOptions",value:function(){var t=y(S(n.prototype),"_getDefaultOptions",this).call(this);return(0,o.extend)(t,(0,o.extend)(d.default._dataExpressionDefaultOptions(),{hoverStateEnabled:!0,activeStateEnabled:!0,layout:"vertical",useInkRipple:!1}))}},{key:"_getItemValue",value:function(t){return this._valueGetter?this._valueGetter(t):t.text}},{key:"_getSubmitElement",value:function(){return this._$submitElement}},{key:"_init",value:function(){y(S(n.prototype),"_init",this).call(this),this._activeStateUnit=".".concat("dx-radiobutton"),this._feedbackHideTimeout=100,this._initDataExpressions()}},{key:"_initMarkup",value:function(){this.$element().addClass("dx-radiogroup"),this._renderSubmitElement(),this.setAria("role","radiogroup"),this._renderRadios(),this.option("useInkRipple")&&this._renderInkRipple(),this._renderLayout(),y(S(n.prototype),"_initMarkup",this).call(this)}},{key:"_itemClickHandler",value:function(t){var e=t.itemElement,n=t.event,i=t.itemData;if(this.itemElements().is(e)){var o=this._getItemValue(i);o!==this.option("value")&&(this._saveValueChangeEvent(n),this.option("value",o))}}},{key:"_setSelection",value:function(t){this._setCollectionWidgetOption("selectedItemKeys",[this._unwrappedValue(t)])}},{key:"_optionChanged",value:function(t){var e=t.name,i=t.value;switch(this._dataExpressionOptionChanged(t),e){case"useInkRipple":this._invalidate();break;case"focusStateEnabled":case"accessKey":case"tabIndex":this._setCollectionWidgetOption(e,i);break;case"disabled":y(S(n.prototype),"_optionChanged",this).call(this,t),this._setCollectionWidgetOption(e,i);break;case"dataSource":this._setCollectionWidgetOption("dataSource",this._dataSource),this._setSelection(this.option("value"));break;case"valueExpr":this._setCollectionWidgetOption("keyExpr",this._getCollectionKeyExpr());break;case"value":this._setSelection(i),this._setSubmitValue(i),y(S(n.prototype),"_optionChanged",this).call(this,t);break;case"items":this._setSelection(this.option("value"));break;case"itemTemplate":case"displayExpr":break;case"layout":this._renderLayout(),this._updateItemsSize();break;default:y(S(n.prototype),"_optionChanged",this).call(this,t)}}},{key:"_render",value:function(){y(S(n.prototype),"_render",this).call(this),this._updateItemsSize()}},{key:"_renderInkRipple",value:function(){this._inkRipple=l.default.render({waveSizeCoefficient:3.3,useHoldAnimation:!1,isCentered:!0})}},{key:"_renderLayout",value:function(){var t=this.option("layout"),e=this.$element();e.toggleClass("dx-radiogroup-vertical","vertical"===t),e.toggleClass("dx-radiogroup-horizontal","horizontal"===t)}},{key:"_renderRadios",value:function(){var t=this;this._areRadiosCreated=new f.Deferred;var e=(0,i.default)("<div>").appendTo(this.$element()),n=this.option(),o=n.value,r=n.displayExpr,a=n.accessKey,l=n.focusStateEnabled,u=n.itemTemplate,c=n.tabIndex,d="this"!==n.valueExpr;this._radios=this._createComponent(e,k,{displayExpr:r,accessKey:a,dataSource:this._dataSource,focusStateEnabled:l,itemTemplate:u,keyExpr:this._getCollectionKeyExpr(),noDataText:"",onContentReady:function(){return t._fireContentReadyAction(!0)},onItemClick:this._itemClickHandler.bind(this),scrollingEnabled:!1,selectionByClick:!1,selectionMode:"single",selectedItemKeys:d||(0,s.isDefined)(o)?[o]:[],tabIndex:c}),this._areRadiosCreated.resolve()}},{key:"_renderSubmitElement",value:function(){this._$submitElement=(0,i.default)("<input>").attr("type","hidden").appendTo(this.$element()),this._setSubmitValue()}},{key:"_setOptionsByReference",value:function(){y(S(n.prototype),"_setOptionsByReference",this).call(this),(0,o.extend)(this._optionsByReference,{value:!0})}},{key:"_setSubmitValue",value:function(t){t=t||this.option("value");var e="this"===this.option("valueExpr")?this._displayGetter(t):t;this._$submitElement.val(e)}},{key:"_setCollectionWidgetOption",value:function(){this._areRadiosCreated.done(this._setWidgetOption.bind(this,"_radios",arguments))}},{key:"_toggleActiveState",value:function(t,e,i){if(y(S(n.prototype),"_toggleActiveState",this).call(this,t,e,i),this._inkRipple){var o={element:t.find(".".concat("dx-radiobutton-icon")),event:i};e?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}}},{key:"_updateItemsSize",value:function(){if("horizontal"===this.option("layout"))this.itemElements().css("height","auto");else{var t=this.option("items").length;this.itemElements().css("height",100/t+"%")}}},{key:"focus",value:function(){this._radios&&this._radios.focus()}},{key:"itemElements",value:function(){return this._radios.itemElements()}}]),n}(h.default);I.include(d.default),(0,u.default)("dxRadioGroup",I),t.exports=I},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1025),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator",defaultValue:"value"},e._expectedChildren={background:{optionName:"background",isCollectionItem:!1},behavior:{optionName:"behavior",isCollectionItem:!1},chart:{optionName:"chart",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},indent:{optionName:"indent",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},scale:{optionName:"scale",isCollectionItem:!1},shutter:{optionName:"shutter",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},sliderHandle:{optionName:"sliderHandle",isCollectionItem:!1},sliderMarker:{optionName:"sliderMarker",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},value:{optionName:"value",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.RangeSelector=l,l.propTypes={background:r.object,behavior:r.object,chart:r.object,containerBackgroundColor:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),dataSourceField:r.string,disabled:r.bool,elementAttr:r.object,export:r.object,indent:r.object,loadingIndicator:r.object,margin:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,pathModified:r.bool,redrawOnResize:r.bool,rtlEnabled:r.bool,scale:r.object,selectedRangeColor:r.string,selectedRangeUpdateMode:r.oneOf(["auto","keep","reset","shift"]),shutter:r.object,size:r.object,sliderHandle:r.object,sliderMarker:r.object,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),value:r.oneOfType([r.array,r.object])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="aggregation",e}(s.default);e.Aggregation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="aggregationInterval",e}(s.default);e.AggregationInterval=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="argumentFormat",e}(s.default);e.ArgumentFormat=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="background",e.ExpectedChildren={backgroundImage:{optionName:"image",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1}},e}(s.default);e.Background=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e}(s.default);e.BackgroundImage=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="behavior",e}(s.default);e.Behavior=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="breaks",e.IsCollectionItem=!0,e}(s.default);e.Break=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="breakStyle",e}(s.default);e.BreakStyle=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="chart",e.ExpectedChildren={commonSeriesSettings:{optionName:"commonSeriesSettings",isCollectionItem:!1},dataPrepareSettings:{optionName:"dataPrepareSettings",isCollectionItem:!1},series:{optionName:"series",isCollectionItem:!0},seriesTemplate:{optionName:"seriesTemplate",isCollectionItem:!1},valueAxis:{optionName:"valueAxis",isCollectionItem:!1}},e}(s.default);e.Chart=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="commonSeriesSettings",e.ExpectedChildren={aggregation:{optionName:"aggregation",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},commonSeriesSettingsHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},commonSeriesSettingsLabel:{optionName:"label",isCollectionItem:!1},commonSeriesSettingsSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},point:{optionName:"point",isCollectionItem:!1},reduction:{optionName:"reduction",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1},valueErrorBar:{optionName:"valueErrorBar",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettings=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsHoverStyle=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={argumentFormat:{optionName:"argumentFormat",isCollectionItem:!1},border:{optionName:"border",isCollectionItem:!1},connector:{optionName:"connector",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsLabel=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hatching:{optionName:"hatching",isCollectionItem:!1},seriesBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.CommonSeriesSettingsSelectionStyle=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="connector",e}(s.default);e.Connector=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dataPrepareSettings",e}(s.default);e.DataPrepareSettings=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="height",e}(s.default);e.Height=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e}(s.default);e.HoverStyle=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e}(s.default);e.Image=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="indent",e}(s.default);e.Indent=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="length",e}(s.default);e.Length=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="marker",e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1},markerLabel:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.Marker=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.MarkerLabel=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="maxRange",e}(s.default);e.MaxRange=V;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTick",e}(s.default);e.MinorTick=z;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minorTickInterval",e}(s.default);e.MinorTickInterval=j;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="minRange",e}(s.default);e.MinRange=H;var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="point",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},image:{optionName:"image",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1},pointHoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},pointImage:{optionName:"image",isCollectionItem:!1},pointSelectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1}},e}(s.default);e.Point=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.PointBorder=U;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointHoverStyle=G;var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="image",e.ExpectedChildren={height:{optionName:"height",isCollectionItem:!1},url:{optionName:"url",isCollectionItem:!1},width:{optionName:"width",isCollectionItem:!1}},e}(s.default);e.PointImage=K;var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},pointBorder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.PointSelectionStyle=q;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="reduction",e}(s.default);e.Reduction=$;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scale",e.ExpectedChildren={aggregationInterval:{optionName:"aggregationInterval",isCollectionItem:!1},break:{optionName:"breaks",isCollectionItem:!0},breakStyle:{optionName:"breakStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},marker:{optionName:"marker",isCollectionItem:!1},maxRange:{optionName:"maxRange",isCollectionItem:!1},minorTick:{optionName:"minorTick",isCollectionItem:!1},minorTickInterval:{optionName:"minorTickInterval",isCollectionItem:!1},minRange:{optionName:"minRange",isCollectionItem:!1},scaleLabel:{optionName:"label",isCollectionItem:!1},tick:{optionName:"tick",isCollectionItem:!1},tickInterval:{optionName:"tickInterval",isCollectionItem:!1}},e}(s.default);e.Scale=Y;var Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.ScaleLabel=Z;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e}(s.default);e.SelectionStyle=X;var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="series",e.IsCollectionItem=!0,e}(s.default);e.Series=J;var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.SeriesBorder=Q;var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="seriesTemplate",e}(s.default);e.SeriesTemplate=tt;var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shutter",e}(s.default);e.Shutter=et;var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=nt;var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="sliderHandle",e}(s.default);e.SliderHandle=it;var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="sliderMarker",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.SliderMarker=ot;var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Subtitle=rt;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tick",e}(s.default);e.Tick=at;var st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tickInterval",e}(s.default);e.TickInterval=st;var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.Title=lt;var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="url",e}(s.default);e.Url=ut;var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="value",e.DefaultsProps={defaultEndValue:"endValue",defaultStartValue:"startValue"},e.ExpectedChildren={length:{optionName:"length",isCollectionItem:!1}},e}(s.default);e.Value=ct;var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueAxis",e}(s.default);e.ValueAxis=dt;var ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="valueErrorBar",e}(s.default);e.ValueErrorBar=ht;var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="width",e}(s.default);e.Width=ft,e.default=l},function(t,e,n){"use strict";t.exports=n(1026),t.exports.default=t.exports},function(t,e,n){"use strict";var i=k(n(8)),o=n(2),r=n(0),a=n(5),s=n(13),l=n(26),u=n(37),c=k(n(123)),d=k(n(226)),h=k(n(281)),f=k(n(94)),p=k(n(241)),m=k(n(1027)),g=n(1030),_=k(n(1031)),v=k(n(1032)),y=k(n(399)),b=k(n(118)),w=n(119),x=n(121),C=n(139),S=n(166);function k(t){return t&&t.__esModule?t:{default:t}}var I=Math.max,T=Math.ceil,E=Math.floor,O="value";function M(t,e,n){var i=V(t,void 0===e?p.default.consts.emptySliderMarkerText:p.default.formatValue(e,n),n.font);return T(i.height)+2*n.paddingTopBottom+p.default.consts.pointerSize}function P(t,e,n,i){var o=V(t,p.default.formatValue(e,n.label,i,n.valueType,n.type,n.logarithmBase),n.label.font);return T(o.width/2)}function D(t,e){var n=(0,o.type)(t),i=(0,o.type)(e),r=function(t){return n===t||i===t};return r("date")?"datetime":r("number")?"numeric":r("string")?"string":""}function A(t){return"datetime"===t.valueType&&t.marker.visible}function R(t,e,n){if(t){var i=t.logarithmBase;"logarithmic"===t.type&&i<=0||i&&!(0,o.isNumeric)(i)?(t.logarithmBase=e,n("E2104")):"logarithmic"!==t.type&&(t.logarithmBase=void 0)}}function B(t,e,n,i){var o=e.label,r=e.marker,a=e.placeholderHeight,s="semidiscrete"===e.type?e.customTicks:i.ticks,l=p.default.formatValue(s[0],o);return a||(o.visible?o.topIndent+V(t,l,o.font).height:0)+(n?r.topIndent+r.separatorHeight:0)}function N(t,e,n){return t?n?t=(0,l.getNextDateUnit)(t):t+=e:t=e,t}function L(t,e,n,i){var r,a,s,u=(0,o.isDefined)(i.minVisible)?i.minVisible:i.min,c=(0,o.isDefined)(i.maxVisible)?i.maxVisible:i.max,d=t._categoriesInfo,h={};return"semidiscrete"===t.type?r=function(t,e,n,i){var o,r,a,s=t.minorTickInterval,u=t.tickInterval,c="datetime"===t.valueType,d=t.axisDivisionFactor||{};if(!u)do{if(u===(o=N(u,s,c)))break;u=o,c&&(o=(0,l.dateToMilliseconds)(u)),r=T((n-e)/o),a=E(i/(d[u]||50))||1}while(o&&r>a);return{tickInterval:u,minorTickInterval:s,bounds:{minVisible:e,maxVisible:n},ticks:[]}}(t,u,c,e):(s=(a=y.default.tickGenerator({axisType:t.type,dataType:t.valueType,logBase:t.logarithmBase,allowNegatives:!0,linearThreshold:Math.abs(t.linearThreshold||0),axisDivisionFactor:t.axisDivisionFactor,minorAxisDivisionFactor:t.minorAxisDivisionFactor,calculateMinors:!0,allowDecimals:t.allowDecimals,endOnTick:t.endOnTick,incidentOccurred:n,rangeIsEmpty:i.isEmpty()})({min:u,max:c,categories:(0,o.isDefined)(d)?d.categories:[]},e,t.tickInterval,t.forceUserTickInterval,void 0,t.minorTickInterval,t.minorTickCount)).ticks.length,h.minVisible=a.ticks[0]<u?a.ticks[0]:u,h.maxVisible=a.ticks[s-1]>c?a.ticks[s-1]:c,r={tickInterval:a.tickInterval,minorTickInterval:0===t.minorTickInterval?0:a.minorTickInterval,bounds:h,ticks:a.ticks}),r}function F(t){var e;return null===(e=t.workWeek)||void 0===e?void 0:e[0]}function V(t,e,n){var i=t.text(e,-1e3,-1e3).css((0,s.patchFontOptions)(n)).append(t.root),o=i.getBBox();return i.remove(),o}function z(t,e,n,i,r){var a,s,u,c,d,h=t._categoriesInfo,p="datetime"===t.valueType;!e||e.isEmpty()||n.isEmpty()||(a=i.bounds,n.addRange(a),t.startValue=n.invert?a.maxVisible:a.minVisible,t.endValue=n.invert?a.minVisible:a.maxVisible),t.marker.visible=r(p&&-1===t.type.indexOf("discrete"),t.marker.visible,t.startValue,t.endValue,i.tickInterval),h&&(t.startValue=h.start,t.endValue=h.end),-1===t.type.indexOf("discrete")&&(s=(0,o.isDate)(t.startValue)&&(0,o.isDate)(t.endValue)&&t.startValue.getTime()===t.endValue.getTime()||t.startValue===t.endValue),t.isEmpty=(c=t.startValue,d=t.endValue,!(0,o.isDefined)(c)||!(0,o.isDefined)(d)||s),t.isEmpty?t.startValue=t.endValue=void 0:(t.minorTickInterval=i.minorTickInterval,t.tickInterval=i.tickInterval,p&&(!(0,o.isDefined)(t.label.format)||"semidiscrete"===t.type&&t.minorTickInterval!==t.tickInterval)&&("discrete"===t.type?t.label.format=f.default.getDateFormatByTicks(i.ticks):t.marker.visible?t.label.format=(0,l.getDateFormatByTickInterval)(t.tickInterval):t.label.format=f.default.getDateFormatByTickInterval(t.startValue,t.endValue,t.tickInterval))),"semidiscrete"===t.type&&(u=function(t){var e=t.startValue,n=t.endValue,i="datetime"===t.valueType,r=F(t),a=t.tickInterval,s={intervals:[]};if(!(0,o.isDefined)(e)||!(0,o.isDefined)(n))return s;s.intervals=(0,l.getSequenceByInterval)(e,n,t.minorTickInterval),a!==t.minorTickInterval&&(s.altIntervals=s.intervals,e=j(e,i,a,r),n=j(n,i,a,r),s.intervals=(0,l.getSequenceByInterval)(e,n,a),s.intervals[0]=s.altIntervals[0]);return s}(t),t.customMinorTicks=u.altIntervals,t.customTicks=u.intervals,t.customBoundTicks=[t.customTicks[0]])}function j(t,e,n,i){return(0,o.isDefined)(t)&&(t=e?(0,l.correctDateWithUnitBeginning)(new Date(t),n,null,i):(0,u.adjust)(E((0,u.adjust)(t/n))*n)),t}function H(t,e,n){var i=Math.abs(e-t)/n,o=i-E(i);return o>0?T(Math.abs((0,u.adjust)((0,s.getLog)(o,10)))):0}var W=b.default.inherit({_toggleParentsScrollSubscription:function(){},_eventsMap:{onValueChanged:{name:"valueChanged"}},_setDeprecatedOptions:function(){this.callBase.apply(this,arguments),(0,r.extend)(this._deprecatedOptions,{"chart.barWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.barPadding' or 'chart.series.barPadding' option instead"},"chart.equalBarWidth":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.ignoreEmptyPoints' or 'chart.series.ignoreEmptyPoints' option instead"},"chart.useAggregation":{since:"18.1",message:"Use the 'chart.commonSeriesSettings.aggregation.enabled' or 'chart.series.aggregation.enabled' option instead"}})},_rootClassPrefix:"dxrs",_rootClass:"dxrs-range-selector",_dataIsReady:function(){return this._dataIsLoaded()},_initialChanges:["DATA_SOURCE","VALUE"],_themeDependentChanges:["MOSTLY_TOTAL"],_themeSection:"rangeSelector",_fontFields:["scale.label.font","sliderMarker.font"],_initCore:function(){var t=this,e=t._renderer,n=e.root;n.css({"touch-action":"pan-y"}),t._clipRect=e.clipRect();var i=e.g().attr({class:"dxrs-view"}).append(n),r=e.g().attr({class:"dxrs-slidersContainer","clip-path":t._clipRect.id}).append(n),a=e.g().attr({class:"dxrs-scale","clip-path":t._clipRect.id}).append(n),l=e.g().attr({class:"dxrs-scale-breaks"}).append(n),u=e.g().attr({class:"dxrs-trackers"}).append(n);t._axis=new K({renderer:e,root:a,scaleBreaksGroup:l,updateSelectedRange:function(e,n){t.setValue((0,s.convertVisualRangeObject)(e),n)},incidentOccurred:t._incidentOccurred}),t._rangeView=new _.default.RangeView({renderer:e,root:i,translator:t._axis.getTranslator()}),t._slidersController=new m.default.SlidersController({renderer:e,root:r,trackersGroup:u,updateSelectedRange:function(e,n,i){t._rangeOption||t.option(O,(0,s.convertVisualRangeObject)(e,(0,o.isPlainObject)(t._options.silent(O)))),t._eventTrigger("valueChanged",{value:(0,s.convertVisualRangeObject)(e),previousValue:(0,s.convertVisualRangeObject)(n),event:i})},axis:t._axis,translator:t._axis.getTranslator()}),t._tracker=new g.Tracker({renderer:e,controller:t._slidersController})},_getDefaultSize:function(){return{width:400,height:160}},_disposeCore:function(){this._axis.dispose(),this._slidersController.dispose(),this._tracker.dispose()},_applySize:function(t){this._clientRect=t.slice(),this._change(["MOSTLY_TOTAL"])},_optionChangesMap:{scale:"SCALE",value:"VALUE",dataSource:"DATA_SOURCE"},_optionChangesOrder:["SCALE","DATA_SOURCE"],_change_SCALE:function(){this._change(["MOSTLY_TOTAL"])},_setValueByDataSource:function(){var t=this._options.silent(),e=this._axis;if(t.dataSource){var n=this.option("selectedRangeUpdateMode"),i=this.getValue(),r=(0,o.isDefined)(i[0])&&(0,o.isDefined)(i[1]);if((0,o.isDefined)(n)?(n=(0,s.normalizeEnum)(n),this.__skipAnimation=!0):r&&(n="reset"),"auto"===n&&r){var a=e.allScaleSelected(i);n=a.startValue&&a.endValue?"reset":a.endValue?"shift":"keep"}if("reset"===n)t[O]=null;else if("shift"===n&&r){var l=this.getValue();this.__skipAnimation=!0,t[O]={length:e.getVisualRangeLength({minVisible:l[0],maxVisible:l[1]})}}else"keep"===n&&(this.__skipAnimation=!0)}},_change_DATA_SOURCE:function(){this._options.silent("dataSource")&&this._updateDataSource()},_customChangesOrder:["MOSTLY_TOTAL","VALUE","SLIDER_SELECTION"],_change_MOSTLY_TOTAL:function(){this._applyMostlyTotalChange()},_change_SLIDER_SELECTION:function(){var t=this._options.silent(O);this._slidersController.setSelectedRange(t&&(0,s.getVizRangeObject)(t))},_change_VALUE:function(){var t=this._rangeOption;t&&(this._options.silent(O,t),this.setValue(t))},_validateRange:function(t,e){var n=this._axis.getTranslator();((0,o.isDefined)(t)&&!n.isValid(t)||(0,o.isDefined)(e)&&!n.isValid(e))&&this._incidentOccurred("E2203")},_applyChanges:function(){var t=this,e=t._options.silent(O);t._changes.has("VALUE")&&e&&(t._rangeOption=e),t.callBase.apply(t,arguments),t._rangeOption=null,t.__isResizing=t.__skipAnimation=!1},_applyMostlyTotalChange:function(){var t,e=this._renderer,n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};(this.__isResizing||this.__skipAnimation)&&(t=e.animationEnabled(),e.updateAnimationOptions({enabled:!1})),this._clipRect.attr({x:n[0],y:n[1],width:n[2]-n[0],height:n[3]-n[1]}),this._axis.getTranslator().update(new c.default.Range,i,{isHorizontal:!0}),this._updateContent({left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]}),(this.__isResizing||this.__skipAnimation)&&e.updateAnimationOptions({enabled:t}),this._drawn()},_dataSourceChangedHandler:function(){this._setValueByDataSource(),this._requestChange(["MOSTLY_TOTAL"])},_completeSeriesDataSourceCreation:function(t,e){var n=this._clientRect,i={left:n[0],top:n[1],width:n[2]-n[0],height:n[3]-n[1]};this._axis.updateOptions((0,r.extend)({},t,{isHorizontal:!0,label:{}})),e.isShowChart()&&this._axis.setMarginOptions(e.getMarginOptions(i)),this._axis.updateCanvas(i),e.createPoints()},_updateContent:function(t){var e=this.option("chart"),n=this._createSeriesDataSource(e),i=!(n&&n.isShowChart()||this.option("background.image.url")),r=function(t,e,n,i){var r=0,a=h.default.correctValueType((0,s.normalizeEnum)(t.valueType)),l=function(e,i){var a="startValue"===e?"start":"end";(0,o.isDefined)(t[e])&&(r=i(t[e]),(0,o.isDefined)(r)?t[e]=r:(t[e]=void 0,n("E2202",[a])))};(a=e||a)||(a=D(t.startValue,t.endValue)||"numeric"),("string"===a||t.categories)&&(t.type="discrete",a="string"),t.containerColor=i,t.valueType=a,t.dataType=a;var u=h.default.getParser(a);return l("startValue",u),l("endValue",u),R(t,10,n),t.type||(t.type="continuous"),t.parser=u,"semidiscrete"===t.type&&(t.minorTick.visible=!1,t.minorTickInterval=t.minRange,t.marker.visible=!1,t.maxRange=void 0),t.forceUserTickInterval|=(0,o.isDefined)(t.tickInterval)&&!(0,o.isDefined)(t.axisDivisionFactor),t.axisDivisionFactor=(0,o.isDefined)(t.axisDivisionFactor)?t.axisDivisionFactor:30,t.minorAxisDivisionFactor=(0,o.isDefined)(t.minorAxisDivisionFactor)?t.minorAxisDivisionFactor:15,t}(this._getOption("scale"),n&&n.getCalculatedValueType(),this._incidentOccurred,this._getOption("containerBackgroundColor",!0));n&&this._completeSeriesDataSourceCreation(r,n);var a,u=function(t,e){var n,i,r,a,l,u=!1,d=e.startValue,h=e.endValue,f=t?t.getBoundRange().arg:new c.default.Range,p="datetime"===e.valueType,m=F(e),g=e.minRange;return"discrete"===e.type&&((l=new c.default.Range({minVisible:d,maxVisible:h})).addRange(f),f=l,r=(r=t?t.argCategories:e.categories||!t&&d&&h&&[d,h])||[],e._categoriesInfo=a=(0,s.getCategoriesInfo)(r,d,h)),"semidiscrete"===e.type&&(d=e.startValue=j(e.startValue,p,g,m),h=e.endValue=j(e.endValue,p,g,m),f.minVisible=j(f.minVisible,p,g,m),f.maxVisible=j(f.maxVisible,p,g,m),f.min=j(f.min,p,g,m),f.max=j(f.max,p,g,m)),(0,o.isDefined)(d)&&(0,o.isDefined)(h)?(u=a?a.inverted:d>h,n=a?a.start:u?h:d,i=a?a.end:u?d:h):(0,o.isDefined)(d)||(0,o.isDefined)(h)?(n=d,i=h):a&&(n=a.start,i=a.end),f.addRange({invert:u,min:n,max:i,minVisible:n,maxVisible:i,dataType:e.valueType}),f.addRange({categories:t?void 0:r,base:e.logarithmBase,axisType:e.type,dataType:e.valueType}),t&&f.sortCategories(r),f}(n,r),d=L(r,t.width,this._incidentOccurred,u),f=n&&n.isShowChart()&&n.getThemeManager();f&&R(e&&e.valueAxis,f.getOptions("valueAxis").logarithmBase,this._incidentOccurred),z(r,n,u,d,(a=t.width,function(t,e,n,i,r){return e&&t&&(!(0,o.isDefined)(r)||r.years||r.months>=6||a/50<T((i-n)/(0,l.dateToMilliseconds)("year"))+1)&&(e=!1),e})),function(t,e){var n=e.minorTickInterval||e.tickInterval;"datetime"===e.valueType&&(n=(0,l.dateToMilliseconds)(n)),t.addRange({interval:n})}(u,r);var m=this._prepareSliderMarkersOptions(r,t.width,d,u),g=function(t,e,n,i,r){var a,s,l,u,c,d,h,f=0,p=0,m="semidiscrete"===e.type?e.customTicks:r.ticks;return l=(i=i||{}).left,u=i.right,c=n.placeholderHeight,n.visible&&(a=M(t,e.startValue,n),s=M(t,e.endValue,n),void 0===c&&(c=I(a,s))),e.label.visible&&(d=(0,o.isDefined)(e.startValue)?m[0]:void 0,h=(0,o.isDefined)(e.endValue)?m[m.length-1]:void 0,f=P(t,d,e,r),p=P(t,h,e,r)),{left:l=void 0!==l?l:f,right:u=(void 0!==u?u:p)||1,top:c||0,bottom:0}}(this._renderer,r,m,this.option("indent"),d),_={left:t.left+g.left,top:t.top+g.top,width:t.left+g.left+I(t.width-g.left-g.right,1),height:I(i?p.default.HEIGHT_COMPACT_MODE:t.height-g.top-g.bottom-B(this._renderer,r,A(r),d),0),right:0,bottom:0};this._axis.update(r,i,_,u,n),r.minorTickInterval=r.isEmpty?0:r.minorTickInterval,this._updateElements(r,m,i,_,n),f&&f.dispose()},_updateElements:function(t,e,n,i,o){var r=this._getOption("behavior"),a=this._getOption("shutter"),s="semidiscrete"!==t.type;a.color=a.color||this._getOption("containerBackgroundColor",!0),this._rangeView.update(this.option("background"),this._themeManager.theme("background"),i,n,r.animationEnabled&&this._renderer.animationEnabled(),o),this._isUpdating=!0,this._slidersController.update([i.top,i.top+i.height],r,n,this._getOption("sliderHandle"),e,a,{minRange:s?this.option("scale.minRange"):void 0,maxRange:s?this.option("scale.maxRange"):void 0},this._axis.getFullTicks(),this._getOption("selectedRangeColor",!0)),this._requestChange(["SLIDER_SELECTION"]),this._isUpdating=!1,this._tracker.update(!this._axis.getTranslator().getBusinessRange().isEmpty(),r)},_createSeriesDataSource:function(t){var e,n=this._dataSourceItems(),i=this._getOption("scale"),o=i.valueType||D(i.startValue,i.endValue),a=new d.default.Axis({renderer:this._renderer,axisType:"xyAxes",drawingType:"linear"});return a.updateOptions({isHorizontal:!1,label:{},categoriesSortingMethod:this._getOption("chart").valueAxis.categoriesSortingMethod}),(n||t&&t.series)&&(t=(0,r.extend)({},t,{theme:this.option("theme")}),e=new v.default.SeriesDataSource({renderer:this._renderer,dataSource:n,valueType:(0,s.normalizeEnum)(o),axisType:i.type,chart:t,dataSourceField:this.option("dataSourceField"),incidentOccurred:this._incidentOccurred,categories:i.categories,argumentAxis:this._axis,valueAxis:a})),e},_prepareSliderMarkersOptions:function(t,e,n,i){var r=n.minorTickInterval,a=n.tickInterval,s=a,u=t.endValue,c=t.startValue,d=this._getOption("sliderMarker"),h=!this._getOption("behavior").snapToTicks,p="discrete"===t.type,m="datetime"===t.valueType;return d.borderColor=this._getOption("containerBackgroundColor",!0),d.format||i.isEmpty()||(h&&(0,o.isNumeric)(t.startValue)&&(d.format={type:"fixedPoint",precision:H(c,u,e)}),m&&!p&&((0,o.isDefined)(r)&&0!==r&&(s=function(t,e,n){var i=(0,l.getDateUnitInterval)(e),o=(0,l.getDateUnitInterval)(t),r=l.dateUnitIntervals.indexOf(i);return n&&i===o&&r>0&&(i=l.dateUnitIntervals[r-1]),i}(a,r,h)),t.marker.visible?d.format=(0,l.getDateFormatByTickInterval)(s):(0,o.isDefined)(c)&&(0,o.isDefined)(u)&&(d.format=f.default.getDateFormatByTickInterval(c,u,s))),m&&p&&n.ticks.length&&(d.format=f.default.getDateFormatByTicks(n.ticks))),d},getValue:function(){return(0,s.convertVisualRangeObject)(this._slidersController.getSelectedRange())},setValue:function(t,e){var n=(0,s.getVizRangeObject)(t);!this._isUpdating&&t&&(this._validateRange(n.startValue,n.endValue),!(0,s.rangesAreEqual)(n,this._slidersController.getSelectedRange())&&this._slidersController.setSelectedRange(n,e))},_setContentSize:function(){this.__isResizing=2===this._changes.count(),this.callBase.apply(this,arguments)}});function U(){return 1}function G(t){return t%2===1?-E(t/2):-t/2}function K(t){this._axis=new d.default.Axis({renderer:t.renderer,axesContainerGroup:t.root,scaleBreaksGroup:t.scaleBreaksGroup,incidentOccurred:t.incidentOccurred,axisType:"xyAxes",drawingType:"linear",widgetClass:"dxrs",axisClass:"range-selector",isArgumentAxis:!0}),this._updateSelectedRangeCallback=t.updateSelectedRange,this._axis.getAxisSharpDirection=this._axis.getSharpDirectionByCoords=U,this._axis.getTickStartPositionShift=G}(0,a.each)(["selectedRangeColor","containerBackgroundColor","sliderMarker","sliderHandle","shutter","background","behavior","chart","indent"],(function(t,e){W.prototype._optionChangesMap[e]="MOSTLY_TOTAL"})),K.prototype={constructor:K,dispose:function(){this._axis.dispose()},calculateInterval:function(t,e){return this._axis.calculateInterval(t,e)},update:function(t,e,n,i,o){var r=this._axis;r.updateOptions(function(t,e,n,i){return t.marker.label.font=t.label.font,t.color=t.marker.color=t.tick.color,t.opacity=t.marker.opacity=t.tick.opacity,t.width=t.marker.width=t.tick.width,t.placeholderSize=(t.placeholderHeight||0)+i,t.argumentType=t.valueType,t.visible=e,t.isHorizontal=!0,t.calculateMinors=!0,t.semiDiscreteInterval=t.minRange,e||(t.minorTick.length=t.tick.length=n),t.label.indentFromAxis=t.label.topIndent+i,t}(t,e,n.height,n.height/2-T(t.width/2))),r.validate(),r.setBusinessRange(i,!0),void 0!==o&&o.isShowChart()&&r.setMarginOptions(o.getMarginOptions(n)),r.draw(n),r.shift({left:0,bottom:-n.height/2+n.top}),r.getMarkerTrackers()&&function(t,e,n){function i(e){var i=e.target.range,o=t.minRange?(0,l.addInterval)(i.startValue,t.minRange):void 0,r=t.maxRange?(0,l.addInterval)(i.startValue,t.maxRange):void 0;o&&o>i.endValue||r&&r<i.endValue||n(i,e)}(0,a.each)(e,(function(t,e){e.on("dxpointerdown",i)}))}(t,r.getMarkerTrackers(),this._updateSelectedRangeCallback),r.drawScaleBreaks({start:n.top,end:n.top+n.height})},visualRange:function(){},getViewport:function(){return{}},allScaleSelected:function(t){var e=this._axis.visualRange(),n=e.startValue,i=e.endValue;return{startValue:t[0].valueOf()===n.valueOf(),endValue:t[1].valueOf()===i.valueOf()}},getOptions:function(){return this._axis.getOptions()||{}}},["setMarginOptions","getFullTicks","updateCanvas","updateOptions","getAggregationInfo","getTranslator","getVisualRangeLength","getVisibleArea","getMarginOptions"].forEach((function(t){K.prototype[t]=function(){var e=this._axis;return e[t].apply(e,arguments)}})),(0,i.default)("dxRangeSelector",W),t.exports=W,W.addPlugin(w.plugin),W.addPlugin(x.plugin),W.addPlugin(C.plugin),W.addPlugin(S.plugin)},function(t,e,n){"use strict";var i=n(4),o=u(n(241)),r=u(n(1028)),a=n(13),s=n(2),l=n(37);function u(t){return t&&t.__esModule?t:{default:t}}var c=o.default.utils.animationSettings,d=o.default.consts.emptySliderMarkerText;function h(t,e,n,i){return[t,e,n,e,n,i,t,i]}function f(t,e){return t<e}function p(t,e){return t>e}function m(t,e){for(var n,i=0,o=e?e.length-1:0,r=t;o-i>1;){if((r=e[n=i+o>>1])===t)return t;t<r?o=n:i=n}return e&&(r=e[t-e[i]<=e[o]-t?i:o]),r}function g(){this._lastSelectedRange=this.getSelectedRange(),delete this._processSelectionChanged}function _(t){var e={renderer:t.renderer,root:t.root,trackersGroup:t.trackersGroup,translator:t.translator};this._params=t,this._areaTracker=t.renderer.path(null,"area").attr({class:"area-tracker",fill:"#000000",opacity:1e-4}).append(t.trackersGroup),this._selectedAreaTracker=t.renderer.path(null,"area").attr({class:"selected-area-tracker",fill:"#000000",opacity:1e-4}).append(t.trackersGroup),this._shutter=t.renderer.path(null,"area").append(t.root),this._sliders=[new r.default(e,0),new r.default(e,1)],this._processSelectionChanged=g}_.prototype={constructor:_,dispose:function(){this._sliders[0].dispose(),this._sliders[1].dispose()},getTrackerTargets:function(){return{area:this._areaTracker,selectedArea:this._selectedAreaTracker,sliders:this._sliders}},_processSelectionChanged:function(t){var e=this.getSelectedRange();(0,a.rangesAreEqual)(e,this._lastSelectedRange)||(this._params.updateSelectedRange(e,this._lastSelectedRange,t),this._lastSelectedRange=e)},update:function(t,e,n,i,o,r,s,l,u){var c=this._params.translator.getScreenRange();this._verticalRange=t,this._minRange=s.minRange,this._maxRange=s.maxRange,this._animationEnabled=e.animationEnabled&&this._params.renderer.animationEnabled(),this._allowSlidersSwap=e.allowSlidersSwap,this._sliders[0].update(t,i,o),this._sliders[1].update(t,i,o),this._sliders[0]._position=this._sliders[1]._position=c[0],this._values=!this._params.translator.isValueProlonged&&e.snapToTicks?l:null,this._areaTracker.attr({points:h(c[0],t[0],c[1],t[1])}),this._isCompactMode=n,this._shutterOffset=i.width/2,this._updateSelectedView(r,u),this._isOnMoving="onmoving"===(0,a.normalizeEnum)(e.callValueChanged),this._updateSelectedRange(),this._applyTotalPosition(!1)},_updateSelectedView:function(t,e){var n={fill:null,"fill-opacity":null,stroke:null,"stroke-width":null};this._isCompactMode?(n.stroke=e,n["stroke-width"]=3,n.sharp="v"):(n.fill=t.color,n["fill-opacity"]=t.opacity),this._shutter.attr(n)},_updateSelectedRange:function(){var t,e=this._sliders;e[0].cancelAnimation(),e[1].cancelAnimation(),this._shutter.stopAnimation(),this._params.translator.getBusinessRange().isEmpty()?(e[0]._setText(d),e[1]._setText(d),e[0]._value=e[1]._value=void 0,e[0]._position=this._params.translator.getScreenRange()[0],e[1]._position=this._params.translator.getScreenRange()[1],this._applyTotalPosition(!1),(t=this).setSelectedRange=i.noop,t._processSelectionChanged===g&&t._processSelectionChanged()):function(t){delete t.setSelectedRange}(this)},_applyTotalPosition:function(t){var e=this._sliders;t=this._animationEnabled&&t,e[0].applyPosition(t),e[1].applyPosition(t);var n=e[0].getCloudBorder()>e[1].getCloudBorder();e[0].setOverlapped(n),e[1].setOverlapped(n),this._applyAreaTrackersPosition(),this._applySelectedRangePosition(t)},_applyAreaTrackersPosition:function(){var t=this._sliders[0].getPosition(),e=this._sliders[1].getPosition();this._selectedAreaTracker.attr({points:h(t,this._verticalRange[0],e,this._verticalRange[1])}).css({cursor:Math.abs(this._params.translator.getScreenRange()[1]-this._params.translator.getScreenRange()[0]-e+t)<.001?"default":"pointer"})},_applySelectedRangePosition:function(t){var e,n,i=this._verticalRange,o=this._sliders[0].getPosition(),r=this._sliders[1].getPosition();n=this._isCompactMode?[o+Math.ceil(this._shutterOffset),(i[0]+i[1])/2,r-Math.floor(this._shutterOffset),(i[0]+i[1])/2]:[h((e=this._params.axis.getVisibleArea())[0],i[0],Math.max(o-Math.floor(this._shutterOffset),e[0]),i[1]),h(e[1],i[0],Math.min(r+Math.ceil(this._shutterOffset),e[1]),i[1])],t?this._shutter.animate({points:n},c):this._shutter.attr({points:n})},getSelectedRange:function(){return{startValue:this._sliders[0].getValue(),endValue:this._sliders[1].getValue()}},setSelectedRange:function(t,e){t=t||{};var n=this._params.translator,i=n.getBusinessRange(),o="discrete"===i.axisType?function(t,e){return t<e}:function(t,e){return t<=e},r=(0,a.adjustVisualRange)({dataType:i.dataType,axisType:i.axisType,base:i.base},{startValue:n.isValid(t.startValue)?n.getCorrectValue(t.startValue,1):void 0,endValue:n.isValid(t.endValue)?n.getCorrectValue(t.endValue,-1):void 0,length:t.length},{min:i.minVisible,max:i.maxVisible,categories:i.categories}),u=r.startValue,c=r.endValue;u=(0,s.isNumeric)(u)?(0,l.adjust)(u):u,c=(0,s.isNumeric)(c)?(0,l.adjust)(c):c;var d=o(n.to(u,-1),n.to(c,1))?[u,c]:[c,u];this._sliders[0].setDisplayValue(d[0]),this._sliders[1].setDisplayValue(d[1]),this._sliders[0]._position=n.to(d[0],-1),this._sliders[1]._position=n.to(d[1],1),this._applyTotalPosition(!0),this._processSelectionChanged(e)},beginSelectedAreaMoving:function(t){var e=this,n=e._sliders,i=(n[0].getPosition()+n[1].getPosition())/2-t,o=t;return r.complete=function(t){e._dockSelectedArea(t)},r;function r(t,r){t!==o&&t>o===t>(n[0].getPosition()+n[1].getPosition())/2-i&&e._moveSelectedArea(t+i,!1,r),o=t}},_dockSelectedArea:function(t){var e=this._params.translator,n=this._sliders;n[0]._position=e.to(n[0].getValue(),-1),n[1]._position=e.to(n[1].getValue(),1),this._applyTotalPosition(!0),this._processSelectionChanged(t)},moveSelectedArea:function(t,e){this._moveSelectedArea(t,!0,e),this._dockSelectedArea(e)},_moveSelectedArea:function(t,e,n){var i=this._params.translator,o=this._sliders,r=o[1].getPosition()-o[0].getPosition(),a=t-r/2,s=t+r/2;a<i.getScreenRange()[0]&&(s=(a=i.getScreenRange()[0])+r),s>i.getScreenRange()[1]&&(a=(s=i.getScreenRange()[1])-r);var l=m(i.from(a,-1),this._values);o[0].setDisplayValue(l),o[1].setDisplayValue(m(i.from(i.to(l,-1)+r,1),this._values)),o[0]._position=a,o[1]._position=s,this._applyTotalPosition(e),this._isOnMoving&&this._processSelectionChanged(n)},placeSliderAndBeginMoving:function(t,e,n){var i=this._params.translator,o=this._sliders,r=t<e?0:1,a=r>0?1:-1,s=r>0?p:f,l=r>0?f:p,u=[],c=[];c[r]=i.from(t,a),c[1-r]=i.from(e,-a),u[1-r]=e,i.isValueProlonged&&(s(t,i.to(c[r],a))&&(c[r]=i.from(t,-a)),s(e,i.to(c[r],-a))&&(c[1-r]=c[r])),this._minRange&&(s(e,i.to(i.add(m(c[r],this._values),this._minRange,-a),-a))&&(c[1-r]=i.add(c[r],this._minRange,-a)),l(t,i.to(i.add(i.getRange()[1-r],this._minRange,a),-a))&&(c[1-r]=i.getRange()[1-r],c[r]=i.add(c[1-r],this._minRange,a),u[1-r]=t)),c[0]=m(c[0],this._values),c[1]=m(c[1],this._values),u[r]=i.to(c[r],a),o[0].setDisplayValue(c[0]),o[1].setDisplayValue(c[1]),o[0]._position=u[0],o[1]._position=u[1],this._applyTotalPosition(!0),this._isOnMoving&&this._processSelectionChanged(n);var d=this.beginSliderMoving(1-r,e);return o[1-r]._sliderGroup.stopAnimation(),this._shutter.stopAnimation(),d(e),d},beginSliderMoving:function(t,e){var n=this,i=n._params.translator,o=n._sliders,r=i.getScreenRange()[0],a=i.getScreenRange()[1],l=t,u=o[1-l].getPosition(),c=e,d=l>0?1:-1,h=l>0?f:p,g=l>0?p:f,_=o[l].getPosition()-e,v=h(o[l].getPosition(),e)?-_:_;return y.complete=function(t){o[l]._setValid(!0),n._dockSelectedArea(t)},y;function y(t,e){var f,p,y,b,w,x;t!==c&&(h(t+v,u)&&((f=n._allowSlidersSwap)&&!i.isValueProlonged&&n._minRange&&(f=i.isValid(i.add(o[1-l].getValue(),n._minRange,-d))),f&&(n._changeMovingSlider(l),l=1-l,p=h,h=g,g=p,_=-(d=-d)*Math.abs(_),v=-_)),g(t+_,u)&&(f=!0,b=o[l],w=o[1-l].getValue(),y=Math.max(Math.min(t+_,a),r),f&&i.isValueProlonged&&(f=!h(y,i.to(w,d))),f&&n._minRange&&((f=!h(y,i.to(i.add(w,n._minRange,d),d)))||(x=i.add(w,n._minRange,d))),f&&n._maxRange&&((f=!g(y,i.to(i.add(w,n._maxRange,d),d)))||(x=i.add(w,n._maxRange,d))),b._setValid(f),b.setDisplayValue(f?m(i.from(y,d),n._values):(0,s.isDefined)(x)?x:b.getValue()),b._position=y,n._applyTotalPosition(!1),b.toForeground(),n._isOnMoving&&n._processSelectionChanged(e)));c=t}},_changeMovingSlider:function(t){var e,n=this._params.translator,i=this._sliders,o=i[1-t].getPosition(),r=t>0?1:-1;i[t].setDisplayValue(m(n.from(o,r),this._values)),e=n.from(o,-r),n.isValueProlonged?e=n.from(o,r):this._minRange&&(e=n.add(e,this._minRange,-r)),i[1-t].setDisplayValue(m(e,this._values)),i[t]._setValid(!0),i[t]._marker._update(),i[0]._position=i[1]._position=o},foregroundSlider:function(t){this._sliders[t].toForeground()}},e.SlidersController=_},function(t,e,n){"use strict";var i=n(241),o=i.utils.animationSettings,r=i.formatValue,a=n(1029),s=n(58);function l(t,e){this._translator=t.translator,this._sliderGroup=t.renderer.g().attr({class:"slider"}).append(t.root),this._line=t.renderer.path(null,"line").append(this._sliderGroup),this._marker=new a(t.renderer,this._sliderGroup,1===e),this._tracker=t.renderer.rect().attr({class:"slider-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"w-resize"}).append(t.trackersGroup)}l.prototype={constructor:l,cancelAnimation:function(){this._sliderGroup.stopAnimation(),this._tracker.stopAnimation()},applyPosition:function(t){var e=this._sliderGroup,n=this._tracker,i={translateX:this._position};this._marker.setPosition(this._position),t?(e.animate(i,o),n.animate(i,o)):(e.attr(i),n.attr(i))},_setValid:function(t){this._marker.setValid(t),this._line.attr({stroke:this._colors[Number(t)]})},_setText:function(t){this._marker.setText(t)},update:function(t,e,n){this._formatOptions={format:n.format,customizeText:n.customizeText},this._marker.applyOptions(n,this._translator.getScreenRange()),this._colors=[n.invalidRangeColor,e.color],this._sliderGroup.attr({translateY:t[0]}),this._line.attr({"stroke-width":e.width,stroke:e.color,"stroke-opacity":e.opacity,sharp:"h",points:[0,0,0,t[1]-t[0]]});var i,o=(i=e.width,s.touchEvents||s.pointer?20:8<i?i:8);this._tracker.attr({x:-o/2,y:0,width:o,height:t[1]-t[0],translateY:t[0]})},toForeground:function(){this._sliderGroup.toForeground()},getSliderTracker:function(){return this._tracker},getPosition:function(){return this._position},setDisplayValue:function(t){this._value=t,this._setText(r(t,this._formatOptions))},setOverlapped:function(t){this._marker.setOverlapped(t)},getValue:function(){return this._value},on:function(t,e){this._tracker.on(t,e),this._marker.getTracker().on(t,e)},getCloudBorder:function(){return this._marker.getBorderPosition()},dispose:function(){this._marker.dispose()}},t.exports=l},function(t,e,n){"use strict";var i=n(13),o=n(241).consts.pointerSize;function r(t,e,n){this._isLeftPointer=n,this._isOverlapped=!1,this._group=t.g().attr({class:"slider-marker"}).append(e),this._area=t.path(null,"area").append(this._group),this._label=t.text().attr({align:"left"}).append(this._group),this._tracker=t.rect().attr({class:"slider-marker-tracker",fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(this._group),this._border=t.rect(0,0,1,0)}r.prototype={constructor:r,_getRectSize:function(t){return{width:Math.round(2*this._paddingLeftRight+t.width),height:Math.round(2*this._paddingTopBottom+t.height)}},_getTextSize:function(){var t=this._label.getBBox();return!this._textHeight&&isFinite(t.height)&&(this._textHeight=t.height),{width:t.width,height:this._textHeight,y:t.y}},_getAreaPointsInfo:function(t){var e=this._getRectSize(t),n=e.width,i=e.height,r=-n,a=0,s=o,l=0,u=-o,c=this._position,d=this._isLeftPointer,h=function(){r++,a++,s++,l++,u++},f=function(){s>a?s=a:u<r&&(u=r),d&&h()},p=c;return d?c>this._range[1]-n?(a=-c+this._range[1],r=a-n,f(),p+=r):(r=u=0,a=n):c-this._range[0]<n?(r=-(c-this._range[0]),a=r+n,f(),p+=a):(s=0,h()),this._borderPosition=p,{offset:r,isCut:(!d||l!==u)&&(d||l!==s),points:[r,0,a,0,a,i,s,i,l,i+o,u,i,r,i]}},_update:function(){var t,e=this;clearTimeout(e._timeout),e._label.attr({text:e._text||""});var n=e._getTextSize(),i=e._getRectSize(n);function r(t,n){n=n||e._getRectSize(t),e._group.attr({translateY:-(n.height+o)});var i=e._getAreaPointsInfo(t),r=i.points,a=i.offset;e._area.attr({points:r}),e._border.attr({x:e._isLeftPointer?r[0]-1:r[2],height:i.isCut?n.height:n.height+o}),e._tracker.attr({translateX:a,width:n.width,height:n.height+o}),e._label.attr({translateX:e._paddingLeftRight+a,translateY:n.height/2-(t.y+t.height/2)})}t=e._textSize||n,t=e._textSize=n.width>t.width||n.height>t.height?n:t,e._timeout=setTimeout((function(){r(n,i),e._textSize=n}),75),r(t)},setText:function(t){this._text=t},setPosition:function(t){this._position=t,this._update()},applyOptions:function(t,e){this._range=e,this._paddingLeftRight=t.paddingLeftRight,this._paddingTopBottom=t.paddingTopBottom,this._textHeight=null,this._colors=[t.invalidRangeColor,t.color],this._area.attr({fill:t.color}),this._border.attr({fill:t.borderColor}),this._label.css((0,i.patchFontOptions)(t.font)),this._update()},getTracker:function(){return this._tracker},setValid:function(t){this._area.attr({fill:this._colors[Number(t)]})},setColor:function(t){this._area.attr({fill:t})},dispose:function(){clearTimeout(this._timeout)},setOverlapped:function(t){this._isOverlapped!==t&&(t?this._border.append(this._group):this._isOverlapped&&this._border.remove(),this._isOverlapped=t)},getBorderPosition:function(){return this._borderPosition}},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tracker=w;var i=u(n(6)),o=u(n(28)),r=u(n(10)),a=u(n(15)),s=n(5),l=n(58);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d=r.default.getWindow();function h(t){var e=t||d.event,n=e.originalEvent,i=e.touches,o=!!n&&n.pointerType,r=!!n&&n.touches,a=n&&void 0!==o&&(o===(n.MSPOINTER_TYPE_TOUCH||"touch")||o===(n.MSPOINTER_TYPE_MOUSE||"mouse")&&1===n.buttons),s=i&&i.length>0||r&&r.length>0;return 1===e.which||a||s}function f(t){var e=t.originalEvent,n=t.touches,i=e&&e.touches;return n&&n.length>1||i&&i.length>1||null}function p(t){f(t)||t.preventDefault()}function m(t){f(t)||(t.stopPropagation(),t.preventDefault())}function g(t){return t&&t.type&&0===t.type.indexOf("touch")}function _(t){var e=t.originalEvent,n=0;return t.pageX?n=t.pageX:e&&e.pageX&&(n=e.pageX),e&&e.touches&&(e.touches.length>0?n=e.touches[0].pageX:e.changedTouches.length>0&&(n=e.changedTouches[0].pageX)),n}function v(t,e,n,i){var r,a,s,l=!1,u=null,d=(c(r={},o.default.move,(function(e){var o,r;a===g(e)&&(h(e)||f(e),l&&(o=_(e),r=i(),u?u(o-r,e):n.manualRangeSelectionEnabled&&Math.abs(s-o)>=10&&(u=t.placeSliderAndBeginMoving(s-r,o-r,e))))})),c(r,o.default.up,(function(e){var o;l&&(o=_(e),!u&&n.moveSelectedRangeByClick&&Math.abs(s-o)<10&&t.moveSelectedArea(o-i(),e),f(e))})),r);function f(t){l&&(l=!1,u&&(u.complete(t),u=null))}return e.on(o.default.down,(function(t){n.enabled&&h(t)&&!l&&(l=!0,a=g(t),s=_(t))})),d}function y(t,e,n,i){var r,a,s=!1,l=null,u=(c(r={},o.default.move,(function(t){a===g(t)&&(h(t)||d(t),s&&(p(t),l(_(t)-i(),t)))})),c(r,o.default.up,d),r);function d(t){s&&(s=!1,l.complete(t),l=null)}return e.on(o.default.down,(function(e){n.enabled&&h(e)&&!s&&(s=!0,a=g(e),l=t.beginSelectedAreaMoving(_(e)-i()),m(e))})),u}function b(t,e,n,i){var r,a,l=!1,u=null,d=(c(r={},o.default.move,(function(t){a===g(t)&&(h(t)||f(t),l&&(p(t),u(_(t)-i(),t)))})),c(r,o.default.up,f),r);function f(t){l&&(l=!1,u.complete(t),u=null)}return(0,s.each)(e,(function(e,r){var s;r.on((c(s={},o.default.down,(function(o){n.enabled&&h(o)&&!l&&(l=!0,a=g(o),u=t.beginSliderMoving(e,_(o)-i()),m(o))})),c(s,o.default.move,(function(){u||t.foregroundSlider(e)})),s))})),d}function w(t){var e=this._state={},n=t.controller.getTrackerTargets();function o(){return t.renderer.getRootOffset().left}l.pointer&&t.renderer.root.css({msTouchAction:"pinch-zoom"}),this._docEvents=[y(t.controller,n.selectedArea,e,o),v(t.controller,n.area,e,o),b(t.controller,n.sliders,e,o)],(0,s.each)(this._docEvents,(function(t,e){i.default.on(a.default.getDocument(),e)}))}w.prototype={constructor:w,dispose:function(){(0,s.each)(this._docEvents,(function(t,e){i.default.off(a.default.getDocument(),e)}))},update:function(t,e){var n=this._state;n.enabled=t,n.moveSelectedRangeByClick=e.moveSelectedRangeByClick,n.manualRangeSelectionEnabled=e.manualRangeSelectionEnabled}}},function(t,e,n){"use strict";function i(t,e){return void 0!==t?t:e}function o(t){this._params=t,this._clipRect=t.renderer.clipRect(),t.root.attr({"clip-path":this._clipRect.id})}o.prototype={constructor:o,update:function(t,e,n,o,r,a){var s=this._params.renderer,l=this._params.root,u=n.width-n.left;t=t||{},l.clear(),this._clipRect.attr({x:n.left,y:n.top,width:u,height:n.height}),o||(i(t.visible,e.visible)&&(t.color&&s.rect(n.left,n.top,u+1,n.height).attr({fill:i(t.color,e.color),class:"dx-range-selector-background"}).append(l),t.image&&t.image.url&&s.image(n.left,n.top,u+1,n.height,t.image.url,i(t.image.location,e.image.location)).append(l)),a&&a.isShowChart()&&function(t,e,n,i){var o=e.getSeries();if(o.length){var r=o[0].getValueAxis();r.updateCanvas({top:n.top,bottom:0,height:n.height+n.top}),e.adjustSeriesDimensions();var a=e.getBoundRange().val;a.sortCategories(r.getCategoriesSorter()),r.setBusinessRange(a),o.forEach((function(e){e._extGroups.seriesGroup=e._extGroups.labelsGroup=t,e.draw(i)}))}}(s.g().attr({class:"dxrs-series-group"}).append(l),a,n,r))}},e.RangeView=o},function(t,e,n){"use strict";var i=f(n(288)),o=f(n(410)),r=n(2),a=n(0),s=n(16),l=n(5),u=f(n(13)),c=f(n(123)),d=f(n(287)),h=n(407);function f(t){return t&&t.__esModule?t:{default:t}}var p=function(t){var e,n=this._themeManager=(e=t.chart,new h.ThemeManager({options:e,themeSection:"rangeSelector.chart",fontFields:["commonSeriesSettings.label.font"]}));n.setTheme(t.chart.theme);var i=n.getOptions("topIndent"),o=n.getOptions("bottomIndent");this._indent={top:i>=0&&i<1?i:0,bottom:o>=0&&o<1?o:0},this._valueAxis=n.getOptions("valueAxisRangeSelector")||{},this._hideChart=!1,this._series=this._calculateSeries(t),this._seriesFamilies=[]};p.prototype={constructor:p,_calculateSeries:function(t){var e,n,o,r,s,l,c,h=[],f=t.dataSource||[],p=this._themeManager,m=p.getOptions("seriesTemplate"),g=m?u.default.processSeriesTemplate(m,f):t.chart.series,_=this._valueAxis;for(t.dataSource&&!g&&(g={argumentField:r=t.dataSourceField||"arg",valueField:r},this._hideChart=!0),g=Array.isArray(g)?g:g?[g]:[],s=0;s<g.length;s++)(e=(0,a.extend)(!0,{},g[s])).rotated=!1,(n=p.getOptions("series",e,g.length)).argumentField=n.argumentField||t.dataSourceField,n.name||(n.name="Series "+(s+1).toString()),f&&f.length>0&&(l=new i.default.Series({renderer:t.renderer,argumentAxis:t.argumentAxis,valueAxis:t.valueAxis,incidentOccurred:t.incidentOccurred},n),h.push(l));if(h.length)for(c={groups:[{series:h,valueAxis:t.valueAxis,valueOptions:{type:_.type,valueType:r?t.valueType:_.valueType}}],argumentOptions:{categories:t.categories,argumentType:t.valueType,type:t.axisType}},o=d.default.validateData(f,c,t.incidentOccurred,p.getOptions("dataPrepareSettings")),this.argCategories=c.categories,s=0;s<h.length;s++)h[s].updateData(o[h[s].getArgumentField()]);return h},createPoints:function(){if(0!==this._series.length){var t=this._series,e=new c.default.Range,n=t[0].getArgumentAxis(),i=this._themeManager,a=i.getOptions("negativesAsZeroes"),u=i.getOptions("negativesAsZeros");t.forEach((function(t){e.addRange(t.getArgumentRange())})),n.getTranslator().updateBusinessRange(e),t.forEach((function(t){t.createPoints()})),this._seriesFamilies=function(t,e,n,i,r,a){var u=[],c=[];return(0,l.each)(t,(function(t,e){-1===(0,s.inArray)(e.type,c)&&c.push(e.type)})),(0,l.each)(c,(function(s,l){var c=new o.default.SeriesFamily({type:l,equalBarWidth:e,minBubbleSize:n,maxBubbleSize:i,barWidth:r.barWidth,barGroupPadding:r.barGroupPadding,barGroupWidth:r.barGroupWidth,negativesAsZeroes:a});c.add(t),c.adjustSeriesValues(),u.push(c)})),u}(t,i.getOptions("equalBarWidth"),i.getOptions("minBubbleSize"),i.getOptions("maxBubbleSize"),{barWidth:i.getOptions("barWidth"),barGroupPadding:i.getOptions("barGroupPadding"),barGroupWidth:i.getOptions("barGroupWidth")},(0,r.isDefined)(a)?a:u)}},adjustSeriesDimensions:function(){(0,l.each)(this._seriesFamilies,(function(t,e){e.adjustSeriesDimensions()}))},getBoundRange:function(){var t,e,n,i,o,a=this._valueAxis,s=new c.default.Range({min:a.min,minVisible:a.min,max:a.max,maxVisible:a.max,axisType:a.type,base:a.logarithmBase}),u=new c.default.Range({});return(0,l.each)(this._series,(function(e,n){t=n.getRangeData(),s.addRange(t.val),u.addRange(t.arg)})),s.isEmpty()||u.isEmpty()||(i=a.inverted?this._indent.top:this._indent.bottom,o=a.inverted?this._indent.bottom:this._indent.top,e=s.max-s.min,n=((0,r.isNumeric)(s.maxVisible)?s.maxVisible:s.max)-((0,r.isNumeric)(s.minVisible)?s.minVisible:s.min),(0,r.isDate)(s.min)?s.min=new Date(s.min.valueOf()-e*i):s.min-=e*i,(0,r.isDate)(s.max)?s.max=new Date(s.max.valueOf()+e*o):s.max+=e*o,(0,r.isNumeric)(n)&&(s.maxVisible=s.maxVisible?s.maxVisible+n*o:void 0,s.minVisible=s.minVisible?s.minVisible-n*i:void 0),s.invert=a.inverted),{arg:u,val:s}},getMarginOptions:function(t){var e=Math.min(t.width,t.height)*this._themeManager.getOptions("maxBubbleSize");return this._series.reduce((function(t,n){var i=n.getMarginOptions();return!0===i.processBubbleSize&&(i.size=e),u.default.mergeMarginOptions(t,i)}),{})},getSeries:function(){return this._series},isEmpty:function(){return 0===this.getSeries().length},isShowChart:function(){return!this._hideChart},getCalculatedValueType:function(){var t=this._series[0];return null===t||void 0===t?void 0:t.argumentType},getThemeManager:function(){return this._themeManager}},e.SeriesDataSource=p},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1034),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={label:{optionName:"label",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.RangeSlider=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,end:r.number,endName:r.string,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,keyStep:r.number,label:r.object,max:r.number,min:r.number,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,showRange:r.bool,start:r.number,startName:r.string,step:r.number,tabIndex:r.number,tooltip:r.object,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.array,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Label=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Tooltip=d,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(497),a=n(498),s=n(8),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(11),d=n(12),h=r.inherit({_supportedKeys:function(){var t=this.option("rtlEnabled"),e=this,n=function(t,n){e.option("start")===e.option("end")&&(e._capturedHandle=n,t.target=e._capturedHandle,o.trigger(e._capturedHandle,"focus"))},r=function(n,o,r){var a=i(n.target).hasClass("dx-rangeslider-start-handle")?"start":"end",s=e.option(a);o=e._valueStep(o),s+=r*(t?-o:o),e.option(a,s)},a=function(i,o){n(i,t?e._$handleStart:e._$handleEnd),r(i,o,1)},s=function(i,o){n(i,t?e._$handleEnd:e._$handleStart),r(i,o,-1)};return l(this.callBase(),{leftArrow:function(t){t.preventDefault(),t.stopPropagation(),s(t,this.option("step"))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),a(t,this.option("step"))},pageUp:function(t){t.preventDefault(),t.stopPropagation(),a(t,this.option("step")*this.option("keyStep"))},pageDown:function(t){t.preventDefault(),t.stopPropagation(),s(t,this.option("step")*this.option("keyStep"))},home:function(t){t.preventDefault(),t.stopPropagation();var e=i(t.target).hasClass("dx-rangeslider-start-handle"),n=e?"start":"end",o=e?"min":"start",r=this.option(o);this.option(n,r)},end:function(t){t.preventDefault(),t.stopPropagation();var e=i(t.target).hasClass("dx-rangeslider-start-handle"),n=e?"start":"end",o=e?"end":"max",r=this.option(o);this.option(n,r)}})},_getDefaultOptions:function(){return l(this.callBase(),{start:40,end:60,value:[40,60],startName:"",endName:""})},_renderSubmitElement:function(){var t=this.$element();this._$submitStartElement=i("<input>").attr("type","hidden").attr("name",this.option("startName")).appendTo(t),this._$submitEndElement=i("<input>").attr("type","hidden").attr("name",this.option("endName")).appendTo(t)},_initOptions:function(t){this.callBase(t);var e=this.initialOption("value"),n=this.option("value");n[0]===e[0]&&n[1]===e[1]?this.option("value",[this.option("start"),this.option("end")]):this.option({start:n[0],end:n[1]})},_initMarkup:function(){this.$element().addClass("dx-rangeslider"),this.callBase()},_renderContentImpl:function(){this._callHandlerMethod("repaint"),this.callBase()},_renderHandle:function(){this._$handleStart=this._renderHandleImpl(this.option("start"),this._$handleStart).addClass("dx-rangeslider-start-handle"),this._$handleEnd=this._renderHandleImpl(this.option("end"),this._$handleEnd).addClass("dx-rangeslider-end-handle"),this._updateHandleAriaLabels()},_startHandler:function(t){var e=t.event,n=this._$range,i=n.width(),o=c.eventData(e).x-this._$bar.offset().left,r=n.position().left,a=n.position().left+i,s=(this.option("rtlEnabled")?-1:1)*((r+a)/2-o)>0;this._capturedHandle=s?this._$handleStart:this._$handleEnd,this.callBase(t)},_updateHandleAriaLabels:function(){this.setAria("label",d.getFormatter("dxRangeSlider-ariaFrom")(this.option("dxRangeSlider-ariaFrom")),this._$handleStart),this.setAria("label",d.getFormatter("dxRangeSlider-ariaTill")(this.option("dxRangeSlider-ariaTill")),this._$handleEnd)},_activeHandle:function(){return this._capturedHandle},_updateHandlePosition:function(t){var e=this.option("rtlEnabled")?-1:1,n=this.option("max"),i=this.option("min"),r=this._startOffset+e*t.event.offset/this._swipePixelRatio(),s=(r=r.toPrecision(12))*(n-i)+i;this._updateSelectedRangePosition(r,r),a.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(r);var l,u=this.option("start"),c=this.option("end");u===c&&(l=s<u?this._$handleStart:this._$handleEnd,o.trigger(l,"focus"),l&&l!==this._capturedHandle&&(this._updateSelectedRangePosition((u-i)/(n-i),(c-i)/(n-i)),this._toggleActiveState(this._activeHandle(),!1),this._toggleActiveState(l,!0),this._capturedHandle=l),this._updateSelectedRangePosition(r,r),this._changeValueOnSwipe(r))},_updateSelectedRangePosition:function(t,e){var n=this.option("rtlEnabled"),i=this._capturedHandle===this._$handleStart&&n||this._capturedHandle===this._$handleEnd&&!n,o=i?"right":"left";n^i?this._$range.css(o,100-100*e+"%"):this._$range.css(o,100*t+"%")},_setValueOnSwipe:function(t){var e=this._capturedHandle===this._$handleStart?"start":"end",n=this.option("start"),i=this.option("end"),o=this.option("max"),r=this.option("min");n=Math.min(Math.max(n,r),o),i=Math.min(Math.max(i,r),o),"start"===e?n=t>i?i:t:i=t<n?n:t,this.option("value",[n,i])},_renderValue:function(){var t=this.option("start"),e=this.option("end"),n=this.option("min"),i=this.option("max"),o=this.option("rtlEnabled");t=Math.max(n,Math.min(t,i)),e=Math.max(t,Math.min(e,i)),this._setOptionWithoutOptionChange("start",t),this._setOptionWithoutOptionChange("end",e),this._setOptionWithoutOptionChange("value",[t,e]),this._$submitStartElement.val(u(t)),this._$submitEndElement.val(u(e));var r=i===n?0:(e-n)/(i-n),s=parseFloat((100*(i===n?0:(t-n)/(i-n))).toPrecision(12))+"%",l=parseFloat((100*(1-r)).toPrecision(12))+"%";!this._needPreventAnimation&&this._setRangeStyles({right:o?s:l,left:o?l:s}),a.getInstance(this._$handleStart).option("value",t),a.getInstance(this._$handleEnd).option("value",e)},_callHandlerMethod:function(t,e){a.getInstance(this._$handleStart)[t](e),a.getInstance(this._$handleEnd)[t](e)},_setValueOption:function(){var t=this.option("start"),e=this.option("end");this.option("value",[t,e])},_optionChanged:function(t){switch(t.name){case"value":if(t.value[0]===t.previousValue[0]&&t.value[1]===t.previousValue[1])break;this._setOptionWithoutOptionChange("start",t.value[0]),this._setOptionWithoutOptionChange("end",t.value[1]),this._renderValue();var e=this.option("start"),n=this.option("end");this._createActionByOption("onValueChanged",{excludeValidators:["disabled","readOnly"]})({start:e,end:n,value:[e,n],event:this._valueChangeEventInstance}),this.validationRequest.fire({value:[e,n],editor:this}),this._saveValueChangeEvent(void 0);break;case"start":case"end":this._setValueOption();break;case"startName":this._$submitStartElement.attr("name",t.value);break;case"endName":this._$submitEndElement.attr("name",t.value);break;case"name":break;default:this.callBase(t)}}});s("dxRangeSlider",h),t.exports=h,t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(3),o=n(6),r=n(17),a=n(74),s=n(18),l=n(0).extend,u=n(4).applyServerDecimalSeparator,c=n(8),d=n(477),h=n(11),f=n(28),p=n(159),m=n(498),g=n(79),_=n(25),v=n(164),y=n(36),b=n(7).Deferred,w=d.inherit({_activeStateUnit:".dx-slider-handle",_supportedKeys:function(){var t=this.option("rtlEnabled"),e=this,n=function(t,n){t=e._valueStep(t);var i=e.option("step"),o=e.option("value"),r=(o-e.option("min"))%i,a=n?o-t+(r?i-r:0):o+t-r,s=e.option("min"),l=e.option("max");return a<s?a=s:a>l&&(a=l),a},i=function(i){e.option("value",n(i,t))},o=function(i){e.option("value",n(i,!t))};return l(this.callBase(),{leftArrow:function(t){t.preventDefault(),t.stopPropagation(),o(this.option("step"))},rightArrow:function(t){t.preventDefault(),t.stopPropagation(),i(this.option("step"))},pageUp:function(t){t.preventDefault(),t.stopPropagation(),i(this.option("step")*this.option("keyStep"))},pageDown:function(t){t.preventDefault(),t.stopPropagation(),o(this.option("step")*this.option("keyStep"))},home:function(t){t.preventDefault(),t.stopPropagation();var e=this.option("min");this.option("value",e)},end:function(t){t.preventDefault(),t.stopPropagation();var e=this.option("max");this.option("value",e)}})},_getDefaultOptions:function(){return l(this.callBase(),{value:50,hoverStateEnabled:!0,activeStateEnabled:!0,step:1,showRange:!0,tooltip:{enabled:!1,format:function(t){return t},position:"top",showMode:"onHover"},label:{visible:!1,position:"bottom",format:function(t){return t}},keyStep:1,useInkRipple:!1,validationMessageOffset:y.isMaterial()?{h:18,v:0}:{h:7,v:4},focusStateEnabled:!0})},_toggleValidationMessage:function(t){this.option("isValid")||this.$element().toggleClass("dx-invalid-message-visible",t)},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===s.real().deviceType&&!s.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){var t=y.current();return y.isMaterial(t)},options:{useInkRipple:!0}}])},_initMarkup:function(){this.$element().addClass("dx-slider"),this._renderSubmitElement(),this.option("useInkRipple")&&this._renderInkRipple(),this.callBase(),this._renderLabels(),this._renderStartHandler(),this._renderAriaMinAndMax()},_attachFocusEvents:function(){this.callBase();var t=this.NAME+"Validation",e=h.addNamespace("focusin",t),n=h.addNamespace("focusout",t),i=this._focusTarget();o.on(i,e,this._toggleValidationMessage.bind(this,!0)),o.on(i,n,this._toggleValidationMessage.bind(this,!1))},_detachFocusEvents:function(){this.callBase();var t=this._focusTarget();this._toggleValidationMessage(!1),o.off(t,this.NAME+"Validation")},_render:function(){this.callBase(),this._repaintHandle()},_renderSubmitElement:function(){this._$submitElement=i("<input>").attr("type","hidden").appendTo(this.$element())},_getSubmitElement:function(){return this._$submitElement},_renderInkRipple:function(){this._inkRipple=g.render({waveSizeCoefficient:.7,isCentered:!0,wavesNumber:2,useHoldAnimation:!1})},_renderInkWave:function(t,e,n,i){if(this._inkRipple){var o={element:t,event:e,wave:i};n?this._inkRipple.showWave(o):this._inkRipple.hideWave(o)}},_visibilityChanged:function(){this.repaint()},_renderWrapper:function(){this.callBase(),this._$wrapper.addClass("dx-slider-wrapper"),this._createComponent(this._$wrapper,v,{elastic:!1,immediate:!0,onStart:this._swipeStartHandler.bind(this),onUpdated:this._swipeUpdateHandler.bind(this),onEnd:this._swipeEndHandler.bind(this),itemSizeFunc:this._itemWidthFunc.bind(this)})},_renderContainer:function(){this.callBase(),this._$bar.addClass("dx-slider-bar")},_renderRange:function(){this.callBase(),this._$range.addClass("dx-slider-range"),this._renderHandle(),this._renderRangeVisibility()},_renderRangeVisibility:function(){this._$range.toggleClass("dx-slider-range-visible",Boolean(this.option("showRange")))},_renderHandle:function(){this._$handle=this._renderHandleImpl(this.option("value"),this._$handle)},_renderHandleImpl:function(t,e){var n=e||i("<div>").appendTo(this._$range),o=this.option("tooltip.format"),r=this.option("tooltip.enabled"),a=this.option("tooltip.position");return this.$element().toggleClass("dx-slider-tooltip-position-bottom",r&&"bottom"===a).toggleClass("dx-slider-tooltip-position-top",r&&"top"===a),this._createComponent(n,m,{value:t,tooltipEnabled:r,tooltipPosition:a,tooltipFormat:o,tooltipShowMode:this.option("tooltip.showMode"),tooltipFitIn:this.$element()}),n},_renderAriaMinAndMax:function(){this.setAria({valuemin:this.option("min"),valuemax:this.option("max")},this._$handle)},_hoverStartHandler:function(t){m.getInstance(i(t.currentTarget)).updateTooltip()},_toggleActiveState:function(t,e){this.callBase(t,e),e&&m.getInstance(t).updateTooltip(),this._renderInkWave(t,null,!!e,1)},_toggleFocusClass:function(t,e){if(this.callBase(t,e),!this._disposed){var n=i(e||this._focusTarget());this._renderInkWave(n,null,t,0)}},_renderLabels:function(){if(this.$element().removeClass("dx-slider-label-position-bottom").removeClass("dx-slider-label-position-top"),this.option("label.visible")){var t=this.option("min"),e=this.option("max"),n=this.option("label.position"),o=this.option("label.format");this._$minLabel||(this._$minLabel=i("<div>").addClass("dx-slider-label").appendTo(this._$wrapper)),this._$minLabel.html(a.format(t,o)),this._$maxLabel||(this._$maxLabel=i("<div>").addClass("dx-slider-label").appendTo(this._$wrapper)),this._$maxLabel.html(a.format(e,o)),this.$element().addClass("dx-slider-label-position-"+n)}else this._$minLabel&&(this._$minLabel.remove(),delete this._$minLabel),this._$maxLabel&&(this._$maxLabel.remove(),delete this._$maxLabel)},_renderStartHandler:function(){var t=h.addNamespace(f.down,this.NAME),e=h.addNamespace(_.name,this.NAME),n=this._createAction(this._startHandler.bind(this)),i=this.$element();o.off(i,t),o.on(i,t,(function(t){h.isMouseEvent(t)&&n({event:t})})),o.off(i,e),o.on(i,e,function(t){var e=this._activeHandle();e&&(o.trigger(e,"focusin"),o.trigger(e,"focus")),n({event:t})}.bind(this))},_itemWidthFunc:function(){return this._itemWidthRatio},_swipeStartHandler:function(t){var e=this.option("rtlEnabled");h.isTouchEvent(t.event)&&this._createAction(this._startHandler.bind(this))({event:t.event}),this._feedbackDeferred=new b,p.lock(this._feedbackDeferred),this._toggleActiveState(this._activeHandle(),this.option("activeStateEnabled")),this._startOffset=this._currentRatio;var n=this._startOffset*this._swipePixelRatio(),i=(1-this._startOffset)*this._swipePixelRatio();t.event.maxLeftOffset=e?i:n,t.event.maxRightOffset=e?n:i,this._itemWidthRatio=this.$element().width()/this._swipePixelRatio(),this._needPreventAnimation=!0},_swipeEndHandler:function(t){this._feedbackDeferred.resolve(),this._toggleActiveState(this._activeHandle(),!1);var e=this.option("rtlEnabled")?-1:1;delete this._needPreventAnimation,this._changeValueOnSwipe(this._startOffset+e*t.event.targetOffset/this._swipePixelRatio()),delete this._startOffset,this._renderValue()},_activeHandle:function(){return this._$handle},_swipeUpdateHandler:function(t){this._saveValueChangeEvent(t),this._updateHandlePosition(t)},_updateHandlePosition:function(t){var e=this.option("rtlEnabled")?-1:1,n=Math.min(this._startOffset+e*t.event.offset/this._swipePixelRatio(),1);this._$range.width(100*n+"%"),m.getInstance(this._activeHandle()).fitTooltipPosition,this._changeValueOnSwipe(n)},_swipePixelRatio:function(){var t=this.option("min");return(this.option("max")-t)/this._valueStep(this.option("step"))},_valueStep:function(t){return t&&!isNaN(t)||(t=1),0===(t=parseFloat(t.toFixed(5)))&&(t=1e-5),t},_changeValueOnSwipe:function(t){var e=this.option("min"),n=this.option("max"),i=this._valueStep(this.option("step")),o=e+t*(n-e);if(!(i<0))if(o===n||o===e)this._setValueOnSwipe(o);else{var r=(i+"").split(".")[1],a=(e+"").split(".")[1],s=Math.max(r&&r.length||0,a&&a.length||0),l=Math.round((o-e)/i);o=Number((l*i+e).toFixed(s)),this._setValueOnSwipe(Math.max(Math.min(o,n),e))}},_setValueOnSwipe:function(t){this.option("value",t)},_startHandler:function(t){var e=t.event;this._currentRatio=(h.eventData(e).x-this._$bar.offset().left)/this._$bar.width(),this.option("rtlEnabled")&&(this._currentRatio=1-this._currentRatio),this._saveValueChangeEvent(e),this._changeValueOnSwipe(this._currentRatio)},_renderValue:function(){this.callBase();var t=this.option("value");this._getSubmitElement().val(u(t)),m.getInstance(this._activeHandle()).option("value",t)},_setRangeStyles:function(t){t&&this._$range.css(t)},_callHandlerMethod:function(t,e){m.getInstance(this._$handle)[t](e)},_repaintHandle:function(){this._callHandlerMethod("repaint")},_fitTooltip:function(){this._callHandlerMethod("fitTooltipPosition")},_optionChanged:function(t){switch(t.name){case"visible":this.callBase(t),this._renderHandle(),this._repaintHandle(),r.triggerShownEvent(this.$element());break;case"min":case"max":this._renderValue(),this.callBase(t),this._renderLabels(),this._renderAriaMinAndMax(),this._fitTooltip();break;case"step":this._renderValue();break;case"keyStep":break;case"showRange":this._renderRangeVisibility();break;case"tooltip":this._renderHandle();break;case"label":this._renderLabels();break;case"useInkRipple":this._invalidate();break;default:this.callBase(t)}},_refresh:function(){this._toggleRTLDirection(this.option("rtlEnabled")),this._renderDimensions(),this._renderValue(),this._renderHandle(),this._repaintHandle()},_clean:function(){delete this._inkRipple,this.callBase()}});c("dxSlider",w),t.exports=w},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1037),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.RecurrenceEditor=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,tabIndex:r.number,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";t.exports=n(499),t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(220),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultHeight:"height",defaultWidth:"width"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.Resizable=a,a.propTypes={elementAttr:r.object,handles:r.oneOf(["bottom","left","right","top","all"]),height:r.oneOfType([r.func,r.number,r.string]),maxHeight:r.number,maxWidth:r.number,minHeight:r.number,minWidth:r.number,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onResize:r.func,onResizeEnd:r.func,onResizeStart:r.func,rtlEnabled:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(444),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={col:{optionName:"cols",isCollectionItem:!0},item:{optionName:"items",isCollectionItem:!0},row:{optionName:"rows",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ResponsiveBox=l,l.propTypes={cols:r.array,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,rows:r.array,rtlEnabled:r.bool,screenByWidth:r.func,singleColumnScreen:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cols",e.IsCollectionItem=!0,e}(s.default);e.Col=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={location:{optionName:"location",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="location",e.IsCollectionItem=!0,e}(s.default);e.Location=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="rows",e.IsCollectionItem=!0,e}(s.default);e.Row=h,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1041),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator"},e._expectedChildren={adaptiveLayout:{optionName:"adaptiveLayout",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},link:{optionName:"link",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},node:{optionName:"node",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Sankey=l,l.propTypes={adaptiveLayout:r.object,alignment:r.oneOfType([r.array,r.oneOf(["bottom","center","top"])]),dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,export:r.object,hoverEnabled:r.bool,label:r.object,link:r.object,loadingIndicator:r.object,margin:r.object,node:r.object,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onLinkClick:r.oneOfType([r.func,r.string]),onLinkHoverChanged:r.func,onNodeClick:r.oneOfType([r.func,r.string]),onNodeHoverChanged:r.func,onOptionChanged:r.func,palette:r.oneOfType([r.array,r.oneOf(["Bright","Default","Harmony Light","Ocean","Pastel","Soft","Soft Pastel","Vintage","Violet","Carmine","Dark Moon","Dark Violet","Green Mist","Soft Blue","Material","Office"])]),paletteExtensionMode:r.oneOf(["alternate","blend","extrapolate"]),pathModified:r.bool,redrawOnResize:r.bool,rtlEnabled:r.bool,size:r.object,sortData:r.object,sourceField:r.string,targetField:r.string,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,weightField:r.string};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adaptiveLayout",e}(s.default);e.AdaptiveLayout=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hatching",e}(s.default);e.Hatching=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e}(s.default);e.HoverStyle=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},sankeyborder:{optionName:"border",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e}(s.default);e.Label=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="link",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},sankeyborder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Link=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="node",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},sankeyborder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Node=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Sankeyborder=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Subtitle=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.Title=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"linkTooltipTemplate",render:"linkTooltipRender",component:"linkTooltipComponent",keyFn:"linkTooltipKeyFn"},{tmplOption:"nodeTooltipTemplate",render:"nodeTooltipRender",component:"nodeTooltipComponent",keyFn:"nodeTooltipKeyFn"}],e}(s.default);e.Tooltip=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=T,e.default=l},function(t,e,n){"use strict";var i=n(500),o=n(1046).setTooltipCustomOptions;i.addPlugin(n(119).plugin),i.addPlugin(n(121).plugin),i.addPlugin(n(1047).plugin),i.addPlugin(n(139).plugin),i.addPlugin(n(122).plugin),o(i),t.exports=i,t.exports.default=t.exports},function(t,e,n){"use strict";var i=["normal","hover"],o=n(2).isDefined;function r(t,e,n){var i=e.border,r=n.border,a=o(i.visible)?i.visible:r.visible,s=o(i.width)?i.width:r.width,l=o(i.opacity)?i.opacity:o(r.opacity)?r.opacity:1,u=o(e.opacity)?e.opacity:o(n.opacity)?n.opacity:1;return{fill:e.color||t,"stroke-width":a?s:0,stroke:e.border.color||n.border.color,"stroke-opacity":l,opacity:u,hatching:e.hatching}}function a(t,e){var n=t._renderer.getRootOffset();this.code=0,this.widget=t,this.color=e.color,this.options=e.options,this.rect=e.rect,this.label=this.title=e.rect._name,this.coords={x:e.rect.x+e.rect.width/2+n.left,y:e.rect.y+e.rect.height/2+n.top},this.id=e.id,this.linksIn=e.linksIn,this.linksOut=e.linksOut,this.states={normal:r(this.color,this.options,this.options),hover:r(this.color,this.options.hoverStyle,this.options)}}a.prototype={compileAttrs:function(){return r(this.color,this.options)},getState:function(){return i[this.code]},isHovered:function(){return!!(1&this.code)},setState:function(t,e){var n=this;e?this.code|=t:this.code&=~t,e?this.linksIn.concat(this.linksOut).forEach((function(t){n.widget._links[t.index].setAdjacentNodeHover(!0)})):(this.widget._links.forEach((function(t){t.isAdjacentNodeHovered()&&t.adjacentNodeHover(!1)})),this.hideTooltip()),this.widget._applyNodesAppearance(),this.widget._applyLinksAppearance()},hover:function(t){this.widget._getOption("hoverEnabled",!0)&&t!==this.isHovered()&&(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(1,t),this.widget._eventTrigger("nodeHoverChanged",{target:this}),this.widget._resume())},setHover:function(){this.hover(!0)},showTooltip:function(t){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"node",info:{label:this.label,title:this.label,weightIn:this.linksIn.reduce((function(t,e){return t+e.weight}),0),weightOut:this.linksOut.reduce((function(t,e){return t+e.weight}),0)}},"undefined"!==typeof t?{x:t[0],y:t[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()},getLabelAttributes:function(t,e){return function(t,e,i){var r=n(13).patchFontOptions;t.useNodeColors&&(t.font.color=i.color);var a=!!o(t.border.visible)&&t.border.visible,s=o(t.border.width)?t.border.width:0,l=o(t.border.color)?t.border.color:t.font.color,u=o(t.border.opacity)?t.border.opacity:1,c={filter:e};return a&&s&&(c.stroke=l,c["stroke-width"]=a?s:0,c["stroke-opacity"]=u),{attr:c,css:r(t.font)}}(t,e,this)}},t.exports=a},function(t,e,n){"use strict";var i=n(501),o=["normal","adjacentNodeHover","hover"],r=n(2).isDefined;function a(t,e,n,o){var a=e.border,s=n.border,l=r(a.visible)?a.visible:s.visible,u=r(a.width)?a.width:s.width,c=r(a.opacity)?a.opacity:r(s.opacity)?s.opacity:1,d=r(e.opacity)?e.opacity:r(n.opacity)?n.opacity:1,h=e.color||t;return n.colorMode===i.COLOR_MODE_TARGET||n.colorMode===i.COLOR_MODE_SOURCE?h=t:n.colorMode===i.COLOR_MODE_GRADIENT&&o&&r(o.id)&&(h=o.id),{fill:h,"stroke-width":l?u:0,stroke:e.border.color||n.border.color,"stroke-opacity":c,opacity:d,hatching:e.hatching}}function s(t,e){var n=t._renderer.getRootOffset();this.code=0,this.widget=t,this.color=e.color,this.connection=e.connection,this.d=e.d,this.options=e.options,this.boundingRect=e.boundingRect,this.coords={x:e.boundingRect.x+e.boundingRect.width/2+n.left,y:e.boundingRect.y+e.boundingRect.height/2+n.top},this.states={normal:a(this.color,this.options,this.options,e.gradient),adjacentNodeHover:a(this.color,{opacity:0,border:{}},this.options,e.gradient),hover:a(this.color,{opacity:0,border:{}},this.options,e.gradient)},this.overlayStates={normal:a(this.color,{opacity:0,border:{}},this.options),adjacentNodeHover:a(this.color,this.options.hoverStyle,this.options),hover:a(this.color,this.options.hoverStyle,this.options)}}s.prototype={getState:function(){return o[this.code]},isHovered:function(){return 2===this.code},isAdjacentNodeHovered:function(){return 1===this.code},setState:function(t,e){e?this.code=t:(this.code=0,this.hideTooltip()),this.widget._applyLinksAppearance()},setHover:function(){this.hover(!0)},hover:function(t){this.widget._getOption("hoverEnabled",!0)&&t!==this.isHovered()&&(this.widget._suspend(),t&&this.widget.clearHover(),this.setState(2,t),this.widget._eventTrigger("linkHoverChanged",{target:this}),this.widget._resume())},adjacentNodeHover:function(t){this.widget._getOption("hoverEnabled",!0)&&t!==this.isAdjacentNodeHovered()&&(this.widget._suspend(),this.setState(1,t),this.widget._resume())},setAdjacentNodeHover:function(){this.adjacentNodeHover(!0)},showTooltip:function(t){this.widget._getOption("hoverEnabled",!0)&&this.widget._tooltip&&this.widget._tooltip.show({type:"link",info:{source:this.connection.source,target:this.connection.target,weight:this.connection.weight}},"undefined"!==typeof t?{x:t[0],y:t[1]}:this.coords)},hideTooltip:function(){this.widget._tooltip&&this.widget._tooltip.hide()}},t.exports=s},function(t,e,n){"use strict";var i=n(502),o=n(1045),r={_weightPerPixel:null,_getCascadeIdx:function(t,e){var n=e.filter((function(e){return e.name===t}))[0];return n.outgoing.length>0?n.lp:i.routines.maxOfArray(e.map((function(t){return t.lp})))},_getInWeightForNode:function(t,e){var n=0;return e.forEach((function(e){e[1]===t&&(n+=e[2])})),n},_getOutWeightForNode:function(t,e){var n=0;return e.forEach((function(e){e[0]===t&&(n+=e[2])})),n},_computeCascades:function(t){for(var e=this,n=i.struct.computeLongestPaths(t),o=i.routines.maxOfArray(n.map((function(t){return t.lp}))),r=[],a=0;a<o+1;a++)r.push({});return t.forEach((function(t){var i=r[e._getCascadeIdx(t[0],n)];i[t[0]]||(i[t[0]]={nodeTitle:t[0]}),(i=r[e._getCascadeIdx(t[1],n)])[t[1]]||(i[t[1]]={nodeTitle:t[1]})})),r.forEach((function(n){Object.keys(n).forEach((function(i){var o=n[i];o.inWeight=e._getInWeightForNode(o.nodeTitle,t),o.outWeight=e._getOutWeightForNode(o.nodeTitle,t),o.maxWeight=Math.max(o.inWeight,o.outWeight)}))})),r},_getWeightForCascade:function(t,e){var n=0,i=t[e];return Object.keys(i).forEach((function(t){n+=Math.max(i[t].inWeight,i[t].outWeight)})),n},_getMaxWeightThroughCascades:function(t){var e=[];return t.forEach((function(t){var n=0;Object.keys(t).forEach((function(e){var i=t[e];n+=Math.max(i.inWeight,i.outWeight)})),e.push(n)})),i.routines.maxOfArray(e)},_computeNodes:function(t,e){var n=this,o=[],r=this._getMaxWeightThroughCascades(t),a=i.routines.maxOfArray(t.map((function(t){return Object.keys(t).length}))),s=e.nodePadding,l=e.height-s*(a-1);l<0&&(s=0,l=e.height-s*(a-1)),this._weightPerPixel=r/l;var u=0;return t.forEach((function(i){var a=[],c=0,d=Object.keys(i).length,h=n._getWeightForCascade(t,u)/n._weightPerPixel+s*(d-1),f="center";"bottom"===(f=Array.isArray(e.nodeAlign)?u<e.nodeAlign.length?e.nodeAlign[u]:"center":e.nodeAlign)?c=e.height-h:"center"===f&&(c=.5*(e.height-h)),c=Math.round(c),Object.keys(i).forEach((function(t){i[t].sort=n._sort&&Object.prototype.hasOwnProperty.call(n._sort,t)?n._sort[t]:1})),Object.keys(i).sort((function(t,e){return i[t].sort-i[e].sort})).forEach((function(n){var o=i[n],d=Math.floor(l*o.maxWeight/r),h=Math.round(u*e.width/(t.length-1))-(0===u?0:e.nodeWidth),f={};f._name=n,f.width=e.nodeWidth,f.height=d,f.x=h+e.x,f.y=c+e.y,c+=d+s,a.push(f)})),u++,o.push(a)})),o},_findRectByName:function(t,e){for(var n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)if(e===t[n][i]._name)return t[n][i];return null},_findIndexByName:function(t,e){for(var n=0,i=0;i<t.length;i++)for(var o=0;o<t[i].length;o++){if(e===t[i][o]._name)return n;n++}return null},_computeLinks:function(t,e,n){var i=this,o={},r=[],a=[];return n.forEach((function(t){Object.keys(t).forEach((function(t){o[t]={in:0,out:0}}))})),e.forEach((function(n){n.forEach((function(n){var a=n._name,s=i._findRectByName(e,a),l=t.filter((function(t){return t[0]===a}));l.forEach((function(t){t.sort=i._findIndexByName(e,t[1])})),l.sort((function(t,e){return t.sort-e.sort})).forEach((function(t){var n=i._findRectByName(e,t[1]),a=Math.round(t[2]/i._weightPerPixel),l=o[t[0]].out,u=o[t[1]].in,c=o[t[0]].out+a>s.height?s.height-o[t[0]].out:a,d=o[t[1]].in+a>n.height?n.height-o[t[1]].in:a;r.push({from:{x:s.x,y:s.y+l,width:s.width,height:c,node:s,weight:t[2]},to:{x:n.x,y:n.y+u,width:n.width,height:d,node:n}}),o[t[0]].out+=a,o[t[1]].in+=a}))}))})),r.forEach((function(t){var e={d:i._spline(t.from,t.to),_boundingRect:{x:t.from.x+t.from.width,y:Math.min(t.from.y,t.to.y),width:t.to.x-(t.from.x+t.from.width),height:Math.max(t.from.x+t.from.height,t.to.y+t.to.height)-Math.min(t.from.y,t.to.y)},_weight:t.from.weight,_from:t.from.node,_to:t.to.node};a.push(e)})),this._fitAllNodesHeight(e,r),a},_fitNodeHeight:function(t,e,n){var i=this._findRectByName(e,t),o=0,r=0;n.forEach((function(e){e.from.node._name===t&&(r+=e.from.height),e.to.node._name===t&&(o+=e.to.height)})),i.height=Math.max(o,r)},_fitAllNodesHeight:function(t,e){for(var n=0;n<t.length;n++)for(var i=0;i<t[n].length;i++)this._fitNodeHeight(t[n][i]._name,t,e)},_spline:function(t,e){var n={x:t.x+t.width,y:t.y},i={x:t.x+t.width,y:t.y+t.height},o={x:e.x,y:e.y},r={x:e.x,y:e.y+e.height},a=.3*(o.x-n.x);return"M ".concat(n.x," ").concat(n.y," C ").concat(n.x+a," ").concat(n.y," ").concat(o.x-a," ").concat(o.y," ").concat(o.x," ").concat(o.y," L ").concat(r.x," ").concat(r.y," C ").concat(r.x-a," ").concat(r.y," ").concat(i.x+a," ").concat(i.y," ").concat(i.x," ").concat(i.y," Z")},computeLayout:function(t,e,n,i){this._sort=e;var r={},a=o.validate(t,i);return a?r.error=a:(r.cascades=this._computeCascades(t),r.nodes=this._computeNodes(r.cascades,{width:n.availableRect.width,height:n.availableRect.height,x:n.availableRect.x,y:n.availableRect.y,nodePadding:n.nodePadding,nodeWidth:n.nodeWidth,nodeAlign:n.nodeAlign}),r.links=this._computeLinks(t,r.nodes,r.cascades)),r},overlap:function(t,e){return!(e.x>t.x+t.width||e.x+e.width<t.x||e.y>=t.y+t.height||e.y+e.height<=t.y)}};t.exports=r},function(t,e,n){"use strict";var i=n(502),o={validate:function(t,e){var n=null;return this._hasCycle(t)&&(n="E2006",e("E2006")),n},_hasCycle:function(t){return i.struct.hasCycle(t)}};t.exports=o},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.setTooltipCustomOptions=function(t){t.prototype._setTooltipOptions=function(){var t,e,n=this._tooltip,o=n&&this._getOption("tooltip");o.linkTooltipTemplate&&(t=this._getTemplate(o.linkTooltipTemplate)),o.nodeTooltipTemplate&&(e=this._getTemplate(o.nodeTooltipTemplate)),n&&n.update(i({},o,{customizeTooltip:function(n){return t&&"link"===n.type||e&&"node"===n.type||(n.skipTemplate=!0),"node"===n.type?s(o.customizeNodeTooltip,a)(n.info):"link"===n.type?s(o.customizeLinkTooltip,r)(n.info):{}},contentTemplate:function(n,i){var o={model:n.info,container:i};return t&&"link"===n.type?t.render(o):e&&"node"===n.type?e.render(o):void 0},enabled:o.enabled}))},t.prototype.hideTooltip=function(){this._tooltip&&this._tooltip.hide()}};var i=n(0).extend,o=n(2).isFunction,r=function(t){return{html:"<strong>".concat(t.source," > ").concat(t.target,"</strong><br/>Weight: ").concat(t.weight)}},a=function(t){return{html:"<strong>".concat(t.label,"</strong><br/>Incoming weight: ").concat(t.weightIn,"<br/>Outgoing weight: ").concat(t.weightOut)}},s=function(t,e){return function(n){var r=o(t)?t.call(n,n):{},a=Object.prototype.hasOwnProperty.bind(r);return a("html")||a("text")||(r=i(r,e.call(n,n))),r}}},function(t,e,n){"use strict";var i=n(500).prototype,o=n(304).Tracker,r=0;i._eventsMap.onNodeClick={name:"nodeClick"},i._eventsMap.onLinkClick={name:"linkClick"},e.plugin={name:"tracker",init:function(){var t=this,e="__sankey_data_"+r++;t._tracker=new o({widget:t,root:t._renderer.root,getData:function(t){return t.target[e]},getNode:function(e){return e<t._nodes.length?t._nodes[e]:t._links[e-t._nodes.length]},click:function(e){var n=this.getData(e.event)<t._nodes.length?"nodeClick":"linkClick";t._eventTrigger(n,{target:e.node,event:e.event})}}),this._dataKey=e},dispose:function(){this._tracker.dispose()},extenders:{_change_LINKS_DRAW:function(){var t=this._dataKey;this._nodes.concat(this._links).forEach((function(e,n){e.element.data(t,n)}))}}}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1049),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultCurrentDate:"currentDate",defaultCurrentView:"currentView"},e._expectedChildren={appointmentDragging:{optionName:"appointmentDragging",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},resource:{optionName:"resources",isCollectionItem:!0},view:{optionName:"views",isCollectionItem:!0}},e._templateProps=[{tmplOption:"appointmentCollectorTemplate",render:"appointmentCollectorRender",component:"appointmentCollectorComponent",keyFn:"appointmentCollectorKeyFn"},{tmplOption:"appointmentTemplate",render:"appointmentRender",component:"appointmentComponent",keyFn:"appointmentKeyFn"},{tmplOption:"appointmentTooltipTemplate",render:"appointmentTooltipRender",component:"appointmentTooltipComponent",keyFn:"appointmentTooltipKeyFn"},{tmplOption:"dataCellTemplate",render:"dataCellRender",component:"dataCellComponent",keyFn:"dataCellKeyFn"},{tmplOption:"dateCellTemplate",render:"dateCellRender",component:"dateCellComponent",keyFn:"dateCellKeyFn"},{tmplOption:"resourceCellTemplate",render:"resourceCellRender",component:"resourceCellComponent",keyFn:"resourceCellKeyFn"},{tmplOption:"timeCellTemplate",render:"timeCellRender",component:"timeCellComponent",keyFn:"timeCellKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Scheduler=l,l.propTypes={accessKey:r.string,adaptivityEnabled:r.bool,allDayExpr:r.string,appointmentDragging:r.object,cellDuration:r.number,crossScrollingEnabled:r.bool,currentView:r.oneOf(["agenda","day","month","timelineDay","timelineMonth","timelineWeek","timelineWorkWeek","week","workWeek"]),customizeDateNavigatorText:r.func,dataSource:r.oneOfType([r.array,r.object,r.string]),dateSerializationFormat:r.string,descriptionExpr:r.string,disabled:r.bool,editing:r.oneOfType([r.bool,r.object]),elementAttr:r.object,endDateExpr:r.string,endDateTimeZoneExpr:r.string,endDayHour:r.number,firstDayOfWeek:r.oneOf([0,1,2,3,4,5,6]),focusStateEnabled:r.bool,groupByDate:r.bool,groups:r.array,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,indicatorUpdateInterval:r.number,maxAppointmentsPerCell:r.oneOfType([r.number,r.oneOf(["auto","unlimited"])]),noDataText:r.string,onAppointmentAdded:r.func,onAppointmentAdding:r.func,onAppointmentClick:r.oneOfType([r.func,r.string]),onAppointmentContextMenu:r.oneOfType([r.func,r.string]),onAppointmentDblClick:r.oneOfType([r.func,r.string]),onAppointmentDeleted:r.func,onAppointmentDeleting:r.func,onAppointmentFormOpening:r.func,onAppointmentRendered:r.func,onAppointmentUpdated:r.func,onAppointmentUpdating:r.func,onCellClick:r.oneOfType([r.func,r.string]),onCellContextMenu:r.oneOfType([r.func,r.string]),onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,recurrenceEditMode:r.oneOf(["dialog","occurrence","series"]),recurrenceExceptionExpr:r.string,recurrenceRuleExpr:r.string,remoteFiltering:r.bool,resources:r.array,rtlEnabled:r.bool,selectedCellData:r.array,shadeUntilCurrentTime:r.bool,showAllDayPanel:r.bool,showCurrentTimeIndicator:r.bool,startDateExpr:r.string,startDateTimeZoneExpr:r.string,startDayHour:r.number,tabIndex:r.number,textExpr:r.string,timeZone:r.string,useDropDownViewSwitcher:r.bool,views:r.array,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="appointmentDragging",e}(s.default);e.AppointmentDragging=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="editing",e}(s.default);e.Editing=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="resources",e.IsCollectionItem=!0,e}(s.default);e.Resource=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="views",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"appointmentCollectorTemplate",render:"appointmentCollectorRender",component:"appointmentCollectorComponent",keyFn:"appointmentCollectorKeyFn"},{tmplOption:"appointmentTemplate",render:"appointmentRender",component:"appointmentComponent",keyFn:"appointmentKeyFn"},{tmplOption:"appointmentTooltipTemplate",render:"appointmentTooltipRender",component:"appointmentTooltipComponent",keyFn:"appointmentTooltipKeyFn"},{tmplOption:"dataCellTemplate",render:"dataCellRender",component:"dataCellComponent",keyFn:"dataCellKeyFn"},{tmplOption:"dateCellTemplate",render:"dateCellRender",component:"dateCellComponent",keyFn:"dateCellKeyFn"},{tmplOption:"dropDownAppointmentTemplate",render:"dropDownAppointmentRender",component:"dropDownAppointmentComponent",keyFn:"dropDownAppointmentKeyFn"},{tmplOption:"resourceCellTemplate",render:"resourceCellRender",component:"resourceCellComponent",keyFn:"resourceCellKeyFn"},{tmplOption:"timeCellTemplate",render:"timeCellRender",component:"timeCellComponent",keyFn:"timeCellKeyFn"}],e}(s.default);e.View=h,e.default=l},function(t,e,n){"use strict";t.exports=n(1050),t.exports.default=t.exports},function(t,e,n){"use strict";var i=tt(n(3)),o=tt(n(39)),r=tt(n(33)),a=tt(n(23)),s=tt(n(10)),l=tt(n(442)),u=tt(n(171)),c=tt(n(17)),d=n(4),h=tt(n(29)),f=n(24),p=tt(n(26)),m=n(5),g=n(0),_=n(16),v=tt(n(2)),y=tt(n(18)),b=tt(n(51)),w=tt(n(8)),x=tt(n(12)),C=tt(n(67)),S=tt(n(43)),k=tt(n(20)),I=tt(n(1051)),T=n(1053),E=n(1054),O=tt(n(1055)),M=tt(n(1058)),P=tt(n(1060)),D=tt(n(512)),A=tt(n(1065)),R=tt(n(1066)),B=tt(n(1067)),N=tt(n(514)),L=tt(n(1069)),F=tt(n(1070)),V=tt(n(1071)),z=tt(n(1072)),j=tt(n(1073)),H=tt(n(1074)),W=tt(n(1076)),U=n(1081),G=tt(n(99)),K=tt(n(507)),q=tt(n(7)),$=n(98),Y=n(73),Z=tt(n(36)),X=tt(n(31)),J=n(58),Q=tt(n(172));function tt(t){return t&&t.__esModule?t:{default:t}}var et=q.default.when,nt=q.default.Deferred,it=p.default.dateToMilliseconds,ot="".concat("dx-scheduler","-small"),rt="".concat("dx-scheduler","-adaptive"),at="".concat("dx-scheduler","-win-no-touch"),st="".concat("dx-scheduler","-readonly"),lt={day:{workSpace:P.default,renderingStrategy:"vertical"},week:{workSpace:D.default,renderingStrategy:"vertical"},workWeek:{workSpace:A.default,renderingStrategy:"vertical"},month:{workSpace:R.default,renderingStrategy:"horizontalMonth"},timelineDay:{workSpace:B.default,renderingStrategy:"horizontal"},timelineWeek:{workSpace:N.default,renderingStrategy:"horizontal"},timelineWorkWeek:{workSpace:L.default,renderingStrategy:"horizontal"},timelineMonth:{workSpace:F.default,renderingStrategy:"horizontalMonthLine"},agenda:{workSpace:V.default,renderingStrategy:"agenda"}},ut=k.default.inherit({_getDefaultOptions:function(){return(0,g.extend)(this.callBase(),{views:["day","week"],currentView:"day",currentDate:p.default.trimTime(new Date),min:void 0,max:void 0,dateSerializationFormat:void 0,firstDayOfWeek:void 0,groups:[],resources:[],dataSource:null,customizeDateNavigatorText:void 0,appointmentTemplate:"item",dropDownAppointmentTemplate:"dropDownAppointment",appointmentCollectorTemplate:"appointmentCollector",dataCellTemplate:null,timeCellTemplate:null,resourceCellTemplate:null,dateCellTemplate:null,startDayHour:0,endDayHour:24,editing:{allowAdding:!0,allowDeleting:!0,allowDragging:!0,allowResizing:!0,allowUpdating:!0,allowTimeZoneEditing:!1,allowEditingTimeZones:!1},showAllDayPanel:!0,showCurrentTimeIndicator:!0,shadeUntilCurrentTime:!1,indicatorUpdateInterval:3e5,indicatorTime:void 0,recurrenceEditMode:"dialog",cellDuration:30,maxAppointmentsPerCell:"auto",selectedCellData:[],groupByDate:!1,onAppointmentRendered:null,onAppointmentClick:null,onAppointmentDblClick:null,onAppointmentContextMenu:null,onCellClick:null,onCellContextMenu:null,onAppointmentAdding:null,onAppointmentAdded:null,onAppointmentUpdating:null,onAppointmentUpdated:null,onAppointmentDeleting:null,onAppointmentDeleted:null,onAppointmentFormOpening:null,appointmentTooltipTemplate:"appointmentTooltip",appointmentPopupTemplate:"appointmentPopup",crossScrollingEnabled:!1,useDropDownViewSwitcher:!1,startDateExpr:"startDate",endDateExpr:"endDate",textExpr:"text",descriptionExpr:"description",allDayExpr:"allDay",recurrenceRuleExpr:"recurrenceRule",recurrenceExceptionExpr:"recurrenceException",remoteFiltering:!1,timeZone:"",startDateTimeZoneExpr:"startDateTimeZone",endDateTimeZoneExpr:"endDateTimeZone",noDataText:x.default.format("dxCollectionWidget-noDataText"),adaptivityEnabled:!1,allowMultipleCellSelection:!0,_appointmentTooltipOffset:{x:0,y:0},_appointmentTooltipButtonsPosition:"bottom",_appointmentTooltipOpenButtonText:x.default.format("dxScheduler-openAppointment"),_dropDownButtonIcon:"overflow",_appointmentCountPerCell:2,_collectorOffset:0,_appointmentOffset:26})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===y.default.real().deviceType&&!y.default.isSimulator()},options:{focusStateEnabled:!0}},{device:function(){return!y.default.current().generic},options:{useDropDownViewSwitcher:!0,editing:{allowDragging:!1,allowResizing:!1}}},{device:function(){return Z.default.isMaterial()},options:{useDropDownViewSwitcher:!0,dateCellTemplate:function(t,e,n){t.text.split(" ").forEach((function(t,e){var o=(0,i.default)("<span>").text(t).addClass("dx-scheduler-header-panel-cell-date");(0,i.default)(n).append(o),e||(0,i.default)(n).append(" ")}))},_appointmentTooltipOffset:{x:0,y:11},_appointmentTooltipButtonsPosition:"top",_appointmentTooltipOpenButtonText:null,_dropDownButtonIcon:"chevrondown",_appointmentCountPerCell:1,_collectorOffset:20,_appointmentOffset:30}}])},_setDeprecatedOptions:function(){this.callBase(),(0,g.extend)(this._deprecatedOptions,{onAppointmentFormCreated:{since:"18.2",alias:"onAppointmentFormOpening"},dropDownAppointmentTemplate:{since:"19.2",message:"appointmentTooltipTemplate"},allowEditingTimeZones:{since:"20.1",alias:"allowTimeZoneEditing"}})},_postponeDataSourceLoading:function(t){this.postponedOperations.add("_reloadDataSource",this._reloadDataSource.bind(this),t)},_postponeResourceLoading:function(){var t=this,e=this.postponedOperations.add("_loadResources",(function(){return t._loadResources()})),n=new nt;return e.done((function(t){n.resolve(t)})),this._postponeDataSourceLoading(e),n.promise()},_optionChanged:function(t){var e=this,n=t.value,i=t.name;switch(t.name){case"customizeDateNavigatorText":this._updateOption("header",i,n);break;case"firstDayOfWeek":this._updateOption("workSpace",i,n),this._updateOption("header",i,n);break;case"currentDate":n=this._dateOption(i),n=p.default.trimTime(new Date(n)),this.option("selectedCellData",[]),this._workSpace.option(i,new Date(n)),this._header.option(i,new Date(n)),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._appointments.option("items",[]),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"dataSource":this._initDataSource(),this._appointmentModel.setDataSource(this._dataSource),this._postponeResourceLoading().done((function(t){e._filterAppointmentsByDate(),e._updateOption("workSpace","showAllDayPanel",e.option("showAllDayPanel"))}));break;case"min":case"max":n=this._dateOption(i),this._updateOption("header",i,new Date(n)),this._updateOption("workSpace",i,new Date(n));break;case"views":this._processCurrentView(),this._getCurrentViewOptions()?this.repaint():this._header.option(i,n);break;case"useDropDownViewSwitcher":this._header.option(i,n);break;case"currentView":this._processCurrentView(),this.fire("validateDayHours"),this.getLayoutManager().initRenderingStrategy(this._getAppointmentsRenderingStrategy()),this._validateCellDuration(),this._appointments.option({items:[],allowDrag:this._allowDragging(),allowResize:this._allowResizing(),itemTemplate:this._getAppointmentTemplate("appointmentTemplate")}),this._postponeResourceLoading().done((function(t){e._refreshWorkSpace(t),e._updateHeader(),e._filterAppointmentsByDate(),e._appointments.option("allowAllDayResize","day"!==n)}));break;case"appointmentTemplate":this._appointments.option("itemTemplate",n);break;case"dateCellTemplate":case"resourceCellTemplate":case"dataCellTemplate":case"timeCellTemplate":this._updateOption("workSpace",i,n),this.repaint();break;case"groups":this._postponeResourceLoading().done((function(t){e._refreshWorkSpace(t),e._filterAppointmentsByDate()}));break;case"resources":this._resourcesManager.setResources(this.option("resources")),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._postponeResourceLoading().done((function(t){e._appointments.option("items",[]),e._refreshWorkSpace(t),e._filterAppointmentsByDate()}));break;case"startDayHour":case"endDayHour":this.fire("validateDayHours"),this._appointments.option("items",[]),this._updateOption("workSpace",i,n),this._appointments.repaint(),this._filterAppointmentsByDate(),this._postponeDataSourceLoading();break;case"onAppointmentAdding":case"onAppointmentAdded":case"onAppointmentUpdating":case"onAppointmentUpdated":case"onAppointmentDeleting":case"onAppointmentDeleted":case"onAppointmentFormOpening":this._actions[i]=this._createActionByOption(i);break;case"onAppointmentRendered":this._appointments.option("onItemRendered",this._getAppointmentRenderedAction());break;case"onAppointmentClick":this._appointments.option("onItemClick",this._createActionByOption(i));break;case"onAppointmentDblClick":this._appointments.option(i,this._createActionByOption(i));break;case"onAppointmentContextMenu":this._appointments.option("onItemContextMenu",this._createActionByOption(i));break;case"noDataText":case"allowMultipleCellSelection":case"selectedCellData":case"accessKey":case"onCellClick":case"onCellContextMenu":this._workSpace.option(i,n);break;case"crossScrollingEnabled":this._postponeResourceLoading().done((function(t){e._appointments.option("items",[]),e._refreshWorkSpace(t),e._readyToRenderAppointments&&e._appointments.option("items",e._getAppointmentsToRepaint())}));break;case"cellDuration":this._validateCellDuration(),this._appointments.option("items",[]),this._readyToRenderAppointments&&(this._updateOption("workSpace","hoursInterval",n/60),this._appointments.option("items",this._getAppointmentsToRepaint()));break;case"tabIndex":case"focusStateEnabled":this._updateOption("header",i,n),this._updateOption("workSpace",i,n),this._appointments.option(i,n),this.callBase(t);break;case"width":this._updateOption("header",i,n),this.option("crossScrollingEnabled")&&this._updateOption("workSpace","width",n),this.callBase(t),this._dimensionChanged();break;case"height":this.callBase(t),this._dimensionChanged();break;case"editing":this._initEditing();var o=this._editing;this._bringEditingModeToAppointments(o),this.hideAppointmentTooltip(),this._cleanPopup();break;case"showAllDayPanel":this._postponeResourceLoading().done((function(t){e._filterAppointmentsByDate(),e._updateOption("workSpace","allDayExpanded",n),e._updateOption("workSpace",i,n)}));break;case"showCurrentTimeIndicator":case"indicatorTime":case"indicatorUpdateInterval":case"shadeUntilCurrentTime":case"groupByDate":this._updateOption("workSpace",i,n),this.repaint();break;case"appointmentDragging":case"appointmentTooltipTemplate":case"appointmentPopupTemplate":case"recurrenceEditMode":case"remoteFiltering":case"timeZone":case"dropDownAppointmentTemplate":case"appointmentCollectorTemplate":case"_appointmentTooltipOffset":case"_appointmentTooltipButtonsPosition":case"_appointmentTooltipOpenButtonText":case"_dropDownButtonIcon":case"_appointmentCountPerCell":case"_collectorOffset":case"_appointmentOffset":this.repaint();break;case"dateSerializationFormat":case"maxAppointmentsPerCell":break;case"startDateExpr":case"endDateExpr":case"startDateTimeZoneExpr":case"endDateTimeZoneExpr":case"textExpr":case"descriptionExpr":case"allDayExpr":case"recurrenceRuleExpr":case"recurrenceExceptionExpr":this._updateExpression(i,n),this._appointmentModel.setDataAccessors(this._combineDataAccessors()),this._initAppointmentTemplate(),this.repaint();break;case"adaptivityEnabled":this._toggleAdaptiveClass(),this.repaint();break;default:this.callBase(t)}},_updateHeader:function(){var t=this._getViewCountConfig();this._header.option("intervalCount",t.intervalCount),this._header.option("displayedDate",this._workSpace._getViewStartByOptions()),this._header.option("min",this._dateOption("min")),this._header.option("max",this._dateOption("max")),this._header.option("currentDate",this._dateOption("currentDate")),this._header.option("firstDayOfWeek",this._getCurrentViewOption("firstDayOfWeek")),this._header.option("currentView",this._currentView)},_dateOption:function(t){var e=this._getCurrentViewOption(t);return C.default.deserializeDate(e)},_getSerializationFormat:function(t){var e=this._getCurrentViewOption(t);return"number"===typeof e?"number":v.default.isString(e)?C.default.getDateSerializationFormat(e):void 0},_bringEditingModeToAppointments:function(t){var e={allowDelete:t.allowUpdating&&t.allowDeleting};this._isAgenda()||(e.allowDrag=t.allowDragging,e.allowResize=t.allowResizing,e.allowAllDayResize=t.allowResizing&&this._supportAllDayResizing()),this._appointments.option(e),this.repaint()},_isAgenda:function(){return"agenda"===this._getAppointmentsRenderingStrategy()},_allowDragging:function(){return this._editing.allowDragging&&!this._isAgenda()},_allowResizing:function(){return this._editing.allowResizing&&!this._isAgenda()},_allowAllDayResizing:function(){return this._editing.allowResizing&&this._supportAllDayResizing()},_supportAllDayResizing:function(){return"day"!==this._getCurrentViewType()||this._currentView.intervalCount>1},_isAllDayExpanded:function(t){return this.option("showAllDayPanel")&&this._appointmentModel.hasAllDayAppointments(t,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getTimezoneOffsetByOption:function(t){return Q.default.calculateTimezoneByValue(this.option("timeZone"),t)},getCorrectedDatesByDaylightOffsets:function(t,e,n){var i=this,o=this.fire("getField","startDateTimeZone",n),r=v.default.isDefined(o)&&v.default.isDefined(this._getTimezoneOffsetByOption(t)),a=this.fire("convertDateByTimezoneBack",new Date(t.getTime()),o);return r&&(e=e.map((function(t){var e=i.fire("convertDateByTimezoneBack",new Date(t.getTime()),o);return Q.default.getCorrectedDateByDaylightOffsets(a,e,t,i.option("timeZone"),o)}))),e},_filterAppointmentsByDate:function(){var t=this._workSpace.getDateRange();this._appointmentModel.filterByDate(t[0],t[1],this.option("remoteFiltering"),this.option("dateSerializationFormat"))},_loadResources:function(){var t=this._getCurrentViewOption("groups"),e=new nt;return this._resourcesManager.loadResources(t).done(function(t){this._loadedResources=t,e.resolve(t)}.bind(this)),e.promise()},_dataSourceLoadedCallback:(0,o.default)(),_reloadDataSource:function(){var t=new nt;return this._dataSource?(this._dataSource.load().done(function(){K.default.hide(),this._fireContentReadyAction(t)}.bind(this)).fail((function(){K.default.hide(),t.reject()})),this._dataSource.isLoading()&&K.default.show({container:this.$element(),position:{of:this.$element()}})):this._fireContentReadyAction(t),t.promise()},_fireContentReadyAction:function(t){var e,n=this.callBase.bind(this),i=function(){n(),null===t||void 0===t||t.resolve()};this._workSpaceRecalculation?null===(e=this._workSpaceRecalculation)||void 0===e||e.done((function(){i()})):i()},_dimensionChanged:function(){var t=this.getFilteredItems();if(this._toggleSmallClass(),!this._isAgenda()&&t&&this._isVisible()){this._workSpace._cleanAllowedPositions(),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(t)),this._workSpace._dimensionChanged();var e=this._layoutManager.createAppointmentsMap(t);this._appointments.option("items",e)}this.hideAppointmentTooltip(),this._appointmentPopup.triggerResize(),this._appointmentPopup.updatePopupFullScreenMode()},_clean:function(){this._cleanPopup(),this.callBase()},_toggleSmallClass:function(){var t=(0,f.getBoundingRect)(this.$element().get(0)).width;this.$element().toggleClass(ot,t<400)},_toggleAdaptiveClass:function(){this.$element().toggleClass(rt,this.option("adaptivityEnabled"))},_visibilityChanged:function(t){t&&this._dimensionChanged()},_dataSourceOptions:function(){return{paginate:!1}},_init:function(){this._initExpressions({startDate:this.option("startDateExpr"),endDate:this.option("endDateExpr"),startDateTimeZone:this.option("startDateTimeZoneExpr"),endDateTimeZone:this.option("endDateTimeZoneExpr"),allDay:this.option("allDayExpr"),text:this.option("textExpr"),description:this.option("descriptionExpr"),recurrenceRule:this.option("recurrenceRuleExpr"),recurrenceException:this.option("recurrenceExceptionExpr")}),this.callBase(),this._initDataSource(),this._loadedResources=[],this.$element().addClass("dx-scheduler").toggleClass(at,!(!X.default.msie||!J.touch)),this._initEditing(),this._resourcesManager=new z.default(this.option("resources"));var t=this._combineDataAccessors();this._appointmentModel=new j.default(this._dataSource,t,this.getAppointmentDurationInMinutes()),this._initActions(),this._compactAppointmentsHelper=new U.CompactAppointmentsHelper(this),this._asyncTemplatesTimers=[],this._subscribes=I.default},_initTemplates:function(){this._initAppointmentTemplate(),this._templateManager.addDefaultTemplates({appointmentTooltip:new $.EmptyTemplate,dropDownAppointment:new $.EmptyTemplate}),this.callBase()},_initAppointmentTemplate:function(){var t,e,n,i=this,o=this._dataAccessors.expr,r=function(t){return h.default.compileGetter("appointmentData.".concat(t))};this._templateManager.addDefaultTemplates((t={},e="item",n=new Y.BindableTemplate((function(t,e,n){i.getAppointmentsInstance()._renderAppointmentTemplate(t,e,n)}),["html","text","startDate","endDate","allDay","description","recurrenceRule","recurrenceException","startDateTimeZone","endDateTimeZone"],this.option("integrationOptions.watchMethod"),{text:r(o.textExpr),startDate:r(o.startDateExpr),endDate:r(o.endDateExpr),startDateTimeZone:r(o.startDateTimeZoneExpr),endDateTimeZone:r(o.endDateTimeZoneExpr),allDay:r(o.allDayExpr),recurrenceRule:r(o.recurrenceRuleExpr)}),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t))},_combineDataAccessors:function(){var t=this._resourcesManager._dataAccessors,e=(0,g.extend)(!0,{},this._dataAccessors);return(0,m.each)(t,function(t,n){e[t].resources=n}.bind(this)),e},_renderContent:function(){this._renderContentImpl()},_dataSourceChangedHandler:function(t){this._readyToRenderAppointments&&this._workSpaceRecalculation.done(function(){this._filteredItems=this.fire("prerenderFilter"),this._workSpace.option("allDayExpanded",this._isAllDayExpanded(this._filteredItems)),this._isAgenda()&&this.getRenderingStrategyInstance().calculateRows(this._filteredItems,7,this.option("currentDate"),!0),this._filteredItems.length&&this._isVisible()?(this._appointments.option("items",this._getAppointmentsToRepaint()),this._appointmentModel.cleanModelState()):this._appointments.option("items",[]),this._isAgenda()&&(this._workSpace._renderView(),this._dataSourceLoadedCallback.fireWith(this,[t]))}.bind(this))},_getAppointmentsToRepaint:function(){var t=this._layoutManager.createAppointmentsMap(this._filteredItems);return this._layoutManager.getRepaintedAppointments(t,this.getAppointmentsInstance().option("items"))},_initExpressions:function(t){this._dataAccessors||(this._dataAccessors={getter:{},setter:{},expr:{}}),(0,m.each)(t,function(t,e){if(e){var n,i,o=h.default.compileGetter(e),r=h.default.compileSetter(e);if("startDate"===(s=t)||"endDate"===s){var a=this;n=function(){var t=o.apply(this,arguments);if((0,b.default)().forceIsoDateParsing){if(!a.option("dateSerializationFormat")){var e=C.default.getDateSerializationFormat(t);e&&a.option("dateSerializationFormat",e)}t=C.default.deserializeDate(t)}return t},i=function(t,e){((0,b.default)().forceIsoDateParsing||a.option("dateSerializationFormat"))&&(e=C.default.serializeDate(e,a.option("dateSerializationFormat"))),r.call(this,t,e)}}this._dataAccessors.getter[t]=n||o,this._dataAccessors.setter[t]=i||r,this._dataAccessors.expr[t+"Expr"]=e}else delete this._dataAccessors.getter[t],delete this._dataAccessors.setter[t],delete this._dataAccessors.expr[t+"Expr"];var s}.bind(this))},_updateExpression:function(t,e){var n={};n[t.replace("Expr","")]=e,this._initExpressions(n)},_initEditing:function(){var t=this.option("editing");this._editing={allowAdding:!!t,allowUpdating:!!t,allowDeleting:!!t,allowResizing:!!t,allowDragging:!!t},v.default.isObject(t)&&(this._editing=(0,g.extend)(this._editing,t)),this._editing.allowDragging=this._editing.allowDragging&&this._editing.allowUpdating,this._editing.allowResizing=this._editing.allowResizing&&this._editing.allowUpdating,this.$element().toggleClass(st,this._isReadOnly())},_isReadOnly:function(){var t=!0,e=this._editing;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t=t&&!e[n]);return t},_dispose:function(){this._appointmentTooltip&&this._appointmentTooltip.dispose(),this.hideAppointmentPopup(),this.hideAppointmentTooltip(),this._asyncTemplatesTimers.forEach(clearTimeout),this._asyncTemplatesTimers=[],this.callBase()},_initActions:function(){this._actions={onAppointmentAdding:this._createActionByOption("onAppointmentAdding"),onAppointmentAdded:this._createActionByOption("onAppointmentAdded"),onAppointmentUpdating:this._createActionByOption("onAppointmentUpdating"),onAppointmentUpdated:this._createActionByOption("onAppointmentUpdated"),onAppointmentDeleting:this._createActionByOption("onAppointmentDeleting"),onAppointmentDeleted:this._createActionByOption("onAppointmentDeleted"),onAppointmentFormOpening:this._createActionByOption("onAppointmentFormOpening")}},_getAppointmentRenderedAction:function(){return this._createActionByOption("onAppointmentRendered",{excludeValidators:["disabled","readOnly"]})},_renderFocusTarget:d.noop,_initMarkup:function(){this.callBase(),this.fire("validateDayHours"),this._validateCellDuration(),this._processCurrentView(),this._renderHeader(),this._layoutManager=new W.default(this,this._getAppointmentsRenderingStrategy()),this._appointments=this._createComponent("<div>",H.default,this._appointmentsConfig()),this._appointments.option("itemTemplate",this._getAppointmentTemplate("appointmentTemplate")),this._appointmentTooltip=new(this.option("adaptivityEnabled")?E.MobileTooltipStrategy:T.DesktopTooltipStrategy)(this._getAppointmentTooltipOptions()),this._appointmentPopup=new O.default(this),this._isLoaded()||this._isDataSourceLoading()?(this._initMarkupCore(this._loadedResources),this._dataSourceChangedHandler(this._dataSource.items()),this._fireContentReadyAction()):this._loadResources().done(function(t){this._initMarkupCore(t),this._reloadDataSource()}.bind(this))},_getAppointmentTooltipOptions:function(){var t=this,e=this;return{createComponent:e._createComponent.bind(e),container:e.$element(),getScrollableContainer:e.getWorkSpaceScrollableContainer.bind(e),addDefaultTemplates:e._templateManager.addDefaultTemplates.bind(e._templateManager),getAppointmentTemplate:e._getAppointmentTemplate.bind(e),showAppointmentPopup:e.showAppointmentPopup.bind(e),getTextAndFormatDate:function(t,n,i){return e.fire("getTextAndFormatDate",t,n,i)},checkAndDeleteAppointment:e.checkAndDeleteAppointment.bind(e),isAppointmentInAllDayPanel:e.isAppointmentInAllDayPanel.bind(e),getSingleAppointmentData:function(e,n){var o=(0,i.default)(n);return t._getAppointmentData(e,{data:e,target:o.get(0),$appointment:o,skipHoursProcessing:!0})}}},checkAndDeleteAppointment:function(t,e){var n=this,i=n.fire("getField","startDate",e);n._checkRecurringAppointment(t,e,i,(function(){n.deleteAppointment(t)}),!0)},_getExtraAppointmentTooltipOptions:function(){return{rtlEnabled:this.option("rtlEnabled"),focusStateEnabled:this.option("focusStateEnabled"),editing:this.option("editing"),offset:this.option("_appointmentTooltipOffset")}},isAppointmentInAllDayPanel:function(t){var e=this._workSpace;return this.appointmentTakesAllDay(t)&&e.supportAllDayRow()&&e.option("showAllDayPanel")},_initMarkupCore:function(t){var e=this;this._readyToRenderAppointments=s.default.hasWindow(),this._workSpace&&this._cleanWorkspace(),this._renderWorkSpace(t),this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){var t;return null===(t=e._workSpaceRecalculation)||void 0===t?void 0:t.resolve()})),this._filterAppointmentsByDate()},_isLoaded:function(){return this._isResourcesLoaded()&&this._isDataSourceLoaded()},_isResourcesLoaded:function(){return v.default.isDefined(this._loadedResources)},_isDataSourceLoaded:function(){return this._dataSource&&this._dataSource.isLoaded()},_render:function(){this._toggleSmallClass(),this._toggleAdaptiveClass(),this.callBase()},_renderHeader:function(){var t=(0,i.default)("<div>").appendTo(this.$element());this._header=this._createComponent(t,M.default,this._headerConfig())},_headerConfig:function(){var t=this._getCurrentViewOptions(),e=this._getViewCountConfig(),n=(0,g.extend)({isAdaptive:this.option("adaptivityEnabled"),firstDayOfWeek:this.option("firstDayOfWeek"),currentView:this._currentView,tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),width:this.option("width"),rtlEnabled:this.option("rtlEnabled"),useDropDownViewSwitcher:this.option("useDropDownViewSwitcher"),_dropDownButtonIcon:this.option("_dropDownButtonIcon"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")},t);return n.observer=this,n.intervalCount=e.intervalCount,n.views=this.option("views"),n.min=new Date(this._dateOption("min")),n.max=new Date(this._dateOption("max")),n.currentDate=p.default.trimTime(new Date(this._dateOption("currentDate"))),n},_appointmentsConfig:function(){var t=this;return{observer:this,onItemRendered:this._getAppointmentRenderedAction(),onItemClick:this._createActionByOption("onAppointmentClick"),onItemContextMenu:this._createActionByOption("onAppointmentContextMenu"),onAppointmentDblClick:this._createActionByOption("onAppointmentDblClick"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),allowDrag:this._allowDragging(),allowDelete:this._editing.allowUpdating&&this._editing.allowDeleting,allowResize:this._allowResizing(),allowAllDayResize:this._allowAllDayResizing(),rtlEnabled:this.option("rtlEnabled"),currentView:this.option("currentView"),onContentReady:function(){t._workSpace&&t._workSpace.option("allDayExpanded",t._isAllDayExpanded(t.getFilteredItems()))}}},getCollectorOffset:function(){return this._workSpace.needApplyCollectorOffset()&&!this.option("adaptivityEnabled")?this.option("_collectorOffset"):0},getAppointmentDurationInMinutes:function(){return this._getCurrentViewOption("cellDuration")},_processCurrentView:function(){var t=this.option("views"),e=this.option("currentView"),n=this;this._currentView=e,(0,m.each)(t,(function(t,i){var o=v.default.isObject(i)?i.name:i,r=i.type;if(e===o||e===r)return n._currentView=i,!1}))},_validateCellDuration:function(){60*(this._getCurrentViewOption("endDayHour")-this._getCurrentViewOption("startDayHour"))%this._getCurrentViewOption("cellDuration")!==0&&a.default.log("W1015")},_getCurrentViewType:function(){return this._currentView.type||this._currentView},_getAppointmentsRenderingStrategy:function(){return lt[this._getCurrentViewType()].renderingStrategy},_renderWorkSpace:function(t){this._readyToRenderAppointments&&this._toggleSmallClass();var e=(0,i.default)("<div>").appendTo(this.$element()),n=this._getViewCountConfig();this._workSpace=this._createComponent(e,lt[this._getCurrentViewType()].workSpace,this._workSpaceConfig(t,n)),this._allowDragging()&&this._workSpace.initDragBehavior(this),this._workSpace._attachTablesEvents(),this._workSpace.getWorkArea().append(this._appointments.$element()),this._recalculateWorkspace(),n.startDate&&this._header&&this._header.option("currentDate",this._workSpace._getHeaderDate()),this._appointments.option("_collectorOffset",this.getCollectorOffset())},_getViewCountConfig:function(){var t=this.option("currentView"),e=this._getViewByName(t);return{intervalCount:e&&e.intervalCount||1,startDate:e&&e.startDate||null}},_getViewByName:function(t){for(var e=this.option("views"),n=0;n<e.length;n++)if(e[n].name===t||e[n].type===t||e[n]===t)return e[n]},_recalculateWorkspace:function(){var t=this;this._workSpaceRecalculation=new nt,this._waitAsyncTemplate((function(){c.default.triggerResizeEvent(t._workSpace.$element()),t._workSpace._refreshDateTimeIndication()}))},_workSpaceConfig:function(t,e){var n=this,i=this._getCurrentViewOptions(),o=(0,g.extend)({noDataText:this.option("noDataText"),firstDayOfWeek:this.option("firstDayOfWeek"),startDayHour:this.option("startDayHour"),endDayHour:this.option("endDayHour"),tabIndex:this.option("tabIndex"),accessKey:this.option("accessKey"),focusStateEnabled:this.option("focusStateEnabled"),cellDuration:this.option("cellDuration"),showAllDayPanel:this.option("showAllDayPanel"),showCurrentTimeIndicator:this.option("showCurrentTimeIndicator"),indicatorTime:this.option("indicatorTime"),indicatorUpdateInterval:this.option("indicatorUpdateInterval"),shadeUntilCurrentTime:this.option("shadeUntilCurrentTime"),allDayExpanded:this._appointments.option("items"),crossScrollingEnabled:this.option("crossScrollingEnabled"),dataCellTemplate:this.option("dataCellTemplate"),timeCellTemplate:this.option("timeCellTemplate"),resourceCellTemplate:this.option("resourceCellTemplate"),dateCellTemplate:this.option("dateCellTemplate"),allowMultipleCellSelection:this.option("allowMultipleCellSelection"),selectedCellData:this.option("selectedCellData"),onSelectionChanged:function(t){n.option("selectedCellData",t.selectedCellData)},groupByDate:this._getCurrentViewOption("groupByDate")},i);return o.observer=this,o.intervalCount=e.intervalCount,o.startDate=e.startDate,o.groups=t,o.onCellClick=this._createActionByOption("onCellClick"),o.onCellContextMenu=this._createActionByOption("onCellContextMenu"),o.min=new Date(this._dateOption("min")),o.max=new Date(this._dateOption("max")),o.currentDate=p.default.trimTime(new Date(this._dateOption("currentDate"))),o.hoursInterval=o.cellDuration/60,o.allDayExpanded=this._isAllDayExpanded(this.getFilteredItems()),o.dataCellTemplate=o.dataCellTemplate?this._getTemplate(o.dataCellTemplate):null,o.timeCellTemplate=o.timeCellTemplate?this._getTemplate(o.timeCellTemplate):null,o.resourceCellTemplate=o.resourceCellTemplate?this._getTemplate(o.resourceCellTemplate):null,o.dateCellTemplate=o.dateCellTemplate?this._getTemplate(o.dateCellTemplate):null,o},_waitAsyncTemplate:function(t){if(this._options.silent("templatesRenderAsynchronously")){var e=setTimeout((function(){t(),clearTimeout(e)}));this._asyncTemplatesTimers.push(e)}else t()},_getCurrentViewOptions:function(){return this._currentView},_getCurrentViewOption:function(t){var e=this._getCurrentViewOptions();return e&&void 0!==e[t]?e[t]:this.option(t)},_getAppointmentTemplate:function(t){var e=this._getCurrentViewOptions();return e&&e[t]?this._getTemplate(e[t]):this._getTemplateByOption(t)},_updateOption:function(t,e,n){var i=this._getCurrentViewOptions();i&&v.default.isDefined(i[e])||this["_"+t].option(e,n)},_refreshWorkSpace:function(t){var e=this;this._cleanWorkspace(),delete this._workSpace,this._renderWorkSpace(t),this._readyToRenderAppointments&&(this._appointments.option({fixedContainer:this._workSpace.getFixedContainer(),allDayContainer:this._workSpace.getAllDayContainer()}),this._waitAsyncTemplate((function(){return e._workSpaceRecalculation.resolve()})))},_cleanWorkspace:function(){this._appointments.$element().detach(),this._workSpace._dispose(),this._workSpace.$element().remove(),this.option("selectedCellData",[])},getWorkSpaceScrollable:function(){return this._workSpace.getScrollable()},getWorkSpaceScrollableScrollTop:function(t){return this._workSpace.getGroupedScrollableScrollTop(t)},getWorkSpaceScrollableScrollLeft:function(){return this._workSpace.getScrollableScrollLeft()},getWorkSpaceScrollableContainer:function(){return this._workSpace.getScrollableContainer()},getWorkSpaceAllDayHeight:function(){return this._workSpace.getAllDayHeight()},getWorkSpaceAllDayOffset:function(){return this._workSpace.getAllDayOffset()},getWorkSpaceHeaderPanelHeight:function(){return this._workSpace.getHeaderPanelHeight()},getWorkSpaceDateTableOffset:function(){return!this.option("crossScrollingEnabled")||this.option("rtlEnabled")?this._workSpace.getWorkSpaceLeftOffset():0},getWorkSpace:function(){return this._workSpace},getAppointmentModel:function(){return this._appointmentModel},getHeader:function(){return this._header},getMaxAppointmentsPerCell:function(){return this._getCurrentViewOption("maxAppointmentsPerCell")},_cleanPopup:function(){this._appointmentPopup&&this._appointmentPopup.dispose()},_convertDatesByTimezoneBack:function(t,e,n){n=n||e;var i=this.fire("convertDateByTimezoneBack",this.fire("getField","startDate",e),t&&this.fire("getField","startDateTimeZone",e)),o=this.fire("convertDateByTimezoneBack",this.fire("getField","endDate",e),t&&this.fire("getField","endDateTimeZone",e));this.fire("setField","startDate",n,i),this.fire("setField","endDate",n,o)},_checkRecurringAppointment:function(t,e,n,i,o,r,a){delete this._updatedRecAppointment;var s=this.fire("getField","recurrenceRule",t);if(u.default.getRecurrenceRule(s).isValid&&this._editing.allowUpdating)switch(this.option("recurrenceEditMode")){case"series":i();break;case"occurrence":this._singleAppointmentChangesHandler(t,e,n,o,r,a);break;default:a&&(a.cancel=new nt),this._showRecurrenceChangeConfirm(o).done(function(s){s&&i(),!s&&this._singleAppointmentChangesHandler(t,e,n,o,r,a)}.bind(this)).fail(function(){this._appointments.moveAppointmentBack(a)}.bind(this))}else i()},_singleAppointmentChangesHandler:function(t,e,n,i,o,r){n=new Date(n),this.fire("setField","recurrenceRule",e,""),this.fire("setField","recurrenceException",e,""),i||o||(function(t,e){var n=this.fire("getField","startDate",t),i=this.fire("convertDateByTimezoneBack",n,this.fire("getField","startDateTimeZone",t)),o=this.fire("getField","endDate",t),r=this.fire("convertDateByTimezoneBack",o,this.fire("getField","endDateTimeZone",t));if("number"===typeof e&&!isNaN(e)){var a=-this._subscribes.getClientTimezoneOffset(n)/it("hour"),s=-this._subscribes.getClientTimezoneOffset(o)/it("hour"),l=i.getTime()-a*it("hour"),u=r.getTime()-s*it("hour");i=new Date(l+e*it("hour")),r=new Date(u+e*it("hour"))}this.fire("setField","startDate",t,i),this.fire("setField","endDate",t,r)}.call(this,e,this._getTimezoneOffsetByOption()),this.addAppointment(e));var a=this._makeDateAsRecurrenceException(n,t),s=(0,g.extend)({},t);this.fire("setField","recurrenceException",s,a),o?(this._updatedRecAppointment=s,this._showAppointmentPopup(e,!0,!1),this._editAppointmentData=t):this._updateAppointment(t,s,(function(){this._appointments.moveAppointmentBack(r)}),r)},_makeDateAsRecurrenceException:function(t,e){var n=this._getStartDate(e,!0),i=this.fire("getField","allDay",e),o=this.fire("getField","startDateTimeZone",e),r=this._getRecurrenceExceptionDate(t,n,o,i),a=this.fire("getField","recurrenceException",e);return a?a+","+r:r},_getRecurrenceExceptionDate:function(t,e,n,i){t=this.fire("convertDateByTimezoneBack",t,n);var o=this.fire("convertDateByTimezoneBack",e,n);return t=Q.default.correctRecurrenceExceptionByTimezone(t,o,this.option("timeZone"),n,!0),i&&t.setHours(o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds()),C.default.serializeDate(t,"yyyyMMddTHHmmssZ")},_showRecurrenceChangeConfirm:function(t){var e=x.default.format(t?"dxScheduler-confirmRecurrenceDeleteMessage":"dxScheduler-confirmRecurrenceEditMessage"),n=x.default.format(t?"dxScheduler-confirmRecurrenceDeleteSeries":"dxScheduler-confirmRecurrenceEditSeries"),i=x.default.format(t?"dxScheduler-confirmRecurrenceDeleteOccurrence":"dxScheduler-confirmRecurrenceEditOccurrence");return l.default.custom({messageHtml:e,showCloseButton:!0,showTitle:!0,buttons:[{text:n,onClick:function(){return!0}},{text:i,onClick:function(){return!1}}]}).show()},_getUpdatedData:function(t){var e=t.data||t,n=this.getTargetCellData(),i=this.fire("getField","allDay",e),o=new Date(this.fire("getField","startDate",e)),r=new Date(this.fire("getField","endDate",e)),a=n.startDate||o;o&&!isNaN(o)||(o=a);var s=o.getTime();r&&!isNaN(r)||(r=n.endDate);var l=(r.getTime()||n.endData)-s;if(this._workSpace.keepOriginalHours()){var u=s-p.default.trimTime(o).getTime();a=new Date(p.default.trimTime(a).getTime()+u)}var c={},d=n.allDay;this.fire("setField","allDay",c,d),this.fire("setField","startDate",c,a);var h=new Date(a.getTime()+l);if(this.appointmentTakesAllDay(e)&&!c.allDay&&this._workSpace.supportAllDayRow()&&(h=this._workSpace.calculateEndDate(a)),i&&!this._workSpace.supportAllDayRow()&&!this._workSpace.keepOriginalHours()){var f=new Date(a);f.setHours(0),0!==(h=new Date(f.getTime()+l)).getHours()&&h.setHours(this._getCurrentViewOption("endDayHour"))}return h=new Date(h.getTime()-Q.default.getTimezoneOffsetChangeInMs(o,r,a,h)),this.fire("setField","endDate",c,h),this._resourcesManager.setResourcesToItem(c,n.groups),c},_getCoordinates:function(t,e,n,i){for(var o=[],r=0;r<e.length;r++){for(var a=this._workSpace.getCoordinatesByDateInGroup(e[r],n,i),s=0;s<a.length;s++)(0,g.extend)(a[s],{startDate:e[r],initialStartDate:t[r]});o=o.concat(a)}return o},_isAppointmentRecurrence:function(t){var e=this.fire("getField","recurrenceRule",t);return e&&u.default.getRecurrenceRule(e).isValid},_getAppointmentData:function(t,e){var n,i,o=(e=e||{}).$appointment,a=e.skipDateCalculation?{}:this._getUpdatedData(e),s=(0,g.extend)({},t,a),l=this.fire("getField","allDay",t),u=this._workSpace.supportAllDayRow()&&l,c=new Date(this.fire("getField","startDate",s)),d=new Date(this.fire("getField","endDate",s)).getTime()-c.getTime(),h=c;if(v.default.isDefined(o)){var f=this.getRenderingStrategyInstance().getAppointmentDataCalculator();if(v.default.isFunction(f)&&this._isAppointmentRecurrence(t))h=f(o,c).startDate;else if(e.isAppointmentResized){var p=r.default.locate(o);h=new Date(this._workSpace.getCellDataByCoordinates(p,u).startDate)}else{var m=o.data("dxAppointmentSettings");n=m&&m.originalAppointmentStartDate,i=m&&m.originalAppointmentEndDate,this._isAppointmentRecurrence(t)&&(n=m&&m.startDate,i=m&&m.endDate),n&&(h=n)}}return this.fire("setField","startDate",s,h),this.fire("setField","endDate",s,i||new Date(h.getTime()+d)),e.skipHoursProcessing||e.isAppointmentResized||this._convertDatesByTimezoneBack(!1,s),s},subscribe:function(t,e){this._subscribes[t]=I.default[t]=e},fire:function(t){var e=this._subscribes[t],n=Array.prototype.slice.call(arguments);if(!v.default.isFunction(e))throw a.default.Error("E1031",t);return e.apply(this,n.slice(1))},getTargetCellData:function(){return this._workSpace.getDataByDroppableCell()},_updateAppointment:function(t,e,n,i){var o={newData:e,oldData:(0,g.extend)({},t),cancel:!1},r=function(t){if(v.default.isFunction(n)&&n.call(this),t&&"Error"===t.name)throw t}.bind(this);return this._actions.onAppointmentUpdating(o),i&&!v.default.isDeferred(i.cancel)&&(i.cancel=new nt),this._processActionResult(o,(function(n){var o=new nt;if(n)r(),o.resolve();else{this._expandAllDayPanel(e);try{o=this._appointmentModel.update(t,e).done((function(){i&&i.cancel.resolve(!1)})).always(function(t){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentUpdated,e,t)}.bind(this)).fail((function(){r()}))}catch(a){r(a),o.resolve()}}return o.promise()}))},_processActionResult:function(t,e){var n=this,i=new nt,o=function(t){et(q.default.fromPromise(t)).always(i.resolve)};return v.default.isPromise(t.cancel)?et(q.default.fromPromise(t.cancel)).always((function(i){v.default.isDefined(i)||(i="rejected"===t.cancel.state()),o(e.call(n,i))})):o(e.call(this,t.cancel)),i.promise()},_expandAllDayPanel:function(t){!this._isAllDayExpanded(this.getFilteredItems())&&this.appointmentTakesAllDay(t)&&this._workSpace.option("allDayExpanded",!0)},_executeActionWhenOperationIsCompleted:function(t,e,n){var i={appointmentData:e};n&&"Error"===n.name?i.error=n:this._appointmentPopup.isVisible()&&this._appointmentPopup.hide(),t(i),this._fireContentReadyAction()},_showAppointmentPopup:function(t,e,n){this._appointmentPopup.show(t,e,n)},getAppointmentPopup:function(){return this._appointmentPopup.getPopup()},getUpdatedAppointment:function(){return this._appointmentModel.getUpdatedAppointment()},getUpdatedAppointmentKeys:function(){return this._appointmentModel.getUpdatedAppointmentKeys()},getAppointmentsInstance:function(){return this._appointments},getResourceManager:function(){return this._resourcesManager},getLayoutManager:function(){return this._layoutManager},getRenderingStrategyInstance:function(){return this._layoutManager.getRenderingStrategyInstance()},getFilteredItems:function(){return this._filteredItems},getActions:function(){return this._actions},appointmentTakesAllDay:function(t){return this._appointmentModel.appointmentTakesAllDay(t,this._getCurrentViewOption("startDayHour"),this._getCurrentViewOption("endDayHour"))},_getStartDate:function(t,e){var n=this.fire("getField","startDate",t),i=this.fire("getField","startDateTimeZone",t);return n=this.fire("convertDateByTimezone",p.default.makeDate(n),i),e?n:this.fire("updateAppointmentStartDate",{startDate:n,appointment:t})},_getEndDate:function(t,e){var n=new Date(this.fire("getField","endDate",t)),i=new Date(this.fire("getField","startDate",t)),o=p.default.sameDate(i,n);if(n){var r=this.fire("getField","endDateTimeZone",t);return n=this.fire("convertDateByTimezone",p.default.makeDate(n),r),e?n:this.fire("updateAppointmentEndDate",{endDate:n,isSameDate:o})}return n},_getRecurrenceException:function(t){var e=this.fire("getField","recurrenceException",t);if(e){for(var n=this.fire("getField","startDate",t),i=e.split(","),o=this.fire("getField","startDateTimeZone",t),r=0;r<i.length;r++)i[r]=this._convertRecurrenceException(i[r],n,o);e=i.join()}return e},_convertRecurrenceException:function(t,e,n){t=t.replace(/\s/g,"");var i=C.default.deserializeDate(t),o=this.fire("convertDateByTimezone",e,n),r=this.fire("convertDateByTimezone",i,n);return r=Q.default.correctRecurrenceExceptionByTimezone(r,o,this.option("timeZone"),n),t=C.default.serializeDate(r,"yyyyMMddTHHmmss")},dayHasAppointment:function(t,e,n){var i=new Date(this.fire("getField","startDate",e)),o=new Date(this.fire("getField","endDate",e)),r=this.fire("getField","startDateTimeZone",e),a=this.fire("getField","endDateTimeZone",e);if(i=this.fire("convertDateByTimezone",i,r),o=this.fire("convertDateByTimezone",o,a),t.getTime()===o.getTime())return i.getTime()===o.getTime();n&&(t=p.default.trimTime(t),i=p.default.trimTime(i),o=p.default.trimTime(o));var s=t.getTime(),l=i.getTime(),u=o.getTime();return(0,_.inArray)(s,[l,u])>-1||l<s&&u>s},setTargetedAppointmentResources:function(t,e,n){var o=this._getCurrentViewOption("groups");if(o&&o.length){var r,a,s=this._resourcesManager._dataAccessors.setter,l=this._workSpace;this._isAgenda()?(r=function(){var t=this.getLayoutManager()._positionMap[n];return l._getCellGroups(t[0].groupIndex)},a=function(e,n){s[n.name](t,n.id)}):(r=function(){var t=(0,i.default)(e).data("dxAppointmentSettings")||{};return l.getCellDataByCoordinates({left:t.left,top:t.top}).groups},a=function(e,n){s[e](t,n)}),(0,m.each)(r.call(this),a)}},getStartViewDate:function(){return this._workSpace.getStartViewDate()},getEndViewDate:function(){return this._workSpace.getEndViewDate()},showAppointmentPopup:function(t,e,n){var i=n||this._getAppointmentData(t,{skipDateCalculation:!0}),o=this.fire("getField","startDate",n||t);this._checkRecurringAppointment(t,i,o,function(){e||v.default.isEmptyObject(t)?(delete this._editAppointmentData,this._editing.allowAdding&&this._showAppointmentPopup(t,!0,!0)):(this._editAppointmentData=t,this._showAppointmentPopup(t,this._editing.allowUpdating,!0))}.bind(this),!1,!0)},hideAppointmentPopup:function(t){this._appointmentPopup&&this._appointmentPopup.isVisible()&&(t&&this._appointmentPopup.saveChanges(),this._appointmentPopup.hide())},showAppointmentTooltip:function(t,e,n){t&&this.showAppointmentTooltipCore(e,[{color:this._appointments._tryGetAppointmentColor(e),data:t,currentData:n}])},showAppointmentTooltipCore:function(t,e,n){this._appointmentTooltip.isAlreadyShown(t)?this.hideAppointmentTooltip():this._appointmentTooltip.show(t,e,(0,g.extend)(this._getExtraAppointmentTooltipOptions(),n))},hideAppointmentTooltip:function(){this._appointmentTooltip&&this._appointmentTooltip.hide()},scrollToTime:function(t,e,n){this._workSpace.scrollToTime(t,e,n)},addAppointment:function(t){var e=this;this.fire("getField","text",t)||this.fire("setField","text",t,""),this._convertDatesByTimezoneBack(!0,t);var n={appointmentData:t,cancel:!1};return this._actions.onAppointmentAdding(n),this._processActionResult(n,(function(n){return n?(new nt).resolve():(e._expandAllDayPanel(t),e._appointmentModel.add(t,{value:e._getTimezoneOffsetByOption(),clientOffset:e.fire("getClientTimezoneOffset")}).always((function(n){return e._executeActionWhenOperationIsCompleted(e._actions.onAppointmentAdded,t,n)})))}))},updateAppointment:function(t,e){return this._updateAppointment(t,e)},deleteAppointment:function(t){var e={appointmentData:t,cancel:!1};this._actions.onAppointmentDeleting(e),this._processActionResult(e,(function(e){e||this._appointmentModel.remove(t).always(function(e){this._executeActionWhenOperationIsCompleted(this._actions.onAppointmentDeleted,t,e)}.bind(this))}))},focus:function(){this._editAppointmentData?this._appointments.focus():this._workSpace.focus()},getFirstDayOfWeek:function(){return v.default.isDefined(this.option("firstDayOfWeek"))?this.option("firstDayOfWeek"):S.default.firstDayOfWeekIndex()}}).include(G.default);(0,w.default)("dxScheduler",ut),t.exports=ut},function(t,e,n){"use strict";var i=y(n(3)),o=n(16),r=y(o),a=y(n(171)),s=y(n(2)),l=y(n(26)),u=n(5),c=y(n(23)),d=y(n(33)),h=n(4),f=n(0),p=y(n(503)),m=n(7),g=y(n(43)),_=y(n(172)),v=n(202);function y(t){return t&&t.__esModule?t:{default:t}}var b=l.default.dateToMilliseconds,w={isCurrentViewAgenda:function(){return"agenda"===this.option("currentView")},currentViewUpdated:function(t){this.option("currentView",t)},currentDateUpdated:function(t){this.option("currentDate",t)},setCellDataCacheAlias:function(t,e){this._workSpace.setCellDataCacheAlias(t,e)},needCoordinates:function(t){var e,n=this,i=t.appointmentData,o=t.startDate,r=this._getEndDate(i),s=this.fire("getField","recurrenceRule",i),u=this._getRecurrenceException(i),c=this._workSpace.getDateRange(),d=this.appointmentTakesAllDay(i),h=this.appointmentTakesAllDay(i)?l.default.trimTime(new Date(c[0])):c[0],f=t.originalStartDate||o,p=this.getLayoutManager().getRenderingStrategyInstance(),m=this.getFirstDayOfWeek(),g={rule:s,exception:u,start:f,end:r,min:h,max:c[1],firstDayOfWeek:m},_=a.default.getDatesByRecurrence(g);if(_.length?(e=_=this.getCorrectedDatesByDaylightOffsets(f,_,i),_=_.map((function(t){return l.default.roundDateByStartDayHour(t,n._getCurrentViewOption("startDayHour"))}))):(_.push(o),e=_),p.needSeparateAppointment(d)){for(var v=_.length,y=[],b=[],w=function(t){var e=p.endDate(i,{startDate:_[t]},!!s);y=l.default.getDatesOfInterval(_[t],e,{milliseconds:n.getWorkSpace().getIntervalDuration(d)});var o=new Date(c[1]);b=b.concat(y.filter((function(t){return new Date(t)<o})))},x=0;x<v;x++)w(x);_=b}var C=this._resourcesManager.getResourcesFromItem(i);return d=this.appointmentTakesAllDay(i)&&this._workSpace.supportAllDayRow(),this._getCoordinates(e,_,C,d)},isGroupedByDate:function(){return this.getWorkSpace().isGroupedByDate()},showAppointmentTooltip:function(t){var e=t.data,n=this.fire("getTargetedAppointmentData",e,(0,i.default)(t.target));this.showAppointmentTooltip(e,t.target,n)},hideAppointmentTooltip:function(){this.hideAppointmentTooltip()},showAddAppointmentPopup:function(t){var e={};(0,u.each)(["startDate","endDate","allDay"],function(n,i){void 0!==t[i]&&(this.fire("setField",i,e,t[i]),delete t[i])}.bind(this)),this.showAppointmentPopup((0,f.extend)(e,t),!0)},showEditAppointmentPopup:function(t){var e=t.data;t.$appointment=(0,i.default)(t.target),t.skipHoursProcessing=!0;var n=this._getAppointmentData(e,t),o=this.fire("getField","startDate",n);this.showAppointmentPopup(e,!1,n,o)},updateAppointmentAfterResize:function(t){var e=t.target;t.isAppointmentResized=!0;var n=this._getAppointmentData(e,t),i=this.fire("getField","startDate",n),o=(0,f.extend)(!0,{},t.data);this._convertDatesByTimezoneBack(!0,o),this._checkRecurringAppointment(e,n,i,function(){this._updateAppointment(e,o,(function(){this._appointments.moveAppointmentBack()}))}.bind(this))},getUpdatedData:function(t){return this._getUpdatedData({data:t.data})},updateAppointmentAfterDrag:function(t){var e=t.data,n=this._getUpdatedData(t),i=this._workSpace.getDroppableCellIndex(),o=this._workSpace.getCellIndexByCoordinates(t.coordinates),r=this.fire("getField","allDay",n),a=this.fire("getField","allDay",e),s=t.event,l=(0,f.extend)({},e,n),u=this._workSpace.supportAllDayRow()&&r,c=this._workSpace.getCellDataByCoordinates(t.coordinates,u),d=this._workSpace.supportAllDayRow()&&(a&&!r||!a&&r);i!==o||d?this._checkRecurringAppointment(e,l,c.startDate,function(){this._convertDatesByTimezoneBack(!0,n,l),this._updateAppointment(e,l,(function(){this._appointments.moveAppointmentBack(s)}),s)}.bind(this),void 0,void 0,s):this._appointments.moveAppointmentBack(s)},deleteAppointment:function(t){t.$appointment=(0,i.default)(t.target);var e=t.data,n=this._getAppointmentData(e,t);this.checkAndDeleteAppointment(e,n)},getAppointmentColor:function(t){var e=this._resourcesManager,n=e.getResourceForPainting(this._getCurrentViewOption("groups")),i=(new m.Deferred).resolve().promise();if(n){for(var o=e.getField(n),a=t.groupIndex,s=this._workSpace._getCellGroups(a),l=r.default.wrapToArray(e.getDataAccessors(o,"getter")(t.itemData)),u=l.length?l[0]:void 0,c=0;c<s.length;c++)if(s[c].name===o){u=s[c].id;break}i=e.getResourceColor(o,u)}return i},getHeaderHeight:function(){return this._header._$element&&parseInt(this._header._$element.outerHeight(),10)},getResourcesFromItem:function(t){return this._resourcesManager.getResourcesFromItem(t)},getBoundOffset:function(){return{top:-this.getWorkSpaceAllDayHeight()}},appointmentTakesSeveralDays:function(t){return this._appointmentModel.appointmentTakesSeveralDays(t)},getTextAndFormatDate:function(t,e,n){var i=this.fire("_getAppointmentFields",(0,f.extend)({},t,e),["startDate","endDate","startDateTimeZone","endDateTimeZone","allDay","text"]),o=i.startDate,r=i.endDate,a=n||this.fire("_getTypeFormat",o,r,i.allDay);return{text:this.fire("_createAppointmentTitle",i),formatDate:this.fire("_formatDates",o,r,a)}},_getAppointmentFields:function(t,e){var n=this;return e.reduce((function(e,i){return e[i]=n.fire("getField",i,t),e}),{})},_getTypeFormat:function(t,e,n){return n?"DATE":"month"!==this.option("currentView")&&l.default.sameDate(t,e)?"TIME":"DATETIME"},_createAppointmentTitle:function(t){return s.default.isPlainObject(t)?t.text:String(t)},_formatDates:function(t,e,n){var i=t.getDate()===e.getDate(),o=e.getTime()-t.getTime()<=b("day");switch(n){case"DATETIME":return[g.default.format(t,"monthandday")," ",g.default.format(t,"shorttime")," - ",i?"":g.default.format(e,"monthandday")+" ",g.default.format(e,"shorttime")].join("");case"TIME":return"".concat(g.default.format(t,"shorttime")," - ").concat(g.default.format(e,"shorttime"));case"DATE":return"".concat(g.default.format(t,"monthandday")).concat(o||i?"":" - "+g.default.format(e,"monthandday"))}},getResizableAppointmentArea:function(t){var e=t.allDay,n=this._getCurrentViewOption("groups");if(n&&n.length){if(e||this.getLayoutManager().getRenderingStrategyInstance()._needHorizontalGroupBounds()){var i=this._workSpace.getGroupBounds(t.coordinates);return{left:i.left,right:i.right,top:0,bottom:0}}if(this.getLayoutManager().getRenderingStrategyInstance()._needVerticalGroupBounds(e)&&this._workSpace._isVerticalGroupedWorkSpace()){var o=this._workSpace.getGroupBounds(t.coordinates);return{left:0,right:0,top:o.top,bottom:o.bottom}}}},needRecalculateResizableArea:function(){return this.getWorkSpace().needRecalculateResizableArea()},getAppointmentGeometry:function(t){return this.getLayoutManager().getRenderingStrategyInstance().getAppointmentGeometry(t)},isAllDay:function(t){return this.getLayoutManager().getRenderingStrategyInstance().isAllDay(t)},getDeltaTime:function(t,e,n){return this.getLayoutManager().getRenderingStrategyInstance().getDeltaTime(t,e,n)},getDropDownAppointmentWidth:function(t){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentWidth(this._getViewCountConfig().intervalCount,t)},getDropDownAppointmentHeight:function(){return this.getLayoutManager().getRenderingStrategyInstance().getDropDownAppointmentHeight()},getStartDate:function(t,e){return this._getStartDate(t,e)},getCellWidth:function(){return this._cellWidth},getCellHeight:function(){return this._cellHeight},getResizableStep:function(){var t=this._cellWidth,e=this.getWorkSpace();return e.isGroupedByDate()?e._getGroupCount()*t:t},getEndDate:function(t,e){return this._getEndDate(t,e)},getRenderingStrategy:function(){return this._getAppointmentsRenderingStrategy()},getMaxAppointmentCountPerCellByType:function(t){return this.getRenderingStrategyInstance()._getMaxAppointmentCountPerCellByType(t)},needCorrectAppointmentDates:function(){return this.getRenderingStrategyInstance().needCorrectAppointmentDates()},getRenderingStrategyDirection:function(){return this.getRenderingStrategyInstance().getDirection()},getWorkSpaceDateTableOffset:function(){return this.getWorkSpaceDateTableOffset()},getFullWeekAppointmentWidth:function(t){var e=t.groupIndex;return this._workSpace.getGroupWidth(e)},getMaxAppointmentWidth:function(t){var e=this._workSpace;return e.getCellCountToLastViewDate(t.date)*e.getCellWidth()},updateAppointmentStartDate:function(t){var e,n=t.appointment,i=this._workSpace.getStartViewDate(),o=new Date(t.startDate),r=this._getCurrentViewOption("startDayHour");return this.appointmentTakesAllDay(n)?e=l.default.normalizeDate(o,i):(o<i&&(o=i),e=l.default.normalizeDate(t.startDate,new Date(o))),l.default.roundDateByStartDayHour(e,r)},updateAppointmentEndDate:function(t){var e=t.endDate,n=this._getCurrentViewOption("endDayHour"),i=this._getCurrentViewOption("startDayHour"),o=e;return e.getHours()>=n?o.setHours(n,0,0,0):!t.isSameDate&&i>0&&60*e.getHours()+e.getMinutes()<60*i&&(o=new Date(o.getTime()-b("day"))).setHours(n,0,0,0),o},renderCompactAppointments:function(t){this._compactAppointmentsHelper.render(t)},clearCompactAppointments:function(){this._compactAppointmentsHelper.clear()},supportCompactDropDownAppointments:function(){return this._workSpace._supportCompactDropDownAppointments()},isApplyCompactAppointmentOffset:function(){return this._workSpace._isApplyCompactAppointmentOffset()},getGroupCount:function(){return this._workSpace._getGroupCount()},mapAppointmentFields:function(t){var e=this.fire("getTargetedAppointmentData",t.itemData,t.itemElement,!0);return{appointmentData:t.itemData,appointmentElement:t.itemElement,targetedAppointmentData:e}},getOffsetByAllDayPanel:function(t){return this._workSpace._getOffsetByAllDayPanel(t)},getGroupTop:function(t){return this._workSpace._getGroupTop(t)},updateResizableArea:function(){var t=this.$element().find(".dx-scheduler-appointment.dx-resizable"),e=(0,h.grep)(t,(function(t){var e=(0,i.default)(t).dxResizable("instance"),n=e.option("area");return(0,o.inArray)(e.option("handles"),["right left","left right"])>-1&&s.default.isPlainObject(n)}));(0,u.each)(e,function(t,e){var n=(0,i.default)(e),o=d.default.locate(n),r=this._appointments._getItemData(n),a=this._appointments._calculateResizableArea({left:o.left},r);n.dxResizable("instance").option("area",a)}.bind(this))},getField:function(t,e){if(s.default.isDefined(this._dataAccessors.getter[t]))return this._dataAccessors.getter[t](e)},setField:function(t,e,n){if(s.default.isDefined(this._dataAccessors.setter[t])){var i=this.option(t+"Expr").split("."),o=i[0];if(void 0===e[o]&&i.length>1){var r=function(t){for(var e={},n=e,i=t.length-1,o=1;o<i;o++)n=n[t[o]]={};return e}(i);e[o]=r}return this._dataAccessors.setter[t](e,n),e}},prerenderFilter:function(){var t,e=this.getWorkSpace().getDateRange(),n=this._resourcesManager.getResourcesData();return!this.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(t=!1),this._appointmentModel.filterLoadedAppointments({startDayHour:this._getCurrentViewOption("startDayHour"),endDayHour:this._getCurrentViewOption("endDayHour"),min:e[0],max:e[1],resources:n,allDay:t,firstDayOfWeek:this.getFirstDayOfWeek(),recurrenceException:this._getRecurrenceException.bind(this)},this._subscribes.convertDateByTimezone.bind(this))},dayHasAppointment:function(t,e,n){return this.dayHasAppointment(t,e,n)},createResourcesTree:function(){return this._resourcesManager.createResourcesTree(this._loadedResources)},getResourceTreeLeaves:function(t,e){return this._resourcesManager.getResourceTreeLeaves(t,e)},createReducedResourcesTree:function(){var t=this._resourcesManager.createResourcesTree(this._loadedResources);return this._resourcesManager.reduceResourcesTree(t,this.getFilteredItems())},groupAppointmentsByResources:function(t){var e={0:t},n=this._getCurrentViewOption("groups");n&&n.length&&this._resourcesManager.getResourcesData().length&&(e=this._resourcesManager.groupAppointmentsByResources(t,this._loadedResources));var i=0;(0,u.each)(this._loadedResources,(function(t,e){t?i*=e.items.length:i=e.items.length}));for(var o=0;o<i;o++){var r=o.toString();e[r]||(e[r]=[])}return e},getAgendaRows:function(t){var e=this._layoutManager.getRenderingStrategyInstance(),n=e.calculateRows.bind(e),i=new m.Deferred;return this._dataSourceLoadedCallback.add((function e(o){var r=n(o,t.agendaDuration,t.currentDate);this._dataSourceLoadedCallback.remove(e),i.resolve(r)})),i.promise()},getAgendaVerticalStepHeight:function(){return this.getWorkSpace().getAgendaVerticalStepHeight()},getAgendaDuration:function(){return this._getCurrentViewOption("agendaDuration")},getStartViewDate:function(){return this.getStartViewDate()},getEndViewDate:function(){return this.getEndViewDate()},getMaxAppointmentsPerCell:function(){return this.getMaxAppointmentsPerCell()},forceMaxAppointmentPerCell:function(){return this.forceMaxAppointmentPerCell()},onAgendaReady:function(t){for(var e=this.getAppointmentsInstance()._itemElements(),n=0,i=function(t,i){var o=i+n-1;e.eq(o).addClass(v.AGENDA_LAST_IN_DATE_APPOINTMENT_CLASS),n+=i},o=0;o<t.length;o++)(0,u.each)(t[o],i)},getTimezone:function(){return this._getTimezoneOffsetByOption()},getClientTimezoneOffset:function(t){return t=t||new Date,p.default.getClientTimezoneOffset(t)},convertDateByTimezone:function(t,e){t=new Date(t);var n=this._subscribes.getComplexOffsets(this,t,e);return t=this._subscribes.translateDateToAppointmentTimeZone(t,n),t=this._subscribes.translateDateToCommonTimeZone(t,n)},convertDateByTimezoneBack:function(t,e){t=new Date(t);var n=this._subscribes.getComplexOffsets(this,t,e);return t=this._subscribes.translateDateToAppointmentTimeZone(t,n,!0),t=this._subscribes.translateDateToCommonTimeZone(t,n,!0)},translateDateToAppointmentTimeZone:function(t,e,n){var i=n?-1:1,o=t.getTime()-i*e.client*b("hour");return new Date(o+i*e.appointment*b("hour"))},translateDateToCommonTimeZone:function(t,e,n){var i=n?-1:1;if("number"===typeof e.common){var o=e.common-e.appointment,r=(o<0?-1:1)*Math.floor(Math.abs(o)),a=o%1;t.setHours(t.getHours()+i*r),t.setMinutes(t.getMinutes()+i*a*60)}return t},getComplexOffsets:function(t,e,n){var i=-this.getClientTimezoneOffset(e)/b("hour"),o=t._getTimezoneOffsetByOption(e),r=_.default.calculateTimezoneByValue(n,e);return"number"!==typeof r&&(r=i),{client:i,common:o,appointment:r}},getTimezonesDisplayName:function(){return p.default.getTimezonesDisplayName()},getTimezoneDisplayNameById:function(t){return p.default.getTimezoneDisplayNameById(t)},getSimilarTimezones:function(t){return p.default.getSimilarTimezones(t)},getTimezonesIdsByDisplayName:function(t){return p.default.getTimezonesIdsByDisplayName(t)},getTargetedAppointmentData:function(t,e,n){var o=(0,i.default)(e),r=o.data(this._appointments._itemIndexKey()),a=this._getAppointmentData(t,{skipDateCalculation:!0,$appointment:o,skipHoursProcessing:!n}),s={};return(0,f.extend)(!0,s,t,a),e&&this.setTargetedAppointmentResources(s,e,r),s},getAppointmentDurationInMs:function(t){var e=t.startDate,n=t.endDate,i=t.allDay,o=n.getTime()-e.getTime(),r=b("day"),a=this._workSpace.getVisibleDayDuration(),s=0;if(i){s=Math.ceil(o/r)*a}else{var u,c=!_.default.isSameAppointmentDates(e,n),d=Math.floor(o/r);if(c){var h=new Date(new Date(e).setHours(this.option("endDayHour"),0,0)),f=r-a-(e.getTime()>h.getTime()?e.getTime()-h.getTime():0);u=o-(d?d*r:f);var p=this.option("startDayHour")*b("hour"),m=n-l.default.trimTime(n);m<p&&(d&&(u-=f),u+=p-m)}else u=o%r;u>a&&(u=a),s=d*a+u||b("minute")}return s},fixWrongEndDate:function(t,e,n){return this._appointmentModel.fixWrongEndDate(t,e,n)},calculateAppointmentEndDate:function(t,e){return this._appointmentModel._calculateAppointmentEndDate(t,e)},getEndDayHour:function(){return this._workSpace.option("endDayHour")||this.option("endDayHour")},getStartDayHour:function(){return this._workSpace.option("startDayHour")||this.option("startDayHour")},isAdaptive:function(){return this.option("adaptivityEnabled")},moveBack:function(){var t=this.getWorkSpace().dragBehavior;t&&t.moveBack()},validateDayHours:function(){var t=this._getCurrentViewOption("endDayHour");if(this._getCurrentViewOption("startDayHour")>=t)throw c.default.Error("E1058")},removeDroppableCellClass:function(){this._workSpace.removeDroppableCellClass()}};t.exports=w},function(t,e,n){"use strict";t.exports={displayNames:["(UTC) Monrovia, Reykjavik","(UTC+03:00) Nairobi","(UTC+02:00) Harare, Pretoria","(UTC+01:00) West Central Africa","(UTC+02:00) Athens, Bucharest","(UTC+03:00) Kuwait, Riyadh","(UTC+07:00) Bangkok, Hanoi, Jakarta","(UTC+04:00) Abu Dhabi, Muscat","(UTC+12:00) Auckland, Wellington","(UTC-03:00) City of Buenos Aires","(UTC-05:00) Bogota, Lima, Quito, Rio Branco","(UTC-08:00) Pacific Time (US & Canada)","(UTC-05:00) Indiana (East)","(UTC-06:00) Central Time (US & Canada)","(UTC-05:00) Eastern Time (US & Canada)","(UTC-07:00) Mountain Time (US & Canada)","(UTC-04:00) Georgetown, La Paz, Manaus, San Juan","(UTC+05:00) Ashgabat, Tashkent","(UTC+05:30) Chennai, Kolkata, Mumbai, New Delhi","(UTC+08:00) Beijing, Chongqing, Hong Kong, Urumqi","(UTC+06:00) Dhaka","(UTC+06:00) Astana","(UTC+05:45) Kathmandu","(UTC+02:00) Jerusalem","(UTC+08:00) Kuala Lumpur, Singapore","(UTC+08:00) Ulaanbaatar","(UTC) Dublin, Edinburgh, Lisbon, London","(UTC+01:00) Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna","(UTC+10:00) Canberra, Melbourne, Sydney","(UTC+09:30) Darwin","(UTC+10:00) Brisbane","(UTC+09:30) Adelaide","(UTC+10:00) Hobart","(UTC+08:00) Perth","(UTC-02:00) Coordinated Universal Time-02","(UTC-03:00) Brasilia","(UTC-04:00) Atlantic Time (Canada)","(UTC-06:00) Saskatchewan","(UTC-03:30) Newfoundland","(UTC-03:00) Santiago","(UTC+02:00) Cairo","UTC","(UTC+03:30) Tehran","(UTC+09:00) Osaka, Sapporo, Tokyo","(UTC+12:00) Coordinated Universal Time+12","(UTC+02:00) Tripoli","(UTC-07:00) Chihuahua, La Paz, Mazatlan","(UTC-06:00) Guadalajara, Mexico City, Monterrey","(UTC+11:00) Solomon Is., New Caledonia","(UTC-11:00) Coordinated Universal Time-11","(UTC+10:00) Guam, Port Moresby","(UTC+01:00) Sarajevo, Skopje, Warsaw, Zagreb","(UTC+08:00) Taipei","(UTC+09:00) Seoul","(UTC+02:00) Istanbul","(UTC-09:00) Alaska","(UTC-07:00) Arizona","(UTC-10:00) Hawaii","(UTC+03:00) Moscow, St. Petersburg, Volgograd","(UTC+02:00) Helsinki, Kyiv, Riga, Sofia, Tallinn, Vilnius","(UTC+01:00) Belgrade, Bratislava, Budapest, Ljubljana, Prague","(UTC) Casablanca","(UTC+01:00) Brussels, Copenhagen, Madrid, Paris","(UTC+01:00) Windhoek","(UTC-03:00) Cayenne, Fortaleza","(UTC-04:00) Asuncion","(UTC-03:00) Salvador","(UTC-06:00) Central America","(UTC-04:00) Cuiaba","(UTC-04:30) Caracas","(UTC-03:00) Greenland","(UTC-03:00) Montevideo","(UTC-08:00) Baja California","(UTC-01:00) Azores","(UTC+02:00) Amman","(UTC+10:00) Magadan","(UTC+03:00) Baghdad","(UTC+04:00) Baku","(UTC+02:00) Beirut","(UTC+09:00) Yakutsk","(UTC+05:30) Sri Jayawardenepura","(UTC+02:00) Damascus","(UTC+08:00) Irkutsk","(UTC+04:30) Kabul","(UTC+05:00) Islamabad, Karachi","(UTC+07:00) Krasnoyarsk","(UTC+06:00) Novosibirsk","(UTC+06:30) Yangon (Rangoon)","(UTC+10:00) Vladivostok","(UTC+04:00) Tbilisi","(UTC+05:00) Ekaterinburg","(UTC+04:00) Yerevan","(UTC-01:00) Cabo Verde Is.","(UTC-12:00) International Date Line West","(UTC+13:00) Nuku'alofa","(UTC+14:00) Kiritimati Island","(UTC+02:00) Kaliningrad","(UTC+04:00) Port Louis","(UTC+13:00) Samoa","(UTC+12:00) Fiji","(UTC+8:45) Eucla","(UTC+10:30) Lord Howe Island"],timezones:[{id:"Africa/Bamako",title:"Bamako",winIndex:0,link:185},{id:"Africa/Banjul",title:"Banjul",winIndex:0,link:185},{id:"Africa/Conakry",title:"Conakry",winIndex:0,link:185},{id:"Africa/Dakar",title:"Dakar",winIndex:0,link:185},{id:"Africa/Freetown",title:"Freetown",winIndex:0,link:185},{id:"Africa/Lome",title:"Lome",winIndex:0,link:185},{id:"Africa/Nouakchott",title:"Nouakchott",winIndex:0,link:185},{id:"Africa/Ouagadougou",title:"Ouagadougou",winIndex:0,link:185},{id:"Africa/Sao_Tome",title:"Sao Tome",winIndex:0,link:185},{id:"Atlantic/St_Helena",title:"St Helena",winIndex:0,link:185},{id:"Africa/Addis_Ababa",title:"Addis Ababa",winIndex:1,link:198},{id:"Africa/Asmara",title:"Asmara",winIndex:1,link:198},{id:"Africa/Dar_es_Salaam",title:"Dar es Salaam",winIndex:1,link:198},{id:"Africa/Djibouti",title:"Djibouti",winIndex:1,link:198},{id:"Africa/Kampala",title:"Kampala",winIndex:1,link:198},{id:"Africa/Mogadishu",title:"Mogadishu",winIndex:1,link:198},{id:"Indian/Antananarivo",title:"Antananarivo",winIndex:1,link:198},{id:"Indian/Comoro",title:"Comoro",winIndex:1,link:198},{id:"Indian/Mayotte",title:"Mayotte",winIndex:1,link:198},{id:"Africa/Blantyre",title:"Blantyre",winIndex:2,link:196},{id:"Africa/Bujumbura",title:"Bujumbura",winIndex:2,link:196},{id:"Africa/Gaborone",title:"Gaborone",winIndex:2,link:196},{id:"Africa/Harare",title:"Harare",winIndex:2,link:196},{id:"Africa/Kigali",title:"Kigali",winIndex:2,link:196},{id:"Africa/Lubumbashi",title:"Lubumbashi",winIndex:2,link:196},{id:"Africa/Lusaka",title:"Lusaka",winIndex:2,link:196},{id:"Africa/Bangui",title:"Bangui",winIndex:3,link:195},{id:"Africa/Brazzaville",title:"Brazzaville",winIndex:3,link:195},{id:"Africa/Douala",title:"Douala",winIndex:3,link:195},{id:"Africa/Kinshasa",title:"Kinshasa",winIndex:3,link:195},{id:"Africa/Libreville",title:"Libreville",winIndex:3,link:195},{id:"Africa/Luanda",title:"Luanda",winIndex:3,link:195},{id:"Africa/Malabo",title:"Malabo",winIndex:3,link:195},{id:"Africa/Niamey",title:"Niamey",winIndex:3,link:195},{id:"Africa/Porto-Novo",title:"Porto-Novo",winIndex:3,link:195},{id:"Africa/Maseru",title:"Maseru",winIndex:2,link:193},{id:"Africa/Mbabane",title:"Mbabane",winIndex:2,link:193},{id:"Africa/Juba",title:"Juba",winIndex:1,link:194},{id:"Europe/Nicosia",title:"Nicosia",winIndex:4,link:381},{id:"Asia/Bahrain",title:"Bahrain",winIndex:5,link:388},{id:"Asia/Aden",title:"Aden",winIndex:5,link:391},{id:"Asia/Kuwait",title:"Kuwait",winIndex:5,link:391},{id:"Asia/Phnom_Penh",title:"Phnom Penh",winIndex:6,link:349},{id:"Asia/Vientiane",title:"Vientiane",winIndex:6,link:349},{id:"Asia/Muscat",title:"Muscat",winIndex:7,link:359},{id:"Antarctica/McMurdo",title:"McMurdo",winIndex:8,link:511},{id:"Africa/Asmera",title:"Asmera",winIndex:1,link:198},{id:"Africa/Timbuktu",title:"Timbuktu",winIndex:0,link:185},{id:"America/Buenos_Aires",title:"Buenos Aires",winIndex:9,link:206},{id:"America/Catamarca",title:"Catamarca",winIndex:9,link:207},{id:"America/Coral_Harbour",title:"Coral Harbour",winIndex:10,link:219},{id:"America/Cordoba",title:"Cordoba",winIndex:9,link:208},{id:"America/Ensenada",title:"Ensenada",winIndex:11,link:325},{id:"America/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Jujuy",title:"Jujuy",winIndex:9,link:209},{id:"America/Knox_IN",title:"Knox IN",winIndex:13,link:261},{id:"America/Louisville",title:"Louisville",winIndex:14,link:272},{id:"America/Mendoza",title:"Mendoza",winIndex:9,link:211},{id:"America/Porto_Acre",title:"Porto Acre",winIndex:10,link:312},{id:"America/Shiprock",title:"Shiprock",winIndex:15,link:244},{id:"America/Virgin",title:"Virgin",winIndex:16,link:303},{id:"Antarctica/South_Pole",title:"South Pole",winIndex:8,link:511},{id:"Asia/Ashkhabad",title:"Ashkhabad",winIndex:17,link:346},{id:"Asia/Calcutta",title:"Calcutta",winIndex:18,link:373},{id:"Asia/Chongqing",title:"Chongqing",winIndex:19,link:395},{id:"Asia/Chungking",title:"Chungking",winIndex:19,link:395},{id:"Asia/Dacca",title:"Dacca",winIndex:20,link:357},{id:"Asia/Harbin",title:"Harbin",winIndex:19,link:395},{id:"Asia/Kashgar",title:"Kashgar",winIndex:21,link:405},{id:"Asia/Katmandu",title:"Katmandu",winIndex:22,link:371},{id:"Asia/Macao",title:"Macao",winIndex:19,link:377},{id:"Asia/Saigon",title:"Saigon",winIndex:6,link:361},{id:"Asia/Tel_Aviv",title:"Tel Aviv",winIndex:23,link:367},{id:"Asia/Thimbu",title:"Thimbu",winIndex:20,link:402},{id:"Asia/Ujung_Pandang",title:"Ujung Pandang",winIndex:24,link:379},{id:"Asia/Ulan_Bator",title:"Ulan Bator",winIndex:25,link:404},{id:"Atlantic/Faeroe",title:"Faeroe",winIndex:26,link:415},{id:"Atlantic/Jan_Mayen",title:"Jan Mayen",winIndex:27,link:483},{id:"Australia/ACT",title:"ACT",winIndex:28,link:429},{id:"Australia/Canberra",title:"Canberra",winIndex:28,link:429},{id:"Australia/NSW",title:"NSW",winIndex:28,link:429},{id:"Australia/North",title:"North",winIndex:29,link:424},{id:"Australia/Queensland",title:"Queensland",winIndex:30,link:421},{id:"Australia/South",title:"South",winIndex:31,link:420},{id:"Australia/Tasmania",title:"Tasmania",winIndex:32,link:425},{id:"Australia/Victoria",title:"Victoria",winIndex:28,link:427},{id:"Australia/West",title:"West",winIndex:33,link:428},{id:"Australia/Yancowinna",title:"Yancowinna",winIndex:31,link:422},{id:"Brazil/Acre",title:"Acre",winIndex:10,link:312},{id:"Brazil/DeNoronha",title:"DeNoronha",winIndex:34,link:294},{id:"Brazil/East",title:"East",winIndex:35,link:317},{id:"Brazil/West",title:"West",winIndex:16,link:279},{id:"Canada/Atlantic",title:"Atlantic",winIndex:36,link:257},{id:"Canada/Central",title:"Central",winIndex:13,link:329},{id:"Canada/East-Saskatchewan",title:"East-Saskatchewan",winIndex:37,link:310},{id:"Canada/Eastern",title:"Eastern",winIndex:14,link:326},{id:"Canada/Mountain",title:"Mountain",winIndex:15,link:246},{id:"Canada/Newfoundland",title:"Newfoundland",winIndex:38,link:320},{id:"Canada/Pacific",title:"Pacific",winIndex:11,link:327},{id:"Canada/Saskatchewan",title:"Saskatchewan",winIndex:37,link:310},{id:"Canada/Yukon",title:"Yukon",winIndex:11,link:328},{id:"Chile/Continental",title:"Continental",winIndex:39,link:315},{id:"Cuba",title:"Cuba",winIndex:14,link:258},{id:"Egypt",title:"Egypt",winIndex:40,link:189},{id:"Eire",title:"Eire",winIndex:26,link:469},{id:"Europe/Belfast",title:"Belfast",winIndex:26,link:476},{id:"Europe/Tiraspol",title:"Tiraspol",winIndex:4,link:467},{id:"GB",title:"GB",winIndex:26,link:476},{id:"GB-Eire",title:"GB-Eire",winIndex:26,link:476},{id:"GMT+0",title:"GMT+0",winIndex:41,link:150},{id:"GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"GMT0",title:"GMT0",winIndex:41,link:150},{id:"Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Hongkong",title:"Hongkong",winIndex:19,link:362},{id:"Iceland",title:"Iceland",winIndex:0,link:417},{id:"Iran",title:"Iran",winIndex:42,link:401},{id:"Israel",title:"Israel",winIndex:23,link:367},{id:"Jamaica",title:"Jamaica",winIndex:10,link:270},{id:"Japan",title:"Japan",winIndex:43,link:403},{id:"Kwajalein",title:"Kwajalein",winIndex:44,link:524},{id:"Libya",title:"Libya",winIndex:45,link:200},{id:"Mexico/BajaNorte",title:"BajaNorte",winIndex:11,link:325},{id:"Mexico/BajaSur",title:"BajaSur",winIndex:46,link:282},{id:"Mexico/General",title:"General",winIndex:47,link:285},{id:"NZ",title:"NZ",winIndex:8,link:511},{id:"Navajo",title:"Navajo",winIndex:15,link:244},{id:"PRC",title:"PRC",winIndex:19,link:395},{id:"Pacific/Ponape",title:"Ponape",winIndex:48,link:532},{id:"Pacific/Samoa",title:"Samoa",winIndex:49,link:530},{id:"Pacific/Truk",title:"Truk",winIndex:50,link:512},{id:"Poland",title:"Poland",winIndex:51,link:498},{id:"Portugal",title:"Portugal",winIndex:26,link:475},{id:"ROC",title:"ROC",winIndex:52,link:398},{id:"ROK",title:"ROK",winIndex:53,link:394},{id:"Singapore",title:"Singapore",winIndex:24,link:396},{id:"Turkey",title:"Turkey",winIndex:54,link:472},{id:"US/Alaska",title:"Alaska",winIndex:55,link:203},{id:"US/Arizona",title:"Arizona",winIndex:56,link:302},{id:"US/Central",title:"Central",winIndex:13,link:235},{id:"US/Eastern",title:"Eastern",winIndex:14,link:291},{id:"US/Hawaii",title:"Hawaii",winIndex:57,link:521},{id:"US/Indiana-Starke",title:"Indiana-Starke",winIndex:13,link:261},{id:"US/Michigan",title:"Michigan",winIndex:14,link:245},{id:"US/Mountain",title:"Mountain",winIndex:15,link:244},{id:"US/Pacific",title:"Pacific",winIndex:11,link:276},{id:"US/Samoa",title:"Samoa",winIndex:49,link:530},{id:"W-SU",title:"W-SU",winIndex:58,link:482},{id:"GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/Greenwich",title:"Greenwich",winIndex:41,link:150},{id:"Etc/GMT-0",title:"GMT-0",winIndex:41,link:150},{id:"Etc/GMT+0",title:"GMT+0",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT0",title:"GMT0",winIndex:41,link:150},{id:"Europe/Jersey",title:"Jersey",winIndex:26,link:476},{id:"Europe/Guernsey",title:"Guernsey",winIndex:26,link:476},{id:"Europe/Isle_of_Man",title:"Isle of Man",winIndex:26,link:476},{id:"Europe/Mariehamn",title:"Mariehamn",winIndex:59,link:471},{id:"Europe/Busingen",title:"Busingen",winIndex:27,link:500},{id:"Europe/Vatican",title:"Vatican",winIndex:27,link:487},{id:"Europe/San_Marino",title:"San Marino",winIndex:27,link:487},{id:"Europe/Vaduz",title:"Vaduz",winIndex:27,link:500},{id:"Arctic/Longyearbyen",title:"Longyearbyen",winIndex:27,link:483},{id:"Europe/Ljubljana",title:"Ljubljana",winIndex:60,link:462},{id:"Europe/Podgorica",title:"Podgorica",winIndex:60,link:462},{id:"Europe/Sarajevo",title:"Sarajevo",winIndex:60,link:462},{id:"Europe/Skopje",title:"Skopje",winIndex:60,link:462},{id:"Europe/Zagreb",title:"Zagreb",winIndex:60,link:462},{id:"Europe/Bratislava",title:"Bratislava",winIndex:60,link:485},{id:"Asia/Istanbul",title:"Istanbul",winIndex:54,link:472},{id:"Pacific/Johnston",title:"Johnston",winIndex:57,link:521},{id:"US/Pacific-New",title:"Pacific-New",winIndex:11,link:276},{id:"America/Aruba",title:"Aruba",winIndex:16,link:240},{id:"America/Lower_Princes",title:"Lower Princes",winIndex:16,link:240},{id:"America/Kralendijk",title:"Kralendijk",winIndex:16,link:240},{id:"America/Anguilla",title:"Anguilla",winIndex:16,link:303},{id:"America/Dominica",title:"Dominica",winIndex:16,link:303},{id:"America/Grenada",title:"Grenada",winIndex:16,link:303},{id:"America/Guadeloupe",title:"Guadeloupe",winIndex:16,link:303},{id:"America/Marigot",title:"Marigot",winIndex:16,link:303},{id:"America/Montserrat",title:"Montserrat",winIndex:16,link:303},{id:"America/St_Barthelemy",title:"St Barthelemy",winIndex:16,link:303},{id:"America/St_Kitts",title:"St Kitts",winIndex:16,link:303},{id:"America/St_Lucia",title:"St Lucia",winIndex:16,link:303},{id:"America/St_Thomas",title:"St Thomas",winIndex:16,link:303},{id:"America/St_Vincent",title:"St Vincent",winIndex:16,link:303},{id:"America/Tortola",title:"Tortola",winIndex:16,link:303},{id:"Africa/Abidjan",title:"Abidjan",winIndex:0,offsets:[-.2688888888888889,0],offsetIndices:"01",untils:"-u9rgl4|Infinity"},{id:"Africa/Accra",title:"Accra",winIndex:0,offsets:[-.014444444444444446,0,.3333333333333333],offsetIndices:"012121212121212121212121212121212121212121212121",untils:"-r507yk|1e3pak|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|cjvlc|681qo|clq9c|681qo|cjvlc|681qo|cjvlc|681qo|Infinity"},{id:"Africa/Algiers",title:"Algiers",winIndex:3,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121232321212122321212",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|53c00|9idxc0|3i040|51mw0|253uk0|9o2k0|92040|8l3s0|jutc0|4uy840|3rdzw0|46xc00|7x6o0|2xco40|8n180|7x9g0|9d440|kiqg0|9d440|9q2s0|9cyk0|Infinity"},{id:"Africa/Bissau",title:"Bissau",winIndex:0,offsets:[-1.038888888888889,-1,0],offsetIndices:"012",untils:"-u9reg4|wvoyk4|Infinity"},{id:"Africa/Cairo",title:"Cairo",winIndex:40,offsets:[2,3],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-fdls80|40d80|a31g0|7x3w0|a4w40|aqyk0|80ys0|b07w0|7tk40|b07w0|8jhg0|a8fw0|60go40|7el80|awo40|7v980|awqw0|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7tk40|ayd80|7tk40|b07w0|7tk40|ayd80|7tk40|ayd80|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|f9x80|3i040|eluk0|462s0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|b5rw0|7m5g0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|awik0|7ves0|awik0|7ves0|aqvs0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7k580|b5xg0|6u7w0|bvus0|6h980|c8tg0|64ak0|cyqs0|5anw0|1jms0|12t80|1w22s0|25p80|1sw40|2vmk0|Infinity"},{id:"Africa/Casablanca",title:"Casablanca",winIndex:61,offsets:[-.5055555555555555,0,1],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-tblt9g|di7nxg|3huk0|51k40|2znuk0|2dp9g0|776k0|8nt2s0|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|xqqk0|bp56s0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Ceuta",title:"Ceuta",winIndex:62,offsets:[0,1,2],offsetIndices:"010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qyiys0|7x3w0|2vt440|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|k69g40|657w0|3ifxg0|3jp80|va040|4qak0|e1ms0|7pp80|cnms0|3afw0|2xi840|129us0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Africa/El_Aaiun",title:"El Aaiun",winIndex:61,offsets:[-.88,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-isdxk0|m2g0c0|vek0|4qak0|e1ms0|7pp80|cnms0|3afw0|fke5g0|4qak0|e1ms0|45x80|d2g40|51ek0|c8tg0|64ak0|e1sc0|47uo0|1leo0|23xc0|asw00|3lmo0|1qyo0|40g00|7x6o0|4mo00|1stc0|4deo0|7x6o0|3ylc0|1stc0|51hc0|7x6o0|3lmo0|1stc0|5reo0|7k800|2vpc0|25s00|64dc0|7k800|2iqo0|1stc0|6uao0|7x6o0|1stc0|1stc0|779c0|7x6o0|12w00|1stc0|7x6o0|7x6o0|pxc0|1stc0|8n400|9q000|902o0|902o0|9q000|8n400|a2yo0|8a5c0|afxc0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|afxc0|8a5c0|9q000|Infinity"},{id:"Africa/Johannesburg",title:"Johannesburg",winIndex:2,offsets:[1.5,2,3],offsetIndices:"012121",untils:"-yvtdi0|kn7o60|9cyk0|9d440|9cyk0|Infinity"},{id:"Africa/Khartoum",title:"Khartoum",winIndex:1,offsets:[2.1688888888888886,2,3],offsetIndices:"01212121212121212121212121212121212",untils:"-kcrsow|kixv4w|8l6k0|a4w40|8n180|a6qs0|8n180|a31g0|8ovw0|a16s0|8qqk0|9zc40|8sl80|9xhg0|8wak0|9ts40|8y580|a4w40|8n180|a31g0|8ovw0|a16s0|8sl80|9xhg0|8ufw0|9vms0|8wak0|9ts40|8y580|a4w40|8ovw0|a16s0|8qqk0|7frw40|Infinity"},{id:"Africa/Lagos",title:"Lagos",winIndex:3,offsets:[.22666666666666666,1],offsetIndices:"01",untils:"-q9qbao|Infinity"},{id:"Africa/Maputo",title:"Maputo",winIndex:2,offsets:[2.1722222222222225,2],offsetIndices:"01",untils:"-yvtfd8|Infinity"},{id:"Africa/Monrovia",title:"Monrovia",winIndex:0,offsets:[-.7188888888888889,-.7416666666666667,0],offsetIndices:"012",untils:"-qj6zc4|rqyyqa|Infinity"},{id:"Africa/Nairobi",title:"Nairobi",winIndex:1,offsets:[2.454444444444445,3,2.5,2.75],offsetIndices:"01231",untils:"-lnsetg|s8mhg|57v020|afrrb0|Infinity"},{id:"Africa/Ndjamena",title:"Ndjamena",winIndex:3,offsets:[1.0033333333333334,1,2],offsetIndices:"0121",untils:"-u9rk4c|zdk5cc|7iak0|Infinity"},{id:"Africa/Tripoli",title:"Tripoli",winIndex:45,offsets:[.8788888888888889,1,2],offsetIndices:"012121212121212121212121212122122",untils:"-q3gfrw|gl6ajw|422c0|xado0|4bbo0|wrpg0|4s580|1kdpg0|c05bw0|4mqs0|9et80|9d440|9et80|9eys0|9et80|9mdg0|95jw0|9io40|9cyk0|99es0|9et80|9eys0|9et80|9d440|9et80|b2840|3cf3w0|9kis0|9et80|7vqyw0|75eo0|asw00|Infinity"},{id:"Africa/Tunis",title:"Tunis",winIndex:3,offsets:[.15583333333333332,1,2],offsetIndices:"0121212121212121212121212121212121",untils:"-uozn3l|enxevl|b5uo0|53c00|u8w00|7x9g0|c8w80|7k800|z3w0|ew40|8bx80|9d440|9nx00|925o0|8l100|gi3440|7k800|b9k00|7vc00|51mw00|5ytc0|9d1c0|9d1c0|b9k00|7thc0|7m0tc0|7tk40|93us0|b5uo0|7k800|b5uo0|7x6o0|asw00|Infinity"},{id:"Africa/Windhoek",title:"Windhoek",winIndex:63,offsets:[1.5,2,3,1],offsetIndices:"012113131313131313131313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-yvtdi0|kn7o60|9cyk0|oj2nw0|23tmo0|7xf00|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7x9g0|ast80|7x9g0|Infinity"},{id:"America/Anchorage",title:"Anchorage",winIndex:55,offsets:[-10,-9,-8],offsetIndices:"011001010101010101010101010101010111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ek1qo0|1tyx80|2e400|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l940|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Antigua",title:"Antigua",winIndex:16,link:303},{id:"America/Araguaina",title:"Araguaina",winIndex:64,offsets:[-3.2133333333333334,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121",untils:"-t85j2o|99k8mo|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|51udg0|64ak0|Infinity"},{id:"America/Argentina/Buenos_Aires",title:"Buenos Aires",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Catamarca",title:"Catamarca",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Cordoba",title:"Cordoba",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232313232223232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Jujuy",title:"Jujuy",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|c8w80|776k0|ag040|7k2g0|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/La_Rioja",title:"La Rioja",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Mendoza",title:"Mendoza",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323231212132221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bktk0|71mk0|bqas0|73h80|bvus0|773s0|3fidg0|7thc0|27bk00|6hes0|1p7mk0|3yik0|Infinity"},{id:"America/Argentina/Rio_Gallegos",title:"Rio Gallegos",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27s800|z9g0|1u93w0|3yik0|Infinity"},{id:"America/Argentina/Salta",title:"Salta",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323132322232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|430lc0|3yik0|Infinity"},{id:"America/Argentina/San_Juan",title:"San Juan",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232323123232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6qik0|3g880|8jbw0|6u7w0|bvus0|776k0|3fidg0|7thc0|27qdc0|2txg0|1sgak0|3yik0|Infinity"},{id:"America/Argentina/San_Luis",title:"San Luis",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"01212121212121212121212121212121212121212123232312122212321212",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|7pp80|b2aw0|71mk0|4qg40|4conw0|7thc0|27qdc0|2txg0|1sgak0|14nw0|2gys0|b5xg0|7k580|b5xg0|Infinity"},{id:"America/Argentina/Tucuman",title:"Tucuman",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"012121212121212121212121212121212121212121232323231323222123232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvxk0|6u540|bvus0|776k0|3fidg0|7thc0|27s800|mas0|1um2k0|3yik0|b5xg0|7k580|Infinity"},{id:"America/Argentina/Ushuaia",title:"Ushuaia",winIndex:9,offsets:[-4.28,-4,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212323232323232221232",untils:"-px7ys0|5iv8k0|67zw0|a4w40|73h80|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|cls40|66580|cls40|66580|cls40|66580|cls40|67zw0|6a040|hy7w0|6a040|xovw0|3uys0|18nbw0|b0dg0|8ve2k0|3uys0|3yik0|bqas0|71mk0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|7m2qs0|4tzw0|biw40|776k0|bvus0|6u7w0|bvus0|6u7w0|bvus0|776k0|3fidg0|7thc0|27oio0|12ys0|1u93w0|3yik0|Infinity"},{id:"America/Asuncion",title:"Asuncion",winIndex:65,offsets:[-3.844444444444444,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-jy93zk|ldwofk|s4vw0|s6w40|7tek0|b0dg0|7rjw0|b0dg0|7rjw0|b0dg0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|9eys0|9cyk0|9eys0|9cyk0|9eys0|9et80|9eys0|9cyk0|ahus0|8a2k0|9eys0|9cyk0|9o840|7k580|b7s40|93p80|9gtg0|7nuk0|b42s0|7lzw0|b5xg0|7tek0|b9ms0|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|7kas0|b5rw0|7x9g0|ast80|a31g0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|776k0|biw40|8zzw0|905g0|9px80|905g0|9px80|9d440|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|a31g0|8n180|a31g0|8n180|a31g0|Infinity"},{id:"America/Atikokan",title:"Atikokan",winIndex:10,offsets:[-6,-5],offsetIndices:"0101111",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|Infinity"},{id:"America/Bahia",title:"Bahia",winIndex:66,offsets:[-2.5677777777777777,-3,-2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121",untils:"-t85kv8|99kaf8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|4irc40|6u7w0|Infinity"},{id:"America/Bahia_Banderas",title:"Bahia Banderas",winIndex:47,offsets:[-7.016666666666667,-7,-6,-8,-5],offsetIndices:"0121212131212121212121212121212121212142424242424242424242424242424242424242424242424242424242",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|asqg0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Barbados",title:"Barbados",winIndex:16,offsets:[-3.974722222222222,-4,-3],offsetIndices:"00121212121",untils:"-o0aiaj|46b400|npv1mj|5rbw0|a31g0|8n180|a31g0|8n180|ag040|84ik0|Infinity"},{id:"America/Belem",title:"Belem",winIndex:64,offsets:[-3.232222222222222,-3,-2],offsetIndices:"012121212121212121212121212121",untils:"-t85j0s|99k8ks|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Belize",title:"Belize",winIndex:67,offsets:[-5.88,-6,-5.5,-5],offsetIndices:"01212121212121212121212121212121212121212121212121213131",untils:"-u52ic0|3edkc0|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|bvte0|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|bvte0|6u9a0|g2t2q0|3e580|4mcys0|2vmk0|Infinity"},{id:"America/Blanc-Sablon",title:"Blanc-Sablon",winIndex:16,offsets:[-4,-3],offsetIndices:"010110",untils:"-qzp0o0|a2vw0|c5jxg0|1tzdw0|2dnc0|Infinity"},{id:"America/Boa_Vista",title:"Boa Vista",winIndex:16,offsets:[-4.044444444444444,-4,-3],offsetIndices:"0121212121212121212121212121212121",untils:"-t85grk|99k93k|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|62xk40|7k580|biw40|cvw0|Infinity"},{id:"America/Bogota",title:"Bogota",winIndex:10,offsets:[-4.937777777777778,-5,-4],offsetIndices:"0121",untils:"-srdoy8|14f1hi8|ha580|Infinity"},{id:"America/Boise",title:"Boise",winIndex:15,offsets:[-8,-7,-6],offsetIndices:"0101012212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0emw0|ast80|7x9g0|ast80|1um840|9s7jw0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|51k40|doik0|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Cambridge_Bay",title:"Cambridge Bay",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"0122131212121212121212121212121212121212121212233221212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gdc0|bjeec0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x6o0|ast80|ct40|7kj40|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Campo_Grande",title:"Campo Grande",winIndex:68,offsets:[-3.641111111111111,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hvw|99ka7w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Cancun",title:"Cancun",winIndex:47,offsets:[-5.7844444444444445,-6,-5,-4],offsetIndices:"0123232321212121212121212121212121212121212",untils:"-p1u7c0|vauo00|7ggw40|afuk0|8a840|afuk0|8a840|64ak0|4bms0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|51k40|Infinity"},{id:"America/Caracas",title:"Caracas",winIndex:69,offsets:[-4.461111111111111,-4.5,-4],offsetIndices:"01212",untils:"-u7lcxw|rlo83w|meoxm0|4dps00|Infinity"},{id:"America/Cayenne",title:"Cayenne",winIndex:64,offsets:[-3.488888888888889,-4,-3],offsetIndices:"012",untils:"-uj7yb4|tcw6r4|Infinity"},{id:"America/Cayman",title:"Cayman",winIndex:10,link:299},{id:"America/Chicago",title:"Chicago",winIndex:13,offsets:[-6,-5],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bvus0|776k0|7kas0|b5rw0|9d440|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|7x9g0|dbjw0|8a840|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Chihuahua",title:"Chihuahua",winIndex:46,offsets:[-7.072222222222222,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Costa_Rica",title:"Costa Rica",winIndex:67,offsets:[-5.60361111111111,-6,-5],offsetIndices:"0121212121",untils:"-pjw8fn|ubtl3n|51ek0|doo40|51ek0|5jso40|8drw0|acas0|2xh80|Infinity"},{id:"America/Creston",title:"Creston",winIndex:56,offsets:[-7,-8],offsetIndices:"010",untils:"-rshz80|vbus0|Infinity"},{id:"America/Cuiaba",title:"Cuiaba",winIndex:68,offsets:[-3.738888888888889,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85hm4|99k9y4|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|w5hg0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Curacao",title:"Curacao",winIndex:16,offsets:[-4.59638888888889,-4.5,-4],offsetIndices:"012",untils:"-u7lckd|rlo7qd|Infinity"},{id:"America/Danmarkshavn",title:"Danmarkshavn",winIndex:41,offsets:[-1.2444444444444445,-3,-2,0],offsetIndices:"01212121212121212121212121212121213",untils:"-rvusjk|x8nx3k|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|53hk0|Infinity"},{id:"America/Dawson",title:"Dawson",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|465k00|3e2is0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Dawson_Creek",title:"Dawson Creek",winIndex:56,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101011",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|69uk0|Infinity"},{id:"America/Denver",title:"Denver",winIndex:15,offsets:[-7,-6],offsetIndices:"01010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|2vmk0|ataw40|1tz5k0|2dvo0|a7n9g0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Detroit",title:"Detroit",winIndex:14,offsets:[-5.536388888888889,-6,-5,-4],offsetIndices:"01233232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xx8dyd|5eraud|dyeyk0|1tzb40|2dq40|1c9440|7x3w0|9rlhg0|71mk0|2vcg40|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Edmonton",title:"Edmonton",winIndex:15,offsets:[-7.564444444444445,-7,-6],offsetIndices:"01212121212121221212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-x1yazk|629ink|a2vw0|8n6s0|29ek0|h6lg0|9px80|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|9l0g40|1tz5k0|2dvo0|tj1g0|7x3w0|a80840|9cyk0|s36s0|9cyk0|1b6840|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Eirunepe",title:"Eirunepe",winIndex:10,offsets:[-4.657777777777778,-5,-4],offsetIndices:"0121212121212121212121212121212121",untils:"-t85f28|99ka68|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|7hg2s0|2t2t80|Infinity"},{id:"America/El_Salvador",title:"El Salvador",winIndex:67,offsets:[-5.946666666666667,-6,-5],offsetIndices:"012121",untils:"-pkm4tc|ymao5c|7k580|b5xg0|7k580|Infinity"},{id:"America/Fortaleza",title:"Fortaleza",winIndex:64,offsets:[-2.566666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85kvc|99kafc|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Glace_Bay",title:"Glace Bay",winIndex:36,offsets:[-3.996666666666667,-4,-3],offsetIndices:"012122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94kwc|89fk8c|a2vw0|c5jxg0|1tzdw0|2dnc0|3y8g40|7x3w0|9pa5g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Godthab",title:"Godthab",winIndex:70,offsets:[-3.448888888888889,-3,-2],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvumf4|x8nqz4|8zrk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Goose_Bay",title:"Goose Bay",winIndex:36,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-4,-3,-2],offsetIndices:"010232323232323233232323232323232323232323232323232323232324545454545454545454545454545454545454545454546454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454",untils:"-qzp20k|a2vw0|8kjbw0|kzjyk|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|6y2s0|22420|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Grand_Turk",title:"Grand Turk",winIndex:16,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212122",untils:"-u85og1|z3brw1|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Guatemala",title:"Guatemala",winIndex:67,offsets:[-6.0344444444444445,-6,-5],offsetIndices:"0121212121",untils:"-qqqskk|ss0akk|4ofw0|4tidg0|6djw0|3wwas0|8n180|7n5ms0|7x3w0|Infinity"},{id:"America/Guayaquil",title:"Guayaquil",winIndex:10,offsets:[-5.233333333333333,-5],offsetIndices:"01",untils:"-kcr84o|Infinity"},{id:"America/Guyana",title:"Guyana",winIndex:16,offsets:[-3.8777777777777778,-3.75,-3,-4],offsetIndices:"01123",untils:"-smcak8|qqnjn8|4sh9c0|81rf90|Infinity"},{id:"America/Halifax",title:"Halifax",winIndex:36,offsets:[-4.24,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94k80|777go0|9et80|st9o0|a2vw0|ssyk0|5rbw0|cv1g0|69uk0|c6ys0|6kyk0|ci2s0|67zw0|ci2s0|6w2k0|bu040|7lzw0|bu040|66580|bu040|7lzw0|bu040|64ak0|cls40|5v180|cv1g0|6j3w0|c6ys0|79180|b42s0|7lzw0|b42s0|7yyk0|bu040|64ak0|dbpg0|66580|cls40|5ed80|bu040|7lzw0|b42s0|7lzw0|cjxg0|66580|bh1g0|7lzw0|b42s0|7lzw0|6uj00|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|tw040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|1cm2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Havana",title:"Havana",winIndex:14,offsets:[-5.493333333333334,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-n7762o|1icfyo|69uk0|62s040|4ofw0|e1ms0|51ek0|e1ms0|4ofw0|1fhs40|4ofw0|e1ms0|4ofw0|9s9k40|67zw0|cedg0|6h980|9o840|7yyk0|b5xg0|7k580|bvus0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|8a2k0|ag040|8bx80|ae5g0|8drw0|acas0|9cyk0|9d440|9px80|905g0|9px80|9q2s0|7x3w0|8a840|ast80|7x9g0|ast80|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|905g0|a2vw0|905g0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|8n400|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|7x6o0|1cm000|6uao0|bvs00|779c0|bitc0|6uao0|bvs00|779c0|bvs00|779c0|c8qo0|779c0|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|Infinity"},{id:"America/Hermosillo",title:"Hermosillo",winIndex:56,offsets:[-7.397777777777778,-7,-6,-8],offsetIndices:"0121212131212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Indiana/Indianapolis",title:"Indianapolis",winIndex:12},{id:"America/Indiana/Knox",title:"Knox",winIndex:13,offsets:[-6,-5],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101010101010101010111010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|tj1g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|s3180|1twas0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|7j5400|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Marengo",title:"Marengo",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101212121212111212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|2wsas0|7x3w0|1c9440|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|fvt9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Petersburg",title:"Petersburg",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010101010101010111011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|501ek0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|sfzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|eu02o0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Tell_City",title:"Tell City",winIndex:13,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vevay",title:"Vevay",winIndex:12,offsets:[-6,-5,-4],offsetIndices:"010101101212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|4gyis0|7txx80|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|hfzhg0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Vincennes",title:"Vincennes",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010121211011212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|3fidg0|7x3w0|asys0|7x3w0|b5rw0|7kas0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|2lz980|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Indiana/Winamac",title:"Winamac",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"01010110101010101010101010101010101010121211021212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|465h80|9cyk0|9d440|9cyk0|ihslg0|asw00|6udg0|c8l40|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Inuvik",title:"Inuvik",winIndex:15,offsets:[0,-8,-6,-7],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-8ve5c0|6fce80|9q000|71i2w0|ipzw0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Iqaluit",title:"Iqaluit",winIndex:14,offsets:[0,-4,-5,-3,-6],offsetIndices:"01123212121212121212121212121212121212121212142212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-eb6ao0|1l3h80|2dq40|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Jamaica",title:"Jamaica",winIndex:10,offsets:[-5.119722222222222,-5,-4],offsetIndices:"0121212121212121212121",untils:"-u85og1|wbl181|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|Infinity"},{id:"America/Juneau",title:"Juneau",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010001010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9d1c0|9d1c0|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Louisville",title:"Louisville",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101010101101010101010101010101010101121212121212111212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|sg5g0|6bp80|a98o40|7x3w0|6w840|1tz8c0|2dsw0|4s580|7tk40|gxc40|1s3bw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|4bh80|3j3xc0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4g00|64dc0|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Kentucky/Monticello",title:"Monticello",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0101011010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|bs6g40|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/La_Paz",title:"La Paz",winIndex:16,offsets:[-4.543333333333334,-3.5433333333333334,-4],offsetIndices:"012",untils:"-jxzspo|84ik0|Infinity"},{id:"America/Lima",title:"Lima",winIndex:10,offsets:[-5.1433333333333335,-5,-4],offsetIndices:"0121212121212121",untils:"-w25lpo|fcxjlo|4ml80|93us0|9cyk0|9d440|9cyk0|nw16s0|4ml80|e5c40|4ml80|1fr1g0|4ml80|1yiys0|4ml80|Infinity"},{id:"America/Los_Angeles",title:"Los Angeles",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|1a3c40|f2ik0|owdg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Maceio",title:"Maceio",winIndex:64,offsets:[-2.381111111111111,-3,-2],offsetIndices:"012121212121212121212121212121212121212121",untils:"-t85ldw|99kaxw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|2yl440|64ak0|1wf1g0|7k580|biw40|puk0|id6s0|6h980|Infinity"},{id:"America/Managua",title:"Managua",winIndex:67,offsets:[-5.753333333333333,-6,-5],offsetIndices:"0121212121212121",untils:"-ijh6oo|ka1i0o|xqqk0|24p6s0|53980|dmtg0|53980|60itw0|dq240|53es0|235h80|4beis0|8zzw0|at4c0|7x140|Infinity"},{id:"America/Manaus",title:"Manaus",winIndex:16,offsets:[-4.001111111111111,-4,-3],offsetIndices:"01212121212121212121212121212121",untils:"-t85gvw|99k97w|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|2yy2s0|6h980|Infinity"},{id:"America/Martinique",title:"Martinique",winIndex:16,offsets:[-4.072222222222222,-4,-3],offsetIndices:"0121",untils:"-umcvcs|zz5x4s|8zzw0|Infinity"},{id:"America/Matamoros",title:"Matamoros",winIndex:13,offsets:[-6.666666666666667,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Mazatlan",title:"Mazatlan",winIndex:46,offsets:[-7.094444444444445,-7,-6,-8],offsetIndices:"0121212131212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|591h80|3ie2s0|axvpg0|dpgw40|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Menominee",title:"Menominee",winIndex:13,offsets:[-6,-5],offsetIndices:"01010110101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|asys0|7x3w0|a7n9g0|9px80|1at9g0|2396k0|9d1c0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Merida",title:"Merida",winIndex:47,offsets:[-5.974444444444444,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|vauo00|hoyk0|6ys0c0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Mexico_City",title:"Mexico City",winIndex:47,offsets:[-6.61,-7,-6,-5],offsetIndices:"012121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|3knek0|776k0|rf440|5t6k0|1evk40|71mk0|30p1g0|8n180|nufxo0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Moncton",title:"Moncton",winIndex:36,offsets:[-5,-4,-3],offsetIndices:"012121212121212121212122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-z94i40|89fhg0|a2vw0|7mqqo0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|e1ms0|4ofw0|dmtg0|64ak0|cao40|6fek0|bkqs0|7iak0|6y5k0|1tzdw0|2dnc0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a2lo|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6uiyc|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Monterrey",title:"Monterrey",winIndex:47,offsets:[-6.687777777777778,-6,-5],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u7c0|ykt480|ast80|3vppg0|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|Infinity"},{id:"America/Montevideo",title:"Montevideo",winIndex:71,offsets:[-3.7455555555555553,-3.5,-3,-2,-2.5],offsetIndices:"012121212121212121212121213232323232324242423243232323232323232323232323232323232323232",untils:"-px809g|1s8xzg|9czy0|9exe0|9czy0|9exe0|9czy0|3ydyq0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7x5a0|6do20|7vam0|humq0|4mju0|8g9s40|8zzw0|38qs0|2inw0|2nf9g0|8zzw0|9q2s0|aunw0|7ves0|awik0|ar440|9pym0|91yq0|9pym0|91yq0|9pym0|q6mq0|5t6k0|tfc40|erfy0|xdta0|m2is0|62fw0|s6w40|ayd80|3z5s40|4ofw0|dzs40|4ofw0|bvus0|6h980|bvus0|6u7w0|c8tg0|6h980|bvus0|6u7w0|614qs0|9q2s0|a31g0|7x3w0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|8a2k0|ag040|8a2k0|ag040|8a2k0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"America/Montreal",title:"Montreal",winIndex:14,link:326},{id:"America/Nassau",title:"Nassau",winIndex:14,offsets:[-5.158333333333333,-5,-4],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u6m4c6|r7u7s6|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/New_York",title:"New York",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|7x9g0|b5rw0|905g0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|6w840|1tzb40|2dq40|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nipigon",title:"Nipigon",winIndex:14,offsets:[-5,-4],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|bfxjw0|pmdk0|1tzb40|2dq40|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Nome",title:"Nome",winIndex:55,offsets:[-11,-10,-9,-8],offsetIndices:"011001010101010101010101010101010122323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ek1nw0|1tyug0|2e6s0|b7yik0|12y080|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1l6c0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Noronha",title:"Noronha",winIndex:34,offsets:[-2.161111111111111,-2,-1],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85lzw|99k8rw|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/North_Dakota/Beulah",title:"Beulah",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hc00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/Center",title:"Center",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101011212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/North_Dakota/New_Salem",title:"New Salem",winIndex:13,offsets:[-7,-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a5c0|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Ojinaga",title:"Ojinaga",winIndex:15,offsets:[-6.961111111111111,-7,-6,-5],offsetIndices:"0121212323221212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p1u4k0|2u7jw0|1sgdc0|8n400|7thc0|9eys0|xes2s0|afuk0|8a840|afuk0|8aaw0|afuk0|8a840|ast80|7x9g0|ast80|9q2s0|7k580|9q2s0|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Panama",title:"Panama",winIndex:10,offsets:[-5.326666666666667,-5],offsetIndices:"01",untils:"-w757vc|Infinity"},{id:"America/Pangnirtung",title:"Pangnirtung",winIndex:14,offsets:[0,-4,-3,-2,-5,-6],offsetIndices:"012213121212121212121212121212121212114141414154414141414141414141414141414141414141414141414141414141414141414141414141414",untils:"-pkmlc0|b0ke00|1tzdw0|2dnc0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|asw00|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7xc80|ast80|7x6o0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Paramaribo",title:"Paramaribo",winIndex:64,offsets:[-3.6777777777777776,-3.6811111111111114,-3.6766666666666667,-3.5,-3],offsetIndices:"012334",untils:"-usj4g8|cixc0c|5lydbk|fq7bic|4mkao0|Infinity"},{id:"America/Phoenix",title:"Phoenix",winIndex:56,offsets:[-7,-6],offsetIndices:"01010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|zjedo|4olg0|9et80|bs6lmc|9cyk0|Infinity"},{id:"America/Port_of_Spain",title:"Port of Spain",winIndex:16,offsets:[-4.101111111111111,-4],offsetIndices:"01",untils:"-u6m79w|Infinity"},{id:"America/Port-au-Prince",title:"Port-au-Prince",winIndex:14,offsets:[-4.816666666666666,-5,-4],offsetIndices:"01212121212121212121212121212121212121212121",untils:"-rmk9ac|ylcf6c|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8aaw0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|3vpjw0|ast80|7x9g0|ast80|2stv00|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Porto_Velho",title:"Porto Velho",winIndex:16,offsets:[-4.26,-4,-3],offsetIndices:"012121212121212121212121212121",untils:"-t85g60|99k8i0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|Infinity"},{id:"America/Puerto_Rico",title:"Puerto Rico",winIndex:16,offsets:[-4,-3],offsetIndices:"0110",untils:"-efsnk0|1ppu40|2dnc0|Infinity"},{id:"America/Rainy_River",title:"Rainy River",winIndex:13,offsets:[-6,-5],offsetIndices:"010111010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzov40|a2vw0|bfxjw0|pmdk0|1tz8c0|2dsw0|ewvus0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rankin_Inlet",title:"Rankin Inlet",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313131313131313131313131313131313131313131313131313131313131313131",untils:"-6s8lc0|4c6oo0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Recife",title:"Recife",winIndex:64,offsets:[-2.3266666666666667,-3,-2],offsetIndices:"0121212121212121212121212121212121212121",untils:"-t85ljc|99kb3c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|514g40|7k580|biw40|cvw0|iq5g0|6h980|Infinity"},{id:"America/Regina",title:"Regina",winIndex:37,offsets:[-6.9766666666666675,-7,-6],offsetIndices:"012121212121212121212121221212121212121212121212121212",untils:"-xkq9yc|6l1hmc|a2vw0|60enw0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|1b6840|9cyk0|9d440|8zzw0|9q2s0|9cyk0|9q2s0|9cyk0|9d440|9cyk0|66gc0|1tz5k0|2dvo0|a31g0|9cyk0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|tj1g0|9cyk0|9d440|Infinity"},{id:"America/Resolute",title:"Resolute",winIndex:13,offsets:[0,-6,-4,-5],offsetIndices:"012131313131313131313131313131313131313131313331313131313331313131313131313131313131313131313131313131313131313131313131",untils:"-bnp9c0|97nco0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Rio_Branco",title:"Rio Branco",winIndex:10,offsets:[-4.52,-5,-4],offsetIndices:"01212121212121212121212121212121",untils:"-t85fg0|99kak0|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|2t2t80|Infinity"},{id:"America/Santa_Isabel",title:"Santa Isabel",winIndex:72,link:325},{id:"America/Santarem",title:"Santarem",winIndex:64,offsets:[-3.646666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212",untils:"-t85hvc|99ka7c|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5mf440|49mk0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|amves0|Infinity"},{id:"America/Santiago",title:"Santiago",winIndex:39,offsets:[-4.712777777777777,-5,-4,-3],offsetIndices:"010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-vauawq|3dlssq|157b7a|f4e0q|49hzba|aye0q|7ves0|awik0|7ves0|awik0|7ves0|awik0|7ves0|ayd80|7ves0|534ik0|351g0|229zw0|2gt80|awo40|2mg00|b73400|7k580|c8tg0|6h980|a31g0|7x3w0|asys0|7x3w0|b5xg0|7k580|ag040|8a2k0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"America/Santo_Domingo",title:"Santo Domingo",winIndex:16,offsets:[-4.666666666666667,-5,-4,-4.5],offsetIndices:"01213131313131212",untils:"-j6hz1c|hiw29c|67zw0|1dy840|62ha0|cnle0|4h2m0|elyq0|47ta0|ei9e0|4bim0|eek20|4dda0|ecpe0|dkmtg0|1stc0|Infinity"},{id:"America/Sao_Paulo",title:"Sao Paulo",winIndex:35,offsets:[-3.1077777777777778,-3,-2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-t85jd8|99k8x8|9a9c0|9io40|99980|8p65g0|6zuo0|bs2o0|67zw0|cjxg0|69uk0|cjxg0|4ml80|5k02s0|6onw0|haas0|316k0|cls40|4ml80|cls40|66580|cls40|67zw0|981s40|6u7w0|biw40|5rbw0|d0lg0|5ed80|cyqs0|5ed80|dbpg0|64ak0|cyqs0|64ak0|cls40|5rbw0|dbpg0|51ek0|dbpg0|6h980|c8tg0|6h980|c8tg0|64ak0|c8tg0|6u7w0|bxpg0|7iak0|biw40|6u7w0|biw40|7k580|biw40|6u7w0|c8tg0|6h980|dbpg0|5ed80|cls40|64ak0|dfes0|5nmk0|c8tg0|6h980|dbpg0|5rbw0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|c8tg0|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|cls40|64ak0|cls40|64ak0|cls40|64ak0|cls40|6h980|c8tg0|6u7w0|bvus0|6h980|cls40|64ak0|cls40|6h980|c8tg0|Infinity"},{id:"America/Scoresbysund",title:"Scoresbysund",winIndex:73,offsets:[-1.4644444444444444,-2,-1,0],offsetIndices:"0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rvurxk|x8ntpk|902o0|9cvs0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"America/Sitka",title:"Sitka",winIndex:55,offsets:[-8,-7,-9],offsetIndices:"01101010101010101010101010101010122020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202",untils:"-ek1w80|1tz2s0|2dyg0|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1leo0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/St_Johns",title:"St Johns",winIndex:38,offsets:[-3.5144444444444445,-2.5144444444444445,-3.5,-2.5,-1.5],offsetIndices:"01010101010101010101010101010101010102323232323232323323232323232323232323232323232323232323232323232323232323232323232323232323232323232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-ris3ck|8bx80|ar440|a2vw0|9tjs0|53980|dkys0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|9cyk0|9q2s0|8zzw0|9q2s0|8zzw0|7tmw0|1wfuk|8zzw0|a3480|7k580|b5xg0|7k580|b5xg0|7k580|biw40|776k0|biw40|7k580|b5xg0|7k580|b5xg0|1pb260|2dly0|biw40|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|biw40|7k580|ag040|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a2lo|afuk0|8a840|asqg0|7xc80|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8tec|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Swift_Current",title:"Swift Current",winIndex:37,offsets:[-7.188888888888888,-7,-6],offsetIndices:"012122121212121212121212",untils:"-xkq9d4|6l1h14|a2vw0|c5jxg0|1tz5k0|2dvo0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|3yles0|9cyk0|s36s0|9cyk0|9d440|7x3w0|b5xg0|7k580|5j4lg0|Infinity"},{id:"America/Tegucigalpa",title:"Tegucigalpa",winIndex:67,offsets:[-5.814444444444445,-6,-5],offsetIndices:"01212121",untils:"-pfzh6k|yho0ik|7k580|b5xg0|7k580|96x1g0|4qak0|Infinity"},{id:"America/Thule",title:"Thule",winIndex:36,offsets:[-4.585555555555556,-4,-3],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvuj9g|12yzilg|9cyk0|9d440|9cyk0|9q2s0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Thunder_Bay",title:"Thunder Bay",winIndex:14,offsets:[-6,-5,-4],offsetIndices:"0122121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-vbavc0|gr8qs0|1tzb40|2dq40|ctmlg0|9cyk0|9d440|9px80|9d440|9cyk0|s36s0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Tijuana",title:"Tijuana",winIndex:11,offsets:[-7.801111111111111,-7,-8],offsetIndices:"012121211212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212",untils:"-p1u1s0|11jrw0|1sns00|1sgdc0|71s40|9cyk0|5iidg0|1q6700|4lfk0|190g40|eluk0|2r4r00|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|84qys0|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|77c40|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Toronto",title:"Toronto",winIndex:14,offsets:[-5,-4],offsetIndices:"01010101010101010101010101010101010101010101011101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzoxw0|a2vw0|7yx60|aqzy0|9q8c0|7jzo0|bw0c0|6bp80|cedg0|6h980|c8tg0|6h980|bvus0|776k0|biw40|776k0|biw40|776k0|biw40|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|xjeo0|1tzb40|2dq40|asys0|7x3w0|ast80|7x3w0|asys0|7x3w0|asys0|b5rw0|7xf00|ast80|7x9g0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Vancouver",title:"Vancouver",winIndex:11,offsets:[-8,-7],offsetIndices:"0101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-qzopk0|a2vw0|c5jxg0|1tz2s0|2dyg0|asys0|8n180|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Whitehorse",title:"Whitehorse",winIndex:11,offsets:[-9,-8,-7],offsetIndices:"0101011020121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-qzoms0|a2vw0|asys0|882c0|bmiwc0|1tz000|2e180|a7n3w0|9q000|tiyo0|6qp440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Winnipeg",title:"Winnipeg",winIndex:13,offsets:[-6,-5],offsetIndices:"010101011010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0s7c0|7k580|tj700|a2vw0|9ok840|6u7w0|2a5hg0|1tz8c0|2dsw0|biw40|7x3w0|a31g0|7x3w0|asys0|7x3w0|asys0|7x3w0|b7s40|7tek0|autg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|9cyk0|9d440|7x3w0|1cm2s0|7k580|1cm2s0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|asw00|7x6o0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yakutat",title:"Yakutat",winIndex:55,offsets:[-9,-8],offsetIndices:"01101010101010101010101010101010100101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ek1tg0|1tz000|2e180|cawis0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|1lbw0|7rs80|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"America/Yellowknife",title:"Yellowknife",winIndex:15,offsets:[0,-7,-6,-5],offsetIndices:"012213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-i9m2o0|3pk3o0|1tz5k0|2dvo0|a7n3w0|9q000|7k85k0|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Antarctica/Casey",title:"Casey",winIndex:33,offsets:[0,8,11],offsetIndices:"012121",untils:"-irxc0|lag4o0|73bo0|uz1o0|60l80|Infinity"},{id:"Antarctica/Davis",title:"Davis",winIndex:6,offsets:[0,7,5],offsetIndices:"01012121",untils:"-6rmdc0|42jdw0|27wgs0|l8uss0|7eqs0|unmk0|60qs0|Infinity"},{id:"Antarctica/DumontDUrville",title:"DumontDUrville",winIndex:50,offsets:[0,10],offsetIndices:"0101",untils:"-c05eo0|2mks80|2i72g0|Infinity"},{id:"Antarctica/Macquarie",title:"Macquarie",winIndex:48,offsets:[10,11,0],offsetIndices:"0102010101010101010101010101010101010101010101010101010101010101010101010101010101010101011",untils:"-rsj4w0|8zzw0|11wqk0|f4kh40|a6p8g0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Antarctica/Mawson",title:"Mawson",winIndex:17,offsets:[0,6,5],offsetIndices:"012",untils:"-8aelc0|t22y80|Infinity"},{id:"Antarctica/Palmer",title:"Palmer",winIndex:39,offsets:[0,-3,-4,-2],offsetIndices:"0121212121213121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-2lxhc0|31ho0|bqas0|71mk0|bqas0|8ovw0|9d440|9px80|9d440|9cyk0|9d440|28t6k0|51ek0|46b6s0|8c2s0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|9cyk0|9d440|7x3w0|asys0|7x3w0|b5xg0|7k580|9q2s0|8zzw0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|a31g0|9px80|9q2s0|7x3w0|b5xg0|7k580|b5xg0|7k580|b5xg0|7k580|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7k580|b5xg0|8n180|a31g0|7x3w0|asys0|8zzw0|9q2s0|ast80|5eis0|cyl80|6hes0|c8nw0|6udg0|bvp80|6udg0|vonw0|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|51k40|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|e1h80|4olg0|Infinity"},{id:"Antarctica/Rothera",title:"Rothera",winIndex:64,offsets:[0,-3],offsetIndices:"01",untils:"3lxs00|Infinity"},{id:"Antarctica/Syowa",title:"Syowa",winIndex:1,offsets:[0,3],offsetIndices:"01",untils:"-6qsqo0|Infinity"},{id:"Antarctica/Vostok",title:"Vostok",winIndex:21,offsets:[0,6],offsetIndices:"01",untils:"-6aaao0|Infinity"},{id:"Asia/Almaty",title:"Almaty",winIndex:21,offsets:[5.13,5,6,7],offsetIndices:"012323232323232323232321232323232323232323232323232",untils:"-nu1a90|37a0d0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Amman",title:"Amman",winIndex:74,offsets:[2.395555555555555,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kcrtbk|m566fk|60l80|awo40|7v980|awo40|7v980|ayis0|9gnw0|9b9g0|7v980|autg0|7v980|3e6840|9et80|9io40|9cyk0|9d440|9cyk0|9d440|9px80|ayis0|7rjw0|ag040|8a2k0|9zc40|8drw0|a31g0|8zzw0|9d440|9cyk0|9d440|8n180|ag040|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|epmo0|4deo0|9o5c0|9ew00|9b6o0|9ew00|9d1c0|9d1c0|9d1c0|asw00|7x6o0|afxc0|8n400|9d1c0|9d1c0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|wel80|51k40|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Asia/Anadyr",title:"Anadyr",winIndex:75,offsets:[11.83222222222222,12,13,14,11],offsetIndices:"01232212121212121212121141212121212121212121212121212121212121141",untils:"-nu1sv8|379zj8|qi27w0|9et80|9d440|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Aqtau",title:"Aqtau",winIndex:17,offsets:[3.351111111111111,4,5,6],offsetIndices:"012323232323232323232123232312121212121212121212",untils:"-nu15b4|379y74|qrh3w0|iruk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Aqtobe",title:"Aqtobe",winIndex:17,offsets:[3.811111111111111,4,5,6],offsetIndices:"0123232323232323232321232323232323232323232323232",untils:"-nu16l4|379zh4|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|iq5g0|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|Infinity"},{id:"Asia/Ashgabat",title:"Ashgabat",winIndex:17,offsets:[3.8922222222222222,4,5,6],offsetIndices:"012323232323232323232322112",untils:"-nu16t8|379zp8|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|1fp40|4bpk0|Infinity"},{id:"Asia/Baghdad",title:"Baghdad",winIndex:76,offsets:[2.96,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121",untils:"-r50g80|xkn3w0|7v980|9b9g0|9gnw0|9eys0|9et80|9d440|9b9g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9f1k0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|9ew00|9ew00|9d1c0|9ew00|9d1c0|9ew00|9d1c0|9ew00|Infinity"},{id:"Asia/Baku",title:"Baku",winIndex:77,offsets:[3.3233333333333333,3,4,5],offsetIndices:"01232323232323232323232221223232323232323232323232323232323232323232",untils:"-nu158c|h4tkwc|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7tbs0|1jsc0|9d1c0|9cq80|1twoo0|asw00|7x3w0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Bangkok",title:"Bangkok",winIndex:6,offsets:[6.7011111111111115,7],offsetIndices:"01",untils:"-pysda4|Infinity"},{id:"Asia/Beirut",title:"Beirut",winIndex:78,offsets:[2,3],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-pyzew0|aunw0|88dg0|9et80|8yas0|a2vw0|a31g0|7k580|hjqo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|5lhs40|56yk0|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|autg0|7v980|2wxus0|8n180|a4w40|8n180|a4w40|8n180|a4w40|8n180|bs5g0|71mk0|alk40|86d80|a4w40|8n180|a4w40|8n180|a6qs0|80t80|905g0|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|Infinity"},{id:"Asia/Bishkek",title:"Bishkek",winIndex:21,offsets:[4.973333333333333,5,6,7],offsetIndices:"01232323232323232323232212121212121212121212121212122",untils:"-nu19tc|379zxc|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7vc00|bkl80|8n180|a31g0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|9db20|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|73aa0|Infinity"},{id:"Asia/Brunei",title:"Brunei",winIndex:24,offsets:[7.661111111111111,7.5,8],offsetIndices:"012",untils:"-mvofy4|3khxs4|Infinity"},{id:"Asia/Chita",title:"Chita",winIndex:79,offsets:[7.564444444444445,8,9,10],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-q4cfog|5hkxgg|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnew0|Infinity"},{id:"Asia/Choibalsan",title:"Choibalsan",winIndex:25,offsets:[7.633333333333334,7,8,10,9],offsetIndices:"0123434343434343434343434343434343434343434343424242424242424242424242424242424242424242424242",untils:"-xmct7c|11sndrc|2qk2k0|9eqg0|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|s6qk0|3nc0c0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Colombo",title:"Colombo",winIndex:80,offsets:[5.325555555555556,5.5,6,6.5],offsetIndices:"01231321",untils:"-xehask|isle6k|cajy0|1mp2u0|qetjw0|7x5a0|4xvqq0|Infinity"},{id:"Asia/Damascus",title:"Damascus",winIndex:81,offsets:[2.42,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-q3gk20|5k6q0|8n180|a31g0|8n180|a31g0|8n180|a31g0|8zzw0|k4hk40|7yyk0|awo40|7tek0|b0dg0|7v980|awo40|7tek0|alk40|887w0|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|7v980|awo40|7v980|awo40|7v980|ayis0|7v980|awo40|6bp80|cg840|6bp80|2eh1g0|8zzw0|9ts40|8zzw0|pvk40|c33w0|7cw40|cjrw0|6zxg0|btuk0|7rpg0|9gnw0|9d440|9cyk0|9et80|9et80|9rxg0|91uk0|92040|9et80|9o840|9et80|9d440|9et80|9eys0|9et80|9b9g0|9gnw0|99es0|9iik0|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|9eys0|9et80|9d440|9et80|9d440|8y580|9q2s0|b5rw0|7x9g0|aunw0|7ig40|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|Infinity"},{id:"Asia/Dhaka",title:"Dhaka",winIndex:20,offsets:[5.888888888888888,6.5,5.5,6,7],offsetIndices:"01213343",untils:"-eqtpow|bmgyw|5lxg0|4qknw0|a63o20|jyevw0|a1400|Infinity"},{id:"Asia/Dili",title:"Dili",winIndex:43,offsets:[8.372222222222222,8,9],offsetIndices:"012212",untils:"-u9s4l8|fqcu98|1vc2o0|fz3pc0|cpz440|Infinity"},{id:"Asia/Dubai",title:"Dubai",winIndex:7,offsets:[3.6866666666666665,4],offsetIndices:"01",untils:"-q3gnko|Infinity"},{id:"Asia/Dushanbe",title:"Dushanbe",winIndex:17,offsets:[4.586666666666667,5,6,7],offsetIndices:"0123232323232323232323221",untils:"-nu18qo|379yuo|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|8c2s0|Infinity"},{id:"Asia/Ho_Chi_Minh",title:"Ho Chi Minh",winIndex:6,offsets:[7.111111111111112,7.108333333333333,7,8,9],offsetIndices:"0123423232",untils:"-x56934|2isioa|gj25iu|15ct80|8so00|tmtk0|4azjw0|2cmao0|8285c0|Infinity"},{id:"Asia/Hong_Kong",title:"Hong Kong",winIndex:19,offsets:[7.611666666666666,8,9],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y0i2h6|j09kn6|9cyk0|4f2e0|1xyfw0|b6760|bkl80|6udg0|df980|6dpg0|9cyk0|7x9g0|ast80|7x9g0|ast80|7x9g0|ast80|8a840|adzw0|8c2s0|ast80|77c40|biqk0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|6udg0|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|8n6s0|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|3lpg0|f4d80|9d440|9cyk0|9d440|9cyk0|1c9440|8a2k0|Infinity"},{id:"Asia/Hovd",title:"Hovd",winIndex:6,offsets:[6.11,6,7,8],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcoz0|11sncb0|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Irkutsk",title:"Irkutsk",winIndex:82,offsets:[6.951388888888888,7,8,9],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q28gn5|5fh175|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Jakarta",title:"Jakarta",winIndex:6,offsets:[7.12,7.333333333333333,7.5,9,8,7],offsetIndices:"01232425",untils:"-o0bdpc|4lzxc0|4wdzjc|1tu960|1cx860|11jta0|74uc20|Infinity"},{id:"Asia/Jayapura",title:"Jayapura",winIndex:43,offsets:[9.379999999999999,9,9.5],offsetIndices:"0121",untils:"-jebm20|66bqe0|a37vy0|Infinity"},{id:"Asia/Jerusalem",title:"Jerusalem",winIndex:23,offsets:[2.344444444444444,2,3,4],offsetIndices:"01212121212132121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-r50eig|bp54yg|19f3w0|7rv00|b02c0|7tk40|b07w0|8jhg0|a8lg0|8jhg0|a8ac0|t9s40|56vs0|35700|9b3w0|9gtg0|8jbw0|7tmw0|a6ig0|biyw0|8a5c0|9d1c0|902o0|7x6o0|e1eg0|4ofw0|dzxo0|4q500|doo40|64iw0|auqo0|7i500|8rfms0|51ek0|9q2s0|6u7w0|50rhg0|7x3w0|cls40|5rbw0|bbhg0|7rjw0|asys0|7k580|c8tg0|6h980|ag040|7x3w0|asys0|8a2k0|asys0|8a2k0|ap9g0|80t80|ap9g0|7nuk0|b2840|80t80|9zc40|9iik0|9kis0|93p80|9mdg0|8qqk0|apf00|7x3w0|biw40|8zx40|9io40|8n180|9kis0|9vh80|8ulg0|9px80|9mdg0|8n180|9tuw0|9tmk0|8wg40|9gnw0|99es0|8qqk0|9zc40|9tmk0|8wg40|9gnw0|99es0|8qqk0|acas0|9gnw0|99es0|93p80|9mdg0|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|7tk40|b9h80|7glg0|b9h80|7glg0|b9h80|7glg0|b9h80|7tk40|awik0|7tk40|awik0|Infinity"},{id:"Asia/Kabul",title:"Kabul",winIndex:83,offsets:[4,4.5],offsetIndices:"01",untils:"-d1pkg0|Infinity"},{id:"Asia/Kamchatka",title:"Kamchatka",winIndex:75,offsets:[10.576666666666666,11,12,13],offsetIndices:"01232323232323232323232212323232323232323232323232323232323232212",untils:"-olrupo|3z045o|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Asia/Karachi",title:"Karachi",winIndex:84,offsets:[4.47,5.5,6.5,5,6],offsetIndices:"012133434343",untils:"-wvpb30|im3zt0|1mn180|33xpg0|a63o20|g72qo0|9cyk0|2y85g0|7v980|8hms0|aaak0|Infinity"},{id:"Asia/Kathmandu",title:"Kathmandu",winIndex:22,offsets:[5.687777777777778,5.5,5.75],offsetIndices:"012",untils:"-q3gt4s|yg2lus|Infinity"},{id:"Asia/Khandyga",title:"Khandyga",winIndex:79,offsets:[9.036944444444446,8,9,10,11],offsetIndices:"01232323232323232323232212323232323232323232323232343434343434343432",untils:"-q4cjrp|5hl1jp|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|3fx40|4h6s0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Kolkata",title:"Kolkata",winIndex:18,offsets:[5.888888888888888,6.5,5.5],offsetIndices:"01212",untils:"-eqtpow|bmgyw|5lxg0|1mn180|Infinity"},{id:"Asia/Krasnoyarsk",title:"Krasnoyarsk",winIndex:85,offsets:[6.190555555555556,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q37l72|5gg8j2|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Kuala_Lumpur",title:"Kuala Lumpur",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"01223435",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|iy3o60|Infinity"},{id:"Asia/Kuching",title:"Kuching",winIndex:24,offsets:[7.355555555555555,7.5,8,8.333333333333334,9],offsetIndices:"01232323232323232422",untils:"-mvof3k|3khwxk|1epvy0|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e3flc|4ohqo|e5a9c|4ohqo|e3flc|4ohqo|3ajlc|1v2qk0|iy3ms0|Infinity"},{id:"Asia/Macau",title:"Macau",winIndex:19,offsets:[7.572222222222222,8,9],offsetIndices:"0121212121212121212121212121212121212121211",untils:"-u9s2d8|pon9v8|bvp80|6udg0|bvp80|6u3q0|bvyy0|77c40|biqk0|772e0|biqk0|8ngi0|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9d8a0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9cue0|9cyk0|9d440|9px80|9d440|9cyk0|a04w40|Infinity"},{id:"Asia/Magadan",title:"Magadan",winIndex:75,offsets:[10.053333333333335,10,11,12],offsetIndices:"0123232323232323232323221232323232323232323232323232323232323232312",untils:"-nu1nxc|37a05c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|s39k0|Infinity"},{id:"Asia/Makassar",title:"Makassar",winIndex:24,offsets:[7.96,8,9],offsetIndices:"00121",untils:"-q3gzg0|6p5hc0|4u87w0|1w02k0|Infinity"},{id:"Asia/Manila",title:"Manila",winIndex:24,offsets:[8,9],offsetIndices:"010101010",untils:"-hb5y80|4qak0|2qidg0|1b2d80|4xf440|442k0|cdqdg0|9et80|Infinity"},{id:"Asia/Nicosia",title:"Nicosia",winIndex:4,offsets:[2.2244444444444444,2,3],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-p4bq6g|rvhxyg|9cyk0|b42s0|7nuk0|8yas0|8zzw0|9q2s0|9et80|9b9g0|9cyk0|9q2s0|8zzw0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|at4c0|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Asia/Novokuznetsk",title:"Novokuznetsk",winIndex:86,offsets:[5.8133333333333335,6,7,8],offsetIndices:"012323232323232323232322123232323232323232323232323232323232322122",untils:"-nu36tc|37bu5c|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|1vbzw0|Infinity"},{id:"Asia/Novosibirsk",title:"Novosibirsk",winIndex:86,offsets:[5.527777777777778,6,7,8],offsetIndices:"0123232323232323232323221232321212121212121212121212121212121212121",untils:"-q4do0s|5hmbcs|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|2vh00|6hn40|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Omsk",title:"Omsk",winIndex:86,offsets:[4.891666666666667,5,6,7],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q5xmx6|5j6d16|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Oral",title:"Oral",winIndex:17,offsets:[3.4233333333333333,4,5,6],offsetIndices:"01232323232323232121212121212121212121212121212",untils:"-nu15ic|379yec|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|iq5g0|9d1c0|9q000|9d1c0|9d1c0|5reo0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Pontianak",title:"Pontianak",winIndex:6,offsets:[7.288888888888889,7.5,9,8,7],offsetIndices:"001213134",untils:"-w6piww|cse2o0|4tnu2w|1wkei0|1cx860|11jta0|74uc20|cixam0|Infinity"},{id:"Asia/Pyongyang",title:"Pyongyang",winIndex:53,offsets:[8.383333333333333,8.5,9],offsetIndices:"012221",untils:"-w895yc|1yh10c|dfsmm0|44cqo0|10ipmo0|Infinity"},{id:"Asia/Qatar",title:"Qatar",winIndex:5,offsets:[3.4355555555555553,4,3],offsetIndices:"012",untils:"-q3gmvk|rctnrk|Infinity"},{id:"Asia/Qyzylorda",title:"Qyzylorda",winIndex:21,offsets:[4.364444444444445,4,5,6],offsetIndices:"0123232323232323232323232323232323232323232323",untils:"-nu184g|37a10g|qi27w0|s6qk0|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|ohhc0|cyo00|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Rangoon",title:"Rangoon",winIndex:87,offsets:[6.411111111111111,6.5,9],offsetIndices:"0121",untils:"-q3gv54|bnjp34|1kh520|Infinity"},{id:"Asia/Riyadh",title:"Riyadh",winIndex:5,offsets:[3.1144444444444446,3],offsetIndices:"01",untils:"-bwgbbg|Infinity"},{id:"Asia/Sakhalin",title:"Sakhalin",winIndex:88,offsets:[9.513333333333332,9,11,12,10],offsetIndices:"01123232323232323232323224232323232322424242424242424242424242424242",untils:"-xl87rc|gr8pfc|44elc0|ikvh40|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asys0|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|qnc40|Infinity"},{id:"Asia/Samarkand",title:"Samarkand",winIndex:17,offsets:[4.464722222222222,4,5,6],offsetIndices:"01233323232323232323232332",untils:"-nu18eh|37a1ah|qi27w0|9et80|9d1c0|9ew00|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7wyc0|1g300|Infinity"},{id:"Asia/Seoul",title:"Seoul",winIndex:53,offsets:[8.464444444444444,8.5,9,9.5,10],offsetIndices:"01222131313131313124242",untils:"-w8966g|1yh18g|dfsmm0|454io0|4gadc0|l3aq0|6j3w0|d2g40|6u7w0|b5xg0|776k0|biw40|776k0|biw40|776k0|biw40|776k0|grs40|dfqxi0|7x6o0|asw00|7x6o0|Infinity"},{id:"Asia/Shanghai",title:"Shanghai",winIndex:19,offsets:[8,9],offsetIndices:"01010101010101010",untils:"-ffs0w0|66580|8jhg0|a8fw0|n9rc40|6u7w0|asys0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|asys0|7x3w0|asys0|7x3w0|Infinity"},{id:"Asia/Singapore",title:"Singapore",winIndex:24,offsets:[6.923611111111112,7,7.333333333333333,7.5,9,8],offsetIndices:"012234335",untils:"-xphpwd|eeb94d|1kbr2o|2yhc00|8n3jc|1v2p60|ae0xi0|8k2qo0|Infinity"},{id:"Asia/Srednekolymsk",title:"Srednekolymsk",winIndex:75,offsets:[10.247777777777777,10,11,12],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-nu1ogs|37a0os|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Taipei",title:"Taipei",winIndex:52,offsets:[8,9],offsetIndices:"01010101010101010101010101010101010101010",untils:"-gtzfk0|45slc0|c51c0|75bw0|a31g0|aaak0|9d440|7v980|awo40|7v980|awo40|7v980|awo40|7v980|7tk40|clmk0|7rpg0|b07w0|7rpg0|b07w0|7rpg0|9et80|9eys0|9et80|9d440|9et80|9d440|9et80|9d440|9et80|cjxg0|69uk0|ci2s0|69uk0|6its40|9et80|9d440|9et80|1yf9g0|4qak0|Infinity"},{id:"Asia/Tashkent",title:"Tashkent",winIndex:17,offsets:[4.619722222222222,5,6,7],offsetIndices:"01232323232323232323232221",untils:"-nu18tz|379yxz|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|7x140|1g300|Infinity"},{id:"Asia/Tbilisi",title:"Tbilisi",winIndex:89,offsets:[2.986388888888889,3,4,5],offsetIndices:"0123232323232323232323222121212232323232323232323212",untils:"-nu14an|h4tjyn|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|gig0|8wlo0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d1c0|9cyk0|9q2s0|tivw0|7x9g0|ast80|7x9g0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7x9g0|ast80|7x9g0|ast80|7x9g0|4ofw0|6hn40|7k800|Infinity"},{id:"Asia/Tehran",title:"Tehran",winIndex:42,offsets:[3.428888888888889,3.5,4,5,4.5],offsetIndices:"00123214141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141",untils:"-s6m6uw|fnolc0|gm3h4w|777y0|b07w0|3pes0|42c20|9cyk0|9gtg0|9kd80|5ja5g0|7avw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|1av440|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9d440|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|9b9g0|9gnw0|Infinity"},{id:"Asia/Thimphu",title:"Thimphu",winIndex:20,offsets:[5.9766666666666675,5.5,6],offsetIndices:"012",untils:"-bojclo|kxymno|Infinity"},{id:"Asia/Tokyo",title:"Tokyo",winIndex:43,offsets:[9,10],offsetIndices:"0010101010",untils:"-gtzic0|5ivew0|6sd80|ahus0|887w0|cao40|6fek0|cao40|6fek0|Infinity"},{id:"Asia/Ulaanbaatar",title:"Ulaanbaatar",winIndex:25,offsets:[7.125555555555556,7,8,9],offsetIndices:"012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-xmcrsk|11sncck|2qk2k0|9et80|9eys0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|1ckdo0|7x3w0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|4fio40|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9pro0|9d9o0|9ct00|9d9o0|9ct00|9d9o0|9ct00|Infinity"},{id:"Asia/Urumqi",title:"Urumqi",winIndex:21,offsets:[5.838888888888889,6],offsetIndices:"01",untils:"-lx5pjw|Infinity"},{id:"Asia/Ust-Nera",title:"Ust-Nera",winIndex:88,offsets:[9.548333333333334,8,9,12,11,10],offsetIndices:"0123434343434343434343445434343434343434343434343434343434343434345",untils:"-q4cl6u|5hl2yu|qi27w0|9eno0|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|8ql00|1mlho0|Infinity"},{id:"Asia/Vladivostok",title:"Vladivostok",winIndex:88,offsets:[8.791944444444445,9,10,11],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-oligf7|3yqvf7|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yakutsk",title:"Yakutsk",winIndex:79,offsets:[8.649444444444445,8,9,10],offsetIndices:"012323232323232323232322123232323232323232323232323232323232323232",untils:"-q4cioy|5hl0gy|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yekaterinburg",title:"Yekaterinburg",winIndex:90,offsets:[4.0425,3.751388888888889,4,5,6],offsetIndices:"0123434343434343434343433234343434343434343434343434343434343434343",untils:"-rx5hw9|1kybx4|5pfyv5|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Asia/Yerevan",title:"Yerevan",winIndex:91,offsets:[2.966666666666667,3,4,5],offsetIndices:"0123232323232323232323222121212122323232323232323232323232323232",untils:"-nu148o|h4tjwo|ckinw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|91rs0|bcc0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sfzw0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|Infinity"},{id:"Atlantic/Azores",title:"Azores",winIndex:73,offsets:[-1.9088888888888889,-2,-1,0],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323233323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9rc14|2bug54|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Bermuda",title:"Bermuda",winIndex:36,offsets:[-4.321666666666667,-4,-3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-kvj2fu|n4pr3u|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Atlantic/Canary",title:"Canary",winIndex:26,offsets:[-1.0266666666666666,-1,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-oytbtc|ctvupc|hhq7s0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Cape_Verde",title:"Cape Verde",winIndex:92,offsets:[-1.5677777777777777,-2,-1],offsetIndices:"01212",untils:"-wvoub8|im43v8|1mn180|fpqwc0|Infinity"},{id:"Atlantic/Faroe",title:"Faroe",winIndex:26,offsets:[-.45111111111111113,0,1],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-wcehew|127keuw|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Madeira",title:"Madeira",winIndex:26,offsets:[-1.1266666666666665,-1,0,1],offsetIndices:"01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-u9re7c|2bufjc|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5qbjo0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Atlantic/Reykjavik",title:"Reykjavik",winIndex:0,offsets:[-1.4666666666666666,-1,0],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212",untils:"-wcwx9c|4rpd9c|ci2s0|69uk0|du840|4xp80|du840|p7bw0|4w040|9bdzw0|9d6w0|64g40|cyl80|64dc0|clpc0|6hc00|bvs00|6uao0|bvs00|6uao0|bvs00|6uao0|c8qo0|6hc00|c8qo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|7x6o0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|asw00|8a5c0|Infinity"},{id:"Atlantic/South_Georgia",title:"South Georgia",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Atlantic/Stanley",title:"Stanley",winIndex:64,offsets:[-3.856666666666667,-4,-3,-2],offsetIndices:"0121212121212123232212121212121212121212121212121212121212121212121212",untils:"-u63pac|dbvxqc|8zzw0|9q2s0|8zzw0|a31g0|8zzw0|9q2s0|8zzw0|9q2s0|8zzw0|9q2s0|4xp80|l1pus0|7k580|b5rw0|77c40|biqk0|77c40|b5uo0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|77c40|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|biqk0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5rw0|7kas0|b5xg0|77c40|bvp80|6udg0|bvp80|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|biqk0|77c40|bvp80|77c40|biqk0|77c40|biqk0|77c40|Infinity"},{id:"Australia/Adelaide",title:"Adelaide",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|7k800|b5uo0|6uao0|c8qo0|779c0|bitc0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Brisbane",title:"Brisbane",winIndex:30,offsets:[10,11],offsetIndices:"01010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|Infinity"},{id:"Australia/Broken_Hill",title:"Broken Hill",winIndex:31,offsets:[9.5,10.5],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Currie",title:"Currie",winIndex:32,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Darwin",title:"Darwin",winIndex:29,offsets:[9.5,10.5],offsetIndices:"010101010",untils:"-rnsvoc|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|Infinity"},{id:"Australia/Hobart",title:"Hobart",winIndex:32,offsets:[10,11],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rsj4w0|8zzw0|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|c9tms0|9d1c0|asw00|6uao0|bvs00|6uao0|bvs00|779c0|bvs00|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|b5uo0|7k800|b5uo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|bvs00|7k800|bitc0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x6o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|7x6o0|asw00|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Lindeman",title:"Lindeman",winIndex:30,offsets:[10,11],offsetIndices:"010101010101010101010",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|97zuo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|Infinity"},{id:"Australia/Melbourne",title:"Melbourne",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|b5uo0|7x6o0|bitc0|779c0|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"Australia/Perth",title:"Perth",winIndex:33,offsets:[8,9],offsetIndices:"0101010101010101010",untils:"-rnsric|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Sydney",title:"Sydney",winIndex:28,offsets:[10,11],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101",untils:"-rnsx2c|49s2c|cxfms0|4h180|9d440|9cyk0|9q2s0|8zzw0|eeiqs0|64dc0|clpc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|8a5c0|asw00|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|779c0|b5uo0|7k800|bitc0|7k800|bitc0|779c0|bitc0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|7x6o0|asw00|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|8a5c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|Infinity"},{id:"CST6CDT",title:"CST6CDT",winIndex:13,offsets:[-6,-5],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0esg0|ast80|7x9g0|ast80|bmtus0|1tz8c0|2dsw0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"EST5EDT",title:"EST5EDT",winIndex:14,offsets:[-5,-4],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0ev80|ast80|7x9g0|ast80|bmtus0|1tzb40|2dq40|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Etc/GMT",title:"GMT",winIndex:41,link:150},{id:"Etc/GMT+1",title:"GMT+1",winIndex:92,offsets:[-1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+10",title:"GMT+10",winIndex:57,offsets:[-10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+11",title:"GMT+11",winIndex:49,offsets:[-11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+12",title:"GMT+12",winIndex:93,offsets:[-12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+2",title:"GMT+2",winIndex:34,offsets:[-2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+3",title:"GMT+3",winIndex:64,offsets:[-3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+4",title:"GMT+4",winIndex:16,offsets:[-4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+5",title:"GMT+5",winIndex:10,offsets:[-5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+6",title:"GMT+6",winIndex:67,offsets:[-6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT+7",title:"GMT+7",winIndex:56,offsets:[-7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-1",title:"GMT-1",winIndex:3,offsets:[1],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-10",title:"GMT-10",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-11",title:"GMT-11",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-12",title:"GMT-12",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-13",title:"GMT-13",winIndex:94,offsets:[13],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-14",title:"GMT-14",winIndex:95,offsets:[14],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-2",title:"GMT-2",winIndex:2,offsets:[2],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-3",title:"GMT-3",winIndex:1,offsets:[3],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-4",title:"GMT-4",winIndex:7,offsets:[4],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-5",title:"GMT-5",winIndex:17,offsets:[5],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-6",title:"GMT-6",winIndex:21,offsets:[6],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-7",title:"GMT-7",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-8",title:"GMT-8",winIndex:24,offsets:[8],offsetIndices:"0",untils:"Infinity"},{id:"Etc/GMT-9",title:"GMT-9",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UCT",title:"UCT",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Etc/UTC",title:"UTC",winIndex:41,offsets:[0],offsetIndices:"0",untils:"Infinity"},{id:"Europe/Amsterdam",title:"Amsterdam",winIndex:27,offsets:[.3255555555555556,1.3255555555555556,1.3333333333333333,.3333333333333333,2,1],offsetIndices:"010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545",untils:"-s0dvkk|7v980|a51o0|7x6o0|a2yo0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9b6o0|a2yo0|c51c0|6l1c0|902o0|9q000|ci000|682o0|bgyo0|79400|bitc0|779c0|bmio0|7gio0|bbeo0|7eo00|bd9c0|7ctc0|bf400|7ayo0|bvs00|6uao0|bko00|7idc0|b9k00|7gio0|bbeo0|7eo00|bf400|7ayo0|btxc0|21uc0|4uaz8|bitc0|779c0|bko00|7idc0|bd3s0|1aarpc|7k800|9q000|9d1c0|9d1c0|9d1c0|8l9c0|ggp1c0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Andorra",title:"Andorra",winIndex:27,offsets:[0,1,2],offsetIndices:"012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-c4xmo0|k3ctg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Athens",title:"Athens",winIndex:4,offsets:[1.581111111111111,2,3,1],offsetIndices:"012121313121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rvv0cg|8bjasg|2vmk0|4hiw40|16ik0|scog0|7lx40|9o2k0|9eys0|4atzw0|6djw0|bplus0|bq800|71uw0|9d1c0|902o0|91xc0|9o5c0|905g0|9qgo0|9akg0|9iik0|99980|9dcg0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Belgrade",title:"Belgrade",winIndex:60,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ezayw0|swz00|7k800|9q000|9d1c0|9d1c0|b7pc0|6qlc0|jl1hc0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Berlin",title:"Berlin",winIndex:27,offsets:[1,2,3],offsetIndices:"01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|2o7w0|6bs00|2txg0|7k800|91xc0|9b9g0|1sqk0|2inw0|51k40|a2yo0|8n400|9q000|902o0|fx91c0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Brussels",title:"Brussels",winIndex:62,offsets:[0,1,2],offsetIndices:"0121212101010101010101010101010101010101010101010101212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ss5uo0|rrx80|7vc00|a4yw0|7x6o0|asw00|7x6o0|2wh40|5omo0|b5uo0|6uao0|cyo00|7ayo0|bko00|7rmo0|a2yo0|a2yo0|8n400|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|90b00|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|4deo0|1a36k0|7k800|9q000|9d1c0|8l9c0|a4tc0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Bucharest",title:"Bucharest",winIndex:4,offsets:[1.74,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-k29zi0|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|kp0dc0|6h980|9q000|905g0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Budapest",title:"Budapest",winIndex:60,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|a31g0|8n180|autg0|bgvw0|b5jeg0|th9k0|7k800|9q000|9d1c0|9d1c0|awd00|9ew00|7q0c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9q000|902o0|a4tc0|9q000|1va2g0|6u7w0|bxpg0|6u7w0|cjxg0|64ak0|cluw0|64g40|br3ek0|905g0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Chisinau",title:"Chisinau",winIndex:4,offsets:[1.9166666666666667,1.74,2,3,1,4],offsetIndices:"012323232323232323232424235353535353535353535323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r2p1bo|70f1to|fj8m0|6w5c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|geqo0|ha580|oc8g0|7k800|9q000|9d1c0|7cl00|j3pbw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|25p80|7kdk0|9d1c0|9d1c0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xf00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Copenhagen",title:"Copenhagen",winIndex:62,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75bw0|cbs2w0|1aco80|7k800|9q000|9d1c0|9d1c0|9d1c0|6y000|dbmo0|6bs00|clpc0|51hc0|e1k00|4oio0|giutc0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Dublin",title:"Dublin",winIndex:26,offsets:[-.42250000000000004,.5775,0,1],offsetIndices:"01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-rzcmlr|6uao0|9pytr|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|3g8580|8a840|bvp80|8n6s0|a2yo0|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Gibraltar",title:"Gibraltar",winIndex:27,offsets:[0,1,2],offsetIndices:"010101010101010101010101010101010101010101010101012121212121010121010101010101010101012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|d0tp80|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Helsinki",title:"Helsinki",winIndex:59,offsets:[1.6636111111111112,2,3],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-peghyd|ax3tqd|9gqo0|k31s80|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Istanbul",title:"Istanbul",winIndex:54,offsets:[1.948888888888889,2,3,4],offsetIndices:"012121212121212121212121212121212121212121212121212121232323232322121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-ux9xew|2wvx6w|7v980|1tjc40|aunw0|88dg0|9et80|8yas0|a2vw0|tzpg0|79180|awo40|7v980|7p25g0|4zjw0|2xms0|f4d80|9vms0|b07w0|19f9g0|9px80|c5440|69uk0|acas0|8n180|a31g0|8n180|9q2s0|8zzw0|a8lg0|8ufw0|a31g0|8ovw0|5mbes0|4dbw0|u3es0|75bw0|2wxus0|7x3w0|asys0|7x3w0|b5xg0|7x3w0|c8w80|7x9g0|7k800|b6080|7jww0|ast80|b9ms0|7tek0|7x9g0|a2vw0|8n6s0|a2vw0|iruk0|8yj40|9rjk0|8lkg0|a4i80|8lkg0|a4i80|f2o40|38l80|t4840|8a5c0|9f4c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cyk0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7kdk0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7m2o0|b4000|7k800|b5uo0|7x6o0|asw00|7z1c0|ar1c0|7x6o0|bitc0|779c0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Kaliningrad",title:"Kaliningrad",winIndex:96,offsets:[1,2,3,4],offsetIndices:"0101010101010121232323232323232322121212121212121212121212121212121212121212121",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|9d1c0|4od40|62fw0|9kd80|351g0|ie8nw0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Kiev",title:"Kiev",winIndex:59,offsets:[2.0344444444444445,2,3,1,4],offsetIndices:"0121313242424242424242424242121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu11ng|37a03g|5vd6k0|kzv40|7k800|9q000|1oyg0|jipzs0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|51ek0|neqw0|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Lisbon",title:"Lisbon",winIndex:26,offsets:[-.6125,0,1,2],offsetIndices:"012121212121212121212121212121212121212121212321232123212321212121212121212121212121212121212121212121212121212121212121212121212122323232212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-u9rfmr|2bue6r|6zxg0|66580|bq800|73k00|bodc0|71pc0|bq800|73k00|bq800|71pc0|bq800|1b2g00|9b6o0|saio0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|st1c0|8n400|9d1c0|9d1c0|sg2o0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|bitc0|9d1c0|9ew00|88ao0|25p80|5reo0|3lpg0|779c0|1sqk0|6uao0|38qs0|6uao0|25p80|6hc00|38qs0|6uao0|25p80|6hc00|38qs0|8a5c0|9d1c0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|s3400|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|5gyl40|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d440|9cyk0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9cyk0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/London",title:"London",winIndex:26,offsets:[0,1,2],offsetIndices:"0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzcns0|6uao0|9q000|8c000|9o5c0|9ruo0|9b6o0|9ew00|9b6o0|auqo0|88ao0|9ew00|8y800|a2yo0|a2yo0|7k800|asw00|8a5c0|asw00|8n400|a2yo0|8n400|9q000|902o0|afxc0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|a2yo0|b5uo0|51hc0|mbmk0|51hc0|c8qo0|6hc00|c8qo0|6uao0|bvs00|8n400|a4tc0|5clc0|4bms0|9q000|902o0|8a5c0|1frw0|64dc0|4bms0|6uao0|bvs00|7x6o0|asw00|8n400|9q000|902o0|9q000|9d1c0|9q000|902o0|8n400|9q000|902o0|a2yo0|8n400|afxc0|8n400|9q000|902o0|a2yo0|8n400|a2yo0|8n400|9q000|902o0|902o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|5reo0|1xhuo0|779c0|bitc0|779c0|bitc0|779c0|bitc0|779c0|bitc0|7k800|b5uo0|7k800|b5uo0|7k800|bitc0|779c0|bitc0|779c0|bitc0|7x3w0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|8a5c0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Luxembourg",title:"Luxembourg",winIndex:27,offsets:[.41000000000000003,1,2,0],offsetIndices:"0121212131313131313131313131313131313131313131313131212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-y89550|68l290|75hg0|ast80|796s0|at1k0|7x6o0|3lh40|4zmo0|b6300|6u2c0|cytk0|7at40|bktk0|7rh40|a31g0|a2vw0|8n9k0|8zx40|9q2s0|9et80|9b9g0|a2vw0|8n6s0|9px80|905g0|a2vw0|905g0|a2vw0|8ncc0|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51hc0|42ao0|1aeak0|7k800|9q000|9d1c0|8n400|a2yo0|8l9c0|clpc0|79400|fwu800|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Madrid",title:"Madrid",winIndex:62,offsets:[0,1,2],offsetIndices:"01010101010101010101010121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-rhcqs0|7x6o0|9tpc0|8y800|9b6o0|9gqo0|2d2yo0|8so00|st1c0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|3zb9c0|6uao0|8so00|9xeo0|a2yo0|902o0|8a5c0|13yt80|69xc0|bq800|8oyo0|a1400|95mo0|9kg00|8n6s0|a2vw0|8oyo0|1ck5c0|7tk40|ct07w0|905g0|a2vw0|8n6s0|8zzw0|9d440|9px80|905g0|9rrw0|9b9g0|9d6w0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Malta",title:"Malta",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|9d1c0|9d1c0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|9b9g0|9d1c0|ahs00|7m2o0|b45k0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|asys0|7x3w0|a4w40|8y580|9q2s0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Minsk",title:"Minsk",winIndex:96,offsets:[1.8333333333333333,2,3,1,4],offsetIndices:"012131312424242424242424242212121212121212121212121212121212121212122",untils:"-nu113c|379zjc|5r1mk0|pbf40|7k800|9q000|9d1c0|4oac0|j6dmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|sg2o0|9d440|9cvs0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbx40|Infinity"},{id:"Europe/Monaco",title:"Monaco",winIndex:27,offsets:[.15583333333333332,0,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn3l|2qx1nl|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|mdbo0|7x3w0|7x9g0|c8w80|7k800|9q000|9d1c0|9nzs0|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Moscow",title:"Moscow",winIndex:58,offsets:[2.504722222222222,2.5219444444444443,3.5219444444444443,4.521944444444444,4,3,5,2],offsetIndices:"012132345464575454545454545454545455754545454545454545454545454545454545454545",untils:"-rx5dmh|ipzua|97hc0|7yyk0|5i840|d9p80|1jpk0|2d2k7|s8o00|1qvw0|8fpc0|1jms0|is040|412as0|qi27w0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|5reo0|3ljw0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Oslo",title:"Oslo",winIndex:27,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzayo0|6qfs0|cgcqo0|15tsc0|7k800|9q000|9d1c0|9d1c0|9d1c0|9d1c0|70q5c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|b5uo0|7k800|7law00|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Paris",title:"Paris",winIndex:62,offsets:[.15583333333333332,0,1,2],offsetIndices:"0121212121212121212121212121212121212121212121212123232332323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-uozn1x|2qx1lx|5luo0|8y800|a4tc0|7vc00|auqo0|7idc0|b7pc0|6sg00|cyo00|7ayo0|bko00|7rmo0|a2yo0|bvs00|6uao0|902o0|9q000|9d1c0|9d1c0|a2yo0|8n400|9q000|902o0|a2yo0|902o0|a2yo0|8n400|9q000|902o0|a2yo0|8n400|9d1c0|9d1c0|902o0|a2yo0|9d1c0|9d1c0|902o0|9q000|a2yo0|8n400|9d1c0|9d1c0|902o0|9q000|a2yo0|b5uo0|51po0|5p8w0|18rcc0|7k800|9q000|9d1c0|7efo0|29k40|922w0|8l9c0|fxlx80|9cyk0|9q5k0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Prague",title:"Prague",winIndex:60,offsets:[1,2],offsetIndices:"010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|b8qdc0|1cm000|7k800|9q000|9d1c0|8l9c0|afxc0|bitc0|8oyo0|7vc00|a2yo0|8n400|a2yo0|8n400|9o5c0|91xc0|fe6000|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Riga",title:"Riga",winIndex:59,offsets:[1.6094444444444445,2.6094444444444442,2,3,1,4],offsetIndices:"010102324242435353535353535353323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-qznlky|7x6o0|a4tc0|2mg00|3myns0|7fhlky|gz180|p5v40|7k800|9q000|9d1c0|9d1c0|k7s0|j14ns0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d440|asw00|7x6o0|asw00|7x6o0|b5uo0|qaao0|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Rome",title:"Rome",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-ryotg0|66800|9d1c0|9d1c0|8a5c0|asw00|7k800|b5uo0|8n400|9d1c0|aau000|18r9k0|7k800|9q000|9d1c0|8l3s0|a4yw0|8j940|9f1k0|afxc0|89zs0|afxc0|7kdk0|b5uo0|979rs0|6h980|cls40|64ak0|cls40|64ak0|cyqs0|64ak0|cls40|64ak0|c8tg0|6hc00|clpc0|6h980|cls40|64ak0|c8tg0|6h980|cls40|64dc0|clpc0|64dc0|c8qo0|6hc00|clpc0|6hc00|c8qo0|6hc00|9q5k0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Samara",title:"Samara",winIndex:58,offsets:[3.338888888888889,3,4,5],offsetIndices:"012232323232323232322121112323232323232323232323232323232323232212",untils:"-qcx7pw|5q63dw|2egvw0|o3lc00|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d440|12w00|89zs0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5xg0|7k800|Infinity"},{id:"Europe/Simferopol",title:"Simferopol",winIndex:58,offsets:[2.2666666666666666,2,3,1,4],offsetIndices:"012131312424242424242424242121212424242212121212121212121212121212121212142",untils:"-nu12ao|37a0qo|5xiyk0|iu340|7k800|9q000|9d1c0|iac0|jajmk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|wrjw0|9cyk0|9d440|9cyk0|9d440|1sqk0|7k580|9d440|9cyk0|9q2s0|at4c0|7x9g0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x3w0|asqg0|Infinity"},{id:"Europe/Sofia",title:"Sofia",winIndex:59,offsets:[2,1,3],offsetIndices:"01010102020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020202020",untils:"-e6dzw0|7k800|9q000|9d1c0|9d1c0|9d440|hqq240|9eys0|9o2k0|92040|9o2k0|90880|9pug0|90b00|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9cvs0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|ast80|7xhs0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Stockholm",title:"Stockholm",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-rzo2w0|75hg0|x5bew0|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tallinn",title:"Tallinn",winIndex:59,offsets:[1.65,1,2,3,4],offsetIndices:"012102321212343434343434343433232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232",untils:"-r3exx0|3re10|7x6o0|et6g0|ygov0|a1zgd0|ktx80|l94g0|7k800|9q000|9d1c0|8uac0|j27mk0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asys0|7x6o0|b5uo0|19dc00|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Tirane",title:"Tirane",winIndex:60,offsets:[1.3222222222222222,1,2],offsetIndices:"01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-t85vo8|dt2gw8|18pew0|7k800|m800|g7ot40|7rjw0|autg0|7x3w0|ayis0|7x3w0|b5xg0|7k580|b42s0|7lzw0|b42s0|7lzw0|b42s0|7x3w0|ahus0|7x3w0|b5xg0|7x3w0|a4w40|8jbw0|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Uzhgorod",title:"Uzhgorod",winIndex:59,offsets:[1,2,3,4],offsetIndices:"010101023232323232323232320121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-fizzw0|1cm000|7k800|9q000|9d1c0|al900|cnms0|int140|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|eeio0|e1sc0|iprk0|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vienna",title:"Vienna",winIndex:27,offsets:[1,2],offsetIndices:"0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-s0e080|7ves0|a4yw0|7x6o0|asw00|7x6o0|t6000|8a5c0|a7a800|1cm000|7k800|9q000|9d1c0|9d1c0|9d1c0|iio0|ivmo0|902o0|9d1c0|9d1c0|a2yo0|8n400|gfyyg0|8zzw0|9d9o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Vilnius",title:"Vilnius",winIndex:59,offsets:[1.4,1.5933333333333333,1,2,3,4],offsetIndices:"012324323234545454545454545443434343434343434332334343434343434343434343434343434343434343434343434343434343434343434343",untils:"-rns980|1g224o|e75nc|4kqk0|acbs40|gpp40|pits0|7k800|9q000|9d1c0|65zo0|j4vx80|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x9g0|asw00|7x6o0|b5uo0|1s3eo0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Volgograd",title:"Volgograd",winIndex:58,offsets:[2.961111111111111,3,4,5],offsetIndices:"011223232323232323221212122121212121212121212121212121212121212121",untils:"-q3cw84|2qrjw4|2pu800|gdt980|a48yo0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9q000|9d1c0|ipzw0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|1vbzw0|Infinity"},{id:"Europe/Warsaw",title:"Warsaw",winIndex:51,offsets:[1.4,1,2,3],offsetIndices:"012121223212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-se9yk0|dvyc0|7ves0|a4yw0|7x6o0|asw00|7x6o0|aunw0|7x6o0|1evbs0|9fcwc0|18cao0|7k800|9q000|9d1c0|9gnw0|an980|9kd80|8fs40|922w0|ar1c0|7x6o0|a2yo0|8n400|9q000|902o0|4013w0|64dc0|9d1c0|9d1c0|clpc0|6hc00|9d1c0|9d1c0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|clpc0|64dc0|6j4tc0|902o0|9q000|9d1c0|9d1c0|9d1c0|9q000|902o0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d440|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zaporozhye",title:"Zaporozhye",winIndex:59,offsets:[2.3333333333333335,2,3,1,4],offsetIndices:"01213132424242424242424242422121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121",untils:"-nu12hc|37a0xc|5u1180|mc0g0|7k800|9q000|12qg0|jjc7s0|9et80|9d440|9et80|9d440|9et80|9eys0|9d6w0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9cvs0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9dcg0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Europe/Zurich",title:"Zurich",winIndex:27,offsets:[1,2],offsetIndices:"01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-eyh6o0|7x6o0|asw00|7x6o0|k2zus0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9d1c0|9q000|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|7x6o0|b5uo0|7k800|b5uo0|7k800|b5uo0|7k800|b5uo0|7x6o0|asw00|7x6o0|asw00|Infinity"},{id:"Indian/Chagos",title:"Chagos",winIndex:21,offsets:[4.827777777777778,5,6],offsetIndices:"012",untils:"-wvpc2s|1ag64us|Infinity"},{id:"Indian/Christmas",title:"Christmas",winIndex:6,offsets:[7],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Cocos",title:"Cocos",winIndex:87,offsets:[6.5],offsetIndices:"0",untils:"Infinity"},{id:"Indian/Kerguelen",title:"Kerguelen",winIndex:17,offsets:[0,5],offsetIndices:"01",untils:"-afrs00|Infinity"},{id:"Indian/Mahe",title:"Mahe",winIndex:97,offsets:[3.6966666666666668,4],offsetIndices:"01",untils:"-x6pjlo|Infinity"},{id:"Indian/Maldives",title:"Maldives",winIndex:17,offsets:[4.9,5],offsetIndices:"01",untils:"-57x6y0|Infinity"},{id:"Indian/Mauritius",title:"Mauritius",winIndex:97,offsets:[3.8333333333333335,4,5],offsetIndices:"012121",untils:"-wvp9bc|13jnu7c|8bx80|dd0wc0|7x3w0|Infinity"},{id:"Indian/Reunion",title:"Reunion",winIndex:97,offsets:[3.697777777777778,4],offsetIndices:"01",untils:"-uks29s|Infinity"},{id:"MST7MDT",title:"MST7MDT",winIndex:15,offsets:[-7,-6],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0epo0|ast80|7x9g0|ast80|bmtus0|1tz5k0|2dvo0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Pacific/Apia",title:"Apia",winIndex:98,offsets:[-11.448888888888888,-11.5,-11,-10,14,13],offsetIndices:"01232345454545454545454545454545454545454545454545454545454",untils:"-usiiv4|kcrmt4|vp3la0|9odo0|902o0|4zbk0|4qog0|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Auckland",title:"Auckland",winIndex:8,offsets:[11.5,12.5,12,13],offsetIndices:"01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323",untils:"-m01p20|64ak0|biw40|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|8a3y0|afyq0|8a3y0|afyq0|afvy0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|asum0|7x820|b5ta0|7k9e0|b5ta0|7x820|hsl2m0|5reo0|clpc0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6hc00|c8qo0|6uao0|c8qo0|6hc00|b5uo0|8a5c0|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|afxc0|8a5c0|afxc0|8a5c0|afxc0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|8n400|a2yo0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|a2yo0|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|902o0|9q000|9d1c0|9q000|902o0|9q000|902o0|Infinity"},{id:"Pacific/Chuuk",title:"Chuuk",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Efate",title:"Efate",winIndex:48,offsets:[11.22111111111111,11,12],offsetIndices:"0121212121212121212121",untils:"-u964i4|11f4ba4|9cyk0|awo40|7tek0|9q2s0|8zzw0|9q2s0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9q2s0|64ak0|e1ms0|4ofw0|Infinity"},{id:"Pacific/Enderbury",title:"Enderbury",winIndex:94,offsets:[-12,-11,13],offsetIndices:"012",untils:"535io0|7ykl80|Infinity"},{id:"Pacific/Fakaofo",title:"Fakaofo",winIndex:94,offsets:[-11,13],offsetIndices:"01",untils:"lx0jw0|Infinity"},{id:"Pacific/Fiji",title:"Fiji",winIndex:99,offsets:[11.928888888888888,12,13],offsetIndices:"0121212121212121212121212121212121212121212121212121212121212121",untils:"-sa2x4w|17bs00w|64dc0|cyo00|5reo0|53a5c0|64dc0|asw00|6uao0|bvs00|4oio0|e1k00|4oio0|eeio0|4bh80|erk40|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|f4g00|3lmo0|f4g00|3lmo0|f4g00|3ylc0|erhc0|3ylc0|erhc0|3ylc0|erhc0|3ylc0|Infinity"},{id:"Pacific/Funafuti",title:"Funafuti",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Galapagos",title:"Galapagos",winIndex:67,offsets:[-5.973333333333333,-5,-6],offsetIndices:"012",untils:"-kcr62o|spdryo|Infinity"},{id:"Pacific/Guadalcanal",title:"Guadalcanal",winIndex:48,offsets:[10.663333333333332,11],offsetIndices:"01",untils:"-tvowac|Infinity"},{id:"Pacific/Guam",title:"Guam",winIndex:50,offsets:[10],offsetIndices:"00",untils:"g5z2w0|Infinity"},{id:"Pacific/Honolulu",title:"Honolulu",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"010102",untils:"-j50la0|13l00|4jvb00|1wd180|votg0|Infinity"},{id:"Pacific/Kiritimati",title:"Kiritimati",winIndex:95,offsets:[-10.666666666666666,-10,14],offsetIndices:"012",untils:"535eyo|7ykm5c|Infinity"},{id:"Pacific/Kosrae",title:"Kosrae",winIndex:48,offsets:[11,12],offsetIndices:"010",untils:"-4r7w0|f9l3w0|Infinity"},{id:"Pacific/Kwajalein",title:"Kwajalein",winIndex:44,offsets:[11,-12,12],offsetIndices:"012",untils:"-4r7w0|cgtbw0|Infinity"},{id:"Pacific/Majuro",title:"Majuro",winIndex:44,offsets:[11,12],offsetIndices:"01",untils:"-4r7w0|Infinity"},{id:"Pacific/Midway",title:"Midway",winIndex:49,link:530},{id:"Pacific/Nauru",title:"Nauru",winIndex:44,offsets:[11.127777777777776,11.5,9,12],offsetIndices:"01213",untils:"-pjxiws|b1kxms|19h8a0|i43qe0|Infinity"},{id:"Pacific/Niue",title:"Niue",winIndex:49,offsets:[-11.333333333333334,-11.5,-11],offsetIndices:"012",untils:"-9wyz6o|ehcj4o|Infinity"},{id:"Pacific/Noumea",title:"Noumea",winIndex:48,offsets:[11.096666666666666,11,12],offsetIndices:"01212121",untils:"-u9645o|ye0ixo|4dbw0|ecqs0|4f6k0|99p700|4oio0|Infinity"},{id:"Pacific/Pago_Pago",title:"Pago Pago",winIndex:49,offsets:[-11.379999999999999,-11],offsetIndices:"0111",untils:"-usij20|tcsey0|8p4800|Infinity"},{id:"Pacific/Palau",title:"Palau",winIndex:43,offsets:[9],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Pohnpei",title:"Pohnpei",winIndex:48,offsets:[11],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Port_Moresby",title:"Port Moresby",winIndex:50,offsets:[10],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Rarotonga",title:"Rarotonga",winIndex:57,offsets:[-10.5,-9.5,-10],offsetIndices:"012121212121212121212121212",untils:"4mj960|5rbw0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|6ham0|Infinity"},{id:"Pacific/Saipan",title:"Saipan",winIndex:50,link:520},{id:"Pacific/Tahiti",title:"Tahiti",winIndex:57,offsets:[-9.97111111111111,-10],offsetIndices:"01",untils:"-tvnayw|Infinity"},{id:"Pacific/Tarawa",title:"Tarawa",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Tongatapu",title:"Tongatapu",winIndex:94,offsets:[12.333333333333334,13,14],offsetIndices:"01212121",untils:"-f4vrlc|uo2edc|8fpc0|bvs00|4bh80|eelg0|4bh80|Infinity"},{id:"Pacific/Wake",title:"Wake",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"Pacific/Wallis",title:"Wallis",winIndex:44,offsets:[12],offsetIndices:"0",untils:"Infinity"},{id:"PST8PDT",title:"PST8PDT",winIndex:11,offsets:[-8,-7],offsetIndices:"010101101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010",untils:"-r0emw0|ast80|7x9g0|ast80|bmtus0|1tz2s0|2dyg0|b9gdg0|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|9d440|9cyk0|9d440|9cyk0|3lpg0|f4d80|64g40|clmk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|9d440|9px80|905g0|9px80|9d440|9cyk0|9d440|9cyk0|9d440|9cyk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|8a840|afuk0|8a840|afuk0|8a840|ast80|7x9g0|ast80|7x9g0|ast80|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6udg0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|6hes0|c8nw0|Infinity"},{id:"Australia/Eucla",title:"Eucla",winIndex:100,offsets:[8.591111111111111,8.75,9.75],offsetIndices:"01212121212121212121",untils:"-12nxx74|b053ls|49s2c|cxfms0|4h180|9d440|9cyk0|ghf1g0|6hc00|4ir9c0|6hc00|40r400|5eg00|7p9hc0|5reo0|b5uo0|7x6o0|asw00|7x6o0|Infinity"},{id:"Australia/Lord_Howe",title:"Eucla",winIndex:101,offsets:[10.605555555555556,10,10.5,11.5,11],offsetIndices:"01232323232424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424",untils:"-133j6sk|18x8f0k|c8uu0|6u7w0|c8tg0|6h980|c8tg0|6h980|c8tg0|6h980|c8tg0|777y0|b5w20|7k6m0|biuq0|7k6m0|biuq0|777y0|biuq0|6ham0|c8s20|6ham0|c8s20|6ham0|c8s20|6u9a0|c8s20|6ham0|c8s20|6ham0|c8s20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|7x820|asum0|b5w20|7x5a0|asxe0|7x5a0|asxe0|7x5a0|b5w20|7k6m0|b5w20|7x5a0|asxe0|7k6m0|b5w20|8a3y0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9pym0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9d2q0|9czy0|9q1e0|9czy0|9d2q0|9czy0|9d2q0|Infinity"}]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DesktopTooltipStrategy=void 0;var i,o=n(504),r=n(200),a=(i=r)&&i.__esModule?i:{default:i},s=n(58);function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}e.DesktopTooltipStrategy=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(r,t);var e,n,i,o=h(r);function r(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,r),(e=o.call(this,t))._skipHidingOnScroll=!1,e}return e=r,(n=[{key:"_showCore",value:function(t,e){c(p(r.prototype),"_showCore",this).call(this,t,e),this._tooltip.option("position",{my:"bottom",at:"top",boundary:this._getBoundary(e),offset:this._extraOptions.offset,collision:"fit flipfit"})}},{key:"_getBoundary",value:function(t){return this._options.isAppointmentInAllDayPanel(t[0].data)?this._options.container:this._options.getScrollableContainer()}},{key:"_onShown",value:function(){c(p(r.prototype),"_onShown",this).call(this),this._extraOptions.isButtonClick&&(this._list.focus(),this._list.option("focusedElement",null))}},{key:"_createListOption",value:function(t,e){var n=c(p(r.prototype),"_createListOption",this).call(this,t,e);return n.showScrollbar=s.touch?"always":"onHover",n}},{key:"_createTooltip",value:function(t,e){var n=this,i=this._createTooltipElement("dx-scheduler-appointment-tooltip-wrapper");return this._options.createComponent(i,a.default,{target:t,onShowing:this._onTooltipShowing.bind(this),closeOnTargetScroll:function(){return n._skipHidingOnScroll},maxHeight:200,rtlEnabled:this._extraOptions.rtlEnabled,onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e)})}},{key:"_onListRender",value:function(t){return this._extraOptions.dragBehavior&&this._extraOptions.dragBehavior(t)}},{key:"dispose",value:function(){clearTimeout(this._skipHidingOnScrollTimeId)}},{key:"_onTooltipShowing",value:function(){var t=this;clearTimeout(this._skipHidingOnScrollTimeId),this._skipHidingOnScroll=!0,this._skipHidingOnScrollTimeId=setTimeout((function(){t._skipHidingOnScroll=!1,clearTimeout(t._skipHidingOnScrollTimeId)}),0)}}])&&u(e.prototype,n),i&&u(e,i),r}(o.TooltipStrategyBase)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.MobileTooltipStrategy=void 0;var i=s(n(80)),o=n(504),r=n(10),a=s(n(3));function s(t){return t&&t.__esModule?t:{default:t}}function l(t){return(l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==l(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=250,g="90%",_="auto",v="100%",y="80%",b={show:{type:"slide",duration:300,from:{position:{my:"top",at:"bottom",of:(0,r.getWindow)()}},to:{position:{my:"center",at:"center",of:(0,r.getWindow)()}}},hide:{type:"slide",duration:300,to:{position:{my:"top",at:"bottom",of:(0,r.getWindow)()}},from:{position:{my:"center",at:"center",of:(0,r.getWindow)()}}}};e.MobileTooltipStrategy=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(l,t);var e,n,o,s=h(l);function l(){return u(this,l),s.apply(this,arguments)}return e=l,(n=[{key:"_shouldUseTarget",value:function(){return!1}},{key:"_onShowing",value:function(){var t=(0,a.default)((0,r.getWindow)()).width()>700;this._tooltip.option("height",_);var e=this._list.$element().outerHeight();this._tooltip.option(t?function(t){var e=.9*(0,a.default)((0,r.getWindow)()).height();return{shading:!0,width:y,height:t>e?g:_,position:{my:"center",at:"center",of:(0,r.getWindow)()}}}(e):function(t){return{shading:!1,width:v,height:t>m?m:_,position:{my:"bottom",at:"bottom",of:(0,r.getWindow)()}}}(e))}},{key:"_createTooltip",value:function(t,e){var n=this,o=this._createTooltipElement("dx-scheduler-overlay-panel");return this._options.createComponent(o,i.default,{target:(0,r.getWindow)(),closeOnOutsideClick:!0,animation:b,onShowing:function(){return n._onShowing()},onShown:this._onShown.bind(this),contentTemplate:this._getContentTemplate(e)})}}])&&c(e.prototype,n),o&&c(e,o),l}(o.TooltipStrategyBase)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=_(n(3)),o=_(n(48)),r=_(n(10)),a=_(n(18)),s=_(n(17)),l=_(n(54)),u=_(n(26)),c=n(0),d=n(5),h=n(7),f=n(2),p=_(n(12)),m=n(1056),g=_(n(507));function _(t){return t&&t.__esModule?t:{default:t}}function v(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var y=u.default.dateToMilliseconds,b="".concat("dx-scheduler","-appointment-popup"),w=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduler=e,this._popup=null,this._appointmentForm=null,this.state={lastEditData:null,saveChangesLocker:!1,appointment:{data:null,processTimeZone:!1,isEmptyText:!1,isEmptyDescription:!1}}}var e,n,u;return e=t,(n=[{key:"show",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;if(this.state.appointment.data=t,this.state.appointment.processTimeZone=n,this._popup)this._updateForm();else{var i=this._createPopupConfig();this._popup=this._createPopup(i)}this._popup.option("toolbarItems",this._createPopupToolbarItems(e)),this._popup.show()}},{key:"hide",value:function(){this._popup.hide()}},{key:"isVisible",value:function(){return!!this._popup&&this._popup.option("visible")}},{key:"dispose",value:function(){this._$popup&&(this._popup.$element().remove(),this._$popup=null)}},{key:"_createPopup",value:function(t){var e=(0,i.default)("<div>").addClass(b).appendTo(this.scheduler.$element());return this.scheduler._createComponent(e,o.default,t)}},{key:"_createPopupConfig",value:function(){var t=this;return{height:"auto",maxHeight:"100%",showCloseButton:!1,showTitle:!1,onHiding:function(){t.scheduler.focus()},contentTemplate:function(){return t._createPopupContent()},onShowing:this._onShowing.bind(this),defaultOptionsRules:[{device:function(){return a.default.current().android},options:{showTitle:!1}}]}}},{key:"_onShowing",value:function(t){var e=this,n={form:this._appointmentForm,popup:this._popup,appointmentData:this.state.appointment.data,cancel:!1};this.scheduler._actions.onAppointmentFormOpening(n),this.scheduler._processActionResult(n,(function(n){n?t.cancel=!0:e.updatePopupFullScreenMode()}))}},{key:"_createPopupContent",value:function(){var t=(0,i.default)("<div>");return this._appointmentForm=this._createForm(t),this._updateForm(),t}},{key:"_createAppointmentFormData",value:function(t){var e=this.scheduler.fire("getField","recurrenceRule",t),n=(0,c.extend)(!0,{repeat:!!e},t);return(0,d.each)(this.scheduler._resourcesManager.getResourcesFromItem(n,!0)||{},(function(t,e){return n[t]=e})),n}},{key:"_createForm",value:function(t){var e=this.scheduler._dataAccessors.expr,n=this.scheduler.option("resources"),i=this._getAllowTimeZoneEditing(),o=this.state.appointment.data,r=this._createAppointmentFormData(o),a=this._isReadOnly(o);return m.AppointmentForm.prepareAppointmentFormEditors(e,this.scheduler,this.triggerResize.bind(this),this.changeSize.bind(this),r,i,a),n&&n.length&&m.AppointmentForm.concatResources(this.scheduler._resourcesManager.getEditors()),m.AppointmentForm.create(this.scheduler._createComponent.bind(this.scheduler),t,a,r)}},{key:"_getAllowTimeZoneEditing",value:function(){var t=this.scheduler;return t.option("editing.allowTimeZoneEditing")||t.option("editing.allowEditingTimeZones")}},{key:"_isReadOnly",value:function(t){return!(!t||!t.disabled)||!!this.scheduler._editAppointmentData&&!this.scheduler._editing.allowUpdating}},{key:"_updateForm",value:function(){var t=this.state.appointment,e=t.data,n=t.processTimeZone,i=this.scheduler.fire("getField","allDay",e),o=this.scheduler.fire("getField","startDate",e),r=this.scheduler.fire("getField","endDate",e);this.state.appointment.isEmptyText=void 0===e||void 0===e.text,this.state.appointment.isEmptyDescription=void 0===e||void 0===e.description;var a=(0,c.extend)({},{text:"",description:"",recurrenceRule:""},this._createAppointmentFormData(e));n&&(o&&(o=this.scheduler.fire("convertDateByTimezone",o),this.scheduler.fire("setField","startDate",a,o)),r&&(r=this.scheduler.fire("convertDateByTimezone",r),this.scheduler.fire("setField","endDate",a,r)));var s=this.scheduler._dataAccessors.expr,l=s.startDateExpr,u=s.endDateExpr,d=s.recurrenceRuleExpr,h=this._getEditorOptions(d,m.APPOINTMENT_FORM_GROUP_NAMES.Recurrence);this._setEditorOptions(d,m.APPOINTMENT_FORM_GROUP_NAMES.Recurrence,(0,c.extend)({},h,{startDate:o})),this._appointmentForm.option("readOnly",this._isReadOnly(e)),m.AppointmentForm.updateFormData(this._appointmentForm,a),m.AppointmentForm.setEditorsType(this._appointmentForm,l,u,i)}},{key:"_getEditorOptions",value:function(t,e){var n=this._appointmentForm.itemOption("".concat(e,".").concat(t));return n?n.editorOptions:{}}},{key:"_setEditorOptions",value:function(t,e,n){var i="".concat(e,".").concat(t);this._appointmentForm.itemOption(i)&&this._appointmentForm.itemOption(i,"editorOptions",n)}},{key:"_isDeviceMobile",value:function(){return"desktop"!==a.default.current().deviceType}},{key:"_isPopupFullScreenNeeded",value:function(){var t=this._tryGetWindowWidth();return!!t&&(this._isDeviceMobile()?t<500:t<1e3)}},{key:"_tryGetWindowWidth",value:function(){if(r.default.hasWindow()){var t=r.default.getWindow();return(0,i.default)(t).width()}}},{key:"triggerResize",value:function(){this._popup&&s.default.triggerResizeEvent(this._popup.$element())}},{key:"_getMaxWidth",value:function(t){return this._isDeviceMobile()?350:t?970:485}},{key:"changeSize",value:function(t){var e=this._isPopupFullScreenNeeded();this._popup.option({maxWidth:e?"100%":this._getMaxWidth(t),fullScreen:e})}},{key:"updatePopupFullScreenMode",value:function(){if(this._appointmentForm){var t=m.AppointmentForm.getRecurrenceRule(this._appointmentForm.option("formData"),this.scheduler._dataAccessors.expr);this.isVisible()&&this.changeSize(t)}}},{key:"_createPopupToolbarItems",value:function(t){var e=this,n=[],i="ios"===a.default.current().platform;return t&&n.push({shortcut:"done",options:{text:p.default.format("Done")},location:"after",onClick:function(t){return e._doneButtonClickHandler(t)}}),n.push({shortcut:"cancel",location:i?"before":"after"}),n}},{key:"saveChanges",value:function(t){var e=this,n=new h.Deferred,i=this._appointmentForm.validate(),o=this.state.appointment,r=function(t,n){var i=new Date(e.scheduler.fire("getField",n,t)),o=e.scheduler._getTimezoneOffsetByOption()*y("hour")+e.scheduler.fire("getClientTimezoneOffset",i);return new Date(i.getTime()+o)};return t&&this._showLoadPanel(),(0,h.when)(i&&i.complete||i).done((function(t){if(t&&!t.isValid)return e._hideLoadPanel(),void n.resolve(!1);var i=l.default.deepExtendArraySafe({},e._getFormData(),!0),a=e.scheduler._editAppointmentData,s=e.scheduler._updatedRecAppointment;o.isEmptyText&&""===i.text&&delete i.text,o.isEmptyDescription&&""===i.description&&delete i.description,void 0===o.data.recurrenceRule&&""===i.recurrenceRule&&delete i.recurrenceRule,(0,f.isDefined)(i.repeat)&&delete i.repeat,a&&e.scheduler._convertDatesByTimezoneBack(!1,i),a&&!s?e.scheduler.updateAppointment(a,i).done(n.resolve):(s&&(e.scheduler.updateAppointment(a,s),delete e.scheduler._updatedRecAppointment,"number"===typeof e.scheduler._getTimezoneOffsetByOption()&&(e.scheduler.fire("setField","startDate",i,r.call(e,i,"startDate")),e.scheduler.fire("setField","endDate",i,r.call(e,i,"endDate")))),e.scheduler.addAppointment(i).done(n.resolve)),n.done((function(){e._hideLoadPanel(),e.state.lastEditData=i}))})),n.promise()}},{key:"_getFormData",value:function(){var t=this._appointmentForm.option("formData"),e=this.scheduler.fire("getField","startDate",t),n=this.scheduler.fire("getField","endDate",t);return this.scheduler.fire("setField","startDate",t,e),this.scheduler.fire("setField","endDate",t,n),t}},{key:"_doneButtonClickHandler",value:function(t){t.cancel=!0,this.saveEditData()}},{key:"saveEditData",value:function(){var t=this,e=new h.Deferred;return this._tryLockSaveChanges()&&(0,h.when)(this.saveChanges(!0)).done((function(){if(t.state.lastEditData){var n=t.scheduler.fire("getField","startDate",t.state.lastEditData);t.scheduler._workSpace.updateScrollPosition(n),t.state.lastEditData=null}t._unlockSaveChanges(),e.resolve()})),e.promise()}},{key:"_hideLoadPanel",value:function(){g.default.hide()}},{key:"_showLoadPanel",value:function(){var t=this._popup.overlayContent();g.default.show({container:t,position:{of:t}})}},{key:"_tryLockSaveChanges",value:function(){return!1===this.state.saveChangesLocker&&(this.state.saveChangesLocker=!0,!0)}},{key:"_unlockSaveChanges",value:function(){this.state.saveChangesLocker=!1}}])&&v(e.prototype,n),u&&v(e,u),t}();e.default=w},function(t,e,n){"use strict";var i=s(n(169)),o=s(n(67)),r=s(n(12)),a=s(n(18));function s(t){return t&&t.__esModule?t:{default:t}}n(499),n(1057),n(505),n(305),n(506);var l={Main:"mainGroup",Recurrence:"recurrenceGroup"},u={_appointmentForm:{},_lockDateShiftFlag:!1,_validateAppointmentFormDate:function(t,e,n){!(null===e||!!e)&&(null===n||!!n)&&t.option("value",n)},_getAllDayStartDate:function(t){return new Date(new Date(t).setHours(0,0,0,0))},_getAllDayEndDate:function(t){return new Date(new Date(t).setDate(t.getDate()+1))},_getStartDateWithStartHour:function(t,e){return new Date(new Date(t).setHours(e))},create:function(t,e,n,o){return this._appointmentForm=t(e,i.default,{items:this._editors,readOnly:n,showValidationSummary:!0,scrollingEnabled:!0,colCount:"auto",colCountByScreen:{lg:2,xs:1},formData:o,showColonAfterLabel:!1,labelLocation:"top",screenByWidth:function(t){return t<600||"desktop"!==a.default.current().deviceType?"xs":"lg"}}),this._appointmentForm},_dateBoxValueChanged:function(t,e,n){this._validateAppointmentFormDate(t.component,t.value,t.previousValue);var i=o.default.deserializeDate(t.value),r=o.default.deserializeDate(t.previousValue),a=this._appointmentForm.getEditor(e),s=o.default.deserializeDate(a.option("value"));if(!this._appointmentForm._lockDateShiftFlag&&s&&i&&n(s,i)){var l=r?s.getTime()-r.getTime():0;a.option("value",new Date(i.getTime()+l))}},_getTimezoneEditor:function(t,e,n,i,o,r){var a=this,s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return{dataField:t,editorType:"dxSchedulerTimezoneEditor",visibleIndex:n,colSpan:i,label:{text:" "},editorOptions:{observer:o,onValueChanged:function(t){var n=a._appointmentForm.getEditor(e);r&&n.option("value",t.value)}},visible:s}},_getDateBoxEditor:function(t,e,n,i,o){return{dataField:t,editorType:"dxDateBox",colSpan:e,label:{text:r.default.format(i)},validationRules:[{type:"required"}],editorOptions:{width:"100%",calendarOptions:{firstDayOfWeek:n},onValueChanged:o}}},_getDateBoxItems:function(t,e,n){var i=this,o=n?2:1,r=e.option("firstDayOfWeek");return[this._getDateBoxEditor(t.startDateExpr,o,r,"dxScheduler-editorLabelStartDate",(function(e){i._dateBoxValueChanged(e,t.endDateExpr,(function(t,e){return t<e}))})),this._getTimezoneEditor(t.startDateTimeZoneExpr,t.endDateTimeZoneExpr,1,o,e,!0,n),this._getDateBoxEditor(t.endDateExpr,o,r,"dxScheduler-editorLabelEndDate",(function(e){i._dateBoxValueChanged(e,t.startDateExpr,(function(t,e){return e<t}))})),this._getTimezoneEditor(t.endDateTimeZoneExpr,t.startDateTimeZoneExpr,3,o,e,!1,n)]},_getMainItems:function(t,e,n,i,a){var s=this;return[{dataField:t.textExpr,editorType:"dxTextBox",colSpan:2,label:{text:r.default.format("dxScheduler-editorLabelTitle")}},{itemType:"group",colSpan:2,colCountByScreen:{lg:2,xs:1},items:this._getDateBoxItems(t,e,a)},{itemType:"group",colCountByScreen:{lg:3,xs:3},colSpan:2,items:[{dataField:t.allDayExpr,cssClass:"dx-appointment-form-switch",editorType:"dxSwitch",label:{text:r.default.format("dxScheduler-allDay"),location:"right"},editorOptions:{onValueChanged:function(n){var i=n.value,r=s._appointmentForm.getEditor(t.startDateExpr),a=s._appointmentForm.getEditor(t.endDateExpr),l=o.default.deserializeDate(r.option("value"));if(!s._appointmentForm._lockDateShiftFlag&&l)if(i){var u=s._getAllDayStartDate(l);r.option("value",u),a.option("value",s._getAllDayEndDate(u))}else{var c=s._getStartDateWithStartHour(l,e.option("startDayHour")),d=e._workSpace.calculateEndDate(c);r.option("value",c),a.option("value",d)}r.option("type",i?"date":"datetime"),a.option("type",i?"date":"datetime")}}},{editorType:"dxSwitch",dataField:"repeat",cssClass:"dx-appointment-form-switch",name:"visibilityChanged",label:{text:r.default.format("dxScheduler-editorLabelRecurrence"),location:"right"},editorOptions:{onValueChanged:function(e){var o=s._appointmentForm,r=e.value?1:2;o.itemOption(l.Main,"colSpan",r),o.itemOption(l.Recurrence,"colSpan",r),s._updateRecurrenceItemVisibility(t.recurrenceRuleExpr,e.value,o),i(e.value),n()}}}]},{itemType:"empty",colSpan:2},{dataField:t.descriptionExpr,editorType:"dxTextArea",colSpan:2,label:{text:r.default.format("dxScheduler-editorLabelDescription")}},{itemType:"empty",colSpan:2}]},_updateRecurrenceItemVisibility:function(t,e,n){var i;n.itemOption(l.Recurrence,"visible",e),!e&&n.updateData(t,""),null===(i=n.getEditor(t))||void 0===i||i.changeValueByVisibility(e)},prepareAppointmentFormEditors:function(t,e,n,i,o,r,a){var s=!!this.getRecurrenceRule(o,t);return i(s),this._editors=[{itemType:"group",name:l.Main,colCountByScreen:{lg:2,xs:1},colSpan:s?1:2,items:this._getMainItems(t,e,n,i,r)},{itemType:"group",name:l.Recurrence,visible:s,colSpan:s?1:2,items:this._createRecurrenceEditor(t,e,s,a)}],this._editors},_createRecurrenceEditor:function(t,e,n,i){return[{dataField:t.recurrenceRuleExpr,editorType:"dxRecurrenceEditor",editorOptions:{readOnly:i,firstDayOfWeek:e.option("firstDayOfWeek")},label:{text:" ",visible:!1}}]},getRecurrenceRule:function(t,e){return t[e.recurrenceRuleExpr]},concatResources:function(t){this._editors[0].items=this._editors[0].items.concat(t)},setEditorsType:function(t,e,n,i){var o="".concat(l.Main,".").concat(e),r="".concat(l.Recurrence,".").concat(n),a=t.itemOption(o),s=t.itemOption(r);if(a&&s){var u=a.editorOptions,c=s.editorOptions;u.type=c.type=i?"date":"datetime",t.itemOption(o,"editorOptions",u),t.itemOption(r,"editorOptions",c)}},updateFormData:function(t,e){t._lockDateShiftFlag=!0,t.option("formData",e),t._lockDateShiftFlag=!1}};t.exports={AppointmentForm:u,APPOINTMENT_FORM_GROUP_NAMES:l}},function(t,e,n){"use strict";var i=n(3),o=n(8),r=n(0).extend,a=n(145),s=n(12),l=n(62),u=n(110),c=l.inherit({_getDefaultOptions:function(){return r(this.callBase(),{value:null})},_createComponent:function(t,e,n){return n=n||{},this._extendConfig(n,{readOnly:this.option("readOnly")}),this.callBase(t,e,n)},_init:function(){this.callBase(),this.$element().addClass("dx-timezone-editor")},_render:function(){this._renderDisplayNameEditor(),this._renderIanaIdEditor(),this.callBase()},_renderDisplayNameEditor:function(){var t=s.format("dxScheduler-noTimezoneTitle"),e=this.invoke("getTimezoneDisplayNameById",this.option("value"))||t;this._displayNameEditor=this._renderSelectBox("dx-timezone-display-name",{items:[t].concat(this.invoke("getTimezonesDisplayName")),value:e,onValueChanged:function(t){this._processDisplayNameChanging(t.value)}.bind(this)})},_renderIanaIdEditor:function(){this._ianaIdEditor=this._renderSelectBox("dx-timezone-iana-id",{items:this._idsDataSource(),value:this.option("value"),onValueChanged:function(t){this.option("value",t.value)}.bind(this),valueExpr:"id",displayExpr:"displayName",disabled:this._calculateIanaIdEditorDisabledState()})},_renderSelectBox:function(t,e){e=e||{};var n=i("<div>").addClass(t),o=this._createComponent(n,u,e);return this.$element().append(n),o},_idsDataSource:function(){return this.invoke("getSimilarTimezones",this.option("value"))},_calculateIanaIdEditorDisabledState:function(){return!this.option("value")},_processDisplayNameChanging:function(t){var e=this.invoke("getTimezonesIdsByDisplayName",t),n=e.length?e[0].id:null;this.option("value",n),this._ianaIdEditor.option({value:n,items:this._idsDataSource(e),disabled:this._calculateIanaIdEditorDisabledState()})},_optionChanged:function(t){var e=t.value;switch(t.name){case"value":this._ianaIdEditor.option({value:e,items:this._idsDataSource()}),e?this._displayNameEditor.option("value",this.invoke("getTimezoneDisplayNameById",e)):this._displayNameEditor.option("value",s.format("dxScheduler-noTimezoneTitle")),this.callBase(t);break;case"readOnly":this._displayNameEditor&&this._displayNameEditor.option("readOnly",e),this._ianaIdEditor&&this._ianaIdEditor.option("readOnly",e);break;default:this.callBase(t)}}}).include(a);o("dxSchedulerTimezoneEditor",{},c),t.exports=c},function(t,e,n){"use strict";var i=n(3),o=n(2),r=n(4).noop,a=n(2).isDefined,s=n(0).extend,l=n(5).each,u=n(16).inArray,c=n(46).camelize,d=n(8),h=n(20),f=n(145),p=n(1059),m=n(291),g=n(237),_=n(38),v=n(12),y={day:"day",week:"week",workWeek:"workWeek",month:"month",timelineDay:"day",timelineWeek:"week",timelineWorkWeek:"workWeek",timelineMonth:"month",agenda:"agenda"},b=["day","week","workWeek","month","timelineDay","timelineWeek","timelineWorkWeek","timelineMonth","agenda"],w=h.inherit({_getDefaultOptions:function(){return s(this.callBase(),{views:[],isAdaptive:!1,intervalCount:1,currentView:"day",firstDayOfWeek:void 0,currentDate:new Date,min:void 0,max:void 0,useDropDownViewSwitcher:!1,_dropDownButtonIcon:"overlay"})},_setOptionsByReference:function(){this.callBase(),s(this._optionsByReference,{currentView:!0})},_optionChanged:function(t){var e=t.value;switch(t.name){case"views":this._validateViews(),this._viewSwitcher.option({items:e,selectedItem:this.option("currentView")});break;case"customizeDateNavigatorText":this._navigator.option(t.name,e);break;case"currentView":this._viewSwitcher.option("selectedItem",e),this._navigator.option("step",y[this._getCurrentViewType()]),this._changeViewSwitcherLabelText();break;case"currentDate":this._navigator.option("date",e);break;case"displayedDate":this._navigator.option("displayedDate",e);break;case"min":case"max":case"firstDayOfWeek":case"intervalCount":this._navigator.option(t.name,e);break;case"tabIndex":case"focusStateEnabled":this._viewSwitcher.option(t.name,e),this._navigator.option(t.name,e),this.callBase(t);break;case"useDropDownViewSwitcher":this._refreshViewSwitcher();break;default:this.callBase(t)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-header")},_initMarkup:function(){this.callBase(),this._renderNavigator(),this._renderViewSwitcher()},_renderNavigator:function(){this._navigator=this._createComponent("<div>",p,{min:this.option("min"),max:this.option("max"),intervalCount:this.option("intervalCount"),date:this.option("currentDate"),step:y[this._getCurrentViewType()],firstDayOfWeek:this.option("firstDayOfWeek"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled"),observer:this.option("observer"),customizeDateNavigatorText:this.option("customizeDateNavigatorText")}),this._navigator.$element().appendTo(this.$element())},_renderViewSwitcher:function(){this._validateViews();var t=i("<div>").addClass("dx-scheduler-view-switcher").appendTo(this.$element());this.option("useDropDownViewSwitcher")?this._renderViewSwitcherDropDownMenu(t):this._renderViewSwitcherTabs(t)},_validateViews:function(){var t=this.option("views");l(t,(function(t,e){var n=o.isObject(e)&&e.type?e.type:e;-1===u(n,b)&&_.log("W0008",n)}))},_getCurrentViewType:function(){var t=this.option("currentView");return t.type||t},_renderViewSwitcherTabs:function(t){var e=this;t.addClass(g.getTabsExpandedClass),this._viewSwitcher=this._createComponent(t,g,{selectionRequired:!0,scrollingEnabled:!0,onSelectionChanged:this._updateCurrentView.bind(this),items:this.option("views"),itemTemplate:function(t){return i("<span>").addClass("dx-tab-text").text(e._getItemText(t))},selectedItem:this.option("currentView"),tabIndex:this.option("tabIndex"),focusStateEnabled:this.option("focusStateEnabled")})},_getItemText:function(t){return t.name||v.format("dxScheduler-switcher"+c(t.type||t,!0))},_refreshViewSwitcher:function(){this._viewSwitcher._dispose(),this._viewSwitcher.$element().remove(),delete this._viewSwitcher,this._removeViewSwitcherLabel(),this._renderViewSwitcher()},_removeViewSwitcherLabel:function(){a(this._$viewSwitcherLabel)&&(this._$viewSwitcherLabel.detach(),this._$viewSwitcherLabel.remove(),delete this._$viewSwitcherLabel)},_renderViewSwitcherDropDownMenu:function(t){var e=this;this._$viewSwitcherLabel=i("<div>").addClass("dx-scheduler-view-switcher-label").appendTo(this.$element()),this._changeViewSwitcherLabelText(),this._viewSwitcher=this._createComponent(t,m,{onItemClick:this._updateCurrentView.bind(this),buttonIcon:this.option("_dropDownButtonIcon"),items:this.option("views"),selectionMode:this.option("isAdaptive")?"single":"none",selectedItemKeys:[this.option("currentView")],itemTemplate:function(t){return i("<span>").addClass("dx-dropdownmenu-item-text").text(e._getItemText(t))}})},_changeViewSwitcherLabelText:function(){if(a(this._$viewSwitcherLabel)){var t=this.option("currentView"),e=this._getItemText(t);this._$viewSwitcherLabel.text(e)}},_getCurrentViewName:function(t){return o.isObject(t)?t.name||t.type:t},_updateCurrentView:function(t){var e=t.itemData||t.component.option("selectedItem"),n=this._getCurrentViewName(e);this.notifyObserver("currentViewUpdated",n)},_renderFocusTarget:r}).include(f);d("dxSchedulerHeader",w),t.exports=w},function(t,e,n){"use strict";var i=b(n(3)),o=n(4),r=n(2),a=b(r),s=b(n(23)),l=b(n(26)),u=n(0),c=b(n(8)),d=b(n(18)),h=b(n(20)),f=b(n(42)),p=b(n(285)),m=b(n(137)),g=b(n(48)),_=b(n(145)),v=b(n(43)),y=b(n(103));function b(t){return t&&t.__esModule?t:{default:t}}var w=function(t){return function(e){var n=v.default.getMonthNames(t?"abbreviated":"wide")[e.getMonth()];return[v.default.format(e,"day"),n].join(" ")}},x=function(t){return v.default.getMonthNames("abbreviated")[t.getMonth()]+" "+v.default.format(t,"year")},C=function t(e,n,i){var o=w(e);return function(r){if(n>1){var a=new Date(r),s=i;a.setDate(r.getDate()+s-1);var l=r.getMonth()!==a.getMonth(),u=l||e;return v.default.format(r,l?w(u):"d")+"-"+v.default.format(a,t(u))}return[o(r),v.default.format(r,"year")].join(" ")}},S=function(t,e,n){var i=this.option("firstDayOfWeek"),o=(0,r.isDefined)(i)?i:function(t){return t?1:v.default.firstDayOfWeekIndex()}(e);0===o&&n&&(o=1);var a=l.default.getFirstWeekDate(t,o);n&&(a=l.default.normalizeDateByWeek(a,t)),i>=6&&n&&a.setDate(a.getDate()+(7-i+1));var s=new Date(a),u=this.option("intervalCount");return e=e||6,(s=new Date(s.setDate(s.getDate()+(u>1?7*(u-1)+e:e)))).getDay()%6===0&&n&&s.setDate(s.getDate()+2),{text:k.call(this,s,a),startDate:a,endDate:s}},k=function(t,e){var n,i,o=e.getMonth()!==t.getMonth(),r=e.getFullYear()!==t.getFullYear(),a=o||this.option("_useShortDateFormat");return r?(i=v.default.format(e,C(!0)),n=v.default.format(t,C(!0))):(i=v.default.format(e,o?w(a):"d"),n=v.default.format(t,C(a))),i+"-"+n},I=function(t){var e,n=new Date(l.default.getFirstMonthDate(t)),i=new Date(l.default.getLastMonthDate(n));if(this.option("intervalCount")>1){(i=new Date(n)).setMonth(n.getMonth()+this.option("intervalCount")-1),i=new Date(l.default.getLastMonthDate(i));var o=n.getYear()===i.getYear(),r=x(i);e=(o?v.default.getMonthNames("abbreviated")[n.getMonth()]:x(n))+"-"+r}else e=v.default.format(t,"monthandyear");return{text:e,startDate:n,endDate:i}},T=function(t,e){return new Date(t[this.setter](t[this.getter]()+e))},E=function(t){var e;switch(t){case"day":return{duration:1*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:T,getCaption:function(t){var e=C(!1,this.option("intervalCount"),this._getConfig().duration);return{text:v.default.format(t,e),startDate:t,endDate:t}}};case"week":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:T,getCaption:S};case"workWeek":return{duration:7*this.option("intervalCount"),setter:"setDate",getter:"getDate",getDate:T,getCaption:function(t){return S.call(this,t,4,!0)}};case"month":return{duration:1*this.option("intervalCount"),setter:"setMonth",getter:"getMonth",getDate:function(t,e){var n=t.getDate();t.setDate(1),t=T.call(this,t,e);var i=l.default.getLastMonthDay(t);return t.setDate(n<i?n:i),t},getCaption:I};case"agenda":return e=this.invoke("getAgendaDuration"),{duration:e=(0,r.isNumeric)(e)&&e>0?e:7,setter:"setDate",getter:"getDate",getDate:T,getCaption:function(t){var n,i=C(this.option("_useShortDateFormat")),o=new Date(t),r=new Date(t);return e>1?(r.setDate(r.getDate()+e-1),n=k.call(this,r,t)):n=v.default.format(t,i),{text:n,startDate:o,endDate:r}}}}},O=h.default.inherit({_getDefaultOptions:function(){return(0,u.extend)(this.callBase(),{date:new Date,displayedDate:void 0,step:"day",intervalCount:1,min:void 0,max:void 0,firstDayOfWeek:void 0,_useShortDateFormat:!1})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return!d.default.real().generic||d.default.isSimulator()},options:{_useShortDateFormat:!0}}])},_optionChanged:function(t){switch(t.name){case"step":case"date":case"intervalCount":case"displayedDate":this._updateButtonsState(),this._renderCaption(),this._setCalendarOption("value",this.option("date"));break;case"min":case"max":this._updateButtonsState(),this._setCalendarOption(t.name,t.value);break;case"firstDayOfWeek":this._setCalendarOption(t.name,t.value);break;case"customizeDateNavigatorText":this._renderCaption();break;case"tabIndex":case"focusStateEnabled":this._next.option(t.name,t.value),this._caption.option(t.name,t.value),this._prev.option(t.name,t.value),this._setCalendarOption(t.name,t.value),this.callBase(t);break;case"_useShortDateFormat":break;default:this.callBase(t)}},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-navigator"),this._initButtons()},_initButtons:function(){var t=(0,i.default)("<div>").addClass("dx-scheduler-navigator-next");this._next=this._createComponent(t,f.default,{icon:"chevronnext",onClick:this._updateCurrentDate.bind(this,1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var e=(0,i.default)("<div>").addClass("dx-scheduler-navigator-caption");this._caption=this._createComponent(e,f.default,{focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}});var n=(0,i.default)("<div>").addClass("dx-scheduler-navigator-previous");this._prev=this._createComponent(n,f.default,{icon:"chevronprev",onClick:this._updateCurrentDate.bind(this,-1),focusStateEnabled:this.option("focusStateEnabled"),tabIndex:this.option("tabIndex"),integrationOptions:{}}),this.setAria("label","Next period",t),this.setAria("label","Previous period",n),this._updateButtonsState(),this.$element().append(n,e,t)},_updateButtonsState:function(){var t=this.option("min"),e=this.option("max"),n=this._getConfig().getCaption.call(this,this.option("displayedDate")||this.option("date"));t=t?l.default.trimTime(t):t,(e=e?l.default.trimTime(e):e)&&e.setHours(23,59,59),this._prev.option("disabled",t&&!isNaN(t.getTime())&&this._getNextDate(-1,n.endDate)<t),this._next.option("disabled",e&&!isNaN(e.getTime())&&this._getNextDate(1,n.startDate)>e)},_updateCurrentDate:function(t){var e=this._getNextDate(t);l.default.normalizeDate(e,this.option("min"),this.option("max")),this.notifyObserver("currentDateUpdated",e)},_getNextDate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this._getConfig(),i=n.duration*t,o=n.getDate(new Date(e||this.option("date")),i);return o},_renderFocusTarget:o.noop,_initMarkup:function(){this.callBase(),this._renderCaption()},_render:function(){this.callBase(),this._renderPopover(),this._renderCaptionKeys()},_isMobileLayout:function(){return!d.default.current().generic},_renderPopover:function(){var t=this,e=this._isMobileLayout()?g.default:m.default,n=(0,i.default)("<div>").addClass("dx-scheduler-navigator-calendar-popover");this._popover=this._createComponent(n,e,{contentTemplate:function(){return t._createPopupContent()},defaultOptionsRules:[{device:function(){return!d.default.current().generic},options:{fullScreen:!0,showCloseButton:!1,toolbarItems:[{shortcut:"cancel"}]}},{device:function(){return d.default.current().generic},options:{target:this._caption.$element()}}]}),this._popover.$element().appendTo(this.$element())},_createScrollable:function(t){var e=this._createComponent((0,i.default)("<div>"),y.default,{direction:"vertical"});return e.$content().append(t),e},_createPopupContent:function(){var t=(0,i.default)("<div>").addClass("dx-scheduler-navigator-calendar");return this._calendar=this._createComponent(t,p.default,this._calendarOptions()),this._isMobileLayout()?this._createScrollable(t).$element():t},_calendarOptions:function(){return{min:this.option("min"),max:this.option("max"),firstDayOfWeek:this.option("firstDayOfWeek"),value:this.option("date"),focusStateEnabled:this.option("focusStateEnabled"),onValueChanged:function(t){this.option("visible")&&(this.notifyObserver("currentDateUpdated",t.value),this._popover.hide())}.bind(this),hasFocus:function(){return!0},tabIndex:null}},_renderCaption:function(){var t=this,e=this.option("displayedDate")||this.option("date"),n=this._getConfig().getCaption.call(this,e),i=this.option("customizeDateNavigatorText"),o=a.default.isFunction(i)?i(n):n.text;this._caption.option({text:o,onKeyboardHandled:function(e){t.option("focusStateEnabled")&&!t.option("disabled")&&t._calendar._keyboardHandler(e)},onClick:function(){return t._popover.toggle()}})},_renderCaptionKeys:function(){if(this.option("focusStateEnabled")&&!this.option("disabled")){var t=this,e=function(){if(!t._popover.$content().is(":hidden"))return!0;t._popover.show()};this._caption.registerKeyHandler("enter",e),this._caption.registerKeyHandler("space",e),this._caption.registerKeyHandler("tab",(function(){t._popover.hide()}))}},_setCalendarOption:function(t,e){this._calendar&&this._calendar.option(t,e)},_getConfig:function(){var t=this.option("step"),e=E.call(this,t);if(!e)throw s.default.Error("E1033",t);return e}}).include(_.default);(0,c.default)("dxSchedulerNavigator",O),t.exports=O},function(t,e,n){"use strict";var i=r(n(8)),o=r(n(508));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(r,t);var e,n,i,o=d(r);function r(){return s(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_getElementClass",value:function(){return"dx-scheduler-work-space-day"}},{key:"_getRowCount",value:function(){return this._getCellCountInDay()}},{key:"_getCellCount",value:function(){return this.option("intervalCount")}},{key:"_setFirstViewDate",value:function(){this._firstViewDate=this._getViewStartByOptions(),this._setStartDayHour(this._firstViewDate)}},{key:"_getDateByIndex",value:function(t){if(1===this.option("intervalCount"))return this._firstViewDate;var e=new Date(this._firstViewDate);return e.setDate(this._firstViewDate.getDate()+t),e}},{key:"_renderDateHeader",value:function(){return 1===this.option("intervalCount")?null:u(f(r.prototype),"_renderDateHeader",this).call(this)}}])&&l(e.prototype,n),i&&l(e,i),r}(o.default);(0,i.default)("dxSchedulerWorkSpaceDay",p),t.exports=p},function(t,e,n){"use strict";var i,o=n(24),r=n(510),a=(i=r)&&i.__esModule?i:{default:i};function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,i,r=d(a);function a(){return l(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"prepareCellIndexes",value:function(t,e,n){return this._workSpace.isGroupedByDate()?{rowIndex:t.rowIndex,cellIndex:t.cellIndex*this._workSpace._getGroupCount()+e}:{rowIndex:t.rowIndex,cellIndex:t.cellIndex+e*this._workSpace._getCellCount()}}},{key:"calculateCellIndex",value:function(t,e){return e%=this._workSpace._getCellCount(),this._workSpace._getRowCount()*e+t}},{key:"getGroupIndex",value:function(t,e){var n=this._workSpace.isGroupedByDate(),i=this._workSpace._getGroupCount();return n?e%i:Math.floor(e/this._workSpace._getCellCount())}},{key:"calculateHeaderCellRepeatCount",value:function(){return this._workSpace._getGroupCount()||1}},{key:"insertAllDayRowsIntoDateTable",value:function(){return!1}},{key:"getTotalCellCount",value:function(t){return t=t||1,this._workSpace._getCellCount()*t}},{key:"getTotalRowCount",value:function(){return this._workSpace._getRowCount()}},{key:"addAdditionalGroupCellClasses",value:function(t,e){return t=this._addLastGroupCellClass(t,e),this._addFirstGroupCellClass(t,e)}},{key:"_addLastGroupCellClass",value:function(t,e){if(this._workSpace.isGroupedByDate()){if(e%this._workSpace._getGroupCount()===0)return t+" "+this.getLastGroupCellClass()}else if(e%this._workSpace._getCellCount()===0)return t+" "+this.getLastGroupCellClass();return t}},{key:"_addFirstGroupCellClass",value:function(t,e){return(e-1)%this._workSpace._getCellCount()===0?t+" "+this.getFirstGroupCellClass():t}},{key:"getHorizontalMax",value:function(t){return this._workSpace.getMaxAllowedPosition()[t]}},{key:"getVerticalMax",value:function(t){return this._workSpace.getMaxAllowedVerticalPosition()[0]}},{key:"calculateTimeCellRepeatCount",value:function(){return 1}},{key:"getWorkSpaceMinWidth",value:function(){return(0,o.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()}},{key:"getAllDayOffset",value:function(){return this._workSpace.getAllDayHeight()}},{key:"getAllDayTableHeight",value:function(){return(0,o.getBoundingRect)(this._workSpace._$allDayTable.get(0)).height||0}},{key:"getGroupCountAttr",value:function(t,e){return{attr:"dx-group-row-count",count:e&&e.elements.length}}},{key:"getLeftOffset",value:function(){return this._workSpace.getTimePanelWidth()}},{key:"getGroupBoundsOffset",value:function(t,e,n,i){var o,r,a,s;return this._workSpace.isGroupedByDate()?(r=0,a=e.eq(r).offset().left-n/2,s=e.eq(t*this._workSpace._getGroupCount()-1).offset().left+n+n/2):(o=this._workSpace.getCellIndexByCoordinates(i),r=(i.groupIndex||Math.floor(o/t))*t,a=e.eq(r).offset().left-n/2,s=e.eq(r+t-1).offset().left+n+n/2),{left:a,right:s,top:0,bottom:0}}},{key:"shiftIndicator",value:function(t,e,n,i){var o=this._getIndicatorOffset(i),r=n?n-o:o;t.css("left",r),t.css("top",e)}},{key:"_getIndicatorOffset",value:function(t){return this._workSpace.isGroupedByDate()?this._calculateGroupByDateOffset(t):this._calculateOffset(t)}},{key:"_calculateOffset",value:function(t){return this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1,0)*t+this._workSpace.getIndicatorOffset(t)+t}},{key:"_calculateGroupByDateOffset",value:function(t){return this._workSpace.getIndicatorOffset(0)*this._workSpace._getGroupCount()+this._workSpace.getRoundedCellWidth(t-1,0)*t}},{key:"getShaderOffset",value:function(t,e){var n=this._workSpace._getCellCount()*this._workSpace.getRoundedCellWidth(t-1)*t;return this._workSpace.option("rtlEnabled")?(0,o.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).width-n-this._workSpace.getTimePanelWidth()-e:n}},{key:"getShaderTopOffset",value:function(t){return-this.getShaderMaxHeight()*(t>0?1:0)}},{key:"getShaderHeight",value:function(){return this._workSpace.getIndicationHeight()}},{key:"getShaderMaxHeight",value:function(){return(0,o.getBoundingRect)(this._workSpace._dateTableScrollable.$content().get(0)).height}},{key:"getShaderWidth",value:function(t){return this._workSpace.getIndicationWidth(t)}},{key:"getScrollableScrollTop",value:function(t){return t?0:this._workSpace.getScrollable().scrollTop()}},{key:"getGroupIndexByCell",value:function(t){var e=t.parent().index(),n=t.index();return this.getGroupIndex(e,n)}}])&&u(e.prototype,n),i&&u(e,i),a}(a.default);t.exports=p},function(t,e,n){"use strict";var i,o=n(24),r=n(510),a=(i=r)&&i.__esModule?i:{default:i};function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,i,r=d(a);function a(){return l(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"prepareCellIndexes",value:function(t,e,n){var i=t.rowIndex+e*this._workSpace._getRowCount();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(i+=e,n||(i+=1)),{rowIndex:i,cellIndex:t.cellIndex}}},{key:"calculateCellIndex",value:function(t,e){return t%=this._workSpace._getRowCount(),this._workSpace._getRowCount()*e+t}},{key:"getGroupIndex",value:function(t){return Math.floor(t/this._workSpace._getRowCount())}},{key:"calculateHeaderCellRepeatCount",value:function(){return 1}},{key:"insertAllDayRowsIntoDateTable",value:function(){return this._workSpace.option("showAllDayPanel")}},{key:"getTotalCellCount",value:function(){return this._workSpace._getCellCount()}},{key:"getTotalRowCount",value:function(){return this._workSpace._getRowCount()*this._workSpace._getGroupCount()}},{key:"addAdditionalGroupCellClasses",value:function(t,e,n,i){return t=this._addLastGroupCellClass(t,n+1),this._addFirstGroupCellClass(t,n+1)}},{key:"_addLastGroupCellClass",value:function(t,e){return e%this._workSpace._getRowCount()===0?t+" "+this.getLastGroupCellClass():t}},{key:"_addFirstGroupCellClass",value:function(t,e){return(e-1)%this._workSpace._getRowCount()===0?t+" "+this.getFirstGroupCellClass():t}},{key:"getHorizontalMax",value:function(){return this._workSpace.getMaxAllowedPosition()[0]}},{key:"getVerticalMax",value:function(t){var e=this._workSpace.getMaxAllowedVerticalPosition()[t];return e+=this._getOffsetByAllDayPanel(t)}},{key:"_getOffsetByAllDayPanel",value:function(t){var e=0;return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(e=this._workSpace.getCellHeight()*(t+1)),e}},{key:"_getGroupTop",value:function(t){return this._workSpace.getMaxAllowedVerticalPosition()[t]-this._workSpace.getCellHeight()*this._workSpace._getRowCount()}},{key:"calculateTimeCellRepeatCount",value:function(){return this._workSpace._getGroupCount()||1}},{key:"getWorkSpaceMinWidth",value:function(){var t=this._workSpace._getWorkSpaceWidth(),e=(0,o.getBoundingRect)(this._workSpace.$element().get(0)).width-this._workSpace.getTimePanelWidth()-this._workSpace.getGroupTableWidth()-2;return t<e&&(t=e),t}},{key:"getAllDayOffset",value:function(){return 0}},{key:"getAllDayTableHeight",value:function(){return 0}},{key:"getGroupCountAttr",value:function(){return{attr:"dx-group-column-count",count:this._workSpace.option("groups")&&this._workSpace.option("groups").length}}},{key:"getLeftOffset",value:function(){return this._workSpace.getTimePanelWidth()+this._workSpace.getGroupTableWidth()}},{key:"getGroupBoundsOffset",value:function(t,e,n,i){var r=i.groupIndex,a=e.eq(0).offset().left,s=e.eq(t-1).offset().left+n,l=this._workSpace._calculateDayDuration()/this._workSpace.option("hoursInterval")*this._workSpace.getCellHeight(),u=this.getScrollableScrollTop(),c=r*l+(0,o.getBoundingRect)(this._workSpace._$thead.get(0)).height+this._workSpace.invoke("getHeaderHeight")+10-u;return this._workSpace.option("showAllDayPanel")&&this._workSpace.supportAllDayRow()&&(c+=this._workSpace.getCellHeight()*(r+1)),{left:a,right:s,top:c,bottom:c+l}}},{key:"shiftIndicator",value:function(t,e,n,i){var o=this._workSpace.getIndicatorOffset(0),r=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth(),a=n?n-o:o,s=this._workSpace._getRowCount()*this._workSpace.getCellHeight()*i;this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(s+=this._workSpace.getAllDayHeight()*(i+1)),t.css("left",a+r),t.css("top",e+s)}},{key:"getShaderOffset",value:function(t,e){var n=this._workSpace.option("crossScrollingEnabled")?0:this._workSpace.getGroupTableWidth();return this._workSpace.option("rtlEnabled")?(0,o.getBoundingRect)(this._$container.get(0)).width-n-this._workSpace.getWorkSpaceLeftOffset()-e:n}},{key:"getShaderTopOffset",value:function(t){return 0}},{key:"getShaderHeight",value:function(){var t=this._workSpace.getIndicationHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}},{key:"getShaderMaxHeight",value:function(){var t=this._workSpace._getRowCount()*this._workSpace.getCellHeight();return this._workSpace.supportAllDayRow()&&this._workSpace.option("showAllDayPanel")&&(t+=this._workSpace.getCellHeight()),t}},{key:"getShaderWidth",value:function(){return this._workSpace.getIndicationWidth(0)}},{key:"getScrollableScrollTop",value:function(){return this._workSpace.getScrollable().scrollTop()}},{key:"getGroupIndexByCell",value:function(t){var e=t.parent().index(),n=this._workSpace._getRowCountWithAllDayRows();return Math.ceil((e+1)/n)}}])&&u(e.prototype,n),i&&u(e,i),a}(a.default);t.exports=p},function(t,e,n){"use strict";var i=r(n(3)),o=r(n(511));function r(t){return t&&t.__esModule?t:{default:t}}function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(a,t);var e,n,o,r=d(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"renderShader",value:function(){var t=this._getShaderHeight(),e=this._getShaderMaxHeight(),n=t>e;if(t>=0){t>e&&(t=e),this._$shader.height(t);var i=this._workSpace._getGroupCount()||1;this._workSpace.isGroupedByDate()?this._renderGroupedByDateShaderParts(i,t,e,n):this._renderShaderParts(i,t,e,n)}}},{key:"_renderShaderParts",value:function(t,e,n,i){for(var o=0;o<t;o++){var r=this._getShaderWidth(o);this._renderTopShader(this._$shader,e,r,o),!i&&this._renderBottomShader(this._$shader,n-e,r,o),this._renderAllDayShader(r,o)}}},{key:"_renderGroupedByDateShaderParts",value:function(t,e,n,i){var o=this._getShaderWidth(0),r=(o-this._workSpace.getCellWidth())*t+this._workSpace.getCellWidth();this._renderTopShader(this._$shader,e,o*t,0),!i&&this._renderBottomShader(this._$shader,n-e,r,0),this._renderAllDayShader(o*t,0)}},{key:"_renderTopShader",value:function(t,e,n,o){this._$topShader=(0,i.default)("<div>").addClass("dx-scheduler-date-time-shader-top"),n&&this._$topShader.width(n)&&this._$topShader.height(e),this._$topShader.css("marginTop",this._getShaderTopOffset(o)),this._$topShader.css("left",this._getShaderOffset(o,n)),t.append(this._$topShader)}},{key:"_renderBottomShader",value:function(t,e,n,o){this._$bottomShader=(0,i.default)("<div>").addClass("dx-scheduler-date-time-shader-bottom"),this._$bottomShader.width(n-this._workSpace.getCellWidth())&&this._$bottomShader.height(e),this._$bottomShader.css("left",this._getShaderOffset(o,n-this._workSpace.getCellWidth())),t.append(this._$bottomShader)}},{key:"_renderAllDayShader",value:function(t,e){this._workSpace.option("showAllDayPanel")&&(this._$allDayIndicator=(0,i.default)("<div>").addClass("dx-scheduler-date-time-shader-all-day"),this._$allDayIndicator.height(this._workSpace.getAllDayHeight()),this._$allDayIndicator.width(t),this._$allDayIndicator.css("left",this._getShaderOffset(e,t)),this._workSpace._$allDayPanel.prepend(this._$allDayIndicator))}},{key:"_getShaderOffset",value:function(t,e){return this._workSpace.getGroupedStrategy().getShaderOffset(t,e)}},{key:"_getShaderTopOffset",value:function(t){return this._workSpace.getGroupedStrategy().getShaderTopOffset(t)}},{key:"_getShaderHeight",value:function(t,e){return this._workSpace.getGroupedStrategy().getShaderHeight()}},{key:"_getShaderMaxHeight",value:function(t,e){return this._workSpace.getGroupedStrategy().getShaderMaxHeight()}},{key:"_getShaderWidth",value:function(t){return this._workSpace.getGroupedStrategy().getShaderWidth(t)}},{key:"clean",value:function(){u(f(a.prototype),"clean",this).call(this),this._workSpace&&this._workSpace._$allDayPanel&&this._workSpace._$allDayPanel.find(".dx-scheduler-date-time-shader-all-day").remove()}}])&&l(e.prototype,n),o&&l(e,o),a}(o.default);t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=u(n(3)),o=u(n(223)),r=u(n(33)),a=n(0),s=n(24),l=n(202);function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.scheduler=e,this.appointments=e._appointments,this.initialPosition={left:0,top:0},this.currentAppointment=null}var e,n,u;return e=t,(n=[{key:"isAllDay",value:function(t){return t.data("dxAppointmentSettings").allDay}},{key:"getContainerShift",value:function(t){var e=this.appointments._getAppointmentContainer(t),n=this.appointments.option("fixedContainer"),i=(0,s.getBoundingRect)(e[0]),o=(0,s.getBoundingRect)(n[0]);return{left:i.left-o.left,top:i.top-o.top}}},{key:"onDragStart",value:function(t){this.initialPosition=r.default.locate((0,i.default)(t.itemElement)),this.appointments.notifyObserver("hideAppointmentTooltip")}},{key:"onDragMove",value:function(t){t.fromComponent!==t.toComponent&&this.appointments.notifyObserver("removeDroppableCellClass")}},{key:"getAppointmentElement",value:function(t){var e=t.event.data&&t.event.data.itemElement||t.itemElement;return(0,i.default)(e)}},{key:"onDragEnd",value:function(t){var e=this.getAppointmentElement(t);this.appointments._getAppointmentContainer(this.isAllDay(e)).append(e),this.currentAppointment=e,this.appointments.notifyObserver("updateAppointmentAfterDrag",{event:t,data:this.appointments._getItemData(e),$appointment:e,coordinates:this.initialPosition})}},{key:"getItemData",value:function(t){var e=(0,i.default)(t).data(l.LIST_ITEM_DATA_KEY);return e&&e.data||this.appointments._getItemData(t)}},{key:"getItemSettings",value:function(t){var e=(0,i.default)(t).data(l.LIST_ITEM_DATA_KEY);return e&&e.settings||[]}},{key:"createDragStartHandler",value:function(t,e){var n=this;return function(i){i.itemData=n.getItemData(i.itemElement),i.itemSettings=n.getItemSettings(i.itemElement),e.onDragStart&&e.onDragStart(i),i.cancel||t.onDragStart(i)}}},{key:"createDragMoveHandler",value:function(t,e){return function(n){e.onDragMove&&e.onDragMove(n),n.cancel||t.onDragMove(n)}}},{key:"createDragEndHandler",value:function(t,e){return function(n){e.onDragEnd&&e.onDragEnd(n),n.cancel||(t.onDragEnd(n),n.fromComponent!==n.toComponent&&e.onRemove&&e.onRemove(n))}}},{key:"createDropHandler",value:function(t){var e=this;return function(n){n.itemData=(0,a.extend)({},n.itemData,e.appointments.invoke("getUpdatedData",{data:n.itemData})),n.fromComponent!==n.toComponent&&t.onAdd&&t.onAdd(n)}}},{key:"addTo",value:function(t,e){var n=this.scheduler.option("appointmentDragging")||{},i=(0,a.extend)({component:this.scheduler,contentTemplate:null,filter:".".concat("dx-scheduler-appointment"),immediate:!1,onDragStart:this.onDragStart.bind(this),onDragMove:this.onDragMove.bind(this),onDragEnd:this.onDragEnd.bind(this)},e);this.appointments._createComponent(t,o.default,(0,a.extend)({},i,n,{onDragStart:this.createDragStartHandler(i,n),onDragMove:this.createDragMoveHandler(i,n),onDragEnd:this.createDragEndHandler(i,n),onDrop:this.createDropHandler(n)}))}},{key:"moveBack",value:function(){this.currentAppointment&&void 0!==this.initialPosition.left&&void 0!==this.initialPosition.top&&r.default.move(this.currentAppointment,this.initialPosition)}}])&&c(e.prototype,n),u&&c(e,u),t}();e.default=d,t.exports=d},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function a(t,e,n){return(a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=c(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=c(t);if(e){var o=c(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function c(t){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=n(8),h=n(26),f=n(513),p=h.dateToMilliseconds,m=n(512),g=[1,2,3,4,5],_=0,v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(d,t);var e,n,i,u=l(d);function d(){var t;o(this,d);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return(t=u.call.apply(u,[this].concat(n)))._isSkippedData=f.isDataOnWeekend,t._getWeekendsCount=f.getWeekendsCount,t}return e=d,(n=[{key:"_getElementClass",value:function(){return"dx-scheduler-work-space-work-week"}},{key:"_getCellCount",value:function(){return 5*this.option("intervalCount")}},{key:"_firstDayOfWeek",value:function(){return f.getFirstDayOfWeek(this.option("firstDayOfWeek"))}},{key:"_getDateByIndex",value:function(t){var e=new Date(this._firstViewDate);t%this._getCellCount()===0&&(_=0),e.setDate(this._firstViewDate.getDate()+t+_);for(var n=e.getDay();-1===g.indexOf(n);)e.setDate(e.getDate()+1),n=e.getDay(),_++;return e}},{key:"_renderView",value:function(){_=0,a(c(d.prototype),"_renderView",this).call(this)}},{key:"_setFirstViewDate",value:function(){this._firstViewDate=f.getFirstViewDate(this._getViewStartByOptions(),this._firstDayOfWeek()),this._setStartDayHour(this._firstViewDate)}},{key:"_getOffsetByCount",value:function(t){var e=this._getCellCount();t-=e*Math.floor(t/e);var n=Math.floor(t/5);return p("day")*n*2}}])&&r(e.prototype,n),i&&r(e,i),d}(m);d("dxSchedulerWorkSpaceWorkWeek",v),t.exports=v},function(t,e,n){"use strict";var i=n(3),o=n(4).noop,r=n(8),a=n(309),s=n(26),l=n(24).getBoundingRect,u=n(43),c=s.dateToMilliseconds,d=a.inherit({_toggleFixedScrollableClass:function(){this._dateTableScrollable.$content().toggleClass("dx-scheduler-scrollable-fixed-content",!this._isWorkSpaceWithCount()&&!this._isVerticalGroupedWorkSpace())},_getElementClass:function(){return"dx-scheduler-work-space-month"},_getRowCount:function(){return this._isWorkSpaceWithCount()?4*this.option("intervalCount")+2:6},_getCellCount:function(){return 7},_getDateByIndex:function(t){var e=new Date(this._firstViewDate);return e.setDate(this._firstViewDate.getDate()+t),e},_getFormat:function(){return this._formatWeekday},_calculateCellIndex:function(t,e){return this._isVerticalGroupedWorkSpace()?t%=this._getRowCount():e%=this._getCellCount(),t*this._getCellCount()+e},_getInterval:function(){return 864e5},_getIntervalBetween:function(t){var e=this.getStartViewDate(),n=s.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-n},_getDateByCellIndexes:function(t,e){var n=this.callBase(t,e);return this._setStartDayHour(n),n},getCellWidth:function(){var t=0;return this._getCells().slice(0,7).each((function(e,n){return t+=l(n).width})),t/7},_calculateHiddenInterval:function(){return 0},_insertAllDayRowsIntoDateTable:function(){return!1},_getCellCoordinatesByIndex:function(t){var e=Math.floor(t/this._getCellCount());return{rowIndex:e,cellIndex:t-this._getCellCount()*e}},_createWorkSpaceElements:function(){this._isVerticalGroupedWorkSpace()?this._createWorkSpaceScrollableElements():this.callBase()},_needCreateCrossScrolling:function(){return this.option("crossScrollingEnabled")||this._isVerticalGroupedWorkSpace()},_renderTimePanel:o,_renderAllDayPanel:o,_getTableAllDay:o,_toggleAllDayVisibility:o,_changeAllDayVisibility:o,_setFirstViewDate:function(){var t=s.getFirstMonthDate(this._getViewStartByOptions());this._firstViewDate=s.getFirstWeekDate(t,this.option("firstDayOfWeek")||u.firstDayOfWeekIndex()),this._setStartDayHour(this._firstViewDate);var e=this._getViewStartByOptions();this._minVisibleDate=new Date(e.setDate(1)),this._maxVisibleDate=new Date(new Date(e.setMonth(e.getMonth()+this.option("intervalCount"))).setDate(0))},_getViewStartByOptions:function(){if(this.option("startDate")){for(var t=this._getStartViewDate(),e=this.option("currentDate"),n=t.getTime()<=e.getTime()?1:-1,i=new Date(new Date(this._getStartViewDate().setMonth(this._getStartViewDate().getMonth()+n*this.option("intervalCount"))));!this._dateInRange(e,t,i,n);)t=new Date(i),n>0&&t.setDate(1),i=new Date(new Date(i.setMonth(i.getMonth()+n*this.option("intervalCount"))));return n>0?t:i}return new Date(this.option("currentDate").getTime())},_getStartViewDate:function(){return s.getFirstMonthDate(this.option("startDate"))},_renderTableBody:function(t){t.getCellText=this._getCellText.bind(this),this.callBase(t)},_getCellText:function(t,e){this.isGroupedByDate()?e=Math.floor(e/this._getGroupCount()):e%=this._getCellCount();var n=this._getDate(t,e);return this._isWorkSpaceWithCount()&&this._isFirstDayOfMonth(n)?this._formatMonthAndDay(n):u.format(n,"dd")},_formatMonthAndDay:function(t){return[u.getMonthNames("abbreviated")[t.getMonth()],u.format(t,"day")].join(" ")},_getDate:function(t,e){var n=new Date(this._firstViewDate),i=this._getRowCount();return n.setDate(n.getDate()+t%i*7+e),n},_updateIndex:function(t){return t},_prepareCellData:function(t,e,n){var o=this.callBase(t,e,n);return i(n).toggleClass("dx-scheduler-date-table-current-date",this._isCurrentDate(o.startDate)).toggleClass("dx-scheduler-date-table-first-of-month",this._isFirstDayOfMonth(o.startDate)).toggleClass("dx-scheduler-date-table-other-month",this._isOtherMonth(o.startDate)),o},_isCurrentDate:function(t){var e=new Date;return s.sameDate(t,e)},_isFirstDayOfMonth:function(t){return this._isWorkSpaceWithCount()&&1===t.getDate()},_isOtherMonth:function(t){return!s.dateInRange(t,this._minVisibleDate,this._maxVisibleDate,"date")},needRenderDateTimeIndication:function(){return!1},getCellDuration:function(){return 36e5*this._calculateDayDuration()},getIntervalDuration:function(){return c("day")},getTimePanelWidth:function(){return 0},getPositionShift:function(t){return{cellPosition:t*this.getCellWidth(),top:0,left:0}},getCellCountToLastViewDate:function(t){var e=t.getTime(),n=this.getEndViewDate().getTime(),i=this.getCellDuration();return Math.ceil((n-e)/i)},supportAllDayRow:function(){return!1},keepOriginalHours:function(){return!0},calculateEndDate:function(t){var e=new Date(t);return new Date(e.setHours(this.option("endDayHour")))},getWorkSpaceLeftOffset:function(){return 0},needApplyCollectorOffset:function(){return!0},_getDateTableBorderOffset:function(){return this._getDateTableBorder()},_getCellPositionByIndex:function(t,e){var n,i=this.callBase(t,e),o=this._getCellCoordinatesByIndex(t).rowIndex;return(n=this._isVerticalGroupedWorkSpace()?this.getCellHeight()*(o+e*this._getRowCount()):this.getCellHeight()*o)&&(i.top=n),i},_getHeaderDate:function(){return this._getViewStartByOptions()},_supportCompactDropDownAppointments:function(){return!1},scrollToTime:o,_getRowCountWithAllDayRows:function(){return this._getRowCount()}});r("dxSchedulerWorkSpaceMonth",d),t.exports=d},function(t,e,n){"use strict";var i=n(8),o=n(311),r=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-day"},_setFirstViewDate:function(){this._firstViewDate=this.option("currentDate"),this._setStartDayHour(this._firstViewDate)},_needRenderWeekHeader:function(){return this._isWorkSpaceWithCount()}});i("dxSchedulerTimelineDay",r),t.exports=r},function(t,e,n){"use strict";var i,o=n(24),r=n(511);function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(a,t);var e,n,i,r=c(a);function a(){return s(this,a),r.apply(this,arguments)}return e=a,(n=[{key:"renderShader",value:function(){for(var t=this._workSpace._isHorizontalGroupedWorkSpace()?this._workSpace._getGroupCount():1,e=0;e<t;e++){var n=0===e,i=n?this._$shader:this.createShader();this.applyShaderMargin(i),this._workSpace.isGroupedByDate()?this._customizeGroupedByDateShader(i,e):this._customizeShader(i,e),!n&&this._shader.push(i)}}},{key:"_customizeShader",value:function(t,e){var n=this._workSpace.getIndicationWidth();if(this._applyShaderWidth(t,n),e>=1){var i=this._workSpace,o=i._getCellCount()*i.getCellWidth();t.css("left",o)}else t.css("left",0)}},{key:"_applyShaderWidth",value:function(t,e){var n=(0,o.getBoundingRect)(this._$container.get(0)).width;e>n&&(e=n),e>0&&t.width(e)}},{key:"_customizeGroupedByDateShader",value:function(t,e){var n,i=this._workSpace.getIndicationCellCount(),o=Math.floor(i),r=i-o,a=0===e,s=this._workSpace,l=a?s.getIndicationWidth():r*s.getCellWidth();this._applyShaderWidth(t,l),n=a?s._getCellCount()*s.getCellWidth()*e:s.getCellWidth()*o*s._getGroupCount()+e*s.getCellWidth(),t.css("left",n)}}])&&l(e.prototype,n),i&&l(e,i),a}(((i=r)&&i.__esModule?i:{default:i}).default);t.exports=f},function(t,e,n){"use strict";var i=n(8),o=n(514),r=n(26),a=n(513),s=r.dateToMilliseconds,l=o.inherit({_getElementClass:function(){return"dx-scheduler-timeline-work-week"},_getWeekDuration:function(){return 5},_firstDayOfWeek:function(){return a.getFirstDayOfWeek(this.option("firstDayOfWeek"))},_isSkippedData:a.isDataOnWeekend,_incrementDate:function(t){5===t.getDay()&&t.setDate(t.getDate()+2),this.callBase(t)},_getOffsetByCount:function(t){var e=Math.floor(t/(5*this._getCellCountInDay()));return s("day")*e*2},_getWeekendsCount:a.getWeekendsCount,_setFirstViewDate:function(){this._firstViewDate=a.getFirstViewDate(this.option("currentDate"),this._firstDayOfWeek()),this._setStartDayHour(this._firstViewDate)}});i("dxSchedulerTimelineWorkWeek",l),t.exports=l},function(t,e,n){"use strict";var i=n(8),o=n(311),r=n(26),a=r.dateToMilliseconds,s=o.inherit({_renderView:function(){this.callBase(),this._updateScrollable()},_getElementClass:function(){return"dx-scheduler-timeline-month"},_getDateHeaderTemplate:function(){return this.option("dateCellTemplate")},_getHiddenInterval:function(){return 0},_getIndicationFirstViewDate:function(){return r.trimTime(new Date(this._firstViewDate))},getCellDuration:function(){return a("day")},calculateEndViewDate:function(t){return new Date(t.getTime()+this._calculateDayDuration()*a("hour"))},_getCellCount:function(){var t=this.option("currentDate"),e=0;if(this._isWorkSpaceWithCount())for(var n=this.option("intervalCount"),i=1;i<=n;i++)e+=new Date(t.getFullYear(),t.getMonth()+i,0).getDate();else e=new Date(t.getFullYear(),t.getMonth()+1,0).getDate();return e},_setFirstViewDate:function(){this._firstViewDate=r.getFirstMonthDate(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getFormat:function(){return this._formatWeekdayAndDay},_getDateByIndex:function(t){var e=new Date(this._firstViewDate);return e.setDate(this._firstViewDate.getDate()+t),e},_getInterval:function(){return 864e5},_getIntervalBetween:function(t){var e=this.getStartViewDate(),n=r.getTimezonesDifference(e,t);return t.getTime()-(e.getTime()-36e5*this.option("startDayHour"))-n},calculateEndDate:function(t){var e=new Date(t);return new Date(e.setHours(this.option("endDayHour")))},_calculateHiddenInterval:function(){return 0},_getDateByCellIndexes:function(t,e){var n=this.callBase(t,e);return this._setStartDayHour(n),n},needUpdateScrollPosition:function(t,e,n,i){return this._dateWithinBounds(n,i)},getPositionShift:function(){return{top:0,left:0,cellPosition:0}}});i("dxSchedulerTimelineMonth",s),t.exports=s},function(t,e,n){"use strict";var i=n(3),o=n(15),r=n(4).noop,a=n(5).each,s=n(17).getPublicElement,l=n(8),u=n(509),c=n(0).extend,d=n(43),h=n(310),f=u.inherit({_activeStateUnit:void 0,_getDefaultOptions:function(){return c(this.callBase(),{agendaDuration:7,rowHeight:60,noDataText:""})},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"agendaDuration":break;case"noDataText":case"rowHeight":this._recalculateAgenda(this._rows);break;case"groups":n&&n.length?this._$groupTable||(this._initGroupTable(),this._dateTableScrollable.$content().prepend(this._$groupTable)):this._$groupTable&&(this._$groupTable.remove(),this._$groupTable=null,this._detachGroupCountAttr()),this.callBase(t);break;default:this.callBase(t)}},_renderFocusState:r,_renderFocusTarget:r,_cleanFocusState:r,supportAllDayRow:function(){return!1},_isVerticalGroupedWorkSpace:function(){return!1},_getElementClass:function(){return"dx-scheduler-agenda"},_setFirstViewDate:function(){this._firstViewDate=new Date(this.option("currentDate")),this._setStartDayHour(this._firstViewDate)},_getRowCount:function(){return this.option("agendaDuration")},_getCellCount:function(){return 1},_getTimePanelRowCount:function(){return this.option("agendaDuration")},_getDateByIndex:r,_getFormat:function(){return"d ddd"},_renderAllDayPanel:r,_toggleAllDayVisibility:r,_initWorkSpaceUnits:function(){this._initGroupTable(),this._$timePanel=i("<table>").addClass(this._getTimePanelClass()),this._$dateTable=i("<table>").addClass(this._getDateTableClass())},_initGroupTable:function(){var t=this.option("groups");t&&t.length&&(this._$groupTable=i("<table>").addClass("dx-scheduler-group-table"))},_renderView:function(){this._setFirstViewDate(),this._rows=[],this.invoke("getAgendaRows",{agendaDuration:this.option("agendaDuration"),currentDate:new Date(this.option("currentDate"))}).done(function(t){this._recalculateAgenda(t)}.bind(this))},_recalculateAgenda:function(t){var e=[];this._cleanView(),this._rowsIsEmpty(t)?this._renderNoData():(this._rows=t,this._$groupTable&&(e=this._renderGroupHeader(),this._setGroupHeaderCellsHeight()),this._renderTimePanel(),this._renderDateTable(),this.invoke("onAgendaReady",t),this._applyCellTemplates(e),this._dateTableScrollable.update())},_renderNoData:function(){this._$noDataContainer=i("<div>").addClass("dx-scheduler-agenda-nodata").html(this.option("noDataText")),this._dateTableScrollable.$content().append(this._$noDataContainer)},_setTableSizes:r,_toggleHorizontalScrollClass:r,_createCrossScrollingConfig:r,_setGroupHeaderCellsHeight:function(){var t=this._getGroupHeaderCells().filter((function(t,e){return!e.getAttribute("rowSpan")})),e=this._removeEmptyRows(this._rows);if(e.length)for(var n=0;n<t.length;n++){t.eq(n).find(".dx-scheduler-group-header-content").outerHeight(this._getGroupRowHeight(e[n]))}},_rowsIsEmpty:function(t){for(var e=!0,n=0;n<t.length;n++)for(var i=t[n],o=0;o<i.length;o++)if(i[o]){e=!1;break}return e},_detachGroupCountAttr:function(){this.$element().removeAttr("dx-group-column-count")},_attachGroupCountAttr:function(){this.$element().attr("dx-group-column-count",this.option("groups").length)},_removeEmptyRows:function(t){for(var e=[],n=0;n<t.length;n++)t[n].length&&t[n].some((function(t){return t>0}))&&e.push(t[n]);return e},_getGroupHeaderContainer:function(){return this._$groupTable},_makeGroupRows:function(){var t=this.invoke("createReducedResourcesTree"),e=this.option("resourceCellTemplate"),n=this._getGroupHeaderContentClass(),r=[],a=h.makeGroupedTableFromJSON(h.VERTICAL,t,{cellTag:"th",groupTableClass:"dx-scheduler-group-table",groupRowClass:this._getGroupRowClass(),groupCellClass:this._getGroupHeaderClass(),groupCellCustomContent:function(t,a,l,u){var c=o.createElement("div"),d=o.createElement("div");c.className=n,d.appendChild(a),c.appendChild(d),c.className=n,e&&e.render?r.push(e.render.bind(e,{model:{data:u.data,id:u.value,color:u.color,text:a.textContent},container:s(i(c)),index:l})):(d.appendChild(a),c.appendChild(d)),t.appendChild(c)},cellTemplate:e});return{elements:i(a).find("."+this._getGroupRowClass()),cellTemplates:r}},_cleanView:function(){this._$dateTable.empty(),this._$timePanel.empty(),this._$groupTable&&this._$groupTable.empty(),this._$noDataContainer&&(this._$noDataContainer.empty(),this._$noDataContainer.remove(),delete this._$noDataContainer)},_createWorkSpaceElements:function(){this._createWorkSpaceStaticElements()},_createWorkSpaceStaticElements:function(){this._$groupTable&&this._dateTableScrollable.$content().prepend(this._$groupTable),this._dateTableScrollable.$content().append(this._$timePanel,this._$dateTable),this.$element().append(this._dateTableScrollable.$element())},_renderDateTable:function(){this._renderTableBody({container:s(this._$dateTable),rowClass:this._getDateTableRowClass(),cellClass:this._getDateTableCellClass()})},_attachTablesEvents:r,_attachEvents:r,_cleanCellDataCache:r,needRenderDateTimeIndication:function(){return!1},_prepareCellTemplateOptions:function(t,e,n,i){var o=this.option("groups"),r={};return(o.length&&this._getPathToLeaf(n)||[]).forEach((function(t,e){var n=o[e].name;r[n]=t})),{model:{text:t,date:e,groups:r},container:s(i),index:n}},_renderTableBody:function(t){var e,n=[],o=t.cellTemplate;this._$rows=[];var r=function(r,a){if(a){var s,l,u,c=i("<tr>"),h=i("<td>").height(this._getRowHeight(a));if(t.getStartDate&&(s=t.getStartDate&&t.getStartDate(r),l=d.format(s,"d"),u=d.format(s,this._formatWeekday)),o&&o.render){var f=this._prepareCellTemplateOptions(l+" "+u,s,e,h);n.push(o.render.bind(o,f))}else l&&u&&h.addClass("dx-scheduler-agenda-date").text(l+" "+u);t.rowClass&&c.addClass(t.rowClass),t.cellClass&&h.addClass(t.cellClass),c.append(h),this._$rows.push(c)}}.bind(this);for(e=0;e<this._rows.length;e++)a(this._rows[e],r),this._setLastRowClass();i(t.container).append(i("<tbody>").append(this._$rows)),this._applyCellTemplates(n)},_setLastRowClass:function(){this._rows.length>1&&this._$rows.length&&this._$rows[this._$rows.length-1].addClass("dx-scheduler-date-table-last-row")},_renderTimePanel:function(){this._renderTableBody({container:s(this._$timePanel),rowCount:this._getTimePanelRowCount(),cellCount:1,rowClass:"dx-scheduler-time-panel-row",cellClass:"dx-scheduler-time-panel-cell",cellTemplate:this.option("dateCellTemplate"),getStartDate:this._getTimePanelStartDate.bind(this)})},_getTimePanelStartDate:function(t){var e=new Date(this.option("currentDate"));return new Date(e.setDate(e.getDate()+t))},_getRowHeight:function(t){var e=this.option("rowHeight");return t?e*t+5*(t-1)+20:0},_getGroupRowHeight:function(t){if(t){for(var e=0,n=0;n<t.length;n++)e+=this._getRowHeight(t[n]);return e}},getAgendaVerticalStepHeight:function(){return this.option("rowHeight")},getEndViewDate:function(){var t=new Date(this.option("currentDate")),e=this.option("agendaDuration");t.setHours(this.option("endDayHour"));var n=t.setDate(t.getDate()+e-1)-6e4;return new Date(n)},getEndViewDateByEndDayHour:function(){return this.getEndViewDate()},getCoordinatesByDate:function(){return{top:0,left:0,max:0,groupIndex:0}},getCellDataByCoordinates:function(){return{startDate:null,endDate:null}}});l("dxSchedulerAgenda",f),t.exports=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(16),o=m(i),r=n(4),a=n(2),s=m(n(54)),l=m(n(5)),u=n(0),c=m(n(61)),d=m(n(29)),h=n(92),f=n(7),p=n(100);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var _=function(t){return t.valueExpr||"id"},v=function(t){return t.displayExpr||"text"},y=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._resourceLoader={},this.setResources(e)}var e,n,m;return e=t,(n=[{key:"_createWrappedDataSource",value:function(t){if(t instanceof h.DataSource)return t;var e={store:(0,p.normalizeDataSourceOptions)(t).store,pageSize:0};return Array.isArray(t)||(e.filter=t.filter),new h.DataSource(e)}},{key:"_mapResourceData",value:function(t,e){var n=d.default.compileGetter(_(t)),i=d.default.compileGetter(v(t));return l.default.map(e,(function(t){var e={id:n(t),text:i(t)};return t.color&&(e.color=t.color),e}))}},{key:"_isMultipleResource",value:function(t){var e=!1;return l.default.each(this.getResources(),function(n,i){if(this.getField(i)===t)return e=i.allowMultiple,!1}.bind(this)),e}},{key:"getDataAccessors",value:function(t,e){var n=null;return l.default.each(this._dataAccessors[e],(function(e,i){if(t===e)return n=i,!1})),n}},{key:"getField",value:function(t){return t.fieldExpr||t.field}},{key:"setResources",value:function(t){this._resources=t,this._dataAccessors={getter:{},setter:{}},this._resourceFields=l.default.map(t||[],function(t){var e=this.getField(t);return this._dataAccessors.getter[e]=d.default.compileGetter(e),this._dataAccessors.setter[e]=d.default.compileSetter(e),e}.bind(this))}},{key:"getResources",value:function(){return this._resources||[]}},{key:"getResourcesData",value:function(){return this._resourcesData||[]}},{key:"getEditors",value:function(){var t=[],e=this;return l.default.each(this.getResources(),(function(n,i){var o=e.getField(i),r=e._getResourceDataByField(o);t.push({editorOptions:{dataSource:r.length?r:e._createWrappedDataSource(i.dataSource),displayExpr:v(i),valueExpr:_(i)},dataField:o,editorType:i.allowMultiple?"dxTagBox":"dxSelectBox",label:{text:i.label||o}})})),t}},{key:"getResourceDataByValue",value:function(t,e){var n=this,i=new f.Deferred;return l.default.each(this.getResources(),(function(o,r){if(n.getField(r)===t){var a=n._createWrappedDataSource(r.dataSource),s=_(r);return n._resourceLoader[t]||(n._resourceLoader[t]=a.load()),n._resourceLoader[t].done((function(o){var r=(0,c.default)(o).filter(s,e).toArray();delete n._resourceLoader[t],i.resolve(r[0])})).fail((function(){delete n._resourceLoader[t],i.reject()})),!1}})),i.promise()}},{key:"setResourcesToItem",value:function(t,e){var n=this._dataAccessors.setter;for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];n[i](t,this._isMultipleResource(i)?o.default.wrapToArray(r):r)}}},{key:"getResourcesFromItem",value:function(t,e){var n=this,i=null;return(0,a.isDefined)(e)||(e=!1),this._resourceFields.forEach((function(r){l.default.each(t,(function(t,s){var l={};l[t]=s;var c=n.getDataAccessors(r,"getter")(l);if((0,a.isDefined)(c))return i||(i={}),1===c.length&&(c=c[0]),!e||e&&n._isMultipleResource(r)?n.getDataAccessors(r,"setter")(l,o.default.wrapToArray(c)):n.getDataAccessors(r,"setter")(l,c),(0,u.extend)(i,l),!0}))})),i}},{key:"loadResources",value:function(t){var e=new f.Deferred,n=this,i=[];return l.default.each(this.getResourcesByFields(t),(function(t,e){var o=new f.Deferred,r=n.getField(e);i.push(o),n._createWrappedDataSource(e.dataSource).load().done((function(t){o.resolve({name:r,items:n._mapResourceData(e,t),data:t})})).fail((function(){o.reject()}))})),i.length?(f.when.apply(null,i).done((function(){var t=Array.prototype.slice.call(arguments),i=function(t){return{name:t.name,items:t.items,data:t.data}};n._resourcesData=t,e.resolve(t.map(i))})).fail((function(){e.reject()})),e.promise()):(n._resourcesData=[],e.resolve([]))}},{key:"getResourcesByFields",value:function(t){return(0,r.grep)(this.getResources(),function(e){var n=this.getField(e);return(0,i.inArray)(n,t)>-1}.bind(this))}},{key:"getResourceByField",value:function(t){return this.getResourcesByFields([t])[0]||{}}},{key:"getResourceColor",value:function(t,e){var n,i=this.getResourceByField(t).valueExpr||"id",o=d.default.compileGetter(i),r=this.getResourceByField(t).colorExpr||"color",a=d.default.compileGetter(r),s=new f.Deferred,l=this._getResourceDataByField(t),u=l.length;if(u){for(var c=0;c<u;c++)if(o(l[c])===e){n=a(l[c]);break}s.resolve(n)}else this.getResourceDataByValue(t,e).done((function(t){t&&(n=a(t)),s.resolve(n)})).fail((function(){s.reject()}));return s.promise()}},{key:"getResourceForPainting",value:function(t){var e,n=this.getResources();return l.default.each(n,(function(t,n){if(n.useColorAsDefault)return e=n,!1})),e||(Array.isArray(t)&&t.length&&(n=this.getResourcesByFields(t)),e=n[n.length-1]),e}},{key:"createResourcesTree",value:function(t){var e=0;return function n(i,o,r,a){r=r||[];for(var s=0;s<i.items.length;s++){var l=i.items[s],u={name:i.name,value:l.id,title:l.text,data:i.data&&i.data[s],children:[],parent:a||null};r.push(u);var c=o+1;t[c]&&n.call(this,t[c],c,u.children,u),u.children.length||(u.leafIndex=e,e++)}return r}.call(this,t[0],0)}},{key:"_hasGroupItem",value:function(t,e,n){var o=this.getDataAccessors(e,"getter")(t);return!!(o&&(0,i.inArray)(n,o)>-1)}},{key:"_getResourceDataByField",value:function(t){for(var e=this.getResourcesData(),n=[],i=0,o=e.length;i<o;i++)if(e[i].name===t){n=e[i].data;break}return n}},{key:"getResourceTreeLeaves",value:function(t,e,n){n=n||[];for(var i=0;i<t.length;i++)this._hasGroupItem(e,t[i].name,t[i].value)&&((0,a.isDefined)(t[i].leafIndex)&&n.push(t[i].leafIndex),t[i].children&&this.getResourceTreeLeaves(t[i].children,e,n));return n}},{key:"groupAppointmentsByResources",value:function(t,e){var n=this.createResourcesTree(e),i={};return l.default.each(t,function(t,e){for(var o=this.getResourcesFromItem(e),r=this.getResourceTreeLeaves(n,o),a=0;a<r.length;a++)i[r[a]]||(i[r[a]]=[]),i[r[a]].push(s.default.deepExtendArraySafe({},e,!0))}.bind(this)),i}},{key:"reduceResourcesTree",value:function(t,e,n){n=n?n.children:[];var i=this;return t.forEach((function(t,o){var r=!1,a=t.name,s=t.value,l=t.title,u=t.data,c=i.getDataAccessors(a,"getter");e.forEach((function(t){if(!r){var e=c(t);Array.isArray(e)?e.indexOf(s)>-1&&(n.push({name:a,value:s,title:l,data:u,children:[]}),r=!0):e===s&&(n.push({name:a,value:s,title:l,data:u,children:[]}),r=!0)}})),r&&t.children&&t.children.length&&i.reduceResourcesTree(t.children,e,n[o])})),n}}])&&g(e.prototype,n),m&&g(e,m),t}();e.default=y},function(t,e,n){"use strict";var i=m(n(51)),o=m(n(5)),r=m(n(67)),a=m(n(171)),s=m(n(26)),l=n(4),u=m(n(2)),c=n(16),d=m(c),h=n(0),f=m(n(61)),p=n(7);function m(t){return t&&t.__esModule?t:{default:t}}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function v(t,e,n){return e&&_(t.prototype,e),n&&_(t,n),t}var y=s.default.dateToMilliseconds,b=function(){function t(e){g(this,t),this._filterRegistry=null,this._dataAccessors=e}return v(t,[{key:"isRegistered",value:function(){return!!this._filterRegistry}},{key:"clearRegistry",value:function(){delete this._filterRegistry}},{key:"make",value:function(t,e){this._filterRegistry||(this._filterRegistry={}),this._make(t).apply(this,e)}},{key:"_make",value:function(t){var e=this;switch(t){case"date":return function(t,n,i){var o=i?e._dataAccessors.getter.startDate:e._dataAccessors.expr.startDateExpr,r=i?e._dataAccessors.getter.endDate:e._dataAccessors.expr.endDateExpr,a=e._dataAccessors.expr.recurrenceRuleExpr;e._filterRegistry.date=[[[r,">",t],[o,"<",n]],"or",[a,"startswith","freq"],"or",[[r,t],[o,t]]],a||e._filterRegistry.date.splice(1,2)};case"user":return function(t){e._filterRegistry.user=t}}}},{key:"combine",value:function(){var t=[];return this._filterRegistry.date&&t.push(this._filterRegistry.date),this._filterRegistry.user&&t.push(this._filterRegistry.user),t}},{key:"dateFilter",value:function(){return this._filterRegistry.date}}]),t}(),w=function(){function t(e,n,i){g(this,t),this.setDataAccessors(n),this.setDataSource(e),this._updatedAppointmentKeys=[],this._filterMaker=new b(n),this._baseAppointmentDuration=i}return v(t,[{key:"_createFilter",value:function(t,e,n,i){this._filterMaker.make("date",[t,e]);var o=this._excessFiltering()?this._dataSource.filter()[1]:this._dataSource.filter();this._filterMaker.make("user",[o]),n&&this._dataSource.filter(this._combineRemoteFilter(i))}},{key:"_excessFiltering",value:function(){var t=this._filterMaker.dateFilter(),e=this._dataSource.filter();return e&&((0,l.equalByValue)(e,t)||e.length&&(0,l.equalByValue)(e[0],t))}},{key:"_combineFilter",value:function(){return this._filterMaker.combine()}},{key:"_getStoreKey",value:function(t){return this._dataSource.store().keyOf(t)}},{key:"_filterAppointmentByResources",value:function(t,e){var n,i,r,a=this,s=!1,l=function(){var i,s=a._dataAccessors.getter.resources[r];u.default.isFunction(s)&&(i=s(t));for(var l=d.default.wrapToArray(i),h=o.default.map(e[n].items,(function(t){return t.id})),f=0,p=l.length;f<p;f++)if((0,c.inArray)(l[f],h)>-1)return!0;return!1};for(n=0,i=e.length;n<i;n++)if(r=e[n].name,!(s=l.call(this)))return!1;return s}},{key:"_filterAppointmentByRRule",value:function(t,e,n,i,o,r){var s=t.recurrenceRule,l=t.recurrenceException,u=t.allDay,c=!0,d=t.startDate,h=t.endDate;if(u||this._appointmentPartInInterval(d,h,i,o)){var f=this._trimDates(e,n);e=f.min,n=new Date(f.max.getTime()-y("minute"))}return s&&!a.default.getRecurrenceRule(s).isValid&&(c=h>e&&d<=n),c&&a.default.getRecurrenceRule(s).isValid&&(c=a.default.dateInRecurrenceRange({rule:s,exception:l,start:d,end:h,min:e,max:n,firstDayOfWeek:r})),c}},{key:"_appointmentPartInInterval",value:function(t,e,n,i){var o=t.getHours(),r=e.getHours();return o<=n&&r<=i&&r>=n||r>=i&&o<=i&&o>=n}},{key:"_createCombinedFilter",value:function(t,e){var n=this._dataAccessors,i=t.startDayHour,o=t.endDayHour,r=new Date(t.min),a=new Date(t.max),l=t.resources,c=t.firstDayOfWeek,d=t.recurrenceException,h=this;return[[function(f){var p,m=!0,g=new Date(n.getter.startDate(f)),_=new Date(n.getter.endDate(f)),v=h.appointmentTakesAllDay(f,i,o),b=h.appointmentTakesSeveralDays(f),w=n.getter.allDay(f),x=b||v,C=u.default.isDefined(n.getter.recurrenceRule);C&&(p=n.getter.recurrenceRule(f)),l&&l.length&&(m=h._filterAppointmentByResources(f,l)),v&&!1===t.allDay&&(m=!1);var S=n.getter.startDateTimeZone(f),k=n.getter.endDateTimeZone(f),I=e(g,S),T=e(_,k);if(m&&C){var E=d?d(f):n.getter.recurrenceException(f);m=h._filterAppointmentByRRule({startDate:I,endDate:T,recurrenceRule:p,recurrenceException:E,allDay:v},r,a,i,o,c)}return m&&T<r&&x&&!w&&(!C||C&&!p)&&(m=!1),m&&void 0!==i&&(m=function(t,e,n,i,o){var r=s.default.dateTimeFromDecimal(n);return t.getHours()>=r.hours&&t.getMinutes()>=r.minutes||e.getHours()===r.hours&&e.getMinutes()>r.minutes||e.getHours()>r.hours||o||i}(I,T,i,v,b)),m&&void 0!==o&&(m=function(t,e,n,i,o,r,a,l){var u,c=(24-i+n)*y("hour"),d=e.getTime()-t.getTime(),h=(c-d)/y("hour"),f=t.getHours(),p=t.getMinutes(),m=s.default.dateTimeFromDecimal(i),g=s.default.dateTimeFromDecimal(n);return u=f<m.hours||f===m.hours&&p<m.minutes||o&&t<=a||r&&t<a&&e>l&&(f<m.hours||60*e.getHours()+e.getMinutes()>60*g.hours),d<c&&f>m.hours&&p>m.minutes&&h<=f-i&&(u=!1),u}(I,T,i,o,v,b,a,r)),m&&C&&!p&&T<r&&!w&&(m=!1),m}]]}},{key:"setDataSource",value:function(t){this._dataSource=t,this.cleanModelState(),this._initStoreChangeHandlers(),this._filterMaker&&this._filterMaker.clearRegistry()}},{key:"_initStoreChangeHandlers",value:function(){var t=this,e=this._dataSource,n=null===e||void 0===e?void 0:e.store();n&&(n.on("updating",(function(e){t._updatedAppointment=e})),n.on("push",(function(i){var o=e.items(),r=n.key();i.forEach((function(e){0!==o.filter((function(t){return t[r]===e.key})).length?t._updatedAppointmentKeys.push({key:r,value:e.key}):o.push(e.data)}))})))}},{key:"getUpdatedAppointment",value:function(){return this._updatedAppointment}},{key:"getUpdatedAppointmentKeys",value:function(){return this._updatedAppointmentKeys}},{key:"cleanModelState",value:function(){this._updatedAppointment=null,this._updatedAppointmentKeys=[]}},{key:"setDataAccessors",value:function(t){this._dataAccessors=t,this._filterMaker=new b(t)}},{key:"filterByDate",value:function(t,e,n,i){if(this._dataSource){var o=this._trimDates(t,e);if(this._filterMaker.isRegistered()){if(this._filterMaker.make("date",[o.min,o.max]),this._dataSource.filter()&&this._dataSource.filter().length>1){var r=this._serializeRemoteFilter([this._dataSource.filter()[1]],i);this._filterMaker.make("user",r)}n&&this._dataSource.filter(this._combineRemoteFilter(i))}else this._createFilter(o.min,o.max,n,i)}}},{key:"_combineRemoteFilter",value:function(t){var e=this._filterMaker.combine();return this._serializeRemoteFilter(e,t)}},{key:"_serializeRemoteFilter",value:function(t,e){if(!Array.isArray(t))return t;t=(0,h.extend)([],t);var n=this._dataAccessors.expr.startDateExpr,o=this._dataAccessors.expr.endDateExpr;u.default.isString(t[0])&&(0,i.default)().forceIsoDateParsing&&t.length>1&&(t[0]!==n&&t[0]!==o||(t[t.length-1]=r.default.serializeDate(new Date(t[t.length-1]),e)));for(var a=0;a<t.length;a++)t[a]=this._serializeRemoteFilter(t[a],e);return t}},{key:"filterLoadedAppointments",value:function(t,e){u.default.isFunction(e)||(e=function(t){return t});var n=this._createCombinedFilter(t,e);if(this._filterMaker.isRegistered()){this._filterMaker.make("user",void 0);var i=this._trimDates(t.min,t.max);this._filterMaker.make("date",[i.min,i.max,!0]);var o=this.customizeDateFilter(this._filterMaker.combine(),e);n.push([o])}return(0,f.default)(this._dataSource.items()).filter(n).toArray()}},{key:"_trimDates",value:function(t,e){var n=s.default.trimTime(new Date(t)),i=s.default.trimTime(new Date(e));return i.setDate(i.getDate()+1),{min:n,max:i}}},{key:"hasAllDayAppointments",value:function(t,e,n){if(!t)return!1;var i=this,r=!1;return o.default.each(t,(function(t,o){if(i.appointmentTakesAllDay(o,e,n))return r=!0,!1})),r}},{key:"appointmentTakesAllDay",value:function(t,e,n){var i=this._dataAccessors,o=i.getter.startDate(t),r=i.getter.endDate(t);return i.getter.allDay(t)||this._appointmentHasAllDayDuration(o,r,e,n)}},{key:"_appointmentHasAllDayDuration",value:function(t,e,n,i){t=new Date(t),e=new Date(e);return this._getAppointmentDurationInHours(t,e)>=24||this._appointmentHasShortDayDuration(t,e,n,i)}},{key:"_appointmentHasShortDayDuration",value:function(t,e,n,i){return this._getAppointmentDurationInHours(t,e)>=i-n&&t.getHours()===n&&e.getHours()===i}},{key:"_getAppointmentDurationInHours",value:function(t,e){return(e.getTime()-t.getTime())/y("hour")}},{key:"appointmentTakesSeveralDays",value:function(t){var e=this._dataAccessors,n=new Date(e.getter.startDate(t)),i=new Date(e.getter.endDate(t));return!s.default.sameDate(n,i)}},{key:"customizeDateFilter",value:function(t,e){var n=this,i=(0,h.extend)(!0,[],t);return function(t){var o=new Date(n._dataAccessors.getter.startDate(t)),r=new Date(n._dataAccessors.getter.endDate(t));r=n.fixWrongEndDate(t,o,r),t=(0,h.extend)(!0,{},t);var a=n._dataAccessors.getter.startDateTimeZone(t),s=n._dataAccessors.getter.endDateTimeZone(t),l=e(o,a),u=e(r,s);return n._dataAccessors.setter.startDate(t,l),n._dataAccessors.setter.endDate(t,u),(0,f.default)([t]).filter(i).toArray().length>0}.bind(this)}},{key:"fixWrongEndDate",value:function(t,e,n){if(this._isEndDateWrong(e,n)){var i=this._dataAccessors.getter.allDay(t);n=this._calculateAppointmentEndDate(i,e),this._dataAccessors.setter.endDate(t,n)}return n}},{key:"_calculateAppointmentEndDate",value:function(t,e){return t?s.default.setToDayEnd(new Date(e)):new Date(e.getTime()+this._baseAppointmentDuration*y("minute"))}},{key:"_isEndDateWrong",value:function(t,e){return!e||isNaN(e.getTime())||t.getTime()>e.getTime()}},{key:"add",value:function(t,e){var n=this;return this._dataSource.store().insert(t).done(function(){n._dataSource.load()}.bind(this))}},{key:"update",value:function(t,e){var n=this,i=this._getStoreKey(t),o=new p.Deferred;return this._dataSource.store().update(i,e).done((function(){n._dataSource.load().done(o.resolve).fail(o.reject)})).fail(o.reject),o.promise()}},{key:"remove",value:function(t){var e=this,n=this._getStoreKey(t);return this._dataSource.store().remove(n).done(function(){e._dataSource.load()}.bind(this))}}]),t}();t.exports=w},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=E(n(3)),r=E(n(15)),a=E(n(6)),s=E(n(57)),l=E(n(33)),u=E(n(26)),c=E(n(4)),d=E(n(2)),h=n(5),f=E(n(54)),p=E(n(16)),m=n(0),g=n(17),_=E(n(171)),v=E(n(8)),y=E(n(145)),b=E(n(1075)),w=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=T();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),x=E(n(199)),C=E(n(12)),S=E(n(69)),k=n(7),I=E(n(172));function T(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return T=function(){return t},t}function E(t){return t&&t.__esModule?t:{default:t}}var O=w.addNamespace(x.default.name,"dxSchedulerAppointment"),M=u.default.dateToMilliseconds,P=S.default.inherit({ctor:function(t,e){this.callBase(t,e)},_supportedKeys:function(){var t=this.callBase();return(0,m.extend)(t,{escape:function(){this.moveAppointmentBack(),this._escPressed=!0}.bind(this),del:function(t){if(this.option("allowDelete")){t.preventDefault();var e=this._getItemData(t.target);this.notifyObserver("deleteAppointment",{data:e,target:t.target}),this.notifyObserver("hideAppointmentTooltip")}}.bind(this),tab:function(t){var e=this._getAccessAppointments(),n=e.filter(".dx-state-focused").data("dxAppointmentSettings").sortedIndex,i=e.length-1;if(n>0&&t.shiftKey||n<i&&!t.shiftKey){t.preventDefault(),t.shiftKey?n--:n++;var o=this._getAppointmentByIndex(n);this._resetTabIndex(o),a.default.trigger(o,"focus")}}})},_getAppointmentByIndex:function(t){return this._getAccessAppointments().filter((function(e,n){return s.default.data(n,"dxAppointmentSettings").sortedIndex===t})).eq(0)},_getAccessAppointments:function(){return this._itemElements().filter(":visible").not(".dx-state-disabled")},_resetTabIndex:function(t){this._focusTarget().attr("tabIndex",-1),t.attr("tabIndex",this.option("tabIndex"))},_moveFocus:c.default.noop,_focusTarget:function(){return this._itemElements()},_renderFocusTarget:function(){var t=this._getAppointmentByIndex(0);this._resetTabIndex(t)},_focusInHandler:function(t){this.callBase.apply(this,arguments),this._$currentAppointment=(0,o.default)(t.target),this.option("focusedElement",(0,g.getPublicElement)((0,o.default)(t.target)))},_focusOutHandler:function(){var t=this._getAppointmentByIndex(0);this.option("focusedElement",(0,g.getPublicElement)(t)),this.callBase.apply(this,arguments)},_eventBindingTarget:function(){return this._itemContainer()},_getDefaultOptions:function(){return(0,m.extend)(this.callBase(),{noDataText:null,activeStateEnabled:!0,hoverStateEnabled:!0,tabIndex:0,fixedContainer:null,allDayContainer:null,allowDrag:!0,allowResize:!0,allowAllDayResize:!0,onAppointmentDblClick:null,_collectorOffset:0})},_optionChanged:function(t){switch(t.name){case"items":this._cleanFocusState(),this._clearDropDownItems(),this._clearDropDownItemsElements(),this._repaintAppointments(t.value),this._renderDropDownAppointments(),this._attachAppointmentsEvents();break;case"fixedContainer":case"allDayContainer":case"onAppointmentDblClick":break;case"allowDrag":case"allowResize":case"allowAllDayResize":this._invalidate();break;case"focusedElement":this._resetTabIndex((0,o.default)(t.value)),this.callBase(t);break;case"allowDelete":break;case"focusStateEnabled":this._clearDropDownItemsElements(),this._renderDropDownAppointments(),this.callBase(t);break;default:this.callBase(t)}},_isAllDayAppointment:function(t){return t.settings.length&&t.settings[0].allDay||!1},_isRepaintAppointment:function(t){return!d.default.isDefined(t.needRepaint)||!0===t.needRepaint},_isRepaintAll:function(t){if(this.invoke("isCurrentViewAgenda"))return!0;for(var e=0;e<t.length;e++){var n=t[e];if(!this._isRepaintAppointment(n))return!1}return!0},_applyFragment:function(t,e){t.children().length>0&&this._getAppointmentContainer(e).append(t)},_onEachAppointment:function(t,e,n,i){t&&!0===t.needRemove?this._clearItem(t):this._isRepaintAppointment(t)&&(t.needRepaint=!1,!i&&this._clearItem(t),this._renderItem(e,t,n))},_repaintAppointments:function(t){var e=this,n=this._isRepaintAll(t),i=(0,o.default)(this._getAppointmentContainer(!0)),r=(0,o.default)(this._getAppointmentContainer(!1));n&&(this._getAppointmentContainer(!0).html(""),this._getAppointmentContainer(!1).html("")),!t.length&&this._cleanItemContainer(),t.forEach((function(t,o){var a=e._isAllDayAppointment(t)?i:r;e._onEachAppointment(t,o,a,n)})),this._applyFragment(i,!0),this._applyFragment(r,!1)},_attachAppointmentsEvents:function(){this._attachClickEvent(),this._attachHoldEvent(),this._attachContextMenuEvent(),this._attachAppointmentDblClick(),this._renderFocusState(),this._attachFeedbackEvents(),this._attachHoverEvents()},_clearItem:function(t){var e=this._findItemElementByItem(t.itemData);e.length&&(0,h.each)(e,(function(t,e){e.detach(),e.remove()}))},_clearDropDownItems:function(){this._virtualAppointments={}},_clearDropDownItemsElements:function(){this.invoke("clearCompactAppointments")},_findItemElementByItem:function(t){var e=[],n=this;return this.itemElements().each((function(){var i=(0,o.default)(this);i.data(n._itemDataKey())===t&&e.push(i)})),e},_itemClass:function(){return"dx-scheduler-appointment"},_itemContainer:function(){var t=this.callBase(),e=t,n=this.option("allDayContainer");return n&&(e=t.add(n)),e},_cleanItemContainer:function(){this.callBase();var t=this.option("allDayContainer");t&&t.empty(),this._virtualAppointments={}},_clean:function(){this.callBase(),delete this._$currentAppointment,delete this._initialSize,delete this._initialCoordinates},_init:function(){this.callBase(),this.$element().addClass("dx-scheduler-scrollable-appointments"),this._preventSingleAppointmentClick=!1},_renderAppointmentTemplate:function(t,e,n){var i=this.invoke("getTextAndFormatDate",n.appointmentData,n.appointmentData.settings||n.targetedAppointmentData||{},"TIME");(0,o.default)("<div>").text(i.text).addClass("dx-scheduler-appointment-title").appendTo(t),d.default.isPlainObject(e)&&e.html&&t.html(e.html);var r=(0,o.default)("<div>").addClass("dx-scheduler-appointment-content-details");(0,o.default)("<div>").addClass("dx-scheduler-appointment-content-date").text(i.formatDate).appendTo(r),r.appendTo(t),e.recurrenceRule&&(0,o.default)("<span>").addClass("dx-scheduler-appointment-recurrence-icon dx-icon-repeat").appendTo(t),e.allDay&&(0,o.default)("<div>").text(" "+C.default.format("dxScheduler-allDay")+": ").addClass("dx-scheduler-appointment-content-allday").prependTo(r)},_executeItemRenderAction:function(t,e,n){var i=this._getItemRenderAction();i&&i(this.invoke("mapAppointmentFields",{itemData:e,itemElement:n})),delete this._currentAppointmentSettings},_itemClickHandler:function(t){this.callBase(t,{},{afterExecute:function(t){this._processItemClick(t.args[0].event)}.bind(this)})},_processItemClick:function(t){var e=(0,o.default)(t.currentTarget),n=this._getItemData(e);"keydown"===t.type||w.isFakeClickEvent(t)?this.notifyObserver("showEditAppointmentPopup",{data:n,target:e}):this._appointmentClickTimeout=setTimeout(function(){!this._preventSingleAppointmentClick&&r.default.getBody().contains(e[0])&&this.notifyObserver("showAppointmentTooltip",{data:n,target:e}),this._preventSingleAppointmentClick=!1}.bind(this),300)},_extendActionArgs:function(){var t=this.callBase.apply(this,arguments);return this.invoke("mapAppointmentFields",t)},_render:function(){this.callBase.apply(this,arguments),this._attachAppointmentDblClick()},_attachAppointmentDblClick:function(){var t=this,e=t._itemSelector(),n=this._itemContainer();a.default.off(n,O,e),a.default.on(n,O,e,(function(e){t._itemDXEventHandler(e,"onAppointmentDblClick",{},{afterExecute:function(e){t._dblClickHandler(e.args[0].event)}})}))},_dblClickHandler:function(t){var e=(0,o.default)(t.currentTarget),n=this._getItemData(e);clearTimeout(this._appointmentClickTimeout),this._preventSingleAppointmentClick=!0,this.notifyObserver("showEditAppointmentPopup",{data:n,target:e})},_renderItem:function(t,e,n){for(var i=e.itemData,o=0;o<e.settings.length;o++){var r=e.settings[o];this._currentAppointmentSettings=r,this.callBase(t,i,n).data("dxAppointmentSettings",r)}},_getItemContent:function(t){return t.data("dxAppointmentSettings",this._currentAppointmentSettings),this.callBase(t)},_createItemByTemplate:function(t,e){var n=e.itemData,i=e.container,r=e.index;return t.render({model:{appointmentData:n,targetedAppointmentData:this.invoke("getTargetedAppointmentData",n,(0,o.default)(i).parent())},container:i,index:r})},_getAppointmentContainer:function(t){var e=this.option("allDayContainer"),n=this.itemsContainer().not(e);return t&&e&&(n=e),n},_postprocessRenderItem:function(t){this._renderAppointment(t.itemElement,this._currentAppointmentSettings)},_renderAppointment:function(t,e){t.data("dxAppointmentSettings",e),this._applyResourceDataAttr(t);var n=this._getItemData(t),i=this.invoke("getAppointmentGeometry",e),o=this.option("allowResize")&&(!d.default.isDefined(e.skipResizing)||d.default.isString(e.skipResizing)),r=this.option("allowDrag"),a=e.allDay;this.invoke("setCellDataCacheAlias",this._currentAppointmentSettings,i);var s=this._getAppointmentColor(t,e.groupIndex);e.virtual?this._processVirtualAppointment(e,t,n,s):(this._createComponent(t,b.default,{observer:this.option("observer"),data:n,geometry:i,direction:e.direction||"vertical",allowResize:o,allowDrag:r,allDay:a,reduced:e.appointmentReduced,isCompact:e.isCompact,startDate:new Date(e.startDate),cellWidth:this.invoke("getCellWidth"),cellHeight:this.invoke("getCellHeight"),resizableConfig:this._resizableConfig(n,e)}),s.done((function(e){e&&t.css("backgroundColor",e)})))},_applyResourceDataAttr:function(t){var e=this.invoke("getResourcesFromItem",this._getItemData(t));e&&(0,h.each)(e,(function(e,n){for(var i="data-"+c.default.normalizeKey(e.toLowerCase())+"-",o=0;o<n.length;o++)t.attr(i+c.default.normalizeKey(n[o]),!0)}))},_resizableConfig:function(t,e){return{area:this._calculateResizableArea(e,t),onResizeStart:function(t){if(this._$currentAppointment=(0,o.default)(t.element),this.invoke("needRecalculateResizableArea")){var e=this._calculateResizableArea(this._$currentAppointment.data("dxAppointmentSettings"),this._$currentAppointment.data("dxItemData"));t.component.option("area",e),t.component._renderDragOffsets(t.event)}this._initialSize={width:t.width,height:t.height},this._initialCoordinates=l.default.locate(this._$currentAppointment)}.bind(this),onResizeEnd:function(t){this._escPressed?t.event.cancel=!0:this._resizeEndHandler(t)}.bind(this)}},_calculateResizableArea:function(t,e){var n=this.$element().closest(".dx-scrollable-content");return this.invoke("getResizableAppointmentArea",{coordinates:{left:t.left,top:0,groupIndex:t.groupIndex},allDay:t.allDay})||n},_resizeEndHandler:function(t){var e=(0,o.default)(t.element),n=this._getItemData(e),i=this.invoke("getStartDate",n,!0),r=this.invoke("getEndDate",n,!0),a=this._getDateRange(t,i,r),s={};this.invoke("setField","startDate",s,new Date(a[0])),this.invoke("setField","endDate",s,new Date(a[1]));var l=(0,m.extend)({},n,s);this.notifyObserver("updateAppointmentAfterResize",{target:n,data:l,$appointment:e})},_getDateRange:function(t,e,n){var i,o,r=this._getItemData(t.element),a=this.invoke("getDeltaTime",t,this._initialSize,r),s=this.invoke("getRenderingStrategyDirection"),l=this.invoke("isAllDay",r),u=this.invoke("needCorrectAppointmentDates")&&!l;return("vertical"!==s||l?this.option("rtlEnabled")?t.handles.right:t.handles.left:t.handles.top)?(i=u?this._correctStartDateByDelta(e,a):e.getTime()-a,i+=I.default.getTimezoneOffsetChangeInMs(e,n,i,n),o=n.getTime()):(i=e.getTime(),o=u?this._correctEndDateByDelta(n,a):n.getTime()+a,o-=I.default.getTimezoneOffsetChangeInMs(e,n,e,o)),[i,o]},_correctEndDateByDelta:function(t,e){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=t.getTime()+e,r=(n-i)*M("hour"),a=e>0?Math.ceil(e/r):Math.floor(e/r),s=new Date(t),l=new Date(t);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o>s.getTime()||o<=l.getTime()){var u=e-(s.getTime()-t.getTime()),c=new Date(t.setDate(t.getDate()+a));c.setHours(i,0,0,0),o=c.getTime()+u-r*(a-1)}return o},_correctStartDateByDelta:function(t,e){var n=this.invoke("getEndDayHour"),i=this.invoke("getStartDayHour"),o=t.getTime()-e,r=(n-i)*M("hour"),a=e>0?Math.ceil(e/r):Math.floor(e/r),s=new Date(t),l=new Date(t);if(l.setHours(i,0,0,0),s.setHours(n,0,0,0),o<l.getTime()||o>=s.getTime()){var u=e-(t.getTime()-l.getTime()),c=new Date(t.setDate(t.getDate()-a));c.setHours(n,0,0,0),o=c.getTime()-u+r*(a-1)}return o},_tryGetAppointmentColor:function(t){var e=(0,o.default)(t).data("dxAppointmentSettings");if(e)return this._getAppointmentColor(t,e.groupIndex)},_getAppointmentColor:function(t,e){var n=new k.Deferred;return this.invoke("getAppointmentColor",{itemData:this._getItemData(t),groupIndex:e}).done((function(t){return n.resolve(t)})),n.promise()},_calculateBoundOffset:function(){return this.invoke("getBoundOffset")},_virtualAppointments:{},_processVirtualAppointment:function(t,e,n,i){var o=t.virtual,r=o.index;d.default.isDefined(this._virtualAppointments[r])||(this._virtualAppointments[r]={coordinates:{top:o.top,left:o.left},items:{data:[],colors:[],settings:[]},isAllDay:!!o.isAllDay,buttonColor:i}),t.targetedAppointmentData=this.invoke("getTargetedAppointmentData",n,e),this._virtualAppointments[r].items.settings.push(t),this._virtualAppointments[r].items.data.push(n),this._virtualAppointments[r].items.colors.push(i),e.remove()},_renderContentImpl:function(){this.callBase(),this._renderDropDownAppointments()},_renderDropDownAppointments:function(){(0,h.each)(this._virtualAppointments,function(t){var e=this._virtualAppointments[t],n=e.items,i=e.coordinates,o=e.isAllDay?this.option("allDayContainer"):this.$element(),r=i.left,a=this.invoke("getDropDownAppointmentWidth",e.isAllDay),s=this.invoke("getDropDownAppointmentHeight"),l=this.option("rtlEnabled")?a:0;this.notifyObserver("renderCompactAppointments",{$container:o,coordinates:{top:i.top,left:r+l},items:n,buttonColor:e.buttonColor,width:a-this.option("_collectorOffset"),height:s,onAppointmentClick:this.option("onItemClick"),allowDrag:this.option("allowDrag"),cellWidth:this.invoke("getCellWidth"),isCompact:this.invoke("isAdaptive")||this._isGroupCompact(e),applyOffset:!e.isAllDay&&this.invoke("isApplyCompactAppointmentOffset")})}.bind(this))},_isGroupCompact:function(t){return!t.isAllDay&&this.invoke("supportCompactDropDownAppointments")},_sortAppointmentsByStartDate:function(t){t.sort(function(t,e){var n=0,i=new Date(this.invoke("getField","startDate",t.settings||t)).getTime(),o=new Date(this.invoke("getField","startDate",e.settings||e)).getTime();return i<o&&(n=-1),i>o&&(n=1),n}.bind(this))},_processRecurrenceAppointment:function(t,e,n){var i=this.invoke("getField","recurrenceRule",t),o={parts:[],indexes:[]};if(i){for(var r=t.settings||t,a=new Date(this.invoke("getField","startDate",r)),s=new Date(this.invoke("getField","endDate",r)),l=s.getTime()-a.getTime(),u=this.invoke("getField","recurrenceException",t),c=this.invoke("getStartViewDate"),d=this.invoke("getEndViewDate"),h=_.default.getDatesByRecurrence({rule:i,exception:u,start:a,end:s,min:c,max:d}),f=t.settings?1:h.length,p=0;p<f;p++){var g=(0,m.extend)({},t,!0);if(h[p]){var v=this._applyStartDateToObj(h[p],{});this._applyEndDateToObj(new Date(h[p].getTime()+l),v),g.settings=v}else g.settings=r;o.parts.push(g),n||this._processLongAppointment(g,o)}o.indexes.push(e)}return o},_processLongAppointment:function(t,e){var n=this.splitAppointmentByDay(t),i=n.length,o=this.invoke("getEndViewDate").getTime(),r=this.invoke("getStartViewDate").getTime(),a=this.invoke("getField","startDateTimeZone",t);if(e=e||{parts:[]},i>1){(0,m.extend)(t,n[0]);for(var s=1;s<i;s++){var l=this.invoke("getField","startDate",n[s].settings).getTime();(l=this.invoke("convertDateByTimezone",l,a))<o&&l>r&&e.parts.push(n[s])}}return e},_reduceRecurrenceAppointments:function(t,e){(0,h.each)(t,(function(t,n){e.splice(n-t,1)}))},_combineAppointments:function(t,e){e.length&&p.default.merge(t,e),this._sortAppointmentsByStartDate(t)},_applyStartDateToObj:function(t,e){return this.invoke("setField","startDate",e,t),e},_applyEndDateToObj:function(t,e){return this.invoke("setField","endDate",e,t),e},moveAppointmentBack:function(t){var e=this._$currentAppointment,n=this._initialSize,i=this._initialCoordinates;t&&(d.default.isDeferred(t.cancel)?t.cancel.resolve(!0):t.cancel=!0),this.notifyObserver("moveBack"),e&&!t&&(i&&(l.default.move(e,i),delete this._initialSize),n&&(e.outerWidth(n.width),e.outerHeight(n.height),delete this._initialCoordinates))},focus:function(){if(this._$currentAppointment){var t=(0,g.getPublicElement)(this._$currentAppointment);this.option("focusedElement",t),a.default.trigger(t,"focus")}},splitAppointmentByDay:function(t){var e=t.settings||t,n=new Date(this.invoke("getField","startDate",e)),i=u.default.makeDate(n),o=u.default.makeDate(this.invoke("getField","endDate",e)),r=this.invoke("getField","startDateTimeZone",t),a=this.invoke("getField","endDateTimeZone",t),s=this.invoke("getEndViewDate"),l=this.invoke("getStartDayHour"),c=this.invoke("getEndDayHour"),d=this.invoke("appointmentTakesSeveralDays",t),h=[];for(i=this.invoke("convertDateByTimezone",i,r),o=this.invoke("convertDateByTimezone",o,a),i.getHours()<=c&&i.getHours()>=l&&!d&&(h.push(this._applyStartDateToObj(new Date(i),{appointmentData:t})),i.setDate(i.getDate()+1));d&&i.getTime()<o.getTime()-1&&i<s;){var p=new Date(i),m=new Date(i);this._checkStartDate(p,n,l),this._checkEndDate(m,o,c);var g=f.default.deepExtendArraySafe({},t,!0),_={};this._applyStartDateToObj(p,_),this._applyEndDateToObj(m,_),g.settings=_,h.push(g),i.setDate(i.getDate()+1),i.setHours(l)}return h},_checkStartDate:function(t,e,n){!u.default.sameDate(t,e)||t.getHours()<=n?t.setHours(n,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())},_checkEndDate:function(t,e,n){!u.default.sameDate(t,e)||t.getHours()>n?t.setHours(n,0,0,0):t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}}).include(y.default);(0,v.default)("dxSchedulerAppointments",P),t.exports=P},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=b(n(3)),r=b(n(6)),a=b(n(33)),s=b(n(171)),l=n(0),u=b(n(8)),c=b(n(295)),d=b(n(145)),h=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=y();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),f=b(n(28)),p=b(n(97)),m=b(n(220)),g=b(n(12)),_=b(n(43)),v=n(202);function y(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return y=function(){return t},t}function b(t){return t&&t.__esModule?t:{default:t}}var w=h.addNamespace(f.default.enter,"dxSchedulerAppointment"),x=h.addNamespace(f.default.leave,"dxSchedulerAppointment"),C=p.default.inherit({_getDefaultOptions:function(){return(0,l.extend)(this.callBase(),{data:{},geometry:{top:0,left:0,width:0,height:0},allowDrag:!0,allowResize:!0,reduced:null,isCompact:!1,direction:"vertical",resizableConfig:{},cellHeight:0,cellWidth:0})},_optionChanged:function(t){switch(t.name){case"data":case"geometry":case"allowDrag":case"allowResize":case"reduced":case"sortedIndex":case"isCompact":case"direction":case"resizableConfig":case"cellHeight":case"cellWidth":this._invalidate();break;default:this.callBase(t)}},_getHorizontalResizingRule:function(){var t={head:this.option("rtlEnabled")?"right":"left",body:"",tail:this.option("rtlEnabled")?"left":"right"};return{handles:this.option("reduced")?t[this.option("reduced")]:"left right",minHeight:0,minWidth:this.invoke("getCellWidth"),step:this.invoke("getResizableStep")}},_getVerticalResizingRule:function(){var t=this.invoke("getCellHeight");return{handles:"top bottom",minWidth:0,minHeight:t,step:t}},_render:function(){this.callBase(),this._renderAppointmentGeometry(),this._renderEmptyClass(),this._renderReducedAppointment(),this._renderAllDayClass(),this._renderDirection(),this.$element().data("dxAppointmentStartDate",this.option("startDate")),this.$element().attr("title",this.invoke("getField","text",this.option("data"))),this.$element().attr("role","button"),this._renderRecurrenceClass(),this._renderResizable()},_renderAppointmentGeometry:function(){var t=this.option("geometry"),e=this.$element();a.default.move(e,{top:t.top,left:t.left}),e.css({width:t.width<0?0:t.width,height:t.height<0?0:t.height})},_renderEmptyClass:function(){(this.option("geometry").empty||this.option("isCompact"))&&this.$element().addClass(v.EMPTY_APPOINTMENT_CLASS)},_renderReducedAppointment:function(){var t=this.option("reduced");t&&(this.$element().toggleClass(v.REDUCED_APPOINTMENT_CLASS,!0).toggleClass(v.REDUCED_APPOINTMENT_PARTS_CLASSES[t],!0),this._renderAppointmentReducedIcon())},_renderAppointmentReducedIcon:function(){var t=(0,o.default)("<div>").addClass(v.REDUCED_APPOINTMENT_ICON).appendTo(this.$element()),e=this._getEndDate(),n=[g.default.format("dxScheduler-editorLabelEndDate"),": ",_.default.format(e,"monthAndDay"),", ",_.default.format(e,"year")].join("");r.default.off(t,w),r.default.on(t,w,(function(){c.default.show({target:t,content:n})})),r.default.off(t,x),r.default.on(t,x,(function(){c.default.hide()}))},_getEndDate:function(){var t=this.invoke("getField","endDate",this.option("data"));return t?new Date(t):t},_renderAllDayClass:function(){this.$element().toggleClass(v.ALL_DAY_APPOINTMENT_CLASS,!!this.option("allDay"))},_renderRecurrenceClass:function(){var t=this.invoke("getField","recurrenceRule",this.option("data"));s.default.getRecurrenceRule(t).isValid&&this.$element().addClass(v.RECURRENCE_APPOINTMENT_CLASS)},_renderDirection:function(){this.$element().addClass(v.DIRECTION_APPOINTMENT_CLASSES[this.option("direction")])},_createResizingConfig:function(){var t="vertical"===this.option("direction")?this._getVerticalResizingRule():this._getHorizontalResizingRule();return t.roundStepValue=!0,this.invoke("isGroupedByDate")||(t.stepPrecision="strict"),t},_renderResizable:function(){this.option("allowResize")&&this._createComponent(this.$element(),m.default,(0,l.extend)(this._createResizingConfig(),this.option("resizableConfig")))},_useTemplates:function(){return!1}}).include(d.default);(0,u.default)("dxSchedulerAppointment",C),t.exports=C},function(t,e,n){"use strict";var i=n(4),o=u(n(1077)),r=u(n(516)),a=u(n(517)),s=u(n(1079)),l=u(n(1080));function u(t){return t&&t.__esModule?t:{default:t}}function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var d={horizontal:r.default,horizontalMonth:s.default,horizontalMonthLine:a.default,vertical:o.default,agenda:l.default},h=function(){function t(e,n){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.instance=e,n&&this.initRenderingStrategy(n)}var e,n,o;return e=t,(n=[{key:"getCellDimensions",value:function(t){if(this.instance._workSpace)return{width:this.instance._workSpace.getCellWidth(),height:this.instance._workSpace.getCellHeight(),allDayHeight:this.instance._workSpace.getAllDayHeight()}}},{key:"getGroupOrientation",value:function(t){this.instance._workSpace&&t.callback(this.instance._workSpace._getRealGroupOrientation())}},{key:"initRenderingStrategy",value:function(t){var e=d[t];this._renderingStrategyInstance=new e(this.instance),this.renderingStrategy=t}},{key:"createAppointmentsMap",value:function(t){var e=this,n=this.getCellDimensions(),i=n.width,o=n.height,r=n.allDayHeight;return this.instance._cellWidth=i,this.instance._cellHeight=o,this.instance._allDayCellHeight=r,this.getGroupOrientation({callback:function(t){return e.instance._groupOrientation=t}}),this._positionMap=this._renderingStrategyInstance.createTaskPositionMap(t),this._createAppointmentsMapCore(t||[],this._positionMap)}},{key:"_createAppointmentsMapCore",value:function(t,e){var n=this;return t.map((function(t,i){n._renderingStrategyInstance.keepAppointmentSettings()||delete t.settings;var o=e[i];return o.forEach((function(t){t.direction="vertical"!==n.renderingStrategy||t.allDay?"horizontal":"vertical"})),{itemData:t,settings:o,needRepaint:!0,needRemove:!1}}))}},{key:"_isDataChanged",value:function(t){return this.instance.getUpdatedAppointment()===t||this.instance.getUpdatedAppointmentKeys().some((function(e){return t[e.key]===e.value}))}},{key:"_isAppointmentShouldAppear",value:function(t,e){return t.needRepaint&&e.needRemove}},{key:"_isSettingChanged",value:function(t,e){if(t.length!==e.length)return!0;for(var n=0;n<t.length;n++){var o=t[n],r=e[n];if(r&&(r.sortedIndex=o.sortedIndex),!(0,i.equalByValue)(o,r))return!0}return!1}},{key:"_getAssociatedSourceAppointment",value:function(t,e){for(var n=0;n<e.length;n++){var i=e[n];if(i.itemData===t.itemData)return i}return null}},{key:"_getDeletedAppointments",value:function(t,e){for(var n=[],i=0;i<e.length;i++){var o=e[i];this._getAssociatedSourceAppointment(o,t)||(o.needRemove=!0,n.push(o))}return n}},{key:"getRepaintedAppointments",value:function(t,e){var n=this;return 0===e.length||"agenda"===this.renderingStrategy?t:(t.forEach((function(t){var i=n._getAssociatedSourceAppointment(t,e);i&&(t.needRepaint=n._isDataChanged(t.itemData)||n._isSettingChanged(t.settings,i.settings)||n._isAppointmentShouldAppear(t,i))})),t.concat(this._getDeletedAppointments(t,e)))}},{key:"getRenderingStrategyInstance",value:function(){return this._renderingStrategyInstance}}])&&c(e.prototype,n),o&&c(e,o),t}();t.exports=h},function(t,e,n){"use strict";var i=l(n(312)),o=n(0),r=n(2),a=l(n(26)),s=l(n(172));function l(t){return t&&t.__esModule?t:{default:t}}function u(t){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function h(t,e,n){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=g(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==u(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=a.default.dateToMilliseconds,v=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(u,t);var e,n,i,l=p(u);function u(){return c(this,u),l.apply(this,arguments)}return e=u,(n=[{key:"getDeltaTime",value:function(t,e,n){var i=0;if(this.isAllDay(n))i=this._getDeltaWidth(t,e)*_("day");else{var o=t.height-e.height;i=_("minute")*Math.round(o/this.getDefaultCellHeight()*this.instance.getAppointmentDurationInMinutes())}return i}},{key:"_correctCollectorCoordinatesInAdaptive",value:function(t,e){if(e)h(g(u.prototype),"_correctCollectorCoordinatesInAdaptive",this).call(this,t,e);else if(0===this._getMaxAppointmentCountPerCellByType()){var n=this.getDefaultCellHeight(),i=this.getDefaultCellWidth();t.top+=(n-this.getDropDownButtonAdaptiveSize())/2,t.left+=(i-this.getDropDownButtonAdaptiveSize())/2}}},{key:"getAppointmentGeometry",value:function(t){var e=null;return e=t.allDay?this._getAllDayAppointmentGeometry(t):this._isAdaptive()&&t.isCompact?this._getAdaptiveGeometry(t):this._getVerticalAppointmentGeometry(t),h(g(u.prototype),"getAppointmentGeometry",this).call(this,e)}},{key:"_getAdaptiveGeometry",value:function(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset)}},{key:"_getItemPosition",value:function(t){var e=this.isAllDay(t),n=!!this.instance.fire("getField","recurrenceRule",t),i=this.startDate(t,!0),r=this.endDate(t),l=!s.default.isSameAppointmentDates(i,r);if(e)return h(g(u.prototype),"_getItemPosition",this).call(this,t);for(var c=this._getAppointmentCoordinates(t),d=[],f=0;f<c.length;f++){var p=this.calculateAppointmentHeight(t,c[f],n),m=this.calculateAppointmentWidth(t,c[f],n),_=p,v=null,y=[],b=c[f].vMax;(this._isMultiDayAppointment(c[f],p)||l&&!n)&&(a.default.sameDate(i,c[f].startDate)||n?(v="head",_=this._reduceMultiDayAppointment(p,{top:c[f].top,bottom:b}),y=this._getAppointmentParts({sourceAppointmentHeight:p,reducedHeight:_,width:m},c[f])):v="tail"),(0,o.extend)(c[f],{height:_,width:m,allDay:e,originalAppointmentStartDate:i,originalAppointmentEndDate:r,endDate:this.endDate(t,c[f],n),appointmentReduced:v}),d=this._getAppointmentPartsPosition(y,c[f],d)}return d}},{key:"_isMultiDayAppointment",value:function(t,e){return e>t.vMax-t.top}},{key:"_reduceMultiDayAppointment",value:function(t,e){return e.bottom-Math.floor(e.top)}},{key:"_getAppointmentParts",value:function(t,e){var n=t.sourceAppointmentHeight-t.reducedHeight,i=t.width,r=[],a=this.instance.fire("getGroupTop",e.groupIndex),s=this.instance.fire("isGroupedByDate")?this.getDefaultCellWidth()*this.instance.fire("getGroupCount"):this.getDefaultCellWidth(),l=e.left+s;if(n){var u=this.getAppointmentMinSize();n<u&&(n=u),a+=this.instance.fire("getOffsetByAllDayPanel",e.groupIndex),r.push((0,o.extend)(!0,{},e,{top:a,left:l,height:n,width:i,appointmentReduced:"tail",rowIndex:++e.rowIndex}))}return r}},{key:"_getMinuteHeight",value:function(){return this.getDefaultCellHeight()/this.instance.getAppointmentDurationInMinutes()}},{key:"_getCompactLeftCoordinate",value:function(t,e){return t+(1+(this.getDefaultCellWidth()||this.getAppointmentMinSize()))*e}},{key:"_getVerticalAppointmentGeometry",value:function(t){var e=this._calculateVerticalGeometryConfig(t);return this._customizeVerticalCoordinates(t,e.width,e.appointmentCountPerCell,e.offset)}},{key:"_customizeVerticalCoordinates",value:function(t,e,n,i,o){var r=Math.max(e/n,e/t.count),a=t.height,s=t.left+t.index*r,l=t.top;return t.isCompact&&this._markAppointmentAsVirtual(t,o),{height:a,width:r,top:l,left:s,empty:this._isAppointmentEmpty(a,e)}}},{key:"_calculateVerticalGeometryConfig",value:function(t){var e=this.instance.fire("getMaxAppointmentsPerCell"),n=this._getOffsets(),i=this._getAppointmentDefaultOffset(),o=this._getAppointmentCount(e,t),a=this._getDefaultRatio(t,o),s=this._getMaxWidth();o||(o=t.count,a=(s-n.unlimited)/s);var l=(1-a)*s;return("auto"===e||(0,r.isNumeric)(e))&&(a=1,s-=i,l=0),{width:a*s,appointmentCountPerCell:o,offset:l}}},{key:"_getMaxWidth",value:function(){return this.getDefaultCellWidth()||this.invoke("getCellWidth")}},{key:"isAllDay",value:function(t){return!!this.instance.fire("getField","allDay",t)||this.instance.appointmentTakesAllDay(t)}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()-this._getAppointmentDefaultOffset()}},{key:"calculateAppointmentWidth",value:function(t,e,n){if(!this.isAllDay(t))return 0;var i=new Date(this.startDate(t,!1,e)),o=this.endDate(t,e,n),r=this.getDefaultCellWidth()||this.getAppointmentMinSize();i=a.default.trimTime(i);var s=(o.getTime()-i.getTime())/_("hour"),l=Math.ceil(s/24)*r;return l=this.cropAppointmentWidth(l,r)}},{key:"calculateAppointmentHeight",value:function(t,e,n){var i=this.endDate(t,e,n),o=this.startDate(t,!1,e),r=this.instance.fire("getField","allDay",t);if(this.isAllDay(t))return 0;var a=this._getAppointmentDurationInMs(o,i,r);return this._adjustDurationByDaylightDiff(a,o,i)/_("minute")*this._getMinuteHeight()}},{key:"getDirection",value:function(){return"vertical"}},{key:"_sortCondition",value:function(t,e){var n=t.allDay-e.allDay,i=t.allDay&&e.allDay,o="vertical"===this.instance._groupOrientation&&i?this._columnCondition(t,e):this._rowCondition(t,e);return n||o}},{key:"hasAllDayAppointments",value:function(){return!0}},{key:"_getAllDayAppointmentGeometry",value:function(t){var e=this._calculateGeometryConfig(t);return this._customizeCoordinates(t,e.height,e.appointmentCountPerCell,e.offset,!0)}},{key:"_calculateGeometryConfig",value:function(t){this.instance._allowResizing()&&this.instance._allowAllDayResizing()||(t.skipResizing=!0);var e=h(g(u.prototype),"_calculateGeometryConfig",this).call(this,t);return t.count<=this._getDynamicAppointmentCountPerCell().allDay&&(e.offset=0),e}},{key:"_getAppointmentCount",value:function(t,e){return"auto"===t||1!==e.count||(0,r.isNumeric)(t)?this._getMaxAppointmentCountPerCellByType(e.allDay):e.count}},{key:"_getDefaultRatio",value:function(t,e){return t.count>this.instance.option("_appointmentCountPerCell")?.65:1}},{key:"_getOffsets",value:function(){return{unlimited:5,auto:20}}},{key:"_getMaxHeight",value:function(){return this.getDefaultAllDayCellHeight()||this.getAppointmentMinSize()}},{key:"_needVerticalGroupBounds",value:function(t){return!t}},{key:"_needHorizontalGroupBounds",value:function(){return!1}}])&&d(e.prototype,n),i&&d(e,i),u}(i.default);t.exports=v},function(t,e,n){"use strict";var i,o=n(515),r=(i=o)&&i.__esModule?i:{default:i};function a(t){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function u(t,e,n){return(u="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==a(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(r,t);var e,n,i,o=d(r);function r(){return s(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"getDropDownAppointmentWidth",value:function(t,e){return this.getDropDownButtonAdaptiveSize()}},{key:"getDropDownButtonAdaptiveSize",value:function(){return 28}},{key:"getCollectorTopOffset",value:function(t){var e=this.getRenderingStrategy();return e.hasAllDayAppointments()&&t?(e.getDefaultAllDayCellHeight()-e.getDropDownButtonAdaptiveSize())/2:this.getRenderingStrategy().getDefaultCellHeight()-40}},{key:"getCollectorLeftOffset",value:function(){return(this.getRenderingStrategy().getDefaultCellWidth()-28)/2}},{key:"getAppointmentDefaultOffset",value:function(){return 35}},{key:"getDynamicAppointmentCountPerCell",value:function(){return this.getRenderingStrategy().hasAllDayAppointments()?{allDay:0,simple:this._calculateDynamicAppointmentCountPerCell()||this._getAppointmentMinCount()}:0}},{key:"getDropDownAppointmentHeight",value:function(){return 28}},{key:"_getAppointmentMinCount",value:function(){return 0}},{key:"_getAppointmentDefaultWidth",value:function(){return this.getRenderingStrategy().hasAllDayAppointments()?30:u(f(r.prototype),"_getAppointmentDefaultWidth",this).call(this)}},{key:"_calculateDynamicAppointmentCountPerCell",value:function(){return Math.floor(this.getRenderingStrategy()._getAppointmentMaxWidth()/this.getRenderingStrategy()._getAppointmentDefaultWidth())}}])&&l(e.prototype,n),i&&l(e,i),r}(r.default);t.exports=p},function(t,e,n){"use strict";var i,o=n(517),r=(i=o)&&i.__esModule?i:{default:i},a=n(0);function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e,n){return(c="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(r,t);var e,n,i,o=h(r);function r(){return l(this,r),o.apply(this,arguments)}return e=r,(n=[{key:"_getAppointmentParts",value:function(t,e,n){var i=t.sourceAppointmentWidth-t.reducedWidth,o=t.height,r=this._getFullWeekAppointmentWidth(e.groupIndex),s=this._getMaxAppointmentWidth(n),l=Math.ceil(i/r)-1,u=Math.floor(i%r),c=l?u:u||r,d=[],h=t.reducedWidth+c,f=e.top+this.getDefaultCellHeight(),p=this._calculateMultiWeekAppointmentLeftOffset(e.hMax,r);"vertical"===this.instance._groupOrientation&&(p+=this.instance.fire("getWorkSpaceDateTableOffset"));for(var m=0;m<l&&!(h>s);m++)d.push((0,a.extend)(!0,{},e,{top:f,left:p,height:o,width:r,appointmentReduced:"body",rowIndex:++e.rowIndex,cellIndex:0})),f+=this.getDefaultCellHeight(),h+=r;return c&&(this._isRtl()&&(p+=r-c),d.push((0,a.extend)(!0,{},e,{top:f,left:p,height:o,width:c,appointmentReduced:"tail",rowIndex:++e.rowIndex,cellIndex:0}))),d}},{key:"_calculateMultiWeekAppointmentLeftOffset",value:function(t,e){return this._isRtl()?t:t-e}},{key:"_getFullWeekAppointmentWidth",value:function(t){return this._maxFullWeekAppointmentWidth=this.instance.fire("getFullWeekAppointmentWidth",{groupIndex:t}),this._maxFullWeekAppointmentWidth}},{key:"_getAppointmentDefaultHeight",value:function(){return this._getAppointmentHeightByTheme()}},{key:"_getAppointmentMinHeight",value:function(){return this._getAppointmentDefaultHeight()}},{key:"_columnCondition",value:function(t,e){var n=this._getConditions(t,e);return n.rowCondition||n.columnCondition||n.cellPositionCondition}},{key:"createTaskPositionMap",value:function(t){return c(p(r.prototype),"createTaskPositionMap",this).call(this,t,!0)}},{key:"_getSortedPositions",value:function(t){return c(p(r.prototype),"_getSortedPositions",this).call(this,t,!0)}},{key:"_getDefaultRatio",value:function(){return.6}},{key:"_getOffsets",value:function(){return{unlimited:26,auto:30}}},{key:"getDropDownAppointmentWidth",value:function(t){if(this.instance.fire("isAdaptive"))return this.getDropDownButtonAdaptiveSize();var e=t>1?60:36;return this.getDefaultCellWidth()-e}},{key:"needCorrectAppointmentDates",value:function(){return!1}},{key:"_needVerticalGroupBounds",value:function(){return!1}},{key:"_needHorizontalGroupBounds",value:function(){return!0}}])&&u(e.prototype,n),i&&u(e,i),r}(r.default);t.exports=m},function(t,e,n){"use strict";var i=a(n(26)),o=n(5),r=a(n(16));function a(t){return t&&t.__esModule?t:{default:t}}function s(t){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(h,t);var e,n,a,s=d(h);function h(){return l(this,h),s.apply(this,arguments)}return e=h,(n=[{key:"getAppointmentMinSize",value:function(){}},{key:"getDeltaTime",value:function(){}},{key:"keepAppointmentSettings",value:function(){return!0}},{key:"getAppointmentGeometry",value:function(t){return t}},{key:"createTaskPositionMap",value:function(t){var e,n;if(t.length){e=this.instance.fire("getAgendaVerticalStepHeight"),n=this.instance.fire("groupAppointmentsByResources",t);var i=[];(0,o.each)(n,function(t,e){var n=[],r=[];(0,o.each)(e,function(t,e){var i=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(e,t),o=null;i.indexes.length||(o={parts:[]},o=this.instance.getAppointmentsInstance()._processLongAppointment(e),n=n.concat(o.parts)),n=n.concat(i.parts),r=r.concat(i.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(r,e),this.instance.getAppointmentsInstance()._combineAppointments(e,n),i=i.concat(e)}.bind(this)),Array.prototype.splice.apply(t,[0,t.length].concat(i))}var r=[],a=0;return t.forEach(function(t,i){r.push([{height:e,width:"100%",sortedIndex:a++,groupIndex:this._calculateGroupIndex(i,n)}])}.bind(this)),r}},{key:"_calculateGroupIndex",value:function(t,e){var n,i=0;for(var o in e){var r=e[o].length;if(t>=i&&t<i+r){n=Number(o);break}i+=r}return n}},{key:"_getDeltaWidth",value:function(){}},{key:"_getAppointmentMaxWidth",value:function(){return this.getDefaultCellWidth()}},{key:"_needVerifyItemSize",value:function(){return!1}},{key:"_isRtl",value:function(){return this.instance.option("rtlEnabled")}},{key:"_getAppointmentParts",value:function(){}},{key:"_reduceMultiWeekAppointment",value:function(){}},{key:"calculateAppointmentHeight",value:function(){return 0}},{key:"calculateAppointmentWidth",value:function(){return 0}},{key:"isAppointmentGreaterThan",value:function(){}},{key:"isAllDay",value:function(){return!1}},{key:"_sortCondition",value:function(){}},{key:"_rowCondition",value:function(){}},{key:"_columnCondition",value:function(){}},{key:"_findIndexByKey",value:function(){}},{key:"_markAppointmentAsVirtual",value:function(){}},{key:"getDropDownAppointmentWidth",value:function(){}},{key:"getDefaultCellWidth",value:function(){return this._defaultWidth}},{key:"getCollectorLeftOffset",value:function(){}},{key:"getCollectorTopOffset",value:function(){}},{key:"calculateRows",value:function(t,e,n,a){this._rows=[];var s=this.instance.fire("groupAppointmentsByResources",t);return n=i.default.trimTime(new Date(n)),(0,o.each)(s,function(t,i){var s=[],l={indexes:[],parts:[]};if(!i.length)return this._rows.push([]),!0;(0,o.each)(i,function(t,e){var n=this.instance.fire("getField","startDate",e),i=this.instance.fire("getField","endDate",e);this.instance.fire("fixWrongEndDate",e,n,i),a&&delete e.settings;var o=this.instance.getAppointmentsInstance()._processRecurrenceAppointment(e,t,!1);l.parts=l.parts.concat(o.parts),l.indexes=l.indexes.concat(o.indexes)}.bind(this)),this.instance.getAppointmentsInstance()._reduceRecurrenceAppointments(l.indexes,i),r.default.merge(i,l.parts);for(var u=i.length,c=0;c<e;c++){var d=new Date(n);d.setMilliseconds(d.getMilliseconds()+864e5*c),void 0===s[c]&&(s[c]=0);for(var h=0;h<u;h++){var f=i[h].settings||i[h],p=this.instance.fire("appointmentTakesSeveralDays",i[h]),m=this.instance.fire("getField","recurrenceRule",i[h]);(this.instance.fire("dayHasAppointment",d,f,!0)||!m&&p&&this.instance.fire("dayHasAppointment",d,i[h],!0))&&(s[c]+=1)}}this._rows.push(s)}.bind(this)),this._rows}},{key:"_iterateRow",value:function(t,e,n){for(var i=0;i<t.length;i++)if(e.counter=e.counter+t[i],e.counter>=n){e.indexInRow=i;break}}},{key:"getDateByIndex",value:function(t,e,n){var i={counter:0,indexInRow:0};t++;for(var o=0;o<e.length&&(this._iterateRow(e[o],i,t),!i.indexInRow);o++);return new Date(new Date(n).setDate(n.getDate()+i.indexInRow))}},{key:"getAppointmentDataCalculator",value:function(){return function(t,e){var n=t.index(),i=this.instance.getStartViewDate(),o=this.getDateByIndex(n,this._rows,i),r=new Date(e);return{startDate:new Date(o.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()))}}.bind(this)}}])&&u(e.prototype,n),a&&u(e,a),h}(a(n(312)).default);t.exports=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CompactAppointmentsHelper=void 0;var i=h(n(3)),o=h(n(42)),r=h(n(33)),a=h(n(12)),s=n(132),l=h(n(7)),u=n(0),c=n(24),d=n(202);function h(t){return t&&t.__esModule?t:{default:t}}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.CompactAppointmentsHelper=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.instance=e,this.elements=[]}var e,n,h;return e=t,(n=[{key:"render",value:function(t){var e=t.isCompact,n=t.items,i=t.buttonColor,o=this._createTemplate(n.data.length,e),r=this._createCompactButton(o,t).$element();return this._makeBackgroundColor(r,n.colors,i),this._makeBackgroundDarker(r),this.elements.push(r),r.data("items",this._createAppointmentsData(n)),r}},{key:"clear",value:function(){this.elements.forEach((function(t){t.detach(),t.remove()})),this.elements=[]}},{key:"_createAppointmentsData",value:function(t){return t.data.map((function(e,n){return{data:e,color:t.colors[n],settings:t.settings[n]}}))}},{key:"_onButtonClick",value:function(t,e){var n=(0,i.default)(t.element);this.instance.showAppointmentTooltipCore(n,n.data("items"),this._getExtraOptionsForTooltip(e))}},{key:"_getExtraOptionsForTooltip",value:function(t){return{clickEvent:this._clickEvent(t.onAppointmentClick).bind(this),dragBehavior:t.allowDrag&&this._createTooltipDragBehavior(t).bind(this),dropDownAppointmentTemplate:this.instance.option().dropDownAppointmentTemplate,isButtonClick:!0}}},{key:"_clickEvent",value:function(t){var e=this;return function(n){var i={itemData:n.itemData.data,itemElement:n.itemElement},o=(0,u.extendFromObject)(e.instance.fire("mapAppointmentFields",i),n,!1);delete o.itemData,delete o.itemIndex,delete o.itemElement,t(o)}}},{key:"_createTooltipDragBehavior",value:function(t){var e=this;return function(t){var n,o=(0,i.default)(t.element),a=e.instance.getWorkSpace().dragBehavior;a.addTo(o,{filter:".".concat(d.LIST_ITEM_CLASS),container:e.instance.$element().find(".".concat(d.FIXED_CONTAINER_CLASS)),cursorOffset:function(){var t=(0,i.default)(n);return{x:t.width()/2,y:t.height()/2}},dragTemplate:function(){return n},onDragStart:function(t){var o=t.event,s=(0,i.default)(t.itemElement).data(d.LIST_ITEM_DATA_KEY);s&&!s.data.disabled&&(o.data=o.data||{},o.data.itemElement=n=e._createDragAppointment(s.data,s.settings),a.onDragStart(o.data),r.default.resetPosition((0,i.default)(n)))},onDragEnd:function(t){var e=(0,i.default)(t.itemElement).data(d.LIST_ITEM_DATA_KEY);e&&!e.data.disabled&&a.onDragEnd(t)}})}}},{key:"_createDragAppointment",value:function(t,e){var n=this.instance.getAppointmentsInstance(),i=n.option("items").length;return e.isCompact=!1,e.virtual=!1,n._renderItem(i,{itemData:t,settings:[e]}),n._findItemElementByItem(t)[0]}},{key:"_getCollectorOffset",value:function(t,e){return e-t-this._getCollectorRightOffset()}},{key:"_getCollectorRightOffset",value:function(){return this.instance.getRenderingStrategyInstance()._isCompactTheme()?1:5}},{key:"_makeBackgroundDarker",value:function(t){t.css("boxShadow","inset ".concat((0,c.getBoundingRect)(t.get(0)).width,"px 0 0 0 rgba(0, 0, 0, 0.3)"))}},{key:"_makeBackgroundColor",value:function(t,e,n){l.default.when.apply(null,e).done(function(){this._makeBackgroundColorCore(t,n,arguments)}.bind(this))}},{key:"_makeBackgroundColorCore",value:function(t,e,n){var i,o=!0;e&&e.done(function(e){if(n.length){i=n[0];for(var r=1;r<n.length;r++){if(i!==n[r]){o=!1;break}i=e}}e&&o&&t.css("backgroundColor",e)}.bind(this))}},{key:"_setPosition",value:function(t,e){r.default.move(t,{top:e.top,left:e.left})}},{key:"_createCompactButton",value:function(t,e){var n=this,i=this._createCompactButtonElement(e);return this.instance._createComponent(i,o.default,{type:"default",width:e.width,height:e.height,onClick:function(t){return n._onButtonClick(t,e)},template:this._renderTemplate(t,e.items,e.isCompact)})}},{key:"_createCompactButtonElement",value:function(t){var e=t.isCompact,n=t.$container,o=t.width,r=t.coordinates,a=t.applyOffset,s=t.cellWidth,l=(0,i.default)("<div>").addClass("dx-scheduler-appointment-collector").toggleClass("dx-scheduler-appointment-collector-compact",e).appendTo(n),u=a?this._getCollectorOffset(o,s):0;return this._setPosition(l,{top:r.top,left:r.left+u}),l}},{key:"_renderTemplate",value:function(t,e,n){return new s.FunctionTemplate((function(i){return t.render({model:{appointmentCount:e.data.length,isCompact:n},container:i.container})}))}},{key:"_createTemplate",value:function(t,e){return this._initButtonTemplate(t,e),this.instance._getAppointmentTemplate("appointmentCollectorTemplate")}},{key:"_initButtonTemplate",value:function(t,e){var n=this;this.instance._templateManager.addDefaultTemplates({appointmentCollector:new s.FunctionTemplate((function(o){return n._createButtonTemplate(t,(0,i.default)(o.container),e)}))})}},{key:"_createButtonTemplate",value:function(t,e,n){var o=n?t:a.default.getFormatter("dxScheduler-moreAppointments")(t);return e.append((0,i.default)("<span>").text(o)).addClass("dx-scheduler-appointment-collector-content")}}])&&f(e.prototype,n),h&&f(e,h),t}()},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(116),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.ScrollView=a,a.propTypes={bounceEnabled:r.bool,direction:r.oneOf(["both","horizontal","vertical"]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onPullDown:r.func,onReachBottom:r.func,onScroll:r.func,onUpdated:r.func,pulledDownText:r.string,pullingDownText:r.string,reachBottomText:r.string,refreshingText:r.string,rtlEnabled:r.bool,scrollByContent:r.bool,scrollByThumb:r.bool,showScrollbar:r.oneOf(["onScroll","onHover","always","never"]),useNative:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(110),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"},{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.SelectBox=l,l.propTypes={acceptCustomValue:r.bool,accessKey:r.string,activeStateEnabled:r.bool,buttons:r.array,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),displayValue:r.string,dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,grouped:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,items:r.array,maxLength:r.oneOfType([r.number,r.string]),minSearchLength:r.number,name:r.string,noDataText:r.string,onChange:r.func,onClosed:r.func,onContentReady:r.func,onCopy:r.func,onCustomItemCreating:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onItemClick:r.func,onKeyDown:r.func,onKeyUp:r.func,onOpened:r.func,onOptionChanged:r.func,onPaste:r.func,onSelectionChanged:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,searchEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith"]),searchTimeout:r.number,showClearButton:r.bool,showDataBeforeSearch:r.bool,showDropDownButton:r.bool,showSelectionControls:r.bool,spellcheck:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),valueChangeEvent:r.string,valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapItemText:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=x,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1085),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"menuGroupTemplate",render:"menuGroupRender",component:"menuGroupComponent",keyFn:"menuGroupKeyFn"},{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.SlideOut=l,l.propTypes={activeStateEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,menuGrouped:r.bool,menuPosition:r.oneOf(["inverted","normal"]),menuVisible:r.bool,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onMenuGroupRendered:r.func,onMenuItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,rtlEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,swipeEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuTemplate",render:"menuRender",component:"menuComponent",keyFn:"menuKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(17).getPublicElement,r=n(4).noop,a=n(2).isDefined,s=n(8),l=n(0).extend,u=n(218),c=n(518),d=n(69),h=n(108),f=n(157).ChildDefaultTemplate,p=n(98).EmptyTemplate,m=n(269).default,g=d.inherit({ctor:function(t,e){this.callBase(t,e),this._logDeprecatedComponentWarning("20.1","dxDrawer")},_getDefaultOptions:function(){return l(this.callBase(),{activeStateEnabled:!1,menuItemTemplate:"menuItem",swipeEnabled:!0,menuVisible:!1,menuPosition:"normal",menuGrouped:!1,menuGroupTemplate:"menuGroup",onMenuItemRendered:null,onMenuGroupRendered:null,contentTemplate:"content",selectionMode:"single",selectedIndex:0,selectionRequired:!0})},_itemClass:function(){return"dx-slideout-item"},_itemDataKey:function(){return"dxSlideoutItemData"},_itemContainer:function(){return i(this._slideOutView.content())},_init:function(){this._selectedItemContentRendered=!1,this.callBase(),this.$element().addClass("dx-slideout"),this._initSlideOutView()},_initTemplates:function(){this.callBase(),this._templateManager.addDefaultTemplates({menuItem:new f("item"),menuGroup:new f("group"),content:new p})},_initEditStrategy:function(){if(this.option("menuGrouped")){var t=u.inherit({_getPlainItems:function(){return this.callBase().reduce((function(t,e){return t.push.apply(t,e.items),t}),[])}});this._editStrategy=new t(this)}else this.callBase()},_initSlideOutView:function(){this._slideOutView=this._createComponent(this.$element(),c,{integrationOptions:{},menuVisible:this.option("menuVisible"),swipeEnabled:this.option("swipeEnabled"),menuPosition:this.option("menuPosition"),onOptionChanged:this._slideOutViewOptionChanged.bind(this)}),this._itemContainer().addClass("dx-slideout-item-container")},_slideOutViewOptionChanged:function(t){"menuVisible"===t.name&&this.option(t.name,t.value)},_initMarkup:function(){this._renderList(),this._renderContentTemplate(),this.callBase()},_render:function(){this._slideOutView._renderShield(),this.callBase()},_renderList:function(){var t=this._list&&this._list.$element()||i("<div>").addClass("dx-slideout-menu").appendTo(i(this._slideOutView.menuContent()));this._renderItemClickAction(),this._list=this._createComponent(t,h,{itemTemplateProperty:"menuTemplate",selectionMode:this.option("selectionMode"),selectionRequired:this.option("selectionRequired"),indicateLoading:!1,onItemClick:this._listItemClickHandler.bind(this),items:this.option("items"),dataSource:this._dataSource,itemTemplate:this._getTemplateByOption("menuItemTemplate"),grouped:this.option("menuGrouped"),groupTemplate:this._getTemplateByOption("menuGroupTemplate"),onItemRendered:this.option("onMenuItemRendered"),onGroupRendered:this.option("onMenuGroupRendered"),onContentReady:this._updateSlideOutView.bind(this)}),this._list.option("selectedIndex",this.option("selectedIndex"))},_getGroupedOption:function(){return this.option("menuGrouped")},_updateSlideOutView:function(){this._slideOutView._dimensionChanged()},_renderItemClickAction:function(){this._itemClickAction=this._createActionByOption("onItemClick")},_listItemClickHandler:function(t){var e=this._list.$element().find(".dx-list-item").index(t.itemElement);this.option("selectedIndex",e),this._itemClickAction(t)},_renderContentTemplate:function(){if(!a(this._singleContent)){var t=this._itemContainer().html().length;this._getTemplateByOption("contentTemplate").render({container:o(this._itemContainer())}),this._singleContent=this._itemContainer().html().length!==t}},_itemClickHandler:r,_renderContentImpl:function(){if(!this._singleContent){var t=this.option("items"),e=this.option("selectedIndex");if(t.length&&e>-1){this._selectedItemContentRendered=!0;var n=this._list.getItemByIndex(e);this._renderItems([n])}}},_renderItem:function(t,e){this._itemContainer().find(".dx-slideout-item").remove(),this.callBase(t,e)},_selectedItemElement:function(){return this._itemElements().eq(0)},_updateSelection:function(){this._prepareContent(),this._renderContent()},_getListWidth:function(){return this._slideOutView._getMenuWidth()},_changeMenuOption:function(t,e){this._list.option(t,e),this._updateSlideOutView()},_cleanItemContainer:function(){this._singleContent||this.callBase()},beginUpdate:function(){this.callBase(),this._list&&this._list.beginUpdate()},endUpdate:function(){this._list&&this._list.endUpdate(),this.callBase()},_optionChanged:function(t){var e=t.name,n=t.value;switch(e){case"menuVisible":case"swipeEnabled":case"rtlEnabled":case"menuPosition":this._slideOutView.option(e,n);break;case"width":this.callBase(t),this._updateSlideOutView();break;case"menuItemTemplate":this._changeMenuOption("itemTemplate",this._getTemplate(n));break;case"items":this._changeMenuOption("items",this.option("items")),this._selectedItemContentRendered||this._updateSelection();break;case"dataSource":case"selectedIndex":case"selectedItem":this._changeMenuOption(e,n),this.callBase(t);break;case"menuGrouped":this._initEditStrategy(),this._changeMenuOption("grouped",n);break;case"menuGroupTemplate":this._changeMenuOption("groupTemplate",this._getTemplate(n));break;case"onMenuItemRendered":this._changeMenuOption("onItemRendered",n);break;case"onMenuGroupRendered":this._changeMenuOption("onGroupRendered",n);break;case"onItemClick":this._renderItemClickAction();break;case"contentTemplate":this._singleContent=null,this._invalidate();break;default:this.callBase(t)}},showMenu:function(){return this._slideOutView.toggleMenuVisibility(!0)},hideMenu:function(){return this._slideOutView.toggleMenuVisibility(!1)},toggleMenuVisibility:function(t){return this._slideOutView.toggleMenuVisibility(t)}}).include(m);s("dxSlideOut",g),t.exports=g,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(518),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"menuTemplate",render:"menuRender",component:"menuComponent",keyFn:"menuKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.SlideOutView=a,a.propTypes={activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,menuPosition:r.oneOf(["inverted","normal"]),menuVisible:r.bool,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,swipeEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(497),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={label:{optionName:"label",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Slider=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,keyStep:r.number,label:r.object,max:r.number,min:r.number,name:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,showRange:r.bool,step:r.number,tabIndex:r.number,tooltip:r.object,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Label=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={format:{optionName:"format",isCollectionItem:!1}},e}(s.default);e.Tooltip=d,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(270),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},e._templateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Sortable=l,l.propTypes={allowDropInsideItem:r.bool,allowReordering:r.bool,autoScroll:r.bool,cursorOffset:r.oneOfType([r.object,r.string]),dragDirection:r.oneOf(["both","horizontal","vertical"]),dropFeedbackMode:r.oneOf(["push","indicate"]),elementAttr:r.object,filter:r.string,group:r.string,handle:r.string,height:r.oneOfType([r.func,r.number,r.string]),itemOrientation:r.oneOf(["horizontal","vertical"]),moveItemOnDrop:r.bool,onAdd:r.func,onDisposing:r.func,onDragChange:r.func,onDragEnd:r.func,onDragMove:r.func,onDragStart:r.func,onInitialized:r.func,onOptionChanged:r.func,onRemove:r.func,onReorder:r.func,rtlEnabled:r.bool,scrollSensitivity:r.number,scrollSpeed:r.number,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cursorOffset",e}(s.default);e.CursorOffset=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1090),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={margin:{optionName:"margin",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Sparkline=l,l.propTypes={argumentField:r.string,barNegativeColor:r.string,barPositiveColor:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,firstLastColor:r.string,ignoreEmptyPoints:r.bool,lineColor:r.string,lineWidth:r.number,lossColor:r.string,margin:r.object,maxColor:r.string,maxValue:r.number,minColor:r.string,minValue:r.number,onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,pathModified:r.bool,pointColor:r.string,pointSize:r.number,pointSymbol:r.oneOf(["circle","cross","polygon","square","triangle"]),rtlEnabled:r.bool,showFirstLast:r.bool,showMinMax:r.bool,size:r.object,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),tooltip:r.object,type:r.oneOf(["area","bar","line","spline","splinearea","steparea","stepline","winloss"]),valueField:r.string,winColor:r.string,winlossThreshold:r.number};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=m,e.default=l},function(t,e,n){"use strict";t.exports=n(1091),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(403),o=n(287),r=n(288),a={line:!0,spline:!0,stepline:!0,area:!0,steparea:!0,splinearea:!0,bar:!0,winloss:!0},s=Math,l=s.abs,u=s.round,c=s.max,d=s.min,h=isFinite,f=n(13),p=f.map,m=f.normalizeEnum,g=n(2).isDefined,_=Number,v=String;function y(t,e,n,i){return n!==i.first&&n!==i.last||(t=e.firstLastColor),(i.min||[]).indexOf(n)>=0&&(t=e.minColor),(i.max||[]).indexOf(n)>=0&&(t=e.maxColor),t}var b=i.inherit({_rootClassPrefix:"dxsl",_rootClass:"dxsl-sparkline",_themeSection:"sparkline",_defaultSize:{width:250,height:30},_initCore:function(){this.callBase(),this._createSeries()},_initialChanges:["DATA_SOURCE"],_dataSourceChangedHandler:function(){this._requestChange(["UPDATE"])},_updateWidgetElements:function(){this._updateSeries(),this.callBase()},_disposeWidgetElements:function(){this._series&&this._series.dispose(),this._series=this._seriesGroup=this._seriesLabelGroup=null},_cleanWidgetElements:function(){this._seriesGroup.remove(),this._seriesLabelGroup.remove(),this._seriesGroup.clear(),this._seriesLabelGroup.clear()},_drawWidgetElements:function(){this._dataIsLoaded()&&(this._drawSeries(),this._drawn())},_getCorrectCanvas:function(){var t=this._allOptions,e=this._canvas,n=t.pointSize&&Math.ceil(t.pointSize/2)+2,i=t.type;return"bar"!==i&&"winloss"!==i&&(t.showFirstLast||t.showMinMax)?{width:e.width,height:e.height,left:e.left+n,right:e.right+n,top:e.top+n,bottom:e.bottom+n}:e},_prepareOptions:function(){this._allOptions=this.callBase(),this._allOptions.type=m(this._allOptions.type),a[this._allOptions.type]||(this._allOptions.type="line")},_createHtmlElements:function(){this._seriesGroup=this._renderer.g().attr({class:"dxsl-series"}),this._seriesLabelGroup=this._renderer.g().attr({class:"dxsl-series-labels"})},_createSeries:function(){this._series=new r.Series({renderer:this._renderer,seriesGroup:this._seriesGroup,labelsGroup:this._seriesLabelGroup,argumentAxis:this._argumentAxis,valueAxis:this._valueAxis},{widgetType:"chart",type:"line"})},_updateSeries:function(){var t=this._series;this._prepareDataSource();var e=this._prepareSeriesOptions();t.updateOptions(e);var n={groups:[{series:[t]}]};n.argumentOptions={type:"bar"===e.type?"discrete":void 0},this._simpleDataSource=o.validateData(this._simpleDataSource,n,this._incidentOccurred,{checkTypeForAllData:!1,convertToAxisDataType:!0,sortingMethod:!0})[t.getArgumentField()],e.customizePoint=this._getCustomizeFunction(),t.updateData(this._simpleDataSource),t.createPoints(),this._groupsDataCategories=n.categories},_optionChangesMap:{dataSource:"DATA_SOURCE"},_optionChangesOrder:["DATA_SOURCE"],_change_DATA_SOURCE:function(){this._updateDataSource()},_prepareDataSource:function(){var t=this._allOptions,e=t.argumentField,n=t.valueField,i=function(t,e,n,i){return p(t,(function(t,o){var r,a,s=null;return void 0!==t&&(s={},r=h(t),s[e]=r?v(o):t[e],a=r?t:t[n],s[n]=null===a?i?void 0:a:_(a),s=void 0!==s[e]&&void 0!==s[n]?s:null),s}))}(this._dataSourceItems()||[],e,n,this.option("ignoreEmptyPoints"));"winloss"===t.type?(this._winlossDataSource=i,this._simpleDataSource=function(t,e,n,i){return p(t,(function(t){var o={};return o[e]=t[e],l(t[n]-i)<1e-4?o[n]=0:t[n]>i?o[n]=1:o[n]=-1,o}))}(i,e,n,t.winlossThreshold)):this._simpleDataSource=i},_prepareSeriesOptions:function(){var t=this._allOptions,e="winloss"===t.type?"bar":t.type;return{visible:!0,argumentField:t.argumentField,valueField:t.valueField,color:t.lineColor,width:t.lineWidth,widgetType:"chart",type:e,opacity:-1!==e.indexOf("area")?this._allOptions.areaOpacity:void 0,point:{size:t.pointSize,symbol:t.pointSymbol,border:{visible:!0,width:2},color:t.pointColor,visible:!1,hoverStyle:{border:{}},selectionStyle:{border:{}}},border:{color:t.lineColor,width:t.lineWidth,visible:"bar"!==e}}},_getCustomizeFunction:function(){var t=this._allOptions,e=this._winlossDataSource||this._simpleDataSource,n=this._getExtremumPointsIndexes(e);return"winloss"===t.type||"bar"===t.type?function(t,e,n){return function(){var i=this.index,o="winloss"===e.type,r=o?e.winlossThreshold:0,a=o?n[i][e.valueField]:this.value,s=o?e.winColor:e.barPositiveColor,l=o?e.lossColor:e.barNegativeColor;return{color:y(a>=r?s:l,e,i,t)}}}(n,t,this._winlossDataSource):function(t,e){return function(){var n=y(void 0,e,this.index,t);return n?{visible:!0,border:{color:n}}:{}}}(n,t)},_getExtremumPointsIndexes:function(t){var e=this._allOptions,n=t.length-1,i={};return this._minMaxIndexes=function(t,e){var n,i,o=(t[0]||{})[e]||0,r=o,a=o,s=[0],l=[0],u=t.length;for(i=1;i<u;i++)(n=t[i][e])<r?(r=n,s=[i]):n===r&&s.push(i),n>a?(a=n,l=[i]):n===a&&l.push(i);return a===r&&(s=l=[]),{minIndexes:s,maxIndexes:l}}(t,e.valueField),e.showFirstLast&&(i.first=0,i.last=n),e.showMinMax&&(i.min=this._minMaxIndexes.minIndexes,i.max=this._minMaxIndexes.maxIndexes),i},_getStick:function(){return{stick:"bar"!==this._series.type}},_updateRange:function(){var t,e=this._series,n=e.type,i="bar"===n,o="winloss"===n,r=e.getRangeData(),a=this._allOptions.minValue,s=g(a)&&h(a),l=this._allOptions.maxValue,u=g(l)&&h(l),f=.15*(r.val.max-r.val.min);i||o||"area"===n?(0!==r.val.min&&(r.val.min-=f),0!==r.val.max&&(r.val.max+=f)):(r.val.min-=f,r.val.max+=f),(s||u)&&(s&&u?(r.val.minVisible=d(a,l),r.val.maxVisible=c(a,l)):(r.val.minVisible=s?_(a):void 0,r.val.maxVisible=u?_(l):void 0),o&&(r.val.minVisible=s?c(r.val.minVisible,-1):void 0,r.val.maxVisible=u?d(r.val.maxVisible,1):void 0)),e.getPoints().length>1&&i&&(t=.1*(r.arg.max-r.arg.min),r.arg.min=r.arg.min-t,r.arg.max=r.arg.max+t),r.arg.categories=this._groupsDataCategories,this._ranges=r},_getBarWidth:function(t){var e=this._canvas,n=4*t,i=e.width-e.left-e.right-n,o=u(i/t);return o<1&&(o=1),o>50&&(o=50),o},_correctPoints:function(){var t,e,n=this._allOptions.type,i=this._series.getPoints(),o=i.length;if("bar"===n||"winloss"===n)for(t=this._getBarWidth(o),e=0;e<o;e++)i[e].correctCoordinates({width:t,offset:0})},_drawSeries:function(){this._simpleDataSource.length>0&&(this._correctPoints(),this._series.draw(),this._seriesGroup.append(this._renderer.root))},_isTooltipEnabled:function(){return!!this._simpleDataSource.length},_getTooltipData:function(){var t=this._allOptions,e=this._winlossDataSource||this._simpleDataSource,n=this._tooltip;if(0===e.length)return{};var i=this._minMaxIndexes,o=t.valueField,r=e[0][o],a=e[e.length-1][o],s=g(i.minIndexes[0])?e[i.minIndexes[0]][o]:r,l=g(i.maxIndexes[0])?e[i.maxIndexes[0]][o]:r,u=n.formatValue(r),c=n.formatValue(a),d=n.formatValue(s),h=n.formatValue(l),f={firstValue:u,lastValue:c,minValue:d,maxValue:h,originalFirstValue:r,originalLastValue:a,originalMinValue:s,originalMaxValue:l,valueText:["Start:",u,"End:",c,"Min:",d,"Max:",h]};return"winloss"===t.type&&(f.originalThresholdValue=t.winlossThreshold,f.thresholdValue=n.formatValue(t.winlossThreshold)),f}});p(["lineColor","lineWidth","areaOpacity","minColor","maxColor","barPositiveColor","barNegativeColor","winColor","lessColor","firstLastColor","pointSymbol","pointColor","pointSize","type","argumentField","valueField","winlossThreshold","showFirstLast","showMinMax","ignoreEmptyPoints","minValue","maxValue"],(function(t){b.prototype._optionChangesMap[t]="OPTIONS"})),n(8)("dxSparkline",b),t.exports=b,b.addPlugin(n(166).plugin)},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1093),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.SpeedDialAction=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,hint:r.string,hoverStateEnabled:r.bool,icon:r.string,index:r.number,label:r.string,onClick:r.func,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,tabIndex:r.number,visible:r.bool},e.default=a},function(t,e,n){"use strict";t.exports=n(1094),t.exports.default=t.exports},function(t,e,n){"use strict";var i=c(n(8)),o=n(0),r=c(n(45)),a=c(n(77)),s=c(n(20)),l=n(1095),u=n(194);function c(t){return t&&t.__esModule?t:{default:t}}function d(t){return(d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function p(t,e,n){return(p="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=v(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==d(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=a.default.add,b=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(s,t);var e,n,i,a=g(s);function s(){return h(this,s),a.apply(this,arguments)}return e=s,(n=[{key:"_getDefaultOptions",value:function(){return(0,o.extend)(p(v(s.prototype),"_getDefaultOptions",this).call(this),{icon:"",onClick:null,label:"",visible:!0,index:0,onContentReady:null,activeStateEnabled:!0,hoverStateEnabled:!0,animation:{show:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:0,opacity:0},to:{scale:1,opacity:1}},hide:{type:"pop",duration:200,easing:"cubic-bezier(0.4, 0, 0.2, 1)",from:{scale:1,opacity:1},to:{scale:0,opacity:0}}},id:new r.default})}},{key:"_optionChanged",value:function(t){switch(t.name){case"onClick":case"icon":case"label":case"visible":case"index":case"onInitializing":(0,l.initAction)(this);break;case"animation":case"id":break;default:p(v(s.prototype),"_optionChanged",this).call(this,t)}}},{key:"_render",value:function(){var t=this;this._toggleVisibility(!1),(0,u.getSwatchContainer)(this.$element())?(0,l.initAction)(this):y((function(){return(0,l.initAction)(t)}))}},{key:"_dispose",value:function(){(0,l.disposeAction)(this._options.silent("id")),p(v(s.prototype),"_dispose",this).call(this)}}])&&f(e.prototype,n),i&&f(e,i),s}(s.default);(0,i.default)("dxSpeedDialAction",b),t.exports=b},function(t,e,n){"use strict";var i=d(n(3)),o=d(n(51)),r=n(0),a=d(n(6)),s=d(n(23)),l=n(194),u=d(n(1096)),c=d(n(36));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){return(h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function m(t,e,n){return(m="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=y(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==h(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=null,w=function(t){return(0,r.extend)({},t._options.silent(),{onInitialized:null,onDisposing:null})},x=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(h,t);var e,n,s,d=_(h);function h(){return f(this,h),d.apply(this,arguments)}return e=h,(n=[{key:"_getDefaultOptions",value:function(){return(0,r.extend)(m(y(h.prototype),"_getDefaultOptions",this).call(this),(0,r.extend)({icon:"add",closeIcon:"close",position:{at:"right bottom",my:"right bottom",offset:{x:-16,y:-16}},maxSpeedDialActionCount:5,hint:"",label:"",direction:"auto",actions:[],activeStateEnabled:!0,hoverStateEnabled:!0,indent:55,childIndent:40,childOffset:9,callOverlayRenderShading:!0,closeOnOutsideClick:!0},(0,o.default)().floatingActionButtonConfig,{shading:!1}))}},{key:"_defaultOptionsRules",value:function(){return m(y(h.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return c.default.isMaterial()},options:{indent:72,childIndent:56,childOffset:8}}])}},{key:"_render",value:function(){this.$element().addClass("dx-fa-button-main"),m(y(h.prototype),"_render",this).call(this),this._moveToContainer(),this._renderCloseIcon(),this._renderClick()}},{key:"_renderLabel",value:function(){m(y(h.prototype),"_renderLabel",this).call(this),this.$element().toggleClass("dx-fa-button-with-label",!!this._$label)}},{key:"_renderCloseIcon",value:function(){this._$closeIcon=this._renderButtonIcon(this._$closeIcon,this._options.silent("closeIcon"),"dx-fa-button-icon-close"),this._$closeIcon.addClass("dx-state-invisible")}},{key:"_renderClick",value:function(){this._clickAction=1===this._getVisibleActions().length?this._getActionComponent()._createActionByOption("onClick"):this._createAction(this._clickHandler.bind(this)),this._setClickAction()}},{key:"_getVisibleActions",value:function(t){return(t||this.option("actions")).filter((function(t){return t.option("visible")}))}},{key:"_getCurrentOptions",value:function(t){var e=b._getVisibleActions(t);return 1===e.length?(0,r.extend)(e[0]._options.silent(),{position:this._getPosition()}):(0,r.extend)(this._getDefaultOptions(),{visible:0!==e.length})}},{key:"_clickHandler",value:function(){var t=this._actionItems.filter((function(t){return t.option("actionVisible")})).sort((function(t,e){return t.option("index")-e.option("index")}));if(1!==t.length){for(var e=t.length-1,n=0;n<t.length;n++)t[n].option("animation",this._getActionAnimation(t[n],n,e)),t[n].option("position",this._getActionPosition(t,n)),t[n]._$wrapper.css("position",this._$wrapper.css("position")),t[n].toggle();(0,o.default)().floatingActionButtonConfig.shading&&(this._isShadingShown=!this.option("shading"),this.option("shading",this._isShadingShown)),this._$icon.toggleClass("dx-state-invisible"),this._$closeIcon.toggleClass("dx-state-invisible")}}},{key:"_updateZIndexStackPosition",value:function(){m(y(h.prototype),"_updateZIndexStackPosition",this).call(this),this._overlayStack().push(this)}},{key:"_renderActions",value:function(){var t=this,e=this.option("actions");if(this._actionItems&&this._actionItems.length&&(this._actionItems.forEach((function(t){t.dispose(),t.$element().remove()})),this._actionItems=[]),this._actionItems=[],1!==e.length)for(var n=0;n<e.length;n++){var o=e[n],s=(0,i.default)("<div>").appendTo((0,l.getSwatchContainer)(o.$element()));a.default.off(s,"click"),a.default.on(s,"click",(function(){t._clickHandler()})),o._options.silent("actionComponent",o),o._options.silent("parentPosition",this._getPosition()),o._options.silent("actionVisible",o._options.silent("visible")),this._actionItems.push(this._createComponent(s,u.default,(0,r.extend)({},w(o),{visible:!1})))}}},{key:"_getActionAnimation",value:function(t,e,n){return t._options.silent("animation.show.delay",30*e),t._options.silent("animation.hide.delay",30*(n-e)),t._options.silent("animation")}},{key:"_getDirectionIndex",value:function(t,e){if("auto"===e){var n=this.$content().height(),i=this.initialOption("indent")+this.initialOption("childIndent")*t.length-n,o=this.$content().offset().top;return i<o||o>=this._getContainer().height()-n-o?-1:1}return"down"!==e?-1:1}},{key:"_getActionPosition",value:function(t,e){var n=t[e],i=this.initialOption("childOffset"),o=n._options.silent("label")&&!this._$label?this._isPositionLeft(this._getPosition())?i:-i:0,r=this.initialOption("indent")+this.initialOption("childIndent")*e,a=this._getDirectionIndex(t,this.option("direction"))*r,s=n._options.silent("label")?this._isPositionLeft(this._getPosition())?"left":"right":"center";return{of:this.$content(),at:s,my:s,offset:{x:o,y:a}}}},{key:"_outsideClickHandler",value:function(t){this._isShadingShown&&(0,i.default)(t.target)[0]===this._$wrapper[0]&&this._clickHandler()}},{key:"_setPosition",value:function(){this.option("visible")&&(this._hide(),this._show())}},{key:"_getPosition",value:function(){return this._getDefaultOptions().position}},{key:"_getInkRippleContainer",value:function(){return this.$content()}},{key:"_optionChanged",value:function(t){switch(t.name){case"actions":this._isVisible()&&this._renderIcon(),this._renderCloseIcon(),this._renderClick(),this._renderActions();break;case"maxSpeedDialActionCount":this._renderActions();break;case"closeIcon":this._renderCloseIcon();break;case"position":this._setPosition();break;case"label":this._isVisible()&&this._renderLabel(),this._setPosition();break;case"icon":this._isVisible()&&this._renderIcon();break;default:m(y(h.prototype),"_optionChanged",this).call(this,t)}}}])&&p(e.prototype,n),s&&p(e,s),h}(u.default);e.initAction=function(t){t._options.silent("onInitializing",null);var e=!1;if(b){var n=b.option("actions");if(n.forEach((function(n){if(n._options.silent("id")===t._options.silent("id"))return e=!0,t})),b._options.silent("position"),e)1===n.length?b.option((0,r.extend)({},w(n[0]),{actions:n,position:b._getPosition()})):b.option((0,r.extend)(b._getCurrentOptions(n),{actions:n}));else{if(b._getVisibleActions(n).length>=b.option("maxSpeedDialActionCount"))return t.dispose(),void s.default.log("W1014");n.push(t),b.option((0,r.extend)(b._getCurrentOptions(n),{actions:n}))}}else{var o=(0,i.default)("<div>").appendTo((0,l.getSwatchContainer)(t.$element()));b=t._createComponent(o,x,(0,r.extend)({},w(t),{actions:[t]}))}},e.disposeAction=function(t){if(b){var e=b.option("actions");e.length!==(e=e.filter((function(e){return e._options.silent("id")!==t}))).length&&(e.length?1===e.length?b.option((0,r.extend)({},w(e[0]),{actions:e})):b.option({actions:e}):(b.dispose(),b.$element().remove(),b=null))}},e.repaint=function(){if(b){var t=b._getVisibleActions(),e=1===t.length?t[0].option("icon"):b._getDefaultOptions().icon,n=1===t.length?t[0].option("label"):b._getDefaultOptions().label;b.option({actions:b.option("actions"),icon:e,closeIcon:b._getDefaultOptions().closeIcon,position:b._getPosition(),label:n,maxSpeedDialActionCount:b._getDefaultOptions().maxSpeedDialActionCount,direction:b._getDefaultOptions().direction})}}},function(t,e,n){"use strict";var i=h(n(3)),o=n(0),r=h(n(6)),a=n(11),s=h(n(25)),l=n(70),u=h(n(80)),c=h(n(79)),d=h(n(36));function h(t){return t&&t.__esModule?t:{default:t}}function f(t){return(f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function g(t,e,n){return(g="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=b(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function _(t,e){return(_=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,i=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==f(e)&&"function"!==typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}(f,t);var e,n,u,h=v(f);function f(){return p(this,f),h.apply(this,arguments)}return e=f,(n=[{key:"_getDefaultOptions",value:function(){return(0,o.extend)(g(b(f.prototype),"_getDefaultOptions",this).call(this),{shading:!1,useInkRipple:!1,callOverlayRenderShading:!1,width:"auto",zIndex:1500})}},{key:"_defaultOptionsRules",value:function(){return g(b(f.prototype),"_defaultOptionsRules",this).call(this).concat([{device:function(){return d.default.isMaterial()},options:{useInkRipple:!0}}])}},{key:"_render",value:function(){this.$element().addClass("dx-fa-button"),this._renderIcon(),this._renderLabel(),g(b(f.prototype),"_render",this).call(this),this.option("useInkRipple")&&this._renderInkRipple(),this._renderClick()}},{key:"_renderLabel",value:function(){this._$label&&this._$label.remove();var t=this.option("label");if(t){var e=(0,i.default)("<div>").addClass("dx-fa-button-label"),n=(0,i.default)("<div>").addClass("dx-fa-button-label-wrapper");this._$label=n.prependTo(this.$content()).append(e.text(t)),this.$content().toggleClass("dx-fa-button-content-reverse",this._isPositionLeft(this.option("parentPosition")))}else this._$label=null}},{key:"_isPositionLeft",value:function(t){return"left"===(t?t.at?t.at.x?t.at.x:t.at:"string"===typeof t?t:"":"").split(" ")[0]}},{key:"_renderButtonIcon",value:function(t,e,n){t&&t.remove(),t=(0,i.default)("<div>").addClass(n);var o=(0,l.getImageContainer)(e);return t.append(o).appendTo(this.$content()),t}},{key:"_renderIcon",value:function(){this._$icon=this._renderButtonIcon(this._$icon,this._options.silent("icon"),"dx-fa-button-icon")}},{key:"_renderWrapper",value:function(){this._options.silent("callOverlayRenderShading")&&g(b(f.prototype),"_renderWrapper",this).call(this)}},{key:"_getVisibleActions",value:function(t){return(t||this.option("actions")).filter((function(t){return t.option("visible")}))}},{key:"_getActionComponent",value:function(){return this.option("actionComponent")||this._getVisibleActions()[0]||this.option("actions")[0]}},{key:"_initContentReadyAction",value:function(){this._contentReadyAction=this._getActionComponent()._createActionByOption("onContentReady",{excludeValidators:["disabled","readOnly"]},!0)}},{key:"_fireContentReadyAction",value:function(){this._contentReadyAction({actionElement:this.$element()})}},{key:"_updateZIndexStackPosition",value:function(){var t=this.option("zIndex");this._$wrapper.css("zIndex",t),this._$content.css("zIndex",t)}},{key:"_fixWrapperPosition",value:function(){var t=this._$wrapper,e=this._getContainer();t.css("position",this._isWindow(e)?"fixed":"absolute")}},{key:"_setClickAction",value:function(){var t=this,e=(0,a.addNamespace)(s.default.name,this.NAME),n=this.$element().find(".dx-overlay-content");r.default.off(n,e),r.default.on(n,e,(function(e){var n={event:e,actionElement:t.element(),element:t._getActionComponent().$element()};t._clickAction(n)}))}},{key:"_defaultActionArgs",value:function(){return{component:this._getActionComponent()}}},{key:"_renderClick",value:function(){this._clickAction=this._getActionComponent()._createActionByOption("onClick"),this._setClickAction()}},{key:"_renderInkRipple",value:function(){this._inkRipple=c.default.render()}},{key:"_getInkRippleContainer",value:function(){return this._$icon}},{key:"_toggleActiveState",value:function(t,e,n){if(g(b(f.prototype),"_toggleActiveState",this).apply(this,arguments),this._inkRipple){var i={element:this._getInkRippleContainer(),event:n};e?this._inkRipple.showWave(i):this._inkRipple.hideWave(i)}}},{key:"_optionChanged",value:function(t){switch(t.name){case"icon":this._renderIcon();break;case"onClick":this._renderClick();break;case"label":this._renderLabel();break;case"visible":this._currentVisible=t.previousValue,t.value?this._show():this._hide();break;case"useInkRipple":this._render();break;default:g(b(f.prototype),"_optionChanged",this).call(this,t)}}}])&&m(e.prototype,n),u&&m(e,u),f}(u.default);t.exports=w},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(506),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.Switch=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,isValid:r.bool,name:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValueChanged:r.func,readOnly:r.bool,rtlEnabled:r.bool,switchedOffText:r.string,switchedOnText:r.string,tabIndex:r.number,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(293),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"itemTitleTemplate",render:"itemTitleRender",component:"itemTitleComponent",keyFn:"itemTitleKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TabPanel=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animationEnabled:r.bool,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,loop:r.bool,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,onTitleClick:r.oneOfType([r.func,r.string]),onTitleHold:r.func,onTitleRendered:r.func,repaintChangesOnly:r.bool,rtlEnabled:r.bool,scrollByContent:r.bool,scrollingEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,showNavButtons:r.bool,swipeEnabled:r.bool,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(237),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Tabs=l,l.propTypes={accessKey:r.string,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,keyExpr:r.oneOfType([r.func,r.string]),noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,repaintChangesOnly:r.bool,rtlEnabled:r.bool,scrollByContent:r.bool,scrollingEnabled:r.bool,selectedIndex:r.number,selectedItem:r.object,selectedItemKeys:r.array,selectedItems:r.array,selectionMode:r.oneOf(["multiple","single"]),showNavButtons:r.bool,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(305),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultOpened:"opened",defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0},dropDownOptions:{optionName:"dropDownOptions",isCollectionItem:!1},item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"dropDownButtonTemplate",render:"dropDownButtonRender",component:"dropDownButtonComponent",keyFn:"dropDownButtonKeyFn"},{tmplOption:"fieldTemplate",render:"fieldRender",component:"fieldComponent",keyFn:"fieldKeyFn"},{tmplOption:"groupTemplate",render:"groupRender",component:"groupComponent",keyFn:"groupKeyFn"},{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"tagTemplate",render:"tagRender",component:"tagComponent",keyFn:"tagKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TagBox=l,l.propTypes={acceptCustomValue:r.bool,accessKey:r.string,activeStateEnabled:r.bool,applyValueMode:r.oneOf(["instantly","useButtons"]),buttons:r.array,dataSource:r.oneOfType([r.array,r.object,r.string]),deferRendering:r.bool,disabled:r.bool,displayExpr:r.oneOfType([r.func,r.string]),dropDownOptions:r.object,elementAttr:r.object,focusStateEnabled:r.bool,grouped:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hideSelectedItems:r.bool,hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,items:r.array,maxDisplayedTags:r.number,maxLength:r.oneOfType([r.number,r.string]),minSearchLength:r.number,multiline:r.bool,name:r.string,noDataText:r.string,onChange:r.func,onClosed:r.func,onContentReady:r.func,onCustomItemCreating:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onItemClick:r.func,onKeyDown:r.func,onKeyUp:r.func,onMultiTagPreparing:r.func,onOpened:r.func,onOptionChanged:r.func,onSelectAllValueChanged:r.func,onSelectionChanged:r.func,onValueChanged:r.func,opened:r.bool,openOnFieldClick:r.bool,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,searchEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith"]),searchTimeout:r.number,selectAllMode:r.oneOf(["allPages","page"]),selectedItems:r.array,showClearButton:r.bool,showDataBeforeSearch:r.bool,showDropDownButton:r.bool,showMultiTagOnly:r.bool,showSelectionControls:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.array,valueExpr:r.oneOfType([r.func,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wrapItemText:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="dropDownOptions",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.DropDownOptions=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=x,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(505),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.TextArea=a,a.propTypes={accessKey:r.string,activeStateEnabled:r.bool,autoResizeEnabled:r.bool,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,maxHeight:r.oneOfType([r.number,r.string]),maxLength:r.oneOfType([r.number,r.string]),minHeight:r.oneOfType([r.number,r.string]),name:r.string,onChange:r.func,onContentReady:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,spellcheck:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.string,valueChangeEvent:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(102),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultValue:"value"},e._expectedChildren={button:{optionName:"buttons",isCollectionItem:!0}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TextBox=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,buttons:r.array,disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,inputAttr:r.object,isValid:r.bool,mask:r.string,maskChar:r.string,maskInvalidMessage:r.string,maskRules:r.object,maxLength:r.oneOfType([r.number,r.string]),mode:r.oneOf(["email","password","search","tel","text","url"]),name:r.string,onChange:r.func,onContentReady:r.func,onCopy:r.func,onCut:r.func,onDisposing:r.func,onEnterKey:r.func,onFocusIn:r.func,onFocusOut:r.func,onInitialized:r.func,onInput:r.func,onKeyDown:r.func,onKeyUp:r.func,onOptionChanged:r.func,onPaste:r.func,onValueChanged:r.func,placeholder:r.string,readOnly:r.bool,rtlEnabled:r.bool,showClearButton:r.bool,showMaskMode:r.oneOf(["always","onFocus"]),spellcheck:r.bool,stylingMode:r.oneOf(["outlined","underlined","filled"]),tabIndex:r.number,text:r.string,useMaskedValue:r.bool,validationError:r.object,validationErrors:r.array,validationMessageMode:r.oneOf(["always","auto"]),validationStatus:r.oneOf(["valid","invalid","pending"]),value:r.string,valueChangeEvent:r.string,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=c,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1104),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TileView=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,baseItemHeight:r.number,baseItemWidth:r.number,dataSource:r.oneOfType([r.array,r.object,r.string]),direction:r.oneOf(["horizontal","vertical"]),disabled:r.bool,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,itemMargin:r.number,items:r.array,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,rtlEnabled:r.bool,showScrollbar:r.bool,tabIndex:r.number,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=n(3),o=n(18),r=n(8),a=n(46),s=n(5),l=n(2).isDefined,u=n(0).extend,c=n(10),d=n(17).getPublicElement,h=n(4).deferRender,f=n(116),p=n(69),m={horizontal:{itemMainRatio:"widthRatio",itemCrossRatio:"heightRatio",baseItemMainDimension:"baseItemWidth",baseItemCrossDimension:"baseItemHeight",mainDimension:"width",crossDimension:"height",mainPosition:"left",crossPosition:"top"},vertical:{itemMainRatio:"heightRatio",itemCrossRatio:"widthRatio",baseItemMainDimension:"baseItemHeight",baseItemCrossDimension:"baseItemWidth",mainDimension:"height",crossDimension:"width",mainPosition:"top",crossPosition:"left"}},g=p.inherit({_activeStateUnit:".dx-tile",_getDefaultOptions:function(){return u(this.callBase(),{items:null,direction:"horizontal",hoverStateEnabled:!0,showScrollbar:!1,height:500,baseItemWidth:100,baseItemHeight:100,itemMargin:20,activeStateEnabled:!0,indicateLoading:!0})},_defaultOptionsRules:function(){return this.callBase().concat([{device:function(){return"desktop"===o.real().deviceType&&!o.isSimulator()},options:{focusStateEnabled:!0}}])},_itemClass:function(){return"dx-tile"},_itemDataKey:function(){return"dxTileData"},_itemContainer:function(){return this._$container},_init:function(){this.callBase(),this.$element().addClass("dx-tileview"),this._initScrollView()},_dataSourceLoadingChangedHandler:function(t){var e=this._scrollView;e&&e.startLoading&&(t&&this.option("indicateLoading")?e.startLoading():e.finishLoading())},_hideLoadingIfLoadIndicationOff:function(){this.option("indicateLoading")||this._dataSourceLoadingChangedHandler(!1)},_initScrollView:function(){this._scrollView=this._createComponent(this.$element(),f,{direction:this.option("direction"),scrollByContent:!0,useKeyboard:!1,showScrollbar:this.option("showScrollbar")}),this._$container=i(this._scrollView.content()),this._$container.addClass("dx-tileview-wrapper"),this._scrollView.option("onUpdated",this._renderGeometry.bind(this))},_initMarkup:function(){this.callBase(),h(function(){this._cellsPerDimension=1,this._renderGeometry(),this._updateScrollView(),this._fireContentReadyAction()}.bind(this))},_updateScrollView:function(){this._scrollView.option("direction",this.option("direction")),this._scrollView.update(),this._indicateLoadingIfAlreadyStarted()},_indicateLoadingIfAlreadyStarted:function(){this._isDataSourceLoading()&&this._dataSourceLoadingChangedHandler(!0)},_renderGeometry:function(){this._config=m[this.option("direction")];var t=this.option("items")||[],e=this._config,n=this.option("itemMargin"),i=Math.max.apply(Math,s.map(t||[],(function(t){return Math.round(t[e.itemCrossRatio]||1)}))),o=c.hasWindow()?this.$element()[e.crossDimension]():parseInt(this.$element().get(0).style[e.crossDimension]);this._cellsPerDimension=Math.floor(o/(this.option(e.baseItemCrossDimension)+n)),this._cellsPerDimension=Math.max(this._cellsPerDimension,i),this._cells=[],this._cells.push(new Array(this._cellsPerDimension)),this._arrangeItems(t),this._renderContentSize(e,n)},_renderContentSize:function(t,e){if(c.hasWindow()){var n=this._cells.length*this.option(t.baseItemMainDimension)+(this._cells.length+1)*e;n>this._$container[t.mainDimension]()&&this._$container[t.mainDimension](n)}},_arrangeItems:function(t){var e=this._config,n=e.itemMainRatio,i=e.itemCrossRatio,o=e.mainPosition;this._itemsPositions=[],s.each(t,function(t,r){var a={};a[n]=r[n]||1,a[i]=r[i]||1,a.index=t,a[n]=a[n]<=0?0:Math.round(a[e.itemMainRatio]),a[i]=a[i]<=0?0:Math.round(a[e.itemCrossRatio]);var s=this._getItemPosition(a);-1===s[o]&&(s[o]=this._cells.push(new Array(this._cellsPerDimension))-1),this._occupyCells(a,s),this._arrangeItem(a,s),this._itemsPositions.push(s)}.bind(this))},_getItemPosition:function(t){var e=this._config,n=e.mainPosition,i=e.crossPosition,o={};o[n]=-1,o[i]=0;for(var r=0;r<this._cells.length;r++){for(var a=0;a<this._cellsPerDimension;a++)if(this._itemFit(r,a,t)){o[n]=r,o[i]=a;break}if(o[n]>-1)break}return o},_itemFit:function(t,e,n){var i=!0,o=this._config,r=n[o.itemMainRatio],a=n[o.itemCrossRatio];if(e+a>this._cellsPerDimension)return!1;for(var s=t;s<t+r;s++)for(var l=e;l<e+a;l++)if(this._cells.length-1<s)this._cells.push(new Array(this._cellsPerDimension));else if(void 0!==this._cells[s][l]){i=!1;break}return i},_occupyCells:function(t,e){for(var n=this._config,i=e[n.mainPosition],o=e[n.crossPosition],r=t[n.itemMainRatio],a=t[n.itemCrossRatio],s=i;s<i+r;s++)for(var l=o;l<o+a;l++)this._cells[s][l]=t.index},_arrangeItem:function(t,e){var n=this._config,i=e[n.mainPosition],o=e[n.crossPosition],r=t[n.itemMainRatio],a=t[n.itemCrossRatio],s=this.option(n.baseItemCrossDimension),l=this.option(n.baseItemMainDimension),u=this.option("itemMargin"),c={display:r<=0||a<=0?"none":""},d=r*l+(r-1)*u,h=a*s+(a-1)*u;if(c[n.mainDimension]=d<0?0:d,c[n.crossDimension]=h<0?0:h,c[n.mainPosition]=i*l+(i+1)*u,c[n.crossPosition]=o*s+(o+1)*u,this.option("rtlEnabled")){var f=this._$container.width(),p=this.option("baseItemWidth"),m=e.left,g=m*p,_=(p+u)*t.widthRatio,v=m*u;c.left=f-(g+_+v)}this._itemElements().eq(t.index).css(c)},_moveFocus:function(t){var e="up",n="down",o=this.option("rtlEnabled")?"right":"left",r=this.option("rtlEnabled")?"left":"right",a="pageup",s="pagedown",u="horizontal"===this.option("direction"),c=this._cells,h=i(this.option("focusedElement")).index(),f=this._itemsPositions[h].left,p=this._itemsPositions[h].top,m=(u?c:c[0]).length,g=(u?c[0]:c).length,_=function(t,e){return u?c[t][e]:c[e][t]};switch(t){case a:case e:for(;p>0&&h===_(f,p);)p--;p<0&&(p=0);break;case s:case n:for(;p<g&&h===_(f,p);)p++;p===g&&(p=g-1);break;case r:for(;f<m&&h===_(f,p);)f++;f===m&&(f=m-1);break;case o:for(;f>=0&&h===_(f,p);)f--;f<0&&(f=0);break;default:return void this.callBase.apply(this,arguments)}var v=_(f,p);if(l(v)){var y=this._itemElements().eq(v);this.option("focusedElement",d(y)),this._scrollToItem(y)}},_scrollToItem:function(t){if(t.length){var e=this._config,n="outer"+a.captionize(e.mainDimension),i=this.option("itemMargin"),o=t.position()[e.mainPosition],r=t[n](),s=o+r,l=this.scrollPosition(),u=this.$element()[n]();l<=o&&s<=l+u||(l>o?this._scrollView.scrollTo(o-i):this._scrollView.scrollTo(o+r-u+i))}},_optionChanged:function(t){switch(t.name){case"items":this.callBase(t),this._renderGeometry(),this._updateScrollView();break;case"showScrollbar":this._initScrollView();break;case"disabled":this._scrollView.option("disabled",t.value),this.callBase(t);break;case"baseItemWidth":case"baseItemHeight":case"itemMargin":this._renderGeometry();break;case"width":case"height":this.callBase(t),this._renderGeometry(),this._updateScrollView();break;case"direction":this._renderGeometry(),this._updateScrollView();break;case"indicateLoading":this._hideLoadingIfLoadIndicationOff();break;default:this.callBase(t)}},scrollPosition:function(){return this._scrollView.scrollOffset()[this._config.mainPosition]}});r("dxTileView",g),t.exports=g,t.exports.default=t.exports},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(480),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultPosition:"position",defaultVisible:"visible"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Toast=l,l.propTypes={accessKey:r.string,animation:r.object,closeOnClick:r.bool,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),closeOnSwipe:r.bool,deferRendering:r.bool,displayTime:r.number,elementAttr:r.object,focusStateEnabled:r.bool,height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxHeight:r.oneOfType([r.func,r.number,r.string]),maxWidth:r.oneOfType([r.func,r.number,r.string]),message:r.string,minHeight:r.oneOfType([r.func,r.number,r.string]),minWidth:r.oneOfType([r.func,r.number,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onOptionChanged:r.func,onShowing:r.func,onShown:r.func,position:r.oneOfType([r.object,r.string]),rtlEnabled:r.bool,shading:r.bool,shadingColor:r.string,tabIndex:r.number,type:r.oneOf(["custom","error","info","success","warning"]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=_,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(167),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Toolbar=l,l.propTypes={dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onItemContextMenu:r.func,onItemHold:r.func,onItemRendered:r.func,onOptionChanged:r.func,renderAs:r.oneOf(["bottomToolbar","topToolbar"]),rtlEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"menuItemTemplate",render:"menuItemRender",component:"menuItemComponent",keyFn:"menuItemKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(200),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e._expectedChildren={animation:{optionName:"animation",isCollectionItem:!1},hideEvent:{optionName:"hideEvent",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},showEvent:{optionName:"showEvent",isCollectionItem:!1}},e._templateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.Tooltip=l,l.propTypes={animation:r.object,closeOnOutsideClick:r.oneOfType([r.bool,r.func]),deferRendering:r.bool,disabled:r.bool,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),hideEvent:r.oneOfType([r.object,r.string]),hint:r.string,hoverStateEnabled:r.bool,maxHeight:r.oneOfType([r.func,r.number,r.string]),maxWidth:r.oneOfType([r.func,r.number,r.string]),minHeight:r.oneOfType([r.func,r.number,r.string]),minWidth:r.oneOfType([r.func,r.number,r.string]),onContentReady:r.func,onDisposing:r.func,onHidden:r.func,onHiding:r.func,onInitialized:r.func,onOptionChanged:r.func,onShowing:r.func,onShown:r.func,position:r.oneOfType([r.object,r.oneOf(["bottom","left","right","top"])]),rtlEnabled:r.bool,shading:r.bool,shadingColor:r.string,showEvent:r.oneOfType([r.object,r.string]),visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hideEvent",e}(s.default);e.HideEvent=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="showEvent",e}(s.default);e.ShowEvent=y,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(487),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultColumns:"columns",defaultExpandedRowKeys:"expandedRowKeys",defaultFilterPanel:"filterPanel",defaultFilterValue:"filterValue",defaultFocusedColumnIndex:"focusedColumnIndex",defaultFocusedRowIndex:"focusedRowIndex",defaultFocusedRowKey:"focusedRowKey",defaultPaging:"paging",defaultSearchPanel:"searchPanel",defaultSelectedRowKeys:"selectedRowKeys"},e._expectedChildren={column:{optionName:"columns",isCollectionItem:!0},columnChooser:{optionName:"columnChooser",isCollectionItem:!1},columnFixing:{optionName:"columnFixing",isCollectionItem:!1},editing:{optionName:"editing",isCollectionItem:!1},filterBuilder:{optionName:"filterBuilder",isCollectionItem:!1},filterBuilderPopup:{optionName:"filterBuilderPopup",isCollectionItem:!1},filterPanel:{optionName:"filterPanel",isCollectionItem:!1},filterRow:{optionName:"filterRow",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},keyboardNavigation:{optionName:"keyboardNavigation",isCollectionItem:!1},loadPanel:{optionName:"loadPanel",isCollectionItem:!1},pager:{optionName:"pager",isCollectionItem:!1},paging:{optionName:"paging",isCollectionItem:!1},remoteOperations:{optionName:"remoteOperations",isCollectionItem:!1},rowDragging:{optionName:"rowDragging",isCollectionItem:!1},scrolling:{optionName:"scrolling",isCollectionItem:!1},searchPanel:{optionName:"searchPanel",isCollectionItem:!1},selection:{optionName:"selection",isCollectionItem:!1},sorting:{optionName:"sorting",isCollectionItem:!1},stateStoring:{optionName:"stateStoring",isCollectionItem:!1},treeListHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TreeList=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,allowColumnReordering:r.bool,allowColumnResizing:r.bool,autoExpandAll:r.bool,autoNavigateToFocusedRow:r.bool,cacheEnabled:r.bool,cellHintEnabled:r.bool,columnAutoWidth:r.bool,columnChooser:r.object,columnFixing:r.object,columnHidingEnabled:r.bool,columnMinWidth:r.number,columnResizingMode:r.oneOf(["nextColumn","widget"]),columns:r.array,columnWidth:r.number,customizeColumns:r.func,dataSource:r.oneOfType([r.array,r.object,r.string]),dataStructure:r.oneOf(["plain","tree"]),dateSerializationFormat:r.string,disabled:r.bool,editing:r.object,elementAttr:r.object,errorRowEnabled:r.bool,expandedRowKeys:r.array,expandNodesOnFiltering:r.bool,filterBuilder:r.object,filterBuilderPopup:r.object,filterMode:r.oneOf(["fullBranch","withAncestors","matchOnly"]),filterPanel:r.object,filterRow:r.object,filterSyncEnabled:r.oneOfType([r.bool,r.oneOf(["auto"])]),filterValue:r.oneOfType([r.array,r.func,r.string]),focusedColumnIndex:r.number,focusedRowEnabled:r.bool,focusedRowIndex:r.number,focusStateEnabled:r.bool,hasItemsExpr:r.oneOfType([r.func,r.string]),headerFilter:r.object,height:r.oneOfType([r.func,r.number,r.string]),highlightChanges:r.bool,hint:r.string,hoverStateEnabled:r.bool,itemsExpr:r.oneOfType([r.func,r.string]),keyboardNavigation:r.object,keyExpr:r.oneOfType([r.func,r.string]),loadPanel:r.object,noDataText:r.string,onAdaptiveDetailRowPreparing:r.func,onCellClick:r.oneOfType([r.func,r.string]),onCellDblClick:r.func,onCellHoverChanged:r.func,onCellPrepared:r.func,onContentReady:r.func,onContextMenuPreparing:r.func,onDataErrorOccurred:r.func,onDisposing:r.func,onEditingStart:r.func,onEditorPrepared:r.func,onEditorPreparing:r.func,onFocusedCellChanged:r.func,onFocusedCellChanging:r.func,onFocusedRowChanged:r.func,onFocusedRowChanging:r.func,onInitialized:r.func,onInitNewRow:r.func,onKeyDown:r.func,onNodesInitialized:r.func,onOptionChanged:r.func,onRowClick:r.oneOfType([r.func,r.string]),onRowCollapsed:r.func,onRowCollapsing:r.func,onRowDblClick:r.func,onRowExpanded:r.func,onRowExpanding:r.func,onRowInserted:r.func,onRowInserting:r.func,onRowPrepared:r.func,onRowRemoved:r.func,onRowRemoving:r.func,onRowUpdated:r.func,onRowUpdating:r.func,onRowValidating:r.func,onSelectionChanged:r.func,onToolbarPreparing:r.func,pager:r.object,paging:r.object,parentIdExpr:r.oneOfType([r.func,r.string]),remoteOperations:r.oneOfType([r.object,r.oneOf(["auto"])]),renderAsync:r.bool,repaintChangesOnly:r.bool,rowAlternationEnabled:r.bool,rowDragging:r.object,rtlEnabled:r.bool,scrolling:r.object,searchPanel:r.object,selectedRowKeys:r.array,selection:r.object,showBorders:r.bool,showColumnHeaders:r.bool,showColumnLines:r.bool,showRowLines:r.bool,sorting:r.object,stateStoring:r.object,tabIndex:r.number,twoWayBindingEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string]),wordWrapEnabled:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="animation",e.ExpectedChildren={hide:{optionName:"hide",isCollectionItem:!1},show:{optionName:"show",isCollectionItem:!1}},e}(s.default);e.Animation=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"async"},e}(s.default);e.AsyncRule=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="at",e}(s.default);e.At=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="boundaryOffset",e}(s.default);e.BoundaryOffset=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Button=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={buttonOptions:{optionName:"buttonOptions",isCollectionItem:!1}},e.PredefinedProps={itemType:"button"},e}(s.default);e.ButtonItem=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttonOptions",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ButtonOptions=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="colCountByScreen",e}(s.default);e.ColCountByScreen=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="collision",e}(s.default);e.Collision=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columns",e.IsCollectionItem=!0,e.DefaultsProps={defaultFilterValue:"filterValue",defaultFilterValues:"filterValues",defaultSelectedFilterOperation:"selectedFilterOperation",defaultSortIndex:"sortIndex",defaultSortOrder:"sortOrder",defaultVisible:"visible",defaultVisibleIndex:"visibleIndex"},e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},button:{optionName:"buttons",isCollectionItem:!0},columnHeaderFilter:{optionName:"headerFilter",isCollectionItem:!1},columnLookup:{optionName:"lookup",isCollectionItem:!1},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},format:{optionName:"format",isCollectionItem:!1},formItem:{optionName:"formItem",isCollectionItem:!1},headerFilter:{optionName:"headerFilter",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"cellTemplate",render:"cellRender",component:"cellComponent",keyFn:"cellKeyFn"},{tmplOption:"editCellTemplate",render:"editCellRender",component:"editCellComponent",keyFn:"editCellKeyFn"},{tmplOption:"headerCellTemplate",render:"headerCellRender",component:"headerCellComponent",keyFn:"headerCellKeyFn"}],e}(s.default);e.Column=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columnChooser",e}(s.default);e.ColumnChooser=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="columnFixing",e.ExpectedChildren={columnFixingTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.ColumnFixing=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.ColumnFixingTexts=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e}(s.default);e.ColumnHeaderFilter=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.ColumnLookup=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"compare"},e}(s.default);e.CompareRule=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="cursorOffset",e}(s.default);e.CursorOffset=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="customOperations",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.CustomOperation=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"custom"},e}(s.default);e.CustomRule=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="editing",e.ExpectedChildren={editingTexts:{optionName:"texts",isCollectionItem:!1},form:{optionName:"form",isCollectionItem:!1},popup:{optionName:"popup",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.Editing=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.EditingTexts=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"email"},e}(s.default);e.EmailRule=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.PredefinedProps={itemType:"empty"},e}(s.default);e.EmptyItem=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="fields",e.IsCollectionItem=!0,e.ExpectedChildren={fieldLookup:{optionName:"lookup",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},lookup:{optionName:"lookup",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"editorTemplate",render:"editorRender",component:"editorComponent",keyFn:"editorKeyFn"}],e}(s.default);e.Field=D;var A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.FieldLookup=A;var R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterBuilder",e.DefaultsProps={defaultValue:"value"},e.ExpectedChildren={customOperation:{optionName:"customOperations",isCollectionItem:!0},field:{optionName:"fields",isCollectionItem:!0},filterOperationDescriptions:{optionName:"filterOperationDescriptions",isCollectionItem:!1},groupOperationDescriptions:{optionName:"groupOperationDescriptions",isCollectionItem:!1}},e}(s.default);e.FilterBuilder=R;var B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterBuilderPopup",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.FilterBuilderPopup=B;var N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterOperationDescriptions",e}(s.default);e.FilterOperationDescriptions=N;var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterPanel",e.DefaultsProps={defaultFilterEnabled:"filterEnabled"},e.ExpectedChildren={filterPanelTexts:{optionName:"texts",isCollectionItem:!1},texts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.FilterPanel=L;var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.FilterPanelTexts=F;var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="filterRow",e.ExpectedChildren={operationDescriptions:{optionName:"operationDescriptions",isCollectionItem:!1}},e}(s.default);e.FilterRow=V;var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="form",e.DefaultsProps={defaultFormData:"formData"},e.ExpectedChildren={ButtonItem:{optionName:"items",isCollectionItem:!0},colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1},EmptyItem:{optionName:"items",isCollectionItem:!0},GroupItem:{optionName:"items",isCollectionItem:!0},item:{optionName:"items",isCollectionItem:!0},SimpleItem:{optionName:"items",isCollectionItem:!0},TabbedItem:{optionName:"items",isCollectionItem:!0}},e}(s.default);e.Form=z;var j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=j;var H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="formItem",e.ExpectedChildren={AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},label:{optionName:"label",isCollectionItem:!1},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.FormItem=H;var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e.PredefinedProps={itemType:"group"},e}(s.default);e.GroupItem=W;var U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="groupOperationDescriptions",e}(s.default);e.GroupOperationDescriptions=U;var G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e}(s.default);e.HeaderFilter=G;var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hide",e}(s.default);e.Hide=K;var q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=q;var $=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="keyboardNavigation",e}(s.default);e.KeyboardNavigation=$;var Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=Y;var Z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadPanel",e}(s.default);e.LoadPanel=Z;var X=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="lookup",e}(s.default);e.Lookup=X;var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="my",e}(s.default);e.My=J;var Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"numeric"},e}(s.default);e.NumericRule=Q;var tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="offset",e}(s.default);e.Offset=tt;var et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="operationDescriptions",e}(s.default);e.OperationDescriptions=et;var nt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="pager",e}(s.default);e.Pager=nt;var it=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="paging",e.DefaultsProps={defaultPageIndex:"pageIndex",defaultPageSize:"pageSize"},e}(s.default);e.Paging=it;var ot=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"pattern"},e}(s.default);e.PatternRule=ot;var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="popup",e.DefaultsProps={defaultHeight:"height",defaultPosition:"position",defaultVisible:"visible",defaultWidth:"width"},e.ExpectedChildren={animation:{optionName:"animation",isCollectionItem:!1},position:{optionName:"position",isCollectionItem:!1},toolbarItem:{optionName:"toolbarItems",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"},{tmplOption:"titleTemplate",render:"titleRender",component:"titleComponent",keyFn:"titleKeyFn"}],e}(s.default);e.Popup=rt;var at=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="position",e.ExpectedChildren={at:{optionName:"at",isCollectionItem:!1},boundaryOffset:{optionName:"boundaryOffset",isCollectionItem:!1},collision:{optionName:"collision",isCollectionItem:!1},my:{optionName:"my",isCollectionItem:!1},offset:{optionName:"offset",isCollectionItem:!1}},e}(s.default);e.Position=at;var st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"range"},e}(s.default);e.RangeRule=st;var lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="remoteOperations",e}(s.default);e.RemoteOperations=lt;var ut=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.RequiredRule=ut;var ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="rowDragging",e.ExpectedChildren={cursorOffset:{optionName:"cursorOffset",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"dragTemplate",render:"dragRender",component:"dragComponent",keyFn:"dragKeyFn"}],e}(s.default);e.RowDragging=ct;var dt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="scrolling",e}(s.default);e.Scrolling=dt;var ht=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="searchPanel",e.DefaultsProps={defaultText:"text"},e}(s.default);e.SearchPanel=ht;var ft=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selection",e}(s.default);e.Selection=ft;var pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="show",e}(s.default);e.Show=pt;var mt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e.PredefinedProps={itemType:"simple"},e}(s.default);e.SimpleItem=mt;var gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="sorting",e}(s.default);e.Sorting=gt;var _t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="stateStoring",e}(s.default);e.StateStoring=_t;var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"stringLength"},e}(s.default);e.StringLengthRule=vt;var yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tabs",e.IsCollectionItem=!0,e.ExpectedChildren={colCountByScreen:{optionName:"colCountByScreen",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Tab=yt;var bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.ExpectedChildren={tab:{optionName:"tabs",isCollectionItem:!0},tabPanelOptions:{optionName:"tabPanelOptions",isCollectionItem:!1}},e.PredefinedProps={itemType:"tabbed"},e}(s.default);e.TabbedItem=bt;var wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tabPanelOptions",e.DefaultsProps={defaultItems:"items",defaultSelectedIndex:"selectedIndex",defaultSelectedItem:"selectedItem",defaultSelectedItemKeys:"selectedItemKeys",defaultSelectedItems:"selectedItems"},e.ExpectedChildren={item:{optionName:"items",isCollectionItem:!0},tabPanelOptionsItem:{optionName:"items",isCollectionItem:!0}},e.TemplateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"},{tmplOption:"itemTitleTemplate",render:"itemTitleRender",component:"itemTitleComponent",keyFn:"itemTitleKeyFn"}],e}(s.default);e.TabPanelOptions=wt;var xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"tabTemplate",render:"tabRender",component:"tabComponent",keyFn:"tabKeyFn"},{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.TabPanelOptionsItem=xt;var Ct=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.Texts=Ct;var St=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="toolbarItems",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.ToolbarItem=St;var kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="headerFilter",e.ExpectedChildren={texts:{optionName:"texts",isCollectionItem:!1},treeListHeaderFilterTexts:{optionName:"texts",isCollectionItem:!1}},e}(s.default);e.TreeListHeaderFilter=kt;var It=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="texts",e}(s.default);e.TreeListHeaderFilterTexts=It;var Tt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.ValidationRule=Tt,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1110),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator"},e._expectedChildren={colorizer:{optionName:"colorizer",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},group:{optionName:"group",isCollectionItem:!1},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},tile:{optionName:"tile",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TreeMap=l,l.propTypes={childrenField:r.string,colorField:r.string,colorizer:r.object,dataSource:r.oneOfType([r.array,r.object,r.string]),disabled:r.bool,elementAttr:r.object,export:r.object,group:r.object,hoverEnabled:r.bool,idField:r.string,interactWithGroup:r.bool,labelField:r.string,layoutAlgorithm:r.oneOfType([r.func,r.oneOf(["sliceanddice","squarified","strip"])]),layoutDirection:r.oneOf(["leftBottomRightTop","leftTopRightBottom","rightBottomLeftTop","rightTopLeftBottom"]),loadingIndicator:r.object,maxDepth:r.number,onClick:r.oneOfType([r.func,r.string]),onDisposing:r.func,onDrawn:r.func,onDrill:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onHoverChanged:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onNodesInitialized:r.func,onNodesRendering:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,parentField:r.string,pathModified:r.bool,redrawOnResize:r.bool,rtlEnabled:r.bool,selectionMode:r.oneOf(["multiple","none","single"]),size:r.object,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),tile:r.object,title:r.oneOfType([r.object,r.string]),tooltip:r.object,valueField:r.string};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="colorizer",e}(s.default);e.Colorizer=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="group",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},groupLabel:{optionName:"label",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},treeMapborder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Group=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.GroupLabel=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="hoverStyle",e}(s.default);e.HoverStyle=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e}(s.default);e.Label=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="selectionStyle",e}(s.default);e.SelectionStyle=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Subtitle=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tile",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},hoverStyle:{optionName:"hoverStyle",isCollectionItem:!1},label:{optionName:"label",isCollectionItem:!1},selectionStyle:{optionName:"selectionStyle",isCollectionItem:!1},tileLabel:{optionName:"label",isCollectionItem:!1},treeMapborder:{optionName:"border",isCollectionItem:!1}},e}(s.default);e.Tile=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.TileLabel=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.Title=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TreeMapborder=O,e.default=l},function(t,e,n){"use strict";t.exports=n(1111),t.exports.default=t.exports},function(t,e,n){"use strict";var i=t.exports=n(83);n(519),n(1112),n(1113),n(1114),n(521),n(1115),n(1116),n(173),n(522),n(1117),n(524),n(1118),n(1119),n(1120),i.addPlugin(n(119).plugin),i.addPlugin(n(121).plugin),i.addPlugin(n(139).plugin)},function(t,e,n){"use strict";var i=n(520);function o(t,e,n){return((n-1)*t+e)/n}function r(t){return i(t,o,!0)}n(146).addAlgorithm("strip",r),t.exports=r},function(t,e,n){"use strict";var i=n(146);function o(t){var e=t.items,n=i.buildSidesData(t.rect,t.directions,t.isRotated?1:0);i.calculateRectangles(e,0,t.rect,n,{sum:t.sum,count:e.length,side:n.variedSide})}i.addAlgorithm("sliceanddice",o),t.exports=o},function(t,e,n){"use strict";var i=n(146),o=i.getAlgorithm("sliceanddice");i.addAlgorithm("rotatedsliceanddice",(function(t){return t.isRotated=!t.isRotated,o.call(this,t)}))},function(t,e,n){"use strict";var i=n(147).createColorCodeGetter,o=Math.min,r=Math.max;function a(t){return[Number(t[0])||0,t[1]-t[0]||1]}function s(t,e){var n={};return function(i){var s=i.parent;return t(i,n[s._id]||(n[s._id]=function(t,e){var n,i,s=t.length,l=[];for(n=0;n<s;++n)i=e(t[n]),isFinite(i)&&l.push(i);return a([o.apply(null,l),r.apply(null,l)])}(s.nodes,e)))}}function l(t,e){var n=e.createGradientPalette(t.palette),o=i(t);return"range"in t?function(t,e){return function(n){return t(n,e)}}(r,a(t.range||[])):s(r,o);function r(t,e){return n.getColor((o(t)-e[0])/e[1])}}n(147).addColorizer("gradient",l),t.exports=l},function(t,e,n){"use strict";var i=n(147).createColorCodeGetter;function o(t,e){var n=t.range||[],o=e.createDiscretePalette(t.palette,n.length-1),r=i(t);return function(t){return o.getColor(function(t,e){var n,i=0,o=e.length-1,r=-1;if(e[i]<=t&&t<=e[o])if(t===e[o])r=o-1;else{for(;o-i>1;)t<e[n=i+o>>1]?o=n:i=n;r=i}return r}(r(t),n))}}n(147).addColorizer("range",o),t.exports=o},function(t,e,n){"use strict";var i=n(83).prototype,o=n(203).prototype,r=n(163).expand,a=n(313).buildRectAppearance,s=n(13).normalizeEnum,l=n(16).inArray;n(173),n(523),i._eventsMap.onSelectionChanged={name:"selectionChanged"},r(i._handlers,"calculateAdditionalStates",(function(t,e){t[2]=e.selectionStyle?a(e.selectionStyle):{}})),o.statesMap[2]=o.statesMap[3]=2,o.additionalStates.push(2),r(i,"_onNodesCreated",(function(){this._selectionList.length=0})),r(i,"_extendProxyType",(function(t){var e=this;t.select=function(t){e._selectNode(this._id,!!t)},t.isSelected=function(){return l(this._id,e._selectionList)>=0},e._selectionList=[]})),n(83).addChange({code:"SELECTION_MODE",handler:function(){var t,e=s(this._getOption("selectionMode",!0)),n=this._selectionList,i="none"===e?0:"multiple"===e?2:1;1===i&&n.length>1?(t=n.pop(),this.clearSelection(),n.push(t)):0===i&&this.clearSelection(),this._selectionMode=i},isThemeDependent:!0,isOptionChange:!0,option:"selectionMode"}),r(i,"_applyTilesAppearance",(function(){this._selectionList.length&&function(t,e){var n,i,o=e.length;for(n=0;n<o;++n)i=t[e[n]],u[Number(i.isNode())](i.tile)}(this._nodes,this._selectionList)}));var u=[function(t){t.toForeground()},function(t){t.outer.toForeground(),t.inner.toForeground()}];i._applySelectionState=function(t,e){var n=this._nodes[t];n.setState(2,e),this._eventTrigger("selectionChanged",{node:n.proxy})},i._selectNode=function(t,e){var n,i,o;0!==this._selectionMode&&(this._context.suspend(),n=this._selectionList,i=l(t,n),e&&-1===i?(1===this._selectionMode&&n.length&&(o=n.pop(),this._applySelectionState(o,!1)),n.push(t),this._applySelectionState(t,!0)):!e&&i>=0&&(n.splice(i,1),this._applySelectionState(t,!1)),this._context.resume())},i.clearSelection=function(){var t,e=this._selectionList,n=e.length;if(0!==this._selectionMode){for(this._context.suspend(),t=0;t<n;++t)this._applySelectionState(e[t],!1);e.length=0,this._context.resume()}}},function(t,e,n){"use strict";var i=n(83).prototype,o=n(304).Tracker,r=n(163).expand,a=n(13).parseScalar,s=0;n(173),n(522),n(524),i._eventsMap.onClick={name:"click"},r(i,"_initCore",(function(){var t=this,e="__treemap_data_"+s++,n=function(e){return t._nodes[e].proxy};t._tracker=new o({widget:t,root:t._renderer.root,getNode:function(e){var i=n(e);return a(t._getOption("interactWithGroup",!0))&&i.isLeaf()&&i.getParent().isActive()?i.getParent():i},getData:function(t){var n=t.target;return("tspan"===n.tagName?n.parentNode:n)[e]},getProxy:n,click:function(e){t._eventTrigger("click",e)}}),t._handlers.setTrackerData=function(t,n){n.data(e,t._id)}})),r(i,"_disposeCore",(function(){this._tracker.dispose()}))},function(t,e,n){"use strict";var i=n(83).prototype,o=n(163).expand;n(173),i._eventsMap.onDrill={name:"drill"},o(i,"_extendProxyType",(function(t){var e=this;t.drillDown=function(){e._drillToNode(this._id)}})),o(i,"_onNodesCreated",(function(){this._drilldownIndex=-1})),i._drillToNode=function(t){var e;this._drilldownIndex!==t&&(e=this._nodes[t]||this._root).nodes&&(this._drilldownIndex=t,this._topNode=e,this._context.suspend(),this._context.change(["MAX_DEPTH","NODES_RESET"]),this._context.resume(),this._eventTrigger("drill",{node:e.proxy}))},i.resetDrillDown=function(){return this._drillToNode(-1),this},i.drillUp=function(){return this._drillToNode(this._topNode.parent._id||-1),this},i.getCurrentNode=function(){return this._topNode.proxy}},function(t,e,n){"use strict";var i=n(83).prototype;i._optionChangesMap.idField=i._optionChangesMap.parentField="NODES_CREATE",i._processDataSourceItems=function(t){var e,n,i,o,r,a={},s=this._getOption("idField",!0),l=this._getOption("parentField",!0),u=[];if(!s||!l||0===t.length)return{items:t,isPlain:!0};for(e=0;e<t.length;e++)(i=(n=t[e])[l])?(a[i]=a[i]||{items:[]},o=a[i].items):o=u,o.push(n);for(r in function t(e,n){var i,o,r,a=e.struct;for(o=0;o<n.length;o++)i=n[o],r=i[e.idField],a[r]&&(i.items=a[r].items,a[r]=null,t(e,i.items))}({struct:a,idField:s},u),a)a[r]&&u.push(a[r]);return{items:u,isPlain:!0}}},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(168),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0},searchEditorOptions:{optionName:"searchEditorOptions",isCollectionItem:!1}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.TreeView=l,l.propTypes={accessKey:r.string,activeStateEnabled:r.bool,animationEnabled:r.bool,createChildren:r.func,dataSource:r.oneOfType([r.array,r.object,r.string]),dataStructure:r.oneOf(["plain","tree"]),disabled:r.bool,disabledExpr:r.oneOfType([r.func,r.string]),displayExpr:r.oneOfType([r.func,r.string]),elementAttr:r.object,expandAllEnabled:r.bool,expandedExpr:r.oneOfType([r.func,r.string]),expandEvent:r.oneOf(["dblclick","click"]),expandNodesRecursive:r.bool,focusStateEnabled:r.bool,hasItemsExpr:r.oneOfType([r.func,r.string]),height:r.oneOfType([r.func,r.number,r.string]),hint:r.string,hoverStateEnabled:r.bool,itemHoldTimeout:r.number,items:r.array,itemsExpr:r.oneOfType([r.func,r.string]),keyExpr:r.oneOfType([r.func,r.string]),noDataText:r.string,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.func,onItemCollapsed:r.func,onItemContextMenu:r.func,onItemExpanded:r.func,onItemHold:r.func,onItemRendered:r.func,onItemSelectionChanged:r.func,onOptionChanged:r.func,onSelectAllValueChanged:r.func,onSelectionChanged:r.func,parentIdExpr:r.oneOfType([r.func,r.string]),rtlEnabled:r.bool,scrollDirection:r.oneOf(["both","horizontal","vertical"]),searchEditorOptions:r.object,searchEnabled:r.bool,searchExpr:r.oneOfType([r.array,r.func,r.string]),searchMode:r.oneOf(["contains","startswith","equals"]),searchTimeout:r.number,searchValue:r.string,selectAllText:r.string,selectByClick:r.bool,selectedExpr:r.oneOfType([r.func,r.string]),selectionMode:r.oneOf(["multiple","single"]),selectNodesRecursive:r.bool,showCheckBoxesMode:r.oneOf(["none","normal","selectAll"]),tabIndex:r.number,virtualModeEnabled:r.bool,visible:r.bool,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="buttons",e.IsCollectionItem=!0,e.ExpectedChildren={options:{optionName:"options",isCollectionItem:!1}},e}(s.default);e.Button=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="options",e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Options=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="searchEditorOptions",e.DefaultsProps={defaultValue:"value"},e.ExpectedChildren={button:{optionName:"buttons",isCollectionItem:!0}},e}(s.default);e.SearchEditorOptions=h,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(448),r=n(9),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(n(14).Component);e.ValidationGroup=a,a.propTypes={elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,width:r.oneOfType([r.func,r.number,r.string])},e.default=a},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(294),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultItems:"items"},e._expectedChildren={item:{optionName:"items",isCollectionItem:!0}},e._templateProps=[{tmplOption:"itemTemplate",render:"itemRender",component:"itemComponent",keyFn:"itemKeyFn"}],e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.ValidationSummary=l,l.propTypes={elementAttr:r.object,hoverStateEnabled:r.bool,items:r.array,onContentReady:r.func,onDisposing:r.func,onInitialized:r.func,onItemClick:r.oneOfType([r.func,r.string]),onOptionChanged:r.func,validationGroup:r.string};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="items",e.IsCollectionItem=!0,e.TemplateProps=[{tmplOption:"template",render:"render",component:"component",keyFn:"keyFn"}],e}(s.default);e.Item=u,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(236),r=n(9),a=n(368),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._expectedChildren={adapter:{optionName:"adapter",isCollectionItem:!1},AsyncRule:{optionName:"validationRules",isCollectionItem:!0},CompareRule:{optionName:"validationRules",isCollectionItem:!0},CustomRule:{optionName:"validationRules",isCollectionItem:!0},EmailRule:{optionName:"validationRules",isCollectionItem:!0},NumericRule:{optionName:"validationRules",isCollectionItem:!0},PatternRule:{optionName:"validationRules",isCollectionItem:!0},RangeRule:{optionName:"validationRules",isCollectionItem:!0},RequiredRule:{optionName:"validationRules",isCollectionItem:!0},StringLengthRule:{optionName:"validationRules",isCollectionItem:!0},validationRule:{optionName:"validationRules",isCollectionItem:!0}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.ExtensionComponent);e.Validator=l,l.propTypes={adapter:r.object,elementAttr:r.object,height:r.oneOfType([r.func,r.number,r.string]),name:r.string,onDisposing:r.func,onInitialized:r.func,onOptionChanged:r.func,onValidated:r.func,validationGroup:r.string,validationRules:r.array,width:r.oneOfType([r.func,r.number,r.string])};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="adapter",e}(s.default);e.Adapter=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"async"},e}(s.default);e.AsyncRule=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"compare"},e}(s.default);e.CompareRule=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"custom"},e}(s.default);e.CustomRule=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"email"},e}(s.default);e.EmailRule=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"numeric"},e}(s.default);e.NumericRule=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"pattern"},e}(s.default);e.PatternRule=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"range"},e}(s.default);e.RangeRule=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.RequiredRule=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"stringLength"},e}(s.default);e.StringLengthRule=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="validationRules",e.IsCollectionItem=!0,e.PredefinedProps={type:"required"},e}(s.default);e.ValidationRule=y,e.default=l},function(t,e,n){"use strict";var i=this&&this.__extends||function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function i(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:!0});var o=n(1126),r=n(9),a=n(14),s=n(19),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._WidgetClass=o.default,e._defaults={defaultLoadingIndicator:"loadingIndicator"},e._expectedChildren={background:{optionName:"background",isCollectionItem:!1},controlBar:{optionName:"controlBar",isCollectionItem:!1},export:{optionName:"export",isCollectionItem:!1},layer:{optionName:"layers",isCollectionItem:!0},legend:{optionName:"legends",isCollectionItem:!0},loadingIndicator:{optionName:"loadingIndicator",isCollectionItem:!1},projection:{optionName:"projection",isCollectionItem:!1},size:{optionName:"size",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1},tooltip:{optionName:"tooltip",isCollectionItem:!1},vectorMapTitle:{optionName:"title",isCollectionItem:!1}},e}return i(e,t),Object.defineProperty(e.prototype,"instance",{get:function(){return this._instance},enumerable:!0,configurable:!0}),e}(a.Component);e.VectorMap=l,l.propTypes={background:r.object,bounds:r.array,center:r.array,controlBar:r.object,disabled:r.bool,elementAttr:r.object,export:r.object,layers:r.oneOfType([r.array,r.object]),legends:r.array,loadingIndicator:r.object,maxZoomFactor:r.number,onCenterChanged:r.func,onClick:r.oneOfType([r.func,r.string]),onDisposing:r.func,onDrawn:r.func,onExported:r.func,onExporting:r.func,onFileSaving:r.func,onIncidentOccurred:r.func,onInitialized:r.func,onOptionChanged:r.func,onSelectionChanged:r.func,onTooltipHidden:r.func,onTooltipShown:r.func,onZoomFactorChanged:r.func,panningEnabled:r.bool,pathModified:r.bool,projection:r.oneOfType([r.object,r.oneOf(["equirectangular","lambert","mercator","miller"])]),redrawOnResize:r.bool,rtlEnabled:r.bool,size:r.object,theme:r.oneOf(["generic.dark","generic.light","generic.contrast","ios7.default","generic.carmine","generic.darkmoon","generic.darkviolet","generic.greenmist","generic.softblue","material.blue.light","material.lime.light","material.orange.light","material.purple.light","material.teal.light"]),title:r.oneOfType([r.object,r.string]),tooltip:r.object,touchEnabled:r.bool,wheelEnabled:r.bool,zoomFactor:r.number,zoomingEnabled:r.bool};var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="background",e}(s.default);e.Background=u;var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.Border=c;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="controlBar",e}(s.default);e.ControlBar=d;var h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="export",e}(s.default);e.Export=h;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="font",e}(s.default);e.Font=f;var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="format",e}(s.default);e.Format=p;var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="label",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.Label=m;var g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="layers",e.IsCollectionItem=!0,e.ExpectedChildren={label:{optionName:"label",isCollectionItem:!1}},e}(s.default);e.Layer=g;var _=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="legends",e.IsCollectionItem=!0,e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},legendBorder:{optionName:"border",isCollectionItem:!1},legendTitle:{optionName:"title",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},source:{optionName:"source",isCollectionItem:!1},title:{optionName:"title",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"markerTemplate",render:"markerRender",component:"markerComponent",keyFn:"markerKeyFn"}],e}(s.default);e.Legend=_;var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.LegendBorder=v;var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},legendTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.LegendTitle=y;var b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LegendTitleSubtitle=b;var w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="loadingIndicator",e.DefaultsProps={defaultShow:"show"},e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.LoadingIndicator=w;var x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="margin",e}(s.default);e.Margin=x;var C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="projection",e}(s.default);e.Projection=C;var S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="shadow",e}(s.default);e.Shadow=S;var k=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="size",e}(s.default);e.Size=k;var I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="source",e}(s.default);e.Source=I;var T=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e}(s.default);e.Subtitle=T;var E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e}(s.default);e.Title=E;var O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="tooltip",e.ExpectedChildren={border:{optionName:"border",isCollectionItem:!1},font:{optionName:"font",isCollectionItem:!1},format:{optionName:"format",isCollectionItem:!1},shadow:{optionName:"shadow",isCollectionItem:!1},tooltipBorder:{optionName:"border",isCollectionItem:!1}},e.TemplateProps=[{tmplOption:"contentTemplate",render:"contentRender",component:"contentComponent",keyFn:"contentKeyFn"}],e}(s.default);e.Tooltip=O;var M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="border",e}(s.default);e.TooltipBorder=M;var P=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="title",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1},margin:{optionName:"margin",isCollectionItem:!1},subtitle:{optionName:"subtitle",isCollectionItem:!1},vectorMapTitleSubtitle:{optionName:"subtitle",isCollectionItem:!1}},e}(s.default);e.VectorMapTitle=P;var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.OptionName="subtitle",e.ExpectedChildren={font:{optionName:"font",isCollectionItem:!1}},e}(s.default);e.VectorMapTitleSubtitle=D,e.default=l},function(t,e,n){"use strict";t.exports=n(1127),t.exports.default=t.exports},function(t,e,n){"use strict";var i=n(13),o=n(525),r=y(n(1128)),a=y(n(1129)),s=y(n(1130)),l=y(n(1131)),u=y(n(1132)),c=y(n(1133)),d=n(1134),h=y(n(1135));n(1136);var f=y(n(118)),p=y(n(8)),m=n(119),g=n(121),_=n(122),v=n(139);function y(t){return t&&t.__esModule?t:{default:t}}var b=/^layers/,w=/\.dataSource$/,x=1;function C(t,e){return e?[Math.min(e[0],e[2],t[0]),Math.min(e[1],e[3],t[3]),Math.max(e[0],e[2],t[2]),Math.max(e[1],e[3],t[1])]:t}var S=f.default.inherit({_eventsMap:{onClick:{name:"click"},onCenterChanged:{name:"centerChanged"},onZoomFactorChanged:{name:"zoomFactorChanged"},onHoverChanged:{name:"hoverChanged"},onSelectionChanged:{name:"selectionChanged"}},_rootClassPrefix:"dxm",_rootClass:"dxm-vector-map",_themeSection:"map",_fontFields:["layer:area.label.font","layer:marker:dot.label.font","layer:marker:bubble.label.font","layer:marker:pie.label.font","layer:marker:image.label.font","legend.font","legend.title.font","legend.title.subtitle.font"],_initLayerCollection:function(t){var e=this;e._layerCollection=new d.MapLayerCollection({renderer:e._renderer,projection:e._projection,themeManager:e._themeManager,tracker:e._tracker,dataKey:t,eventTrigger:e._eventTrigger,dataExchanger:e._dataExchanger,tooltip:e._tooltip,notifyDirty:e._notifyDirty,notifyReady:e._notifyReady,dataReady:function(){var t;if(e.option("getBoundsFromData")&&!e.option("bounds")&&(e._preventProjectionEvents(),t=e._getBoundsFromData(),e._projection.setBounds(t),e._allowProjectionEvents()),!e.option("projection")&&(t=t||e._getBoundsFromData(),Math.ceil(t[0])<-180||Math.ceil(t[3])<-90||Math.floor(t[2])>180||Math.floor(t[1])>90)){var n=t[2]-t[0],i=t[1]-t[3];e._projection.setEngine({to:function(e){return[2*(e[0]-t[0])/n-1,2*(e[1]-t[3])/i-1]},from:function(e){return[(e[0]+1)*n/2+t[0],(e[1]+1)*i/2+t[3]]}})}}})},_getBoundsFromData:function(){var t=this._getBoundingBoxFromDataSource();if(!t){var e=(0,d.getMaxBound)(this.getLayers().map((function(t){return t.getBounds()})));e&&(t=e)}return t=[(t=t||[])[0],t[3],t[2],t[1]]},_initLegendsControl:function(){this._legendsControl=new u.default.LegendsControl({renderer:this._renderer,container:this._root,widget:this,layoutControl:this._layoutControl,themeManager:this._themeManager,dataExchanger:this._dataExchanger,notifyDirty:this._notifyDirty,notifyReady:this._notifyReady})},_initControlBar:function(t){this._controlBar=new r.default.ControlBar({renderer:this._renderer,container:this._root,layoutControl:this._layoutControl,projection:this._projection,tracker:this._tracker,dataKey:t})},_initElements:function(){var t,e=this,n="vectormap-data-"+x++,i=0;e._preventProjectionEvents=function(){t=!0},e._allowProjectionEvents=function(){t=!1},e._notifyDirty=function(){e._resetIsReady(),++i},e._notifyReady=function(){e._allowProjectionEvents(),0===--i&&e._drawn()},e._preventProjectionEvents(),e._dataExchanger=new l.default.DataExchanger,e._projection=new o.Projection({centerChanged:function(n){t||e._eventTrigger("centerChanged",{center:n})},zoomChanged:function(n){t||e._eventTrigger("zoomFactorChanged",{zoomFactor:n})}}),e._tracker=new s.default.Tracker({root:e._root,projection:e._projection,dataKey:n}),e._gestureHandler=new a.default.GestureHandler({projection:e._projection,renderer:e._renderer,tracker:e._tracker}),e._layoutControl=new c.default.LayoutControl,e._layoutControl.suspend(),e._initLayerCollection(n),e._initControlBar(n),e._initLegendsControl(),e._tooltipViewer=new h.default.TooltipViewer({tracker:e._tracker,tooltip:e._tooltip,layerCollection:e._layerCollection})},_change_RESUME_LAYOUT:function(){this._layoutControl.resume()},_initialChanges:["PROJECTION","RESUME_LAYOUT","LAYOUT_INIT","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER"],_layoutChangesOrder:["RESUME_LAYOUT","LAYERS"],_initCore:function(){this._root=this._renderer.root.attr({align:"center",cursor:"default"}),this._initElements()},_disposeCore:function(){this._controlBar.dispose(),this._gestureHandler.dispose(),this._tracker.dispose(),this._legendsControl.dispose(),this._layerCollection.dispose(),this._layoutControl.dispose(),this._tooltipViewer.dispose(),this._dataExchanger.dispose(),this._projection.dispose(),this._dataExchanger=this._gestureHandler=this._projection=this._tracker=this._layoutControl=this._root=this._layerCollection=this._controlBar=this._legendsControl=null},_setupInteraction:function(){var t={centeringEnabled:!!(0,i.parseScalar)(this._getOption("panningEnabled",!0),!0),zoomingEnabled:!!(0,i.parseScalar)(this._getOption("zoomingEnabled",!0),!0)};this._gestureHandler.setInteraction(t),this._controlBar.setInteraction(t)},_getDefaultSize:function(){return{width:800,height:400}},_applySize:function(t){var e={left:t[0],top:t[1],width:t[2]-t[0],height:t[3]-t[1],right:0,bottom:0};this._projection.setSize(e),this._layoutControl.setSize(e),this._layerCollection.setRect([e.left,e.top,e.width,e.height])},_optionChanging:function(t,e,n){e&&n&&b.test(t)&&(e.dataSource&&n.dataSource&&e!==n?e.dataSource=null:w.test(t)&&this.option(t,null))},_applyChanges:function(){this._notifyDirty(),this.callBase.apply(this,arguments),this._notifyReady()},_optionChangesMap:{background:"BACKGROUND",layers:"LAYERS",controlBar:"CONTROL_BAR",legends:"LEGENDS",touchEnabled:"TRACKER",wheelEnabled:"TRACKER",panningEnabled:"INTERACTION",zoomingEnabled:"INTERACTION",projection:"PROJECTION",bounds:"BOUNDS",maxZoomFactor:"MAX_ZOOM_FACTOR",zoomFactor:"ZOOM_FACTOR",center:"CENTER"},_optionChangesOrder:["PROJECTION","BOUNDS","MAX_ZOOM_FACTOR","ZOOM_FACTOR","CENTER","BACKGROUND","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_change_PROJECTION:function(){this._setProjection()},_change_BOUNDS:function(){this._setBounds()},_change_MAX_ZOOM_FACTOR:function(){this._setMaxZoom()},_change_ZOOM_FACTOR:function(){this._setZoom()},_change_CENTER:function(){this._setCenter()},_change_BACKGROUND:function(){this._setBackgroundOptions()},_change_LAYERS:function(){this._setLayerCollectionOptions()},_change_CONTROL_BAR:function(){this._setControlBarOptions()},_change_LEGENDS:function(){this._setLegendsOptions()},_change_TRACKER:function(){this._setTrackerOptions()},_change_INTERACTION:function(){this._setupInteraction()},_themeDependentChanges:["BACKGROUND","LAYERS","CONTROL_BAR","LEGENDS","TRACKER","INTERACTION"],_setProjection:function(){this._projection.setEngine(this.option("projection"))},_setBounds:function(){this._projection.setBounds(this.option("bounds"))},_setMaxZoom:function(){this._projection.setMaxZoom(this.option("maxZoomFactor"))},_setZoom:function(){this._projection.setZoom(this.option("zoomFactor"))},_setCenter:function(){this._projection.setCenter(this.option("center"))},_setBackgroundOptions:function(){this._layerCollection.setBackgroundOptions(this._getOption("background"))},_setLayerCollectionOptions:function(){this._layerCollection.setOptions(this.option("layers"))},_getBoundingBoxFromDataSource:function(){var t=this._layerCollection.items(),e=[1/0,-1/0,-1/0,1/0],n=t&&t.length?t.reduce((function(t,e){var n=e.getData(),i=n.count();if(i>0){var o=n.getBBox();if(o)t=C(t,o);else for(var r=0;r<i;r++)t=C(t,n.getBBox(r))}return t}),e):void 0;return n===e?void 0:n},_setControlBarOptions:function(){this._controlBar.setOptions(this._getOption("controlBar"))},_setLegendsOptions:function(){this._legendsControl.setOptions(this.option("legends"))},_setTrackerOptions:function(){this._tracker.setOptions({touchEnabled:this._getOption("touchEnabled",!0),wheelEnabled:this._getOption("wheelEnabled",!0)})},getLayers:function(){return this._layerCollection.items().map((function(t){return t.proxy}))},getLayerByIndex:function(t){var e=this._layerCollection.byIndex(t);return e?e.proxy:null},getLayerByName:function(t){var e=this._layerCollection.byName(t);return e?e.proxy:null},clearSelection:function(t){var e,n=this._layerCollection.items(),i=n.length;for(e=0;e<i;++e)n[e].clearSelection(t);return this},center:function(t){return void 0===t?this._projection.getCenter():(this._projection.setCenter(t),this)},zoomFactor:function(t){return void 0===t?this._projection.getZoom():(this._projection.setZoom(t),this)},viewport:function(t){return void 0===t?this._projection.getViewport():(this._projection.setViewport(t),this)},convertCoordinates:function(t){return t=t&&t.length?t:[arguments[0],arguments[1]],this.convertToGeo(t[0],t[1])},convertToGeo:function(t,e){return this._projection.fromScreenPoint([t,e])},convertToXY:function(t,e){return this._projection.toScreenPoint([t,e])}});(0,p.default)("dxVectorMap",S),t.exports=S,S.addPlugin(m.plugin),S.addPlugin(g.plugin),S.addPlugin(_.plugin),S.addPlugin(v.plugin)},function(t,e,n){"use strict";var i=Math,o=i.min,r=i.max,a=i.round,s=i.floor,l=i.sqrt,u=n(13),c=u.parseScalar,d=u.enumParser(["left","center","right"]),h=u.enumParser(["top","bottom"]),f={bigCircleSize:58,smallCircleSize:28,buttonSize:10,arrowButtonOffset:20,incDecButtonSize:11,incButtonOffset:66,decButtonOffset:227,sliderLineStartOffset:88.5,sliderLineEndOffset:205.5,sliderLength:20,sliderWidth:8,trackerGap:4},p={};function m(t){this._params=t,this._createElements(t.renderer,t.container,t.dataKey),t.layoutControl.addItem(this),this._subscribeToProjection(t.projection),this._subscribeToTracker(t.tracker),this._createCallbacks(t.projection)}function g(t){delete t._owner,t.update=function(){},t.finish=function(){}}function _(t,e){this._owner=t,this._command=e}function v(t,e,n){this._command=e;var i=null,o=0,r=0;switch(this._command){case"command-move-up":r=-10;break;case"command-move-right":o=10;break;case"command-move-down":r=10;break;case"command-move-left":o=-10}this._stop=function(){return clearTimeout(i),t._callbacks.endMove(),this._stop=t=null,this},t._callbacks.beginMove(),function e(){t._callbacks.move([o,r]),i=setTimeout(e,100)}()}function y(t,e){this._owner=t,this._command=e;var n=null,i="command-zoom-in"===this._command?1:-1;this._stop=function(){return clearTimeout(n),this._stop=t=null,this},function e(){t._adjustZoom(t._zoomFactor+i),n=setTimeout(e,150)}()}function b(t,e,n){this._owner=t,this._zoomFactor=t._zoomFactor,this._pos=n.y}p["command-reset"]=_,p["command-move-up"]=p["command-move-right"]=p["command-move-down"]=p["command-move-left"]=v,p["command-zoom-in"]=p["command-zoom-out"]=y,p["command-zoom-drag"]=b,m.prototype={constructor:m,_flags:0,dispose:function(){this._params.layoutControl.removeItem(this),this._root.linkRemove().linkOff(),this._offProjection(),this._offTracker(),this._params=this._root=this._offProjection=this._offTracker=this._callbacks=null},_subscribeToProjection:function(t){var e=this;function n(){e._adjustZoom(t.getScaledZoom())}e._offProjection=t.on({engine:function(){e._update()},zoom:n,"max-zoom":function(){e._zoomPartition=t.getZoomScalePartition(),e._sliderUnitLength=e._sliderLineLength/e._zoomPartition,n()}})},_subscribeToTracker:function(t){var e=this,n=!1;e._offTracker=t.on({start:function(t){(n="control-bar"===t.data.name)&&e._processStart(t.data.index,t)},move:function(t){n&&e._processMove(t.data.index,t)},end:function(){n&&(e._processEnd(),n=!1)}})},_createCallbacks:function(t){this._callbacks={reset:function(e,n){e&&t.setCenter(null),n&&t.setZoom(null)},beginMove:function(){t.beginMoveCenter()},endMove:function(){t.endMoveCenter()},move:function(e){t.moveCenter(e)},zoom:function(e){t.setScaledZoom(e)}}},_createElements:function(t,e,n){this._root=t.g().attr({class:"dxm-control-bar"}).linkOn(e,"control-bar");var i=this._buttonsGroup=t.g().attr({class:"dxm-control-buttons"}).append(this._root),o=t.g().attr({stroke:"none","stroke-width":0,fill:"#000000",opacity:1e-4}).css({cursor:"pointer"}).append(this._root);this._createButtons(t,n,i),this._createTrackers(t,n,o)},_createButtons:function(t,e,n){var i=f,o=i.buttonSize/2,r=i.arrowButtonOffset-o,a=i.arrowButtonOffset,l=i.incDecButtonSize/2,u={"stroke-linecap":"square",fill:"none"};t.circle(0,0,i.bigCircleSize/2).append(n),t.circle(0,0,o).attr({fill:"none"}).append(n),t.path([-o,-r,0,-a,o,-r],"line").attr(u).append(n),t.path([r,-o,a,0,r,o],"line").attr(u).append(n),t.path([o,r,0,a,-o,r],"line").attr(u).append(n),t.path([-r,o,-a,0,-r,-o],"line").attr(u).append(n),t.circle(0,i.incButtonOffset,i.smallCircleSize/2).append(n),t.path([[-l,i.incButtonOffset,l,i.incButtonOffset],[0,i.incButtonOffset-l,0,i.incButtonOffset+l]],"area").append(n),t.circle(0,i.decButtonOffset,i.smallCircleSize/2).append(n),t.path([-l,i.decButtonOffset,l,i.decButtonOffset],"area").append(n),this._zoomLine=t.path([],"line").append(n),this._zoomDrag=t.rect(s(-i.sliderLength/2),s(i.sliderLineEndOffset-i.sliderWidth/2),i.sliderLength,i.sliderWidth).append(n),this._sliderLineLength=i.sliderLineEndOffset-i.sliderLineStartOffset},_createTrackers:function(t,e,n){var i=f,o=a((i.arrowButtonOffset-i.trackerGap)/2),r=i.arrowButtonOffset-o,s=a(l(i.bigCircleSize*i.bigCircleSize/4-o*o)),u=s-r;t.rect(-o,-o,2*o,2*o).data(e,{index:"command-reset",name:"control-bar"}).append(n),t.rect(-o,-s,2*o,u).data(e,{index:"command-move-up",name:"control-bar"}).append(n),t.rect(r,-o,u,2*o).data(e,{index:"command-move-right",name:"control-bar"}).append(n),t.rect(-o,r,2*o,u).data(e,{index:"command-move-down",name:"control-bar"}).append(n),t.rect(-s,-o,u,2*o).data(e,{index:"command-move-left",name:"control-bar"}).append(n),t.circle(0,i.incButtonOffset,i.smallCircleSize/2).data(e,{index:"command-zoom-in",name:"control-bar"}).append(n),t.circle(0,i.decButtonOffset,i.smallCircleSize/2).data(e,{index:"command-zoom-out",name:"control-bar"}).append(n),t.rect(-2,i.sliderLineStartOffset-2,4,i.sliderLineEndOffset-i.sliderLineStartOffset+4).css({cursor:"default"}).data(e,{index:"command-zoom-drag-line",name:"control-bar"}).append(n),this._zoomDragTracker=t.rect(-i.sliderLength/2,i.sliderLineEndOffset-i.sliderWidth/2,i.sliderLength,i.sliderWidth).data(e,{index:"command-zoom-drag",name:"control-bar"}).append(n)},resize:function(t){this._isActive&&this._root.attr({visibility:null!==t?null:"hidden"})},getLayoutOptions:function(){return this._isActive?this._layoutOptions:null},locate:function(t,e){this._root.attr({translateX:t+this._margin+30.5,translateY:e+this._margin+30.5})},_update:function(){this._isActive=this._isEnabled&&this._flags&&this._params.projection.isInvertible(),this._isActive?this._root.linkAppend():this._root.linkRemove(),this._processEnd(),this.updateLayout()},setInteraction:function(t){c(t.centeringEnabled,!0)?this._flags|=1:this._flags&=-2,c(t.zoomingEnabled,!0)?this._flags|=2:this._flags&=-3,this._update()},setOptions:function(t){this._isEnabled=!!c(t.enabled,!0),this._margin=t.margin||0,this._layoutOptions={width:2*this._margin+61,height:2*this._margin+274,horizontalAlignment:d(t.horizontalAlignment,"left"),verticalAlignment:h(t.verticalAlignment,"top")},this._buttonsGroup.attr({"stroke-width":t.borderWidth,stroke:t.borderColor,fill:t.color,"fill-opacity":t.opacity}),this._update()},_adjustZoom:function(t){var e=f.sliderLineStartOffset,n=f.sliderLineEndOffset,i=f.sliderWidth;this._zoomFactor=r(o(a(t),this._zoomPartition),0);var s={translateY:-a(this._zoomFactor*this._sliderUnitLength)},l=n-i/2+s.translateY;this._zoomLine.attr({points:[[0,e,0,r(e,l)],[0,o(n,l+i),0,n]]}),this._zoomDrag.attr(s),this._zoomDragTracker.attr(s)},_applyZoom:function(){this._callbacks.zoom(this._zoomFactor)},_processStart:function(t,e){var n;this._isActive&&(n=p[t],this._command=n&&n.flags&this._flags?new n(this,t,e):null)},_processMove:function(t,e){this._command&&this._command.update(t,e)},_processEnd:function(){this._command&&this._command.finish(),this._command=null}},_.flags=3,_.prototype.update=function(t){t!==this._command&&g(this)},_.prototype.finish=function(){var t=this._owner._flags;this._owner._callbacks.reset(!!(1&t),!!(2&t)),g(this)},v.flags=1,v.prototype.update=function(t){this._command!==t&&this.finish()},v.prototype.finish=function(){g(this._stop())},y.flags=2,y.prototype.update=function(t){this._command!==t&&this.finish()},y.prototype.finish=function(){this._owner._applyZoom(),g(this._stop())},b.flags=2,b.prototype.update=function(t,e){var n=this._owner;n._adjustZoom(this._zoomFactor+n._zoomPartition*(this._pos-e.y)/n._sliderLineLength)},b.prototype.finish=function(){this._owner._applyZoom(),g(this)},e.ControlBar=m},function(t,e,n){"use strict";var i=Math.log,o=Math.LN2;function r(t){this._projection=t.projection,this._renderer=t.renderer,this._x=this._y=0,this._subscribeToTracker(t.tracker)}r.prototype={constructor:r,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(t){var e=this,n=!1;e._offTracker=t.on({start:function(t){(n="control-bar"!==t.data.name)&&e._processStart(t)},move:function(t){n&&e._processMove(t)},end:function(){n&&e._processEnd()},zoom:function(t){e._processZoom(t)}})},setInteraction:function(t){this._processEnd(),this._centeringEnabled=t.centeringEnabled,this._zoomingEnabled=t.zoomingEnabled},_processStart:function(t){this._centeringEnabled&&(this._x=t.x,this._y=t.y,this._projection.beginMoveCenter())},_processMove:function(t){this._centeringEnabled&&(this._renderer.root.attr({cursor:"move"}),this._projection.moveCenter([this._x-t.x,this._y-t.y]),this._x=t.x,this._y=t.y)},_processEnd:function(){this._centeringEnabled&&(this._renderer.root.attr({cursor:"default"}),this._projection.endMoveCenter())},_processZoom:function(t){var e,n,r;this._zoomingEnabled&&(t.delta?e=t.delta:t.ratio&&(e=i(t.ratio)/o),this._centeringEnabled&&(n=this._renderer.getRootOffset(),n=[t.x-n.left,t.y-n.top],r=this._projection.fromScreenPoint(n)),this._projection.changeScaledZoom(e),this._centeringEnabled&&this._projection.setCenterByPoint(r,n))}},e.GestureHandler=r},function(t,e,n){"use strict";function i(t){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var o=h(n(6)),r=h(n(10)),a=h(n(15)),s=h(n(526)),l=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==i(t)&&"function"!==typeof t)return{default:t};var e=d();if(e&&e.has(t))return e.get(t);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=o?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(11)),u=n(154),c=n(13);function d(){if("function"!==typeof WeakMap)return null;var t=new WeakMap;return d=function(){return t},t}function h(t){return t&&t.__esModule?t:{default:t}}var f,p,m=r.default.getNavigator(),g=Math,_=g.abs,v=g.sqrt,y=g.round,b=l.addNamespace,w=Date.now,x="dxVectorMap";function C(t){var e=this;e._root=t.root,e._createEventHandlers(t.dataKey),e._createProjectionHandlers(t.projection),e._initEvents(),e._focus=new p((function(t,n){e._fire(t,n)})),e._attachHandlers()}function S(t,e,n,i){return v((t-n)*(t-n)+(e-i)*(e-i))}function k(t){var e=t.originalEvent.type,n=t.originalEvent.pointerType;return/^touch/.test(e)||/^MSPointer/.test(e)&&4!==n||/^pointer/.test(e)&&"mouse"!==n}function I(t,e){for(var n,i=0,o=t.length;i<o;++i)if(t[i]){n=e[i];break}return b(n||e[i],x)}function T(t){var e=t.originalEvent,n=e.touches&&e.touches[0]||{};return{x:n.pageX||e.pageX||t.pageX,y:n.pageY||e.pageY||t.pageY}}function E(t){return t.originalEvent.pointerId}function O(t,e){var n=t.originalEvent;return(n=void 0!==n.pointerId?n.pointerId===e?n:null:n.touches[e])?{x:n.pageX||t.pageX,y:n.pageY||t.pageY}:null}!function(){var t=[m.pointerEnabled,m.msPointerEnabled,r.default.hasProperty("ontouchstart")];f={start:I(t,["pointerdown","MSPointerDown","touchstart mousedown","mousedown"]),move:I(t,["pointermove","MSPointerMove","touchmove mousemove","mousemove"]),end:I(t,["pointerup","MSPointerUp","touchend mouseup","mouseup"]),wheel:b(u.name,x)}}(),C.prototype={constructor:C,dispose:function(){this._detachHandlers(),this._disposeEvents(),this._focus.dispose(),this._root=this._focus=this._docHandlers=this._rootHandlers=null},_eventNames:["start","move","end","zoom","click","hover-on","hover-off","focus-on","focus-off","focus-move"],_startClick:function(t,e){if(e){var n=T(t);this._clickState={x:n.x,y:n.y,threshold:k(t)?20:5,time:w()}}},_endClick:function(t,e){var n,i,o=this._clickState;o&&(e&&w()-o.time<=500&&(n=o.threshold,i=T(t),_(i.x-o.x)<=n&&_(i.y-o.y)<=n&&this._fire("click",{data:e,x:i.x,y:i.y,$event:t})),this._clickState=null)},_startDrag:function(t,e){if(e){var n=T(t),i=this._dragState={x:n.x,y:n.y,data:e};this._fire("start",{x:i.x,y:i.y,data:i.data})}},_moveDrag:function(t,e){var n=this._dragState;if(n){var i=T(t),o=k(t)?10:5;(n.active||_(i.x-n.x)>o||_(i.y-n.y)>o)&&(n.x=i.x,n.y=i.y,n.active=!0,n.data=e||{},this._fire("move",{x:n.x,y:n.y,data:n.data}))}},_endDrag:function(){var t=this._dragState;t&&(this._dragState=null,this._fire("end",{x:t.x,y:t.y,data:t.data}))},_wheelZoom:function(t,e){if(e){var n=this._wheelLock,i=w();if(!(i-n.time<=50)){i-n.dirTime>300&&(n.dir=0);var o=function(t,e){if(0===t)return 0;var n=_(t),i=y(t/n);if(e.dir&&i!==e.dir)return 0;e.dir=i,n=n<.1?0:n<1?1:n>4?4:y(n);return i*n}(t.delta/120||0,n);if(0!==o){var r=T(t);this._fire("zoom",{delta:o,x:r.x,y:r.y}),n.time=n.dirTime=i}}}},_startZoom:function(t,e){if(k(t)&&e){var n,i,o=this._zoomState=this._zoomState||{};o.pointer1&&o.pointer2||(void 0===o.pointer1&&(o.pointer1=E(t)||0,n=O(t,o.pointer1),o.x1=o.x1_0=n.x,o.y1=o.y1_0=n.y),void 0===o.pointer2&&(i=E(t)||1)!==o.pointer1&&(n=O(t,i))&&(o.x2=o.x2_0=n.x,o.y2=o.y2_0=n.y,o.pointer2=i,o.ready=!0,this._endDrag()))}},_moveZoom:function(t){var e,n=this._zoomState;n&&k(t)&&(void 0!==n.pointer1&&(e=O(t,n.pointer1))&&(n.x1=e.x,n.y1=e.y),void 0!==n.pointer2&&(e=O(t,n.pointer2))&&(n.x2=e.x,n.y2=e.y))},_endZoom:function(t){var e,n,i=this._zoomState;i&&k(t)&&(i.ready&&(e=S(i.x1_0,i.y1_0,i.x2_0,i.y2_0),n=S(i.x1,i.y1,i.x2,i.y2),this._fire("zoom",{ratio:n/e,x:(i.x1_0+i.x2_0)/2,y:(i.y1_0+i.y2_0)/2})),this._zoomState=null)},_startHover:function(t,e){this._doHover(t,e,!0)},_moveHover:function(t,e){this._doHover(t,e,!1)},_doHover:function(t,e,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelHover():k(t)!==n||this._hoverTarget===t.target||this._hoverState&&this._hoverState.data===e||(this._cancelHover(),e&&(this._hoverState={data:e},this._fire("hover-on",{data:e})),this._hoverTarget=t.target)},_cancelHover:function(){var t=this._hoverState;this._hoverState=this._hoverTarget=null,t&&this._fire("hover-off",{data:t.data})},_startFocus:function(t,e){this._doFocus(t,e,!0)},_moveFocus:function(t,e){this._doFocus(t,e,!1)},_doFocus:function(t,e,n){this._dragState&&this._dragState.active||this._zoomState&&this._zoomState.ready?this._cancelFocus():k(t)===n&&(this._focus.turnOff(),e&&this._focus.turnOn(e,T(t)))},_cancelFocus:function(){this._focus.cancel()},_createEventHandlers:function(t){var e=this;function n(e){var n=e.target;return("tspan"===n.tagName?n.parentNode:n)[t]}e._docHandlers={},e._rootHandlers={},e._rootHandlers[f.start]=e._docHandlers[f.start]=function(t){var i=k(t),o=n(t);i&&!e._isTouchEnabled||(o&&(t.preventDefault(),t.stopPropagation()),e._startClick(t,o),e._startDrag(t,o),e._startZoom(t,o),e._startHover(t,o),e._startFocus(t,o))},e._docHandlers[f.move]=function(t){var i=k(t),o=n(t);i&&!e._isTouchEnabled||(e._moveDrag(t,o),e._moveZoom(t,o),e._moveHover(t,o),e._moveFocus(t,o))},e._docHandlers[f.end]=function(t){var i=k(t),o=n(t);i&&!e._isTouchEnabled||(e._endClick(t,o),e._endDrag(t,o),e._endZoom(t,o))},e._rootHandlers[f.wheel]=function(t){if(e._cancelFocus(),e._isWheelEnabled){var i=n(t);i&&(t.preventDefault(),t.stopPropagation(),e._wheelZoom(t,i))}},e._wheelLock={dir:0}},_createProjectionHandlers:function(t){var e=this;function n(){e._cancelFocus()}t.on({center:n,zoom:n})},reset:function(){this._clickState=null,this._endDrag(),this._cancelHover(),this._cancelFocus()},setOptions:function(t){this.reset(),this._detachHandlers(),this._isTouchEnabled=!!(0,c.parseScalar)(t.touchEnabled,!0),this._isWheelEnabled=!!(0,c.parseScalar)(t.wheelEnabled,!0),this._attachHandlers()},_detachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"","-webkit-user-select":""}).off(b("MSHoldVisual",x)).off(b("contextmenu",x)),o.default.off(a.default.getDocument(),this._docHandlers),this._root.off(this._rootHandlers)},_attachHandlers:function(){this._isTouchEnabled&&this._root.css({"touch-action":"none","-webkit-user-select":"none"}).on(b("MSHoldVisual",x),(function(t){t.preventDefault()})).on(b("contextmenu",x),(function(t){k(t)&&t.preventDefault()})),o.default.on(a.default.getDocument(),this._docHandlers),this._root.on(this._rootHandlers)}},p=function(t){var e,n,i=this,o=null,r=null,a=!1,s=null;i.dispose=function(){clearTimeout(s),i.turnOn=i.turnOff=i.cancel=i.dispose=i=t=o=r=s=null},i.turnOn=function(i,l){function u(t){a=!t,t&&(o=r,clearTimeout(s),s=null)}i===r&&a||(a=!1,r=i,o?(e=l.x,n=l.y,r===o?(t("focus-move",{data:r,x:e,y:n}),u(!0)):t("focus-on",{data:r,x:e,y:n,done:u})):(e=l.x,n=l.y,t("focus-on",{data:r,x:e,y:n,done:u})))},i.turnOff=function(){r=null,o&&!a&&(s=s||setTimeout((function(){s=null,t("focus-off",{data:o}),o=null}),100))},i.cancel=function(){clearTimeout(s),o&&t("focus-off",{data:o}),o=r=s=null}},s.default.makeEventEmitter(C),e.Tracker=C},function(t,e,n){"use strict";var i=n(39);function o(){this._store={}}o.prototype={constructor:o,dispose:function(){return this._store=null,this},_get:function(t,e){var n=this._store[t]||(this._store[t]={});return n[e]||(n[e]={callbacks:i()})},set:function(t,e,n){var i=this._get(t,e);return i.data=n,i.callbacks.fire(n),this},bind:function(t,e,n){var i=this._get(t,e);return i.callbacks.add(n),i.data&&n(i.data),this},unbind:function(t,e,n){return this._get(t,e).callbacks.remove(n),this}},e.DataExchanger=o},function(t,e,n){"use strict";var i=n(0).extend,o=n(5).each,r=i,a=o,s=n(227).Legend,l={category:"UNKNOWN",name:"UNKNOWN"};var u=function(t){var e=this;e._params=t,e._root=t.renderer.g().attr({class:"dxm-legend"}).linkOn(t.container,{name:"legend",after:"legend-base"}).enableLinks().linkAppend(),t.layoutControl.addItem(e),s.call(e,{renderer:t.renderer,widget:t.widget,group:e._root,backgroundClass:null,itemsGroupClass:null,textField:"text",getFormatObject:function(t){return t}}),e._onDataChanged=function(t){e._updateData(t)}};function c(t){this._params=t,this._items=[],t.container.virtualLink("legend-base")}u.prototype=r(n(54).clone(s.prototype),{constructor:u,dispose:function(){var t=this;return t._params.layoutControl.removeItem(t),t._unbindData(),t._root.linkRemove().linkOff(),t._params=t._root=t._onDataChanged=null,s.prototype.dispose.apply(t,arguments)},resize:function(t){this._params.notifyDirty(),null===t?this.erase():this.draw(t.width,t.height),this._params.notifyReady()},locate:s.prototype.shift,_updateData:function(t){this._options.defaultColor=t&&t.defaultColor,this.update(t?function(t,e,n){var i,o,r=e.length,a=[];for(i=0;i<r;++i)a[i]=o={start:t[i],end:t[i+1],index:i},o[n]=e[i],o.states={normal:{fill:o.color}},o.visible=!0;return a}(t.partition,t.values,this._dataName):[],this._options,this._params.themeManager.theme("legend").title),this.updateLayout()},_unbindData:function(){this._dataCategory&&this._params.dataExchanger.unbind(this._dataCategory,this._dataName,this._onDataChanged)},_bindData:function(t){this._params.dataExchanger.bind(this._dataCategory=t.category,this._dataName=t.name,this._onDataChanged)},setOptions:function(t){this.update(this._data,t,this._params.themeManager.theme("legend").title),this._unbindData();var e=t.source;return this._bindData(e?{category:e.layer,name:e.grouping}:l),this.updateLayout(),this}}),c.prototype={constructor:c,dispose:function(){a(this._items,(function(t,e){e.dispose()})),this._params=this._items=null},setOptions:function(t){var e,n=t&&t.length?t:[],i=this._items,o=n.length,a=this._params,s=a.themeManager.theme("legend");for(e=i.length;e<o;++e)i[e]=new u(a);for(e=i.length-1;e>=o;--e)i[e].dispose(),i.splice(e,1);for(a.layoutControl.suspend(),e=0;e<o;++e)i[e].setOptions(r(!0,{},s,n[e]));a.layoutControl.resume()}},e.LegendsControl=c},function(t,e,n){"use strict";var i=n(16).inArray,o=n(5).each,r=Math.round,a=Math.min,s=Math.max,l=o,u=i,c={left:0,center:1,right:2},d={top:0,bottom:1};function h(t,e){var n=(t.right-t.left)/3,i=(t.bottom-t.top)/2,o=t.left,a=r(o+n),s=r(o+n+n),u=t.right,h=t.top,f=r(h+i),p=t.bottom,m=[{rect:[o,h,a,f]},{rect:[a,h,s,f],center:!0},{rect:[s,h,u,f],horInversion:!0},{rect:[o,f,a,p],verInversion:!0},{rect:[a,f,s,p],center:!0,verInversion:!0},{rect:[s,f,u,p],horInversion:!0,verInversion:!0}],g=[[],[],[],[],[],[]];return l(e,(function(t,e){var n=e.getLayoutOptions();n&&g[function(t){return 3*d[t.verticalAlignment]+c[t.horizontalAlignment]}(n)].push({item:e,width:n.width,height:n.height})})),l(m,(function(t,e){g[t].length?e.items=g[t]:(e.center?e.rect[0]=e.rect[2]=(e.rect[0]+e.rect[2])/2:e.rect[e.horInversion?0:2]=e.rect[e.horInversion?2:0],e.rect[e.verInversion?1:3]=e.rect[e.verInversion?3:1])})),m}function f(t,e){var n=!1;return function(t){l([0,1,2,3,4,5],(function(e,n){var i=t[n],o=t[(n+3)%6];i.items&&(o.items||(i.rect[1]=a(i.rect[1],o.rect[3]),i.rect[3]=s(i.rect[3],o.rect[1])))})),l([1,4],(function(e,n){var i,o,r=t[n],a=t[n-1],s=t[n+1];r.items?a.items||s.items||((i=r.rect[0]-a.rect[2])>(o=s.rect[0]-r.rect[2])?i/o>=2?(r.rect[0]-=i,r.right=!0):(r.rect[0]-=o,r.rect[2]+=o):o/i>=2?(r.rect[2]+=o,r.center=null):(r.rect[0]-=i,r.rect[2]+=i)):(a.items&&(a.rect[2]=(r.rect[0]+r.rect[2])/2),s.items&&(s.rect[0]=(r.rect[0]+r.rect[2])/2))}))}(t),l(t,(function(t,i){i.items&&(n=function(t,e){var n=t.rect,i=n[2]-n[0],o=n[3]-n[1],u=0,c=0,d=0,h=n[2],f=n[3],p=n[0],m=n[1],g=[],_=!1;l(t.items,(function(r,l){if(l.width>i||l.height>o)return g.push(null),_=!0,e||!1;if(u+l.width>i&&(c+=d,u=d=0),c+l.height>o)return g.push(null),_=!0,e||!1;d=s(d,l.height);var v=t.horInversion?n[2]-l.width-u:n[0]+u,y=t.verInversion?n[3]-l.height-c:n[1]+c;u+=l.width,h=a(h,v),f=a(f,y),p=s(p,v+l.width),m=s(m,y+l.height),g.push([v,y])})),(e||!_)&&(u=0,t.right?u=n[2]-n[0]-p+h:t.center&&(u=r((n[2]-n[0]-p+h)/2)),l(t.items,(function(t,e){var n=g[t];n?e.item.locate(n[0]+u,n[1]):e.item.resize(null)})),t.rect=[h,f,p,m],t.items=null);return _}(i,e)||n)})),n}function p(){var t=this;t._items=[],t._suspended=0,t._updateLayout=function(){t._update()}}p.prototype={constructor:p,dispose:function(){this._items=this._updateLayout=null},setSize:function(t){this._canvas=t,this._update()},suspend:function(){++this._suspended},resume:function(){0===--this._suspended&&this._update()},addItem:function(t){this._items.push(t),t.updateLayout=this._updateLayout},removeItem:function(t){this._items.splice(u(t,this._items),1),t.updateLayout=null},_update:function(){var t;0===this._suspended&&(t=this._canvas,l(this._items,(function(e,n){n.resize(t)})),function(t,e){var n=h(t,e);f(n)&&f(n,!0)}({left:t.left,top:t.top,right:t.width+t.left,bottom:t.height+t.top},this._items))}},e.LayoutControl=p},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e._TESTS_findGroupingIndex=e._TESTS_groupBySize=e._TESTS_stub_groupBySize=e._TESTS_groupByColor=e._TESTS_stub_groupByColor=e._TESTS_performGrouping=e._TESTS_stub_performGrouping=e._TESTS_createProxy=e._TESTS_stub_MapLayerElement=e._TESTS_MapLayerElement=e._TESTS_stub_selectStrategy=e._TESTS_selectStrategy=e._TESTS_stub_MapLayer=e._TESTS_MapLayer=void 0,e.getMaxBound=k,e.MapLayerCollection=lt;var i=n(4),o=n(0),r=n(5),a=c(n(99)),s=n(2),l=c(n(7)),u=n(13);function c(t){return t&&t.__esModule?t:{default:t}}var d=i.noop,h=o.extend,f=r.each,p=Array.prototype.concat,m=[0,1,2,2],g={none:null,single:-1,multiple:NaN},_=Array.isArray,v=Number,y=String,b=Math.abs,w=Math.round,x=Math.min,C=Math.max,S=Math.sqrt;function k(t){return t.reduce((function(t,e){return e?[x(t[0],e[0]),x(t[1],e[1]),C(t[2],e[2]),C(t[3],e[3])]:t}),t[0])}function I(t,e){return(t[e]||{}).name}function T(){}function E(t){this.raw=t}function O(t){this.raw=t}function M(t){return _(t.features)}function P(t){t.text.attr({visibility:t.size[0]/t.spaceSize[0]<1&&t.size[1]/t.spaceSize[1]<1?null:"hidden"})}function D(t){t.text.attr({visibility:t.size[0]/t.spaceSize[0]<1||t.size[1]/t.spaceSize[1]<1?null:"hidden"})}function A(t,e){return t.attribute(e)}T.prototype.count=function(){return 0},E.prototype={constructor:E,count:function(){return this.raw.length},item:function(t){return this.raw[t]},geometry:function(t){return{coordinates:t.coordinates}},attributes:function(t){return t.attributes},getBBox:function(t){return 0===arguments.length?void 0:this.raw[t].bbox}},O.prototype={constructor:O,count:function(){return this.raw.features.length},item:function(t){return this.raw.features[t]},geometry:function(t){return t.geometry},attributes:function(t){return t.properties},getBBox:function(t){return 0===arguments.length?this.raw.bbox:this.raw.features[t].bbox}};var R={Point:"marker",MultiPoint:"line",LineString:"line",MultiLineString:"line",Polygon:"area",MultiPolygon:"area"};function B(t,e){return void 0!==t?t:e}var N,L,F={setup:d,reset:d,arrange:d,updateGrouping:d,getDefaultColor:d},V={},z={},j={},H=function(t,e){var n,i=(0,u.normalizeEnum)(t.type),o=(0,u.normalizeEnum)(t.elementType),r=h({},F);return e.count()>0&&(n=e.geometry(e.item(0)),i=V[i]?i:function(t){var e=R[t.type],n=t.coordinates;return e||(e="number"===typeof n[0]?"marker":"number"===typeof n[0][0]?"line":"area"),e}(n),h(r,V[i]),r.fullType=r.type=i,z[i]&&h(r,z[i](n)),j[i]&&(o=j[i][o]?o:j[i]._default,h(r,j[i][o]),r.elementType=o,r.fullType+=":"+o)),r};function W(t,e,n,i){t[i].attr(e[i][n])}function U(t,e){var n,i=[],o=i.length=e.length;for(n=0;n<o;++n)i[n]=t.project(e[n]);return i}function G(t,e){return[U(t,e)]}function K(t,e){var n,i=[],o=i.length=e.length;for(n=0;n<o;++n)i[n]=U(t,e[n]);return i}function q(t,e){var n,i,o=[],r=e.length,a=0;for(o.length=2*r,n=0;n<r;++n)i=t.transform(e[n]),o[a++]=i[0],o[a++]=i[1];return o}function $(t,e,n){var i,o=[],r=o.length=n.length;for(i=0;i<r;++i)o[i]=q(e,n[i]);t.root.attr({points:o})}function Y(t,e,n){var i=J(t.settings,n);return function(t,e,n){f(t,(function(t,i){var o=Z(i.callback(e,i.field),i.partition);o>=0&&(n[t]=i.values[o])}))}(t.grouping,e,i),void 0===n.color&&n.paletteIndex>=0&&(i.color=i._colors[n.paletteIndex]),i}function Z(t,e){var n,i=0,o=e.length-1,r=-1;if(e[i]<=t&&t<=e[o])if(t===e[o])r=o-1;else{for(;o-i>1;)t<e[n=i+o>>1]?o=n:i=n;r=i}return r}function X(t,e,n,i){t.params.eventTrigger(i,{target:e.proxy,state:n})}function J(t,e){var n=h({},t,e);return n.label=h({},t.label,n.label),n.label.font=h({},t.label.font,n.label.font),n}function Q(t,e){return t.attribute(e)}V.area={projectLabel:function(t){var e,n,i,o=t.length,r=0;for(e=0;e<o;++e)(n=at(t[e])).area>r&&(r=n.area,i=n);return i?[i.center,[S(i.area),S(i.area)]]:[[],[]]},transform:$,transformLabel:function(t,e,n){var i=e.transform(n[0]);t.spaceSize=e.getSquareSize(n[1]),t.text.attr({translateX:i[0],translateY:i[1]}),P(t)},draw:function(t,e,n){e.root=t.renderer.path([],"area").data(t.dataKey,n)},refresh:d,getLabelOffset:function(t){return P(t),[0,0]},getStyles:function(t){var e=t.color||null,n=t.borderColor||null,i=B(t.borderWidth,null),o=B(t.opacity,null);return{root:[{class:"dxm-area",stroke:n,"stroke-width":i,fill:e,opacity:o},{class:"dxm-area dxm-area-hovered",stroke:t.hoveredBorderColor||n,"stroke-width":B(t.hoveredBorderWidth,i),fill:t.hoveredColor||e,opacity:B(t.hoveredOpacity,o)},{class:"dxm-area dxm-area-selected",stroke:t.selectedBorderColor||n,"stroke-width":B(t.selectedBorderWidth,i),fill:t.selectedColor||e,opacity:B(t.selectedOpacity,o)}]}},setState:function(t,e,n){W(t,e,n,"root")},hasLabelsGroup:!0,updateGrouping:function(t){N(t)},getDefaultColor:d},V.line={projectLabel:function(t){var e,n,i,o=t.length,r=0;for(e=0;e<o;++e)(n=st(t[e]))[2]>r&&(r=n[2],i=n);return i||[[],[]]},transform:$,transformLabel:function(t,e,n){var i=e.transform(n[0]);t.spaceSize=e.getSquareSize(n[1]),t.text.attr({translateX:i[0],translateY:i[1]}),D(t)},draw:function(t,e,n){e.root=t.renderer.path([],"line").data(t.dataKey,n)},refresh:d,getLabelOffset:function(t){return D(t),[0,0]},getStyles:function(t){var e=t.color||t.borderColor||null,n=B(t.borderWidth,null),i=B(t.opacity,null);return{root:[{class:"dxm-line",stroke:e,"stroke-width":n,opacity:i},{class:"dxm-line dxm-line-hovered",stroke:t.hoveredColor||t.hoveredBorderColor||e,"stroke-width":B(t.hoveredBorderWidth,n),opacity:B(t.hoveredOpacity,i)},{class:"dxm-line dxm-line-selected",stroke:t.selectedColor||t.selectedBorderColor||e,"stroke-width":B(t.selectedBorderWidth,n),opacity:B(t.selectedOpacity,i)}]}},setState:function(t,e,n){W(t,e,n,"root")},hasLabelsGroup:!0,updateGrouping:function(t){N(t)},getDefaultColor:d},V.marker={project:function(t,e){return t.project(e)},transform:function(t,e,n){var i=e.transform(n);t.root.attr({translateX:i[0],translateY:i[1]})},draw:function(t,e,n){e.root=t.renderer.g(),this._draw(t,e,n)},refresh:d,hasLabelsGroup:!1,getLabelOffset:function(t,e){return[w((t.size[0]+C(e.size||0,0))/2)+2,0]},getStyles:function(t){var e={root:[{class:"dxm-marker"},{class:"dxm-marker dxm-marker-hovered"},{class:"dxm-marker dxm-marker-selected"}]};return this._getStyles(e,t),e},setState:function(t,e,n){W(t,e,n,"root"),this._setState(t,e,n)},updateGrouping:function(t){N(t),L(t)},getDefaultColor:function(t,e){return t.params.themeManager.getAccentColor(e)}},z.area=function(t){return{project:function(t,e){return e[0]&&e[0][0]&&e[0][0][0]&&"number"===typeof e[0][0][0][0]?function(t,e){var n,i=[],o=i.length=e.length;for(n=0;n<o;++n)i[n]=K(t,e[n]);return p.apply([],i)}(t,e):K(t,e)}}},z.line=function(t){var e=t.coordinates;return{project:e[0]&&e[0][0]&&"number"===typeof e[0][0][0]?K:G}},j.marker={_default:"dot",dot:{setup:function(t){t.filter=t.renderer.shadowFilter("-40%","-40%","180%","200%",0,1,1,"#000000",.2)},reset:function(t){t.filter.dispose(),t.filter=null},_draw:function(t,e,n){e.back=t.renderer.circle().sharp().data(t.dataKey,n).append(e.root),e.dot=t.renderer.circle().sharp().data(t.dataKey,n).append(e.root)},refresh:function(t,e,n,i,o){e.dot.attr({filter:o.shadow?t.filter.id:null})},_getStyles:function(t,e){var n=e.size>0?v(e.size):0,i=n,o=n+(e.selectedStep>0?v(e.selectedStep):0),r=i+(e.backStep>0?v(e.backStep):0),a=o+(e.backStep>0?v(e.backStep):0),s=e.color||null,l=e.borderColor||null,u=B(e.borderWidth,null),c=B(e.opacity,null),d=e.backColor||null,h=B(e.backOpacity,null);t.dot=[{r:n/2,stroke:l,"stroke-width":u,fill:s,opacity:c},{r:i/2,stroke:e.hoveredBorderColor||l,"stroke-width":B(e.hoveredBorderWidth,u),fill:e.hoveredColor||s,opacity:B(e.hoveredOpacity,c)},{r:o/2,stroke:e.selectedBorderColor||l,"stroke-width":B(e.selectedBorderWidth,u),fill:e.selectedColor||s,opacity:B(e.selectedOpacity,c)}],t.back=[{r:n/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:r/2,stroke:"none","stroke-width":0,fill:d,opacity:h},{r:a/2,stroke:"none","stroke-width":0,fill:d,opacity:h}]},_setState:function(t,e,n){W(t,e,n,"dot"),W(t,e,n,"back")}},bubble:{_draw:function(t,e,n){e.bubble=t.renderer.circle().sharp().data(t.dataKey,n).append(e.root)},refresh:function(t,e,n,i,o){e.bubble.attr({r:o.size/2})},_getStyles:function(t,e){var n=e.color||null,i=e.borderColor||null,o=B(e.borderWidth,null),r=B(e.opacity,null);t.bubble=[{stroke:i,"stroke-width":o,fill:n,opacity:r},{stroke:e.hoveredBorderColor||i,"stroke-width":B(e.hoveredBorderWidth,o),fill:e.hoveredColor||e.color,opacity:B(e.hoveredOpacity,r)},{stroke:e.selectedBorderColor||i,"stroke-width":B(e.selectedBorderWidth,o),fill:e.selectedColor||e.color,opacity:B(e.selectedOpacity,r)}]},_setState:function(t,e,n){W(t,e,n,"bubble")},arrange:function(t,e){var n,i=[],o=i.length=e.length,r=t.settings,a=r.dataField,s=r.minSize>0?v(r.minSize):0,l=r.maxSize>s?v(r.maxSize):s;if(!r.sizeGroups){for(n=0;n<o;++n)i[n]=C(A(e[n].proxy,a)||0,0);var u=x.apply(null,i),c=C.apply(null,i)-u||1,d=l-s;for(n=0;n<o;++n)e[n]._settings.size=s+d*(i[n]-u)/c}},updateGrouping:function(t){var e=t.settings.dataField;V.marker.updateGrouping(t),L(t,(function(t){return A(t,e)}))}},pie:{_draw:function(t,e,n){e.pie=t.renderer.g().append(e.root),e.border=t.renderer.circle().sharp().data(t.dataKey,n).append(e.root)},refresh:function(t,e,n,i,o){var r=A(i,t.settings.dataField)||[],a=o._colors,s=0,l=e.pie,u=t.renderer,c=t.dataKey,d=(o.size>0?v(o.size):0)/2,h=90,f=h,p=!1;0===(s=r.reduce((function(t,e){return t+(e||0)}),0))&&(p=!0,s=360/r.length),r.forEach((function(t,e){h=f,f+=p?s:(t||0)/s*360,u.arc(0,0,0,d,h,f).attr({"stroke-linejoin":"round",fill:a[e]}).data(c,n).append(l)})),e.border.attr({r:d})},_getStyles:function(t,e){var n=B(e.opacity,null),i=e.borderColor||null,o=B(e.borderWidth,null);t.pie=[{opacity:n},{opacity:B(e.hoveredOpacity,n)},{opacity:B(e.selectedOpacity,n)}],t.border=[{stroke:i,"stroke-width":o},{stroke:e.hoveredBorderColor||i,"stroke-width":B(e.hoveredBorderWidth,o)},{stroke:e.selectedBorderColor||i,"stroke-width":B(e.selectedBorderWidth,o)}]},_setState:function(t,e,n){W(t,e,n,"pie"),W(t,e,n,"border")},arrange:function(t,e){var n,i,o=e.length,r=t.settings.dataField,a=0;for(n=0;n<o;++n)(i=A(e[n].proxy,r))&&i.length>a&&(a=i.length);a>0&&(i=t.params.themeManager.createPalette(t.settings.palette,{useHighlight:!0,extensionMode:"alternate"}).generateColors(a),t.settings._colors=i,t.grouping.color={callback:d,field:"",partition:[],values:[]},t.params.dataExchanger.set(t.name,"color",{partition:[],values:i}))}},image:{_draw:function(t,e,n){e.image=t.renderer.image(null,null,null,null,null,"center").attr({"pointer-events":"visible"}).data(t.dataKey,n).append(e.root)},refresh:function(t,e,n,i){e.image.attr({href:A(i,t.settings.dataField)})},_getStyles:function(t,e){var n=e.size>0?v(e.size):0,i=n+(e.hoveredStep>0?v(e.hoveredStep):0),o=n+(e.selectedStep>0?v(e.selectedStep):0),r=B(e.opacity,null);t.image=[{x:-n/2,y:-n/2,width:n,height:n,opacity:r},{x:-i/2,y:-i/2,width:i,height:i,opacity:B(e.hoveredOpacity,r)},{x:-o/2,y:-o/2,width:o,height:o,opacity:B(e.selectedOpacity,r)}]},_setState:function(t,e,n){W(t,e,n,"image")}}};var tt,et=function(t,e,n,i,o){var r;i&&e&&e.length>1&&(r=o(e.length-1),t.grouping[n]={callback:(0,s.isFunction)(i)?i:Q,field:i,partition:e,values:r},t.params.dataExchanger.set(t.name,n,{partition:e,values:r,defaultColor:t.settings.color}))};function nt(t){var e=t.name,n=t.params.dataExchanger;f(t.grouping,(function(t){n.set(e,t,null)})),t.grouping={}}function it(t,e,n){return n?t|=e:t&=~e,t}function ot(t,e){return!!(t&e)}N=function(t){et(t,t.settings.colorGroups,"color",t.settings.colorGroupingField,(function(e){var n,i=t.params.themeManager.createDiscretePalette(t.settings.palette,e),o=[];for(n=0;n<e;++n)o.push(i.getColor(n));return o}))},L=function(t,e){var n=t.settings;et(t,n.sizeGroups,"size",e||n.sizeGroupingField,(function(t){var e=n.minSize>0?v(n.minSize):0,i=n.maxSize>=e?v(n.maxSize):0,o=0,r=[];if(t>1)for(o=0;o<t;++o)r.push((e*(t-o-1)+i*o)/(t-1));else 1===t&&r.push((e+i)/2);return r}))};var rt=function(t,e,n,i){this._params=t,this._onProjection(),this.proxy=function(t,e,n){var i={index:n,name:e,getElements:function(){return t.getProxies()},clearSelection:function(e){return t.clearSelection(e),i},getDataSource:function(){return t.getDataSource()},getBounds:function(){return t.getBounds()}};return i}(this,n,i),this._context={name:n,layer:this.proxy,renderer:t.renderer,projection:t.projection,params:t,dataKey:t.dataKey,str:F,hover:!1,selection:null,grouping:{},root:t.renderer.g().attr({class:"dxm-layer"}).linkOn(e,n).linkAppend()},this._container=e,this._options={},this._handles=[],this._data=new T,this._dataSourceLoaded=null};function at(t){var e,n,i,o=t.length,r=t[o-1],a=0,s=0,l=0,u=1/0,c=-1/0,d=1/0,h=-1/0;for(e=0;e<o;++e)n=r,r=t[e],l+=i=n[0]*r[1]-r[0]*n[1],a+=(n[0]+r[0])*i,s+=(n[1]+r[1])*i,u=x(u,r[0]),c=C(c,r[0]),d=x(d,r[1]),h=C(h,r[1]);return{area:b(l)/2,center:[2*a/3/l-(u+c)/2,2*s/3/l-(d+h)/2]}}function st(t){var e,n,i=t.length,o=t[0]||[],r=0,a=[0],s=o[0],l=o[0],u=o[1],c=o[1];for(e=1;e<i;++e)n=o,o=t[e],r+=S((n[0]-o[0])*(n[0]-o[0])+(n[1]-o[1])*(n[1]-o[1])),a[e]=r,s=x(s,o[0]),l=C(l,o[0]),u=x(u,o[1]),c=C(c,o[1]);n=t[e=Z(r/2,a)],o=t[e+1];var d=(r/2-a[e])/(a[e+1]-a[e]);return i?[[n[0]*(1-d)+o[0]*d,n[1]*(1-d)+o[1]*d],[l-s,c-u],r]:[]}function lt(t){var e=t.renderer;this._params=t,this._layers=[],this._layerByName={},this._rect=[0,0,0,0],this._clip=e.clipRect(),this._background=e.rect().attr({class:"dxm-background"}).data(t.dataKey,{name:"background"}).append(e.root),this._container=e.g().attr({class:"dxm-layers","clip-path":this._clip.id}).append(e.root).enableLinks(),this._subscribeToTracker(t.tracker,e,t.eventTrigger),this._dataReady=t.dataReady}rt.prototype=h({constructor:rt,getDataReadyCallback:function(){return this._dataSourceLoaded},_onProjection:function(){var t=this;t._removeHandlers=t._params.projection.on({engine:function(){t._project()},screen:function(){t._transform()},center:function(){t._transformCore()},zoom:function(){t._transform()}})},getData:function(){return this._data},_dataSourceLoadErrorHandler:function(){this._dataSourceChangedHandler()},_dataSourceChangedHandler:function(){this._data=function(t){var e;return t&&(M(t)?e=O:1===t.length&&t[0]&&M(t[0])?(e=O,t=t[0]):_(t)&&(e=E)),new(e=e||T)(t)}(this._dataSource&&this._dataSource.items()),this._update(!0)},_dataSourceOptions:function(){return{paginate:!1}},_getSpecificDataSourceOption:function(){return this._specificDataSourceOption},_normalizeDataSource:function(t){var e=t.store();return"raw"===e._loadMode&&(e._loadMode=void 0),t},_offProjection:function(){this._removeHandlers(),this._removeHandlers=null},dispose:function(){return this._disposeDataSource(),this._destroyHandles(),nt(this._context),this._context.root.linkRemove().linkOff(),this._context.labelRoot&&this._context.labelRoot.linkRemove().linkOff(),this._context.str.reset(this._context),this._offProjection(),this._params=this._container=this._context=this.proxy=null,this},setOptions:function(t){var e;t=this._options=t||{},this._dataSourceLoaded=new l.default.Deferred,"dataSource"in t&&t.dataSource!==this._options_dataSource?(this._options_dataSource=t.dataSource,this._params.notifyDirty(),this._specificDataSourceOption=(e=t.dataSource)?M(e)?[e]:e:[],this._refreshDataSource()):this._data.count()>0&&(this._params.notifyDirty(),this._update(void 0!==t.type&&t.type!==this._context.str.type||void 0!==t.elementType&&t.elementType!==this._context.str.elementType)),this._transformCore()},_update:function(t){var e=this._context;t&&(e.str.reset(e),e.root.clear(),e.labelRoot&&e.labelRoot.clear(),this._params.tracker.reset(),this._destroyHandles(),e.str=H(this._options,this._data),e.str.setup(e),this.proxy.type=e.str.type,this.proxy.elementType=e.str.elementType),e.settings=function(t,e){var n,i,o,r=t.params.themeManager,a=t.str,s=J(h({label:{},color:a.getDefaultColor(t,e.palette)},r.theme("layer:"+a.fullType)),e);if(s.paletteSize>0){for(o=r.createDiscretePalette(s.palette,s.paletteSize),i=0,n=[];i<s.paletteSize;++i)n.push(o.getColor(i));s._colors=n}return s}(e,this._options),e.hasSeparateLabel=!(!e.settings.label.enabled||!e.str.hasLabelsGroup),e.hover=!!(0,u.parseScalar)(e.settings.hoverEnabled,!0),e.selection&&f(e.selection.state,(function(t,e){e&&e.resetSelected()})),e.selection=function(t){var e=(0,u.normalizeEnum)(t);return null!==(e=e in g?g[e]:g.single)&&(e={state:{},single:e}),e}(e.settings.selectionMode),e.hasSeparateLabel?e.labelRoot||(e.labelRoot=e.renderer.g().attr({class:"dxm-layer-labels"}).linkOn(this._container,{name:e.name+"-labels",after:e.name}).linkAppend(),this._transformCore()):e.labelRoot&&(e.labelRoot.linkRemove().linkOff(),e.labelRoot=null),t&&this._createHandles(),nt(e),e.str.arrange(e,this._handles),e.str.updateGrouping(e),this._updateHandles(),this._params.notifyReady(),this._dataSourceLoaded?(this._dataSourceLoaded.resolve(),this._dataSourceLoaded=null):this._params.dataReady()},getBounds:function(){return k(this._handles.map((function(t){return t.proxy.coordinates().map((function(t){if(_(t)){var e=t[0];return t.reduce((function(t,e){return[x(t[0],e[0]),x(t[1],e[1]),C(t[2],e[0]),C(t[3],e[1])]}),[e[0],e[1],e[0],e[1]])}}))})).map(k))},_destroyHandles:function(){this._handles.forEach((function(t){return t.dispose()})),this._context.selection&&(this._context.selection.state={}),this._handles=[]},_createHandles:function(){var t,e,n,i,o,r,a=this._handles=[],l=this._data,u=a.length=l.count(),c=this._context,d=l.geometry,h=l.attributes;for(t=0;t<u;++t)n=l.item(t),a[t]=new tt(c,t,d(n),h(n));for((0,s.isFunction)(this._options.customize)&&(i=this.getProxies(),o=this._options.customize,r=this._params.widget,o.call(r,i)),t=0;t<u;++t)(e=a[t]).project(),e.draw(),e.transform();c.selection&&f(c.selection.state,(function(t,e){e&&e.restoreSelected()}))},_updateHandles:function(){var t,e=this._handles,n=e.length;for(t=0;t<n;++t)e[t].refresh();if(this._context.settings.label.enabled){for(t=0;t<n;++t)e[t].measureLabel();for(t=0;t<n;++t)e[t].adjustLabel()}},_transformCore:function(){var t=this._params.projection.getTransform();this._context.root.attr(t),this._context.labelRoot&&this._context.labelRoot.attr(t)},_project:function(){var t,e=this._handles,n=e.length;for(t=0;t<n;++t)e[t].project()},_transform:function(){var t,e=this._handles,n=e.length;for(this._transformCore(),t=0;t<n;++t)e[t].transform()},getProxies:function(){return this._handles.map((function(t){return t.proxy}))},getProxy:function(t){return this._handles[t].proxy},raiseClick:function(t,e){this._params.eventTrigger("click",{target:this._handles[t].proxy,event:e})},hoverItem:function(t,e){this._handles[t].setHovered(e)},selectItem:function(t,e,n){this._handles[t].setSelected(e,n)},clearSelection:function(){var t=this._context.selection;t&&(f(t.state,(function(t,e){e&&e.setSelected(!1)})),t.state={})}},a.default),(tt=function(t,e,n,i){var o=this.proxy=function(t,e,n){var i={coordinates:function(){return e},attribute:function(t,e){return arguments.length>1?(n[t]=e,i):arguments.length>0?n[t]:n},selected:function(e,n){return arguments.length>0?(t.setSelected(e,n),i):t.isSelected()},applySettings:function(e){return t.update(e),i}};return i}(this,n.coordinates,h({},i));this._ctx=t,this._index=e,this._fig=this._label=null,this._state=0,this._coordinates=n.coordinates,this._settings={label:{}},o.index=e,o.layer=t.layer,this._data={name:t.name,index:e}}).prototype={constructor:tt,dispose:function(){return this._ctx=this.proxy=this._settings=this._fig=this._label=this.data=null,this},project:function(){var t=this._ctx;this._projection=t.str.project(t.projection,this._coordinates),t.hasSeparateLabel&&this._label&&this._projectLabel()},_projectLabel:function(){this._labelProjection=this._ctx.str.projectLabel(this._projection)},draw:function(){var t=this._ctx;t.str.draw(t,this._fig={},this._data),this._fig.root.append(t.root)},transform:function(){var t=this._ctx;t.str.transform(this._fig,t.projection,this._projection),t.hasSeparateLabel&&this._label&&this._transformLabel()},_transformLabel:function(){this._ctx.str.transformLabel(this._label,this._ctx.projection,this._labelProjection)},refresh:function(){var t=this._ctx.str,e=Y(this._ctx,this.proxy,this._settings);this._styles=t.getStyles(e),t.refresh(this._ctx,this._fig,this._data,this.proxy,e),this._refreshLabel(e),this._setState()},_refreshLabel:function(t){var e=this._ctx,n=t.label,i=this._label;e.settings.label.enabled?(i||(i=this._label={root:e.labelRoot||this._fig.root,text:e.renderer.text().attr({class:"dxm-label"}),size:[0,0]},e.hasSeparateLabel&&(this._projectLabel(),this._transformLabel())),i.value=y(this.proxy.text||this.proxy.attribute(n.dataField)||""),i.value&&(i.text.attr({text:i.value,x:0,y:0}).css((0,u.patchFontOptions)(n.font)).attr({align:"center",stroke:n.stroke,"stroke-width":n["stroke-width"],"stroke-opacity":n["stroke-opacity"]}).data(e.dataKey,this._data).append(i.root),i.settings=t)):i&&(i.text.remove(),this._label=null)},measureLabel:function(){var t,e=this._label;e.value&&(t=e.text.getBBox(),e.size=[t.width,t.height,-t.y-t.height/2])},adjustLabel:function(){var t,e=this._label;e.value&&(t=this._ctx.str.getLabelOffset(e,e.settings),e.settings=null,e.text.attr({x:t[0],y:t[1]+e.size[2]}))},update:function(t){this._settings=J(this._settings,t),this._fig&&(this.refresh(),this._label&&this._label.value&&(this.measureLabel(),this.adjustLabel()))},_setState:function(){this._ctx.str.setState(this._fig,this._styles,m[this._state])},_setForeground:function(){var t=this._fig.root;this._state?t.toForeground():t.toBackground()},setHovered:function(t){var e=ot(this._state,1),n=!!t;return this._ctx.hover&&e!==n&&(this._state=it(this._state,1,n),this._setState(),this._setForeground(),X(this._ctx,this,n,"hoverChanged")),this},setSelected:function(t,e){var n,i=ot(this._state,2),o=!!t,r=this._ctx.selection;r&&i!==o&&(this._state=it(this._state,2,o),n=r.state[r.single],r.state[r.single]=null,n&&n.setSelected(!1),r.state[r.single||this._index]=t?this:null,this._fig&&(this._setState(),this._setForeground(),e||X(this._ctx,this,o,"selectionChanged")))},isSelected:function(){return ot(this._state,2)},resetSelected:function(){this._state=it(this._state,2,!1)},restoreSelected:function(){this._fig.root.toForeground()}},lt.prototype={constructor:lt,dispose:function(){this._clip.dispose(),this._layers.forEach((function(t){return t.dispose()})),this._offTracker(),this._params=this._offTracker=this._layers=this._layerByName=this._clip=this._background=this._container=null},_subscribeToTracker:function(t,e,n){var i=this;i._offTracker=t.on({click:function(t){var o=e.getRootOffset(),r=i.byName(t.data.name);t.$event.x=t.x-o.left,t.$event.y=t.y-o.top,r?r.raiseClick(t.data.index,t.$event):"background"===t.data.name&&n("click",{event:t.$event})},"hover-on":function(t){var e=i.byName(t.data.name);e&&e.hoverItem(t.data.index,!0)},"hover-off":function(t){var e=i.byName(t.data.name);e&&e.hoverItem(t.data.index,!1)}})},setOptions:function(t){var e,n=t?_(t)?t:[t]:[],i=this._layerByName,o=this._layers;if(n.length!==o.length||o.some((function(t,e){var i=I(n,e);return(0,s.isDefined)(i)&&i!==t.proxy.name}))){this._params.tracker.reset(),this._layers.forEach((function(t){return t.dispose()})),this._layerByName=i={},this._layers=o=[];for(var r=0,a=n.length;r<a;++r){var u=I(n,r)||"map-layer-"+r,c=o[r]=new rt(this._params,this._container,u,r);i[u]=c}}o.forEach((function(t,e){t.setOptions(n[e])})),(e=o.map((function(t){return t.getDataReadyCallback()}))).length&&l.default.when.apply(void 0,e).done(this._dataReady)},_updateClip:function(){var t=this._rect,e=this._borderWidth;this._clip.attr({x:t[0]+e,y:t[1]+e,width:C(t[2]-2*e,0),height:C(t[3]-2*e,0)})},setBackgroundOptions:function(t){this._background.attr({stroke:t.borderColor,"stroke-width":t.borderWidth,fill:t.color}),this._borderWidth=C(t.borderWidth,0),this._updateClip()},setRect:function(t){this._rect=t,this._background.attr({x:t[0],y:t[1],width:t[2],height:t[3]}),this._updateClip()},byIndex:function(t){return this._layers[t]},byName:function(t){return this._layerByName[t]},items:function(){return this._layers}}},function(t,e,n){"use strict";function i(t){this._subscribeToTracker(t.tracker,t.tooltip,t.layerCollection)}i.prototype={constructor:i,dispose:function(){this._offTracker(),this._offTracker=null},_subscribeToTracker:function(t,e,n){this._offTracker=t.on({"focus-on":function(t){var i,o,r=!1;e.isEnabled()&&(o=(i=n.byName(t.data.name))&&i.getProxy(t.data.index))&&e.show(o,{x:0,y:0,offset:0},{target:o})&&(e.move(t.x,t.y,12),r=!0),t.done(r)},"focus-move":function(t){e.move(t.x,t.y,12)},"focus-off":function(){e.hide()}})}},e.TooltipViewer=i},function(t,e,n){"use strict";var i=n(525).projection,o=Math.min,r=Math.max,a=Math.sin,s=Math.asin,l=Math.tan,u=Math.atan,c=Math.exp,d=Math.log,h=Math.PI,f=h/4,p=h/180,m=(2*u(c(h))-h/2)/p,g=(2.5*u(c(.8*h))-.625*h)/p;function _(t,e){return r(o(t,+e),-e)}i.add("mercator",i({aspectRatio:1,to:function(t){return[t[0]/180,d(l(f+_(t[1],m)*p/2))/h]},from:function(t){return[180*t[0],(2*u(c(t[1]*h))-h/2)/p]}})),i.add("equirectangular",i({aspectRatio:2,to:function(t){return[t[0]/180,t[1]/90]},from:function(t){return[180*t[0],90*t[1]]}})),i.add("lambert",i({aspectRatio:2,to:function(t){return[t[0]/180,a(_(t[1],90)*p)]},from:function(t){return[180*t[0],s(_(t[1],1))/p]}})),i.add("miller",i({aspectRatio:1,to:function(t){return[t[0]/180,1.25*d(l(f+_(t[1],g)*p*.4))/h]},from:function(t){return[180*t[0],(2.5*u(c(.8*t[1]*h))-.625*h)/p]}})),e.projection=i},function(t,e,n){"use strict";e.randomBytes=e.rng=e.pseudoRandomBytes=e.prng=n(174),e.createHash=e.Hash=n(204),e.createHmac=e.Hmac=n(540);var i=n(1161),o=Object.keys(i),r=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(o);e.getHashes=function(){return r};var a=n(543);e.pbkdf2=a.pbkdf2,e.pbkdf2Sync=a.pbkdf2Sync;var s=n(1163);e.Cipher=s.Cipher,e.createCipher=s.createCipher,e.Cipheriv=s.Cipheriv,e.createCipheriv=s.createCipheriv,e.Decipher=s.Decipher,e.createDecipher=s.createDecipher,e.Decipheriv=s.Decipheriv,e.createDecipheriv=s.createDecipheriv,e.getCiphers=s.getCiphers,e.listCiphers=s.listCiphers;var l=n(1178);e.DiffieHellmanGroup=l.DiffieHellmanGroup,e.createDiffieHellmanGroup=l.createDiffieHellmanGroup,e.getDiffieHellman=l.getDiffieHellman,e.createDiffieHellman=l.createDiffieHellman,e.DiffieHellman=l.DiffieHellman;var u=n(1185);e.createSign=u.createSign,e.Sign=u.Sign,e.createVerify=u.createVerify,e.Verify=u.Verify,e.createECDH=n(1228);var c=n(1231);e.publicEncrypt=c.publicEncrypt,e.privateEncrypt=c.privateEncrypt,e.publicDecrypt=c.publicDecrypt,e.privateDecrypt=c.privateDecrypt;var d=n(1235);e.randomFill=d.randomFill,e.randomFillSync=d.randomFillSync,e.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},e.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},function(t,e,n){var i=n(52),o=i.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=a),a.prototype=Object.create(o.prototype),r(o,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var i=o(t);return void 0!==e?"string"===typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return o(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){(e=t.exports=n(528)).Stream=e,e.Readable=e,e.Writable=n(532),e.Duplex=n(176),e.Transform=n(533),e.PassThrough=n(1145),e.finished=n(316),e.pipeline=n(1146)},,function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=n(52).Buffer,s=n(1142).inspect,l=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,u;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,n,i,o=a.allocUnsafe(t>>>0),r=this.head,s=0;r;)e=r.data,n=o,i=s,a.prototype.copy.call(e,n,i),s+=r.data.length,r=r.next;return o}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,i=e.data;for(t-=i.length;e=e.next;){var o=e.data,r=t>o.length?o.length:t;if(r===o.length?i+=o:i+=o.slice(0,t),0===(t-=r)){r===o.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(r));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var o=n.data,r=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,r),0===(t-=r)){r===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(r));break}++i}return this.length-=i,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&r(e.prototype,n),u&&r(e,u),t}()},,function(t,e,n){"use strict";(function(e){var i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(316),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[h].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(f(n,!1)))}}function m(t){e.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((o(i={get stream(){return this[h]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(n,i){e.nextTick((function(){t[l]?i(t[l]):n(f(void 0,!0))}))}));var i,o=this[c];if(o)i=new Promise(function(t,e){return function(n,i){t.then((function(){e[u]?n(f(void 0,!0)):e[d](n,i)}),i)}}(o,this));else{var r=this[h].read();if(null!==r)return Promise.resolve(f(r,!1));i=new Promise(this[d])}return this[c]=i,i}},Symbol.asyncIterator,(function(){return this})),o(i,"return",(function(){var t=this;return new Promise((function(e,n){t[h].destroy(null,(function(t){t?n(t):e(f(void 0,!0))}))}))})),i),g);t.exports=function(t){var e,n=Object.create(_,(o(e={},h,{value:t,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,u,{value:t._readableState.endEmitted,writable:!0}),o(e,d,{value:function(t,e){var i=n[h].read();i?(n[c]=null,n[a]=null,n[s]=null,t(f(i,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,r(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var i=n[a];null!==i&&(n[c]=null,n[a]=null,n[s]=null,i(f(void 0,!0))),n[u]=!0})),t.on("readable",m.bind(null,n)),n}}).call(this,n(50))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";t.exports=o;var i=n(533);function o(t){if(!(this instanceof o))return new o(t);i.call(this,t)}n(22)(o,i),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var i;var o=n(175).codes,r=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(t,e,o,r){r=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(r);var s=!1;t.on("close",(function(){s=!0})),void 0===i&&(i=n(316)),i(t,{readable:e,writable:o},(function(t){if(t)return r(t);s=!0,r()}));var l=!1;return function(e){if(!s&&!l)return l=!0,function(t){return t.setHeader&&"function"===typeof t.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void r(e||new a("pipe"))}}function u(t){t()}function c(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,o=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new r("streams");var a=e.map((function(t,n){var r=n<e.length-1;return l(t,r,n>0,(function(t){i||(i=t),t&&a.forEach(u),r||(a.forEach(u),o(i))}))}));return e.reduce(c)}},function(t,e,n){var i=n(22),o=n(177),r=n(30).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function u(t){return t<<30|t>>>2}function c(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var h=0;h<80;++h){var f=~~(h/20),p=0|((e=i)<<5|e>>>27)+c(f,o,r,s)+l+n[h]+a[f];l=s,s=r,r=u(o),o=i,i=p}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},function(t,e,n){var i=n(22),o=n(177),r=n(30).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function l(){this.init(),this._w=s,o.call(this,64,56)}function u(t){return t<<5|t>>>27}function c(t){return t<<30|t>>>2}function d(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(l,o),l.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},l.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,s=0|this._d,l=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=(e=n[h-3]^n[h-8]^n[h-14]^n[h-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),m=u(i)+d(p,o,r,s)+l+n[f]+a[p]|0;l=s,s=r,r=c(o),o=i,i=m}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=s+this._d|0,this._e=l+this._e|0},l.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=l},function(t,e,n){var i=n(22),o=n(534),r=n(177),a=n(30).Buffer,s=new Array(64);function l(){this.init(),this._w=s,r.call(this,64,56)}i(l,o),l.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},l.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=l},function(t,e,n){var i=n(22),o=n(535),r=n(177),a=n(30).Buffer,s=new Array(160);function l(){this.init(),this._w=s,r.call(this,128,112)}i(l,o),l.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},l.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=l},function(t,e,n){t.exports=o;var i=n(148).EventEmitter;function o(){i.call(this)}n(22)(o,i),o.Readable=n(319),o.Writable=n(1156),o.Duplex=n(1157),o.Transform=n(1158),o.PassThrough=n(1159),o.Stream=o,o.prototype.pipe=function(t,e){var n=this;function o(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),t.on("drain",r),t._isStdio||e&&!1===e.end||(n.on("end",s),n.on("close",l));var a=!1;function s(){a||(a=!0,t.end())}function l(){a||(a=!0,"function"===typeof t.destroy&&t.destroy())}function u(t){if(c(),0===i.listenerCount(this,"error"))throw t}function c(){n.removeListener("data",o),t.removeListener("drain",r),n.removeListener("end",s),n.removeListener("close",l),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",c),n.removeListener("close",c),t.removeListener("close",c)}return n.on("error",u),t.on("error",u),n.on("end",c),n.on("close",c),t.on("close",c),t.emit("pipe",n),t}},,function(t,e,n){"use strict";var i=n(30).Buffer,o=n(1154);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e,n,o,r=i.allocUnsafe(t>>>0),a=this.head,s=0;a;)e=a.data,n=r,o=s,e.copy(n,o),s+=a.data.length,a=a.next;return r},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},,function(t,e,n){"use strict";t.exports=r;var i=n(539),o=Object.create(n(205));function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}o.inherits=n(22),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(320)},function(t,e,n){t.exports=n(150)},function(t,e,n){t.exports=n(319).Transform},function(t,e,n){t.exports=n(319).PassThrough},function(t,e,n){"use strict";var i=n(22),o=n(30).Buffer,r=n(126),a=o.alloc(128);function s(t,e){r.call(this,"digest"),"string"===typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=o.concat([e,a],64));for(var n=this._ipad=o.allocUnsafe(64),i=this._opad=o.allocUnsafe(64),s=0;s<64;s++)n[s]=54^e[s],i[s]=92^e[s];this._hash=[n]}i(s,r),s.prototype._update=function(t){this._hash.push(t)},s.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=s},function(t,e,n){t.exports=n(542)},function(t,e,n){(function(e,i){var o,r=n(30).Buffer,a=n(544),s=n(545),l=n(546),u=n(547),c=e.crypto&&e.crypto.subtle,d={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},h=[];function f(t,e,n,i,o){return c.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return c.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:o}},t,i<<3)})).then((function(t){return r.from(t)}))}t.exports=function(t,n,p,m,g,_){"function"===typeof g&&(_=g,g=void 0);var v=d[(g=g||"sha1").toLowerCase()];if(!v||"function"!==typeof e.Promise)return i.nextTick((function(){var e;try{e=l(t,n,p,m,g)}catch(i){return _(i)}_(null,e)}));if(a(p,m),t=u(t,s,"Password"),n=u(n,s,"Salt"),"function"!==typeof _)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){i.nextTick((function(){e(null,t)}))}),(function(t){i.nextTick((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!c||!c.importKey||!c.deriveBits)return Promise.resolve(!1);if(void 0!==h[t])return h[t];var n=f(o=o||r.alloc(8),o,10,128,t).then((function(){return!0})).catch((function(){return!1}));return h[t]=n,n}(v).then((function(e){return e?f(t,n,p,m,v):l(t,n,p,m,g)})),_)}}).call(this,n(56),n(50))},function(t,e,n){var i=n(1164),o=n(322),r=n(323),a=n(1177),s=n(244);function l(t,e,n){if(t=t.toLowerCase(),r[t])return o.createCipheriv(t,e,n);if(a[t])return new i({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function u(t,e,n){if(t=t.toLowerCase(),r[t])return o.createDecipheriv(t,e,n);if(a[t])return new i({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),r[t])n=r[t].key,i=r[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var o=s(e,!1,n,i);return l(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=l,e.createDecipher=e.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),r[t])n=r[t].key,i=r[t].iv;else{if(!a[t])throw new TypeError("invalid suite type");n=8*a[t].key,i=a[t].iv}var o=s(e,!1,n,i);return u(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=u,e.listCiphers=e.getCiphers=function(){return Object.keys(a).concat(o.getCiphers())}},function(t,e,n){var i=n(126),o=n(1165),r=n(22),a=n(30).Buffer,s={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function l(t){i.call(this);var e,n=t.mode.toLowerCase(),o=s[n];e=t.decrypt?"decrypt":"encrypt";var r=t.key;a.isBuffer(r)||(r=a.from(r)),"des-ede"!==n&&"des-ede-cbc"!==n||(r=a.concat([r,r.slice(0,8)]));var l=t.iv;a.isBuffer(l)||(l=a.from(l)),this._des=o.create({key:r,iv:l,type:e})}s.des=s["des-cbc"],s.des3=s["des-ede3-cbc"],t.exports=l,r(l,i),l.prototype._update=function(t){return a.from(this._des.update(t))},l.prototype._final=function(){return a.from(this._des.final())}},function(t,e,n){"use strict";e.utils=n(548),e.Cipher=n(321),e.DES=n(549),e.CBC=n(1166),e.EDE=n(1167)},function(t,e,n){"use strict";var i=n(84),o=n(22),r={};function a(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e<this.iv.length;e++)this.iv[e]=t[e]}e.instantiate=function(t){function e(e){t.call(this,e),this._cbcInit()}o(e,t);for(var n=Object.keys(r),i=0;i<n.length;i++){var a=n[i];e.prototype[a]=r[a]}return e.create=function(t){return new e(t)},e},r._cbcInit=function(){var t=new a(this.options.iv);this._cbcState=t},r._update=function(t,e,n,i){var o=this._cbcState,r=this.constructor.super_.prototype,a=o.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=t[e+s];r._update.call(this,a,0,n,i);for(s=0;s<this.blockSize;s++)a[s]=n[i+s]}else{r._update.call(this,t,e,n,i);for(s=0;s<this.blockSize;s++)n[i+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=t[e+s]}}},function(t,e,n){"use strict";var i=n(84),o=n(22),r=n(321),a=n(549);function s(t,e){i.equal(e.length,24,"Invalid key length");var n=e.slice(0,8),o=e.slice(8,16),r=e.slice(16,24);this.ciphers="encrypt"===t?[a.create({type:"encrypt",key:n}),a.create({type:"decrypt",key:o}),a.create({type:"encrypt",key:r})]:[a.create({type:"decrypt",key:r}),a.create({type:"encrypt",key:o}),a.create({type:"decrypt",key:n})]}function l(t){r.call(this,t);var e=new s(this.type,this.options.key);this._edeState=e}o(l,r),t.exports=l,l.create=function(t){return new l(t)},l.prototype._update=function(t,e,n,i){var o=this._edeState;o.ciphers[0]._update(t,e,n,i),o.ciphers[1]._update(n,i,n,i),o.ciphers[2]._update(n,i,n,i)},l.prototype._pad=a.prototype._pad,l.prototype._unpad=a.prototype._unpad},function(t,e,n){var i=n(323),o=n(553),r=n(30).Buffer,a=n(554),s=n(126),l=n(243),u=n(244);function c(t,e,n){s.call(this),this._cache=new h,this._cipher=new l.AES(e),this._prev=r.from(n),this._mode=t,this._autopadding=!0}n(22)(c,s),c.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get();)n=this._mode.encrypt(this,e),i.push(n);return r.concat(i)};var d=r.alloc(16,16);function h(){this.cache=r.allocUnsafe(0)}function f(t,e,n){var s=i[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof e&&(e=r.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);if("string"===typeof n&&(n=r.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);return"stream"===s.type?new a(s.module,e,n):"auth"===s.type?new o(s.module,e,n):new c(s.module,e,n)}c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return t=this._mode.encrypt(this,t),this._cipher.scrub(),t;if(!t.equals(d))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},h.prototype.add=function(t){this.cache=r.concat([this.cache,t])},h.prototype.get=function(){if(this.cache.length>15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},h.prototype.flush=function(){for(var t=16-this.cache.length,e=r.allocUnsafe(t),n=-1;++n<t;)e.writeUInt8(t,n);return r.concat([this.cache,e])},e.createCipheriv=f,e.createCipher=function(t,e){var n=i[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var o=u(e,!1,n.key,n.iv);return f(t,o.key,o.iv)}},function(t,e){e.encrypt=function(t,e){return t._cipher.encryptBlock(e)},e.decrypt=function(t,e){return t._cipher.decryptBlock(e)}},function(t,e,n){var i=n(206);e.encrypt=function(t,e){var n=i(e,t._prev);return t._prev=t._cipher.encryptBlock(n),t._prev},e.decrypt=function(t,e){var n=t._prev;t._prev=e;var o=t._cipher.decryptBlock(e);return i(o,n)}},function(t,e,n){var i=n(30).Buffer,o=n(206);function r(t,e,n){var r=e.length,a=o(e,t._cache);return t._cache=t._cache.slice(r),t._prev=i.concat([t._prev,n?e:a]),a}e.encrypt=function(t,e,n){for(var o,a=i.allocUnsafe(0);e.length;){if(0===t._cache.length&&(t._cache=t._cipher.encryptBlock(t._prev),t._prev=i.allocUnsafe(0)),!(t._cache.length<=e.length)){a=i.concat([a,r(t,e,n)]);break}o=t._cache.length,a=i.concat([a,r(t,e.slice(0,o),n)]),e=e.slice(o)}return a}},function(t,e,n){var i=n(30).Buffer;function o(t,e,n){var o=t._cipher.encryptBlock(t._prev)[0]^e;return t._prev=i.concat([t._prev.slice(1),i.from([n?e:o])]),o}e.encrypt=function(t,e,n){for(var r=e.length,a=i.allocUnsafe(r),s=-1;++s<r;)a[s]=o(t,e[s],n);return a}},function(t,e,n){var i=n(30).Buffer;function o(t,e,n){for(var i,o,a=-1,s=0;++a<8;)i=e&1<<7-a?128:0,s+=(128&(o=t._cipher.encryptBlock(t._prev)[0]^i))>>a%8,t._prev=r(t._prev,n?i:o);return s}function r(t,e){var n=t.length,o=-1,r=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++o<n;)r[o]=t[o]<<1|t[o+1]>>7;return r}e.encrypt=function(t,e,n){for(var r=e.length,a=i.allocUnsafe(r),s=-1;++s<r;)a[s]=o(t,e[s],n);return a}},function(t,e,n){(function(t){var i=n(206);function o(t){return t._prev=t._cipher.encryptBlock(t._prev),t._prev}e.encrypt=function(e,n){for(;e._cache.length<n.length;)e._cache=t.concat([e._cache,o(e)]);var r=e._cache.slice(0,n.length);return e._cache=e._cache.slice(n.length),i(n,r)}}).call(this,n(52).Buffer)},function(t,e,n){var i=n(30).Buffer,o=i.alloc(16,0);function r(t){var e=i.allocUnsafe(16);return e.writeUInt32BE(t[0]>>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function a(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}a.prototype.ghash=function(t){for(var e=-1;++e<t.length;)this.state[e]^=t[e];this._multiply()},a.prototype._multiply=function(){for(var t,e,n,i=[(t=this.h).readUInt32BE(0),t.readUInt32BE(4),t.readUInt32BE(8),t.readUInt32BE(12)],o=[0,0,0,0],a=-1;++a<128;){for(0!==(this.state[~~(a/8)]&1<<7-a%8)&&(o[0]^=i[0],o[1]^=i[1],o[2]^=i[2],o[3]^=i[3]),n=0!==(1&i[3]),e=3;e>0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=r(o)},a.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},a.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,o],16)),this.ghash(r([0,t,0,e])),this.state},t.exports=a},function(t,e,n){var i=n(553),o=n(30).Buffer,r=n(323),a=n(554),s=n(126),l=n(243),u=n(244);function c(t,e,n){s.call(this),this._cache=new d,this._last=void 0,this._cipher=new l.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}function d(){this.cache=o.allocUnsafe(0)}function h(t,e,n){var s=r[t.toLowerCase()];if(!s)throw new TypeError("invalid suite type");if("string"===typeof n&&(n=o.from(n)),"GCM"!==s.mode&&n.length!==s.iv)throw new TypeError("invalid iv length "+n.length);if("string"===typeof e&&(e=o.from(e)),e.length!==s.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===s.type?new a(s.module,e,n,!0):"auth"===s.type?new i(s.module,e,n,!0):new c(s.module,e,n)}n(22)(c,s),c.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return o.concat(i)},c.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;for(;++n<e;)if(t[n+(16-e)]!==e)throw new Error("unable to decrypt data");if(16===e)return;return t.slice(0,16-e)}(this._mode.decrypt(this,t));if(t)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(t){return this._autopadding=!!t,this},d.prototype.add=function(t){this.cache=o.concat([this.cache,t])},d.prototype.get=function(t){var e;if(t){if(this.cache.length>16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},d.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=u(e,!1,n.key,n.iv);return h(t,i.key,i.iv)},e.createDecipheriv=h},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,n){(function(t){var i=n(555),o=n(1183),r=n(1184);var a={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var n=new t(o[e].prime,"hex"),i=new t(o[e].gen,"hex");return new r(n,i)},e.createDiffieHellman=e.DiffieHellman=function e(n,o,s,l){return t.isBuffer(o)||void 0===a[o]?e(n,"binary",o,s):(o=o||"binary",l=l||"binary",s=s||new t([2]),t.isBuffer(s)||(s=new t(s,l)),"number"===typeof n?new r(i(n,s),s,!0):(t.isBuffer(n)||(n=new t(n,o)),new r(n,s,!0)))}}).call(this,n(52).Buffer)},,function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1181).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},,,function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,n){(function(e){var i=n(556),o=new(n(557)),r=new i(24),a=new i(11),s=new i(10),l=new i(3),u=new i(7),c=n(555),d=n(174);function h(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new i(t),this}function f(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new i(t),this}t.exports=m;var p={};function m(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=h,this.setPrivateKey=f):this._primeCode=8}function g(t,n){var i=new e(t.toArray());return n?i.toString(n):i}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!==typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in p)return p[i];var d,h=0;if(t.isEven()||!c.simpleSieve||!c.fermatTest(t)||!o.test(t))return h+=1,h+="02"===n||"05"===n?8:4,p[i]=h,h;switch(o.test(t.shrn(1))||(h+=2),n){case"02":t.mod(r).cmp(a)&&(h+=8);break;case"05":(d=t.mod(s)).cmp(l)&&d.cmp(u)&&(h+=8);break;default:h+=4}return p[i]=h,h}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(d(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var n=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new e(n.toArray()),r=this.getPrime();if(o.length<r.length){var a=new e(r.length-o.length);a.fill(0),o=e.concat([a,o])}return o},m.prototype.getPublicKey=function(t){return g(this._pub,t)},m.prototype.getPrivateKey=function(t){return g(this._priv,t)},m.prototype.getPrime=function(t){return g(this.__prime,t)},m.prototype.getGenerator=function(t){return g(this._gen,t)},m.prototype.setGenerator=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.__gen=t,this._gen=new i(t),this}}).call(this,n(52).Buffer)},function(t,e,n){var i=n(325).Buffer,o=n(204),r=n(1186),a=n(22),s=n(1194),l=n(1227),u=n(542);function c(t){r.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hashType=e.hash,this._hash=o(e.hash),this._tag=e.id,this._signType=e.sign}function d(t){r.Writable.call(this);var e=u[t];if(!e)throw new Error("Unknown message digest");this._hash=o(e.hash),this._tag=e.id,this._signType=e.sign}function h(t){return new c(t)}function f(t){return new d(t)}Object.keys(u).forEach((function(t){u[t].id=i.from(u[t].id,"hex"),u[t.toLowerCase()]=u[t]})),a(c,r.Writable),c.prototype._write=function(t,e,n){this._hash.update(t),n()},c.prototype.update=function(t,e){return"string"===typeof t&&(t=i.from(t,e)),this._hash.update(t),this},c.prototype.sign=function(t,e){this.end();var n=this._hash.digest(),i=s(n,t,this._hashType,this._signType,this._tag);return e?i.toString(e):i},a(d,r.Writable),d.prototype._write=function(t,e,n){this._hash.update(t),n()},d.prototype.update=function(t,e){return"string"===typeof t&&(t=i.from(t,e)),this._hash.update(t),this},d.prototype.verify=function(t,e,n){"string"===typeof e&&(e=i.from(e,n)),this.end();var o=this._hash.digest();return l(e,o,t,this._signType,this._tag)},t.exports={Sign:h,Verify:f,createSign:h,createVerify:f}},function(t,e,n){(e=t.exports=n(558)).Stream=e,e.Readable=e,e.Writable=n(562),e.Duplex=n(179),e.Transform=n(563),e.PassThrough=n(1192),e.finished=n(326),e.pipeline=n(1193)},,function(t,e,n){"use strict";function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var a=n(52).Buffer,s=n(1189).inspect,l=s&&s.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,n,u;return e=t,(n=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return a.alloc(0);for(var e,n,i,o=a.allocUnsafe(t>>>0),r=this.head,s=0;r;)e=r.data,n=o,i=s,a.prototype.copy.call(e,n,i),s+=r.data.length,r=r.next;return o}},{key:"consume",value:function(t,e){var n;return t<this.head.data.length?(n=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):n=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,n=1,i=e.data;for(t-=i.length;e=e.next;){var o=e.data,r=t>o.length?o.length:t;if(r===o.length?i+=o:i+=o.slice(0,t),0===(t-=r)){r===o.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(r));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=a.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var o=n.data,r=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,r),0===(t-=r)){r===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(r));break}++i}return this.length-=i,e}},{key:l,value:function(t,e){return s(this,function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}({},e,{depth:0,customInspect:!1}))}}])&&r(e.prototype,n),u&&r(e,u),t}()},,function(t,e,n){"use strict";(function(e){var i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r=n(326),a=Symbol("lastResolve"),s=Symbol("lastReject"),l=Symbol("error"),u=Symbol("ended"),c=Symbol("lastPromise"),d=Symbol("handlePromise"),h=Symbol("stream");function f(t,e){return{value:t,done:e}}function p(t){var e=t[a];if(null!==e){var n=t[h].read();null!==n&&(t[c]=null,t[a]=null,t[s]=null,e(f(n,!1)))}}function m(t){e.nextTick(p,t)}var g=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((o(i={get stream(){return this[h]},next:function(){var t=this,n=this[l];if(null!==n)return Promise.reject(n);if(this[u])return Promise.resolve(f(void 0,!0));if(this[h].destroyed)return new Promise((function(n,i){e.nextTick((function(){t[l]?i(t[l]):n(f(void 0,!0))}))}));var i,o=this[c];if(o)i=new Promise(function(t,e){return function(n,i){t.then((function(){e[u]?n(f(void 0,!0)):e[d](n,i)}),i)}}(o,this));else{var r=this[h].read();if(null!==r)return Promise.resolve(f(r,!1));i=new Promise(this[d])}return this[c]=i,i}},Symbol.asyncIterator,(function(){return this})),o(i,"return",(function(){var t=this;return new Promise((function(e,n){t[h].destroy(null,(function(t){t?n(t):e(f(void 0,!0))}))}))})),i),g);t.exports=function(t){var e,n=Object.create(_,(o(e={},h,{value:t,writable:!0}),o(e,a,{value:null,writable:!0}),o(e,s,{value:null,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,u,{value:t._readableState.endEmitted,writable:!0}),o(e,d,{value:function(t,e){var i=n[h].read();i?(n[c]=null,n[a]=null,n[s]=null,t(f(i,!1))):(n[a]=t,n[s]=e)},writable:!0}),e));return n[c]=null,r(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[s];return null!==e&&(n[c]=null,n[a]=null,n[s]=null,e(t)),void(n[l]=t)}var i=n[a];null!==i&&(n[c]=null,n[a]=null,n[s]=null,i(f(void 0,!0))),n[u]=!0})),t.on("readable",m.bind(null,n)),n}}).call(this,n(50))},function(t,e){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},function(t,e,n){"use strict";t.exports=o;var i=n(563);function o(t){if(!(this instanceof o))return new o(t);i.call(this,t)}n(22)(o,i),o.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){"use strict";var i;var o=n(178).codes,r=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function s(t){if(t)throw t}function l(t,e,o,r){r=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(r);var s=!1;t.on("close",(function(){s=!0})),void 0===i&&(i=n(326)),i(t,{readable:e,writable:o},(function(t){if(t)return r(t);s=!0,r()}));var l=!1;return function(e){if(!s&&!l)return l=!0,function(t){return t.setHeader&&"function"===typeof t.abort}(t)?t.abort():"function"===typeof t.destroy?t.destroy():void r(e||new a("pipe"))}}function u(t){t()}function c(t,e){return t.pipe(e)}function d(t){return t.length?"function"!==typeof t[t.length-1]?s:t.pop():s}t.exports=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i,o=d(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new r("streams");var a=e.map((function(t,n){var r=n<e.length-1;return l(t,r,n>0,(function(t){i||(i=t),t&&a.forEach(u),r||(a.forEach(u),o(i))}))}));return e.reduce(c)}},function(t,e,n){var i=n(325).Buffer,o=n(540),r=n(327),a=n(328).ec,s=n(569),l=n(246),u=n(576);function c(t,e,n,r){if((t=i.from(t.toArray())).length<e.byteLength()){var a=i.alloc(e.byteLength()-t.length);t=i.concat([a,t])}var s=n.length,l=function(t,e){t=(t=d(t,e)).mod(e);var n=i.from(t.toArray());if(n.length<e.byteLength()){var o=i.alloc(e.byteLength()-n.length);n=i.concat([o,n])}return n}(n,e),u=i.alloc(s);u.fill(1);var c=i.alloc(s);return c=o(r,c).update(u).update(i.from([0])).update(t).update(l).digest(),u=o(r,c).update(u).digest(),{k:c=o(r,c).update(u).update(i.from([1])).update(t).update(l).digest(),v:u=o(r,c).update(u).digest()}}function d(t,e){var n=new s(t),i=(t.length<<3)-e.bitLength();return i>0&&n.ishrn(i),n}function h(t,e,n){var r,a;do{for(r=i.alloc(0);8*r.length<t.bitLength();)e.v=o(n,e.k).update(e.v).digest(),r=i.concat([r,e.v]);a=d(r,t),e.k=o(n,e.k).update(e.v).update(i.from([0])).digest(),e.v=o(n,e.k).update(e.v).digest()}while(-1!==a.cmp(t));return a}function f(t,e,n,i){return t.toRed(s.mont(n)).redPow(e).fromRed().mod(i)}t.exports=function(t,e,n,o,p){var m=l(e);if(m.curve){if("ecdsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");return function(t,e){var n=u[e.curve.join(".")];if(!n)throw new Error("unknown curve "+e.curve.join("."));var o=new a(n).keyFromPrivate(e.privateKey).sign(t);return i.from(o.toDER())}(t,m)}if("dsa"===m.type){if("dsa"!==o)throw new Error("wrong private key type");return function(t,e,n){var o,r=e.params.priv_key,a=e.params.p,l=e.params.q,u=e.params.g,p=new s(0),m=d(t,l).mod(l),g=!1,_=c(r,l,t,n);for(;!1===g;)o=h(l,_,n),p=f(u,o,a,l),0===(g=o.invm(l).imul(m.add(r.mul(p))).mod(l)).cmpn(0)&&(g=!1,p=new s(0));return function(t,e){t=t.toArray(),e=e.toArray(),128&t[0]&&(t=[0].concat(t));128&e[0]&&(e=[0].concat(e));var n=[48,t.length+e.length+4,2,t.length];return n=n.concat(t,[2,e.length],e),i.from(n)}(p,g)}(t,m,n)}if("rsa"!==o&&"ecdsa/rsa"!==o)throw new Error("wrong private key type");t=i.concat([p,t]);for(var g=m.modulus.byteLength(),_=[0,1];t.length+_.length+1<g;)_.push(255);_.push(0);for(var v=-1;++v<t.length;)_.push(t[v]);return r(_,m)},t.exports.getKey=c,t.exports.makeKey=h},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1196).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},,function(t){t.exports=JSON.parse('{"_args":[["elliptic@6.5.3","C:\\\\xampp7\\\\htdocs\\\\portal"]],"_from":"elliptic@6.5.3","_id":"elliptic@6.5.3","_inBundle":false,"_integrity":"sha512-IMqzv5wNQf+E6aHeIqATs0tOLeOTwj1QKbRcS3jBbYkl5oLAserA8yJTT7/VyHUYG91PRmPyeQDObKLPpeS4dw==","_location":"/elliptic","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"elliptic@6.5.3","name":"elliptic","escapedName":"elliptic","rawSpec":"6.5.3","saveSpec":null,"fetchSpec":"6.5.3"},"_requiredBy":["/browserify-sign","/create-ecdh"],"_resolved":"https://registry.npmjs.org/elliptic/-/elliptic-6.5.3.tgz","_spec":"6.5.3","_where":"C:\\\\xampp7\\\\htdocs\\\\portal","author":{"name":"Fedor Indutny","email":"fedor@indutny.com"},"bugs":{"url":"https://github.com/indutny/elliptic/issues"},"dependencies":{"bn.js":"^4.4.0","brorand":"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0","inherits":"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},"description":"EC cryptography","devDependencies":{"brfs":"^1.4.3","coveralls":"^3.0.8","grunt":"^1.0.4","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.2","jscs":"^3.0.7","jshint":"^2.10.3","mocha":"^6.2.2"},"files":["lib"],"homepage":"https://github.com/indutny/elliptic","keywords":["EC","Elliptic","curve","Cryptography"],"license":"MIT","main":"lib/elliptic.js","name":"elliptic","repository":{"type":"git","url":"git+ssh://git@github.com/indutny/elliptic.git"},"scripts":{"jscs":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","jshint":"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js","lint":"npm run jscs && npm run jshint","test":"npm run lint && npm run unit","unit":"istanbul test _mocha --reporter=spec test/index.js","version":"grunt dist && git add dist/"},"version":"6.5.3"}')},,function(t,e,n){"use strict";var i=n(85),o=n(111),r=n(22),a=n(245),s=i.assert;function l(t){a.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function u(t,e,n,i){a.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function c(t,e,n,i){a.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(n,16),this.z=new o(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(l,a),t.exports=l,l.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)n=new o(t.lambda,16);else{var r=this._getEndoRoots(this.n);0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(e))?n=r[0]:(n=r[1],s(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(n)}}},l.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),n=new o(2).toRed(e).redInvm(),i=n.redNeg(),r=new o(3).toRed(e).redNeg().redSqrt().redMul(n);return[i.redAdd(r).fromRed(),i.redSub(r).fromRed()]},l.prototype._getEndoBasis=function(t){for(var e,n,i,r,a,s,l,u,c,d=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=t,f=this.n.clone(),p=new o(1),m=new o(0),g=new o(0),_=new o(1),v=0;0!==h.cmpn(0);){var y=f.div(h);u=f.sub(y.mul(h)),c=g.sub(y.mul(p));var b=_.sub(y.mul(m));if(!i&&u.cmp(d)<0)e=l.neg(),n=p,i=u.neg(),r=c;else if(i&&2===++v)break;l=u,f=h,h=u,g=p,p=c,_=m,m=b}a=u.neg(),s=c;var w=i.sqr().add(r.sqr());return a.sqr().add(s.sqr()).cmp(w)>=0&&(a=e,s=n),i.negative&&(i=i.neg(),r=r.neg()),a.negative&&(a=a.neg(),s=s.neg()),[{a:i,b:r},{a:a,b:s}]},l.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],i=e[1],o=i.b.mul(t).divRound(this.n),r=n.b.neg().mul(t).divRound(this.n),a=o.mul(n.a),s=r.mul(i.a),l=o.mul(n.b),u=r.mul(i.b);return{k1:t.sub(a).sub(s),k2:l.add(u).neg()}},l.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},l.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,i=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},l.prototype._endoWnafMulAdd=function(t,e,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,r=0;r<t.length;r++){var a=this._endoSplit(e[r]),s=t[r],l=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),l=l.neg(!0)),i[2*r]=s,i[2*r+1]=l,o[2*r]=a.k1,o[2*r+1]=a.k2}for(var u=this._wnafMulAdd(1,i,o,2*r,n),c=0;c<2*r;c++)i[c]=null,o[c]=null;return u},r(u,a.BasePoint),l.prototype.point=function(t,e,n){return new u(this,t,e,n)},l.prototype.pointFromJSON=function(t,e){return u.fromJSON(this,t,e)},u.prototype._getBeta=function(){if(this.curve.endo){var t=this.precomputed;if(t&&t.beta)return t.beta;var e=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(t){var n=this.curve,i=function(t){return n.point(t.x.redMul(n.endo.beta),t.y)};t.beta=e,e.precomputed={beta:null,naf:t.naf&&{wnd:t.naf.wnd,points:t.naf.points.map(i)},doubles:t.doubles&&{step:t.doubles.step,points:t.doubles.points.map(i)}}}return e}},u.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},u.fromJSON=function(t,e,n){"string"===typeof e&&(e=JSON.parse(e));var i=t.point(e[0],e[1],n);if(!e[2])return i;function o(e){return t.point(e[0],e[1],n)}var r=e[2];return i.precomputed={beta:null,doubles:r.doubles&&{step:r.doubles.step,points:[i].concat(r.doubles.points.map(o))},naf:r.naf&&{wnd:r.naf.wnd,points:[i].concat(r.naf.points.map(o))}},i},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return this.inf},u.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},u.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(i),r=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,a)},u.prototype.getX=function(){return this.x.fromRed()},u.prototype.getY=function(){return this.y.fromRed()},u.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,n){var i=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)},u.prototype.jmulAdd=function(t,e,n){var i=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)},u.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},u.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return e},u.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},r(c,a.BasePoint),l.prototype.jpoint=function(t,e,n){return new c(this,t,e,n)},c.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(n,i)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(e),o=t.x.redMul(n),r=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=i.redSub(o),l=r.redSub(a);if(0===s.cmpn(0))return 0!==l.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=s.redSqr(),c=u.redMul(s),d=i.redMul(u),h=l.redSqr().redIAdd(c).redISub(d).redISub(d),f=l.redMul(d.redISub(h)).redISub(r.redMul(c)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(h,f,p)},c.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,i=t.x.redMul(e),o=this.y,r=t.y.redMul(e).redMul(this.z),a=n.redSub(i),s=o.redSub(r);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),c=n.redMul(l),d=s.redSqr().redIAdd(u).redISub(c).redISub(c),h=s.redMul(c.redISub(d)).redISub(o.redMul(u)),f=this.z.redMul(a);return this.curve.jpoint(d,h,f)},c.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var e=this,n=0;n<t;n++)e=e.dbl();return e}var i=this.curve.a,o=this.curve.tinv,r=this.x,a=this.y,s=this.z,l=s.redSqr().redSqr(),u=a.redAdd(a);for(n=0;n<t;n++){var c=r.redSqr(),d=u.redSqr(),h=d.redSqr(),f=c.redAdd(c).redIAdd(c).redIAdd(i.redMul(l)),p=r.redMul(d),m=f.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),_=f.redMul(g);_=_.redIAdd(_).redISub(h);var v=u.redMul(s);n+1<t&&(l=l.redMul(h)),r=m,s=v,u=_}return this.curve.jpoint(r,u.redMul(o),s)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},c.prototype._zeroDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),r=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(i).redISub(r);a=a.redIAdd(a);var s=i.redAdd(i).redIAdd(i),l=s.redSqr().redISub(a).redISub(a),u=r.redIAdd(r);u=(u=u.redIAdd(u)).redIAdd(u),t=l,e=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),d=this.y.redSqr(),h=d.redSqr(),f=this.x.redAdd(d).redSqr().redISub(c).redISub(h);f=f.redIAdd(f);var p=c.redAdd(c).redIAdd(c),m=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),t=m.redISub(f).redISub(f),e=p.redMul(f.redISub(t)).redISub(g),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(t,e,n)},c.prototype._threeDbl=function(){var t,e,n;if(this.zOne){var i=this.x.redSqr(),o=this.y.redSqr(),r=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(i).redISub(r);a=a.redIAdd(a);var s=i.redAdd(i).redIAdd(i).redIAdd(this.curve.a),l=s.redSqr().redISub(a).redISub(a);t=l;var u=r.redIAdd(r);u=(u=u.redIAdd(u)).redIAdd(u),e=s.redMul(a.redISub(l)).redISub(u),n=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),d=this.y.redSqr(),h=this.x.redMul(d),f=this.x.redSub(c).redMul(this.x.redAdd(c));f=f.redAdd(f).redIAdd(f);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);t=f.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(d).redISub(c);var g=d.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),e=f.redMul(p.redISub(t)).redISub(g)}return this.curve.jpoint(t,e,n)},c.prototype._dbl=function(){var t=this.curve.a,e=this.x,n=this.y,i=this.z,o=i.redSqr().redSqr(),r=e.redSqr(),a=n.redSqr(),s=r.redAdd(r).redIAdd(r).redIAdd(t.redMul(o)),l=e.redAdd(e),u=(l=l.redIAdd(l)).redMul(a),c=s.redSqr().redISub(u.redAdd(u)),d=u.redISub(c),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=s.redMul(d).redISub(h),p=n.redAdd(n).redMul(i);return this.curve.jpoint(c,f,p)},c.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr(),i=e.redSqr(),o=t.redAdd(t).redIAdd(t),r=o.redSqr(),a=this.x.redAdd(e).redSqr().redISub(t).redISub(i),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(r)).redSqr(),l=i.redIAdd(i);l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var u=o.redIAdd(a).redSqr().redISub(r).redISub(s).redISub(l),c=e.redMul(u);c=(c=c.redIAdd(c)).redIAdd(c);var d=this.x.redMul(s).redISub(c);d=(d=d.redIAdd(d)).redIAdd(d);var h=this.y.redMul(u.redMul(l.redISub(u)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var f=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(d,h,f)},c.prototype.mul=function(t,e){return t=new o(t,e),this.curve._wnafMul(this,t)},c.prototype.eq=function(t){if("affine"===t.type)return this.eq(t.toJ());if(this===t)return!0;var e=this.z.redSqr(),n=t.z.redSqr();if(0!==this.x.redMul(n).redISub(t.x.redMul(e)).cmpn(0))return!1;var i=e.redMul(this.z),o=n.redMul(t.z);return 0===this.y.redMul(o).redISub(t.y.redMul(i)).cmpn(0)},c.prototype.eqXToP=function(t){var e=this.z.redSqr(),n=t.toRed(this.curve.red).redMul(e);if(0===this.x.cmp(n))return!0;for(var i=t.clone(),o=this.curve.redN.redMul(e);;){if(i.iadd(this.curve.n),i.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},c.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var i=n(111),o=n(22),r=n(245),a=n(85);function s(t){r.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function l(t,e,n){r.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,16),this.z=new i(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(s,r),t.exports=s,s.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),i=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},o(l,r.BasePoint),s.prototype.decodePoint=function(t,e){return this.point(a.toArray(t,e),1)},s.prototype.point=function(t,e){return new l(this,t,e)},s.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(t,e){return new l(t,e[0],e[1]||t.one)},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),i=t.redMul(e),o=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,o)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=t.x.redAdd(t.z),r=t.x.redSub(t.z).redMul(n),a=o.redMul(i),s=e.z.redMul(r.redAdd(a).redSqr()),l=e.x.redMul(r.redISub(a).redSqr());return this.curve.point(s,l)},l.prototype.mul=function(t){for(var e=t.clone(),n=this,i=this.curve.point(null,null),o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var r=o.length-1;r>=0;r--)0===o[r]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var i=n(85),o=n(111),r=n(22),a=n(245),s=i.assert;function l(t){this.twisted=1!==(0|t.a),this.mOneA=this.twisted&&-1===(0|t.a),this.extended=this.mOneA,a.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1===(0|t.c)}function u(t,e,n,i,r){a.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(n,16),this.z=i?new o(i,16):this.curve.one,this.t=r&&new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r(l,a),t.exports=l,l.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},l.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},l.prototype.jpoint=function(t,e,n,i){return this.point(t,e,n,i)},l.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),r=this.one.redSub(this.c2.redMul(this.d).redMul(n)),a=i.redMul(r.redInvm()),s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");var l=s.fromRed().isOdd();return(e&&!l||!e&&l)&&(s=s.redNeg()),this.point(t,s)},l.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),r=n.redMul(this.d).redMul(this.c2).redSub(this.a),a=i.redMul(r.redInvm());if(0===a.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var s=a.redSqrt();if(0!==s.redSqr().redSub(a).cmp(this.zero))throw new Error("invalid point");return s.fromRed().isOdd()!==e&&(s=s.redNeg()),this.point(s,t)},l.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),i=e.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===i.cmp(o)},r(u,a.BasePoint),l.prototype.pointFromJSON=function(t){return u.fromJSON(this,t)},l.prototype.point=function(t,e,n,i){return new u(this,t,e,n,i)},u.fromJSON=function(t,e){return new u(t,e[0],e[1],e[2])},u.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},u.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},u.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),r=i.redAdd(e),a=r.redSub(n),s=i.redSub(e),l=o.redMul(a),u=r.redMul(s),c=o.redMul(s),d=a.redMul(r);return this.curve.point(l,u,d,c)},u.prototype._projDbl=function(){var t,e,n,i=this.x.redAdd(this.y).redSqr(),o=this.x.redSqr(),r=this.y.redSqr();if(this.curve.twisted){var a=(u=this.curve._mulA(o)).redAdd(r);if(this.zOne)t=i.redSub(o).redSub(r).redMul(a.redSub(this.curve.two)),e=a.redMul(u.redSub(r)),n=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),l=a.redSub(s).redISub(s);t=i.redSub(o).redISub(r).redMul(l),e=a.redMul(u.redSub(r)),n=a.redMul(l)}}else{var u=o.redAdd(r);s=this.curve._mulC(this.z).redSqr(),l=u.redSub(s).redSub(s);t=this.curve._mulC(i.redISub(u)).redMul(l),e=this.curve._mulC(u).redMul(o.redISub(r)),n=u.redMul(l)}return this.curve.point(t,e,n)},u.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},u.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),r=n.redSub(e),a=o.redSub(i),s=o.redAdd(i),l=n.redAdd(e),u=r.redMul(a),c=s.redMul(l),d=r.redMul(l),h=a.redMul(s);return this.curve.point(u,c,h,d)},u.prototype._projAdd=function(t){var e,n,i=this.z.redMul(t.z),o=i.redSqr(),r=this.x.redMul(t.x),a=this.y.redMul(t.y),s=this.curve.d.redMul(r).redMul(a),l=o.redSub(s),u=o.redAdd(s),c=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(r).redISub(a),d=i.redMul(l).redMul(c);return this.curve.twisted?(e=i.redMul(u).redMul(a.redSub(this.curve._mulA(r))),n=l.redMul(u)):(e=i.redMul(u).redMul(a.redSub(r)),n=this.curve._mulC(l).redMul(u)),this.curve.point(d,e,n)},u.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},u.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},u.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},u.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},u.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},u.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},u.prototype.getX=function(){return this.normalize(),this.x.fromRed()},u.prototype.getY=function(){return this.normalize(),this.y.fromRed()},u.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},u.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},u.prototype.toP=u.prototype.normalize,u.prototype.mixedAdd=u.prototype.add},function(t,e,n){"use strict";e.sha1=n(1203),e.sha224=n(1204),e.sha256=n(567),e.sha384=n(1205),e.sha512=n(568)},function(t,e,n){"use strict";var i=n(105),o=n(207),r=n(566),a=i.rotl32,s=i.sum32,l=i.sum32_5,u=r.ft_1,c=o.BlockHash,d=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(h,c),t.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i<n.length;i++)n[i]=a(n[i-3]^n[i-8]^n[i-14]^n[i-16],1);var o=this.h[0],r=this.h[1],c=this.h[2],h=this.h[3],f=this.h[4];for(i=0;i<n.length;i++){var p=~~(i/20),m=l(a(o,5),u(p,r,c,h),f,n[i],d[p]);f=h,h=c,c=a(r,30),r=o,o=m}this.h[0]=s(this.h[0],o),this.h[1]=s(this.h[1],r),this.h[2]=s(this.h[2],c),this.h[3]=s(this.h[3],h),this.h[4]=s(this.h[4],f)},h.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"big"):i.split32(this.h,"big")}},function(t,e,n){"use strict";var i=n(105),o=n(567);function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}i.inherits(r,o),t.exports=r,r.blockSize=512,r.outSize=224,r.hmacStrength=192,r.padLength=64,r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,7),"big"):i.split32(this.h.slice(0,7),"big")}},function(t,e,n){"use strict";var i=n(105),o=n(568);function r(){if(!(this instanceof r))return new r;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}i.inherits(r,o),t.exports=r,r.blockSize=1024,r.outSize=384,r.hmacStrength=192,r.padLength=128,r.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h.slice(0,12),"big"):i.split32(this.h.slice(0,12),"big")}},function(t,e,n){"use strict";var i=n(105),o=n(207),r=i.rotl32,a=i.sum32,s=i.sum32_3,l=i.sum32_4,u=o.BlockHash;function c(){if(!(this instanceof c))return new c;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function d(t,e,n,i){return t<=15?e^n^i:t<=31?e&n|~e&i:t<=47?(e|~n)^i:t<=63?e&i|n&~i:e^(n|~i)}function h(t){return t<=15?0:t<=31?1518500249:t<=47?1859775393:t<=63?2400959708:2840853838}function f(t){return t<=15?1352829926:t<=31?1548603684:t<=47?1836072691:t<=63?2053994217:0}i.inherits(c,u),e.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(t,e){for(var n=this.h[0],i=this.h[1],o=this.h[2],u=this.h[3],c=this.h[4],v=n,y=i,b=o,w=u,x=c,C=0;C<80;C++){var S=a(r(l(n,d(C,i,o,u),t[p[C]+e],h(C)),g[C]),c);n=c,c=u,u=r(o,10),o=i,i=S,S=a(r(l(v,d(79-C,y,b,w),t[m[C]+e],f(C)),_[C]),x),v=x,x=w,w=r(b,10),b=y,y=S}S=s(this.h[1],o,w),this.h[1]=s(this.h[2],u,x),this.h[2]=s(this.h[3],c,v),this.h[3]=s(this.h[4],n,y),this.h[4]=s(this.h[0],i,b),this.h[0]=S},c.prototype._digest=function(t){return"hex"===t?i.toHex32(this.h,"little"):i.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],g=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],_=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(t,e,n){"use strict";var i=n(105),o=n(84);function r(t,e,n){if(!(this instanceof r))return new r(t,e,n);this.Hash=t,this.blockSize=t.blockSize/8,this.outSize=t.outSize/8,this.inner=null,this.outer=null,this._init(i.toArray(e,n))}t.exports=r,r.prototype._init=function(t){t.length>this.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e<this.blockSize;e++)t.push(0);for(e=0;e<t.length;e++)t[e]^=54;for(this.inner=(new this.Hash).update(t),e=0;e<t.length;e++)t[e]^=106;this.outer=(new this.Hash).update(t)},r.prototype.update=function(t,e){return this.inner.update(t,e),this},r.prototype.digest=function(t){return this.outer.update(this.inner.digest()),this.outer.digest(t)}},function(t,e){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},function(t,e,n){"use strict";var i=n(111),o=n(1210),r=n(85),a=n(329),s=n(324),l=r.assert,u=n(1211),c=n(1212);function d(t){if(!(this instanceof d))return new d(t);"string"===typeof t&&(l(a.hasOwnProperty(t),"Unknown curve "+t),t=a[t]),t instanceof a.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}t.exports=d,d.prototype.keyPair=function(t){return new u(this,t)},d.prototype.keyFromPrivate=function(t,e){return u.fromPrivate(this,t,e)},d.prototype.keyFromPublic=function(t,e){return u.fromPublic(this,t,e)},d.prototype.genKeyPair=function(t){t||(t={});for(var e=new o({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||s(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new i(2));;){var a=new i(e.generate(n));if(!(a.cmp(r)>0))return a.iaddn(1),this.keyFromPrivate(a)}},d.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},d.prototype.sign=function(t,e,n,r){"object"===typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var a=this.n.byteLength(),s=e.getPrivate().toArray("be",a),l=t.toArray("be",a),u=new o({hash:this.hash,entropy:s,nonce:l,pers:r.pers,persEnc:r.persEnc||"utf8"}),d=this.n.sub(new i(1)),h=0;;h++){var f=r.k?r.k(h):new i(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(d)>=0)){var p=this.g.mul(f);if(!p.isInfinity()){var m=p.getX(),g=m.umod(this.n);if(0!==g.cmpn(0)){var _=f.invm(this.n).mul(g.mul(e.getPrivate()).iadd(t));if(0!==(_=_.umod(this.n)).cmpn(0)){var v=(p.getY().isOdd()?1:0)|(0!==m.cmp(g)?2:0);return r.canonical&&_.cmp(this.nh)>0&&(_=this.n.sub(_),v^=1),new c({r:g,s:_,recoveryParam:v})}}}}}},d.prototype.verify=function(t,e,n,o){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,o);var r=(e=new c(e,"hex")).r,a=e.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var s,l=a.invm(this.n),u=l.mul(t).umod(this.n),d=l.mul(r).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(u,n.getPublic(),d)).isInfinity()&&s.eqXToP(r):!(s=this.g.mulAdd(u,n.getPublic(),d)).isInfinity()&&0===s.getX().umod(this.n).cmp(r)},d.prototype.recoverPubKey=function(t,e,n,o){l((3&n)===n,"The recovery param is more than two bits"),e=new c(e,o);var r=this.n,a=new i(t),s=e.r,u=e.s,d=1&n,h=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&h)throw new Error("Unable to find sencond key candinate");s=h?this.curve.pointFromX(s.add(this.curve.n),d):this.curve.pointFromX(s,d);var f=e.r.invm(r),p=r.sub(a).mul(f).umod(r),m=u.mul(f).umod(r);return this.g.mulAdd(p,s,m)},d.prototype.getKeyRecoveryParam=function(t,e,n,i){if(null!==(e=new c(e,i)).recoveryParam)return e.recoveryParam;for(var o=0;o<4;o++){var r;try{r=this.recoverPubKey(t,e,o)}catch(t){continue}if(r.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var i=n(330),o=n(564),r=n(84);function a(t){if(!(this instanceof a))return new a(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");r(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=a,a.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(i),this._reseed=1,this.reseedInterval=281474976710656},a.prototype._hmac=function(){return new i.hmac(this.hash,this.K)},a.prototype._update=function(t){var e=this._hmac().update(this.V).update([0]);t&&(e=e.update(t)),this.K=e.digest(),this.V=this._hmac().update(this.V).digest(),t&&(this.K=this._hmac().update(this.V).update([1]).update(t).digest(),this.V=this._hmac().update(this.V).digest())},a.prototype.reseed=function(t,e,n,i){"string"!==typeof e&&(i=n,n=e,e=null),t=o.toArray(t,e),n=o.toArray(n,i),r(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},a.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof e&&(i=n,n=e,e=null),n&&(n=o.toArray(n,i||"hex"),this._update(n));for(var r=[];r.length<t;)this.V=this._hmac().update(this.V).digest(),r=r.concat(this.V);var a=r.slice(0,t);return this._update(n),this._reseed++,o.encode(a,e)}},function(t,e,n){"use strict";var i=n(111),o=n(85).assert;function r(t,e){this.ec=t,this.priv=null,this.pub=null,e.priv&&this._importPrivate(e.priv,e.privEnc),e.pub&&this._importPublic(e.pub,e.pubEnc)}t.exports=r,r.fromPublic=function(t,e,n){return e instanceof r?e:new r(t,{pub:e,pubEnc:n})},r.fromPrivate=function(t,e,n){return e instanceof r?e:new r(t,{priv:e,privEnc:n})},r.prototype.validate=function(){var t=this.getPublic();return t.isInfinity()?{result:!1,reason:"Invalid public key"}:t.validate()?t.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},r.prototype.getPublic=function(t,e){return"string"===typeof t&&(e=t,t=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),e?this.pub.encode(e,t):this.pub},r.prototype.getPrivate=function(t){return"hex"===t?this.priv.toString(16,2):this.priv},r.prototype._importPrivate=function(t,e){this.priv=new i(t,e||16),this.priv=this.priv.umod(this.ec.curve.n)},r.prototype._importPublic=function(t,e){if(t.x||t.y)return"mont"===this.ec.curve.type?o(t.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||o(t.x&&t.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(t.x,t.y));this.pub=this.ec.curve.decodePoint(t,e)},r.prototype.derive=function(t){return t.mul(this.priv).getX()},r.prototype.sign=function(t,e,n){return this.ec.sign(t,this,e,n)},r.prototype.verify=function(t,e){return this.ec.verify(t,e,this)},r.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},function(t,e,n){"use strict";var i=n(111),o=n(85),r=o.assert;function a(t,e){if(t instanceof a)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function s(){this.place=0}function l(t,e){var n=t[e.place++];if(!(128&n))return n;var i=15&n;if(0===i||i>4)return!1;for(var o=0,r=0,a=e.place;r<i;r++,a++)o<<=8,o|=t[a],o>>>=0;return!(o<=127)&&(e.place=a,o)}function u(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e<n;)e++;return 0===e?t:t.slice(e)}function c(t,e){if(e<128)t.push(e);else{var n=1+(Math.log(e)/Math.LN2>>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=a,a.prototype._importDER=function(t,e){t=o.toArray(t,e);var n=new s;if(48!==t[n.place++])return!1;var r=l(t,n);if(!1===r)return!1;if(r+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var a=l(t,n);if(!1===a)return!1;var u=t.slice(n.place,a+n.place);if(n.place+=a,2!==t[n.place++])return!1;var c=l(t,n);if(!1===c)return!1;if(t.length!==c+n.place)return!1;var d=t.slice(n.place,c+n.place);if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}return this.r=new i(u),this.s=new i(d),this.recoveryParam=null,!0},a.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=u(e),n=u(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var i=[2];c(i,e.length),(i=i.concat(e)).push(2),c(i,n.length);var r=i.concat(n),a=[48];return c(a,r.length),a=a.concat(r),o.encode(a,t)}},function(t,e,n){"use strict";var i=n(330),o=n(329),r=n(85),a=r.assert,s=r.parseBytes,l=n(1214),u=n(1215);function c(t){if(a("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof c))return new c(t);t=o[t].curve;this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}t.exports=c,c.prototype.sign=function(t,e){t=s(t);var n=this.keyFromSecret(e),i=this.hashInt(n.messagePrefix(),t),o=this.g.mul(i),r=this.encodePoint(o),a=this.hashInt(r,n.pubBytes(),t).mul(n.priv()),l=i.add(a).umod(this.curve.n);return this.makeSignature({R:o,S:l,Rencoded:r})},c.prototype.verify=function(t,e,n){t=s(t),e=this.makeSignature(e);var i=this.keyFromPublic(n),o=this.hashInt(e.Rencoded(),i.pubBytes(),t),r=this.g.mul(e.S());return e.R().add(i.pub().mul(o)).eq(r)},c.prototype.hashInt=function(){for(var t=this.hash(),e=0;e<arguments.length;e++)t.update(arguments[e]);return r.intFromLE(t.digest()).umod(this.curve.n)},c.prototype.keyFromPublic=function(t){return l.fromPublic(this,t)},c.prototype.keyFromSecret=function(t){return l.fromSecret(this,t)},c.prototype.makeSignature=function(t){return t instanceof u?t:new u(this,t)},c.prototype.encodePoint=function(t){var e=t.getY().toArray("le",this.encodingLength);return e[this.encodingLength-1]|=t.getX().isOdd()?128:0,e},c.prototype.decodePoint=function(t){var e=(t=r.parseBytes(t)).length-1,n=t.slice(0,e).concat(-129&t[e]),i=0!==(128&t[e]),o=r.intFromLE(n);return this.curve.pointFromY(o,i)},c.prototype.encodeInt=function(t){return t.toArray("le",this.encodingLength)},c.prototype.decodeInt=function(t){return r.intFromLE(t)},c.prototype.isPoint=function(t){return t instanceof this.pointClass}},function(t,e,n){"use strict";var i=n(85),o=i.assert,r=i.parseBytes,a=i.cachedProperty;function s(t,e){this.eddsa=t,this._secret=r(e.secret),t.isPoint(e.pub)?this._pub=e.pub:this._pubBytes=r(e.pub)}s.fromPublic=function(t,e){return e instanceof s?e:new s(t,{pub:e})},s.fromSecret=function(t,e){return e instanceof s?e:new s(t,{secret:e})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",(function(){return this.eddsa.encodePoint(this.pub())})),a(s,"pub",(function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())})),a(s,"privBytes",(function(){var t=this.eddsa,e=this.hash(),n=t.encodingLength-1,i=e.slice(0,t.encodingLength);return i[0]&=248,i[n]&=127,i[n]|=64,i})),a(s,"priv",(function(){return this.eddsa.decodeInt(this.privBytes())})),a(s,"hash",(function(){return this.eddsa.hash().update(this.secret()).digest()})),a(s,"messagePrefix",(function(){return this.hash().slice(this.eddsa.encodingLength)})),s.prototype.sign=function(t){return o(this._secret,"KeyPair can only verify"),this.eddsa.sign(t,this)},s.prototype.verify=function(t,e){return this.eddsa.verify(t,e,this)},s.prototype.getSecret=function(t){return o(this._secret,"KeyPair is public only"),i.encode(this.secret(),t)},s.prototype.getPublic=function(t){return i.encode(this.pubBytes(),t)},t.exports=s},function(t,e,n){"use strict";var i=n(111),o=n(85),r=o.assert,a=o.cachedProperty,s=o.parseBytes;function l(t,e){this.eddsa=t,"object"!==typeof e&&(e=s(e)),Array.isArray(e)&&(e={R:e.slice(0,t.encodingLength),S:e.slice(t.encodingLength)}),r(e.R&&e.S,"Signature without R or S"),t.isPoint(e.R)&&(this._R=e.R),e.S instanceof i&&(this._S=e.S),this._Rencoded=Array.isArray(e.R)?e.R:e.Rencoded,this._Sencoded=Array.isArray(e.S)?e.S:e.Sencoded}a(l,"S",(function(){return this.eddsa.decodeInt(this.Sencoded())})),a(l,"R",(function(){return this.eddsa.decodePoint(this.Rencoded())})),a(l,"Rencoded",(function(){return this.eddsa.encodePoint(this.R())})),a(l,"Sencoded",(function(){return this.eddsa.encodeInt(this.S())})),l.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},l.prototype.toHex=function(){return o.encode(this.toBytes(),"hex").toUpperCase()},t.exports=l},,function(t,e,n){"use strict";var i=n(570);e.certificate=n(1224);var o=i.define("RSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())}));e.RSAPrivateKey=o;var r=i.define("RSAPublicKey",(function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())}));e.RSAPublicKey=r;var a=i.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())}));e.PublicKey=a;var s=i.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())})),l=i.define("PrivateKeyInfo",(function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())}));e.PrivateKey=l;var u=i.define("EncryptedPrivateKeyInfo",(function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())}));e.EncryptedPrivateKey=u;var c=i.define("DSAPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())}));e.DSAPrivateKey=c,e.DSAparam=i.define("DSAparam",(function(){this.int()}));var d=i.define("ECPrivateKey",(function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())}));e.ECPrivateKey=d;var h=i.define("ECParameters",(function(){this.choice({namedCurve:this.objid()})}));e.signature=i.define("signature",(function(){this.seq().obj(this.key("r").int(),this.key("s").int())}))},,function(t,e,n){"use strict";var i=n(572),o=n(574),r=n(22);function a(t,e){this.name=t,this.body=e,this.decoders={},this.encoders={}}e.define=function(t,e){return new a(t,e)},a.prototype._createNamed=function(t){var e=this.name;function n(t){this._initNamed(t,e)}return r(n,t),n.prototype._initNamed=function(e,n){t.call(this,e,n)},new n(this)},a.prototype._getDecoder=function(t){return t=t||"der",this.decoders.hasOwnProperty(t)||(this.decoders[t]=this._createNamed(o[t])),this.decoders[t]},a.prototype.decode=function(t,e,n){return this._getDecoder(e).decode(t,n)},a.prototype._getEncoder=function(t){return t=t||"der",this.encoders.hasOwnProperty(t)||(this.encoders[t]=this._createNamed(i[t])),this.encoders[t]},a.prototype.encode=function(t,e,n){return this._getEncoder(e).encode(t,n)}},function(t,e,n){"use strict";var i=n(22),o=n(573);function r(t){o.call(this,t),this.enc="pem"}i(r,o),t.exports=r,r.prototype.encode=function(t,e){for(var n=o.prototype.encode.call(this,t).toString("base64"),i=["-----BEGIN "+e.label+"-----"],r=0;r<n.length;r+=64)i.push(n.slice(r,r+64));return i.push("-----END "+e.label+"-----"),i.join("\n")}},function(t,e,n){"use strict";var i=n(22),o=n(331).Buffer,r=n(575);function a(t){r.call(this,t),this.enc="pem"}i(a,r),t.exports=a,a.prototype.decode=function(t,e){for(var n=t.toString().split(/[\r\n]+/g),i=e.label.toUpperCase(),a=/^-----(BEGIN|END) ([^-]+)-----$/,s=-1,l=-1,u=0;u<n.length;u++){var c=n[u].match(a);if(null!==c&&c[2]===i){if(-1!==s){if("END"!==c[1])break;l=u;break}if("BEGIN"!==c[1])break;s=u}}if(-1===s||-1===l)throw new Error("PEM section not found for: "+i);var d=n.slice(s+1,l).join("");d.replace(/[^a-z0-9+/=]+/gi,"");var h=o.from(d,"base64");return r.prototype.decode.call(this,h,e)}},function(t,e,n){"use strict";var i=e;i.Reporter=n(333).Reporter,i.DecoderBuffer=n(208).DecoderBuffer,i.EncoderBuffer=n(208).EncoderBuffer,i.Node=n(332)},function(t,e,n){"use strict";var i=e;i._reverse=function(t){var e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);var i=t[n];e[i]=n})),e},i.der=n(334)},function(t,e,n){"use strict";var i=n(570),o=i.define("Time",(function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})})),r=i.define("AttributeTypeValue",(function(){this.seq().obj(this.key("type").objid(),this.key("value").any())})),a=i.define("AlgorithmIdentifier",(function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())})),s=i.define("SubjectPublicKeyInfo",(function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())})),l=i.define("RelativeDistinguishedName",(function(){this.setof(r)})),u=i.define("RDNSequence",(function(){this.seqof(l)})),c=i.define("Name",(function(){this.choice({rdnSequence:this.use(u)})})),d=i.define("Validity",(function(){this.seq().obj(this.key("notBefore").use(o),this.key("notAfter").use(o))})),h=i.define("Extension",(function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())})),f=i.define("TBSCertificate",(function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(c),this.key("validity").use(d),this.key("subject").use(c),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())})),p=i.define("X509Certificate",(function(){this.seq().obj(this.key("tbsCertificate").use(f),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())}));t.exports=p},function(t){t.exports=JSON.parse('{"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}')},function(t,e,n){var i=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,o=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,r=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,a=n(244),s=n(322),l=n(30).Buffer;t.exports=function(t,e){var n,u=t.toString(),c=u.match(i);if(c){var d="aes"+c[1],h=l.from(c[2],"hex"),f=l.from(c[3].replace(/[\r\n]/g,""),"base64"),p=a(e,h.slice(0,8),parseInt(c[1],10)).key,m=[],g=s.createDecipheriv(d,p,h);m.push(g.update(f)),m.push(g.final()),n=l.concat(m)}else{var _=u.match(r);n=l.from(_[2].replace(/[\r\n]/g,""),"base64")}return{tag:u.match(o)[1],data:n}}},function(t,e,n){var i=n(325).Buffer,o=n(569),r=n(328).ec,a=n(246),s=n(576);function l(t,e){if(t.cmpn(0)<=0)throw new Error("invalid sig");if(t.cmp(e)>=e)throw new Error("invalid sig")}t.exports=function(t,e,n,u,c){var d=a(n);if("ec"===d.type){if("ecdsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");return function(t,e,n){var i=s[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new r(i),a=n.data.subjectPrivateKey.data;return o.verify(e,t,a)}(t,e,d)}if("dsa"===d.type){if("dsa"!==u)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,r=n.data.q,s=n.data.g,u=n.data.pub_key,c=a.signature.decode(t,"der"),d=c.s,h=c.r;l(d,r),l(h,r);var f=o.mont(i),p=d.invm(r);return 0===s.toRed(f).redPow(new o(e).mul(p).mod(r)).fromRed().mul(u.toRed(f).redPow(h.mul(p).mod(r)).fromRed()).mod(i).mod(r).cmp(h)}(t,e,d)}if("rsa"!==u&&"ecdsa/rsa"!==u)throw new Error("wrong public key type");e=i.concat([c,e]);for(var h=d.modulus.byteLength(),f=[1],p=0;e.length+f.length+2<h;)f.push(255),p++;f.push(0);for(var m=-1;++m<e.length;)f.push(e[m]);f=i.from(f);var g=o.mont(d.modulus);t=(t=new o(t).toRed(g)).redPow(new o(d.publicExponent)),t=i.from(t.fromRed().toArray());var _=p<8?1:0;for(h=Math.min(t.length,f.length),t.length!==f.length&&(_=1),m=-1;++m<h;)_|=t[m]^f[m];return 0===_}},function(t,e,n){(function(e){var i=n(328),o=n(1229);t.exports=function(t){return new a(t)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function a(t){this.curveType=r[t],this.curveType||(this.curveType={name:t}),this.curve=new i.ec(this.curveType.name),this.keys=void 0}function s(t,n,i){Array.isArray(t)||(t=t.toArray());var o=new e(t);if(i&&o.length<i){var r=new e(i-o.length);r.fill(0),o=e.concat([r,o])}return n?o.toString(n):o}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,a.prototype.generateKeys=function(t,e){return this.keys=this.curve.genKeyPair(),this.getPublicKey(t,e)},a.prototype.computeSecret=function(t,n,i){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),s(this.curve.keyFromPublic(t).getPublic().mul(this.keys.getPrivate()).getX(),i,this.curveType.byteLength)},a.prototype.getPublicKey=function(t,e){var n=this.keys.getPublic("compressed"===e,!0);return"hybrid"===e&&(n[n.length-1]%2?n[0]=7:n[0]=6),s(n,t)},a.prototype.getPrivateKey=function(t){return s(this.keys.getPrivate(),t)},a.prototype.setPublicKey=function(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this.keys._importPublic(t),this},a.prototype.setPrivateKey=function(t,n){n=n||"utf8",e.isBuffer(t)||(t=new e(t,n));var i=new o(t);return i=i.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(i),this}}).call(this,n(52).Buffer)},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"===typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{a=n(1230).Buffer}catch(S){}function s(t,e,n){for(var i=0,o=Math.min(t.length,n),r=e;r<o;r++){var a=t.charCodeAt(r)-48;i<<=4,i|=a>=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),a=e;a<r;a++){var s=t.charCodeAt(a)-48;o*=i,o+=s>=49?s-49+10:s>=17?s-17+10:s}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"===typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&o++,16===e?this._parseHex(t,o):this._parseBase(t,e,o),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(i(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},r.prototype._initArray=function(t,e,n){if(i("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var r,a,s=0;if("be"===n)for(o=t.length-1,r=0;o>=0;o-=3)a=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);else if("le"===n)for(o=0,r=0;o<t.length;o+=3)a=t[o]|t[o+1]<<8|t[o+2]<<16,this.words[r]|=a<<s&67108863,this.words[r+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,r=0;for(n=t.length-6,i=0;n>=e;n-=6)o=s(t,n,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303,(r+=24)>=26&&(r-=26,i++);n+6!==e&&(o=s(t,e,n+6),this.words[i]|=o<<r&67108863,this.words[i+1]|=o>>>26-r&4194303),this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,a=r%i,s=Math.min(r,r-a)+n,u=0,c=n;c<s;c+=i)u=l(t,c,c+i,e),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var d=1;for(u=l(t,c,t.length,e),c=0;c<a;c++)d*=e;this.imuln(d),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},r.prototype.copy=function(t){t.words=new Array(this.length);for(var e=0;e<this.length;e++)t.words[e]=this.words[e];t.length=this.length,t.negative=this.negative,t.red=this.red},r.prototype.clone=function(){var t=new r(null);return this.copy(t),t},r.prototype._expand=function(t){for(;this.length<t;)this.words[this.length++]=0;return this},r.prototype.strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function h(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],a=o*r,s=67108863&a,l=a/67108864|0;n.words[0]=s;for(var u=1;u<i;u++){for(var c=l>>>26,d=67108863&l,h=Math.min(u,e.length-1),f=Math.max(0,u-t.length+1);f<=h;f++){var p=u-f|0;c+=(a=(o=0|t.words[p])*(r=0|e.words[f])+d)/67108864|0,d=67108863&a}n.words[u]=0|d,l=0|c}return 0!==l?n.words[u]=0|l:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,a=0;a<this.length;a++){var s=this.words[a],l=(16777215&(s<<o|r)).toString(16);n=0!==(r=s>>>24-o&16777215)||a!==this.length-1?u[6-l.length]+l+n:l+n,(o+=2)>=26&&(o-=26,a--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var h=c[t],f=d[t];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var m=p.modn(f).toString(t);n=(p=p.idivn(f)).isZero()?m+n:u[h-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i("undefined"!==typeof a),this.toArrayLike(a,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var a,s,l="le"===e,u=new t(r),c=this.clone();if(l){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[s]=a;for(;s<r;s++)u[s]=0}else{for(s=0;s<r-o;s++)u[s]=0;for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),u[r-s-1]=a}return u},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;e<this.length;e++){var n=this._zeroBits(this.words[e]);if(t+=n,26!==n)break}return t},r.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},r.prototype.toTwos=function(t){return 0!==this.negative?this.abs().inotn(t).iaddn(1):this.clone()},r.prototype.fromTwos=function(t){return this.testn(t-1)?this.notn(t).iaddn(1).ineg():this.clone()},r.prototype.isNeg=function(){return 0!==this.negative},r.prototype.neg=function(){return this.clone().ineg()},r.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},r.prototype.iuor=function(t){for(;this.length<t.length;)this.words[this.length++]=0;for(var e=0;e<t.length;e++)this.words[e]=this.words[e]|t.words[e];return this.strip()},r.prototype.ior=function(t){return i(0===(this.negative|t.negative)),this.iuor(t)},r.prototype.or=function(t){return this.length>t.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;n<e.length;n++)this.words[n]=this.words[n]&t.words[n];return this.length=e.length,this.strip()},r.prototype.iand=function(t){return i(0===(this.negative|t.negative)),this.iuand(t)},r.prototype.and=function(t){return this.length>t.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;i<n.length;i++)this.words[i]=e.words[i]^n.words[i];if(this!==e)for(;i<e.length;i++)this.words[i]=e.words[i];return this.length=e.length,this.strip()},r.prototype.ixor=function(t){return i(0===(this.negative|t.negative)),this.iuxor(t)},r.prototype.xor=function(t){return this.length>t.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o<e;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"===typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<<o:this.words[n]&~(1<<o),this.strip()},r.prototype.iadd=function(t){var e,n,i;if(0!==this.negative&&0===t.negative)return this.negative=0,e=this.isub(t),this.negative^=1,this._normSign();if(0===this.negative&&0!==t.negative)return t.negative=0,e=this.isub(t),t.negative=1,e._normSign();this.length>t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r<i.length;r++)e=(0|n.words[r])+(0|i.words[r])+o,this.words[r]=67108863&e,o=e>>>26;for(;0!==o&&r<n.length;r++)e=(0|n.words[r])+o,this.words[r]=67108863&e,o=e>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;r<n.length;r++)this.words[r]=n.words[r];return this},r.prototype.add=function(t){var e;return 0!==t.negative&&0===this.negative?(t.negative=0,e=this.sub(t),t.negative^=1,e):0===t.negative&&0!==this.negative?(this.negative=0,e=t.sub(this),this.negative=1,e):this.length>t.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a<i.length;a++)r=(e=(0|n.words[a])-(0|i.words[a])+r)>>26,this.words[a]=67108863&e;for(;0!==r&&a<n.length;a++)r=(e=(0|n.words[a])+r)>>26,this.words[a]=67108863&e;if(0===r&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this.strip()},r.prototype.sub=function(t){return this.clone().isub(t)};var f=function(t,e,n){var i,o,r,a=t.words,s=e.words,l=n.words,u=0,c=0|a[0],d=8191&c,h=c>>>13,f=0|a[1],p=8191&f,m=f>>>13,g=0|a[2],_=8191&g,v=g>>>13,y=0|a[3],b=8191&y,w=y>>>13,x=0|a[4],C=8191&x,S=x>>>13,k=0|a[5],I=8191&k,T=k>>>13,E=0|a[6],O=8191&E,M=E>>>13,P=0|a[7],D=8191&P,A=P>>>13,R=0|a[8],B=8191&R,N=R>>>13,L=0|a[9],F=8191&L,V=L>>>13,z=0|s[0],j=8191&z,H=z>>>13,W=0|s[1],U=8191&W,G=W>>>13,K=0|s[2],q=8191&K,$=K>>>13,Y=0|s[3],Z=8191&Y,X=Y>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,it=et>>>13,ot=0|s[6],rt=8191&ot,at=ot>>>13,st=0|s[7],lt=8191&st,ut=st>>>13,ct=0|s[8],dt=8191&ct,ht=ct>>>13,ft=0|s[9],pt=8191&ft,mt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(u+(i=Math.imul(d,j))|0)+((8191&(o=(o=Math.imul(d,H))+Math.imul(h,j)|0))<<13)|0;u=((r=Math.imul(h,H))+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(p,j),o=(o=Math.imul(p,H))+Math.imul(m,j)|0,r=Math.imul(m,H);var _t=(u+(i=i+Math.imul(d,U)|0)|0)+((8191&(o=(o=o+Math.imul(d,G)|0)+Math.imul(h,U)|0))<<13)|0;u=((r=r+Math.imul(h,G)|0)+(o>>>13)|0)+(_t>>>26)|0,_t&=67108863,i=Math.imul(_,j),o=(o=Math.imul(_,H))+Math.imul(v,j)|0,r=Math.imul(v,H),i=i+Math.imul(p,U)|0,o=(o=o+Math.imul(p,G)|0)+Math.imul(m,U)|0,r=r+Math.imul(m,G)|0;var vt=(u+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,$)|0)+Math.imul(h,q)|0))<<13)|0;u=((r=r+Math.imul(h,$)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(b,j),o=(o=Math.imul(b,H))+Math.imul(w,j)|0,r=Math.imul(w,H),i=i+Math.imul(_,U)|0,o=(o=o+Math.imul(_,G)|0)+Math.imul(v,U)|0,r=r+Math.imul(v,G)|0,i=i+Math.imul(p,q)|0,o=(o=o+Math.imul(p,$)|0)+Math.imul(m,q)|0,r=r+Math.imul(m,$)|0;var yt=(u+(i=i+Math.imul(d,Z)|0)|0)+((8191&(o=(o=o+Math.imul(d,X)|0)+Math.imul(h,Z)|0))<<13)|0;u=((r=r+Math.imul(h,X)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(C,j),o=(o=Math.imul(C,H))+Math.imul(S,j)|0,r=Math.imul(S,H),i=i+Math.imul(b,U)|0,o=(o=o+Math.imul(b,G)|0)+Math.imul(w,U)|0,r=r+Math.imul(w,G)|0,i=i+Math.imul(_,q)|0,o=(o=o+Math.imul(_,$)|0)+Math.imul(v,q)|0,r=r+Math.imul(v,$)|0,i=i+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,X)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,X)|0;var bt=(u+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,tt)|0)+Math.imul(h,Q)|0))<<13)|0;u=((r=r+Math.imul(h,tt)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(I,j),o=(o=Math.imul(I,H))+Math.imul(T,j)|0,r=Math.imul(T,H),i=i+Math.imul(C,U)|0,o=(o=o+Math.imul(C,G)|0)+Math.imul(S,U)|0,r=r+Math.imul(S,G)|0,i=i+Math.imul(b,q)|0,o=(o=o+Math.imul(b,$)|0)+Math.imul(w,q)|0,r=r+Math.imul(w,$)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,X)|0)+Math.imul(v,Z)|0,r=r+Math.imul(v,X)|0,i=i+Math.imul(p,Q)|0,o=(o=o+Math.imul(p,tt)|0)+Math.imul(m,Q)|0,r=r+Math.imul(m,tt)|0;var wt=(u+(i=i+Math.imul(d,nt)|0)|0)+((8191&(o=(o=o+Math.imul(d,it)|0)+Math.imul(h,nt)|0))<<13)|0;u=((r=r+Math.imul(h,it)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(O,j),o=(o=Math.imul(O,H))+Math.imul(M,j)|0,r=Math.imul(M,H),i=i+Math.imul(I,U)|0,o=(o=o+Math.imul(I,G)|0)+Math.imul(T,U)|0,r=r+Math.imul(T,G)|0,i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,$)|0)+Math.imul(S,q)|0,r=r+Math.imul(S,$)|0,i=i+Math.imul(b,Z)|0,o=(o=o+Math.imul(b,X)|0)+Math.imul(w,Z)|0,r=r+Math.imul(w,X)|0,i=i+Math.imul(_,Q)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(v,Q)|0,r=r+Math.imul(v,tt)|0,i=i+Math.imul(p,nt)|0,o=(o=o+Math.imul(p,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var xt=(u+(i=i+Math.imul(d,rt)|0)|0)+((8191&(o=(o=o+Math.imul(d,at)|0)+Math.imul(h,rt)|0))<<13)|0;u=((r=r+Math.imul(h,at)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,j),o=(o=Math.imul(D,H))+Math.imul(A,j)|0,r=Math.imul(A,H),i=i+Math.imul(O,U)|0,o=(o=o+Math.imul(O,G)|0)+Math.imul(M,U)|0,r=r+Math.imul(M,G)|0,i=i+Math.imul(I,q)|0,o=(o=o+Math.imul(I,$)|0)+Math.imul(T,q)|0,r=r+Math.imul(T,$)|0,i=i+Math.imul(C,Z)|0,o=(o=o+Math.imul(C,X)|0)+Math.imul(S,Z)|0,r=r+Math.imul(S,X)|0,i=i+Math.imul(b,Q)|0,o=(o=o+Math.imul(b,tt)|0)+Math.imul(w,Q)|0,r=r+Math.imul(w,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(v,nt)|0,r=r+Math.imul(v,it)|0,i=i+Math.imul(p,rt)|0,o=(o=o+Math.imul(p,at)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,at)|0;var Ct=(u+(i=i+Math.imul(d,lt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ut)|0)+Math.imul(h,lt)|0))<<13)|0;u=((r=r+Math.imul(h,ut)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(B,j),o=(o=Math.imul(B,H))+Math.imul(N,j)|0,r=Math.imul(N,H),i=i+Math.imul(D,U)|0,o=(o=o+Math.imul(D,G)|0)+Math.imul(A,U)|0,r=r+Math.imul(A,G)|0,i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,$)|0)+Math.imul(M,q)|0,r=r+Math.imul(M,$)|0,i=i+Math.imul(I,Z)|0,o=(o=o+Math.imul(I,X)|0)+Math.imul(T,Z)|0,r=r+Math.imul(T,X)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,tt)|0)+Math.imul(S,Q)|0,r=r+Math.imul(S,tt)|0,i=i+Math.imul(b,nt)|0,o=(o=o+Math.imul(b,it)|0)+Math.imul(w,nt)|0,r=r+Math.imul(w,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,at)|0)+Math.imul(v,rt)|0,r=r+Math.imul(v,at)|0,i=i+Math.imul(p,lt)|0,o=(o=o+Math.imul(p,ut)|0)+Math.imul(m,lt)|0,r=r+Math.imul(m,ut)|0;var St=(u+(i=i+Math.imul(d,dt)|0)|0)+((8191&(o=(o=o+Math.imul(d,ht)|0)+Math.imul(h,dt)|0))<<13)|0;u=((r=r+Math.imul(h,ht)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(F,j),o=(o=Math.imul(F,H))+Math.imul(V,j)|0,r=Math.imul(V,H),i=i+Math.imul(B,U)|0,o=(o=o+Math.imul(B,G)|0)+Math.imul(N,U)|0,r=r+Math.imul(N,G)|0,i=i+Math.imul(D,q)|0,o=(o=o+Math.imul(D,$)|0)+Math.imul(A,q)|0,r=r+Math.imul(A,$)|0,i=i+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,X)|0)+Math.imul(M,Z)|0,r=r+Math.imul(M,X)|0,i=i+Math.imul(I,Q)|0,o=(o=o+Math.imul(I,tt)|0)+Math.imul(T,Q)|0,r=r+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,o=(o=o+Math.imul(C,it)|0)+Math.imul(S,nt)|0,r=r+Math.imul(S,it)|0,i=i+Math.imul(b,rt)|0,o=(o=o+Math.imul(b,at)|0)+Math.imul(w,rt)|0,r=r+Math.imul(w,at)|0,i=i+Math.imul(_,lt)|0,o=(o=o+Math.imul(_,ut)|0)+Math.imul(v,lt)|0,r=r+Math.imul(v,ut)|0,i=i+Math.imul(p,dt)|0,o=(o=o+Math.imul(p,ht)|0)+Math.imul(m,dt)|0,r=r+Math.imul(m,ht)|0;var kt=(u+(i=i+Math.imul(d,pt)|0)|0)+((8191&(o=(o=o+Math.imul(d,mt)|0)+Math.imul(h,pt)|0))<<13)|0;u=((r=r+Math.imul(h,mt)|0)+(o>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(F,U),o=(o=Math.imul(F,G))+Math.imul(V,U)|0,r=Math.imul(V,G),i=i+Math.imul(B,q)|0,o=(o=o+Math.imul(B,$)|0)+Math.imul(N,q)|0,r=r+Math.imul(N,$)|0,i=i+Math.imul(D,Z)|0,o=(o=o+Math.imul(D,X)|0)+Math.imul(A,Z)|0,r=r+Math.imul(A,X)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,tt)|0)+Math.imul(M,Q)|0,r=r+Math.imul(M,tt)|0,i=i+Math.imul(I,nt)|0,o=(o=o+Math.imul(I,it)|0)+Math.imul(T,nt)|0,r=r+Math.imul(T,it)|0,i=i+Math.imul(C,rt)|0,o=(o=o+Math.imul(C,at)|0)+Math.imul(S,rt)|0,r=r+Math.imul(S,at)|0,i=i+Math.imul(b,lt)|0,o=(o=o+Math.imul(b,ut)|0)+Math.imul(w,lt)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(_,dt)|0,o=(o=o+Math.imul(_,ht)|0)+Math.imul(v,dt)|0,r=r+Math.imul(v,ht)|0;var It=(u+(i=i+Math.imul(p,pt)|0)|0)+((8191&(o=(o=o+Math.imul(p,mt)|0)+Math.imul(m,pt)|0))<<13)|0;u=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(It>>>26)|0,It&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,$))+Math.imul(V,q)|0,r=Math.imul(V,$),i=i+Math.imul(B,Z)|0,o=(o=o+Math.imul(B,X)|0)+Math.imul(N,Z)|0,r=r+Math.imul(N,X)|0,i=i+Math.imul(D,Q)|0,o=(o=o+Math.imul(D,tt)|0)+Math.imul(A,Q)|0,r=r+Math.imul(A,tt)|0,i=i+Math.imul(O,nt)|0,o=(o=o+Math.imul(O,it)|0)+Math.imul(M,nt)|0,r=r+Math.imul(M,it)|0,i=i+Math.imul(I,rt)|0,o=(o=o+Math.imul(I,at)|0)+Math.imul(T,rt)|0,r=r+Math.imul(T,at)|0,i=i+Math.imul(C,lt)|0,o=(o=o+Math.imul(C,ut)|0)+Math.imul(S,lt)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(b,dt)|0,o=(o=o+Math.imul(b,ht)|0)+Math.imul(w,dt)|0,r=r+Math.imul(w,ht)|0;var Tt=(u+(i=i+Math.imul(_,pt)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(v,pt)|0))<<13)|0;u=((r=r+Math.imul(v,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(F,Z),o=(o=Math.imul(F,X))+Math.imul(V,Z)|0,r=Math.imul(V,X),i=i+Math.imul(B,Q)|0,o=(o=o+Math.imul(B,tt)|0)+Math.imul(N,Q)|0,r=r+Math.imul(N,tt)|0,i=i+Math.imul(D,nt)|0,o=(o=o+Math.imul(D,it)|0)+Math.imul(A,nt)|0,r=r+Math.imul(A,it)|0,i=i+Math.imul(O,rt)|0,o=(o=o+Math.imul(O,at)|0)+Math.imul(M,rt)|0,r=r+Math.imul(M,at)|0,i=i+Math.imul(I,lt)|0,o=(o=o+Math.imul(I,ut)|0)+Math.imul(T,lt)|0,r=r+Math.imul(T,ut)|0,i=i+Math.imul(C,dt)|0,o=(o=o+Math.imul(C,ht)|0)+Math.imul(S,dt)|0,r=r+Math.imul(S,ht)|0;var Et=(u+(i=i+Math.imul(b,pt)|0)|0)+((8191&(o=(o=o+Math.imul(b,mt)|0)+Math.imul(w,pt)|0))<<13)|0;u=((r=r+Math.imul(w,mt)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,tt))+Math.imul(V,Q)|0,r=Math.imul(V,tt),i=i+Math.imul(B,nt)|0,o=(o=o+Math.imul(B,it)|0)+Math.imul(N,nt)|0,r=r+Math.imul(N,it)|0,i=i+Math.imul(D,rt)|0,o=(o=o+Math.imul(D,at)|0)+Math.imul(A,rt)|0,r=r+Math.imul(A,at)|0,i=i+Math.imul(O,lt)|0,o=(o=o+Math.imul(O,ut)|0)+Math.imul(M,lt)|0,r=r+Math.imul(M,ut)|0,i=i+Math.imul(I,dt)|0,o=(o=o+Math.imul(I,ht)|0)+Math.imul(T,dt)|0,r=r+Math.imul(T,ht)|0;var Ot=(u+(i=i+Math.imul(C,pt)|0)|0)+((8191&(o=(o=o+Math.imul(C,mt)|0)+Math.imul(S,pt)|0))<<13)|0;u=((r=r+Math.imul(S,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(F,nt),o=(o=Math.imul(F,it))+Math.imul(V,nt)|0,r=Math.imul(V,it),i=i+Math.imul(B,rt)|0,o=(o=o+Math.imul(B,at)|0)+Math.imul(N,rt)|0,r=r+Math.imul(N,at)|0,i=i+Math.imul(D,lt)|0,o=(o=o+Math.imul(D,ut)|0)+Math.imul(A,lt)|0,r=r+Math.imul(A,ut)|0,i=i+Math.imul(O,dt)|0,o=(o=o+Math.imul(O,ht)|0)+Math.imul(M,dt)|0,r=r+Math.imul(M,ht)|0;var Mt=(u+(i=i+Math.imul(I,pt)|0)|0)+((8191&(o=(o=o+Math.imul(I,mt)|0)+Math.imul(T,pt)|0))<<13)|0;u=((r=r+Math.imul(T,mt)|0)+(o>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(F,rt),o=(o=Math.imul(F,at))+Math.imul(V,rt)|0,r=Math.imul(V,at),i=i+Math.imul(B,lt)|0,o=(o=o+Math.imul(B,ut)|0)+Math.imul(N,lt)|0,r=r+Math.imul(N,ut)|0,i=i+Math.imul(D,dt)|0,o=(o=o+Math.imul(D,ht)|0)+Math.imul(A,dt)|0,r=r+Math.imul(A,ht)|0;var Pt=(u+(i=i+Math.imul(O,pt)|0)|0)+((8191&(o=(o=o+Math.imul(O,mt)|0)+Math.imul(M,pt)|0))<<13)|0;u=((r=r+Math.imul(M,mt)|0)+(o>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(F,lt),o=(o=Math.imul(F,ut))+Math.imul(V,lt)|0,r=Math.imul(V,ut),i=i+Math.imul(B,dt)|0,o=(o=o+Math.imul(B,ht)|0)+Math.imul(N,dt)|0,r=r+Math.imul(N,ht)|0;var Dt=(u+(i=i+Math.imul(D,pt)|0)|0)+((8191&(o=(o=o+Math.imul(D,mt)|0)+Math.imul(A,pt)|0))<<13)|0;u=((r=r+Math.imul(A,mt)|0)+(o>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(F,dt),o=(o=Math.imul(F,ht))+Math.imul(V,dt)|0,r=Math.imul(V,ht);var At=(u+(i=i+Math.imul(B,pt)|0)|0)+((8191&(o=(o=o+Math.imul(B,mt)|0)+Math.imul(N,pt)|0))<<13)|0;u=((r=r+Math.imul(N,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863;var Rt=(u+(i=Math.imul(F,pt))|0)+((8191&(o=(o=Math.imul(F,mt))+Math.imul(V,pt)|0))<<13)|0;return u=((r=Math.imul(V,mt))+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,l[0]=gt,l[1]=_t,l[2]=vt,l[3]=yt,l[4]=bt,l[5]=wt,l[6]=xt,l[7]=Ct,l[8]=St,l[9]=kt,l[10]=It,l[11]=Tt,l[12]=Et,l[13]=Ot,l[14]=Mt,l[15]=Pt,l[16]=Dt,l[17]=At,l[18]=Rt,0!==u&&(l[19]=u,n.length++),n};function p(t,e,n){return(new m).mulp(t,e,n)}function m(t,e){this.x=t,this.y=e}Math.imul||(f=h),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?h(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r<n.length-1;r++){var a=o;o=0;for(var s=67108863&i,l=Math.min(r,e.length-1),u=Math.max(0,r-t.length+1);u<=l;u++){var c=r-u,d=(0|t.words[c])*(0|e.words[u]),h=67108863&d;s=67108863&(h=h+s|0),o+=(a=(a=a+(d/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}n.words[r]=s,i=a,a=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):p(this,t,e)},m.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i<t;i++)e[i]=this.revBin(i,n,t);return e},m.prototype.revBin=function(t,e,n){if(0===t||t===n-1)return t;for(var i=0,o=0;o<e;o++)i|=(1&t)<<e-o-1,t>>=1;return i},m.prototype.permute=function(t,e,n,i,o,r){for(var a=0;a<r;a++)i[a]=e[t[a]],o[a]=n[t[a]]},m.prototype.transform=function(t,e,n,i,o,r){this.permute(r,t,e,n,i,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,l=Math.cos(2*Math.PI/s),u=Math.sin(2*Math.PI/s),c=0;c<o;c+=s)for(var d=l,h=u,f=0;f<a;f++){var p=n[c+f],m=i[c+f],g=n[c+f+a],_=i[c+f+a],v=d*g-h*_;_=d*_+h*g,g=v,n[c+f]=p+g,i[c+f]=m+_,n[c+f+a]=p-g,i[c+f+a]=m-_,f!==s&&(v=l*d-u*h,h=l*h+u*d,d=v)}},m.prototype.guessLen13b=function(t,e){var n=1|Math.max(e,t),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},m.prototype.conjugate=function(t,e,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=t[i];t[i]=t[n-i-1],t[n-i-1]=o,o=e[i],e[i]=-e[n-i-1],e[n-i-1]=-o}},m.prototype.normalize13b=function(t,e){for(var n=0,i=0;i<e/2;i++){var o=8192*Math.round(t[2*i+1]/e)+Math.round(t[2*i]/e)+n;t[i]=67108863&o,n=o<67108864?0:o/67108864|0}return t},m.prototype.convert13b=function(t,e,n,o){for(var r=0,a=0;a<e;a++)r+=0|t[a],n[2*a]=8191&r,r>>>=13,n[2*a+1]=8191&r,r>>>=13;for(a=2*e;a<o;++a)n[a]=0;i(0===r),i(0===(-8192&r))},m.prototype.stub=function(t){for(var e=new Array(t),n=0;n<t;n++)e[n]=0;return e},m.prototype.mulp=function(t,e,n){var i=2*this.guessLen13b(t.length,e.length),o=this.makeRBT(i),r=this.stub(i),a=new Array(i),s=new Array(i),l=new Array(i),u=new Array(i),c=new Array(i),d=new Array(i),h=n.words;h.length=i,this.convert13b(t.words,t.length,a,i),this.convert13b(e.words,e.length,u,i),this.transform(a,r,s,l,i,o),this.transform(u,r,c,d,i,o);for(var f=0;f<i;f++){var p=s[f]*c[f]-l[f]*d[f];l[f]=s[f]*d[f]+l[f]*c[f],s[f]=p}return this.conjugate(s,l,i),this.transform(s,l,h,r,i,o),this.conjugate(h,r,i),this.normalize13b(h,i),n.negative=t.negative^e.negative,n.length=t.length+e.length,n.strip()},r.prototype.mul=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},r.prototype.mulf=function(t){var e=new r(null);return e.words=new Array(this.length+t.length),p(this,t,e)},r.prototype.imul=function(t){return this.clone().mulTo(t,this)},r.prototype.imuln=function(t){i("number"===typeof t),i(t<67108864);for(var e=0,n=0;n<this.length;n++){var o=(0|this.words[n])*t,r=(67108863&o)+(67108863&e);e>>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n<e.length;n++){var i=n/26|0,o=n%26;e[n]=(t.words[i]&1<<o)>>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i<e.length&&0===e[i];i++,n=n.sqr());if(++i<e.length)for(var o=n.sqr();i<e.length;i++,o=o.sqr())0!==e[i]&&(n=n.mul(o));return n},r.prototype.iushln=function(t){i("number"===typeof t&&t>=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e<this.length;e++){var s=this.words[e]&r,l=(0|this.words[e])-s<<n;this.words[e]=l|a,a=s>>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e<o;e++)this.words[e]=0;this.length+=o}return this.strip()},r.prototype.ishln=function(t){return i(0===this.negative),this.iushln(t)},r.prototype.iushrn=function(t,e,n){var o;i("number"===typeof t&&t>=0),o=e?(e-e%26)/26:0;var r=t%26,a=Math.min((t-r)/26,this.length),s=67108863^67108863>>>r<<r,l=n;if(o-=a,o=Math.max(0,o),l){for(var u=0;u<a;u++)l.words[u]=this.words[u];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;u>=0&&(0!==c||u>=o);u--){var d=0|this.words[u];this.words[u]=c<<26-r|d>>>r,c=d&s}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<<e;return!(this.length<=n)&&!!(this.words[n]&o)},r.prototype.imaskn=function(t){i("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<<e;this.words[this.length-1]&=o}return this.strip()},r.prototype.maskn=function(t){return this.clone().imaskn(t)},r.prototype.iaddn=function(t){return i("number"===typeof t),i(t<67108864),t<0?this.isubn(-t):0!==this.negative?1===this.length&&(0|this.words[0])<t?(this.words[0]=t-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(t),this.negative=1,this):this._iaddn(t)},r.prototype._iaddn=function(t){this.words[0]+=t;for(var e=0;e<this.length&&this.words[e]>=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"===typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e<this.length&&this.words[e]<0;e++)this.words[e]+=67108864,this.words[e+1]-=1;return this.strip()},r.prototype.addn=function(t){return this.clone().iaddn(t)},r.prototype.subn=function(t){return this.clone().isubn(t)},r.prototype.iabs=function(){return this.negative=0,this},r.prototype.abs=function(){return this.clone().iabs()},r.prototype._ishlnsubmul=function(t,e,n){var o,r,a=t.length+n;this._expand(a);var s=0;for(o=0;o<t.length;o++){r=(0|this.words[o+n])+s;var l=(0|t.words[o])*e;s=((r-=67108863&l)>>26)-(l/67108864|0),this.words[o+n]=67108863&r}for(;o<this.length-n;o++)s=(r=(0|this.words[o+n])+s)>>26,this.words[o+n]=67108863&r;if(0===s)return this.strip();for(i(-1===s),s=0,o=0;o<this.length;o++)s=(r=-(0|this.words[o])+s)>>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var s,l=i.length-o.length;if("mod"!==e){(s=new r(null)).length=l+1,s.words=new Array(s.length);for(var u=0;u<s.length;u++)s.words[u]=0}var c=i.clone()._ishlnsubmul(o,1,l);0===c.negative&&(i=c,s&&(s.words[l]=1));for(var d=l-1;d>=0;d--){var h=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(h=Math.min(h/a|0,67108863),i._ishlnsubmul(o,h,d);0!==i.negative;)h--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);s&&(s.words[d]=h)}return s&&s.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:s||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),a=new r(0),s=new r(0),l=new r(1),u=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++u;for(var c=n.clone(),d=e.clone();!e.isZero();){for(var h=0,f=1;0===(e.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(e.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||l.isOdd())&&(s.iadd(c),l.isub(d)),s.iushrn(1),l.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(s),a.isub(l)):(n.isub(e),s.isub(o),l.isub(a))}return{a:s,b:l,gcd:n.iushln(u)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new r(1),s=new r(0),l=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var u=0,c=1;0===(e.words[0]&c)&&u<26;++u,c<<=1);if(u>0)for(e.iushrn(u);u-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var d=0,h=1;0===(n.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(n.iushrn(d);d-- >0;)s.isOdd()&&s.iadd(l),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0===(1&this.words[0])},r.prototype.isOdd=function(){return 1===(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"===typeof t);var e=t%26,n=(t-e)/26,o=1<<e;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var r=o,a=n;0!==r&&a<this.length;a++){var s=0|this.words[a];r=(s+=r)>>>26,s&=67108863,this.words[a]=s}return 0!==r&&(this.words[a]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:o<t?-1:1}return 0!==this.negative?0|-e:e},r.prototype.cmp=function(t){if(0!==this.negative&&0===t.negative)return-1;if(0===this.negative&&0!==t.negative)return 1;var e=this.ucmp(t);return 0!==this.negative?0|-e:e},r.prototype.ucmp=function(t){if(this.length>t.length)return 1;if(this.length<t.length)return-1;for(var e=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){i<o?e=-1:i>o&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new x(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function _(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){_.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){_.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){_.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){_.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(t){if("string"===typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){x.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}_.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},_.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},_.prototype.split=function(t,e){t.iushrn(this.n,0,e)},_.prototype.imulK=function(t){return t.imul(this.k)},o(v,_),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i<n;i++)e.words[i]=t.words[i];if(e.length=n,t.length<=9)return t.words[0]=0,void(t.length=1);var o=t.words[9];for(e.words[e.length++]=4194303&o,i=10;i<t.length;i++){var r=0|t.words[i];t.words[i-10]=(4194303&r)<<4|o>>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n<t.length;n++){var i=0|t.words[n];e+=977*i,t.words[n]=67108863&e,e=64*i+(e/67108864|0)}return 0===t.words[t.length-1]&&(t.length--,0===t.words[t.length-1]&&t.length--),t},o(y,_),o(b,_),o(w,_),w.prototype.imulK=function(t){for(var e=0,n=0;n<t.length;n++){var i=19*(0|t.words[n])+e,o=67108863&i;i>>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new w}return g[t]=e,e},x.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},x.prototype._verify2=function(t,e){i(0===(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},x.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},x.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},x.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},x.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},x.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},x.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},x.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},x.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},x.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},x.prototype.isqr=function(t){return this.imul(t,t.clone())},x.prototype.sqr=function(t){return this.mul(t,t)},x.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2===1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var s=new r(1).toRed(this),l=s.redNeg(),u=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new r(2*c*c).toRed(this);0!==this.pow(c,u).cmp(l);)c.redIAdd(l);for(var d=this.pow(c,o),h=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var m=f,g=0;0!==m.cmp(s);g++)m=m.redSqr();i(g<p);var _=this.pow(d,new r(1).iushln(p-g-1));h=h.redMul(_),d=_.redSqr(),f=f.redMul(d),p=g}return h},x.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},x.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],t);var o=n[0],a=0,s=0,l=e.bitLength()%26;for(0===l&&(l=26),i=e.length-1;i>=0;i--){for(var u=e.words[i],c=l-1;c>=0;c--){var d=u>>c&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4===++s||0===i&&0===c)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}l=26}return o},x.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},x.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,x),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(127)(t))},,function(t,e,n){e.publicEncrypt=n(1232),e.privateDecrypt=n(1234),e.privateEncrypt=function(t,n){return e.publicEncrypt(t,n,!0)},e.publicDecrypt=function(t,n){return e.privateDecrypt(t,n,!0)}},function(t,e,n){var i=n(246),o=n(174),r=n(204),a=n(577),s=n(578),l=n(335),u=n(579),c=n(327),d=n(30).Buffer;t.exports=function(t,e,n){var h;h=t.padding?t.padding:n?1:4;var f,p=i(t);if(4===h)f=function(t,e){var n=t.modulus.byteLength(),i=e.length,u=r("sha1").update(d.alloc(0)).digest(),c=u.length,h=2*c;if(i>n-h-2)throw new Error("message too long");var f=d.alloc(n-i-h-2),p=n-c-1,m=o(c),g=s(d.concat([u,f,d.alloc(1,1),e],p),a(m,p)),_=s(m,a(g,c));return new l(d.concat([d.alloc(1),_,g],n))}(p,e);else if(1===h)f=function(t,e,n){var i,r=e.length,a=t.modulus.byteLength();if(r>a-11)throw new Error("message too long");i=n?d.alloc(a-r-3,255):function(t){var e,n=d.allocUnsafe(t),i=0,r=o(2*t),a=0;for(;i<t;)a===r.length&&(r=o(2*t),a=0),(e=r[a++])&&(n[i++]=e);return n}(a-r-3);return new l(d.concat([d.from([0,n?1:2]),i,d.alloc(1),e],a))}(p,e,n);else{if(3!==h)throw new Error("unknown padding");if((f=new l(e)).cmp(p.modulus)>=0)throw new Error("data too long for modulus")}return n?c(f,p):u(f,p)}},,function(t,e,n){var i=n(246),o=n(577),r=n(578),a=n(335),s=n(327),l=n(204),u=n(579),c=n(30).Buffer;t.exports=function(t,e,n){var d;d=t.padding?t.padding:n?1:4;var h,f=i(t),p=f.modulus.byteLength();if(e.length>p||new a(e).cmp(f.modulus)>=0)throw new Error("decryption error");h=n?u(new a(e),f):s(e,f);var m=c.alloc(p-h.length);if(h=c.concat([m,h],p),4===d)return function(t,e){var n=t.modulus.byteLength(),i=l("sha1").update(c.alloc(0)).digest(),a=i.length;if(0!==e[0])throw new Error("decryption error");var s=e.slice(1,a+1),u=e.slice(a+1),d=r(s,o(u,a)),h=r(u,o(d,n-a-1));if(function(t,e){t=c.from(t),e=c.from(e);var n=0,i=t.length;t.length!==e.length&&(n++,i=Math.min(t.length,e.length));var o=-1;for(;++o<i;)n+=t[o]^e[o];return n}(i,h.slice(0,a)))throw new Error("decryption error");var f=a;for(;0===h[f];)f++;if(1!==h[f++])throw new Error("decryption error");return h.slice(f)}(f,h);if(1===d)return function(t,e,n){var i=e.slice(0,2),o=2,r=0;for(;0!==e[o++];)if(o>=e.length){r++;break}var a=e.slice(2,o-1);("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&r++;a.length<8&&r++;if(r)throw new Error("decryption error");return e.slice(o)}(0,h,n);if(3===d)return h;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,i){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=n(30),a=n(174),s=r.Buffer,l=r.kMaxLength,u=t.crypto||t.msCrypto,c=Math.pow(2,32)-1;function d(t,e){if("number"!==typeof t||t!==t)throw new TypeError("offset must be a number");if(t>c||t<0)throw new TypeError("offset must be a uint32");if(t>l||t>e)throw new RangeError("offset out of range")}function h(t,e,n){if("number"!==typeof t||t!==t)throw new TypeError("size must be a number");if(t>c||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>l)throw new RangeError("buffer too small")}function f(t,e,n,o){if(i.browser){var r=t.buffer,s=new Uint8Array(r,e,n);return u.getRandomValues(s),o?void i.nextTick((function(){o(null,t)})):t}if(!o)return a(n).copy(t,e),t;a(n,(function(n,i){if(n)return o(n);i.copy(t,e),o(null,t)}))}u&&u.getRandomValues||!i.browser?(e.randomFill=function(e,n,i,o){if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"===typeof n)o=n,n=0,i=e.length;else if("function"===typeof i)o=i,i=e.length-n;else if("function"!==typeof o)throw new TypeError('"cb" argument must be a function');return d(n,e.length),h(i,n,e.length),f(e,n,i,o)},e.randomFillSync=function(e,n,i){"undefined"===typeof n&&(n=0);if(!s.isBuffer(e)&&!(e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');d(n,e.length),void 0===i&&(i=e.length-n);return h(i,n,e.length),f(e,n,i)}):(e.randomFill=o,e.randomFillSync=o)}).call(this,n(56),n(50))},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(){if("function"==typeof ArrayBuffer){var t=o.lib.WordArray,e=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var n=t.byteLength,i=[],o=0;o<n;o++)i[o>>>2]|=t[o]<<24-o%4*8;e.call(this,i,n)}else e.apply(this,arguments)}).prototype=t}}(),o.lib.WordArray)}()},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(){var t=o,e=t.lib.WordArray,n=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(t){for(var e=t.words,n=t.sigBytes,i=[],o=0;o<n;o+=2){var r=e[o>>>2]>>>16-o%4*8&65535;i.push(String.fromCharCode(r))}return i.join("")},parse:function(t){for(var n=t.length,i=[],o=0;o<n;o++)i[o>>>1]|=t.charCodeAt(o)<<16-o%2*16;return e.create(i,2*n)}},n.Utf16LE={stringify:function(t){for(var e=t.words,n=t.sigBytes,o=[],r=0;r<n;r+=2){var a=i(e[r>>>2]>>>16-r%4*8&65535);o.push(String.fromCharCode(a))}return o.join("")},parse:function(t){for(var n=t.length,o=[],r=0;r<n;r++)o[r>>>1]|=i(t.charCodeAt(r)<<16-r%2*16);return e.create(o,2*n)}}}(),o.enc.Utf16)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(580),function(){var t=r,e=t.lib.WordArray,n=t.algo,i=n.SHA256,o=n.SHA224=i.extend({_doReset:function(){this._hash=new e.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o)}(),r.SHA224)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(247),n(581),function(){var t=r,e=t.x64,n=e.Word,i=e.WordArray,o=t.algo,a=o.SHA512,s=o.SHA384=a.extend({_doReset:function(){this._hash=new i.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var t=a._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=a._createHelper(s),t.HmacSHA384=a._createHmacHelper(s)}(),r.SHA384)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(247),function(t){var e=r,n=e.lib,i=n.WordArray,o=n.Hasher,a=e.x64.Word,s=e.algo,l=[],u=[],c=[];!function(){for(var t=1,e=0,n=0;n<24;n++){l[t+5*e]=(n+1)*(n+2)/2%64;var i=(2*t+3*e)%5;t=e%5,e=i}for(t=0;t<5;t++)for(e=0;e<5;e++)u[t+5*e]=e+(2*t+3*e)%5*5;for(var o=1,r=0;r<24;r++){for(var s=0,d=0,h=0;h<7;h++){if(1&o){var f=(1<<h)-1;f<32?d^=1<<f:s^=1<<f-32}128&o?o=o<<1^113:o<<=1}c[r]=a.create(s,d)}}();var d=[];!function(){for(var t=0;t<25;t++)d[t]=a.create()}();var h=s.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],e=0;e<25;e++)t[e]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,e){for(var n=this._state,i=this.blockSize/2,o=0;o<i;o++){var r=t[e+2*o],a=t[e+2*o+1];r=16711935&(r<<8|r>>>24)|4278255360&(r<<24|r>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(E=n[o]).high^=a,E.low^=r}for(var s=0;s<24;s++){for(var h=0;h<5;h++){for(var f=0,p=0,m=0;m<5;m++)f^=(E=n[h+5*m]).high,p^=E.low;var g=d[h];g.high=f,g.low=p}for(h=0;h<5;h++){var _=d[(h+4)%5],v=d[(h+1)%5],y=v.high,b=v.low;for(f=_.high^(y<<1|b>>>31),p=_.low^(b<<1|y>>>31),m=0;m<5;m++)(E=n[h+5*m]).high^=f,E.low^=p}for(var w=1;w<25;w++){var x=(E=n[w]).high,C=E.low,S=l[w];S<32?(f=x<<S|C>>>32-S,p=C<<S|x>>>32-S):(f=C<<S-32|x>>>64-S,p=x<<S-32|C>>>64-S);var k=d[u[w]];k.high=f,k.low=p}var I=d[0],T=n[0];for(I.high=T.high,I.low=T.low,h=0;h<5;h++)for(m=0;m<5;m++){var E=n[w=h+5*m],O=d[w],M=d[(h+1)%5+5*m],P=d[(h+2)%5+5*m];E.high=O.high^~M.high&P.high,E.low=O.low^~M.low&P.low}E=n[0];var D=c[s];E.high^=D.high,E.low^=D.low}},_doFinalize:function(){var e=this._data,n=e.words,o=(this._nDataBytes,8*e.sigBytes),r=32*this.blockSize;n[o>>>5]|=1<<24-o%32,n[(t.ceil((o+1)/r)*r>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,l=s/8,u=[],c=0;c<l;c++){var d=a[c],h=d.high,f=d.low;h=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8),f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),u.push(f),u.push(h)}return new i.init(u,s)},clone:function(){for(var t=o.clone.call(this),e=t._state=this._state.slice(0),n=0;n<25;n++)e[n]=e[n].clone();return t}});e.SHA3=o._createHelper(h),e.HmacSHA3=o._createHmacHelper(h)}(Math),r.SHA3)}()},function(t,e,n){!function(e,i){var o;t.exports=(o=n(35),function(t){var e=o,n=e.lib,i=n.WordArray,r=n.Hasher,a=e.algo,s=i.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),l=i.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=i.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=i.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),d=i.create([0,1518500249,1859775393,2400959708,2840853838]),h=i.create([1352829926,1548603684,1836072691,2053994217,0]),f=a.RIPEMD160=r.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,e){for(var n=0;n<16;n++){var i=e+n,o=t[i];t[i]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8)}var r,a,f,b,w,x,C,S,k,I,T,E=this._hash.words,O=d.words,M=h.words,P=s.words,D=l.words,A=u.words,R=c.words;for(x=r=E[0],C=a=E[1],S=f=E[2],k=b=E[3],I=w=E[4],n=0;n<80;n+=1)T=r+t[e+P[n]]|0,T+=n<16?p(a,f,b)+O[0]:n<32?m(a,f,b)+O[1]:n<48?g(a,f,b)+O[2]:n<64?_(a,f,b)+O[3]:v(a,f,b)+O[4],T=(T=y(T|=0,A[n]))+w|0,r=w,w=b,b=y(f,10),f=a,a=T,T=x+t[e+D[n]]|0,T+=n<16?v(C,S,k)+M[0]:n<32?_(C,S,k)+M[1]:n<48?g(C,S,k)+M[2]:n<64?m(C,S,k)+M[3]:p(C,S,k)+M[4],T=(T=y(T|=0,R[n]))+I|0,x=I,I=k,k=y(S,10),S=C,C=T;T=E[1]+f+k|0,E[1]=E[2]+b+I|0,E[2]=E[3]+w+x|0,E[3]=E[4]+r+C|0,E[4]=E[0]+a+S|0,E[0]=T},_doFinalize:function(){var t=this._data,e=t.words,n=8*this._nDataBytes,i=8*t.sigBytes;e[i>>>5]|=128<<24-i%32,e[14+(i+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),t.sigBytes=4*(e.length+1),this._process();for(var o=this._hash,r=o.words,a=0;a<5;a++){var s=r[a];r[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return o},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,e,n){return t^e^n}function m(t,e,n){return t&e|~t&n}function g(t,e,n){return(t|~e)^n}function _(t,e,n){return t&n|e&~n}function v(t,e,n){return t^(e|~n)}function y(t,e){return t<<e|t>>>32-e}e.RIPEMD160=r._createHelper(f),e.HmacRIPEMD160=r._createHmacHelper(f)}(Math),o.RIPEMD160)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(336),n(337),function(){var t=r,e=t.lib,n=e.Base,i=e.WordArray,o=t.algo,a=o.SHA1,s=o.HMAC,l=o.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,e){for(var n=this.cfg,o=s.create(n.hasher,t),r=i.create(),a=i.create([1]),l=r.words,u=a.words,c=n.keySize,d=n.iterations;l.length<c;){var h=o.update(e).finalize(a);o.reset();for(var f=h.words,p=f.length,m=h,g=1;g<d;g++){m=o.finalize(m),o.reset();for(var _=m.words,v=0;v<p;v++)f[v]^=_[v]}r.concat(h),u[0]++}return r.sigBytes=4*c,r}});t.PBKDF2=function(t,e,n){return l.create(n).compute(t,e)}}(),r.PBKDF2)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.mode.CFB=function(){var t=r.lib.BlockCipherMode.extend();function e(t,e,n,i){var o,r=this._iv;r?(o=r.slice(0),this._iv=void 0):o=this._prevBlock,i.encryptBlock(o,0);for(var a=0;a<n;a++)t[e+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,o=i.blockSize;e.call(this,t,n,o,i),this._prevBlock=t.slice(n,n+o)}}),t.Decryptor=t.extend({processBlock:function(t,n){var i=this._cipher,o=i.blockSize,r=t.slice(n,n+o);e.call(this,t,n,o,i),this._prevBlock=r}}),t}(),r.mode.CFB)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.mode.CTR=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,r=this._counter;o&&(r=this._counter=o.slice(0),this._iv=void 0);var a=r.slice(0);n.encryptBlock(a,0),r[i-1]=r[i-1]+1|0;for(var s=0;s<i;s++)t[e+s]^=a[s]}});return t.Decryptor=e,t}(),r.mode.CTR)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.mode.CTRGladman=function(){var t=r.lib.BlockCipherMode.extend();function e(t){if(255===(t>>24&255)){var e=t>>16&255,n=t>>8&255,i=255&t;255===e?(e=0,255===n?(n=0,255===i?i=0:++i):++n):++e,t=0,t+=e<<16,t+=n<<8,t+=i}else t+=1<<24;return t}var n=t.Encryptor=t.extend({processBlock:function(t,n){var i=this._cipher,o=i.blockSize,r=this._iv,a=this._counter;r&&(a=this._counter=r.slice(0),this._iv=void 0),function(t){0===(t[0]=e(t[0]))&&(t[1]=e(t[1]))}(a);var s=a.slice(0);i.encryptBlock(s,0);for(var l=0;l<o;l++)t[n+l]^=s[l]}});return t.Decryptor=n,t}(),r.mode.CTRGladman)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.mode.OFB=function(){var t=r.lib.BlockCipherMode.extend(),e=t.Encryptor=t.extend({processBlock:function(t,e){var n=this._cipher,i=n.blockSize,o=this._iv,r=this._keystream;o&&(r=this._keystream=o.slice(0),this._iv=void 0),n.encryptBlock(r,0);for(var a=0;a<i;a++)t[e+a]^=r[a]}});return t.Decryptor=e,t}(),r.mode.OFB)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.mode.ECB=function(){var t=r.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,e){this._cipher.encryptBlock(t,e)}}),t.Decryptor=t.extend({processBlock:function(t,e){this._cipher.decryptBlock(t,e)}}),t}(),r.mode.ECB)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.pad.AnsiX923={pad:function(t,e){var n=t.sigBytes,i=4*e,o=i-n%i,r=n+o-1;t.clamp(),t.words[r>>>2]|=o<<24-r%4*8,t.sigBytes+=o},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Ansix923)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.pad.Iso10126={pad:function(t,e){var n=4*e,i=n-t.sigBytes%n;t.concat(r.lib.WordArray.random(i-1)).concat(r.lib.WordArray.create([i<<24],1))},unpad:function(t){var e=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=e}},r.pad.Iso10126)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.pad.Iso97971={pad:function(t,e){t.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(t,e)},unpad:function(t){r.pad.ZeroPadding.unpad(t),t.sigBytes--}},r.pad.Iso97971)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.pad.ZeroPadding={pad:function(t,e){var n=4*e;t.clamp(),t.sigBytes+=n-(t.sigBytes%n||n)},unpad:function(t){var e=t.words,n=t.sigBytes-1;for(n=t.sigBytes-1;n>=0;n--)if(e[n>>>2]>>>24-n%4*8&255){t.sigBytes=n+1;break}}},r.pad.ZeroPadding)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(59),function(t){var e=r,n=e.lib.CipherParams,i=e.enc.Hex;e.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var e=i.parse(t);return n.create({ciphertext:e})}}}(),r.format.Hex)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(180),n(181),n(151),n(59),function(){var t=r,e=t.lib.BlockCipher,n=t.algo,i=[],o=[],a=[],s=[],l=[],u=[],c=[],d=[],h=[],f=[];!function(){for(var t=[],e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;var n=0,r=0;for(e=0;e<256;e++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var m=t[n],g=t[m],_=t[g],v=257*t[p]^16843008*p;a[n]=v<<24|v>>>8,s[n]=v<<16|v>>>16,l[n]=v<<8|v>>>24,u[n]=v,v=16843009*_^65537*g^257*m^16843008*n,c[p]=v<<24|v>>>8,d[p]=v<<16|v>>>16,h[p]=v<<8|v>>>24,f[p]=v,n?(n=m^t[t[t[_^m]]],r^=t[t[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=e.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,e=t.words,n=t.sigBytes/4,o=4*((this._nRounds=n+6)+1),r=this._keySchedule=[],a=0;a<o;a++)a<n?r[a]=e[a]:(u=r[a-1],a%n?n>6&&a%n==4&&(u=i[u>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u]):(u=i[(u=u<<8|u>>>24)>>>24]<<24|i[u>>>16&255]<<16|i[u>>>8&255]<<8|i[255&u],u^=p[a/n|0]<<24),r[a]=r[a-n]^u);for(var s=this._invKeySchedule=[],l=0;l<o;l++){if(a=o-l,l%4)var u=r[a];else u=r[a-4];s[l]=l<4||a<=4?u:c[i[u>>>24]]^d[i[u>>>16&255]]^h[i[u>>>8&255]]^f[i[255&u]]}}},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._keySchedule,a,s,l,u,i)},decryptBlock:function(t,e){var n=t[e+1];t[e+1]=t[e+3],t[e+3]=n,this._doCryptBlock(t,e,this._invKeySchedule,c,d,h,f,o),n=t[e+1],t[e+1]=t[e+3],t[e+3]=n},_doCryptBlock:function(t,e,n,i,o,r,a,s){for(var l=this._nRounds,u=t[e]^n[0],c=t[e+1]^n[1],d=t[e+2]^n[2],h=t[e+3]^n[3],f=4,p=1;p<l;p++){var m=i[u>>>24]^o[c>>>16&255]^r[d>>>8&255]^a[255&h]^n[f++],g=i[c>>>24]^o[d>>>16&255]^r[h>>>8&255]^a[255&u]^n[f++],_=i[d>>>24]^o[h>>>16&255]^r[u>>>8&255]^a[255&c]^n[f++],v=i[h>>>24]^o[u>>>16&255]^r[c>>>8&255]^a[255&d]^n[f++];u=m,c=g,d=_,h=v}m=(s[u>>>24]<<24|s[c>>>16&255]<<16|s[d>>>8&255]<<8|s[255&h])^n[f++],g=(s[c>>>24]<<24|s[d>>>16&255]<<16|s[h>>>8&255]<<8|s[255&u])^n[f++],_=(s[d>>>24]<<24|s[h>>>16&255]<<16|s[u>>>8&255]<<8|s[255&c])^n[f++],v=(s[h>>>24]<<24|s[u>>>16&255]<<16|s[c>>>8&255]<<8|s[255&d])^n[f++],t[e]=m,t[e+1]=g,t[e+2]=_,t[e+3]=v},keySize:8});t.AES=e._createHelper(m)}(),r.AES)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(180),n(181),n(151),n(59),function(){var t=r,e=t.lib,n=e.WordArray,i=e.BlockCipher,o=t.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],u=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],c=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],d=o.DES=i.extend({_doReset:function(){for(var t=this._key.words,e=[],n=0;n<56;n++){var i=a[n]-1;e[n]=t[i>>>5]>>>31-i%32&1}for(var o=this._subKeys=[],r=0;r<16;r++){var u=o[r]=[],c=l[r];for(n=0;n<24;n++)u[n/6|0]|=e[(s[n]-1+c)%28]<<31-n%6,u[4+(n/6|0)]|=e[28+(s[n+24]-1+c)%28]<<31-n%6;for(u[0]=u[0]<<1|u[0]>>>31,n=1;n<7;n++)u[n]=u[n]>>>4*(n-1)+3;u[7]=u[7]<<5|u[7]>>>27}var d=this._invSubKeys=[];for(n=0;n<16;n++)d[n]=o[15-n]},encryptBlock:function(t,e){this._doCryptBlock(t,e,this._subKeys)},decryptBlock:function(t,e){this._doCryptBlock(t,e,this._invSubKeys)},_doCryptBlock:function(t,e,n){this._lBlock=t[e],this._rBlock=t[e+1],h.call(this,4,252645135),h.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),h.call(this,1,1431655765);for(var i=0;i<16;i++){for(var o=n[i],r=this._lBlock,a=this._rBlock,s=0,l=0;l<8;l++)s|=u[l][((a^o[l])&c[l])>>>0];this._lBlock=a,this._rBlock=r^s}var d=this._lBlock;this._lBlock=this._rBlock,this._rBlock=d,h.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),h.call(this,16,65535),h.call(this,4,252645135),t[e]=this._lBlock,t[e+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function h(t,e){var n=(this._lBlock>>>t^this._rBlock)&e;this._rBlock^=n,this._lBlock^=n<<t}function f(t,e){var n=(this._rBlock>>>t^this._lBlock)&e;this._lBlock^=n,this._rBlock^=n<<t}t.DES=i._createHelper(d);var p=o.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var e=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),o=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=d.createEncryptor(n.create(e)),this._des2=d.createEncryptor(n.create(i)),this._des3=d.createEncryptor(n.create(o))},encryptBlock:function(t,e){this._des1.encryptBlock(t,e),this._des2.decryptBlock(t,e),this._des3.encryptBlock(t,e)},decryptBlock:function(t,e){this._des3.decryptBlock(t,e),this._des2.encryptBlock(t,e),this._des1.decryptBlock(t,e)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),r.TripleDES)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(180),n(181),n(151),n(59),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=n.RC4=e.extend({_doReset:function(){for(var t=this._key,e=t.words,n=t.sigBytes,i=this._S=[],o=0;o<256;o++)i[o]=o;o=0;for(var r=0;o<256;o++){var a=o%n,s=e[a>>>2]>>>24-a%4*8&255;r=(r+i[o]+s)%256;var l=i[o];i[o]=i[r],i[r]=l}this._i=this._j=0},_doProcessBlock:function(t,e){t[e]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var t=this._S,e=this._i,n=this._j,i=0,o=0;o<4;o++){n=(n+t[e=(e+1)%256])%256;var r=t[e];t[e]=t[n],t[n]=r,i|=t[(t[e]+t[n])%256]<<24-8*o}return this._i=e,this._j=n,i}t.RC4=e._createHelper(i);var a=n.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)o.call(this)}});t.RC4Drop=e._createHelper(a)}(),r.RC4)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(180),n(181),n(151),n(59),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.Rabbit=e.extend({_doReset:function(){for(var t=this._key.words,e=this.cfg.iv,n=0;n<4;n++)t[n]=16711935&(t[n]<<8|t[n]>>>24)|4278255360&(t[n]<<24|t[n]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],o=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,n=0;n<4;n++)l.call(this);for(n=0;n<8;n++)o[n]^=i[n+4&7];if(e){var r=e.words,a=r[0],s=r[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(o[0]^=u,o[1]^=d,o[2]^=c,o[3]^=h,o[4]^=u,o[5]^=d,o[6]^=c,o[7]^=h,n=0;n<4;n++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),t[e+o]^=i[o]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[n]=l^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.Rabbit=e._createHelper(s)}(),r.Rabbit)}()},function(t,e,n){!function(e,i,o){var r;t.exports=(r=n(35),n(180),n(181),n(151),n(59),function(){var t=r,e=t.lib.StreamCipher,n=t.algo,i=[],o=[],a=[],s=n.RabbitLegacy=e.extend({_doReset:function(){var t=this._key.words,e=this.cfg.iv,n=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var o=0;o<4;o++)l.call(this);for(o=0;o<8;o++)i[o]^=n[o+4&7];if(e){var r=e.words,a=r[0],s=r[1],u=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),d=u>>>16|4294901760&c,h=c<<16|65535&u;for(i[0]^=u,i[1]^=d,i[2]^=c,i[3]^=h,i[4]^=u,i[5]^=d,i[6]^=c,i[7]^=h,o=0;o<4;o++)l.call(this)}},_doProcessBlock:function(t,e){var n=this._X;l.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var o=0;o<4;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8),t[e+o]^=i[o]},blockSize:4,ivSize:2});function l(){for(var t=this._X,e=this._C,n=0;n<8;n++)o[n]=e[n];for(e[0]=e[0]+1295307597+this._b|0,e[1]=e[1]+3545052371+(e[0]>>>0<o[0]>>>0?1:0)|0,e[2]=e[2]+886263092+(e[1]>>>0<o[1]>>>0?1:0)|0,e[3]=e[3]+1295307597+(e[2]>>>0<o[2]>>>0?1:0)|0,e[4]=e[4]+3545052371+(e[3]>>>0<o[3]>>>0?1:0)|0,e[5]=e[5]+886263092+(e[4]>>>0<o[4]>>>0?1:0)|0,e[6]=e[6]+1295307597+(e[5]>>>0<o[5]>>>0?1:0)|0,e[7]=e[7]+3545052371+(e[6]>>>0<o[6]>>>0?1:0)|0,this._b=e[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var i=t[n]+e[n],r=65535&i,s=i>>>16,l=((r*r>>>17)+r*s>>>15)+s*s,u=((4294901760&i)*i|0)+((65535&i)*i|0);a[n]=l^u}t[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,t[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,t[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,t[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,t[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,t[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,t[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,t[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}t.RabbitLegacy=e._createHelper(s)}(),r.RabbitLegacy)}()},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){},function(t,e,n){},function(t,e,n){},function(t,e,n){}]]);
- //# sourceMappingURL=2.39341471.chunk.js.map
|